index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
3,179 | smartgang/KViewer | refs/heads/master | /complex.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'complex.ui'
#
# Created: Sat Jul 14 20:48:01 2018
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(s... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,180 | smartgang/KViewer | refs/heads/master | /Indexer/ATR.py | # -*- coding: utf-8 -*-
from IndexerBase import IndexerBase
import numpy as np
class ATR(IndexerBase):
indexer_name = 'ATR'
indexer_name_list = ['ATR', 'TR']
default_para_dic = {
'N': 26,
}
def __init__(self, raw_data, plt):
super(ATR, self).__init__(raw_data, plt)
self.ind... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,181 | smartgang/KViewer | refs/heads/master | /DataInterface/DataInterface.py | # -*- coding: utf-8 -*-
import pandas as pd
import time
import os
# 读取中文路径
Collection_Path = unicode('D:\\002 MakeLive\DataCollection\\', 'utf-8')
PUBLIC_DATA_PATH = unicode('D:\\002 MakeLive\DataCollection\public data\\', 'utf-8')
RAW_DATA_PATH = unicode('D:\\002 MakeLive\DataCollection\\raw data\\', 'utf-8')
TICKS_D... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,182 | smartgang/KViewer | refs/heads/master | /Indexer/RSI.py | # -*- coding: utf-8 -*-
from IndexerBase import IndexerBase
import numpy as np
import talib
class RSI(IndexerBase):
indexer_name = 'RSI'
indexer_name_list = ['RSI']
default_para_dic = {
'N': 5,
}
def __init__(self, raw_data, plt):
super(RSI, self).__init__(raw_data, plt)
s... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,183 | smartgang/KViewer | refs/heads/master | /untitled.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created: Wed Jul 11 23:51:04 2018
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(s... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,184 | smartgang/KViewer | refs/heads/master | /kviewer_app.py | # -*- coding: utf-8 -*-
import kviewer2
from indexer import Indexer_MA
import parameter2
from PyQt5 import QtCore, QtWidgets, QtGui
import sys
import time
import pyqtgraph as pg
import pandas as pd
import numpy as np
#import tushare as ts
import datetime
from matplotlib.pylab import date2num
#import DATA_CONSTANTS as... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,185 | smartgang/KViewer | refs/heads/master | /Indexer/EMA.py | # -*- coding: utf-8 -*-
from IndexerBase import IndexerBase
class EMA(IndexerBase):
indexer_name = 'EMA'
indexer_name_list = [] # MA的指标名和参数名都跟参数有关,所以要随参数进行设置
default_para_dic = {
'N1': 5,
'N2': 10,
'N3': 15,
'N4': 30,
'N5': 50
}
def __init__(self, raw_data... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,186 | smartgang/KViewer | refs/heads/master | /Indexer/IndexerBase.py | # -*- coding: utf-8 -*-
"""
指标类,用于管理指标相内容:
"""
class IndexerBase(object):
color_list = ['blue', 'magenta', 'cyan', 'red', 'green']
indexer_name = ''
indexer_name_list = []
default_para_dic = {}
para_dic = {}
indexer_color_dic = {} # 各指标对应的显示颜色
def __init__(self, raw_data, plt):
se... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,187 | smartgang/KViewer | refs/heads/master | /Indexer/__init__.py | # -*- coding: utf-8 -*-
from IndexerWidget import IndexerWidget
from MA import MA
from MACD import MACD
from RSI import RSI
from ATR import ATR
from HullMacd import HULL_MACD
from EMA import EMA
from HullRsi import HULL_RSI
from KDJ import KDJ
from DMI import DMI
indexer_mapping_dic = {
'MA': MA,
'EMA': EMA,
... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,188 | smartgang/KViewer | refs/heads/master | /Indexer/KDJ.py | # -*- coding: utf-8 -*-
from IndexerBase import IndexerBase
import numpy as np
import talib
class KDJ(IndexerBase):
indexer_name = 'KDJ'
indexer_name_list = ['K', 'D', 'J']
default_para_dic = {
'N': 9,
'M1': 3,
'M2': 3
}
def __init__(self, raw_data, plt):
super(KDJ... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,189 | smartgang/KViewer | refs/heads/master | /parameter.py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'parameter.ui'
#
# Created: Sat Jul 21 16:49:46 2018
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_Form(object):
def setupUi(self,... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,190 | smartgang/KViewer | refs/heads/master | /Indexer/IndexerWidget.py | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from Indexer import *
class IndexerWidget(QWidget):
signal_para_changed = pyqtSignal(str,dict, name='para_changed')
def __init__(self, all_indexer_para_dic, current_indexer_name):
sup... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,191 | smartgang/KViewer | refs/heads/master | /nullWindow.py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(641, 405)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("cen... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,192 | smartgang/KViewer | refs/heads/master | /MainFrame.py | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import *
from KViewer_new import KViewer
class KViewerMainWindow(QMainWindow):
def __init__(self, parent=None):
super(KViewerMainWindow, self).__init__(parent)
self.resize(800,600)
self.setWindowTitle('KViewer')
self.tab_widg... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,193 | smartgang/KViewer | refs/heads/master | /Indexer/MACD.py | # -*- coding: utf-8 -*-
from IndexerBase import IndexerBase
import pyqtgraph as pg
class MACD(IndexerBase):
indexer_name = 'MACD'
indexer_name_list = ['DIF', 'DEA', 'HIST'] # MA的指标名和参数名都跟参数有关,所以要随参数进行设置
default_para_dic = {
'Short':12,
'Mid':9,
'Long':26
}
def __init__(sel... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,194 | smartgang/KViewer | refs/heads/master | /parameter2.py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(398, 494)
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.gro... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,195 | smartgang/KViewer | refs/heads/master | /KViewer_new.py | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from Indexer import *
import pyqtgraph as pg
import pandas as pd
from ChildGraph import ChildGraph
import DataInterface.DataInterface as DI
class KViewer(QWidget):
def __init__(self,):
su... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,196 | smartgang/KViewer | refs/heads/master | /kviewer2.py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
sizePolicy = QtWidgets.QSizePolicy(Qt... | {"/ChildGraph.py": ["/Indexer/__init__.py"], "/complexExample.py": ["/complex2.py"], "/decouple_window.py": ["/nullWindow.py"], "/kviewer_app.py": ["/kviewer2.py", "/indexer.py", "/parameter2.py"], "/Indexer/IndexerWidget.py": ["/Indexer/__init__.py"], "/MainFrame.py": ["/KViewer_new.py"], "/KViewer_new.py": ["/Indexer... |
3,204 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /examples/complex_sequences.py | from geneblocks import DiffBlocks, CommonBlocks, random_dna_sequence
import geneblocks.sequence_modification_utils as smu
import matplotlib.pyplot as plt
import numpy
numpy.random.seed(1) # ensures the sequences will be the same at each run
# GENERATE 2 "SISTER" SEQUENCES FOR THE EXAMPLE
seq1 = random_dna_sequence(5... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,205 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /tests/test_complex_sequences.py | from geneblocks import DiffBlocks, CommonBlocks, random_dna_sequence
import geneblocks.sequence_modification_utils as smu
import matplotlib.pyplot as plt
def test_complex_sequences():
seq1 = random_dna_sequence(50000, seed=123)
seq1 = smu.copy(seq1, 25000, 30000, 50000)
seq2 = seq1
seq2 = smu.insert(... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,206 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /tests/test_base_diff_cases.py | from geneblocks.DiffBlocks import DiffBlock, DiffBlocks
from geneblocks.biotools import random_dna_sequence
def diff_string(seq1, seq2, contract_under=0):
return str(DiffBlocks.from_sequences(seq1, seq2))
flanks_dict = {
'short': 10 * "A",
'long': random_dna_sequence(10000)
}
def flanked(seq, flanks='shor... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,207 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/Location.py | from .biotools import reverse_complement
from Bio.SeqFeature import SeqFeature, FeatureLocation
class Location:
def __init__(
self, start, end, strand=None, sequence=None, sequence_id=None
):
self.start = start
self.end = end
self.strand = strand
self.sequence = sequen... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,208 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/DiffBlocks/DiffBlocks.py | from copy import deepcopy
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import numpy as np
from ..Location import Location
from ..biotools import sequence_to_record
from ..CommonBlocks import CommonBlocks
from .DiffBlock import DiffBlock
from .DiffRecordTranslator import DiffRecordTranslator... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,209 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/CommonBlocks/__init__.py | from .CommonBlocks import CommonBlocks
__all__ = ['CommonBlocks'] | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,210 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/biotools.py | import tempfile
import subprocess
import numpy as np
try:
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeature import SeqFeature, FeatureLocation
from Bio import SeqIO
BIOPYTHON_AVAILABLE = True
except ImportError:
BIOPYTHON_AVAILABLE = False
try:
# Biopython <... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,211 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/DiffBlocks/DiffBlock.py | from ..Location import Location
from ..biotools import sequences_differences
class DiffBlock:
"""Class to represent a segment that differs between sequences.
Parameters
----------
operation
One of "insert", "delete", "replace", or "equal".
s1_location
The Location(start, end) of the ... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,212 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/utils.py | from .CommonBlocks import CommonBlocks
from .biotools import sequence_to_record
def _turn_sequence_into_record_if_necessary(sequence, record_id="id"):
if hasattr(sequence, "seq"):
return sequence
else:
return sequence_to_record(sequence, record_id=record_id)
def sequences_are_circularly_equa... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,213 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/DiffBlocks/diffblocks_tools.py | from copy import deepcopy
import networkx as nx
import Levenshtein
from ..Location import Location
from .DiffBlock import DiffBlock
def compute_levenshtein_blocks(seq1, seq2, max_complexity=1e8):
"""Compute the Levenshtein blocks of insertion, deletion, replacement.
"""
# TODO: better method for dealin... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,214 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/CommonBlocks/commonblocks_tools.py | """Algorithmic methods for the selection of common blocks in DiffBlocks
- select_common_blocks
-
- segments_difference
"""
import re
import tempfile
import subprocess
from collections import defaultdict, OrderedDict
import numpy as np
from ..biotools import reverse_complement, sequence_to_record
def format_seq... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,215 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /tests/test_utils.py | from geneblocks.utils import sequences_are_circularly_equal
from Bio import SeqIO
import os
this_directory = os.path.dirname(os.path.realpath(__file__))
def test_sequences_are_circularly_equal():
block_1 = "ATGTGCACACGCACCGTGTGTGCACACACGTGTGCACACACGTGCACACGGTGT"
block_2 = "ACACACATATACGCGTGCGTGCAAAACACATTTT... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,216 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/DiffBlocks/__init__.py | from .DiffBlocks import DiffBlocks, DiffBlock
from .DiffRecordTranslator import DiffRecordTranslator
__all__ = ['DiffBlocks', 'DiffBlock', 'DiffRecordTranslator'] | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,217 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /tests/test_scenarios.py | import os
import matplotlib
import networkx as nx
from geneblocks import CommonBlocks, DiffBlocks, load_record
from geneblocks.biotools import reverse_complement, random_dna_sequence
from geneblocks.DiffBlocks import DiffBlock
from geneblocks.Location import Location
matplotlib.use("Agg")
def test_CommonBlocks_basic... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,218 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /setup.py | import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
exec(open("geneblocks/version.py").read()) # loads __version__
setup(
name="geneblocks",
version=__version__,
author="Zulko",
description="Library to compare DNA sequences (diff, common blocks, etc.)",
long_de... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,219 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/CommonBlocks/CommonBlocks.py | """Defines central class BlockFinder."""
import itertools
from collections import OrderedDict
from copy import deepcopy
from .CommonBlocksRecordTranslator import CommonBlocksRecordTranslator
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from ..biotools import annotate_record
from .commonblocks_tools im... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,220 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /examples/features_transfer.py | import os
from geneblocks import CommonBlocks, load_record
from dna_features_viewer import BiopythonTranslator
import matplotlib.pyplot as plt
# LOAD THE TWO RECORDS
part_path = os.path.join("sequences", "features_transfer", "part.gb")
part = load_record(part_path, name="part")
plasmid_path = os.path.join(
"seque... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,221 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/__init__.py | """ geneblocks/__init__.py """
# __all__ = []
from .CommonBlocks import CommonBlocks
from .DiffBlocks import DiffBlocks, DiffRecordTranslator
from .biotools import load_record, random_dna_sequence, reverse_complement
from .utils import sequences_are_circularly_equal
from .version import __version__
__all__ = [
... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,222 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /examples/diff_blocks.py | import os
from geneblocks import DiffBlocks, load_record
seq_1 = load_record(os.path.join("sequences", "sequence1.gb"))
seq_2 = load_record(os.path.join("sequences", "sequence2.gb"))
diff_blocks = DiffBlocks.from_sequences(seq_1, seq_2)
ax1, ax2 = diff_blocks.plot(figure_width=8)
ax1.figure.savefig("diff_blocks.png",... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,223 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /examples/common_blocks.py | from geneblocks import CommonBlocks
from geneblocks.biotools import reverse_complement, random_dna_sequence
C1, A, B, C2, C3, D, E, F = [random_dna_sequence(100 * L) for L in range(1, 9)]
sequences = {
"a": C1 + A + C2,
"b": B + D + C2 + C3,
"c": E + C1 + C2,
"d": C2 + C1 + F + C3,
"e": C3 + rever... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,224 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/DiffBlocks/DiffRecordTranslator.py | from dna_features_viewer import BiopythonTranslator
class DiffRecordTranslator(BiopythonTranslator):
ignored_features_types = ("diff_equal",)
default_box_color = None
@staticmethod
def compute_feature_color(f):
return dict(
diff_delete="#E76F51", # RED
diff_insert="#... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,225 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/sequence_modification_utils.py | """These methods are only useful to build examples and tests for Geneblocks."""
from .biotools import reverse_complement
def change(seq, start, end, change):
"""Return the sequence with ``seq[start:end]`` replaced by ``change``"""
return seq[:start] + change + seq[end:]
def insert(seq, pos, inserted):
... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,226 | Edinburgh-Genome-Foundry/Geneblocks | refs/heads/master | /geneblocks/CommonBlocks/CommonBlocksRecordTranslator.py | from dna_features_viewer import BiopythonTranslator
class CommonBlocksRecordTranslator(BiopythonTranslator):
ignored_features_types = ("diff_equal",)
default_box_color = None
def compute_feature_color(self, f):
if f.qualifiers.get("is_block", False):
return BiopythonTranslator.comput... | {"/examples/complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_complex_sequences.py": ["/geneblocks/__init__.py", "/geneblocks/sequence_modification_utils.py"], "/tests/test_base_diff_cases.py": ["/geneblocks/DiffBlocks/__init__.py", "/geneblocks/biotools.py"]... |
3,231 | ronbeltran/four-pics-one-word | refs/heads/master | /game/models.py | from google.appengine.ext import ndb
class Letters(ndb.Model):
match_count = ndb.IntegerProperty(required=True, default=0)
@classmethod
def _build_key(cls, letters):
return ndb.Key(cls, letters)
@classmethod
def new(cls, letters, match_count):
key = cls._build_key(letters)
... | {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,232 | ronbeltran/four-pics-one-word | refs/heads/master | /game/views.py | import logging
import operator
from flask import render_template, request
from google.appengine.api import memcache
from game import app
from game import utils
from game import models
EXPIRE_TIME = 60 * 60 * 24 # 24 hours
@app.route('/', methods=['GET', 'POST'])
def home():
context = {}
if request.method ... | {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,233 | ronbeltran/four-pics-one-word | refs/heads/master | /game/utils.py | import pickle
import logging
WORDS = pickle.load(open('./static/google-books-common-words.bin', 'r'))
def is_subset(word, choices):
_choices = list(choices)
for c in word:
if c not in _choices:
return False
_choices.remove(c)
return True
def get_words(length, letters):
... | {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,234 | ronbeltran/four-pics-one-word | refs/heads/master | /api.py | import endpoints
from protorpc import messages
from protorpc import message_types
from protorpc import remote
package = 'Wordsapi'
from game import utils
class Word(messages.Message):
word = messages.StringField(1)
frequency = messages.StringField(2)
class Words(messages.Message):
words = messages.Mes... | {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,235 | ronbeltran/four-pics-one-word | refs/heads/master | /static/serialize.py | #!/usr/bin/env python
import os
import pickle
FILEPATH = os.path.abspath('google-books-common-words.txt')
WORD_LENGTHS = []
def convert_to_dict(filename):
data = {}
with open(filename, 'r') as f:
for line in f:
if line.startswith('#'):
continue
key, value = li... | {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,236 | ronbeltran/four-pics-one-word | refs/heads/master | /game/__init__.py | from flask import Flask
app = Flask(__name__)
from game import views # noqa
| {"/game/views.py": ["/game/__init__.py"], "/api.py": ["/game/__init__.py"]} |
3,237 | MTG/pymtg | refs/heads/master | /setup.py | from setuptools import setup, find_packages
setup(name='pymtg',
version='0.2.1',
description='Python research utils that some of us use at the MTG and eventually everyone will use :)',
url='https://github.com/MTG/pymtg',
author='Music Technology Group',
author_email='mtg-info@upf.edu',
... | {"/test.py": ["/pymtg/__init__.py"]} |
3,238 | MTG/pymtg | refs/heads/master | /pymtg/processing/__init__.py | from .worker import WorkParallelizer | {"/test.py": ["/pymtg/__init__.py"]} |
3,239 | MTG/pymtg | refs/heads/master | /test.py | import doctest
import unittest
import pkgutil
import pymtg
# Create a unit test suite and add all pymtg modules' doctests
suite = unittest.TestSuite()
for _, modname, _ in pkgutil.iter_modules(pymtg.__path__, prefix='pymtg.'):
suite.addTest(doctest.DocTestSuite(modname))
runner = unittest.TextTestRunner(verbosity=... | {"/test.py": ["/pymtg/__init__.py"]} |
3,240 | MTG/pymtg | refs/heads/master | /pymtg/io/__init__.py | import os
import errno
import json
import fnmatch
def json_dump(path, data, indent=4, verbose=False):
"""Save python dictionary ``data`` to JSON file at ``path``.
Args:
path (str): Path to the file
verbose (bool): Verbosity flag
"""
with open(path, 'w') as f:
if verbose:
... | {"/test.py": ["/pymtg/__init__.py"]} |
3,241 | MTG/pymtg | refs/heads/master | /pymtg/__init__.py | import pkgutil
for _, modname, _ in pkgutil.iter_modules(__path__, prefix='pymtg.'):
__import__(modname)
| {"/test.py": ["/pymtg/__init__.py"]} |
3,242 | MTG/pymtg | refs/heads/master | /pymtg/plotting/__init__.py | COLORS = ['#FF4500', '#FFA500', '#6B8E23', '#32CD32', '#FFD700', '#008B8B', '#00008B', '#B22222', '#1E90FF', '#FF1493',
'#008000', '#DAA520', '#2F4F4F', '#8B0000', '#FF8C00', '#8B008B', '#A9A9A9', '#B8860B', '#00FFFF', '#6495ED',
'#FF7F50', '#D2691E', '#7FFF00', '#DEB887', '#8A2BE2', '#0000FF', '#00... | {"/test.py": ["/pymtg/__init__.py"]} |
3,243 | MTG/pymtg | refs/heads/master | /pymtg/iterables/__init__.py | def chunks(l, n):
"""Yield successive ``n``-sized chunks from ``l``.
Examples:
>>> chunks([1, 2, 3, 4, 5], 2) #doctest: +ELLIPSIS
<generator object chunks at 0x...>
>>> list(chunks([1, 2, 3, 4, 5], 2))
[[1, 2], [3, 4], [5]]
"""
for i in range(0, len(l), n):
yield... | {"/test.py": ["/pymtg/__init__.py"]} |
3,244 | MTG/pymtg | refs/heads/master | /pymtg/signal/__init__.py | import numpy as np
def smooth(x, window_len=11, window='hanning', preserve_length=True):
"""Smooth the data using a window with requested size.
This method is based on the convolution of a scaled window with the signal.
The signal is prepared by introducing reflected copies of the signal
(with the w... | {"/test.py": ["/pymtg/__init__.py"]} |
3,245 | MTG/pymtg | refs/heads/master | /pymtg/time/__init__.py | import time
import datetime
def time_stats(done, total, starttime):
"""Count how far through a repeated operation you are.
Use this method if you are performing a repeated operation over
a list of items and you want to check progress and time remaining
after each iteration.
Args:
done (i... | {"/test.py": ["/pymtg/__init__.py"]} |
3,258 | yjad/Academy | refs/heads/master | /flaskblog/users/routes.py | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from flaskblog import db, bcrypt
from flaskblog.models import User, Post, Role
from flaskblog.users.forms import (RegistrationForm, LoginForm, UpdateAccountForm,
... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,259 | yjad/Academy | refs/heads/master | /flaskblog/reports/routes.py | from flask import render_template, request, Blueprint, url_for, Flask
from flask_login import login_required
from flaskblog.models import Post
from flaskblog.reports.zoom_reports import attendees_last_2_month, update_meetings, attendees_per_month
import os
reports = Blueprint('reports', __name__)
@reports.route("/... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,260 | yjad/Academy | refs/heads/master | /flaskblog/users/forms.py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField, SelectField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from flaskblog.models import ... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,261 | yjad/Academy | refs/heads/master | /flaskblog/reports/run.py |
from zoom import load_zoom_meetings, get_zoom_report_daily, load_zoom_telephone_report, get_meeting_details
from zoom_reports import stats_attendees, attendance_sheet, list_unmatched_attendees, update_meetings, \
stats_attendees_graph
if __name__ == "__main__":
#load_zoom_meetings("2020-06-15", "2020-07-14")
... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,262 | yjad/Academy | refs/heads/master | /flaskblog/config.py | import os
class Config:
#SECRET_KEY = os.environ.get('SECRET_KEY')
SECRET_KEY = '793c5f9c78d57a71bbc1e21eed2aa6b3'
#SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_DATABASE_URI = 'sqlite:///data/site.sqlite'
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,263 | yjad/Academy | refs/heads/master | /flaskblog/reports/DB.py | import sqlite3
from sqlalchemy.sql import text
from flaskblog.reports.config import config
from flaskblog import db
MEETING_TABLE = "meetings"
ATTENDEES_TABLE = "attendees"
# def open_db():
# connection = sqlite3.Connection(config.get("DB_FILE_NAME"))
# cursor = connection.cursor()
# return connection, c... | {"/flaskblog/users/routes.py": ["/flaskblog/users/forms.py"]} |
3,264 | supasate/FBPCS | refs/heads/main | /tests/util/test_yaml.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import json
import unittest
from unittest.mock import patch, mock_open
from fbpcs.util.yaml import load, dump
TEST_FI... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,265 | supasate/FBPCS | refs/heads/main | /onedocker/tests/test_util.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import subprocess
import unittest
from util import run_cmd
class TestUtil(unittest.TestCase):
def test_run_cmd(s... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,266 | supasate/FBPCS | refs/heads/main | /tests/error/mapper/test_aws.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from botocore.exceptions import ClientError
from fbpcs.error.mapper.aws import map_aws_error
from fbpc... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,267 | supasate/FBPCS | refs/heads/main | /fbpcs/gateway/ec2.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import Any, Dict, List, Optional
import boto3
from fbpcs.decorator.error_handler import err... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,268 | supasate/FBPCS | refs/heads/main | /onedocker/util.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import signal
import subprocess
from typing import Optional
def run_cmd(cmd: str, timeout: Optional[int]) -... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,269 | supasate/FBPCS | refs/heads/main | /tests/service/test_container_aws.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import MagicMock, patch
from fbpcs.service.container_aws import (
ContainerInst... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,270 | supasate/FBPCS | refs/heads/main | /fbpcs/service/log_cloudwatch.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import Any, Dict, Optional
from fbpcs.gateway.cloudwatch import CloudWatchGateway
from fbpc... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,271 | supasate/FBPCS | refs/heads/main | /tests/gateway/test_cloudwatch.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import MagicMock, patch
from fbpcs.gateway.cloudwatch import CloudWatchGateway
cl... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,272 | supasate/FBPCS | refs/heads/main | /tests/gateway/test_ec2.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import MagicMock, patch
from fbpcs.entity.vpc_instance import Vpc, VpcState
from fb... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,273 | supasate/FBPCS | refs/heads/main | /fbpcs/entity/vpc_instance.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from dataclasses import dataclass, field
from enum import Enum
from typing import Dict
from dataclasses... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,274 | supasate/FBPCS | refs/heads/main | /tests/service/test_storage_s3.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from unittest.mock import call, MagicMock, patch
from fbpcs.service.storage_s3 import S3Stor... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,275 | supasate/FBPCS | refs/heads/main | /fbpcs/service/container.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import abc
from typing import List
from fbpcs.entity.container_instance import ContainerInstance
clas... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,276 | supasate/FBPCS | refs/heads/main | /tests/util/test_typing.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from fbpcs.util.typing import checked_cast
TEST_STR = "test"
TEST_NUM = 123
class TestTyping(unitte... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,277 | supasate/FBPCS | refs/heads/main | /fbpcs/repository/instance_s3.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import pickle
from fbpcs.entity.instance_base import InstanceBase
from fbpcs.service.storage_s3 import ... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,278 | supasate/FBPCS | refs/heads/main | /tests/util/test_reflect.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from fbpcs.util.reflect import get_class
from fbpcs.util.s3path import S3Path
TEST_CLASS_PATH = "fbpc... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,279 | supasate/FBPCS | refs/heads/main | /setup.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from setuptools import setup, find_packages
install_requires = [
"boto3==1.11.11",
"dataclasses-json==0.5.2",... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,280 | supasate/FBPCS | refs/heads/main | /fbpcs/util/s3path.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import re
from typing import Tuple
class S3Path:
region: str
bucket: str
key: str
def... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,281 | supasate/FBPCS | refs/heads/main | /fbpcs/service/storage.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import abc
from enum import Enum
class PathType(Enum):
Local = 1
S3 = 2
class StorageService... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,282 | supasate/FBPCS | refs/heads/main | /fbpcs/decorator/error_handler.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Callable
from botocore.exceptions import ClientError
from fbpcs.error.mapper.aws import map_aws_err... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,283 | supasate/FBPCS | refs/heads/main | /tests/service/test_mpc.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import AsyncMock, MagicMock, patch
from fbpcs.entity.container_instance import Cont... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,284 | supasate/FBPCS | refs/heads/main | /fbpcs/entity/mpc_instance.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from dataclasses import dataclass
from enum import Enum
from typing import Any, Dict, List, Mapping, Opt... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,285 | supasate/FBPCS | refs/heads/main | /tests/service/test_onedocker.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import AsyncMock, patch
from fbpcs.entity.container_instance import ContainerInstan... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,286 | supasate/FBPCS | refs/heads/main | /fbpcs/util/typing.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import Type, TypeVar
T = TypeVar("T")
V = TypeVar("V")
# pyre-fixme[34]: `T` isn't prese... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,287 | supasate/FBPCS | refs/heads/main | /tests/util/test_s3path.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from fbpcs.util.s3path import S3Path
class TestS3Path(unittest.TestCase):
def test_s3path_no_sub... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,288 | supasate/FBPCS | refs/heads/main | /fbpcs/repository/mpc_game_repository.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import abc
from fbpcs.entity.mpc_game_config import MPCGameConfig
class MPCGameRepository(abc.ABC):
... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,289 | supasate/FBPCS | refs/heads/main | /fbpcs/service/log.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import abc
from typing import Any, Dict
class LogService(abc.ABC):
@abc.abstractmethod
def fet... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,290 | supasate/FBPCS | refs/heads/main | /fbpcs/repository/mpc_instance_local.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import cast
from fbpcs.entity.mpc_instance import MPCInstance
from fbpcs.repository.instanc... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,291 | supasate/FBPCS | refs/heads/main | /tests/gateway/test_s3.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import MagicMock, patch
from fbpcs.gateway.s3 import S3Gateway
class TestS3Gatewa... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,292 | supasate/FBPCS | refs/heads/main | /fbpcs/service/mpc.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import asyncio
import logging
from typing import Any, Dict, List, Optional
from fbpcs.entity.container_... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,293 | supasate/FBPCS | refs/heads/main | /fbpcs/util/reflect.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from importlib import import_module
from typing import Any
# pyre-ignore
def get_class(class_path: str... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,294 | supasate/FBPCS | refs/heads/main | /tests/service/test_storage.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from fbpcs.service.storage import PathType, StorageService
class TestStorageService(unittest.TestCas... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,295 | supasate/FBPCS | refs/heads/main | /onedocker/onedocker_runner.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
CLI for running an executable in one docker
Usage:
onedocker-runner <package_name> --cmd=<cmd> [options]
Op... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,296 | supasate/FBPCS | refs/heads/main | /fbpcs/gateway/s3.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import os
from typing import Any, Dict, List, Optional
import boto3
from fbpcs.decorator.error_handler ... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,297 | supasate/FBPCS | refs/heads/main | /fbpcs/entity/container_instance.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from dataclasses import dataclass
from enum import Enum
from typing import Optional
from dataclasses_js... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,298 | supasate/FBPCS | refs/heads/main | /fbpcs/util/yaml.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from pathlib import Path
from typing import Any, Dict
import yaml
def load(file_path: Path) -> Dict[s... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,299 | supasate/FBPCS | refs/heads/main | /fbpcs/service/onedocker.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import asyncio
import logging
from typing import List, Optional
from fbpcs.entity.container_instance im... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,300 | supasate/FBPCS | refs/heads/main | /tests/decorator/test_error_handler.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from botocore.exceptions import ClientError
from fbpcs.decorator.error_handler import error_handler
fr... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
3,301 | supasate/FBPCS | refs/heads/main | /fbpcs/gateway/ecs.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
from typing import Any, Dict, List, Optional
import boto3
from fbpcs.decorator.error_handler import err... | {"/tests/util/test_yaml.py": ["/fbpcs/util/yaml.py"], "/tests/error/mapper/test_aws.py": ["/fbpcs/error/mapper/aws.py"], "/fbpcs/gateway/ec2.py": ["/fbpcs/decorator/error_handler.py", "/fbpcs/entity/vpc_instance.py", "/fbpcs/mapper/aws.py"], "/tests/service/test_container_aws.py": ["/fbpcs/service/container_aws.py"], "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.