Search is not available for this dataset
id stringlengths 1 8 | text stringlengths 72 9.81M | addition_count int64 0 10k | commit_subject stringlengths 0 3.7k | deletion_count int64 0 8.43k | file_extension stringlengths 0 32 | lang stringlengths 1 94 | license stringclasses 10
values | repo_name stringlengths 9 59 |
|---|---|---|---|---|---|---|---|---|
10037050 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Updating README | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037051 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Updating README | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037052 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 3 | Merge pull request #40 from teamclairvoyant/standby_timeout | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037053 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 3 | Merge pull request #40 from teamclairvoyant/standby_timeout | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037054 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Build proper menu containers. (take 2) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037055 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Build proper menu containers. (take 2) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037056 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Build proper menu containers. (take 2) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037057 | <NME> scheduler_failover_controller.service
<BEF> #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 2 | Creating new branch for development. Updating version to 1.0.1 and updating systemd service file with updates. Updating README with new deployment options. | 2 | .service | service | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037058 | <NME> scheduler_failover_controller.service
<BEF> #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 2 | Creating new branch for development. Updating version to 1.0.1 and updating systemd service file with updates. Updating README with new deployment options. | 2 | .service | service | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037059 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Merge branch 'master' of github.com:rjackson/pivot.js | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037060 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Merge branch 'master' of github.com:rjackson/pivot.js | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037061 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Merge branch 'master' of github.com:rjackson/pivot.js | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037062 | <NME> pivot.css
<BEF> html { padding-top: 40px;}
.dropdown-menu a.remove-filter-field { display: inline;}
div.dataTables_length label {
float: left;
text-align: left;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
float: right;
}
div.dataTables_info {
padding-top: 8px;
}
d... | 6 | Replaced <h2> tags with CSS class. | 1 | .css | css | bsd-3-clause | rwjblue/pivot.js |
10037063 | <NME> pivot.css
<BEF> html { padding-top: 40px;}
.dropdown-menu a.remove-filter-field { display: inline;}
div.dataTables_length label {
float: left;
text-align: left;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
float: right;
}
div.dataTables_info {
padding-top: 8px;
}
d... | 6 | Replaced <h2> tags with CSS class. | 1 | .css | css | bsd-3-clause | rwjblue/pivot.js |
10037064 | <NME> pivot.css
<BEF> html { padding-top: 40px;}
.dropdown-menu a.remove-filter-field { display: inline;}
div.dataTables_length label {
float: left;
text-align: left;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
float: right;
}
div.dataTables_info {
padding-top: 8px;
}
d... | 6 | Replaced <h2> tags with CSS class. | 1 | .css | css | bsd-3-clause | rwjblue/pivot.js |
10037065 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Added virtualenv support | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037066 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Added virtualenv support | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037067 | <NME> setup.py
<BEF> from setuptools import setup, find_packages, Command
from scheduler_failover_controller import __version__
setup(
name='scheduler_failover_controller',
description='A process that runs in unison with Apache Airflow to control the Scheduler process to ensure High Availability',
version... | 1 | Cleaning up import statements | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037068 | <NME> setup.py
<BEF> from setuptools import setup, find_packages, Command
from scheduler_failover_controller import __version__
setup(
name='scheduler_failover_controller',
description='A process that runs in unison with Apache Airflow to control the Scheduler process to ensure High Availability',
version... | 1 | Cleaning up import statements | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037069 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 3 | Updating to include the v1.0.7 release for future commits. | 0 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037070 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 3 | Updating to include the v1.0.7 release for future commits. | 0 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037071 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 2 | Fix bug #15 | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037072 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 2 | Fix bug #15 | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037073 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 12 | Merge branch 'master' of github.com:rjackson/pivot.js | 6 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037074 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 12 | Merge branch 'master' of github.com:rjackson/pivot.js | 6 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037075 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 12 | Merge branch 'master' of github.com:rjackson/pivot.js | 6 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037076 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Reverse logic to make CSV default. (Addresses #1) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037077 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Reverse logic to make CSV default. (Addresses #1) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037078 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 1 | Reverse logic to make CSV default. (Addresses #1) | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037079 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 2 | Fixing startup and shutdow commands. Adding better check if command failed. | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037080 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 2 | Fixing startup and shutdow commands. Adding better check if command failed. | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037081 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 4 | Calculate preserveFilteredData after setting filters. | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037082 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 4 | Calculate preserveFilteredData after setting filters. | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037083 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 4 | Calculate preserveFilteredData after setting filters. | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037084 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 3 | update values for sleep | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037085 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 3 | update values for sleep | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037086 | <NME> .gitignore
<BEF> ADDFILE
<MSG> Add .gitignore.
<DFF> @@ -0,0 +1,1 @@
+Gemfile.lock
\ No newline at end of file
| 1 | Add .gitignore. | 0 | gitignore | bsd-3-clause | rwjblue/pivot.js | |
10037087 | <NME> .gitignore
<BEF> ADDFILE
<MSG> Add .gitignore.
<DFF> @@ -0,0 +1,1 @@
+Gemfile.lock
\ No newline at end of file
| 1 | Add .gitignore. | 0 | gitignore | bsd-3-clause | rwjblue/pivot.js | |
10037088 | <NME> .gitignore
<BEF> ADDFILE
<MSG> Add .gitignore.
<DFF> @@ -0,0 +1,1 @@
+Gemfile.lock
\ No newline at end of file
| 1 | Add .gitignore. | 0 | gitignore | bsd-3-clause | rwjblue/pivot.js | |
10037089 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge pull request #14 from alexgann/chosen | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037090 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge pull request #14 from alexgann/chosen | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037091 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge pull request #14 from alexgann/chosen | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037092 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 34 | Fix pre-checked checkboxes. | 26 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037093 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 34 | Fix pre-checked checkboxes. | 26 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037094 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 34 | Fix pre-checked checkboxes. | 26 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037095 | <NME> setup_scheduler_failover_controller_systemd_scripts.sh
<BEF> #!/bin/bash
SCHEDULER_FAILOVER_CONTROLLER_VERSION="v1.0.7"
REPO_ARCHIVE_URL="https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/archive/"
USERNAME="airflow"
GROUP="airflow"
echo "Deploying the systemd services for Airflow Schedul... | 1 | Merge pull request #37 from teamclairvoyant/development | 1 | .sh | sh | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037096 | <NME> setup_scheduler_failover_controller_systemd_scripts.sh
<BEF> #!/bin/bash
SCHEDULER_FAILOVER_CONTROLLER_VERSION="v1.0.7"
REPO_ARCHIVE_URL="https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/archive/"
USERNAME="airflow"
GROUP="airflow"
echo "Deploying the systemd services for Airflow Schedul... | 1 | Merge pull request #37 from teamclairvoyant/development | 1 | .sh | sh | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037097 | <NME> date_utils.py
<BEF> ADDFILE
<MSG> Initial commit to start modularizing code into separate files
<DFF> @@ -0,0 +1,11 @@
+import datetime
+
+TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S"
+
+
+def get_datetime_as_str(date):
+ return date.strftime(TIMESTAMP_FORMAT)
+
+
+def get_string_as_datetime(date_str):
+ return ... | 11 | Initial commit to start modularizing code into separate files | 0 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037098 | <NME> date_utils.py
<BEF> ADDFILE
<MSG> Initial commit to start modularizing code into separate files
<DFF> @@ -0,0 +1,11 @@
+import datetime
+
+TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S"
+
+
+def get_datetime_as_str(date):
+ return date.strftime(TIMESTAMP_FORMAT)
+
+
+def get_string_as_datetime(date_str):
+ return ... | 11 | Initial commit to start modularizing code into separate files | 0 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037099 | <NME> README.md
<BEF> # Welcome to Pivot.js
Pivot.js is a simple way for you to get to your data. It allows for the
creation of highly customizable unique table views from your browser.
> In data processing, a pivot table is a data summarization tool found in
> data visualization programs such as spreadsheets or bus... | 9 | Fixed links | 9 | .md | md | bsd-3-clause | rwjblue/pivot.js |
10037100 | <NME> README.md
<BEF> # Welcome to Pivot.js
Pivot.js is a simple way for you to get to your data. It allows for the
creation of highly customizable unique table views from your browser.
> In data processing, a pivot table is a data summarization tool found in
> data visualization programs such as spreadsheets or bus... | 9 | Fixed links | 9 | .md | md | bsd-3-clause | rwjblue/pivot.js |
10037101 | <NME> README.md
<BEF> # Welcome to Pivot.js
Pivot.js is a simple way for you to get to your data. It allows for the
creation of highly customizable unique table views from your browser.
> In data processing, a pivot table is a data summarization tool found in
> data visualization programs such as spreadsheets or bus... | 9 | Fixed links | 9 | .md | md | bsd-3-clause | rwjblue/pivot.js |
10037102 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 2 | Ignore grep command self | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037103 | <NME> failover_controller.py
<BEF> from scheduler_failover_controller.utils.date_utils import get_datetime_as_str
import sys
import traceback
import datetime
import time
from airflow.configuration import conf
import requests
class FailoverController:
IS_FAILOVER_CONTROLLER_ACTIVE = False # Set to False in the b... | 2 | Ignore grep command self | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037104 | <NME> setup.py
<BEF> from setuptools import setup, find_packages
from scheduler_failover_controller import __version__
setup(
name='scheduler_failover_controller',
description='A process that runs in unison with Apache Airflow to control the Scheduler process to ensure High Availability',
version=__versio... | 1 | Revert to previous release v1.0.1 | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037105 | <NME> setup.py
<BEF> from setuptools import setup, find_packages
from scheduler_failover_controller import __version__
setup(
name='scheduler_failover_controller',
description='A process that runs in unison with Apache Airflow to control the Scheduler process to ensure High Availability',
version=__versio... | 1 | Revert to previous release v1.0.1 | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037106 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 2 | Merge pull request #41 from teamclairvoyant/no_strict_host_checking | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037107 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 2 | Merge pull request #41 from teamclairvoyant/no_strict_host_checking | 2 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037108 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Rearranging repo structure to make it more obvious how deployment should look. updating README file. | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037109 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 1 | Rearranging repo structure to make it more obvious how deployment should look. updating README file. | 1 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037110 | <NME> setup_scheduler_failover_controller_systemd_scripts.sh
<BEF> #!/bin/bash
SCHEDULER_FAILOVER_CONTROLLER_VERSION="v1.0.3"
REPO_ARCHIVE_URL="https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/archive/"
USERNAME="airflow"
GROUP="airflow"
echo "Deploying the systemd services for Airflow Schedul... | 1 | Merge pull request #17 from teamclairvoyant/development | 1 | .sh | sh | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037111 | <NME> setup_scheduler_failover_controller_systemd_scripts.sh
<BEF> #!/bin/bash
SCHEDULER_FAILOVER_CONTROLLER_VERSION="v1.0.3"
REPO_ARCHIVE_URL="https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/archive/"
USERNAME="airflow"
GROUP="airflow"
echo "Deploying the systemd services for Airflow Schedul... | 1 | Merge pull request #17 from teamclairvoyant/development | 1 | .sh | sh | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037112 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 1 | Updating comment to show an exception for using systemctl commands | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037113 | <NME> command_runner.py
<BEF> import subprocess
import os
class CommandRunner:
HOST_LIST_TO_RUN_LOCAL = ["localhost", "127.0.0.1"]
def __init__(self, local_hostname, logger):
logger.debug("Creating CommandRunner with Args - local_hostname: {local_hostname}, logger: {logger}".format(**locals()))
... | 1 | Updating comment to show an exception for using systemctl commands | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037114 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 1 | Updating README file. Updating print statment. Updating default config comments. | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037115 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 1 | Updating README file. Updating print statment. Updating default config comments. | 1 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037116 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 4 | Merge pull request #8 from zackmeso/master | 4 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037117 | <NME> configuration.py
<BEF> import os
import socket
import sys
import logging
from six.moves import configparser
def get_airflow_home_dir():
return os.environ['AIRFLOW_HOME'] if "AIRFLOW_HOME" in os.environ else os.path.expanduser("~/airflow")
DEFAULT_AIRFLOW_HOME_DIR = get_airflow_home_dir()
DEFAULT_METADATA_SE... | 4 | Merge pull request #8 from zackmeso/master | 4 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037118 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 2 | Use internal representation of dates in tests. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037119 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 2 | Use internal representation of dates in tests. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037120 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 2 | Use internal representation of dates in tests. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037121 | <NME> cli.py
<BEF> #!/usr/bin/env python
from scheduler_failover_controller.app import build_metadata_service
from scheduler_failover_controller.command_runner.command_runner import CommandRunner
from scheduler_failover_controller.configuration import Configuration
from scheduler_failover_controller.emailer.emailer imp... | 9 | VIRTUAL ENV SUPPORT: venv cli param | 3 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037122 | <NME> cli.py
<BEF> #!/usr/bin/env python
from scheduler_failover_controller.app import build_metadata_service
from scheduler_failover_controller.command_runner.command_runner import CommandRunner
from scheduler_failover_controller.configuration import Configuration
from scheduler_failover_controller.emailer.emailer imp... | 9 | VIRTUAL ENV SUPPORT: venv cli param | 3 | .py | py | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037123 | <NME> data.js
<BEF> function pivotData(type) {
var opts = {raw: rawData,
all: data
if (type !== undefined) {
return opts[type]
} else {
return opts
};
}
<MSG> Began documentation process. Using jsduck.
<DFF> @@ -1,3 +1,10 @@
+/**
+ * Returns
+ * @param type... | 7 | Began documentation process. Using jsduck. | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037124 | <NME> data.js
<BEF> function pivotData(type) {
var opts = {raw: rawData,
all: data
if (type !== undefined) {
return opts[type]
} else {
return opts
};
}
<MSG> Began documentation process. Using jsduck.
<DFF> @@ -1,3 +1,10 @@
+/**
+ * Returns
+ * @param type... | 7 | Began documentation process. Using jsduck. | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037125 | <NME> data.js
<BEF> function pivotData(type) {
var opts = {raw: rawData,
all: data
if (type !== undefined) {
return opts[type]
} else {
return opts
};
}
<MSG> Began documentation process. Using jsduck.
<DFF> @@ -1,3 +1,10 @@
+/**
+ * Returns
+ * @param type... | 7 | Began documentation process. Using jsduck. | 0 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037126 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 11 | Merge branch 'master' of github.com:m4urer/pivot.js into m4urer-master | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037127 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 11 | Merge branch 'master' of github.com:m4urer/pivot.js into m4urer-master | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037128 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 11 | Merge branch 'master' of github.com:m4urer/pivot.js into m4urer-master | 3 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037129 | <NME> results.js
<BEF> function pivotResults(){
return {
data: getDataResults,
columns: getColumnResults
}
};
function getDataResults(){
applyFilter();
results = {};
function getFormattedResults(){
if (results !== undefined && resultsColumns !== undefined) return getResul... | 9 | Continue documentation process. @param tag is a little wonky, not picking up some values. | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037130 | <NME> results.js
<BEF> function pivotResults(){
return {
data: getDataResults,
columns: getColumnResults
}
};
function getDataResults(){
applyFilter();
results = {};
function getFormattedResults(){
if (results !== undefined && resultsColumns !== undefined) return getResul... | 9 | Continue documentation process. @param tag is a little wonky, not picking up some values. | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037131 | <NME> results.js
<BEF> function pivotResults(){
return {
data: getDataResults,
columns: getColumnResults
}
};
function getDataResults(){
applyFilter();
results = {};
function getFormattedResults(){
if (results !== undefined && resultsColumns !== undefined) return getResul... | 9 | Continue documentation process. @param tag is a little wonky, not picking up some values. | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037132 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge branch 'master' of github.com:rjackson/pivot.js | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037133 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge branch 'master' of github.com:rjackson/pivot.js | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037134 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 6 | Merge branch 'master' of github.com:rjackson/pivot.js | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037135 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 16 | Start working on detail/label grouping. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037136 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 16 | Start working on detail/label grouping. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037137 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 16 | Start working on detail/label grouping. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037138 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 2 | Change detail fields to labelable fields. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037139 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 2 | Change detail fields to labelable fields. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037140 | <NME> pivot.js
<BEF> /**
* @docauthor Jonathan Jackson
* @class Pivot
* # Welcome to Pivot.js
*
* Pivot.js is a simple way for you to get to your data. It allows for the
* creation of highly customizable unique table views from your browser.
*
* > In data processing, a pivot table is a data summarization tool found in... | 2 | Change detail fields to labelable fields. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037141 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 6 | Update README.md | 0 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037142 | <NME> README.md
<BEF> # Airflow Scheduler Failover Controller
## Project Purpose
The purpose of this project is to create a failover controller that will control which scheduler is up and running to allow HA across an Airflow cluster.
## Motivation
We had attempted to setup a Highly Available Airflow Cluster whe... | 6 | Update README.md | 0 | .md | md | apache-2.0 | teamclairvoyant/airflow-scheduler-failover-controller |
10037143 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Start adding Results section to tests. | 18 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037144 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Start adding Results section to tests. | 18 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037145 | <NME> pivotjs_spec.js
<BEF> describe('pivot', function () {
var sample_csv, sample_fields;
beforeEach(function () {
sample_csv = "last_name,first_name,zip_code,billed_amount,last_billed_date\n" +
"Jackson,Robert,34471,100.00,\"Tue, 24 Jan 2012 00:00:00 +0000\"\n" +
"S... | 5 | Start adding Results section to tests. | 18 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037146 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 2 | Only show multiple header rows for columnLabel fields if more than one summary field is selected. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037147 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 2 | Only show multiple header rows for columnLabel fields if more than one summary field is selected. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037148 | <NME> jquery_pivot.js
<BEF> (function( $ ){
'use strict';
var element,
callbacks = {},
resultsTitle,
resultsDivID;
var methods = {
setup : function(options){
element = this; // set element for build_containers()
if (options.callbacks) callbacks = options.callbacks;
if(options.resul... | 2 | Only show multiple header rows for columnLabel fields if more than one summary field is selected. | 2 | .js | js | bsd-3-clause | rwjblue/pivot.js |
10037149 | <NME> data.js
<BEF> /**
* Returns
* @param type A string, either 'raw', or 'all'.
* @return {Object} An object containing lists of fields
* @return {Object} return.all() A collection of fields after filter has been applied.
function pivotData(type) {
var opts = {raw: rawData,
all: ... | 1 | Update docs. | 1 | .js | js | bsd-3-clause | rwjblue/pivot.js |