id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,600 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.BaseEngine | from pandas.errors import AbstractMethodError, DatabaseError
class BaseEngine:
def insert_records(self, table: SQLTable, con, frame, name: str, index: bool | str | list[str] | None=True, schema=None, chunksize: int | None=None, method=None, **engine_kwargs) -> int | None:
"""
Inserts data into alr... |
class BaseEngine:
def insert_records(self, table: SQLTable, con, frame, name: str, index: bool | str | list[str] | None=True, schema=None, chunksize: int | None=None, method=None, **engine_kwargs) -> int | None:
'''
Inserts data into already-prepared table
'''
pass | 2 | 1 | 16 | 0 | 13 | 3 | 1 | 0.21 | 0 | 6 | 1 | 1 | 1 | 0 | 1 | 1 | 17 | 0 | 14 | 13 | 1 | 3 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
7,601 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.PandasSQL | from typing import TYPE_CHECKING, Any, Literal, Self, cast, overload
from abc import ABC, abstractmethod
from pandas.core.api import DataFrame, Series
from pandas.core.base import PandasObject
class PandasSQL(PandasObject, ABC):
"""
Subclasses Should define read_query and to_sql.
"""
def __enter__(sel... |
class PandasSQL(PandasObject, ABC):
'''
Subclasses Should define read_query and to_sql.
'''
def __enter__(self) -> Self:
pass
def __exit__(self, *args) -> None:
pass
def read_table(self, table_name: str, index_col: str | list[str] | None=None, coerce_float: bool=True, par... | 14 | 1 | 7 | 0 | 7 | 0 | 1 | 0.05 | 2 | 7 | 0 | 3 | 8 | 0 | 8 | 35 | 73 | 8 | 62 | 54 | 8 | 3 | 17 | 9 | 8 | 1 | 4 | 0 | 8 |
7,602 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.SQLAlchemyEngine | from pandas.compat._optional import import_optional_dependency
import re
class SQLAlchemyEngine(BaseEngine):
def __init__(self) -> None:
import_optional_dependency('sqlalchemy', extra='sqlalchemy is required for SQL support.')
def insert_records(self, table: SQLTable, con, frame, name: str, index: bo... |
class SQLAlchemyEngine(BaseEngine):
def __init__(self) -> None:
pass
def insert_records(self, table: SQLTable, con, frame, name: str, index: bool | str | list[str] | None=True, schema=None, chunksize: int | None=None, method=None, **engine_kwargs) -> int | None:
pass | 3 | 0 | 15 | 1 | 13 | 1 | 2 | 0.07 | 1 | 6 | 1 | 0 | 2 | 0 | 2 | 3 | 31 | 2 | 27 | 18 | 12 | 2 | 13 | 6 | 9 | 3 | 1 | 2 | 4 |
7,603 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.SQLDatabase | from pandas.core.api import DataFrame, Series
from pandas.core.dtypes.common import is_dict_like, is_list_like, is_object_dtype, is_string_dtype
from typing import TYPE_CHECKING, Any, Literal, Self, cast, overload
from contextlib import ExitStack, contextmanager
from pandas.util._exceptions import find_stack_level
impo... | null | 20 | 8 | 30 | 2 | 18 | 10 | 2 | 0.62 | 1 | 12 | 1 | 0 | 14 | 4 | 15 | 50 | 483 | 46 | 271 | 119 | 177 | 167 | 108 | 48 | 85 | 6 | 5 | 4 | 37 |
7,604 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.SQLTable | from pandas.core.api import DataFrame, Series
from pandas.core.dtypes.common import is_dict_like, is_list_like, is_object_dtype, is_string_dtype
from pandas._libs import lib
from datetime import date, datetime, time
import pandas.core.common as com
from pandas._config import using_string_dtype
from pandas.core.base imp... |
class SQLTable(PandasObject):
'''
For mapping Pandas tables to SQL tables.
Uses fact that table is reflected by SQLAlchemy to
do better type conversions.
Also holds various flags needed to avoid having to
pass them between functions all the time.
'''
def __init__(self, name: str, panda... | 18 | 5 | 29 | 3 | 23 | 4 | 6 | 0.18 | 1 | 30 | 0 | 1 | 17 | 10 | 17 | 24 | 526 | 67 | 390 | 147 | 304 | 72 | 246 | 85 | 220 | 18 | 2 | 4 | 98 |
7,605 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.SQLiteDatabase | from pandas.core.api import DataFrame, Series
from pandas.core.dtypes.common import is_dict_like, is_list_like, is_object_dtype, is_string_dtype
from typing import TYPE_CHECKING, Any, Literal, Self, cast, overload
from contextlib import ExitStack, contextmanager
from pandas.errors import AbstractMethodError, DatabaseEr... |
class SQLiteDatabase(PandasSQL):
'''
Version of SQLDatabase to support SQLite connections (fallback without
SQLAlchemy). This should only be used internally.
Parameters
----------
con : sqlite connection object
'''
def __init__(self, con) -> None:
pass
@contextmanager
d... | 15 | 3 | 21 | 1 | 16 | 4 | 2 | 0.29 | 1 | 14 | 1 | 0 | 10 | 1 | 11 | 46 | 250 | 23 | 178 | 74 | 125 | 52 | 81 | 31 | 69 | 6 | 5 | 4 | 27 |
7,606 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/sql.py | pandas.io.sql.SQLiteTable | from pandas.core.dtypes.common import is_dict_like, is_list_like, is_object_dtype, is_string_dtype
from pandas._libs import lib
from datetime import date, datetime, time
from typing import TYPE_CHECKING, Any, Literal, Self, cast, overload
from pandas.util._exceptions import find_stack_level
import warnings
from pandas.... |
class SQLiteTable(SQLTable):
'''
Patch the SQLTable for fallback support.
Instead of a table variable just use the Create Table statement.
'''
def __init__(self, *args, **kwargs) -> None:
pass
def _register_date_adapters(self) -> None:
pass
def _adapt_time(t) -> str:
... | 15 | 2 | 15 | 2 | 11 | 2 | 2 | 0.18 | 1 | 12 | 0 | 0 | 9 | 0 | 9 | 33 | 162 | 31 | 112 | 42 | 100 | 20 | 81 | 40 | 69 | 8 | 3 | 2 | 24 |
7,607 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataMissingValue | from typing import IO, TYPE_CHECKING, AnyStr, Final, Self, cast
import numpy as np
import struct
class StataMissingValue:
"""
An observation's missing value.
Parameters
----------
value : {int, float}
The Stata missing value code
Notes
-----
More information: <https://www.stat... |
class StataMissingValue:
'''
An observation's missing value.
Parameters
----------
value : {int, float}
The Stata missing value code
Notes
-----
More information: <https://www.stata.com/help.cgi?missing>
Integer missing values make the code '.', '.a', ..., '.z' to the ranges... | 11 | 3 | 7 | 0 | 5 | 2 | 2 | 0.7 | 0 | 7 | 0 | 0 | 6 | 2 | 7 | 7 | 132 | 18 | 67 | 25 | 56 | 47 | 49 | 22 | 41 | 6 | 0 | 2 | 13 |
7,608 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataNonCatValueLabel | class StataNonCatValueLabel(StataValueLabel):
"""
Prepare formatted version of value labels
Parameters
----------
labname : str
Value label name
value_labels: Dictionary
Mapping of values to labels
encoding : {"latin-1", "utf-8"}
Encoding to use for value labels.
... | class StataNonCatValueLabel(StataValueLabel):
'''
Prepare formatted version of value labels
Parameters
----------
labname : str
Value label name
value_labels: Dictionary
Mapping of values to labels
encoding : {"latin-1", "utf-8"}
Encoding to use for value labels.
... | 2 | 1 | 15 | 1 | 14 | 1 | 2 | 0.8 | 1 | 4 | 0 | 0 | 1 | 3 | 1 | 4 | 29 | 3 | 15 | 10 | 8 | 12 | 8 | 5 | 6 | 2 | 1 | 1 | 2 |
7,609 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataParser | import struct
import numpy as np
class StataParser:
def __init__(self) -> None:
self.DTYPE_MAP = dict([(i, np.dtype(f'S{i}')) for i in range(1, 245)] + [(251, np.dtype(np.int8)), (252, np.dtype(np.int16)), (253, np.dtype(np.int32)), (254, np.dtype(np.float32)), (255, np.dtype(np.float64))])
self.D... |
class StataParser:
def __init__(self) -> None:
pass | 2 | 0 | 169 | 3 | 144 | 29 | 1 | 0.2 | 0 | 6 | 0 | 2 | 1 | 10 | 1 | 1 | 170 | 3 | 145 | 16 | 143 | 29 | 16 | 16 | 14 | 1 | 0 | 0 | 1 |
7,610 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataReader | from collections import abc
import sys
from typing import IO, TYPE_CHECKING, AnyStr, Final, Self, cast
import numpy as np
from pandas.util._exceptions import find_stack_level
from pandas.util._decorators import Appender, doc
from pandas.io.common import get_handle
from pandas.core.frame import DataFrame
from io import ... |
class StataReader(StataParser, abc.Iterator):
def __init__(self, path_or_buf: FilePath | ReadBuffer[bytes], convert_dates: bool=True, convert_categoricals: bool=True, index_col: str | None=None, convert_missing: bool=False, preserve_dtypes: bool=True, columns: Sequence[str] | None=None, order_categoricals: bool=T... | 49 | 13 | 22 | 2 | 16 | 5 | 4 | 0.31 | 2 | 29 | 1 | 0 | 45 | 45 | 45 | 71 | 1,034 | 129 | 717 | 242 | 632 | 219 | 547 | 195 | 501 | 36 | 5 | 5 | 180 |
7,611 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataStrLWriter | from pandas import Categorical, DatetimeIndex, NaT, Timestamp, isna, to_datetime
import struct
import sys
import numpy as np
from io import BytesIO
from pandas.core.frame import DataFrame
class StataStrLWriter:
"""
Converter for Stata StrLs
Stata StrLs map 8 byte values to strings which are stored using a... |
class StataStrLWriter:
'''
Converter for Stata StrLs
Stata StrLs map 8 byte values to strings which are stored using a
dictionary-like format where strings are keyed to two values.
Parameters
----------
df : DataFrame
DataFrame to convert
columns : Sequence[str]
List of ... | 5 | 3 | 39 | 5 | 20 | 15 | 4 | 1.04 | 0 | 10 | 0 | 0 | 4 | 10 | 4 | 4 | 188 | 27 | 81 | 46 | 70 | 84 | 71 | 40 | 66 | 6 | 0 | 3 | 17 |
7,612 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataValueLabel | import struct
from pandas.util._exceptions import find_stack_level
from pandas.errors import CategoricalConversionWarning, InvalidColumnName, Pandas4Warning, PossiblePrecisionLoss, ValueLabelTypeMismatch
import warnings
from pandas.core.series import Series
import numpy as np
from io import BytesIO
class StataValueLab... |
class StataValueLabel:
'''
Parse a categorical column and prepare formatted output
Parameters
----------
catarray : Series
Categorical Series to encode
encoding : {"latin-1", "utf-8"}
Encoding to use for value labels.
'''
def __init__(self, catarray: Series, encoding: L... | 4 | 3 | 33 | 5 | 19 | 9 | 4 | 0.62 | 0 | 10 | 0 | 1 | 3 | 9 | 3 | 3 | 113 | 20 | 58 | 29 | 52 | 36 | 52 | 27 | 48 | 6 | 0 | 2 | 11 |
7,613 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataWriter | from pandas.errors import CategoricalConversionWarning, InvalidColumnName, Pandas4Warning, PossiblePrecisionLoss, ValueLabelTypeMismatch
from pandas.util._decorators import Appender, doc
from pandas.util._exceptions import find_stack_level
from datetime import datetime, timedelta
from pandas.core.dtypes.common import e... | @doc(storage_options=_shared_docs['storage_options'], compression_options=_shared_docs['compression_options'] % 'fname')
class StataWriter(StataParser):
'''
A class for writing Stata binary dta files
Parameters
----------
fname : path (string), buffer or path object
string, pathlib.Path or
... | 35 | 18 | 19 | 2 | 13 | 5 | 3 | 0.54 | 1 | 29 | 3 | 1 | 31 | 21 | 32 | 33 | 727 | 94 | 412 | 145 | 358 | 222 | 311 | 123 | 278 | 12 | 1 | 4 | 103 |
7,614 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataWriter117 | import struct
from pandas.core.series import Series
import numpy as np
from datetime import datetime, timedelta
from io import BytesIO
from pandas.core.frame import DataFrame
class StataWriter117(StataWriter):
"""
A class for writing Stata binary dta files in Stata 13 format (117)
Parameters
---------... |
class StataWriter117(StataWriter):
'''
A class for writing Stata binary dta files in Stata 13 format (117)
Parameters
----------
fname : path (string), buffer or path object
string, pathlib.Path or
object implementing a binary write() functions. If using a buffer
then the bu... | 22 | 8 | 14 | 0 | 12 | 2 | 3 | 0.47 | 1 | 19 | 1 | 1 | 19 | 5 | 20 | 53 | 383 | 35 | 237 | 96 | 196 | 112 | 155 | 74 | 134 | 8 | 2 | 3 | 51 |
7,615 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/stata.py | pandas.io.stata.StataWriterUTF8 | from pandas.core.frame import DataFrame
from datetime import datetime, timedelta
class StataWriterUTF8(StataWriter117):
"""
Stata binary dta file writing in Stata 15 (118) and 16 (119) formats
DTA 118 and 119 format files support unicode string data (both fixed
and strL) format. Unicode is also suppor... |
class StataWriterUTF8(StataWriter117):
'''
Stata binary dta file writing in Stata 15 (118) and 16 (119) formats
DTA 118 and 119 format files support unicode string data (both fixed
and strL) format. Unicode is also supported in value labels, variable
labels and the dataset label. Format 119 is auto... | 3 | 2 | 40 | 3 | 28 | 10 | 4 | 1.79 | 1 | 13 | 0 | 0 | 2 | 1 | 2 | 55 | 181 | 20 | 58 | 22 | 39 | 104 | 14 | 6 | 11 | 5 | 3 | 2 | 8 |
7,616 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/xml.py | pandas.io.xml._EtreeFrameParser | from typing import TYPE_CHECKING, Any
from pandas.core.dtypes.common import is_list_like
class _EtreeFrameParser(_XMLFrameParser):
"""
Internal class to parse XML into DataFrames with the Python
standard library XML module: `xml.etree.ElementTree`.
"""
def parse_data(self) -> list[dict[str, str | ... |
class _EtreeFrameParser(_XMLFrameParser):
'''
Internal class to parse XML into DataFrames with the Python
standard library XML module: `xml.etree.ElementTree`.
'''
def parse_data(self) -> list[dict[str, str | None]]:
pass
def _validate_path(self) -> list[Any]:
'''
Note... | 5 | 2 | 25 | 4 | 20 | 2 | 5 | 0.13 | 1 | 13 | 0 | 0 | 4 | 4 | 4 | 11 | 109 | 19 | 80 | 27 | 68 | 10 | 47 | 18 | 40 | 7 | 1 | 3 | 18 |
7,617 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/xml.py | pandas.io.xml._LxmlFrameParser | from pandas.core.dtypes.common import is_list_like
from typing import TYPE_CHECKING, Any
import io
class _LxmlFrameParser(_XMLFrameParser):
"""
Internal class to parse XML into :class:`~pandas.DataFrame` with third-party
full-featured XML library, ``lxml``, that supports
``XPath`` 1.0 and XSLT 1.0.
... |
class _LxmlFrameParser(_XMLFrameParser):
'''
Internal class to parse XML into :class:`~pandas.DataFrame` with third-party
full-featured XML library, ``lxml``, that supports
``XPath`` 1.0 and XSLT 1.0.
'''
def parse_data(self) -> list[dict[str, str | None]]:
'''
Parse xml data.
... | 6 | 3 | 24 | 4 | 17 | 2 | 4 | 0.19 | 1 | 9 | 0 | 0 | 5 | 5 | 5 | 12 | 131 | 26 | 88 | 31 | 73 | 17 | 53 | 22 | 44 | 6 | 1 | 3 | 19 |
7,618 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/xml.py | pandas.io.xml._XMLFrameParser | from os import PathLike
from pandas.util._decorators import doc
from pandas.io.common import get_handle, infer_compression, is_fsspec_url, is_url, stringify_path
from pandas.core.shared_docs import _shared_docs
from typing import TYPE_CHECKING, Any
from pandas.errors import AbstractMethodError, ParserError
from pandas.... | @doc(storage_options=_shared_docs['storage_options'], decompression_options=_shared_docs['decompression_options'] % 'path_or_buffer')
class _XMLFrameParser:
'''
Internal subclass to parse XML into DataFrames.
Parameters
----------
path_or_buffer : a valid JSON ``str``, path object or file-like objec... | 9 | 7 | 38 | 6 | 24 | 9 | 7 | 0.72 | 0 | 18 | 0 | 2 | 7 | 14 | 7 | 7 | 358 | 69 | 168 | 50 | 142 | 121 | 87 | 32 | 79 | 28 | 0 | 6 | 50 |
7,619 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_core.py | pandas.plotting._core.PlotAccessor | from typing import TYPE_CHECKING, Literal
from pandas.util._decorators import Appender, Substitution
from pandas.core.base import PandasObject
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
class PlotAccessor(PandasObject):
"""
Make... | null | 24 | 12 | 63 | 10 | 19 | 35 | 4 | 1.57 | 1 | 16 | 0 | 0 | 12 | 1 | 13 | 20 | 1,268 | 229 | 406 | 237 | 189 | 638 | 113 | 39 | 99 | 23 | 2 | 5 | 46 |
7,620 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/boxplot.py | pandas.plotting._matplotlib.boxplot.BoxPlot | import pandas as pd
from pandas.plotting._matplotlib.groupby import create_iter_data_given_by
import numpy as np
from pandas.io.formats.printing import pprint_thing
from pandas.plotting._matplotlib.style import get_standard_colors
from pandas.util._decorators import cache_readonly
from typing import TYPE_CHECKING, Lite... |
class BoxPlot(LinePlot):
@property
def _kind(self) -> Literal['box']:
pass
class BP(NamedTuple):
def __init__(self, data, return_type: str='axes', **kwargs) -> None:
pass
@classmethod
def _plot(cls, ax: Axes, y: np.ndarray, column_num=None, return_type: str='axes', **kwds):
... | 27 | 0 | 10 | 1 | 8 | 1 | 2 | 0.15 | 1 | 9 | 0 | 0 | 15 | 5 | 16 | 96 | 202 | 31 | 150 | 59 | 114 | 23 | 105 | 40 | 87 | 6 | 6 | 3 | 38 |
7,621 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.DatetimeConverter | import matplotlib.units as munits
import pandas.core.tools.datetimes as tools
from pandas.core.dtypes.common import is_float, is_float_dtype, is_integer, is_integer_dtype, is_nested_list_like
from pandas import Index, Series, get_option
import pandas.core.common as com
from datetime import datetime, tzinfo
import matpl... |
class DatetimeConverter(mdates.DateConverter):
@staticmethod
def convert(values, unit, axis):
pass
@staticmethod
def _convert_1d(values, unit, axis):
pass
def try_parse(values):
pass
@staticmethod
def axisinfo(unit: tzinfo | None, axis) -> munits.AxisIn... | 8 | 1 | 16 | 2 | 12 | 2 | 4 | 0.17 | 1 | 11 | 2 | 0 | 0 | 0 | 3 | 3 | 64 | 10 | 46 | 13 | 38 | 8 | 37 | 10 | 32 | 10 | 1 | 2 | 15 |
7,622 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.MilliSecondLocator | from pandas.core.indexes.datetimes import date_range
import matplotlib.dates as mdates
class MilliSecondLocator(mdates.DateLocator):
UNIT = 1.0 / (24 * 3600 * 1000)
def __init__(self, tz) -> None:
mdates.DateLocator.__init__(self, tz)
self._interval = 1.0
def _get_unit(self):
retu... |
class MilliSecondLocator(mdates.DateLocator):
def __init__(self, tz) -> None:
pass
def _get_unit(self):
pass
@staticmethod
def get_unit_generic(freq):
pass
def __call__(self):
pass
def _get_interval(self):
pass
def autoscale(self):
'''
... | 8 | 1 | 11 | 2 | 9 | 1 | 2 | 0.15 | 1 | 4 | 0 | 0 | 5 | 1 | 6 | 6 | 76 | 15 | 54 | 27 | 46 | 8 | 49 | 26 | 42 | 7 | 1 | 2 | 13 |
7,623 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.PandasAutoDateFormatter | import matplotlib.dates as mdates
class PandasAutoDateFormatter(mdates.AutoDateFormatter):
def __init__(self, locator, tz=None, defaultfmt: str='%Y-%m-%d') -> None:
mdates.AutoDateFormatter.__init__(self, locator, tz, defaultfmt) |
class PandasAutoDateFormatter(mdates.AutoDateFormatter):
def __init__(self, locator, tz=None, defaultfmt: str='%Y-%m-%d') -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
7,624 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.PandasAutoDateLocator | import matplotlib.dates as mdates
class PandasAutoDateLocator(mdates.AutoDateLocator):
def get_locator(self, dmin, dmax):
"""Pick the best locator based on a distance."""
tot_sec = (dmax - dmin).total_seconds()
if abs(tot_sec) < self.minticks:
self._freq = -1
locato... |
class PandasAutoDateLocator(mdates.AutoDateLocator):
def get_locator(self, dmin, dmax):
'''Pick the best locator based on a distance.'''
pass
def _get_unit(self):
pass | 3 | 1 | 11 | 2 | 8 | 4 | 2 | 0.41 | 1 | 1 | 1 | 0 | 2 | 1 | 2 | 2 | 24 | 4 | 17 | 6 | 14 | 7 | 13 | 6 | 10 | 2 | 1 | 1 | 3 |
7,625 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.PeriodConverter | from pandas.core.indexes.period import Period, PeriodIndex, period_range
from pandas import Index, Series, get_option
import numpy as np
from pandas.core.dtypes.common import is_float, is_float_dtype, is_integer, is_integer_dtype, is_nested_list_like
import matplotlib.dates as mdates
from datetime import datetime, tzin... |
class PeriodConverter(mdates.DateConverter):
@staticmethod
def convert(values, units, axis):
pass
@staticmethod
def convert_from_freq(values, freq):
pass
@staticmethod
def _convert_1d(values, freq):
pass | 7 | 0 | 17 | 0 | 16 | 1 | 5 | 0.06 | 1 | 10 | 0 | 0 | 0 | 0 | 2 | 2 | 38 | 1 | 35 | 6 | 30 | 2 | 20 | 4 | 17 | 7 | 1 | 2 | 9 |
7,626 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.TimeConverter | import datetime as pydt
from pandas.core.dtypes.common import is_float, is_float_dtype, is_integer, is_integer_dtype, is_nested_list_like
import matplotlib as mpl
import matplotlib.units as munits
from pandas import Index, Series, get_option
import numpy as np
class TimeConverter(munits.ConversionInterface):
@sta... |
class TimeConverter(munits.ConversionInterface):
@staticmethod
def convert(value, unit, axis):
pass
@staticmethod
def axisinfo(unit, axis) -> munits.AxisInfo | None:
pass
@staticmethod
def default_units(x, axis) -> str:
pass | 7 | 0 | 6 | 0 | 6 | 0 | 2 | 0.05 | 1 | 5 | 1 | 0 | 0 | 0 | 3 | 3 | 24 | 3 | 21 | 10 | 14 | 1 | 18 | 7 | 14 | 4 | 1 | 1 | 7 |
7,627 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.TimeFormatter | import datetime as pydt
import matplotlib as mpl
class TimeFormatter(mpl.ticker.Formatter):
def __init__(self, locs) -> None:
self.locs = locs
def __call__(self, x, pos: int | None=0) -> str:
"""
Return the time of day as a formatted string.
Parameters
----------
... |
class TimeFormatter(mpl.ticker.Formatter):
def __init__(self, locs) -> None:
pass
def __call__(self, x, pos: int | None=0) -> str:
'''
Return the time of day as a formatted string.
Parameters
----------
x : float
The time of day specified as seconds... | 3 | 1 | 18 | 2 | 9 | 8 | 3 | 0.84 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 2 | 38 | 4 | 19 | 12 | 16 | 16 | 17 | 12 | 14 | 4 | 1 | 1 | 5 |
7,628 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.TimeSeries_DateFormatter | import matplotlib as mpl
import numpy as np
import warnings
from typing import TYPE_CHECKING, Any, cast
from pandas._libs.tslibs import Timestamp, to_offset
from pandas.core.indexes.period import Period, PeriodIndex, period_range
class TimeSeries_DateFormatter(mpl.ticker.Formatter):
"""
Formats the ticks along... |
class TimeSeries_DateFormatter(mpl.ticker.Formatter):
'''
Formats the ticks along an axis controlled by a :class:`PeriodIndex`.
Parameters
----------
freq : BaseOffset
Valid frequency specifier.
minor_locator : bool, default False
Whether the current formatter should apply to mi... | 5 | 3 | 14 | 1 | 12 | 1 | 2 | 0.37 | 1 | 9 | 0 | 0 | 4 | 9 | 4 | 4 | 74 | 9 | 49 | 25 | 38 | 18 | 37 | 18 | 32 | 3 | 1 | 2 | 8 |
7,629 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.TimeSeries_DateLocator | import matplotlib as mpl
import numpy as np
from pandas._libs.tslibs import Timestamp, to_offset
class TimeSeries_DateLocator(mpl.ticker.Locator):
"""
Locates the ticks along an axis controlled by a :class:`Series`.
Parameters
----------
freq : BaseOffset
Valid frequency specifier.
min... |
class TimeSeries_DateLocator(mpl.ticker.Locator):
'''
Locates the ticks along an axis controlled by a :class:`Series`.
Parameters
----------
freq : BaseOffset
Valid frequency specifier.
minor_locator : {False, True}, optional
Whether the locator is for minor ticks (True) or not.... | 5 | 4 | 15 | 1 | 12 | 3 | 2 | 0.58 | 1 | 5 | 0 | 0 | 4 | 10 | 4 | 4 | 82 | 9 | 48 | 31 | 33 | 28 | 37 | 21 | 32 | 3 | 1 | 1 | 8 |
7,630 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/converter.py | pandas.plotting._matplotlib.converter.TimeSeries_TimedeltaFormatter | import matplotlib as mpl
import numpy as np
class TimeSeries_TimedeltaFormatter(mpl.ticker.Formatter):
"""
Formats the ticks along an axis controlled by a :class:`TimedeltaIndex`.
"""
axis: Axis
@staticmethod
def format_timedelta_ticks(x, pos, n_decimals: int) -> str:
"""
Conve... |
class TimeSeries_TimedeltaFormatter(mpl.ticker.Formatter):
'''
Formats the ticks along an axis controlled by a :class:`TimedeltaIndex`.
'''
@staticmethod
def format_timedelta_ticks(x, pos, n_decimals: int) -> str:
'''
Convert seconds to 'D days HH:MM:SS.F'
'''
pa... | 4 | 2 | 10 | 0 | 8 | 2 | 2 | 0.42 | 1 | 3 | 0 | 0 | 1 | 0 | 2 | 2 | 28 | 3 | 19 | 11 | 15 | 8 | 18 | 10 | 15 | 3 | 1 | 1 | 4 |
7,631 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.AreaPlot | import numpy as np
from typing import TYPE_CHECKING, Any, Literal, cast, final
class AreaPlot(LinePlot):
@property
def _kind(self) -> Literal['area']:
return 'area'
def __init__(self, data, **kwargs) -> None:
kwargs.setdefault('stacked', True)
data = data.fillna(value=0)
L... |
class AreaPlot(LinePlot):
@property
def _kind(self) -> Literal['area']:
pass
def __init__(self, data, **kwargs) -> None:
pass
@classmethod
def _plot(cls, ax: Axes, x, y: np.ndarray, style=None, column_num=None, stacking_id=None, is_errorbar: bool=False, **kwds):
pass
... | 7 | 0 | 17 | 2 | 13 | 3 | 4 | 0.23 | 1 | 3 | 0 | 0 | 3 | 0 | 4 | 82 | 74 | 12 | 53 | 25 | 36 | 12 | 37 | 13 | 32 | 6 | 6 | 2 | 14 |
7,632 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.BarPlot | from pandas.util._decorators import cache_readonly
from pandas.io.formats.printing import pprint_thing
from pandas.core.dtypes.generic import ABCDataFrame, ABCDatetimeIndex, ABCIndex, ABCMultiIndex, ABCPeriodIndex, ABCSeries
import numpy as np
from typing import TYPE_CHECKING, Any, Literal, cast, final
from pandas.core... |
class BarPlot(MPLPlot):
@property
def _kind(self) -> Literal['bar', 'barh']:
pass
@property
def orientation(self) -> PlottingOrientation:
pass
def __init__(self, data, *, align='center', bottom=0, left=0, width=0.5, position=0.5, log=False, **kwargs) -> None:
pass
@cac... | 20 | 0 | 16 | 1 | 14 | 0 | 3 | 0.02 | 1 | 8 | 0 | 1 | 10 | 8 | 11 | 76 | 192 | 25 | 164 | 73 | 118 | 4 | 92 | 39 | 80 | 8 | 5 | 2 | 28 |
7,633 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.BarhPlot | import numpy as np
from typing import TYPE_CHECKING, Any, Literal, cast, final
class BarhPlot(BarPlot):
@property
def _kind(self) -> Literal['barh']:
return 'barh'
_default_rot = 0
@property
def orientation(self) -> Literal['horizontal']:
return 'horizontal'
@property
def... |
class BarhPlot(BarPlot):
@property
def _kind(self) -> Literal['barh']:
pass
@property
def orientation(self) -> Literal['horizontal']:
pass
@property
def _start_base(self):
pass
@classmethod
def _plot(cls, ax: Axes, x, y: np.ndarray, w, start: int | npt.NDArray[n... | 11 | 0 | 6 | 0 | 6 | 1 | 1 | 0.15 | 1 | 5 | 0 | 0 | 5 | 0 | 6 | 82 | 49 | 6 | 39 | 28 | 12 | 6 | 19 | 8 | 12 | 2 | 6 | 1 | 7 |
7,634 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.HexBinPlot | from pandas.core.dtypes.common import is_any_real_numeric_dtype, is_bool, is_float, is_float_dtype, is_hashable, is_integer, is_integer_dtype, is_iterator, is_list_like, is_number, is_numeric_dtype
from typing import TYPE_CHECKING, Any, Literal, cast, final
import matplotlib as mpl
class HexBinPlot(PlanePlot):
@p... |
class HexBinPlot(PlanePlot):
@property
def _kind(self) -> Literal['hexbin']:
pass
def __init__(self, data, x, y, C=None, *, colorbar: bool=True, **kwargs) -> None:
pass
def _make_plot(self, fig: Figure) -> None:
pass
def _make_legend(self) -> None:
pass | 6 | 0 | 8 | 1 | 7 | 1 | 2 | 0.07 | 1 | 3 | 0 | 0 | 4 | 2 | 4 | 73 | 38 | 7 | 29 | 13 | 23 | 2 | 27 | 12 | 22 | 4 | 6 | 1 | 9 |
7,635 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.LinePlot | from pandas.plotting._matplotlib.tools import create_subplots, flatten_axes, format_date_labels, get_all_lines, get_xlim, handle_shared_axes
from pandas.io.formats.printing import pprint_thing
import pandas.core.common as com
from typing import TYPE_CHECKING, Any, Literal, cast, final
from pandas.core.dtypes.common imp... |
class LinePlot(MPLPlot):
@property
def orientation(self) -> PlottingOrientation:
pass
@property
def _kind(self) -> Literal['line', 'area', 'hist', 'kde', 'box']:
pass
def __init__(self, data, **kwargs) -> None:
pass
def _make_plot(self, fig: Figure) -> None:
p... | 24 | 0 | 16 | 1 | 12 | 4 | 3 | 0.33 | 1 | 7 | 0 | 1 | 9 | 3 | 13 | 78 | 240 | 30 | 170 | 64 | 130 | 56 | 114 | 43 | 98 | 5 | 5 | 2 | 40 |
7,636 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.MPLPlot | from pandas.plotting._matplotlib.tools import create_subplots, flatten_axes, format_date_labels, get_all_lines, get_xlim, handle_shared_axes
from pandas.core.dtypes.common import is_any_real_numeric_dtype, is_bool, is_float, is_float_dtype, is_hashable, is_integer, is_integer_dtype, is_iterator, is_list_like, is_number... |
class MPLPlot(ABC):
'''
Base class for assembling a pandas plot using matplotlib
Parameters
----------
data :
'''
@property
@abstractmethod
def _kind(self) -> str:
'''Specify kind str. Must be overridden in child class'''
pass
@property
def orientation(self) ... | 105 | 17 | 22 | 2 | 16 | 4 | 4 | 0.21 | 1 | 29 | 0 | 4 | 34 | 39 | 45 | 65 | 1,125 | 148 | 813 | 264 | 651 | 173 | 514 | 165 | 466 | 14 | 4 | 4 | 203 |
7,637 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.PiePlot | from pandas.util._exceptions import find_stack_level
import warnings
from pandas.io.formats.printing import pprint_thing
from pandas.core.dtypes.generic import ABCDataFrame, ABCDatetimeIndex, ABCIndex, ABCMultiIndex, ABCPeriodIndex, ABCSeries
from typing import TYPE_CHECKING, Any, Literal, cast, final
class PiePlot(MP... |
class PiePlot(MPLPlot):
@property
def _kind(self) -> Literal['pie']:
pass
def __init__(self, data: Series | DataFrame, kind=None, **kwargs) -> None:
pass
@classmethod
def _validate_log_kwd(cls, kwd: str, value: bool | None | Literal['sym']) -> bool | None | Literal['sym']:
... | 10 | 0 | 11 | 1 | 9 | 1 | 3 | 0.15 | 1 | 8 | 0 | 0 | 5 | 1 | 6 | 71 | 80 | 13 | 60 | 28 | 46 | 9 | 46 | 22 | 38 | 8 | 5 | 3 | 18 |
7,638 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.PlanePlot | from typing import TYPE_CHECKING, Any, Literal, cast, final
from abc import ABC, abstractmethod
from pandas.io.formats.printing import pprint_thing
from pandas.core.dtypes.common import is_any_real_numeric_dtype, is_bool, is_float, is_float_dtype, is_hashable, is_integer, is_integer_dtype, is_iterator, is_list_like, is... |
class PlanePlot(MPLPlot, ABC):
'''
Abstract class for plotting on plane, currently scatter and hexbin.
'''
def __init__(self, data, x, y, **kwargs) -> None:
pass
@final
def _get_nseries(self, data: Series | DataFrame) -> int:
pass
@final
def _post_plot_logic(self, a... | 8 | 1 | 10 | 1 | 5 | 5 | 2 | 0.81 | 2 | 3 | 0 | 2 | 4 | 2 | 4 | 69 | 52 | 7 | 26 | 15 | 18 | 21 | 23 | 12 | 18 | 4 | 5 | 1 | 9 |
7,639 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/core.py | pandas.plotting._matplotlib.core.ScatterPlot | from pandas.plotting._matplotlib.timeseries import format_dateaxis, maybe_convert_index, prepare_ts_data, use_dynamic_x
from pandas._libs import lib
from pandas.core.dtypes.dtypes import CategoricalDtype, ExtensionDtype
import numpy as np
from typing import TYPE_CHECKING, Any, Literal, cast, final
from pandas.core.dtyp... |
class ScatterPlot(PlanePlot):
@property
def _kind(self) -> Literal['scatter']:
pass
def __init__(self, data, x, y, s=None, c=None, *, colorbar: bool | lib.NoDefault=lib.no_default, norm=None, **kwargs) -> None:
pass
@register_pandas_matplotlib_converters
def _make_plot(self, fig: ... | 11 | 0 | 21 | 2 | 16 | 3 | 4 | 0.17 | 1 | 10 | 0 | 0 | 8 | 4 | 8 | 77 | 175 | 24 | 131 | 58 | 110 | 22 | 91 | 45 | 82 | 8 | 6 | 2 | 29 |
7,640 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/hist.py | pandas.plotting._matplotlib.hist.HistPlot | from pandas.plotting._matplotlib.groupby import create_iter_data_given_by, reformat_hist_y_given_by
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.missing import isna, remove_na_arraylike
import numpy as np
from typing import TYPE_CHECKING, Any, Literal, final
from pandas.plottin... | null | 16 | 2 | 15 | 2 | 12 | 2 | 3 | 0.19 | 1 | 9 | 0 | 1 | 8 | 6 | 10 | 90 | 166 | 25 | 124 | 57 | 88 | 23 | 85 | 31 | 74 | 8 | 6 | 3 | 29 |
7,641 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_matplotlib/hist.py | pandas.plotting._matplotlib.hist.KdePlot | from typing import TYPE_CHECKING, Any, Literal, final
from pandas.core.dtypes.common import is_integer, is_list_like
import numpy as np
from pandas.core.dtypes.missing import isna, remove_na_arraylike
from pandas.plotting._matplotlib.core import LinePlot, MPLPlot
class KdePlot(HistPlot):
@property
def _kind(s... |
class KdePlot(HistPlot):
@property
def _kind(self) -> Literal['kde']:
pass
@property
def orientation(self) -> Literal['vertical']:
pass
def __init__(self, data, bw_method=None, ind=None, *, weights=None, **kwargs) -> None:
pass
@staticmethod
def _get_ind(y: np.ndar... | 12 | 0 | 8 | 0 | 7 | 0 | 1 | 0.07 | 1 | 5 | 0 | 0 | 5 | 3 | 7 | 97 | 66 | 8 | 55 | 32 | 29 | 4 | 29 | 15 | 20 | 3 | 7 | 1 | 9 |
7,642 | pandas-dev/pandas | pandas-dev_pandas/pandas/plotting/_misc.py | pandas.plotting._misc._Options | from contextlib import contextmanager
class _Options(dict):
"""
Stores pandas plotting options.
Allows for parameter aliasing so you can just use parameter names that are
the same as the plot function parameters, but is stored in a canonical
format that makes it easy to breakdown into groups later... |
class _Options(dict):
'''
Stores pandas plotting options.
Allows for parameter aliasing so you can just use parameter names that are
the same as the plot function parameters, but is stored in a canonical
format that makes it easy to breakdown into groups later.
See Also
--------
plottin... | 10 | 3 | 5 | 0 | 4 | 2 | 1 | 1.15 | 1 | 5 | 0 | 0 | 8 | 0 | 8 | 35 | 85 | 15 | 33 | 13 | 23 | 38 | 31 | 12 | 22 | 2 | 2 | 1 | 10 |
7,643 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/frequencies.py | pandas.tseries.frequencies._FrequencyInferer | from pandas.core.dtypes.generic import ABCIndex, ABCSeries
from pandas._libs.algos import unique_deltas
from pandas._libs.tslibs import Timestamp, get_unit_from_dtype, periods_per_day, tz_convert_from_utc
import numpy as np
from pandas.util._decorators import cache_readonly
from pandas._libs.tslibs.ccalendar import DAY... |
class _FrequencyInferer:
'''
Not sure if I can avoid the state machine here
'''
def __init__(self, index) -> None:
pass
@cache_readonly
def deltas(self) -> npt.NDArray[np.int64]:
pass
@cache_readonly
def deltas_asi8(self) -> npt.NDArray[np.int64]:
pass
@cach... | 31 | 2 | 11 | 1 | 8 | 2 | 3 | 0.21 | 0 | 5 | 0 | 1 | 20 | 4 | 20 | 20 | 250 | 47 | 169 | 67 | 138 | 36 | 138 | 57 | 117 | 10 | 0 | 2 | 51 |
7,644 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/frequencies.py | pandas.tseries.frequencies._TimedeltaFrequencyInferer | class _TimedeltaFrequencyInferer(_FrequencyInferer):
def _infer_daily_rule(self):
if self.is_unique:
return self._get_daily_rule() | class _TimedeltaFrequencyInferer(_FrequencyInferer):
def _infer_daily_rule(self):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 21 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 2 | 1 | 1 | 2 |
7,645 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/holiday.py | pandas.tseries.holiday.AbstractHolidayCalendar | from datetime import datetime, timedelta
from pandas import DateOffset, DatetimeIndex, Series, Timestamp, concat, date_range
class AbstractHolidayCalendar(metaclass=HolidayCalendarMetaClass):
"""
Abstract interface to create holidays following certain rules.
"""
rules: list[Holiday] = []
start_date... |
class AbstractHolidayCalendar(metaclass=HolidayCalendarMetaClass):
'''
Abstract interface to create holidays following certain rules.
'''
def __init__(self, name: str='', rules=None) -> None:
'''
Initializes holiday object with a given set a rules. Normally
classes just have t... | 7 | 5 | 26 | 4 | 12 | 11 | 4 | 0.84 | 1 | 8 | 1 | 1 | 4 | 1 | 5 | 19 | 145 | 24 | 67 | 18 | 60 | 56 | 59 | 17 | 53 | 7 | 3 | 2 | 20 |
7,646 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/holiday.py | pandas.tseries.holiday.Holiday | import numpy as np
from pandas.errors import PerformanceWarning
import warnings
from pandas._libs.tslibs.offsets import BaseOffset
from typing import TYPE_CHECKING, Literal, overload
from datetime import datetime, timedelta
from pandas import DateOffset, DatetimeIndex, Series, Timestamp, concat, date_range
class Holid... |
class Holiday:
'''
Class that defines a holiday with start/end dates and rules
for observance.
'''
def __init__(self, name: str, year=None, month=None, day=None, offset: BaseOffset | list[BaseOffset] | None=None, observance: Callable | None=None, start_date=None, end_date=None, days_of_week: tuple... | 12 | 5 | 47 | 5 | 24 | 18 | 5 | 0.76 | 0 | 12 | 0 | 0 | 5 | 6 | 5 | 5 | 250 | 31 | 125 | 40 | 104 | 95 | 78 | 25 | 72 | 7 | 0 | 3 | 26 |
7,647 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/holiday.py | pandas.tseries.holiday.HolidayCalendarMetaClass | class HolidayCalendarMetaClass(type):
def __new__(cls, clsname: str, bases, attrs):
calendar_class = super().__new__(cls, clsname, bases, attrs)
register(calendar_class)
return calendar_class | class HolidayCalendarMetaClass(type):
def __new__(cls, clsname: str, bases, attrs):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 14 | 5 | 0 | 5 | 3 | 3 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
7,648 | pandas-dev/pandas | pandas-dev_pandas/pandas/tseries/holiday.py | pandas.tseries.holiday.USFederalHolidayCalendar | class USFederalHolidayCalendar(AbstractHolidayCalendar):
"""
US Federal Government Holiday Calendar based on rules specified by:
https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/
"""
rules = [Holiday("New Year's Day", month=1, day=1, observance=nearest_workday), USMartinLutherKin... | class USFederalHolidayCalendar(AbstractHolidayCalendar):
'''
US Federal Government Holiday Calendar based on rules specified by:
https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 25 | 1 | 20 | 2 | 19 | 4 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
7,649 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/_decorators.py | pandas.util._decorators.Appender | from pandas._typing import F, T
from textwrap import dedent
class Appender:
"""
A function decorator that will append an addendum to the docstring
of the target function.
This decorator should be robust even if func.__doc__ is None
(for example, if -OO was passed to the interpreter).
Usage: c... |
class Appender:
'''
A function decorator that will append an addendum to the docstring
of the target function.
This decorator should be robust even if func.__doc__ is None
(for example, if -OO was passed to the interpreter).
Usage: construct a docstring.Appender with a string to be joined to
... | 3 | 1 | 6 | 0 | 6 | 0 | 3 | 1 | 0 | 2 | 0 | 0 | 2 | 1 | 2 | 2 | 35 | 7 | 14 | 5 | 11 | 14 | 13 | 5 | 10 | 3 | 0 | 1 | 5 |
7,650 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/_decorators.py | pandas.util._decorators.Substitution | from pandas._typing import F, T
class Substitution:
"""
A decorator to take a function's docstring and perform string
substitution on it.
This decorator should be robust even if func.__doc__ is None
(for example, if -OO was passed to the interpreter)
Usage: construct a docstring.Substitution ... |
class Substitution:
'''
A decorator to take a function's docstring and perform string
substitution on it.
This decorator should be robust even if func.__doc__ is None
(for example, if -OO was passed to the interpreter)
Usage: construct a docstring.Substitution with a sequence or
dictionary ... | 4 | 2 | 5 | 0 | 3 | 1 | 2 | 2 | 0 | 2 | 0 | 0 | 3 | 1 | 3 | 3 | 45 | 12 | 11 | 5 | 7 | 22 | 11 | 5 | 7 | 2 | 0 | 1 | 5 |
7,651 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/_doctools.py | pandas.util._doctools.TablePlotter | import numpy as np
import pandas as pd
class TablePlotter:
"""
Layout some DataFrames in vertical/horizontal layout for explanation.
Used in merging.rst
"""
def __init__(self, cell_width: float=0.37, cell_height: float=0.25, font_size: float=7.5) -> None:
self.cell_width = cell_width
... |
class TablePlotter:
'''
Layout some DataFrames in vertical/horizontal layout for explanation.
Used in merging.rst
'''
def __init__(self, cell_width: float=0.37, cell_height: float=0.25, font_size: float=7.5) -> None:
pass
def _shape(self, df: pd.DataFrame) -> tuple[int, int]:
... | 8 | 5 | 21 | 2 | 16 | 4 | 3 | 0.29 | 0 | 11 | 0 | 0 | 7 | 3 | 7 | 7 | 160 | 19 | 110 | 46 | 92 | 32 | 94 | 39 | 83 | 7 | 0 | 2 | 24 |
7,652 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version.InfinityType | class InfinityType:
def __repr__(self) -> str:
return 'Infinity'
def __hash__(self) -> int:
return hash(repr(self))
def __lt__(self, other: object) -> bool:
return False
def __le__(self, other: object) -> bool:
return False
def __eq__(self, other: object) -> bool... | class InfinityType:
def __repr__(self) -> str:
pass
def __hash__(self) -> int:
pass
def __lt__(self, other: object) -> bool:
pass
def __le__(self, other: object) -> bool:
pass
def __eq__(self, other: object) -> bool:
pass
def __gt__(self, other: obje... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 6 | 1 | 0 | 8 | 0 | 8 | 8 | 24 | 7 | 17 | 9 | 8 | 0 | 17 | 9 | 8 | 1 | 0 | 0 | 8 |
7,653 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version.InvalidVersion | class InvalidVersion(ValueError):
"""
An invalid version was found, users should refer to PEP 440.
The ``InvalidVersion`` exception is raised when a version string is
improperly formatted. Pandas uses this exception to ensure that all
version strings are PEP 440 compliant.
See Also
-------... | class InvalidVersion(ValueError):
'''
An invalid version was found, users should refer to PEP 440.
The ``InvalidVersion`` exception is raised when a version string is
improperly formatted. Pandas uses this exception to ensure that all
version strings are PEP 440 compliant.
See Also
--------
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 18 | 3 | 1 | 1 | 0 | 14 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,654 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version.NegativeInfinityType | class NegativeInfinityType:
def __repr__(self) -> str:
return '-Infinity'
def __hash__(self) -> int:
return hash(repr(self))
def __lt__(self, other: object) -> bool:
return True
def __le__(self, other: object) -> bool:
return True
def __eq__(self, other: object) ... | class NegativeInfinityType:
def __repr__(self) -> str:
pass
def __hash__(self) -> int:
pass
def __lt__(self, other: object) -> bool:
pass
def __le__(self, other: object) -> bool:
pass
def __eq__(self, other: object) -> bool:
pass
def __gt__(self, oth... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 6 | 1 | 0 | 8 | 0 | 8 | 8 | 24 | 7 | 17 | 9 | 8 | 0 | 17 | 9 | 8 | 1 | 0 | 0 | 8 |
7,655 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version.Version | import re
class Version(_BaseVersion):
_regex = re.compile('^\\s*' + VERSION_PATTERN + '\\s*$', re.VERBOSE | re.IGNORECASE)
_key: CmpKey
def __init__(self, version: str) -> None:
match = self._regex.search(version)
if not match:
raise InvalidVersion(f"Invalid version: '{version... |
class Version(_BaseVersion):
def __init__(self, version: str) -> None:
pass
def __repr__(self) -> str:
pass
def __str__(self) -> str:
pass
@property
def epoch(self) -> int:
pass
@property
def release(self) -> tuple[int, ...]:
pass
@property
... | 32 | 0 | 6 | 1 | 4 | 1 | 2 | 0.12 | 1 | 6 | 2 | 0 | 17 | 1 | 17 | 24 | 130 | 29 | 90 | 37 | 58 | 11 | 59 | 23 | 41 | 6 | 1 | 1 | 31 |
7,656 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version._BaseVersion | from typing import Any, NamedTuple, SupportsInt, TypeAlias
class _BaseVersion:
_key: tuple[Any, ...]
def __hash__(self) -> int:
return hash(self._key)
def __lt__(self, other: _BaseVersion) -> bool:
if not isinstance(other, _BaseVersion):
return NotImplemented
return se... |
class _BaseVersion:
def __hash__(self) -> int:
pass
def __lt__(self, other: _BaseVersion) -> bool:
pass
def __le__(self, other: _BaseVersion) -> bool:
pass
def __eq__(self, other: object) -> bool:
pass
def __ge__(self, other: _BaseVersion) -> bool:
pass
... | 8 | 0 | 5 | 1 | 4 | 0 | 2 | 0.11 | 0 | 3 | 0 | 1 | 7 | 0 | 7 | 7 | 44 | 13 | 28 | 8 | 20 | 3 | 28 | 8 | 20 | 2 | 0 | 1 | 13 |
7,657 | pandas-dev/pandas | pandas-dev_pandas/pandas/util/version/__init__.py | pandas.util.version._Version | from typing import Any, NamedTuple, SupportsInt, TypeAlias
class _Version(NamedTuple):
epoch: int
release: tuple[int, ...]
dev: tuple[str, int] | None
pre: tuple[str, int] | None
post: tuple[str, int] | None
local: LocalType | None |
class _Version(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
7,658 | pandas-dev/pandas | pandas-dev_pandas/web/pandas_web.py | pandas_web.Preprocessors | import pathlib
import collections
import feedparser
import markdown
from packaging import version
import requests
import time
import datetime
import sys
import json
import itertools
import re
import operator
class Preprocessors:
"""
Built-in context preprocessors.
Context preprocessors are functions that ... |
class Preprocessors:
'''
Built-in context preprocessors.
Context preprocessors are functions that receive the context used to
render the templates, and enriches it with additional information.
The original context is obtained by parsing ``config.yml``, and
anything else needed just be added wit... | 14 | 6 | 42 | 2 | 34 | 5 | 4 | 0.18 | 0 | 11 | 0 | 0 | 0 | 0 | 6 | 6 | 305 | 24 | 239 | 62 | 225 | 43 | 117 | 50 | 109 | 7 | 0 | 4 | 28 |
7,659 | pandas-dev/pandas | pandas-dev_pandas/scripts/check_for_inconsistent_pandas_namespace.py | scripts.check_for_inconsistent_pandas_namespace.OffsetWithNamespace | from typing import NamedTuple
class OffsetWithNamespace(NamedTuple):
lineno: int
col_offset: int
namespace: str |
class OffsetWithNamespace(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
7,660 | pandas-dev/pandas | pandas-dev_pandas/scripts/check_for_inconsistent_pandas_namespace.py | scripts.check_for_inconsistent_pandas_namespace.Visitor | import ast
from collections.abc import MutableMapping, Sequence
class Visitor(ast.NodeVisitor):
def __init__(self) -> None:
self.pandas_namespace: MutableMapping[OffsetWithNamespace, str] = {}
self.imported_from_pandas: set[str] = set()
def visit_Attribute(self, node: ast.Attribute) -> None:
... |
class Visitor(ast.NodeVisitor):
def __init__(self) -> None:
pass
def visit_Attribute(self, node: ast.Attribute) -> None:
pass
def visit_ImportFrom(self, node: ast.ImportFrom) -> None:
pass | 4 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 4 | 1 | 0 | 3 | 2 | 3 | 6 | 17 | 2 | 15 | 7 | 11 | 0 | 13 | 7 | 9 | 2 | 2 | 1 | 5 |
7,661 | pandas-dev/pandas | pandas-dev_pandas/scripts/validate_docstrings.py | scripts.validate_docstrings.PandasDocstring | import sys
import subprocess
from numpydoc.docscrape import get_doc_object
from numpydoc.validate import ERROR_MSGS as NUMPYDOC_ERROR_MSGS, Validator, validate
import tempfile
import os
import doctest
class PandasDocstring(Validator):
def __init__(self, func_name: str, doc_obj=None) -> None:
self.func_nam... |
class PandasDocstring(Validator):
def __init__(self, func_name: str, doc_obj=None) -> None:
pass
@property
def name(self):
pass
@property
def mentioned_private_classes(self):
pass
@property
def examples_source_code(self):
pass
def validate_pep8(self):
... | 10 | 0 | 10 | 1 | 9 | 1 | 2 | 0.12 | 1 | 4 | 0 | 0 | 6 | 1 | 6 | 6 | 71 | 9 | 57 | 22 | 47 | 7 | 37 | 19 | 30 | 5 | 1 | 3 | 11 |
7,662 | pandas-dev/pandas | pandas-dev_pandas/scripts/validate_exception_location.py | scripts.validate_exception_location.Visitor | import ast
class Visitor(ast.NodeVisitor):
def __init__(self, path: str, exception_set: set[str]) -> None:
self.path = path
self.exception_set = exception_set
self.found_exceptions = set()
def visit_ClassDef(self, node) -> None:
def is_an_exception_subclass(base_id: str) -> b... |
class Visitor(ast.NodeVisitor):
def __init__(self, path: str, exception_set: set[str]) -> None:
pass
def visit_ClassDef(self, node) -> None:
pass
def is_an_exception_subclass(base_id: str) -> bool:
pass | 4 | 0 | 7 | 1 | 5 | 1 | 2 | 0.13 | 1 | 3 | 0 | 0 | 2 | 3 | 2 | 5 | 21 | 4 | 15 | 10 | 11 | 2 | 15 | 10 | 11 | 4 | 2 | 2 | 6 |
7,663 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.CheckSDist | import os
class CheckSDist(sdist_class):
"""Custom sdist that ensures Cython has compiled all pyx files to c."""
_pyxfiles = ['pandas/_libs/arrays.pyx', 'pandas/_libs/lib.pyx', 'pandas/_libs/hashtable.pyx', 'pandas/_libs/tslib.pyx', 'pandas/_libs/index.pyx', 'pandas/_libs/internals.pyx', 'pandas/_libs/algos.py... |
class CheckSDist(sdist_class):
'''Custom sdist that ensures Cython has compiled all pyx files to c.'''
def initialize_options(self) -> None:
pass
def run(self) -> None:
pass | 3 | 1 | 10 | 1 | 8 | 1 | 3 | 0.05 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 65 | 5 | 57 | 10 | 54 | 3 | 15 | 10 | 12 | 4 | 1 | 3 | 5 |
7,664 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.CheckingBuildExt | import os
from setuptools.command.build_ext import build_ext as _build_ext
class CheckingBuildExt(build_ext):
"""
Subclass build_ext to get clearer report if Cython is necessary.
"""
def check_cython_extensions(self, extensions) -> None:
for ext in extensions:
for src in ext.source... |
class CheckingBuildExt(build_ext):
'''
Subclass build_ext to get clearer report if Cython is necessary.
'''
def check_cython_extensions(self, extensions) -> None:
pass
def build_extensions(self) -> None:
pass | 3 | 1 | 7 | 0 | 7 | 0 | 3 | 0.2 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 4 | 20 | 2 | 15 | 5 | 12 | 3 | 10 | 5 | 7 | 4 | 1 | 3 | 5 |
7,665 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.CleanCommand | from setuptools import Command, Extension, setup
from os.path import join as pjoin
import os
import shutil
class CleanCommand(Command):
"""Custom command to clean the .so and .pyc files."""
user_options = [('all', 'a', '')]
def initialize_options(self) -> None:
self.all = True
self._clean_... |
class CleanCommand(Command):
'''Custom command to clean the .so and .pyc files.'''
def initialize_options(self) -> None:
pass
def finalize_options(self) -> None:
pass
def run(self) -> None:
pass | 4 | 1 | 21 | 2 | 19 | 0 | 4 | 0.03 | 1 | 1 | 0 | 0 | 3 | 4 | 3 | 3 | 71 | 9 | 60 | 22 | 56 | 2 | 38 | 22 | 34 | 6 | 1 | 3 | 12 |
7,666 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.CythonCommand | from setuptools.command.build_ext import build_ext as _build_ext
class CythonCommand(build_ext):
"""
Custom command subclassed from Cython.Distutils.build_ext
to compile pyx->c, and stop there. All this does is override the
C-compile method build_extension() with a no-op.
"""
def build_extensi... |
class CythonCommand(build_ext):
'''
Custom command subclassed from Cython.Distutils.build_ext
to compile pyx->c, and stop there. All this does is override the
C-compile method build_extension() with a no-op.
'''
def build_extension(self, ext) -> None:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 1.67 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 9 | 1 | 3 | 2 | 1 | 5 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
7,667 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.DummyBuildSrc | from setuptools import Command, Extension, setup
class DummyBuildSrc(Command):
"""numpy's build_src command interferes with Cython's build_ext."""
user_options = []
def initialize_options(self) -> None:
self.py_modules_dict = {}
def finalize_options(self) -> None:
pass
def run(se... |
class DummyBuildSrc(Command):
'''numpy's build_src command interferes with Cython's build_ext.'''
def initialize_options(self) -> None:
pass
def finalize_options(self) -> None:
pass
def run(self) -> None:
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.13 | 1 | 0 | 0 | 0 | 3 | 1 | 3 | 3 | 13 | 4 | 8 | 6 | 4 | 1 | 8 | 6 | 4 | 1 | 1 | 0 | 3 |
7,668 | pandas-dev/pandas | pandas-dev_pandas/setup.py | setup.build_ext | from setuptools.command.build_ext import build_ext as _build_ext
import os
class build_ext(_build_ext):
@classmethod
def render_templates(cls, pxifiles) -> None:
for pxifile in pxifiles:
assert pxifile.endswith('.pxi.in')
outfile = pxifile[:-3]
if os.path.exists(out... |
class build_ext(_build_ext):
@classmethod
def render_templates(cls, pxifiles) -> None:
pass
def build_extensions(self) -> None:
pass | 4 | 0 | 13 | 2 | 9 | 2 | 3 | 0.2 | 0 | 1 | 0 | 2 | 1 | 0 | 2 | 2 | 29 | 5 | 20 | 9 | 16 | 4 | 16 | 7 | 13 | 3 | 0 | 2 | 5 |
7,669 | apache/airflow | apache_airflow/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py | airbyte.hooks.airbyte.AirbyteHook | from airbyte_api.api import CancelJobRequest, GetJobRequest
from airflow.exceptions import AirflowException
from airflow.providers.airbyte.version_compat import BaseHook
from requests import Session
import time
from airbyte_api.models import JobCreateRequest, JobStatusEnum, JobTypeEnum, SchemeClientCredentials, Securit... |
class AirbyteHook(BaseHook):
'''
Hook for Airbyte API.
:param airbyte_conn_id: Optional. The name of the Airflow connection to get
connection information for Airbyte. Defaults to "airbyte_default".
:param api_version: Optional. Airbyte API version. Defaults to "v1".
'''
def __init__(se... | 12 | 8 | 14 | 1 | 11 | 2 | 2 | 0.25 | 1 | 8 | 1 | 0 | 9 | 4 | 10 | 22 | 160 | 21 | 111 | 40 | 95 | 28 | 76 | 30 | 65 | 8 | 2 | 2 | 22 |
7,670 | apache/airflow | apache_airflow/providers/airbyte/src/airflow/providers/airbyte/operators/airbyte.py | airbyte.operators.airbyte.AirbyteTriggerSyncOperator | from airflow.exceptions import AirflowException
from airflow.providers.airbyte.triggers.airbyte import AirbyteSyncTrigger
from airbyte_api.models import JobStatusEnum
from airflow.providers.airbyte.version_compat import BaseOperator
from collections.abc import Sequence
import time
from typing import TYPE_CHECKING, Any
... |
class AirbyteTriggerSyncOperator(BaseOperator):
'''
Submits a job to an Airbyte server to run a integration process between your source and destination.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:AirbyteTriggerSyncOperator`
... | 5 | 4 | 19 | 2 | 16 | 2 | 3 | 0.39 | 1 | 8 | 3 | 0 | 4 | 9 | 4 | 4 | 104 | 13 | 66 | 31 | 51 | 26 | 42 | 20 | 37 | 7 | 1 | 2 | 12 |
7,671 | apache/airflow | apache_airflow/providers/airbyte/src/airflow/providers/airbyte/sensors/airbyte.py | airbyte.sensors.airbyte.AirbyteJobSensor | from airflow.exceptions import AirflowException
from airflow.providers.airbyte.hooks.airbyte import AirbyteHook
import time
from airflow.configuration import conf
from airflow.providers.airbyte.triggers.airbyte import AirbyteSyncTrigger
from airflow.providers.airbyte.version_compat import BaseSensorOperator
from collec... |
class AirbyteJobSensor(BaseSensorOperator):
'''
Check for the state of a previously submitted Airbyte job.
:param airbyte_job_id: Required. Id of the Airbyte job.
:param airbyte_conn_id: Optional. The name of the Airflow connection to get
connection information for Airbyte. Defaults to "airbyte... | 5 | 3 | 21 | 2 | 18 | 2 | 4 | 0.21 | 1 | 8 | 3 | 0 | 4 | 5 | 4 | 25 | 101 | 14 | 73 | 28 | 60 | 15 | 47 | 19 | 42 | 6 | 3 | 2 | 16 |
7,672 | apache/airflow | apache_airflow/providers/airbyte/src/airflow/providers/airbyte/triggers/airbyte.py | airbyte.triggers.airbyte.AirbyteSyncTrigger | import time
from airflow.triggers.base import BaseTrigger, TriggerEvent
import asyncio
from airflow.providers.airbyte.hooks.airbyte import AirbyteHook
from typing import Any
from airbyte_api.models import JobStatusEnum
from collections.abc import AsyncIterator
class AirbyteSyncTrigger(BaseTrigger):
"""
Trigger... |
class AirbyteSyncTrigger(BaseTrigger):
'''
Triggers Airbyte Sync, makes an asynchronous HTTP call to get the status via a job ID.
This trigger is designed to initiate and monitor the status of Airbyte Sync jobs. It
makes use of asynchronous communication to check the progress of a job run over time.
... | 5 | 4 | 19 | 0 | 17 | 2 | 3 | 0.21 | 1 | 12 | 2 | 0 | 4 | 4 | 4 | 37 | 92 | 7 | 70 | 19 | 59 | 15 | 29 | 12 | 24 | 6 | 5 | 3 | 10 |
7,673 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/hooks/analyticdb_spark.py | alibaba.cloud.hooks.analyticdb_spark.AnalyticDBSparkHook | from airflow.exceptions import AirflowException
from airflow.providers.alibaba.version_compat import BaseHook
import json
from alibabacloud_adb20211201.models import GetSparkAppLogRequest, GetSparkAppStateRequest, GetSparkAppWebUiAddressRequest, KillSparkAppRequest, SubmitSparkAppRequest, SubmitSparkAppResponse
from al... |
class AnalyticDBSparkHook(BaseHook, LoggingMixin):
'''
Hook for AnalyticDB MySQL Spark through the REST API.
:param adb_spark_conn_id: The Airflow connection used for AnalyticDB MySQL Spark credentials.
:param region: AnalyticDB MySQL region you want to submit spark application.
'''
def __init... | 18 | 13 | 21 | 2 | 15 | 5 | 4 | 0.32 | 2 | 13 | 1 | 0 | 9 | 3 | 13 | 25 | 304 | 37 | 202 | 72 | 158 | 65 | 138 | 36 | 124 | 13 | 2 | 2 | 49 |
7,674 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/hooks/analyticdb_spark.py | alibaba.cloud.hooks.analyticdb_spark.AppState | from enum import Enum
class AppState(Enum):
"""
AnalyticDB Spark application states.
See:
https://www.alibabacloud.com/help/en/analyticdb-for-mysql/latest/api-doc-adb-2021-12-01-api-struct
-sparkappinfo.
"""
SUBMITTED = 'SUBMITTED'
STARTING = 'STARTING'
RUNNING = 'RUNNING'
FAI... |
class AppState(Enum):
'''
AnalyticDB Spark application states.
See:
https://www.alibabacloud.com/help/en/analyticdb-for-mysql/latest/api-doc-adb-2021-12-01-api-struct
-sparkappinfo.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 21 | 3 | 12 | 12 | 11 | 6 | 12 | 12 | 11 | 0 | 4 | 0 | 0 |
7,675 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/hooks/oss.py | alibaba.cloud.hooks.oss.OSSHook | import oss2
from oss2.exceptions import ClientError
from airflow.exceptions import AirflowException
from urllib.parse import urlsplit
from airflow.providers.alibaba.version_compat import BaseHook
class OSSHook(BaseHook):
"""Interact with Alibaba Cloud OSS, using the oss2 library."""
conn_name_attr = 'oss_conn_... |
class OSSHook(BaseHook):
'''Interact with Alibaba Cloud OSS, using the oss2 library.'''
def __init__(self, region: str | None=None, oss_conn_id='oss_default', *args, **kwargs) -> None:
pass
def get_conn(self) -> Connection:
'''Return connection for the hook.'''
pass
@staticmet... | 43 | 16 | 13 | 1 | 8 | 4 | 2 | 0.46 | 1 | 10 | 2 | 0 | 17 | 3 | 18 | 30 | 289 | 41 | 170 | 87 | 103 | 78 | 122 | 37 | 103 | 5 | 2 | 1 | 38 |
7,676 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/log/oss_task_handler.py | alibaba.cloud.log.oss_task_handler.OSSTaskHandler | from airflow.utils.log.file_task_handler import FileTaskHandler
from airflow.configuration import conf
from airflow.utils.log.logging_mixin import LoggingMixin
class OSSTaskHandler(FileTaskHandler, LoggingMixin):
"""
OSSTaskHandler is a python log handler that handles and reads task instance logs.
Extends... |
class OSSTaskHandler(FileTaskHandler, LoggingMixin):
'''
OSSTaskHandler is a python log handler that handles and reads task instance logs.
Extends airflow FileTaskHandler and uploads to and reads from OSS remote storage.
'''
def __init__(self, base_log_folder: str, oss_log_folder: str, max_bytes: ... | 5 | 4 | 18 | 1 | 11 | 6 | 2 | 0.56 | 2 | 6 | 1 | 0 | 8 | 7 | 8 | 52 | 159 | 20 | 89 | 32 | 79 | 50 | 76 | 30 | 67 | 5 | 4 | 2 | 19 |
7,677 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/analyticdb_spark.py | alibaba.cloud.operators.analyticdb_spark.AnalyticDBSparkBaseOperator | from airflow.providers.alibaba.version_compat import BaseOperator
from airflow.exceptions import AirflowException
from typing import TYPE_CHECKING, Any
import time
from airflow.providers.alibaba.cloud.hooks.analyticdb_spark import AnalyticDBSparkHook, AppState
from functools import cached_property
class AnalyticDBSpar... |
class AnalyticDBSparkBaseOperator(BaseOperator):
'''Abstract base class that defines how users develop AnalyticDB Spark.'''
def __init__(self, *, adb_spark_conn_id: str='adb_spark_default', region: str | None=None, polling_interval: int=0, **kwargs: Any) -> None:
pass
@cached_property
def hook... | 9 | 4 | 7 | 1 | 6 | 1 | 2 | 0.17 | 1 | 7 | 3 | 2 | 7 | 4 | 7 | 7 | 60 | 11 | 42 | 21 | 27 | 7 | 31 | 13 | 23 | 3 | 1 | 1 | 11 |
7,678 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/analyticdb_spark.py | alibaba.cloud.operators.analyticdb_spark.AnalyticDBSparkBatchOperator | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
class AnalyticDBSparkBatchOperator(AnalyticDBSparkBaseOperator):
"""
Submits a Spark batch application to the underlying cluster; wraps the AnalyticDB Spark REST API.
:param file: path of the file containing the application to exec... |
class AnalyticDBSparkBatchOperator(AnalyticDBSparkBaseOperator):
'''
Submits a Spark batch application to the underlying cluster; wraps the AnalyticDB Spark REST API.
:param file: path of the file containing the application to execute.
:param class_name: name of the application Java/Spark main class.
... | 3 | 1 | 23 | 1 | 22 | 0 | 1 | 0.36 | 1 | 7 | 0 | 0 | 2 | 4 | 2 | 9 | 69 | 5 | 47 | 29 | 26 | 17 | 14 | 11 | 11 | 1 | 2 | 0 | 2 |
7,679 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/analyticdb_spark.py | alibaba.cloud.operators.analyticdb_spark.AnalyticDBSparkSQLOperator | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
class AnalyticDBSparkSQLOperator(AnalyticDBSparkBaseOperator):
"""
Submits a Spark SQL application to the underlying cluster; wraps the AnalyticDB Spark REST API.
:param sql: The SQL query to execute.
:param conf: Spark configu... |
class AnalyticDBSparkSQLOperator(AnalyticDBSparkBaseOperator):
'''
Submits a Spark SQL application to the underlying cluster; wraps the AnalyticDB Spark REST API.
:param sql: The SQL query to execute.
:param conf: Spark configuration properties.
:param driver_resource_spec: The resource specificati... | 3 | 1 | 17 | 1 | 16 | 0 | 1 | 0.31 | 1 | 5 | 0 | 0 | 2 | 4 | 2 | 9 | 51 | 5 | 35 | 23 | 20 | 11 | 14 | 11 | 11 | 1 | 2 | 0 | 2 |
7,680 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSCreateBucketOperator | from airflow.providers.alibaba.version_compat import BaseOperator
from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
class OSSCreateBucketOperator(BaseOperator):
"""
This operator creates an OSS bucket.
:param region: OSS region you want to create bucket
:param bucket_name: This is bucket n... |
class OSSCreateBucketOperator(BaseOperator):
'''
This operator creates an OSS bucket.
:param region: OSS region you want to create bucket
:param bucket_name: This is bucket name you want to create
:param oss_conn_id: The Airflow connection used for OSS credentials.
'''
def __init__(self, r... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.4 | 1 | 3 | 1 | 0 | 2 | 3 | 2 | 2 | 24 | 3 | 15 | 13 | 6 | 6 | 9 | 7 | 6 | 1 | 1 | 0 | 2 |
7,681 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSDeleteBatchObjectOperator | from airflow.providers.alibaba.version_compat import BaseOperator
from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
class OSSDeleteBatchObjectOperator(BaseOperator):
"""
This operator to delete OSS objects.
:param key: key list of the objects to delete.
:param region: OSS region
:param... |
class OSSDeleteBatchObjectOperator(BaseOperator):
'''
This operator to delete OSS objects.
:param key: key list of the objects to delete.
:param region: OSS region
:param bucket_name: OSS bucket name
:param oss_conn_id: The Airflow connection used for OSS credentials.
'''
def __init__(... | 3 | 1 | 8 | 0 | 8 | 0 | 1 | 0.41 | 1 | 4 | 1 | 0 | 2 | 4 | 2 | 2 | 27 | 3 | 17 | 15 | 7 | 7 | 10 | 8 | 7 | 1 | 1 | 0 | 2 |
7,682 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSDeleteBucketOperator | from airflow.providers.alibaba.version_compat import BaseOperator
from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
class OSSDeleteBucketOperator(BaseOperator):
"""
This operator to delete an OSS bucket.
:param region: OSS region you want to create bucket
:param bucket_name: This is bucket... |
class OSSDeleteBucketOperator(BaseOperator):
'''
This operator to delete an OSS bucket.
:param region: OSS region you want to create bucket
:param bucket_name: This is bucket name you want to delete
:param oss_conn_id: The Airflow connection used for OSS credentials.
'''
def __init__(self,... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.4 | 1 | 3 | 1 | 0 | 2 | 3 | 2 | 2 | 24 | 3 | 15 | 13 | 6 | 6 | 9 | 7 | 6 | 1 | 1 | 0 | 2 |
7,683 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSDeleteObjectOperator | from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
from airflow.providers.alibaba.version_compat import BaseOperator
class OSSDeleteObjectOperator(BaseOperator):
"""
This operator to delete an OSS object.
:param key: key of the object to delete.
:param region: OSS region
:param bucket_n... |
class OSSDeleteObjectOperator(BaseOperator):
'''
This operator to delete an OSS object.
:param key: key of the object to delete.
:param region: OSS region
:param bucket_name: OSS bucket name
:param oss_conn_id: The Airflow connection used for OSS credentials.
'''
def __init__(self, key... | 3 | 1 | 8 | 0 | 8 | 0 | 1 | 0.41 | 1 | 3 | 1 | 0 | 2 | 4 | 2 | 2 | 27 | 3 | 17 | 15 | 7 | 7 | 10 | 8 | 7 | 1 | 1 | 0 | 2 |
7,684 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSDownloadObjectOperator | from airflow.providers.alibaba.version_compat import BaseOperator
from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
class OSSDownloadObjectOperator(BaseOperator):
"""
This operator to Download an OSS object.
:param key: key of the object to download.
:param local_file: local path + file na... |
class OSSDownloadObjectOperator(BaseOperator):
'''
This operator to Download an OSS object.
:param key: key of the object to download.
:param local_file: local path + file name to save.
:param region: OSS region
:param bucket_name: OSS bucket name
:param oss_conn_id: The Airflow connection ... | 3 | 1 | 9 | 0 | 9 | 0 | 1 | 0.42 | 1 | 3 | 1 | 0 | 2 | 5 | 2 | 2 | 30 | 3 | 19 | 17 | 8 | 8 | 11 | 9 | 8 | 1 | 1 | 0 | 2 |
7,685 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/operators/oss.py | alibaba.cloud.operators.oss.OSSUploadObjectOperator | from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
from airflow.providers.alibaba.version_compat import BaseOperator
class OSSUploadObjectOperator(BaseOperator):
"""
This operator to upload an file-like object.
:param key: the OSS path of the object
:param file: local file to upload.
:p... |
class OSSUploadObjectOperator(BaseOperator):
'''
This operator to upload an file-like object.
:param key: the OSS path of the object
:param file: local file to upload.
:param region: OSS region you want to create bucket
:param bucket_name: This is bucket name you want to create
:param oss_c... | 3 | 1 | 9 | 0 | 9 | 0 | 1 | 0.42 | 1 | 3 | 1 | 0 | 2 | 5 | 2 | 2 | 30 | 3 | 19 | 17 | 8 | 8 | 11 | 9 | 8 | 1 | 1 | 0 | 2 |
7,686 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/analyticdb_spark.py | alibaba.cloud.sensors.analyticdb_spark.AnalyticDBSparkSensor | from typing import TYPE_CHECKING, Any
from airflow.providers.alibaba.cloud.hooks.analyticdb_spark import AnalyticDBSparkHook, AppState
from airflow.providers.alibaba.version_compat import BaseSensorOperator
from functools import cached_property
from collections.abc import Sequence
class AnalyticDBSparkSensor(BaseSenso... |
class AnalyticDBSparkSensor(BaseSensorOperator):
'''
Monitor a AnalyticDB Spark session for termination.
:param app_id: identifier of the monitored app depends on the option that's being modified.
:param adb_spark_conn_id: reference to a pre-defined ADB Spark connection.
:param region: AnalyticDB M... | 5 | 2 | 7 | 0 | 6 | 0 | 1 | 0.33 | 1 | 6 | 2 | 0 | 3 | 3 | 3 | 24 | 34 | 6 | 21 | 18 | 9 | 7 | 13 | 10 | 9 | 1 | 3 | 0 | 3 |
7,687 | apache/airflow | apache_airflow/providers/alibaba/src/airflow/providers/alibaba/cloud/sensors/oss_key.py | alibaba.cloud.sensors.oss_key.OSSKeySensor | from collections.abc import Sequence
from airflow.providers.alibaba.cloud.hooks.oss import OSSHook
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from deprecated.classic import deprecated
from airflow.providers.alibaba.version_compat import BaseSensorOperator
from functools import ca... |
class OSSKeySensor(BaseSensorOperator):
'''
Waits for a key (a file-like instance on OSS) to be present in an OSS bucket.
OSS being a key/value, it does not support folders. The path is just a key resource.
:param bucket_key: The key being waited on. Supports full oss:// style url
or relative p... | 8 | 4 | 12 | 1 | 9 | 2 | 2 | 0.45 | 1 | 4 | 2 | 0 | 4 | 4 | 4 | 25 | 68 | 10 | 40 | 21 | 25 | 18 | 25 | 12 | 20 | 4 | 3 | 2 | 7 |
7,688 | apache/airflow | apache_airflow/providers/apprise/src/airflow/providers/apprise/hooks/apprise.py | apprise.hooks.apprise.AppriseHook | import apprise
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any
from apprise import AppriseConfig, NotifyFormat, NotifyType
from airflow.providers.apprise.version_compat import BaseHook
import json
class AppriseHook(BaseHook):
"""
Use Apprise(https://github.com/caronc/apprise) to inte... |
class AppriseHook(BaseHook):
'''
Use Apprise(https://github.com/caronc/apprise) to interact with notification services.
The complete list of notification services supported by Apprise can be found at:
https://github.com/caronc/apprise/wiki#notification-services.
:param apprise_conn_id: :ref:`Appris... | 10 | 4 | 12 | 0 | 9 | 2 | 2 | 0.32 | 1 | 10 | 0 | 0 | 5 | 1 | 7 | 19 | 108 | 13 | 72 | 33 | 49 | 23 | 35 | 21 | 24 | 4 | 2 | 2 | 12 |
7,689 | apache/airflow | apache_airflow/providers/apprise/src/airflow/providers/apprise/notifications/apprise.py | apprise.notifications.apprise.AppriseNotifier | from apprise import AppriseConfig, NotifyFormat, NotifyType
from collections.abc import Iterable
from airflow.providers.common.compat.notifier import BaseNotifier
from airflow.providers.apprise.hooks.apprise import AppriseHook
from functools import cached_property
class AppriseNotifier(BaseNotifier):
"""
Appri... |
class AppriseNotifier(BaseNotifier):
'''
Apprise BaseNotifier.
:param body: Specify the message body
:param title: Specify the message title. This field is complete optional
:param notify_type: Specify the message type (default=info). Possible values are "info",
"success", "failure", and "w... | 5 | 3 | 13 | 0 | 12 | 1 | 1 | 0.44 | 1 | 5 | 1 | 0 | 3 | 9 | 3 | 23 | 61 | 5 | 39 | 27 | 22 | 17 | 17 | 14 | 13 | 1 | 2 | 0 | 3 |
7,690 | apache/airflow | apache_airflow/providers/arangodb/src/airflow/providers/arangodb/hooks/arangodb.py | arangodb.hooks.arangodb.ArangoDBHook | from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
from airflow.providers.arangodb.version_compat import BaseHook
from arango.cursor import Cursor
from arango import AQLQueryExecuteError, ArangoClient as ArangoDBClient
from functools import cached_property
from arango.exceptions impor... | null | 28 | 5 | 7 | 0 | 6 | 0 | 2 | 0.09 | 1 | 6 | 1 | 0 | 18 | 1 | 19 | 31 | 172 | 27 | 133 | 43 | 105 | 12 | 103 | 30 | 83 | 4 | 2 | 3 | 37 |
7,691 | apache/airflow | apache_airflow/providers/arangodb/src/airflow/providers/arangodb/operators/arangodb.py | arangodb.operators.arangodb.AQLOperator | from collections.abc import Callable, Sequence
from airflow.providers.arangodb.version_compat import BaseOperator
from airflow.providers.arangodb.hooks.arangodb import ArangoDBHook
class AQLOperator(BaseOperator):
"""
Executes AQL query in a ArangoDB database.
.. seealso::
For more information on ... |
class AQLOperator(BaseOperator):
'''
Executes AQL query in a ArangoDB database.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:AQLOperator`
:param query: the AQL query to be executed. Can receive a str representing a
... | 3 | 1 | 9 | 0 | 9 | 0 | 2 | 0.45 | 1 | 4 | 2 | 0 | 2 | 3 | 2 | 2 | 37 | 5 | 22 | 18 | 12 | 10 | 15 | 11 | 12 | 2 | 1 | 1 | 3 |
7,692 | apache/airflow | apache_airflow/providers/arangodb/src/airflow/providers/arangodb/operators/arangodb.py | arangodb.operators.arangodb.ArangoDBCollectionOperator | from airflow.providers.arangodb.hooks.arangodb import ArangoDBHook
from airflow.exceptions import AirflowException
from typing import TYPE_CHECKING, Any
from airflow.providers.arangodb.version_compat import BaseOperator
class ArangoDBCollectionOperator(BaseOperator):
"""
Executes collection operations in a Ara... |
class ArangoDBCollectionOperator(BaseOperator):
'''
Executes collection operations in a ArangoDB database.
:param arangodb_conn_id: Connection ID for ArangoDB, defaults to "arangodb_default".
:param collection_name: The name of the collection to be operated on.
:param documents_to_insert: A list of... | 3 | 1 | 35 | 3 | 32 | 0 | 4 | 0.16 | 1 | 9 | 3 | 0 | 2 | 7 | 2 | 2 | 83 | 9 | 64 | 22 | 50 | 10 | 29 | 11 | 26 | 7 | 1 | 1 | 8 |
7,693 | apache/airflow | apache_airflow/providers/arangodb/src/airflow/providers/arangodb/sensors/arangodb.py | arangodb.sensors.arangodb.AQLSensor | from airflow.providers.arangodb.version_compat import BaseSensorOperator
from airflow.providers.arangodb.hooks.arangodb import ArangoDBHook
from collections.abc import Sequence
class AQLSensor(BaseSensorOperator):
"""
Checks for the existence of a document which matches the given query in ArangoDB.
:param... |
class AQLSensor(BaseSensorOperator):
'''
Checks for the existence of a document which matches the given query in ArangoDB.
:param collection: Target DB collection.
:param query: The query to poke, or you can provide .sql file having the query
:param arangodb_conn_id: The :ref:`ArangoDB connection i... | 3 | 1 | 5 | 0 | 5 | 0 | 1 | 0.57 | 1 | 5 | 2 | 0 | 2 | 2 | 2 | 23 | 26 | 4 | 14 | 10 | 11 | 8 | 14 | 10 | 11 | 1 | 3 | 0 | 2 |
7,694 | apache/airflow | apache_airflow/providers/asana/src/airflow/providers/asana/hooks/asana.py | asana.hooks.asana.AsanaHook | from airflow.providers.asana.version_compat import BaseHook
from typing import Any
from asana.api_client import ApiClient
from asana.configuration import Configuration
from asana.api.projects_api import ProjectsApi
from functools import cached_property
from asana.rest import ApiException
from asana.api.tasks_api import... |
class AsanaHook(BaseHook):
'''Wrapper around Asana Python client library.'''
def __init__(self, conn_id: str=default_conn_name, *args, **kwargs) -> None:
pass
def _get_field(self, extras: dict, field_name: str):
'''Get field from extra, first checking short name, then for backcompat we ch... | 27 | 19 | 14 | 1 | 8 | 5 | 2 | 0.52 | 1 | 6 | 0 | 0 | 15 | 3 | 20 | 32 | 310 | 42 | 176 | 82 | 146 | 92 | 144 | 68 | 120 | 4 | 2 | 1 | 41 |
7,695 | apache/airflow | apache_airflow/providers/asana/src/airflow/providers/asana/operators/asana_tasks.py | asana.operators.asana_tasks.AsanaCreateTaskOperator | from airflow.providers.asana.hooks.asana import AsanaHook
from airflow.providers.asana.version_compat import BaseOperator
class AsanaCreateTaskOperator(BaseOperator):
"""
This operator can be used to create Asana tasks.
.. seealso::
For more information on Asana optional task parameters:
h... |
class AsanaCreateTaskOperator(BaseOperator):
'''
This operator can be used to create Asana tasks.
.. seealso::
For more information on Asana optional task parameters:
https://developers.asana.com/docs/create-a-task
.. seealso::
For more information on how to use this operator, t... | 3 | 1 | 9 | 1 | 9 | 0 | 1 | 0.83 | 1 | 5 | 2 | 0 | 2 | 3 | 2 | 2 | 39 | 6 | 18 | 15 | 8 | 15 | 11 | 8 | 8 | 1 | 1 | 0 | 2 |
7,696 | apache/airflow | apache_airflow/providers/asana/src/airflow/providers/asana/operators/asana_tasks.py | asana.operators.asana_tasks.AsanaDeleteTaskOperator | from airflow.providers.asana.version_compat import BaseOperator
from airflow.providers.asana.hooks.asana import AsanaHook
class AsanaDeleteTaskOperator(BaseOperator):
"""
This operator can be used to delete Asana tasks.
.. seealso::
For more information on how to use this operator, take a look at ... |
class AsanaDeleteTaskOperator(BaseOperator):
'''
This operator can be used to delete Asana tasks.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:AsanaDeleteTaskOperator`
:param conn_id: The Asana connection to use.
:para... | 3 | 1 | 8 | 1 | 7 | 0 | 1 | 0.53 | 1 | 4 | 2 | 0 | 2 | 2 | 2 | 2 | 28 | 5 | 15 | 13 | 6 | 8 | 9 | 7 | 6 | 1 | 1 | 0 | 2 |
7,697 | apache/airflow | apache_airflow/providers/asana/src/airflow/providers/asana/operators/asana_tasks.py | asana.operators.asana_tasks.AsanaFindTaskOperator | from airflow.providers.asana.hooks.asana import AsanaHook
from airflow.providers.asana.version_compat import BaseOperator
class AsanaFindTaskOperator(BaseOperator):
"""
This operator can be used to retrieve Asana tasks that match various filters.
.. seealso::
For a list of possible filters:
... |
class AsanaFindTaskOperator(BaseOperator):
'''
This operator can be used to retrieve Asana tasks that match various filters.
.. seealso::
For a list of possible filters:
https://developers.asana.com/docs/update-a-task
.. seealso::
For more information on how to use this operator... | 3 | 1 | 8 | 1 | 8 | 0 | 1 | 0.81 | 1 | 6 | 2 | 0 | 2 | 2 | 2 | 2 | 35 | 6 | 16 | 13 | 7 | 13 | 10 | 7 | 7 | 1 | 1 | 0 | 2 |
7,698 | apache/airflow | apache_airflow/providers/asana/src/airflow/providers/asana/operators/asana_tasks.py | asana.operators.asana_tasks.AsanaUpdateTaskOperator | from airflow.providers.asana.hooks.asana import AsanaHook
from airflow.providers.asana.version_compat import BaseOperator
class AsanaUpdateTaskOperator(BaseOperator):
"""
This operator can be used to update Asana tasks.
.. seealso::
For more information on Asana optional task parameters:
h... |
class AsanaUpdateTaskOperator(BaseOperator):
'''
This operator can be used to update Asana tasks.
.. seealso::
For more information on Asana optional task parameters:
https://developers.asana.com/docs/update-a-task
.. seealso::
For more information on how to use this operator, t... | 3 | 1 | 9 | 1 | 8 | 0 | 1 | 0.76 | 1 | 5 | 2 | 0 | 2 | 3 | 2 | 2 | 36 | 6 | 17 | 15 | 7 | 13 | 10 | 8 | 7 | 1 | 1 | 0 | 2 |
7,699 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/hooks/beam.py | beam.hooks.beam.BeamAsyncHook | import shutil
from collections.abc import Callable
import textwrap
import asyncio
import shlex
from packaging.version import Version
from airflow.exceptions import AirflowConfigException, AirflowException
from airflow.providers.common.compat.standard.utils import prepare_virtualenv
import functools
import json
import c... |
class BeamAsyncHook(BeamHook):
'''
Asynchronous hook for Apache Beam.
:param runner: Runner type.
'''
def __init__(self, runner: str) -> None:
pass
@staticmethod
async def _create_tmp_dir(prefix: str) -> str:
'''Create temporary directory.'''
pass
@staticmethod
... | 13 | 6 | 24 | 2 | 17 | 6 | 2 | 0.35 | 1 | 11 | 1 | 0 | 6 | 2 | 9 | 27 | 235 | 25 | 155 | 73 | 108 | 55 | 73 | 34 | 63 | 6 | 3 | 3 | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.