index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
32,370
ElvinOuyang/todoist-history-analytics
refs/heads/master
/print_recent_activities.py
import todoist_functions as todofun import sys if __name__ == '__main__': try: script, activity_count = sys.argv except ValueError: sys.stderr.write( "Please input desired rows of records after the script...\n") sys.exit(1) if int(activity_count) > 100: print(">>...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,371
ElvinOuyang/todoist-history-analytics
refs/heads/master
/mysql_save_full_history.py
import todoist_functions as todofun import mysql_functions as sqlfun import datetime if __name__ == '__main__': full_fetch_until = datetime.datetime.now() full_df = todofun.act_fetch_all(until=full_fetch_until) print('>>> full_df is created with shape {}'.format(full_df.shape)) print('>>> the history ...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,372
ElvinOuyang/todoist-history-analytics
refs/heads/master
/mysql_functions.py
import os import sys import pandas as pd import todoist_functions as todofun from sqlalchemy import create_engine, select, func, Table, MetaData def connect_mysql(): """ Setup MySQL connection for data connection -----Environment Variables----- Five enviroment variables should be set up before calling this functi...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,375
marchon/yaybu
refs/heads/master
/yaybu/resources/file.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,376
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_group.py
import os, shutil, grp from yaybu.harness import FakeChrootTestCase from yaybu.util import sibpath class TestGroup(FakeChrootTestCase): def test_simple_group(self): self.fixture.check_apply(""" resources: - Group: name: test """) self....
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,377
marchon/yaybu
refs/heads/master
/yaybu/core/runcontext.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,378
marchon/yaybu
refs/heads/master
/yaybu/core/error.py
""" Classes that represent errors within yaybu. What is listed here are the exceptions raised within Python, with an explanation of their meaning. If you wish to detect a specific error on invocation, you can do so via the return code of the yaybu process. All yaybu errors have a returncode, which is returned from ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,379
marchon/yaybu
refs/heads/master
/yaybu/core/resource.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,380
marchon/yaybu
refs/heads/master
/yaybu/core/whitehat.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,381
marchon/yaybu
refs/heads/master
/yaybu/core/main.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,382
marchon/yaybu
refs/heads/master
/yaybu/core/shell.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,383
marchon/yaybu
refs/heads/master
/yaybu/resources/prompt.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,384
marchon/yaybu
refs/heads/master
/yaybu/providers/execute.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,385
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_arguments.py
# coding=utf-8 import unittest import datetime from yaybu.core import argument from yaybu.core import resource class TestArguments(unittest.TestCase): def test_octal(self): class R_test_octal(resource.Resource): a = argument.Octal() r = R_test_octal(name="test") r.a = "666" ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,386
marchon/yaybu
refs/heads/master
/yaybu/core/change.py
""" Classes that handle logging of changes. """ import abc import sys import logging import types import json from yaybu.core import error logger = logging.getLogger("audit") class ResourceFormatter(logging.Formatter): """ Automatically add a header and footer to log messages about particular resources "...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,387
marchon/yaybu
refs/heads/master
/yaybu/providers/filesystem/files.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,388
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_service_upstart.py
# coding=utf-8 import unittest from yaybu.providers.service.upstart import _UpstartServiceMixin class TestUpstartParser(unittest.TestCase): """ Tests our ability to handle output from /sbin/status """ def parse(self, block): u = _UpstartServiceMixin() return list(u._parse_status_output(block...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,389
marchon/yaybu
refs/heads/master
/yaybu/core/protocol/changelog.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,390
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_secret.py
import os import sys from yaybu.harness import FakeChrootTestCase from yaybu.core import error class TestWatched(FakeChrootTestCase): def test_execute(self): self.fixture.check_apply(""" hello.secret: world resources: - Execute: name: test_watc...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,391
marchon/yaybu
refs/heads/master
/yaybu/core/protocol/client.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,392
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_link.py
import os from yaybu.harness import FakeChrootTestCase from yaybu.core import error def sibpath(filename): return os.path.join(os.path.dirname(__file__), filename) class TestLink(FakeChrootTestCase): def test_create_link(self): self.fixture.check_apply(""" resources: - Lin...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,393
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_random.py
from yaybu.harness import FakeChrootTestCase from yaybu.core import resource from yaybu.core import argument from yaybu.core import error import mock class Test_Random(FakeChrootTestCase): # needs more work, particularly the File argument def resource_args(self, resource): for k, v in resource.__d...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,394
marchon/yaybu
refs/heads/master
/yaybu/core/debug.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,395
marchon/yaybu
refs/heads/master
/yaybu/core/argument.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,396
marchon/yaybu
refs/heads/master
/yaybu/core/protocol/server.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,397
marchon/yaybu
refs/heads/master
/yaybu/providers/filesystem/link.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,398
marchon/yaybu
refs/heads/master
/yaybu/harness/testcase.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,399
marchon/yaybu
refs/heads/master
/yaybu/providers/group.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,400
marchon/yaybu
refs/heads/master
/docs/minidoc.py
from sphinx.ext.autodoc import Documenter import sys def format_name(self): if self.objpath: return self.objpath[-1] def add_directive_header(self, sig): """Add the directive header and options to the generated content.""" domain = getattr(self, 'domain', 'py') directive = getattr(self, 'dire...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,401
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_resource.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,402
marchon/yaybu
refs/heads/master
/yaybu/core/policy.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,403
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_watched.py
import os import sys from yaybu.harness import FakeChrootTestCase from yaybu.core import error class TestWatched(FakeChrootTestCase): def test_watched(self): self.fixture.check_apply(""" resources: - Execute: name: test_watched command: ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,404
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_package_apt.py
from yaybu.harness import FakeChrootTestCase from time import sleep class TestPackageInstallation(FakeChrootTestCase): def test_already_installed(self): rv = self.fixture.apply(""" resources: - Package: name: python """) self.assertEqual(rv, ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,405
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_whitehat.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,406
marchon/yaybu
refs/heads/master
/yaybu/harness/fixture.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,407
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_service_simple.py
import os, shutil, grp, signal from yaybu.harness import FakeChrootTestCase from yaybu.util import sibpath simpleservice = """ #! /usr/bin/env python import os, select, sys if __name__ == "__main__": if os.fork() != 0: os._exit(0) os.setsid() if os.fork() != 0: os._exit(0) open("sim...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,408
marchon/yaybu
refs/heads/master
/yaybu/providers/filesystem/__init__.py
import files import link import directory
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,409
marchon/yaybu
refs/heads/master
/yaybu/providers/git.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,410
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_subversion.py
from yaybu.harness import FakeChrootTestCase from yaybu.core.error import MissingDependency class SubversionMissingTest(FakeChrootTestCase): def test_missing_svn(self): rv = self.fixture.apply(""" resources: - Checkout: scm: subversion name:...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,411
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_directory.py
# coding=utf-8 import os import pwd import grp import stat from yaybu.harness import FakeChrootTestCase def sibpath(filename): return os.path.join(os.path.dirname(__file__), filename) class TestDirectory(FakeChrootTestCase): def test_create_directory(self): self.fixture.check_apply(""" ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,412
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_provider.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,413
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_auditlog.py
import os import sys from yaybu.harness import FakeChrootTestCase from yaybu.core import error class TestAuditLog(FakeChrootTestCase): def test_auditlog_apply(self): self.fixture.check_apply(""" resources: - File: name: /test_auditlog_apply """) ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,414
marchon/yaybu
refs/heads/master
/yaybu/harness/fakechroot.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,415
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_user.py
import os, shutil from yaybu.harness import FakeChrootTestCase from yaybu.util import sibpath from yaybu.core import error class TestUser(FakeChrootTestCase): def test_simple_user(self): self.fixture.check_apply(""" resources: - User: name: test ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,416
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_execute.py
import os, shutil from yaybu.harness import FakeChrootTestCase from yaybu.util import sibpath from yaybu.core import error test_execute_on_path = """ #!/bin/sh touch /etc/test_execute_on_path """.strip() test_touches = """ #!/bin/sh touch /etc/test_execute_touches """.strip() class TestExecute(FakeChrootTestCase):...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,417
marchon/yaybu
refs/heads/master
/yaybu/core/tests/test_events.py
import os import sys from yaybu.harness import FakeChrootTestCase from yaybu.core import error class TestEvents(FakeChrootTestCase): def test_nochange(self): self.fixture.check_apply(""" resources: - Directory: name: /etc/wibble """) rv = se...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,418
marchon/yaybu
refs/heads/master
/yaybu/providers/rsync.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,419
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_filesystem.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,420
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_rsync.py
from yaybu.harness import FakeChrootTestCase from yaybu.core.error import MissingDependency class RsyncTest(FakeChrootTestCase): """ Test the rsync checkout provider. To run these tests, rsync must be installed in the test environment. """ def setUp(self): super(RsyncTest, self).setUp() ...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,421
marchon/yaybu
refs/heads/master
/yaybu/providers/filesystem/directory.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,422
marchon/yaybu
refs/heads/master
/yaybu/core/protocol/file.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,423
marchon/yaybu
refs/heads/master
/setup.py
from setuptools import setup, find_packages import os version = '0.1.14dev' setup(name='Yaybu', version=version, url="http://yaybu.com/", description="Server deployment and configuration management in Python", long_description=open("README.rst").read(), author="Isotoma Limited", au...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,424
marchon/yaybu
refs/heads/master
/yaybu/providers/tests/test_file.py
from yaybu.harness import FakeChrootTestCase from yaybu.core import error import pwd import grp import os import stat import errno def sibpath(filename): return os.path.join(os.path.dirname(__file__), filename) class TestFileApply(FakeChrootTestCase): def test_create_missing_component(self): rv = sel...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,425
marchon/yaybu
refs/heads/master
/yaybu/core/runner.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,426
marchon/yaybu
refs/heads/master
/yaybu/core/remote.py
# Copyright 2011 Isotoma Limited # # 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...
{"/yaybu/resources/prompt.py": ["/yaybu/core/resource.py", "/yaybu/core/policy.py", "/yaybu/core/argument.py"], "/yaybu/core/protocol/changelog.py": ["/yaybu/core/protocol/server.py"], "/yaybu/core/tests/test_whitehat.py": ["/yaybu/core/whitehat.py"], "/yaybu/providers/git.py": ["/yaybu/core/error.py"], "/yaybu/provide...
32,440
Younghoon-Lee/robo-advisor-api
refs/heads/master
/handler.py
try: import unzip_requirements except ImportError: pass from src.sharpeRatioData.sharpeRatioReports import SharpeRatioReports from src.sharpeRatioData.sharpeRecommendedHoldings import SharpeRecommendedPortfolio def skip_execution_if_warmup_call(func): def wrapper(event, context): if event.get("sou...
{"/handler.py": ["/src/sharpeRatioData/sharpeRatioReports.py", "/src/sharpeRatioData/sharpeRecommendedHoldings.py"], "/src/sharpeRatioData/sharpeRatioReports.py": ["/src/sharpeRatioData/main.py"], "/src/sharpeRatioData/sharpeRecommendedHoldings.py": ["/src/sharpeRatioData/main.py"]}
32,441
Younghoon-Lee/robo-advisor-api
refs/heads/master
/src/sharpeRatioData/sharpeRatioReports.py
import numpy as np import pandas as pd from src.sharpeRatioData.main import SharpeRatioData from libs.errorHandler import set_log logger = set_log(__name__) # Constant CASH = 100000 RISK_FREE_RATE =0.02 class SharpeRatioReports(SharpeRatioData): def __init__(self, arguments): super().__init__(argument...
{"/handler.py": ["/src/sharpeRatioData/sharpeRatioReports.py", "/src/sharpeRatioData/sharpeRecommendedHoldings.py"], "/src/sharpeRatioData/sharpeRatioReports.py": ["/src/sharpeRatioData/main.py"], "/src/sharpeRatioData/sharpeRecommendedHoldings.py": ["/src/sharpeRatioData/main.py"]}
32,442
Younghoon-Lee/robo-advisor-api
refs/heads/master
/src/sharpeRatioData/sharpeRecommendedHoldings.py
from src.sharpeRatioData.main import SharpeRatioData from libs.errorHandler import set_log logger = set_log(__name__) class SharpeRecommendedPortfolio(SharpeRatioData): def __init__(self, arguments): super().__init__(arguments) self.result = self.sharpeRecommendedHoldings() def sharpeRecomm...
{"/handler.py": ["/src/sharpeRatioData/sharpeRatioReports.py", "/src/sharpeRatioData/sharpeRecommendedHoldings.py"], "/src/sharpeRatioData/sharpeRatioReports.py": ["/src/sharpeRatioData/main.py"], "/src/sharpeRatioData/sharpeRecommendedHoldings.py": ["/src/sharpeRatioData/main.py"]}
32,443
Younghoon-Lee/robo-advisor-api
refs/heads/master
/src/debug/quicktest.py
# Debugging script [ purpose for mathematical error ] # 해당 스크립트는 디버깅을 원할하게 도와줌. # 에러 센트리에서 오류가 발생할 경우 해당 스크립트를 통해 debugging 후 hotfix 하는 것을 추천 # 클라우드 워치에서 로그를 확인한 후 argument에 오류를 발생시킨 값을 넣어서 test import pandas as pd import numpy as np from pypfopt import risk_models, expected_returns from pypfopt.exceptions import O...
{"/handler.py": ["/src/sharpeRatioData/sharpeRatioReports.py", "/src/sharpeRatioData/sharpeRecommendedHoldings.py"], "/src/sharpeRatioData/sharpeRatioReports.py": ["/src/sharpeRatioData/main.py"], "/src/sharpeRatioData/sharpeRecommendedHoldings.py": ["/src/sharpeRatioData/main.py"]}
32,444
Younghoon-Lee/robo-advisor-api
refs/heads/master
/src/sharpeRatioData/main.py
import pandas as pd import numpy as np from pypfopt import risk_models, expected_returns from pypfopt.efficient_frontier import EfficientFrontier from pypfopt.exceptions import OptimizationError from datetime import datetime, timedelta import pypfopt.objective_functions as objective_functions import boto3 import os fro...
{"/handler.py": ["/src/sharpeRatioData/sharpeRatioReports.py", "/src/sharpeRatioData/sharpeRecommendedHoldings.py"], "/src/sharpeRatioData/sharpeRatioReports.py": ["/src/sharpeRatioData/main.py"], "/src/sharpeRatioData/sharpeRecommendedHoldings.py": ["/src/sharpeRatioData/main.py"]}
32,446
NicoKc/mocManager
refs/heads/master
/song.py
class Song(object): def __init__(self, rowId, title, artist): self.rowId = rowId self.title = title self.artist = artist def __str__(self): return "({0}, {1} - {2})".format(self.rowId, self.artist, self.title)
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,447
NicoKc/mocManager
refs/heads/master
/mocAction.py
class MocAction(object): PLAY_NOW = 0 TOGGLE_PAUSE_PLAY = 1 ENQUEUE = 2 NEXT = 3 PREVIOUS = 4 GO_TO_SECONDS = 5 INFO = 6
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,448
NicoKc/mocManager
refs/heads/master
/model/context.py
from sqlalchemy import * from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base engine = create_engine('sqlite:///musicLibrary.db', echo=True) Base = declarative_base(engine) Session = sessionmaker() Session.configure(bind=engine)
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,449
NicoKc/mocManager
refs/heads/master
/mocManager.py
import os import subprocess import logging import musicLibrary _mocp = "mocp" _playNow = "-l" _startServer = "-F" _stopServer = "-X" _togglePause = "-G" _enqueue = "-q" _next = "-f" _previous = "-r" _goToSeconds = "-k" _getInfo = "-i" def starServer(mp3Id): subprocess.call([_mocp, _starServer]) def stopServer(mp3Id...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,450
NicoKc/mocManager
refs/heads/master
/musicLibrary.py
import os import sqlite3 import eyed3 import model.musicLibraryRepository as repository from model.mp3 import * from song import * #_dbName = 'mp3Library.db' #_musicPath = "/{0}".format(os.path.join("","home","kechunet","Music")) _musicPath = "/{0}".format(os.path.join("","home","kechusoft","Music")) #_musicPath = os...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,451
NicoKc/mocManager
refs/heads/master
/mocManagerController.py
import logging import falcon import mocManager as mm import musicLibrary as ml import json from mocAction import MocAction as ma class MocManagerController(object): def __init__(self): self.logger = logging.getLogger('mocManagerApi.' + __name__) self.actions = { ma.PLAY_NOW: mm.playMp3, ma.TOGGLE_PAUSE_PLA...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,452
NicoKc/mocManager
refs/heads/master
/model/mp3.py
from sqlalchemy import * from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from playlistMp3 import * from context import Base class Mp3(Base): __tablename__ = 'mp3s' mp3Id = Column(Integer, primary_key=True) title = Column(String(50)) artist = Column(String(50)) file...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,453
NicoKc/mocManager
refs/heads/master
/model/musicLibraryRepository.py
from sqlalchemy import * from context import engine, Session from mp3 import * from sqlalchemy.sql import func from playlist import * from playlistMp3 import * _currentPlaylistId = 0 def getAllMp3s(): return Session().query(Mp3) def getMp3ById(mp3Id): return Session().query(Mp3).filter_by(mp3Id=mp3Id).first() de...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,454
NicoKc/mocManager
refs/heads/master
/model/playlist.py
from sqlalchemy import * from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from playlistMp3 import * from context import Base class Playlist(Base): __tablename__ = 'playlists' playlistId = Column(Integer, primary_key=True) name = Column(String(50)) description = Colum...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,455
NicoKc/mocManager
refs/heads/master
/model/playlistMp3.py
from sqlalchemy import * from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from context import Base class PlaylistMp3(Base): __tablename__ = 'playlistsMp3s' playlistId = Column(Integer, ForeignKey('playlists.playlistId'), primary_key=Tr...
{"/mocManager.py": ["/musicLibrary.py"], "/musicLibrary.py": ["/model/musicLibraryRepository.py", "/model/mp3.py", "/song.py"], "/mocManagerController.py": ["/mocManager.py", "/musicLibrary.py", "/mocAction.py"]}
32,456
brenoSCosta/projetoNovel
refs/heads/master
/projetoNovels/models.py
from django.db import models # Create your models here. class User(models.Model): nickname = models.CharField(max_length=16) login = models.CharField(max_length=16, unique=True) password = models.CharField(max_length=16) email = models.EmailField(unique=True) class Meta: verbose_name_plu...
{"/projetoNovels/forms.py": ["/projetoNovels/models.py"]}
32,457
brenoSCosta/projetoNovel
refs/heads/master
/projetoNovels/forms.py
from django import forms from .models import * class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) class Meta: model = User fields = ('nickname', 'login', 'password', 'email')
{"/projetoNovels/forms.py": ["/projetoNovels/models.py"]}
32,458
brenoSCosta/projetoNovel
refs/heads/master
/projetoNovels/migrations/0003_auto_20200814_0027.py
# Generated by Django 3.1 on 2020-08-14 03:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projetoNovels', '0002_auto_20200814_0021'), ] operations = [ migrations.RenameModel( old_name='Usuario', new_name='User', ...
{"/projetoNovels/forms.py": ["/projetoNovels/models.py"]}
32,459
brenoSCosta/projetoNovel
refs/heads/master
/projetoNovels/apps.py
from django.apps import AppConfig class ProjetonovelsConfig(AppConfig): name = 'projetoNovels'
{"/projetoNovels/forms.py": ["/projetoNovels/models.py"]}
32,460
dylan-plummer/speed-counting
refs/heads/master
/models.py
from keras.models import Sequential, Model from keras.layers import Dense, Activation, Conv2D, MaxPooling2D, Conv3D, MaxPooling3D, AveragePooling3D, Dropout from keras.layers import BatchNormalization, Input, GlobalMaxPooling3D, Embedding, Flatten, LSTM, TimeDistributed from keras.layers import concatenate, GlobalAvera...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,461
dylan-plummer/speed-counting
refs/heads/master
/label_videos.py
import cv2 import os import numpy as np data_dir = os.getcwd() + '/unlabeled_videos/' annotation_dir = os.getcwd() + '/data/speed_annotations/' def open_video(file, label): print('\nOpening', file) cap = cv2.VideoCapture(file) frame_i = 0 count = [] while cap.isOpened(): try: ...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,462
dylan-plummer/speed-counting
refs/heads/master
/train_video.py
import numpy as np import cv2 import os import matplotlib.pyplot as plt from keras.models import Sequential, Model from keras.layers import Dense, Activation, Conv2D, MaxPooling2D, Conv3D, MaxPooling3D, AveragePooling3D, BatchNormalization, Input, GlobalMaxPooling3D, Embedding, Flatten, LSTM, TimeDistributed from kera...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,463
dylan-plummer/speed-counting
refs/heads/master
/train_flow.py
import numpy as np import cv2 import os import matplotlib.pyplot as plt from keras.models import Sequential, Model from keras.layers import Dense, Activation, Conv3D, MaxPooling3D, BatchNormalization, Input, GlobalMaxPooling3D, Embedding, Flatten, LSTM from keras.layers import SpatialDropout1D from keras.optimizers im...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,464
dylan-plummer/speed-counting
refs/heads/master
/data_helpers.py
import numpy as np import scipy.optimize def smooth(x, window_len=11, window='hanning'): """smooth the data using a window with requested size. This method is based on the convolution of a scaled window with the signal. The signal is prepared by introducing reflected copies of the signal (with the wi...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,465
dylan-plummer/speed-counting
refs/heads/master
/vis_video.py
from itertools import product import math import numpy as np import cv2 import os import matplotlib.pyplot as plt from matplotlib.colors import hsv_to_rgb from mpl_toolkits.mplot3d import Axes3D from keras.models import model_from_json, Model from keras import backend as K from keras.utils import np_utils from data_...
{"/train_video.py": ["/data_helpers.py", "/models.py"], "/vis_video.py": ["/data_helpers.py", "/train_video.py"]}
32,473
Kiyoshi-o/AI_Speaker
refs/heads/master
/VoiceRecognition.py
import speech_recognition as Srecog class ClVoiceRecognition: @staticmethod def voiceToText(): result = "" print("Say Something ...") with Srecog.Microphone() as source: Srecog.Recognizer().adjust_for_ambient_noise(source) audio = Srecog.Recognizer()...
{"/main.py": ["/VoiceRecognition.py", "/SpeechSynthesis.py", "/GetReply.py", "/TextSpeaker.py"]}
32,474
Kiyoshi-o/AI_Speaker
refs/heads/master
/GetReply.py
import pya3rt class ClGetReply: Pya3rt_API = "DZZBA92i9EhCouadQ29CXrw1hMOKORxl" def __init__(self, message): self.message = message def getReply(self): client = pya3rt.TalkClient(self.Pya3rt_API) res = client.talk(self.message) rep = res['results'][0]['reply']...
{"/main.py": ["/VoiceRecognition.py", "/SpeechSynthesis.py", "/GetReply.py", "/TextSpeaker.py"]}
32,475
Kiyoshi-o/AI_Speaker
refs/heads/master
/SpeechSynthesis.py
import os import requests class ClSpeechSynthesis(): VoiceTextWeb_API = "zjbjkyglhm1r2kv8" def __init__(self, fileName, text, speaker, emotion, emotion_level, pitch, speed, volume): self.file = fileName + ".wav" self.text = text self.speaker = speaker self.emotion =...
{"/main.py": ["/VoiceRecognition.py", "/SpeechSynthesis.py", "/GetReply.py", "/TextSpeaker.py"]}
32,476
Kiyoshi-o/AI_Speaker
refs/heads/master
/main.py
import sys import VoiceRecognition import SpeechSynthesis import GetReply import TextSpeaker import random as rd # TestCode from VoiceRecognition import ClVoiceRecognition def main(): speaker = "takeru" emotionList = ["happiness", "anger", "sadness"] pitch = 100 speed = 100 volume...
{"/main.py": ["/VoiceRecognition.py", "/SpeechSynthesis.py", "/GetReply.py", "/TextSpeaker.py"]}
32,477
Kiyoshi-o/AI_Speaker
refs/heads/master
/TextSpeaker.py
import winsound class ClTextSpeaker: def __init__(self, voiceFile): self.voiceFile = voiceFile def outputWav(self): with open(self.voiceFile, 'rb') as voice_f: data = voice_f.read() winsound.PlaySound(data, winsound.SND_MEMORY)
{"/main.py": ["/VoiceRecognition.py", "/SpeechSynthesis.py", "/GetReply.py", "/TextSpeaker.py"]}
32,478
xm2235/Project_Tools
refs/heads/master
/sightings/migrations/0005_auto_20200512_1327.py
# Generated by Django 3.0.6 on 2020-05-12 13:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sightings', '0004_auto_20200512_1103'), ] operations = [ migrations.RenameField( model_name='sighting', old_name='ot...
{"/sightings/views.py": ["/sightings/models.py"]}
32,479
xm2235/Project_Tools
refs/heads/master
/sightings/admin.py
from django.contrib import admin from . import models admin.site.register(models.Sighting)
{"/sightings/views.py": ["/sightings/models.py"]}
32,480
xm2235/Project_Tools
refs/heads/master
/sightings/views.py
from django.shortcuts import render from django.http import HttpResponse from .models import Sighting def index(request): all_sightings = Sighting.objects.all() return render(request, 'sightings/index.html', {'all_sightings': all_sightings}) def unique(request, unique_squirrel_id): squirrel = Sighting.ob...
{"/sightings/views.py": ["/sightings/models.py"]}
32,481
xm2235/Project_Tools
refs/heads/master
/sightings/migrations/0003_auto_20200511_0813.py
# Generated by Django 3.0.6 on 2020-05-11 08:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sightings', '0002_auto_20200511_0809'), ] operations = [ migrations.AddField( model_name='squirrel', name='approache...
{"/sightings/views.py": ["/sightings/models.py"]}
32,482
xm2235/Project_Tools
refs/heads/master
/sightings/migrations/0004_auto_20200512_1103.py
# Generated by Django 3.0.6 on 2020-05-12 11:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sightings', '0003_auto_20200511_0813'), ] operations = [ migrations.CreateModel( name='Sighting', fields=[ ...
{"/sightings/views.py": ["/sightings/models.py"]}
32,483
xm2235/Project_Tools
refs/heads/master
/sightings/models.py
from django.db import models class Sighting(models.Model): latitude = models.DecimalField('Latitude',default = None,max_digits =50,decimal_places = 10) longitude = models.DecimalField('Longitude',default = None,max_digits =50,decimal_places = 10) unique_squirrel_id = models.CharField('ID',max_length = 5...
{"/sightings/views.py": ["/sightings/models.py"]}
32,484
xm2235/Project_Tools
refs/heads/master
/sightings/migrations/0002_auto_20200511_0809.py
# Generated by Django 3.0.6 on 2020-05-11 08:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sightings', '0001_initial'), ] operations = [ migrations.AddField( model_name='squirrel', name='age', fi...
{"/sightings/views.py": ["/sightings/models.py"]}
32,491
BTruer/CaesarCipher
refs/heads/master
/logic.py
from random import randint from langdetect import detect, detect_langs def getCiphertext(keyE,plaintext): if int(keyE) == 0: keyE = getRandKey() ciphertext="" for char in plaintext: if char.isalpha(): if char.islower(): num = ord(char)+int(keyE) i...
{"/app.py": ["/logic.py"]}
32,492
BTruer/CaesarCipher
refs/heads/master
/app.py
from flask import Flask, request, render_template from logic import * app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def index(): textE = "" textD = "" if request.method == 'GET': return render_template("index.html", textE=textE, textD=textD) if request.method == "POST": ...
{"/app.py": ["/logic.py"]}
32,497
tonderys/File_Changer
refs/heads/master
/File_Changer_GUI.py
from Tkinter import * from threading import Thread from File_Finder import * from File_Changer import * from colour import Color class File_Changer_GUI: def __init__(self): self.top_window = Tk() self.path_label = Label(self.top_window, text = "path") self.path_label.grid(column = 1, row =...
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}
32,498
tonderys/File_Changer
refs/heads/master
/File_Finder.py
import os import sys class File_Finder: wanted_extension = "" output_code = 0 output_codes_dictionary = {1:"found files, and put on the list", 2:"haven't found any file with wanted extension", 3:"can't find/open file path"} def __init__(self, file_path, wanted_extension): self.file_paths = [] ...
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}
32,499
tonderys/File_Changer
refs/heads/master
/File_Changer.py
import shutil import sys import re class File_Changer: output_codes_dictionary={1:"zmiana pliku %s", 2:"w pliku %s nie znaleziono szukanej frazy", 3:"brak pliku/uprawnien do pliku: %s"} def __init__(self, filename, searched_phrase, line_length , old_phrase, new_phrase, quiet = 1): self.quiet = quiet ...
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}
32,500
tonderys/File_Changer
refs/heads/master
/tests.py
#!/usr/bin/env python from File_Finder_test import * from File_Changer_test import * from File_Changer_GUI_test import * if __name__ == "__main__": unittest.main()
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}
32,501
tonderys/File_Changer
refs/heads/master
/File_Changer_test.py
import unittest import os import os.path import shutil from File_Changer import * filename = "testTmpFile" class File_changer_test(unittest.TestCase): def setUp(self): if os.path.exists(filename): os.remove(filename) def tearDown(self): self.setUp() if os.path.exists(f...
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}
32,502
tonderys/File_Changer
refs/heads/master
/File_Changer_GUI_test.py
import unittest import shutil import os import os.path from File_Changer_GUI import * testdir = "testingDirectory" class File_Changer_GUI_test(unittest.TestCase): def setUp(self): self.tearDown() os.mkdir(testdir) for i in range(0,9): tmp_path = testdir+"/"+str(i) o...
{"/File_Changer_GUI.py": ["/File_Finder.py", "/File_Changer.py"], "/tests.py": ["/File_Finder_test.py", "/File_Changer_test.py", "/File_Changer_GUI_test.py"], "/File_Changer_test.py": ["/File_Changer.py"], "/File_Changer_GUI_test.py": ["/File_Changer_GUI.py"], "/File_Finder_test.py": ["/File_Finder.py"]}