repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
rezakrimi/MaxoutTextSummarization | data/process_data.py | import sys
sys.path.insert(0, '../')
import config
from data_utils import (make_conll_format, make_embedding, make_vocab,
make_vocab_from_squad, process_file)
def make_sent_dataset():
train_src_file = "./para-train.txt"
train_trg_file = "./tgt-train.txt"
embedding_file = "./gl... |
rezakrimi/MaxoutTextSummarization | data_utils.py | <reponame>rezakrimi/MaxoutTextSummarization<filename>data_utils.py
import json
import pickle
import time
from collections import defaultdict
from copy import deepcopy
import numpy as np
import torch
import torch.utils.data as data
from tqdm import tqdm
import nltk
import config
PAD_TOKEN = "<PAD>"
UNK_TOKEN = "UNKNOWN... |
rezakrimi/MaxoutTextSummarization | model.py | import config
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence
from torch_scatter import scatter_max
from data_utils import UNK_ID
INF = 1e12
class Encoder(nn.Module):
def __init__(self, embeddings, vocab_size, embedding_s... |
rezakrimi/MaxoutTextSummarization | data/dm_process.py | <reponame>rezakrimi/MaxoutTextSummarization<filename>data/dm_process.py
import sys
import pickle
from collections import defaultdict
from random import shuffle
sys.path.insert(0, '../')
import config
from data_utils import (make_conll_format2, make_embedding, make_vocab,
make_vocab_from_dm, pr... |
kaistshadow/shadow-plugin-bitcoin | tmp/tx-generator/generate_tx.py | <reponame>kaistshadow/shadow-plugin-bitcoin
#!/usr/bin/python
import ecdsa
import ecdsa.der
import ecdsa.util
import hashlib
import random
import utils
import keyUtils
import struct
import socket
import time
import binascii, hmac
from bitcoin import *
#### pybitcointools code start
P = 2**256-2**32-2**9-2**8-2**7-... |
kaistshadow/shadow-plugin-bitcoin | tmp/tx-generator/utils.py | <reponame>kaistshadow/shadow-plugin-bitcoin<filename>tmp/tx-generator/utils.py
import hashlib
import struct
b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def base58encode(n):
result = ''
while n > 0:
result = b58[n%58] + result
n /= 58
return result
def base58decode(s... |
kaistshadow/shadow-plugin-bitcoin | tmp/tx-generator/keyUtils.py | <filename>tmp/tx-generator/keyUtils.py<gh_stars>1-10
# https://pypi.python.org/pypi/ecdsa/0.10
import ecdsa
import ecdsa.der
import ecdsa.util
import hashlib
import unittest
import random
import re
import struct
import utils
from binascii import hexlify
# https://en.bitcoin.it/wiki/Wallet_import_format
def privateKey... |
nborggren/Aleph | Knots/KnotCalc.py | <reponame>nborggren/Aleph
from knots import *
from knot_analysis import Draw_Knot
from ROOT import TLine, TCanvas
globalvars = {} # We will store the calculator's variables here
def lookup(map, name):
for x,v in map:
if x==name: return v
if name not in globalvars.keys(): print 'Undefined:', n... |
nborggren/Aleph | Knots/knots.py | #???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
#???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
#
#knots.py
#<NAME> June 2009
#
#designs a sim... |
nborggren/Aleph | Knots/braids/Dissonance.py | <filename>Knots/braids/Dissonance.py
import os, sys
sys.path.append(os.path.join('/usr/local/bin/root/','lib'))
from Tkinter import *
from ROOT import *
class Dissonance:
def __init__(self, root):
self.myParent = root
self.top_frame = Frame(root)
self.top_frame.pack(side=RIGHT,fill=BOT... |
nborggren/Aleph | AlephSB/Aleph.py | <filename>AlephSB/Aleph.py<gh_stars>0
import sys
if len(sys.argv)<2:
from lorenz import *
tmp=lorenz()
else:
print sys.argv[1]
exec("from "+sys.argv[1]+" import *")
exec("tmp = "+sys.argv[1]+"()")
tmp.Init()
tmp.Start()
zwom = input("sheat")
|
nborggren/Aleph | AlephSB/Calc.py | <reponame>nborggren/Aleph<gh_stars>0
from Tkinter import *
from ROOT import *
class Calc(Frame):
def Start(self, master=None):
Frame.__init__(self,master)
self.grid(sticky='nesw')
self.sOps = ['traj','ntraj','hist','lang','nlang','mesh','meshtraj','myFFT','Reset']
self.dOps = ['r... |
nborggren/Aleph | AlephSB/Algebra.py | <gh_stars>0
"""The Algebra class serves as a backbone for basic operations,
addition and multiplication,
a torch to the abyss of differential equations ahead.
"""
__author__ = "<NAME> (<EMAIL>)"
__date__ = "2011-01-04"
__copyright__ = "Copyright (C) 2011 <NAME>"
__license__ = "GNU LGPL Version 2.1"
from R... |
nborggren/Aleph | AlephSB/Dynamics.py | <gh_stars>0
##@package Dynamics
#Classes for Dynamical Systems
##@author <NAME>
from dolfin import *
from ROOT import TH3F,TH2F,TH1F, TF1, TGraph, TGraph2D, gStyle, TPolyLine3D, TCanvas, TF3, TPolyLine, TPostScript
from array import array as MyArray
from time import time, strftime, gmtime
from Algebra import ... |
nborggren/Aleph | AlephSB/Diffusion.py | <filename>AlephSB/Diffusion.py
## @package Diffusion
# Class for solution of diffusion equations over Dynamical Systems in Dolfin.
#????????????????????????????????????????????????????????????????????????????
#
#
# We seek to solve
# \f$\partial_t u = \partial_i (D_{ij}\partial_j u - F_i u)\f$.
# The functional for... |
nborggren/Aleph | Knots/knot_analysis2.py | from array import array
from ROOT import TCanvas, TPad, TTree, TFormula, TF1, TPaveLabel, TH1F, TH2F, TFile
from ROOT import gROOT, gBenchmark, gDirectory,gStyle, TGraph, TLine
from math import sin,cos
from knots import findcenter
gROOT.Reset()
def getCWH(x):
xx = []
yy = []
for i in x.values():
... |
nborggren/Aleph | Knots/braids/MakeBraid.py | <reponame>nborggren/Aleph
def MakeBraid(name,ids,braids,ibraids):
f = open("template.ps")
g = open(name, 'w')
for line in f:
if line.find("REPLACE ME")== -1:
g.write(line)
else:
for j in ids:
g.write(str(j[0])+" "+str(j[1])+ " ident \n")
... |
nborggren/Aleph | Knots/braids/mGrammar.py | <gh_stars>0
print '?!'*21
print 'Welcome to the sBraid production line'
print '<NAME>'
print 'August 2009'
print '?!'*21
z = raw_input("How many magnetic lines do you want?")
mlines = int(z)
print " "
print "The Rules of the Game:"
print "alphabet:"
print " \'mn\' crosses line n, n+1"
print " \'Mn\' is the i... |
nborggren/Aleph | AlephSB/Noise.py | <reponame>nborggren/Aleph
#???????????????????????????????????????????????????????????????????????????????????
##@package Noise
#Classes for Dynamical Systems with random force from ROOT histograms.
#@author <NAME>
#
#???????????????????????????????????????????????????????????????????????????????????
from Dynamics im... |
nborggren/Aleph | Knots/knots_safe.py | <gh_stars>0
#???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
#???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
#
#knots.py
#<NAME> June 2009
#
#d... |
nborggren/Aleph | Knots/braids/BraidCalc.py | <gh_stars>0
from MakeBraid import *
import os
print '?!'*21
print 'Welcome to the sBraid production line'
print '<NAME>'
print 'August 2009'
print '?!'*21
z = raw_input("How many magnetic lines do you want? ")
mlines = int(z)
print " "
print "The Rules of the Game:"
print "alphabet:"
print " \'mn\' crosses lin... |
nborggren/Aleph | AlephSB/Analysis.py | <filename>AlephSB/Analysis.py<gh_stars>0
from dolfin import *
from os import system as MySys
from ROOT import TFile, gStyle, gDirectory, TCanvas, TGraph2D, TGraph
from array import array as MyArray
from os import environ
##@package Analysis
#A class for investigating the dolfin solutions.
## the data count as a len d... |
nborggren/Aleph | lib/Dyn.py | import ROOT as rt
import random
mem=rt.TH1F("mem","mem",100,0,1)
for i in range(10000):
mem.Fill(random.random())
mem.Draw("E0")
zwom=input("sheat")
|
nborggren/Aleph | Knots/braids/braid.py | <filename>Knots/braids/braid.py
from MakeBraid import *
import os
globalvars = {} # We will store the calculator's variables here
def mult(x,y):
elems = y.split("_")
MyBraid[elems[0]].append([MyBraid['idx'],int(elems[1])])
MyBraid['idx']=MyBraid['idx']+1
return x+"*"+y
def div(x,y):
e... |
nasseredine/udacity-dend-p4 | plugins/operators/load_dimension.py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class LoadDimensionOperator(BaseOperator):
ui_color = '#80BD9E'
delete_sql = "DELETE FROM {};"
insert_sql = "INSERT INTO {} ({});"
@apply_defaults
def _... |
nasseredine/udacity-dend-p4 | plugins/operators/stage_redshift.py | import os
from airflow.contrib.hooks.aws_hook import AwsHook
from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class StageToRedshiftOperator(BaseOperator):
ui_color = '#358140'
template_fields = ('s3_key',)
cop... |
nasseredine/udacity-dend-p4 | plugins/operators/load_fact.py | <reponame>nasseredine/udacity-dend-p4<gh_stars>0
from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class LoadFactOperator(BaseOperator):
ui_color = '#F98866'
insert_sql = "INSERT INTO {} ({});"
@apply_defaults
... |
nasseredine/udacity-dend-p4 | plugins/operators/data_quality.py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class DataQualityOperator(BaseOperator):
ui_color = '#89DA59'
@apply_defaults
def __init__(self,
redshift_conn_id,
tests,
... |
nasseredine/udacity-dend-p4 | dags/udac_example_dag.py | from datetime import datetime, timedelta
import os
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators import (StageToRedshiftOperator, LoadFactOperator,
LoadDimensionOperator, DataQualityOperator)
from helpers import SqlQueries
S3_B... |
alexhnguyen/CacheTwitterCdk | lib/lambda/cache_twitter_lambda.py | import os
import boto3
import tempfile
import json
from botocore.exceptions import ClientError
import tweepy
PREVIOUS_ID_FILENAME = "previous_id"
SCREEN_NAME = "BarackObama"
BUCKET_NAME = "alngyn-twitter-archive"
def handler(event, context):
print("Authorizing with twitter")
api = tweepy.API(authorization())... |
alexhnguyen/CacheTwitterCdk | lib/lambda/retrieve_twitter_lambda.py | <reponame>alexhnguyen/CacheTwitterCdk
import boto3
import tempfile
import json
BUCKET_NAME = "alngyn-twitter-archive"
# this ID comes from twitter
BARACK_OBAMA_ID = '813286'
def get_all_files_in_path(s3_client, bucket_name, file_prefix):
paginator = s3_client.get_paginator('list_objects_v2')
pages = paginator... |
AaronReer/ancp-bids | ancpbids/plugins/plugin_dsloader.py | import inspect
import os
import re
from .. import utils
from ..plugin import DatasetPlugin
class DatasetPopulationPlugin(DatasetPlugin):
def execute(self, dataset):
base_dir = dataset.base_dir_
self.schema = dataset.get_schema()
# load file system structure
self._load_folder(datas... |
AaronReer/ancp-bids | tests/auto/test_schema.py | import unittest
from ancpbids import model_v1_7_0, model_v1_7_1, load_dataset, load_schema
from ..base_test_case import BaseTestCase, DS005_DIR, DS005_SMALL_DIR
class SchemaTestCase(BaseTestCase):
def test_entitmatching(self):
self.assertEqual('sub', model_v1_7_0.fuzzy_match_entity_key('sub'))
se... |
AaronReer/ancp-bids | ancpbids/plugins/plugin_query.py | <filename>ancpbids/plugins/plugin_query.py
import re
from fnmatch import fnmatch
from ancpbids.plugin import SchemaPlugin
class BoolExpr:
pass
class CompExpr:
pass
class TrueExpr(BoolExpr):
def __init__(self, *args):
pass
def eval(self, context) -> bool:
return True
class AnyEx... |
AaronReer/ancp-bids | ancpbids/pybids_compat.py | import os.path
from collections import OrderedDict
from functools import partial
from typing import List, Union, Dict
import ancpbids
from ancpbids import CustomOpExpr, EntityExpr, AllExpr, ValidationPlugin
from . import load_dataset, LOGGER
from .plugins.plugin_query import FnMatchExpr, AnyExpr
from .utils import dee... |
AaronReer/ancp-bids | ancpbids/utils.py | <gh_stars>0
import logging
import os
FILE_READERS = {}
FILE_WRITERS = {}
LOGGER = logging.getLogger(__file__)
def parse_bids_name(name: str):
"""Parses a given string (file name) according to the BIDS naming scheme.
Parameters
----------
name
The file name to parse. If a full path (with pat... |
AaronReer/ancp-bids | ancpbids/plugin.py | <reponame>AaronReer/ancp-bids
import importlib
import inspect
import pkgutil
from typing import List
# global plugins registry (list of plugin metadata/settings)
__PLUGINS__ = []
class Plugin:
"""Base class of all plugins.
"""
def __init__(self, **props):
self.props = props
class SchemaPlugin(... |
AaronReer/ancp-bids | ancpbids/plugins/plugin_files_handlers.py | from ancpbids.plugin import FileHandlerPlugin
def read_yaml(file_path: str):
import yaml
with open(file_path, 'r') as stream:
try:
return yaml.load(stream, Loader=yaml.FullLoader)
except:
return None
def read_json(file_path: str):
# we cannot use yaml to load json... |
AaronReer/ancp-bids | tests/manual/test_benchmark.py | from unittest import skip
import sys
from ..base_test_case import *
OPENNEURO_DS001734 = os.path.join(os.environ.get('TEST_DATASETS', os.path.expanduser('~/datasets')), 'ds001734')
if not os.path.isdir(OPENNEURO_DS001734):
print('test dataset not found: ' + OPENNEURO_DS001734)
sys.exit(1)
class BenchmarkT... |
AaronReer/ancp-bids | tests/manual/test_performance_regressions.py | from ..base_test_case import *
import ancpbids
class PerformanceRegressionTestCase(BaseTestCase):
def test_batch_loading(self):
for i in range(0, 10):
ds = ancpbids.load_dataset(DS005_DIR)
|
AaronReer/ancp-bids | ancpbids/plugins/plugin_dssaver.py | import inspect
import json
import os
import ancpbids
from ancpbids.plugin import WritingPlugin
class DatasetWritingPlugin(WritingPlugin):
def execute(self, ds, target_dir: str, context_folder=None, src_dir: str = None):
if context_folder is None and os.path.exists(target_dir) and len(os.listdir(target_di... |
AaronReer/ancp-bids | ancpbids/__init__.py | <filename>ancpbids/__init__.py<gh_stars>0
import logging
import os
import sys
from . import plugins
from . import utils
from .plugin import get_plugins, load_plugins_by_package, DatasetPlugin, WritingPlugin, ValidationPlugin, SchemaPlugin, \
FileHandlerPlugin
from .plugins.plugin_query import BoolExpr, Select, EqE... |
AaronReer/ancp-bids | ancpbids/plugins/plugin_schema_patches.py | import fnmatch
import inspect
import os
from difflib import SequenceMatcher
from ancpbids.plugin import SchemaPlugin
def has_entity(artifact, entity_):
for e in artifact.entities:
if e.key == entity_:
return True
return False
def get_entity(artifact, entity_):
for e in artifact.enti... |
AaronReer/ancp-bids | ancpbids/plugins/plugin_dsvalidator.py | <filename>ancpbids/plugins/plugin_dsvalidator.py<gh_stars>0
from ancpbids.plugin import ValidationPlugin
class StaticStructureValidationPlugin(ValidationPlugin):
def execute(self, dataset, report: ValidationPlugin.ValidationReport):
self.schema = dataset.get_schema()
gen = dataset.to_generator()
... |
AaronReer/ancp-bids | tests/auto/test_validation.py | <gh_stars>0
from ancpbids import load_dataset, _internal_validate_dataset
from ..base_test_case import *
from ancpbids.plugin import ValidationPlugin
from ancpbids.plugins import plugin_dsvalidator
class ValidationTestCase(BaseTestCase):
def createSUT(self, ds_dir, rule_class):
test_ds = load_dataset(ds_d... |
AaronReer/ancp-bids | tests/auto/test_fetch_dataset.py | <filename>tests/auto/test_fetch_dataset.py
import os.path
import unittest
import tempfile
from ancpbids import utils, BIDSLayout
from ..base_test_case import BaseTestCase
class FetchDatasetTestCase(BaseTestCase):
def test_fetch_dataset(self):
with tempfile.TemporaryDirectory() as temp_dir:
ds... |
AaronReer/ancp-bids | tests/auto/test_query.py | <filename>tests/auto/test_query.py
import os.path
import ancpbids
from ancpbids import select, re, any_of, all_of, eq, op, entity
from ..base_test_case import *
class QueryTestCase(BaseTestCase):
def test_bidslayout_entities_formatting(self):
layout = ancpbids.BIDSLayout(ENTITIES_DIR)
files = lay... |
AaronReer/ancp-bids | tests/base_test_case.py | import os
import unittest
TEST_FOLDER = os.path.dirname(__file__)
RESOURCES_FOLDER = TEST_FOLDER + "/data"
DS005_DIR = RESOURCES_FOLDER + "/ds005"
DS005_CONFLICT_DIR = RESOURCES_FOLDER + "/ds005_conflict"
DS005_SMALL_DIR = RESOURCES_FOLDER + "/ds005-small"
SYNTHETIC_DIR = RESOURCES_FOLDER + "/synthetic"
ENTITIES_DIR ... |
AaronReer/ancp-bids | tests/auto/test_writing.py | import time
import unittest
import numpy as np
import pandas as pd
import shutil
import tempfile
import ancpbids
from ancpbids import model, re
from ..base_test_case import BaseTestCase, DS005_DIR
class WritingTestCase(BaseTestCase):
def write_test_derivative(self):
layout = ancpbids.BIDSLayout(DS005_D... |
AaronReer/ancp-bids | setup.py | #!/usr/bin/env python
import sys, os
from setuptools import setup
import versioneer
# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata in setup.cfg
# Should match pyproject.toml
SETUP_REQUIRES = ['setuptools >= 30.3.0']
# This enables setuptools to install wheel on-t... |
AaronReer/ancp-bids | tests/auto/test_regressions.py | import ancpbids
from ..base_test_case import *
class RegressionsTestCase(BaseTestCase):
def test_get_all_files_from_pipeline(self):
layout = ancpbids.BIDSLayout(DS005_DIR)
all_derivative_files = layout.get(scope='derivatives/affine/matrix', return_type='file')
# that derivatives folder has... |
unusualwork/ptf | modules/exploitation/parameth.py | <reponame>unusualwork/ptf
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update parameth"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/maK-/parameth"
INSTALL_LOCATION="parameth"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION}, pip install -r requirements.txt"
LAUNCHER="parameth"
|
unusualwork/ptf | modules/intelligence-gathering/hacks.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update some random scripts"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/EdOverflow/hacks"
INSTALL_LOCATION="hacks"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION},cd .., cp -R hacks/. /usr/local/bin/"
|
unusualwork/ptf | modules/intelligence-gathering/turbolist3r.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Turbolist3r"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/fleetcaptain/Turbolist3r"
INSTALL_LOCATION="turbolist3r"
DEBIAN="python-requests"
AFTER_COMMANDS="cd {INSTALL_LOCATION}, pip install -r requirements.txt"
LAUNCHER="turbolist3r... |
unusualwork/ptf | modules/vulnerability-analysis/linkfinder.py | <gh_stars>1-10
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Linkfinder"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/GerbenJavado/LinkFinder"
INSTALL_LOCATION="linkfinder"
AFTER_COMMANDS="cd {INSTALL_LOCATION}, python setup.py install"
LAUNCHER="linkfinder"
|
unusualwork/ptf | modules/exploitation/wpsploit.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update WPSploit"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/espreto/wpsploit"
INSTALL_LOCATION="wpsploit"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION},mv modules/auxiliary/ /home/*/.msf4/modules/,mv modules/exploits/ /home/*/.msf4/modules... |
unusualwork/ptf | modules/intelligence-gathering/subover.py | <reponame>unusualwork/ptf<filename>modules/intelligence-gathering/subover.py
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update SubOver"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/Ice3man543/SubOver"
INSTALL_LOCATION="subover"
DEBIAN="golang"
AFTER_COMMANDS="cd ~/go/bin/,go get github... |
unusualwork/ptf | modules/vulnerability-analysis/cloudflair.py | <filename>modules/vulnerability-analysis/cloudflair.py<gh_stars>1-10
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update cloudflair"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/christophetd/cloudflair.git"
INSTALL_LOCATION="cloudflair"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION}, pip ... |
unusualwork/ptf | modules/intelligence-gathering/gitrob.py | <reponame>unusualwork/ptf
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Gitrob"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/michenriksen/gitrob"
INSTALL_LOCATION="gitrob"
DEBIAN="golang"
AFTER_COMMANDS="cd {INSTALL_LOCATION}, go get github.com/michenriksen/gitrob,cp ~/go/bin/gitro... |
unusualwork/ptf | modules/windows-tools/autochrome.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Autochrome"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/nccgroup/autochrome"
INSTALL_LOCATION="autochrome"
DEBIAN="unzip, ruby"
AFTER_COMMANDS="cd {INSTALL_LOCATION}, ruby autochrome.rb"
LAUNCHER=""
|
unusualwork/ptf | modules/intelligence-gathering/aquatone.py | <reponame>unusualwork/ptf<filename>modules/intelligence-gathering/aquatone.py
AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Aquatone"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/michenriksen/aquatone"
INSTALL_LOCATION="aquatone"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION}, gem ... |
unusualwork/ptf | modules/intelligence-gathering/massdns.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update MassDNS"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/blechschmidt/massdns"
INSTALL_LOCATION="massdns"
DEBIAN=""
AFTER_COMMANDS="cd {INSTALL_LOCATION},make,cp bin/massdns /usr/local/bin/"
LAUNCHER="massdns"
|
unusualwork/ptf | modules/intelligence-gathering/subfinder.py | AUTHOR="<NAME>"
DESCRIPTION="This module wil install/update Subfinder"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="go get github.com/Ice3man543/subfinder"
INSTALL_LOCATION="subfinder"
DEBIAN=""
AFTER_COMMANDS="cd ~/go/bin, go get -u github.com/Ice3man543/subfinder, mv subfinder /usr/local/bin/"
|
gregmbi/polyaxon | core/polyaxon/deploy/schemas/deployment.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | core/polyaxon/managers/client.py | <filename>core/polyaxon/managers/client.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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/LIC... |
gregmbi/polyaxon | core/polyaxon/polyboard/events/paths.py | <filename>core/polyaxon/polyboard/events/paths.py
def get_resource_path(run_path: str, kind: str = None, name: str = None) -> str:
_path = "{}/resources".format(run_path)
if kind:
_path = "{}/{}".format(_path, kind)
if name:
_path = "{}/{}.plx".format(_path, name)
return _path
def get... |
gregmbi/polyaxon | core/polyaxon/lifecycle.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/tests/test_polyflow/test_workflows/test_matrix.py | <reponame>gregmbi/polyaxon<filename>core/tests/test_polyflow/test_workflows/test_matrix.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 Licens... |
gregmbi/polyaxon | core/polyaxon/cli/admin.py | <filename>core/polyaxon/cli/admin.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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... |
gregmbi/polyaxon | core/polyaxon/cli/executor/platform.py | <reponame>gregmbi/polyaxon<gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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-... |
gregmbi/polyaxon | core/polyaxon/constants.py | <filename>core/polyaxon/constants.py
UNKNOWN = "unknown"
DEFAULT = "default"
|
gregmbi/polyaxon | sdks/python/http_client/v1/polyaxon_sdk/models/v1_io.py | <reponame>gregmbi/polyaxon<gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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-... |
gregmbi/polyaxon | core/polyaxon/main.py | <gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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... |
gregmbi/polyaxon | core/polyaxon/polyflow/run/kinds.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | core/polyaxon/streams/tasks/notification.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | examples/in_cluster/save_resume_restart/pytorch_save_resume/utils.py | from __future__ import division
from __future__ import print_function
import logging
import torch
# Polyaxon
from polyaxon_client.tracking import get_outputs_path
logging.basicConfig(level=logging.INFO)
def get_weight_filename():
# Polyaxon
return '{}/{}'.format(get_outputs_path(), 'checkpoint.pth.tar')
... |
gregmbi/polyaxon | core/polyaxon/deploy/schemas/service.py | <filename>core/polyaxon/deploy/schemas/service.py<gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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.apach... |
gregmbi/polyaxon | core/polyaxon/polyflow/init/init_container.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/connections/azure/azure_blobstore.py | <gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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... |
gregmbi/polyaxon | core/polyaxon/cli/operations.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/connections/schemas/connections.py | <filename>core/polyaxon/connections/schemas/connections.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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.... |
gregmbi/polyaxon | core/polyaxon/sidecar/__init__.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/tests/test_tracking/test_events/test_event_recorder.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | core/polyaxon/polyaxonfile/specs/libs/parser.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/config_reader/reader.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/streams/tasks/logs.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | core/polyaxon/polypod/compiler/config.py | <filename>core/polyaxon/polypod/compiler/config.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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/lice... |
gregmbi/polyaxon | core/polyaxon/containers/names.py | MAIN_JOB_CONTAINER = "polyaxon-main"
INIT_AUTH_CONTAINER = "polyaxon-init-auth"
INIT_DOCKERFILE_CONTAINER = "polyaxon-init-dockerfile-{}"
INIT_GIT_CONTAINER = "polyaxon-init-git-{}"
INIT_ARTIFACTS_CONTAINER = "polyaxon-init-artifacts-{}"
INIT_CONTAINER = "polyaxon-init-{}"
SIDECAR_CONTAINER = "polyaxon-sidecar"
TFJOBS_... |
gregmbi/polyaxon | examples/in_cluster/tensorflow/cifar10/run.py | <filename>examples/in_cluster/tensorflow/cifar10/run.py
import os
import argparse
from cifar10_main import train
from generate_cifar10_tfrecords import generate_data
# Polyaxon
from polyaxon_client.tracking import get_data_paths, get_outputs_path
if __name__ == '__main__':
parser = argparse.ArgumentParser()
... |
gregmbi/polyaxon | core/polyaxon/polyflow/io/io.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/polyflow/schedule/interval.py | <filename>core/polyaxon/polyflow/schedule/interval.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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/l... |
gregmbi/polyaxon | core/polyaxon/polypod/mixins.py | <reponame>gregmbi/polyaxon<gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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-... |
gregmbi/polyaxon | core/polyaxon/config_reader/spec.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/proxies/schemas/api/uwsgi.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/tests/test_notifiers/test_hipchat_webhook.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/managers/ignore.py | <reponame>gregmbi/polyaxon
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# Unl... |
gregmbi/polyaxon | core/polyaxon/cli/init.py | <filename>core/polyaxon/cli/init.py<gh_stars>0
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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... |
gregmbi/polyaxon | core/polyaxon/cli/projects.py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... |
gregmbi/polyaxon | core/polyaxon/schemas/cli/cli_config.py | <reponame>gregmbi/polyaxon<filename>core/polyaxon/schemas/cli/cli_config.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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
#
# h... |
gregmbi/polyaxon | core/polyaxon/k8s/monitor.py | <filename>core/polyaxon/k8s/monitor.py
#!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.