text stringlengths 0 1.05M | meta dict |
|---|---|
#$Id$
class BankRule:
"""This class is used to create object for bank rules."""
def __init__(self):
"""Initialize parameters for Bank rules."""
self.rule_id = ''
self.rule_name = ''
self.rule_order = 0
self.apply_to = ''
self.target_account_id = ''
self.a... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/BankRule.py",
"copies": "1",
"size": "6521",
"license": "mit",
"hash": -6088579880555392000,
"line_mean": 20.3104575163,
"line_max": 70,
"alpha_frac": 0.496549609,
"autogenerated": false,
"ratio": 4.14821882951654,
"config_test": ... |
#$Id$
class BaseCurrencyAdjustment:
"""This class is used to create object for Base Currency adjustment."""
def __init__(self):
"""Initialize parameters for Base currency adjustment."""
self.base_currency_adjustment_id = ''
self.adjustment_date = ''
self.exchange_rate = 0.0
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/BaseCurrencyAdjustment.py",
"copies": "1",
"size": "5019",
"license": "mit",
"hash": 5451036193072059000,
"line_mean": 22.453271028,
"line_max": 88,
"alpha_frac": 0.554293684,
"autogenerated": false,
"ratio": 4.410369068541301,
"c... |
#$Id$
class BillPayment:
"""This class is used to create object for payments."""
def __init__(self):
"""Initialize parameters for Payments object."""
self.payment_id = ''
self.bill_id = ''
self.bill_payment_id = ''
self.payment_mode = ''
self.description = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/BillPayment.py",
"copies": "1",
"size": "6550",
"license": "mit",
"hash": -693976398031561900,
"line_mean": 19.9265175719,
"line_max": 76,
"alpha_frac": 0.5244274809,
"autogenerated": false,
"ratio": 4.1455696202531644,
"config_te... |
#$Id$
class ChartOfAccount:
"""Create object for Chart of Accounts."""
def __init__(self):
"""Initialize parameters for Chart of accounts."""
self.account_id = ''
self.account_name = ''
self.is_active = None
self.account_type = ''
self.account_type_formatted = ''... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/ChartOfAccount.py",
"copies": "1",
"size": "5623",
"license": "mit",
"hash": 2818978555257500000,
"line_mean": 22.9276595745,
"line_max": 105,
"alpha_frac": 0.5577094078,
"autogenerated": false,
"ratio": 4.3826968043647705,
"confi... |
#$Id$
class Comment:
"""This class is used to create object for comment."""
def __init__(self):
"""Initialize parameters for comment object."""
self.id = 0
self.content = ""
self.posted_by = ""
self.posted_person = ""
self.post_date = ""
self.post_da... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Comment.py",
"copies": "1",
"size": "4664",
"license": "mit",
"hash": 4151800672727371000,
"line_mean": 17.7309236948,
"line_max": 60,
"alpha_frac": 0.5019296741,
"autogenerated": false,
"ratio": 3.925925925925926,
"config_t... |
#$Id$
class Comment:
"""This class is used to create object for comments."""
def __init__(self):
"""Initialize parameters for comments."""
self.comment_id = ''
self.contact_id = ''
self.contact_name = ''
self.description = ''
self.commented_by_id = ''
sel... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Comment.py",
"copies": "1",
"size": "10376",
"license": "mit",
"hash": 293105543607664700,
"line_mean": 20.4380165289,
"line_max": 74,
"alpha_frac": 0.5169622205,
"autogenerated": false,
"ratio": 4.207623682076237,
"config_test": ... |
#$Id$
class ContactPerson:
"""This class is used to create model for contact person."""
def __init__(self):
"""Initialize the parameters for contact person."""
self.contact_person_id = ''
self.salutation = ''
self.first_name = ''
self.last_name = ''
self.email = ... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/ContactPerson.py",
"copies": "1",
"size": "4579",
"license": "mit",
"hash": 8104365254950759000,
"line_mean": 21.3365853659,
"line_max": 83,
"alpha_frac": 0.5038217952,
"autogenerated": false,
"ratio": 4.271455223880597,
"config_t... |
#$Id$
class CreditNoteRefund:
"""This class is used to create object for creditnotes refund."""
def __init__(self):
"""Initialize parameters for creditnotes refund object."""
self.date = ''
self.refund_mode = ''
self.reference_number = ''
self.amount = 0.0
self.e... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/CreditNoteRefund.py",
"copies": "1",
"size": "7615",
"license": "mit",
"hash": -7577912090061715000,
"line_mean": 24.1320132013,
"line_max": 82,
"alpha_frac": 0.5290873276,
"autogenerated": false,
"ratio": 4.389048991354467,
"conf... |
#$Id$
class CreditnoteSetting:
"""This class is used to create object for creditnotes settings."""
def __init__(self):
"""Initialize parameters for creditnotes settings."""
self.auto_generate = None
self.prefix_string = ""
self.reference_text = ""
self.next_number = ""
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/CreditnoteSetting.py",
"copies": "1",
"size": "3249",
"license": "mit",
"hash": -6191426246393403000,
"line_mean": 21.8802816901,
"line_max": 83,
"alpha_frac": 0.5278547245,
"autogenerated": false,
"ratio": 4.475206611570248,
"con... |
#$Id$
class Criteria:
"""This class is used to create object for criteria."""
def __init__(self):
"""Initialize parameters for criteria object."""
self.criteria_id = ''
self.field = ''
self.comparator = ''
self.value = 0.0
def set_criteria_id(self, criteria_id):
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Criteria.py",
"copies": "1",
"size": "1950",
"license": "mit",
"hash": -6699669022595363000,
"line_mean": 18.5,
"line_max": 73,
"alpha_frac": 0.4851282051,
"autogenerated": false,
"ratio": 4.513888888888889,
"config_test": false,
... |
#$Id$
class Currency:
"""This class is used to create object for currency. """
def __init__(self):
"""Initialize parameters for currency object."""
self.currency_id = ''
self.currency_code = ''
self.currency_name = ''
self.currency_symbol = ''
self.price_precisio... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Currency.py",
"copies": "1",
"size": "4486",
"license": "mit",
"hash": -2628652742961089000,
"line_mean": 22.0051282051,
"line_max": 75,
"alpha_frac": 0.5479268836,
"autogenerated": false,
"ratio": 4.437190900098912,
"config_test"... |
#$Id$
class CustomerPayment:
"""This class is used to create object for customer payments."""
def __init__(self):
"""Initialize parameters for customer payments."""
self.customer_id = ''
self.invoices = []
self.payment_mode = ''
self.description = ''
self.date = ... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/CustomerPayment.py",
"copies": "1",
"size": "11242",
"license": "mit",
"hash": -8828575926023331000,
"line_mean": 22.5681341719,
"line_max": 81,
"alpha_frac": 0.5384273261,
"autogenerated": false,
"ratio": 4.285932138772398,
"conf... |
#$Id$
class CustomField:
"""This class is used to create custom field."""
def __init__(self):
"""Initialize the parameters for custom field object"""
self.index = 0
self.show_on_pdf = None
self.value = ''
self.label = ''
def set_index(self, index):
"""Set ... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/CustomField.py",
"copies": "1",
"size": "3198",
"license": "mit",
"hash": 866816066794086500,
"line_mean": 20.32,
"line_max": 77,
"alpha_frac": 0.5109443402,
"autogenerated": false,
"ratio": 4.4978902953586495,
"config_test": fals... |
#$Id$
class Customfield:
'''
Customfield object is used to create an object for the project custom field.
'''
def __init__(self):
'''
Initialize the parameters of the Customfield object.
'''
self.label_name = "";
self.column_name = "";
self.default_Value = "";
self.picklist_values = [];
de... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Customfield.py",
"copies": "1",
"size": "1860",
"license": "mit",
"hash": 5986238668109387000,
"line_mean": 15.6071428571,
"line_max": 77,
"alpha_frac": 0.6322580645,
"autogenerated": false,
"ratio": 3.2804232804232805,
"con... |
#$Id$
class Date:
"""This class is used to create object for date."""
def __init__(self):
"""Initialize parameters for date object."""
self.total_hours = ""
self.display_format = ""
self.date_long = 0
self.task_log = []
self.bug_log = []
self.general... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Date.py",
"copies": "1",
"size": "2413",
"license": "mit",
"hash": -6262563467049923000,
"line_mean": 18.6178861789,
"line_max": 57,
"alpha_frac": 0.5043514298,
"autogenerated": false,
"ratio": 4.076013513513513,
"config_tes... |
#$Id$
class Defaultfield:
'''
Defaultfield is used to create an object for project default field.
'''
def __init__(self):
'''
Initialize parameters for Defaultfiled object.
'''
self.severity_details = [];
self.status_deatils = [];
self.module_details = [];
self.priority_details = [];
self.... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Defaultfield.py",
"copies": "1",
"size": "2503",
"license": "mit",
"hash": -7440482696929800000,
"line_mean": 17.2700729927,
"line_max": 79,
"alpha_frac": 0.6652017579,
"autogenerated": false,
"ratio": 3.6014388489208633,
"c... |
#$Id$
class DefaultTemplate:
"""This class is used to create object for default templates."""
def __init__(self):
"""Initialize the parameters for default temmplates."""
self.invoice_template_id = ''
self.invoice_template_name = ''
self.estimate_template_id = ''
self.est... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/DefaultTemplate.py",
"copies": "1",
"size": "10073",
"license": "mit",
"hash": 1813725376093645800,
"line_mean": 33.9756944444,
"line_max": 81,
"alpha_frac": 0.6156060756,
"autogenerated": false,
"ratio": 5.049122807017544,
"confi... |
#$Id$
class EmailHistory:
"""This class is used to create an object for Email history."""
def __init__(self):
"""Initialize the parameters for Email hstory object."""
self.mailhistory_id = ''
self.from_mail_id = ''
self.to_mail_ids = ''
self.subject = ''
self.dat... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/EmailHistory.py",
"copies": "1",
"size": "2217",
"license": "mit",
"hash": 8584623841151164000,
"line_mean": 17.1721311475,
"line_max": 67,
"alpha_frac": 0.4727108705,
"autogenerated": false,
"ratio": 3.9731182795698925,
"config_t... |
#$Id$
class EmailTemplate:
"""This class is used to create object for email templates."""
def __init__(self):
"""Initialize parameters for email templates."""
self.selected = None
self.name = ''
self.email_template_id = ''
def set_selected(self, selected):
"""Set... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/EmailTemplate.py",
"copies": "1",
"size": "1307",
"license": "mit",
"hash": -8430492837022829000,
"line_mean": 19.1076923077,
"line_max": 66,
"alpha_frac": 0.5179801071,
"autogenerated": false,
"ratio": 4.385906040268456,
"config_... |
#$Id$
class EstimateSetting:
"""This class is used to create object for estimate settings."""
def __init__(self):
"""Initialize parameters for estimate settings."""
self.auto_generate = None
self.prefix_string = ""
self.start_at = 0
self.next_number = ""
self.qua... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/EstimateSetting.py",
"copies": "1",
"size": "8661",
"license": "mit",
"hash": 1861906017328479000,
"line_mean": 25.3252279635,
"line_max": 141,
"alpha_frac": 0.5687564946,
"autogenerated": false,
"ratio": 4.324013979031453,
"confi... |
#$Id$
class Event:
"""This class is used to create object for Event."""
def __init__(self):
"""Initialize parameters for Event object."""
self.id = 0
self.title = ""
self.location = ""
self.scheduled_on = ""
self.scheduled_on_long = 0
self.remi... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Event.py",
"copies": "1",
"size": "5751",
"license": "mit",
"hash": 6057440014975055000,
"line_mean": 17.3738019169,
"line_max": 57,
"alpha_frac": 0.4884367936,
"autogenerated": false,
"ratio": 4.340377358490566,
"config_tes... |
#$Id$
class ExchangeRate:
"""This class is used to create object for Exchange rate."""
def __init__(self):
"""Initialize parameters for exchange rate."""
self.exchange_rate_id = ''
self.currency_id = ''
self.currency_code = ''
self.effective_date = ''
self.rate =... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/ExchangeRate.py",
"copies": "1",
"size": "2720",
"license": "mit",
"hash": 1838665718556411000,
"line_mean": 21.479338843,
"line_max": 71,
"alpha_frac": 0.5202205882,
"autogenerated": false,
"ratio": 4.256651017214398,
"config_tes... |
#$Id$
class Expense:
"""This class is used to create objecct for expenses."""
def __init__(self):
"""Initialize parameters for Expenses object."""
self.account_id = ''
self.paid_through_account_id = ''
self.date = ''
self.amount = 0.0
self.tax_id = ''
se... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Expense.py",
"copies": "1",
"size": "15182",
"license": "mit",
"hash": -695551894355073500,
"line_mean": 20.2633053221,
"line_max": 74,
"alpha_frac": 0.5153471216,
"autogenerated": false,
"ratio": 4.146954384048074,
"config_test":... |
#$Id$
class Folder:
"""This class is used to create object for Folder."""
def __init__(self):
"""Initialize parameters for folder object."""
self.id = 0
self.name = ""
self.is_discussion = None
self.url = ""
def set_id(self, id):
"""Set id.
... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Folder.py",
"copies": "1",
"size": "1440",
"license": "mit",
"hash": 4199912420831940600,
"line_mean": 15.5517241379,
"line_max": 63,
"alpha_frac": 0.4527777778,
"autogenerated": false,
"ratio": 4.260355029585799,
"config_te... |
#$Id$
class Forum:
"""This class is used to create object for forum."""
def __init__(self):
"""Initialize parameters for forum object."""
self.id = 0
self.name = ""
self.content = ""
self.is_sticky_post = None
self.is_announcement_post = None
s... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Forum.py",
"copies": "1",
"size": "4916",
"license": "mit",
"hash": -3715918896199240000,
"line_mean": 17.9076923077,
"line_max": 77,
"alpha_frac": 0.4894222945,
"autogenerated": false,
"ratio": 4.124161073825503,
"config_te... |
#$Id$
class FromEmail:
"""This class is used to create object for FromEmails."""
def __init__(self):
"""Initialize parameters for FromEmails."""
self.user_name = ''
self.selected = None
self.email = ''
self.is_org_email_id = None
def set_user_name(self, user_name)... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/FromEmail.py",
"copies": "1",
"size": "1850",
"license": "mit",
"hash": 2620019852506380300,
"line_mean": 21.5609756098,
"line_max": 69,
"alpha_frac": 0.4956756757,
"autogenerated": false,
"ratio": 4.195011337868481,
"config_test"... |
#$Id$
class Instrumentation:
"""This class is used tocreate object for instrumentation."""
def __init__(self):
"""Initialize parameters for Instrumentation object."""
self.query_execution_time = ''
self.request_handling_time = ''
self.response_write_time = ''
self.page_c... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Instrumentation.py",
"copies": "1",
"size": "2136",
"license": "mit",
"hash": 8238827201165372000,
"line_mean": 24.734939759,
"line_max": 67,
"alpha_frac": 0.5880149813,
"autogenerated": false,
"ratio": 4.368098159509202,
"config_... |
#$Id$
class InvoiceCredited:
"""This class is used to create objecctfor Invoices Credited."""
def __init__(self):
"""Initialize parameters for Invoices credited."""
self.creditnote_id = ''
self.invoice_id = ''
self.creditnotes_invoice_id = ''
self.date = ''
self... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/InvoiceCredited.py",
"copies": "1",
"size": "3801",
"license": "mit",
"hash": -6333936865016023000,
"line_mean": 20.2346368715,
"line_max": 68,
"alpha_frac": 0.5377532228,
"autogenerated": false,
"ratio": 4.109189189189189,
"confi... |
#$Id$
class Invoice:
"""This class is used to create object for invoice."""
def __init__(self):
"""Initialize parameters for Invoice object."""
self.invoice_id = ''
self.invoice_number = ''
self.date = ''
self.status = ''
self.payment_terms = 0
self.payme... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Invoice.py",
"copies": "1",
"size": "29831",
"license": "mit",
"hash": -1729967105434840800,
"line_mean": 22.6942017474,
"line_max": 103,
"alpha_frac": 0.5380979518,
"autogenerated": false,
"ratio": 4.300273893613954,
"config_test... |
#$Id$
class InvoicePayment:
"""This class is used to create object for Invoice Payments."""
def __init__(self):
"""Initialize parameters for Invoice payments."""
self.invoice_payment_id = ''
self.payment_id = ''
self.invoice_id = ''
self.amount_used = 0.0
self.... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/InvoicePayment.py",
"copies": "1",
"size": "5813",
"license": "mit",
"hash": 5634009573624588000,
"line_mean": 20.2153284672,
"line_max": 74,
"alpha_frac": 0.5293308103,
"autogenerated": false,
"ratio": 4.390483383685801,
"config_... |
#$Id$
class InvoiceSetting:
"""This class is used to create object for invoice settings."""
def __init__(self):
"""Initialize parameters for Invoice settings."""
self.auto_generate = None
self.prefix_string = ''
self.start_at = 0
self.next_number = ''
self.quanti... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/InvoiceSetting.py",
"copies": "1",
"size": "12982",
"license": "mit",
"hash": 2888429994730160000,
"line_mean": 25.8223140496,
"line_max": 79,
"alpha_frac": 0.5737174549,
"autogenerated": false,
"ratio": 4.343258614921378,
"config... |
#$Id$
class Item:
"""This class is used to create object for item."""
def __init__(self):
"""Initialize parameters for Item object."""
self.item_id = ''
self.name = ''
self.status = ''
self.description = ''
self.rate = 0.0
self.unit = ''
self.acco... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Item.py",
"copies": "1",
"size": "4692",
"license": "mit",
"hash": 8126653452674430000,
"line_mean": 17.4,
"line_max": 63,
"alpha_frac": 0.4603580563,
"autogenerated": false,
"ratio": 4.174377224199288,
"config_test": false,
"ha... |
#$Id$
class Journal:
"""This class is used to create object for Journals."""
def __init__(self):
"""Initilaize parameters for journals object."""
self.journal_date = ''
self.reference_number = ''
self.notes = ''
self.line_items = []
self.journal_id = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Journal.py",
"copies": "1",
"size": "6534",
"license": "mit",
"hash": 5291190513102269000,
"line_mean": 19.875399361,
"line_max": 66,
"alpha_frac": 0.5116314662,
"autogenerated": false,
"ratio": 4.312871287128713,
"config_test": f... |
#$Id$
class LineItem:
"""This class is used to create object for line items."""
def __init__(self):
"""Initialize the parameters for line items."""
self.item_id = ''
self.line_item_id = ''
self.name = ''
self.description = ''
self.item_order = 0
self.bcy_... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/LineItem.py",
"copies": "1",
"size": "10767",
"license": "mit",
"hash": 996749187577651000,
"line_mean": 19.1629213483,
"line_max": 68,
"alpha_frac": 0.4881582614,
"autogenerated": false,
"ratio": 4.031074503931112,
"config_test":... |
#$Id$
class Log:
"""This class is used to create object for log."""
def __init__(self):
"""Initialize parameters for logs."""
self.id = ""
self.notes = ""
self.log_date = ""
self.log_date_long = 0
self.log_date_format = ""
self.hours = 0
... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Log.py",
"copies": "1",
"size": "4550",
"license": "mit",
"hash": -1099473329300122500,
"line_mean": 16.7734375,
"line_max": 54,
"alpha_frac": 0.4630769231,
"autogenerated": false,
"ratio": 4.066130473637176,
"config_test": ... |
#$Id$
class Milestone:
"""This class is used to create object for Milestone."""
def __init__(self):
"""Initialize parameters for milestone object."""
self.id = 0
self.url = ""
self.status_url = ""
self.name = ""
self.owner_name = ""
self.owner_id = ""... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Milestone.py",
"copies": "1",
"size": "5824",
"license": "mit",
"hash": -7700956639996711000,
"line_mean": 17.607028754,
"line_max": 60,
"alpha_frac": 0.4800824176,
"autogenerated": false,
"ratio": 4.027662517289073,
"config... |
#$Id$
class NotesAndTerms:
"""This class is used to create object for notes and terms."""
def __init__(self):
"""Initialize parameters for notes and terms."""
self.notes = ''
self.terms = ''
def set_notes(self, notes):
"""Set notes.
Args:
notes(str): N... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/NotesAndTerms.py",
"copies": "1",
"size": "1148",
"license": "mit",
"hash": 8433471978212807000,
"line_mean": 18.7931034483,
"line_max": 78,
"alpha_frac": 0.4790940767,
"autogenerated": false,
"ratio": 4.415384615384616,
"config_t... |
#$Id$
class OpeningBalance:
"""This class is used to create object for opening balance."""
def __init__(self):
"""Initialize parameters for opening balance."""
self.opening_balance_id = ''
self.date = ''
self.accounts = []
def set_opening_balance_id(self, opening_ba... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/OpeningBalance.py",
"copies": "1",
"size": "1811",
"license": "mit",
"hash": 8332991411463216000,
"line_mean": 21.6375,
"line_max": 80,
"alpha_frac": 0.5135284373,
"autogenerated": false,
"ratio": 4.561712846347607,
"config_test":... |
#$Id$
class PageContext:
"""This class is used to create object for page context."""
def __init__(self):
"""Initialize parameters for page context."""
self.page = 0
self.per_page = 0
self.has_more_page = None
self.applied_filter = ''
self.sort_column = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/PageContext.py",
"copies": "1",
"size": "4058",
"license": "mit",
"hash": -7892011146345250000,
"line_mean": 19.4949494949,
"line_max": 63,
"alpha_frac": 0.4955643174,
"autogenerated": false,
"ratio": 4.153531218014329,
"config_te... |
#$Id$
class PaymentGateway:
"""This class is used to create object for payment gateway object."""
def __init__(self):
"""Initialize parameters for Payment gateway object."""
self.gateway_name = ''
self.gateway_name_formatted = ''
self.identifier = ''
self.additional_fiel... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/PaymentGateway.py",
"copies": "1",
"size": "5037",
"license": "mit",
"hash": -82913449795984600,
"line_mean": 24.6989795918,
"line_max": 80,
"alpha_frac": 0.5709747866,
"autogenerated": false,
"ratio": 4.414548641542506,
"config_t... |
#$Id$
class Portal:
"""This class is used to create object for Portal."""
def __init__(self):
"""Initialize parameters for portal object."""
self.id = 0
self.id_string = ""
self.name = ""
self.default = None
self.gmt_time_zone = ""
self.role = ""
... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Portal.py",
"copies": "1",
"size": "4887",
"license": "mit",
"hash": 6417567809342566000,
"line_mean": 16.5161290323,
"line_max": 57,
"alpha_frac": 0.4618375281,
"autogenerated": false,
"ratio": 4.11017661900757,
"config_tes... |
#$Id$
class Project:
"""This class is used to create object for project."""
def __init__(self):
"""Initialize parameters for project object."""
self.id = 0
self.id_string = ""
self.open_task_count = 0
self.closed_task_count = 0
self.open_milestone_count =... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Project.py",
"copies": "1",
"size": "11111",
"license": "mit",
"hash": 7672466902991077000,
"line_mean": 17.8962585034,
"line_max": 59,
"alpha_frac": 0.4895148951,
"autogenerated": false,
"ratio": 4.084926470588235,
"config_... |
#$Id$
class Project:
"""This class is used to create object for Projects."""
def __init__(self):
"""Initialize the parameters for projects object."""
self.project_id = ''
self.project_name = ''
self.customer_id = ''
self.customer_name = ''
self.currency_code = ... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Project.py",
"copies": "1",
"size": "8026",
"license": "mit",
"hash": -7973795500675921000,
"line_mean": 19.792746114,
"line_max": 73,
"alpha_frac": 0.4997508099,
"autogenerated": false,
"ratio": 4.226434965771459,
"config_test": ... |
#$Id$
class RecurringExpense:
"""This class is used to create object for Recurring Expenses."""
def __init__(self):
"""Initialize parameters for Recurring expenses."""
self.account_id = ''
self.paid_through_account_id = ''
self.recurrence_name = ''
self.start_date = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/RecurringExpense.py",
"copies": "1",
"size": "15775",
"license": "mit",
"hash": -8707576081268855000,
"line_mean": 20.7586206897,
"line_max": 83,
"alpha_frac": 0.5201267829,
"autogenerated": false,
"ratio": 4.138247639034628,
"con... |
#$Id$
class SearchCriteria:
"""This class is used to create object for Criteria."""
def __init__(self):
"""Initialize parameter for search criteria."""
self.column_name = ''
self.search_text = ''
self.comparator = ''
def set_column_name(self, column_name):
"""Set c... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/SearchCriteria.py",
"copies": "1",
"size": "1260",
"license": "mit",
"hash": -6269701408765418000,
"line_mean": 18.6875,
"line_max": 59,
"alpha_frac": 0.5174603175,
"autogenerated": false,
"ratio": 4.359861591695502,
"config_test"... |
#$Id$
class Status:
"""This class is used to create object for status."""
def __init__(self):
"""Initialize parameters for status object."""
self.id = 0
self.content = ""
self.posted_by = ""
self.posted_person = ""
self.posted_time = ""
self.posted_time... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Status.py",
"copies": "1",
"size": "2280",
"license": "mit",
"hash": 7183220424019940000,
"line_mean": 17.5365853659,
"line_max": 57,
"alpha_frac": 0.4899122807,
"autogenerated": false,
"ratio": 4.1454545454545455,
"config_t... |
#$Id$
class Task:
"""This class is used to create object for tasks."""
def __init__(self):
"""Initialize parameters for tasks object."""
self.task_id = ''
self.task_name = ''
self.description = ''
self.rate = 0.0
self.budget_hours = 0
self.total_hours =... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Task.py",
"copies": "1",
"size": "5745",
"license": "mit",
"hash": 749764716455477200,
"line_mean": 18.8103448276,
"line_max": 69,
"alpha_frac": 0.4924281984,
"autogenerated": false,
"ratio": 4.100642398286938,
"config_test": fals... |
#$Id$
class TaxGroup:
"""This class is used to create object for tax group."""
def __init__(self):
"""Initialize parameters for tax group. """
self.tax_group_id = ''
self.tax_group_name = ''
self.tax_group_percentage = 0
self.taxes = ''
def set_tax_group_id(self, ta... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/TaxGroup.py",
"copies": "1",
"size": "2101",
"license": "mit",
"hash": 8365240971431508000,
"line_mean": 20.8854166667,
"line_max": 67,
"alpha_frac": 0.516420752,
"autogenerated": false,
"ratio": 4.048169556840077,
"config_test": ... |
#$Id$
class Tax:
"""This class is used to create an object for tax."""
def __init__(self):
"""Initialize parameters for tax."""
self.tax_name = ''
self.tax_amount = 0.0
self.tax_id = ''
self.tax_percentage = 0.0
self.tax_type = ''
def set_tax_id(self, tax_id... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Tax.py",
"copies": "1",
"size": "2355",
"license": "mit",
"hash": -707129205512776300,
"line_mean": 18.7899159664,
"line_max": 68,
"alpha_frac": 0.4815286624,
"autogenerated": false,
"ratio": 3.9780405405405403,
"config_test": fal... |
#$Id$
class Template:
"""This class is used to create object for templates."""
def __init__(self):
"""Initialize the parameters for templates object."""
self.template_name = ''
self.template_id = ''
self.template_type = ''
def set_template_name(self, template_name):
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Template.py",
"copies": "1",
"size": "1330",
"license": "mit",
"hash": 6243268605620555000,
"line_mean": 19.4615384615,
"line_max": 61,
"alpha_frac": 0.5255639098,
"autogenerated": false,
"ratio": 4.403973509933775,
"config_test":... |
#$Id$
class Term:
"""This class is used to create object for terms."""
def __init__(self):
"""Initialize parameters for terms."""
self.invoice_terms = ''
self.estimate_terms = ''
self.creditnotes_terms = ''
def set_invoice_terms(self, invoice_terms):
"""Set invoice ... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Term.py",
"copies": "1",
"size": "1205",
"license": "mit",
"hash": -1114756810520991400,
"line_mean": 20.9090909091,
"line_max": 56,
"alpha_frac": 0.5526970954,
"autogenerated": false,
"ratio": 4.350180505415162,
"config_test": fa... |
#$Id$
class TimeEntry:
"""This class is used to create object for Time Entry."""
def __init__(self):
"""Initialize parameters for Time entry object."""
self.time_entry_id = ''
self.project_id = ''
self.project_name = ''
self.task_id = ''
self.task_name = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/TimeEntry.py",
"copies": "1",
"size": "8584",
"license": "mit",
"hash": 7271550929050448000,
"line_mean": 19.7342995169,
"line_max": 76,
"alpha_frac": 0.4931267474,
"autogenerated": false,
"ratio": 4.011214953271028,
"config_test"... |
#$Id$
class Timelog:
"""This class is used to create object for time log."""
def __init__(self):
"""Initialize parameters for timelog."""
self.grandtotal = ""
self.role = ""
self.date = []
def set_grandtotal(self, grandtotal):
"""Set grand total.
Args:... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Timelog.py",
"copies": "1",
"size": "1138",
"license": "mit",
"hash": 4484984123238393300,
"line_mean": 15.9850746269,
"line_max": 59,
"alpha_frac": 0.4683655536,
"autogenerated": false,
"ratio": 4.29433962264151,
"config_te... |
#$Id$
class ToContact:
"""This class is used to create object for to Contacts."""
def __init__(self):
"""Initialize parameters for to contacts."""
self.first_name = ''
self.selected = None
self.phone = ''
self.email = ''
self.last_name = ''
self.salutatio... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/ToContact.py",
"copies": "1",
"size": "2988",
"license": "mit",
"hash": 4369171642278946300,
"line_mean": 17.4444444444,
"line_max": 62,
"alpha_frac": 0.4621820616,
"autogenerated": false,
"ratio": 4.311688311688312,
"config_test"... |
#$Id$
class Transaction:
"""This class is used to create object for transaction."""
def __init__(self):
"""Initialize parameters for transactions object."""
self.transaction_id = ''
self.debit_or_credit = ''
self.date = ''
self.customer_id = ''
self.payee = ''
... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/Transaction.py",
"copies": "1",
"size": "16998",
"license": "mit",
"hash": -3423598206455031000,
"line_mean": 20.8483290488,
"line_max": 77,
"alpha_frac": 0.5374161666,
"autogenerated": false,
"ratio": 4.408195020746888,
"config_t... |
#$Id$
class User:
"""This class is used to create object for user."""
def __init__(self):
"""Initialize parameters for user object."""
self.id = ""
self.name = ""
self.email = ""
self.role = ""
def set_id(self, id):
"""Set id.
Args:
... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/User.py",
"copies": "1",
"size": "1291",
"license": "mit",
"hash": 334228193418828740,
"line_mean": 14.1882352941,
"line_max": 55,
"alpha_frac": 0.405112316,
"autogenerated": false,
"ratio": 4.17799352750809,
"config_test": ... |
#$Id$
class User:
"""This class is used to create object for Users."""
def __init__(self):
"""Initialize parameters for Users object."""
self.user_id = ''
self.is_current_user = None
self.user_name = ''
self.email = ''
self.user_role = ''
self.status = ''... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/User.py",
"copies": "1",
"size": "8482",
"license": "mit",
"hash": 4149750330197514000,
"line_mean": 18.1036036036,
"line_max": 73,
"alpha_frac": 0.4757132752,
"autogenerated": false,
"ratio": 4.040971891376846,
"config_test": fal... |
#$Id$
class VendorPayment:
"""This class is used to create object for Vendor payments."""
def __init__(self):
"""Initialize parameters for Vendor payments."""
self.payment_id = ''
self.vendor_id = ''
self.vendor_name = ''
self.payment_mode = ''
self.description =... | {
"repo_name": "zoho/books-python-wrappers",
"path": "books/model/VendorPayment.py",
"copies": "1",
"size": "6674",
"license": "mit",
"hash": 3273949323260421000,
"line_mean": 20.8819672131,
"line_max": 80,
"alpha_frac": 0.5185795625,
"autogenerated": false,
"ratio": 4.2974887314874435,
"config_... |
#$Id$
class Version:
"""This class is used to create object for Version."""
def __init__(self):
"""Initialize parameters for version."""
self.id = ""
self.uploaded_by = ""
self.description = ""
self.file_size = ""
self.version = ""
self.uplo... | {
"repo_name": "zoho/projects-python-wrappers",
"path": "projects/model/Version.py",
"copies": "1",
"size": "2664",
"license": "mit",
"hash": -5722505533406240000,
"line_mean": 17.7605633803,
"line_max": 58,
"alpha_frac": 0.4947447447,
"autogenerated": false,
"ratio": 4.360065466448445,
"config_... |
""" a set of functions for interacting with databases
When possible, it's probably preferable to use a _DbConnection.DbConnect_ object
"""
from __future__ import print_function
from rdkit import RDConfig
from rdkit.Dbase.DbResultSet import DbResultSet,RandomAccessDbResultSet
def _take(fromL,what):
return map(lambd... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/Dbase/DbUtils.py",
"copies": "1",
"size": "12953",
"license": "bsd-3-clause",
"hash": -3051368705880302000,
"line_mean": 27.657079646,
"line_max": 97,
"alpha_frac": 0.621091639,
"autogenerated": false,
"ratio": 3.534242837653479,
"config_test": false... |
""" a set of functions for interacting with databases
When possible, it's probably preferable to use a _DbConnection.DbConnect_ object
"""
from __future__ import print_function
import sys
from rdkit.Dbase import DbInfo
from rdkit.Dbase import DbModule
from rdkit.Dbase.DbResultSet import DbResultSet, RandomAccessDb... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/Dbase/DbUtils.py",
"copies": "4",
"size": "13335",
"license": "bsd-3-clause",
"hash": 5275735814821164000,
"line_mean": 27.5546038544,
"line_max": 100,
"alpha_frac": 0.6197975253,
"autogenerated": false,
"ratio": 3.532450331125828,
"config_test": ... |
""" a set of functions for interacting with databases
When possible, it's probably preferable to use a _DbConnection.DbConnect_ object
"""
from rdkit import RDConfig
from rdkit.Dbase.DbResultSet import DbResultSet,RandomAccessDbResultSet
def _take(fromL,what):
return map(lambda x,y=fromL:y[x],what)
from rdkit.Dba... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Dbase/DbUtils.py",
"copies": "2",
"size": "12888",
"license": "bsd-3-clause",
"hash": 7180114529920904000,
"line_mean": 27.7037861915,
"line_max": 97,
"alpha_frac": 0.6219739292,
"autogenerated": false,
"ratio": 3.523236741388737,
"config_test": ... |
""" defines class _DbConnect_, for abstracting connections to databases
"""
from __future__ import print_function
from rdkit import RDConfig
import sys,types
class DbError(RuntimeError):
pass
from rdkit.Dbase import DbUtils,DbInfo,DbModule
class DbConnect(object):
""" This class is intended to abstract away... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/Dbase/DbConnection.py",
"copies": "1",
"size": "8911",
"license": "bsd-3-clause",
"hash": 2042391088651010600,
"line_mean": 24.7543352601,
"line_max": 93,
"alpha_frac": 0.5986982381,
"autogenerated": false,
"ratio": 4.091368227731864,
"config_test": ... |
""" defines class _DbConnect_, for abstracting connections to databases
"""
from __future__ import print_function
from rdkit import RDConfig
import sys, types
class DbError(RuntimeError):
pass
from rdkit.Dbase import DbUtils, DbInfo, DbModule
class DbConnect(object):
""" This class is intended to abstract a... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/Dbase/DbConnection.py",
"copies": "1",
"size": "8759",
"license": "bsd-3-clause",
"hash": 7791630265357377000,
"line_mean": 24.1695402299,
"line_max": 100,
"alpha_frac": 0.6090877954,
"autogenerated": false,
"ratio": 4.016047684548372,
"config_test":... |
""" defines class _DbConnect_, for abstracting connections to databases
"""
from rdkit import RDConfig
import sys,types
import exceptions
class DbError(RuntimeError):
pass
from rdkit.Dbase import DbUtils,DbInfo
import DbModule
class DbConnect(object):
""" This class is intended to abstract away many of the ... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Dbase/DbConnection.py",
"copies": "2",
"size": "8808",
"license": "bsd-3-clause",
"hash": -7911510795011859000,
"line_mean": 24.4566473988,
"line_max": 93,
"alpha_frac": 0.5976385104,
"autogenerated": false,
"ratio": 4.0910357640501624,
"config_t... |
""" code for dealing with Bayesian composite models
For a model to be useable here, it should support the following API:
- _ClassifyExample(example)_, returns a classification
Other compatibility notes:
1) To use _Composite.Grow_ there must be some kind of builder
functionality which returns a 2-tuple contai... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Composite/BayesComposite.py",
"copies": "4",
"size": "4958",
"license": "bsd-3-clause",
"hash": 8460042876339096000,
"line_mean": 27.8255813953,
"line_max": 91,
"alpha_frac": 0.669826543,
"autogenerated": false,
"ratio": 3.7674772036474162,
"co... |
""" code for dealing with composite models
For a model to be useable here, it should support the following API:
- _ClassifyExample(example)_, returns a classification
Other compatibility notes:
1) To use _Composite.Grow_ there must be some kind of builder
functionality which returns a 2-tuple containing (mod... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/ML/Composite/Composite.py",
"copies": "1",
"size": "20885",
"license": "bsd-3-clause",
"hash": 8936556680130296000,
"line_mean": 27.8466850829,
"line_max": 101,
"alpha_frac": 0.6275796026,
"autogenerated": false,
"ratio": 3.9894937917860553,
"config_... |
""" command line utility for building composite models
#DOC
**Usage**
BuildComposite [optional args] filename
Unless indicated otherwise (via command line arguments), _filename_ is
a QDAT file.
**Command Line Arguments**
- -o *filename*: name of the output file for the pickled composite
- -n *num*: number ... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/BuildComposite.py",
"copies": "4",
"size": "35920",
"license": "bsd-3-clause",
"hash": -5752471011890846000,
"line_mean": 33.9416342412,
"line_max": 100,
"alpha_frac": 0.6465200445,
"autogenerated": false,
"ratio": 3.645590175581041,
"config_te... |
""" command line utility for screening composite models
**Usage**
_ScreenComposite [optional args] modelfile(s) datafile_
Unless indicated otherwise (via command line arguments), _modelfile_ is
a file containing a pickled composite model and _filename_ is a QDAT file.
**Command Line Arguments**
- -t *threshold... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/ML/ScreenComposite.py",
"copies": "2",
"size": "54939",
"license": "bsd-3-clause",
"hash": -7196283739450902000,
"line_mean": 32.7255985267,
"line_max": 109,
"alpha_frac": 0.6049800688,
"autogenerated": false,
"ratio": 3.481117729058421,
"config_... |
""" Configuration for the RDKit Python code
"""
import os, sys
if 'RDBASE' in os.environ:
RDBaseDir = os.environ['RDBASE']
RDCodeDir = os.path.join(RDBaseDir, 'rdkit')
RDDataDir = os.path.join(RDBaseDir, 'Data')
RDDocsDir = os.path.join(RDBaseDir, 'Docs')
RDDemoDir = os.path.join(RDBaseDir, 'Demo')
RDBinD... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/RDConfig.py",
"copies": "2",
"size": "2627",
"license": "bsd-3-clause",
"hash": 311176032434034560,
"line_mean": 25.5353535354,
"line_max": 69,
"alpha_frac": 0.6844309098,
"autogenerated": false,
"ratio": 3.051103368176539,
"config_test": true,
... |
""" Defines the class _QuantTreeNode_, used to represent decision trees with automatic
quantization bounds
_QuantTreeNode_ is derived from _DecTree.DecTreeNode_
"""
from rdkit.ML.DecTree import DecTree,Tree
from rdkit.six import cmp
class QuantTreeNode(DecTree.DecTreeNode):
"""
"""
def __init__(self,*a... | {
"repo_name": "AlexanderSavelyev/rdkit",
"path": "rdkit/ML/DecTree/QuantTree.py",
"copies": "4",
"size": "2502",
"license": "bsd-3-clause",
"hash": -4669066850408949000,
"line_mean": 26.8,
"line_max": 86,
"alpha_frac": 0.6366906475,
"autogenerated": false,
"ratio": 3.8551617873651773,
"config_t... |
""" Calculation of Lipinski parameters for molecules
"""
#from Chem import rdchem
from rdkit import Chem
from rdkit.Chem import rdMolDescriptors
#-----------------------------------
# on import build the SMARTS patterns so we only have to do it once
#-----------------------------------
# The Daylight SMARTS expressi... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/Chem/Lipinski.py",
"copies": "1",
"size": "4086",
"license": "bsd-3-clause",
"hash": 307675783458763200,
"line_mean": 38.2884615385,
"line_max": 97,
"alpha_frac": 0.6857562408,
"autogenerated": false,
"ratio": 2.6008911521324,
"config_test": false,
... |
"""Cluster tree visualization using Sping
"""
try:
from rdkit.sping import pid
piddle = pid
except ImportError:
from rdkit.piddle import piddle
import ClusterUtils
import numpy
class VisOpts(object):
""" stores visualization options for cluster viewing
**Instance variables**
- x/yOffset: amount ... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/ML/Cluster/ClusterVis.py",
"copies": "1",
"size": "15882",
"license": "bsd-3-clause",
"hash": 5021258960670961000,
"line_mean": 32.5063291139,
"line_max": 98,
"alpha_frac": 0.6120765647,
"autogenerated": false,
"ratio": 3.743106292717417,
"config_tes... |
"""Cluster tree visualization using Sping
"""
try:
from rdkit.sping import pid
piddle = pid
except ImportError:
from rdkit.piddle import piddle
import ClusterUtils
import numpy
class VisOpts(object):
""" stores visualization options for cluster viewing
**Instance variables**
- x/yOffset: amount... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/ML/Cluster/ClusterVis.py",
"copies": "1",
"size": "15392",
"license": "bsd-3-clause",
"hash": 2184193016502254300,
"line_mean": 33.2044444444,
"line_max": 100,
"alpha_frac": 0.6315618503,
"autogenerated": false,
"ratio": 3.610602861834389,
"config_te... |
"""Cluster tree visualization using Sping
"""
try:
from rdkit.sping import pid
piddle = pid
except ImportError:
from rdkit.piddle import piddle
import numpy
from . import ClusterUtils
class VisOpts(object):
""" stores visualization options for cluster viewing
**Instance variables**
- x/yOffset:... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Cluster/ClusterVis.py",
"copies": "11",
"size": "15377",
"license": "bsd-3-clause",
"hash": 6919427527792495000,
"line_mean": 33.1711111111,
"line_max": 100,
"alpha_frac": 0.6334785719,
"autogenerated": false,
"ratio": 3.602858481724461,
"confi... |
""" demo code for the Logger class
"""
from sping.SVG import pidSVG
from sping.PIL import pidPIL
from sping import pid
import Logger
# create a logged canvas and draw on it
sz = (300,300)
c1 = Logger.Logger(pidSVG.SVGCanvas,sz,'foo.svg',loggerFlushCommand='clear')
c1.drawPolygon([(100,100),(100,200),(200,200),(200,1... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Logger/SpingDemo.py",
"copies": "2",
"size": "1481",
"license": "bsd-3-clause",
"hash": -2497341435541921300,
"line_mean": 29.8541666667,
"line_max": 84,
"alpha_frac": 0.7076299797,
"autogenerated": false,
"ratio": 2.8813229571984436,
"config_tes... |
""" Functionality for SATIS typing atoms
"""
from __future__ import print_function
from rdkit import Chem
from rdkit.six.moves import xrange
_debug = 0
#
# These are SMARTS patterns for the special cases used in
# SATIS typing.
#
aldehydePatt = Chem.MolFromSmarts('[CD2]=[OD1]')
ketonePatt = Chem.MolFromSmarts('[C... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/Chem/SATIS.py",
"copies": "1",
"size": "3490",
"license": "bsd-3-clause",
"hash": 3222429987020087300,
"line_mean": 27.1451612903,
"line_max": 92,
"alpha_frac": 0.6223495702,
"autogenerated": false,
"ratio": 2.9352396972245582,
"config_test": false,
... |
# Demo code for the Logger class
import Logger
class Foo:
""" a simple class
"""
def __init__(self,aVal):
self.a = aVal
def method1(self,a,b,c='foo'):
print 'method1',a,b,c
return 'method1'
def method2(self):
print 'method2'
return 'method2'
def demo1():
l = Logger.Logger(Foo,7)
... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Logger/demo.py",
"copies": "2",
"size": "1336",
"license": "bsd-3-clause",
"hash": 4828567404388620000,
"line_mean": 21.6440677966,
"line_max": 73,
"alpha_frac": 0.6407185629,
"autogenerated": false,
"ratio": 2.982142857142857,
"config_test": fal... |
""" periodic table data, **obsolete**
now that the C++ code exposes an interface to the internal PT stuff,
this data is mostly obsolete
"""
import re
blankExpr = re.compile(r'\ *\t*\ *')
# Num Symb RCov RBO RVdW Max Bnd Mass nval
periodicData=\
"""
0 X 0.0 0.0 0.0 0 0.000 0
1 H 0.230 0.330 1.200 1 1.008 1
2... | {
"repo_name": "AlexanderSavelyev/rdkit",
"path": "rdkit/Chem/PeriodicTable.py",
"copies": "5",
"size": "5882",
"license": "bsd-3-clause",
"hash": 5651774482652656000,
"line_mean": 33.8047337278,
"line_max": 93,
"alpha_frac": 0.6181570894,
"autogenerated": false,
"ratio": 1.7433313574392413,
"co... |
""" periodic table data, **obsolete**
now that the C++ code exposes an interface to the internal PT stuff,
this data is mostly obsolete
"""
# Num Symb RCov RBO RVdW Max Bnd Mass nval
periodicData = """
0 X 0.0 0.0 0.0 0 0.000 0
1 H 0.230 0.330 1.200 1 1.008 1
2 He 0.930 0.700 1.400 0 4.003 2
3 Li 0.680 1.230 1.... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/Chem/PeriodicTable.py",
"copies": "4",
"size": "5775",
"license": "bsd-3-clause",
"hash": -8604614121041290000,
"line_mean": 33.7891566265,
"line_max": 95,
"alpha_frac": 0.6225108225,
"autogenerated": false,
"ratio": 1.757455873402313,
"config_tes... |
""" This has all be re-implemented in the C++ code
"""
from __future__ import print_function
import math
class BitVect:
def __init__(self,nBits):
self.nBits = nBits
self.bits = [0]*nBits
def NumOnBits(self):
return len(self.GetOnBits())
def GetOnBits(self,sort=1,reverse=0):
l = [idx for idx in ... | {
"repo_name": "strets123/rdkit",
"path": "rdkit/DataStructs/BitVect.py",
"copies": "3",
"size": "4250",
"license": "bsd-3-clause",
"hash": 2949613029355050500,
"line_mean": 25.7295597484,
"line_max": 90,
"alpha_frac": 0.6192941176,
"autogenerated": false,
"ratio": 3.0553558590941767,
"config_te... |
""" This has all be re-implemented in the C++ code
"""
import math
class BitVect:
def __init__(self,nBits):
self.nBits = nBits
self.bits = [0]*nBits
def NumOnBits(self):
return len(self.GetOnBits())
def GetOnBits(self,sort=1,reverse=0):
l = [idx for idx in xrange(self.nBits) if self.bits[idx] =... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/DataStructs/BitVect.py",
"copies": "2",
"size": "4189",
"license": "bsd-3-clause",
"hash": 1921393998897308700,
"line_mean": 25.5126582278,
"line_max": 89,
"alpha_frac": 0.6213893531,
"autogenerated": false,
"ratio": 3.037708484408992,
"config_te... |
""" unit testing code for the C++ BitVects
"""
from __future__ import print_function
import unittest,os,sys
from rdkit.six.moves import cPickle
from rdkit.DataStructs import cDataStructs
klass = cDataStructs.SparseBitVect
def feq(n1,n2,tol=1e-4):
return abs(n1-n2)<=tol
def ieq(n1,n2):
return abs(n1-n2)==0
class V... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/DataStructs/UnitTestcBitVect.py",
"copies": "1",
"size": "10854",
"license": "bsd-3-clause",
"hash": -5713702337100957000,
"line_mean": 29.3184357542,
"line_max": 90,
"alpha_frac": 0.6360788649,
"autogenerated": false,
"ratio": 2.471874288317012,
"co... |
""" unit testing code for the C++ BitVects
"""
from __future__ import print_function
import os
import unittest
from rdkit.DataStructs import cDataStructs
from rdkit.six.moves import cPickle # @UnresolvedImport
klass = cDataStructs.SparseBitVect
def feq(n1, n2, tol=1e-4):
return abs(n1 - n2) <= tol
def ieq(n1,... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/DataStructs/UnitTestcBitVect.py",
"copies": "1",
"size": "11080",
"license": "bsd-3-clause",
"hash": -2645713607277623000,
"line_mean": 29.1086956522,
"line_max": 95,
"alpha_frac": 0.6248194946,
"autogenerated": false,
"ratio": 2.487651549169286,
"co... |
""" unit testing code for the python BitVects
"""
import unittest
from rdkit.six.moves import cPickle
from rdkit.DataStructs import BitVect
def feq(v1,v2,tol=1e-4):
return abs(v1-v2)<tol
class TestCase(unittest.TestCase):
def testVectIdx(self):
""" test indexing into BitVects
"""
v = BitVect.BitVect(... | {
"repo_name": "soerendip42/rdkit",
"path": "rdkit/DataStructs/UnitTestBitVect.py",
"copies": "3",
"size": "8576",
"license": "bsd-3-clause",
"hash": -788062747523414300,
"line_mean": 25.9685534591,
"line_max": 86,
"alpha_frac": 0.5901352612,
"autogenerated": false,
"ratio": 2.8247694334650855,
... |
"""basic unit testing code for the molecule boost wrapper
"""
from rdkit import RDConfig
import unittest,cPickle,os
from rdkit import Chem
class TestCase(unittest.TestCase):
def setUp(self):
self.bigSmiList = [
"CC1=CC(=O)C=CC1=O",
"S(SC1=NC2=CC=CC=C2S1)C3=NC4=C(S3)C=CC=C4",
"OC1=C(Cl)C=C(C=C... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Chem/UnitTestChem.py",
"copies": "2",
"size": "5153",
"license": "bsd-3-clause",
"hash": -4525461195508101000,
"line_mean": 33.5838926174,
"line_max": 108,
"alpha_frac": 0.5734523578,
"autogenerated": false,
"ratio": 2.0097503900156006,
"config_t... |
""" code for dealing with resemblance (metric) matrices
Here's how the matrices are stored:
'[(0,1),(0,2),(1,2),(0,3),(1,3),(2,3)...] (row,col), col>row'
or, alternatively the matrix can be drawn, with indices as:
|| - || 0 || 1 || 3
|| - || - || 2 || 4
|| - || - || - || 5
... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/ML/Cluster/Resemblance.py",
"copies": "1",
"size": "3291",
"license": "bsd-3-clause",
"hash": -3045037407623741000,
"line_mean": 22.013986014,
"line_max": 91,
"alpha_frac": 0.5958675175,
"autogenerated": false,
"ratio": 3.2681231380337636,
"config_te... |
"""unit testing code for the SATIS numbers
"""
from __future__ import print_function
import unittest
from rdkit.Chem import *
from rdkit.Chem import SATIS
from rdkit.six.moves import xrange
class TestCase(unittest.TestCase):
def setUp(self):
print('\n%s: ' % self.shortDescription(), end='')
def test1(self)... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/Chem/UnitTestSATIS.py",
"copies": "1",
"size": "1538",
"license": "bsd-3-clause",
"hash": 5093941320331542000,
"line_mean": 33.1777777778,
"line_max": 100,
"alpha_frac": 0.5624187256,
"autogenerated": false,
"ratio": 3.082164328657315,
"config_test":... |
""" Automatic search for quantization bounds
This uses the expected informational gain to determine where quantization bounds should
lie.
**Notes**:
- bounds are less than, so if the bounds are [1.,2.],
[0.9,1.,1.1,2.,2.2] -> [0,1,1,2,2]
"""
from __future__ import print_function
import numpy
from rdkit.ML.In... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/ML/Data/Quantize.py",
"copies": "1",
"size": "10595",
"license": "bsd-3-clause",
"hash": 6258270919210217000,
"line_mean": 25.2252475248,
"line_max": 90,
"alpha_frac": 0.628975932,
"autogenerated": false,
"ratio": 3.403469322197237,
"config_test": fa... |
""" various statistical operations on data
"""
import numpy
import math
def StandardizeMatrix(mat):
"""
This is the standard *subtract off the average and divide by the deviation*
standardization function.
**Arguments**
- mat: a numpy array
**Notes**
- in addition to being returned, _mat_ ... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Data/Stats.py",
"copies": "5",
"size": "6719",
"license": "bsd-3-clause",
"hash": 8351514614420589000,
"line_mean": 28.3406113537,
"line_max": 79,
"alpha_frac": 0.5643696979,
"autogenerated": false,
"ratio": 2.2737732656514384,
"config_test": f... |
""" Exposes functionality for MOE-like approximate molecular surface area
descriptors.
The MOE-like VSA descriptors are also calculated here
"""
from __future__ import print_function
from rdkit import Chem
from rdkit.Chem.PeriodicTable import numTable
from rdkit.Chem import Crippen
from rdkit.Chem import rdPartialC... | {
"repo_name": "soerendip42/rdkit",
"path": "rdkit/Chem/MolSurf.py",
"copies": "4",
"size": "13832",
"license": "bsd-3-clause",
"hash": -963004292698474800,
"line_mean": 30.652173913,
"line_max": 94,
"alpha_frac": 0.5947802198,
"autogenerated": false,
"ratio": 2.7537328289866614,
"config_test": ... |
""" Exposes functionality for MOE-like approximate molecular surface area
descriptors.
The MOE-like VSA descriptors are also calculated here
"""
from rdkit import Chem
from rdkit.Chem.PeriodicTable import numTable
from rdkit.Chem import Crippen
from rdkit.Chem import rdPartialCharges,rdMolDescriptors
import numpy
i... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/Chem/MolSurf.py",
"copies": "1",
"size": "13782",
"license": "bsd-3-clause",
"hash": 1202441314341587500,
"line_mean": 30.6100917431,
"line_max": 94,
"alpha_frac": 0.5947612828,
"autogenerated": false,
"ratio": 2.751996805111821,
"config_test": f... |
""" Interface to the C++ Murtagh hierarchic clustering code
"""
from rdkit.ML.Cluster import Clusters
from rdkit.ML.Cluster.Clustering import MurtaghCluster,MurtaghDistCluster
import numpy
# constants to select the clustering algorithm
WARDS=1
SLINK=2
CLINK=3
UPGMA=4
MCQUITTY=5
GOWER=6
CENTROID=7
# descriptions of ... | {
"repo_name": "strets123/rdkit",
"path": "rdkit/ML/Cluster/Murtagh.py",
"copies": "6",
"size": "2935",
"license": "bsd-3-clause",
"hash": 6244210261824371000,
"line_mean": 25.6818181818,
"line_max": 73,
"alpha_frac": 0.6626916525,
"autogenerated": false,
"ratio": 3.1593110871905274,
"config_tes... |
""" Interface to the C++ Murtagh hierarchic clustering code
"""
import numpy
from rdkit.ML.Cluster import Clusters
from rdkit.ML.Cluster.Clustering import MurtaghCluster, MurtaghDistCluster
# constants to select the clustering algorithm
WARDS = 1
SLINK = 2
CLINK = 3
UPGMA = 4
MCQUITTY = 5
GOWER = 6
CENTROID = 7
# d... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Cluster/Murtagh.py",
"copies": "4",
"size": "2982",
"license": "bsd-3-clause",
"hash": 6136189354368038000,
"line_mean": 26.1090909091,
"line_max": 86,
"alpha_frac": 0.6522468142,
"autogenerated": false,
"ratio": 3.12906610703043,
"config_test"... |
""" Python functions for manipulating molecular graphs
In theory much of the functionality in here should be migrating into the
C/C++ codebase.
"""
import numpy
from rdkit import Chem
from rdkit import DataStructs
from rdkit.six.moves import xrange
import types
def CharacteristicPolynomial(mol, mat=None):
""" cal... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/Chem/Graphs.py",
"copies": "5",
"size": "1343",
"license": "bsd-3-clause",
"hash": 3169020811040307700,
"line_mean": 24.8269230769,
"line_max": 75,
"alpha_frac": 0.6827997022,
"autogenerated": false,
"ratio": 3.1900237529691213,
"config_test": fal... |
""" contains the Cluster class for representing hierarchical cluster trees
"""
from __future__ import print_function
import numpy
from rdkit.six.moves import reduce
from rdkit.six import cmp
CMPTOL = 1e-6
class Cluster(object):
"""a class for storing clusters/data
**General Remarks**
- It is assumed t... | {
"repo_name": "jandom/rdkit",
"path": "rdkit/ML/Cluster/Clusters.py",
"copies": "1",
"size": "7885",
"license": "bsd-3-clause",
"hash": -4730743003609806000,
"line_mean": 23.8738170347,
"line_max": 95,
"alpha_frac": 0.6144578313,
"autogenerated": false,
"ratio": 3.6437153419593344,
"config_test... |
""" contains the Cluster class for representing hierarchical cluster trees
"""
from __future__ import print_function
from rdkit.six import cmp
CMPTOL = 1e-6
class Cluster(object):
"""a class for storing clusters/data
**General Remarks**
- It is assumed that the bottom of any cluster hierarchy tree is ... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Cluster/Clusters.py",
"copies": "4",
"size": "7679",
"license": "bsd-3-clause",
"hash": -1746190875493639700,
"line_mean": 23.5335463259,
"line_max": 95,
"alpha_frac": 0.6164865217,
"autogenerated": false,
"ratio": 3.6601525262154433,
"config_t... |
""" contains the Cluster class for representing hierarchical cluster trees
"""
import numpy
CMPTOL=1e-6
class Cluster(object):
"""a class for storing clusters/data
**General Remarks**
- It is assumed that the bottom of any cluster hierarchy tree is composed of
the individual data points which wer... | {
"repo_name": "rdkit/rdkit-orig",
"path": "rdkit/ML/Cluster/Clusters.py",
"copies": "2",
"size": "7573",
"license": "bsd-3-clause",
"hash": -269112209765461820,
"line_mean": 24.3277591973,
"line_max": 109,
"alpha_frac": 0.6167965139,
"autogenerated": false,
"ratio": 3.661992263056093,
"config_t... |
"""utility functions for clustering
"""
def GetNodeList(cluster):
"""returns an ordered list of all nodes below cluster
the ordering is done using the lengths of the child nodes
**Arguments**
- cluster: the cluster in question
**Returns**
- a list of the leaves below this cluster
"""
if ... | {
"repo_name": "adalke/rdkit",
"path": "rdkit/ML/Cluster/ClusterUtils.py",
"copies": "4",
"size": "4245",
"license": "bsd-3-clause",
"hash": 1982911366184751400,
"line_mean": 23.2571428571,
"line_max": 89,
"alpha_frac": 0.6445229682,
"autogenerated": false,
"ratio": 3.5140728476821192,
"config_t... |
"""utility functions for clustering
"""
def GetNodeList(cluster):
"""returns an ordered list of all nodes below cluster
the ordering is done using the lengths of the child nodes
**Arguments**
- cluster: the cluster in question
**Returns**
- a list of the leaves below this cluster
"""
if... | {
"repo_name": "rvianello/rdkit",
"path": "rdkit/ML/Cluster/ClusterUtils.py",
"copies": "11",
"size": "4413",
"license": "bsd-3-clause",
"hash": 976770165609097000,
"line_mean": 22.9836956522,
"line_max": 92,
"alpha_frac": 0.6285973261,
"autogenerated": false,
"ratio": 3.5531400966183573,
"confi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.