prompt
large_stringlengths
72
9.34k
completion
large_stringlengths
0
7.61k
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
labels = string.split( 'id zb zbmin zbmax tb odds zb2 zb2min zb2max tb2 odds2 zb3 zb3min zb3max tb3 odds3 zml tml chisq')
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
print('N_PEAKS = %d!?' % npeaks) sys.exit(1)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
if read: break
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
break
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
read = 1
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
ilabel += 1 label = string.split(line)[-1] if ilabel >= 10: labels.append(labelnicks.get(label, label))
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
labels.append(labelnicks.get(label, label))
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
data = loaddata(inroot + '.flux_comparison+') #nf = 6 nf = old_div((len(data) - 5), 3) # id M0 zb tb*3 id = data[0] ft = data[5:5 + nf] # FLUX (from spectrum for that TYPE) fo = data[5 + nf:5 + 2 * nf] # FLUX (OBSERVED) efo = data[5 + 2 * nf:5 + 3 * nf] # FLUX_ERROR (OBSERVED) ...
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.add('stel', mycat.stel)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.add('stel', mycat.stellarity)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.add('sig', mycat.maxsigisoaper)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.assign('sig', mycat.maxsigisoaper)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
if 'zspec' in mycat.labels: mybpz.add('zspec', mycat.zspec) print(mycat.zspec) if 'zqual' in mycat.labels: mybpz.add('zqual', mycat.zqual)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.add('zspec', mycat.zspec) print(mycat.zspec) if 'zqual' in mycat.labels: mybpz.add('zqual', mycat.zqual)
<|file_name|>bpzfinalize.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/c...
mybpz.add('zqual', mycat.zqual)
<|file_name|>annotate_trees.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import sys import os from treestore import Treestore try: taxonomy = sys.argv[1] except: taxonomy = None <|fim▁hole|>t = Treestore() treebase_uri = 'http://purl.org/phylo/treebase/phylows/tree/%s' tree_files = [x for x in os.listdir('...
<|file_name|>annotate_trees.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import sys import os from treestore import Treestore try: taxonomy = sys.argv[1] except: taxonomy = None t = Treestore() treebase_uri = 'http://purl.org/phylo/treebase/phylows/tree/%s' tree_files = [x for x in os.listdir('trees') if ...
continue
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
op.print_help() sys.exit(-1) else:
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
sys.exit(-1)
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
print('Some initial condition option must be specified; --initial-preimage, --initial. However, {0} of those were specified.'.format(num_initial_conditions_specified)) op.print_help() sys.exit(-1)
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
try: options.initial_preimage = np.array(ast.literal_eval(options.initial_preimage)) expected_shape = (options.embedding_dimension,) if options.initial_preimage.shape != expected_shape: raise ValueError('--initial-preimage value had the wrong number of components (got {0} but exp...
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
raise ValueError('--initial-preimage value had the wrong number of components (got {0} but expected {1}).'.format(options.initial_preimage.shape, expected_shape))
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
try: options.initial = heisenberg.util.csv_as_ndarray(heisenberg.util.pop_brackets_off_of(options.initial), float) expected_shape = (6,) if options.initial.shape != expected_shape: raise ValueError('--initial value had the wrong number of components (got {0} but expected {1}).'.f...
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
raise ValueError('--initial value had the wrong number of components (got {0} but expected {1}).'.format(options.initial.shape, expected_shape))
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matpl...
assert False, 'this should never happen because of the check with num_initial_conditions_specified'
<|file_name|>shared_armor_composite_helmet.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Static() <|fim▁hole|> result.template = "...
<|file_name|>shared_armor_composite_helmet.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): <|fim_middle|> <|fim▁end|>
result = Static() result.template = "object/static/item/shared_armor_composite_helmet.iff" result.attribute_template_id = -1 result.stfName("obj_n","unknown_object") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
<|file_name|>shared_armor_composite_helmet.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def <|fim_middle|>(kernel): result = Static() result.template = "obj...
create
<|file_name|>create.py<|end_file_name|><|fim▁begin|><|fim▁hole|># You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR ...
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
"""Cloud Spanner databases create command.""" @staticmethod def Args(parser): """Args is called by calliope to gather arguments for this command. Please add arguments in alphabetical order except for no- or a clear- pair for that argument which can follow the argument itself. Args: parser:...
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
"""Args is called by calliope to gather arguments for this command. Please add arguments in alphabetical order except for no- or a clear- pair for that argument which can follow the argument itself. Args: parser: An argparse parser that you can use to add arguments that go on the comman...
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
"""This is what gets called when the user runs this command. Args: args: an argparse namespace. All the arguments that were provided to this command invocation. Returns: Some value that we want to have printed later. """ op = databases.Create( args.instance, args.databa...
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
return op
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
Args
<|file_name|>create.py<|end_file_name|><|fim▁begin|># Copyright 2016 Google Inc. All Rights Reserved. # # 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...
Run
<|file_name|>_minexponent.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs ): super(MinexponentValidator, self...
edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0),
<|file_name|>_minexponent.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): <|fim_middle|> <|fim▁end|>
def __init__( self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs ): super(MinexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.p...
<|file_name|>_minexponent.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs ): <|fim_middle|> <|fim▁end|>
super(MinexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs )
<|file_name|>_minexponent.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def <|fim_middle|>( self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs ): super(MinexponentValidator...
__init__
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
input = {layer: theano.tensor.matrix()} assert layer.get_output(input) is input[layer] def test_input_var_name(self, layer):
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: <|fim_middle|> <|fim▁end|>
@pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndim == 2 def test_get_output_shape(self, layer): assert layer.get_output_shape() == (3, 2) def test_get_o...
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): <|fim_middle|> def test_input_var(self, layer): assert layer.input_var.ndim == 2 def test_get_output_shape(self, layer): as...
from lasagne.layers.input import InputLayer return InputLayer((3, 2))
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): <|fim_middle|> def t...
assert layer.input_var.ndim == 2
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
assert layer.get_output_shape() == (3, 2)
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
assert layer.get_output() is layer.input_var
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
variable = theano.Variable("myvariable") assert layer.get_output(variable) is variable
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
input = [[1,2,3]] output = layer.get_output(input) assert numpy.all(output.eval() == input)
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
input = {layer: theano.tensor.matrix()} assert layer.get_output(input) is input[layer]
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
assert layer.input_var.name == "input"
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
from lasagne.layers.input import InputLayer layer = InputLayer((3, 2), name="foo") assert layer.input_var.name == "foo.input"
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def <|fim_middle|>(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.inpu...
layer
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def <|fim_middle|>(self, layer): assert layer.input_var.ndi...
test_input_var
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_get_output_shape
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_get_output_without_arguments
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_get_output_input_is_variable
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_get_output_input_is_array
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_get_output_input_is_a_mapping
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_input_var_name
<|file_name|>test_input.py<|end_file_name|><|fim▁begin|>import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndi...
test_named_layer_input_var_name
<|file_name|>t001_basic.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): def __init__(self): TestBase.__init__(self, 'abc', """ # DURATION TID FUNCTION 62.202 us [28141] | __cxa_atexit(); [28141] | main() { [28141...
<|file_name|>t001_basic.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): <|fim_middle|> <|fim▁end|>
def __init__(self): TestBase.__init__(self, 'abc', """ # DURATION TID FUNCTION 62.202 us [28141] | __cxa_atexit(); [28141] | main() { [28141] | a() { [28141] | b() { [28141] | c() { 0.753 us [28141] | getpid(); 1.430 us [2814...
<|file_name|>t001_basic.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): def __init__(self): <|fim_middle|> <|fim▁end|>
TestBase.__init__(self, 'abc', """ # DURATION TID FUNCTION 62.202 us [28141] | __cxa_atexit(); [28141] | main() { [28141] | a() { [28141] | b() { [28141] | c() { 0.753 us [28141] | getpid(); 1.430 us [28141] | } /* c */ ...
<|file_name|>t001_basic.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): def <|fim_middle|>(self): TestBase.__init__(self, 'abc', """ # DURATION TID FUNCTION 62.202 us [28141] | __cxa_atexit(); [28141] | main() { ...
__init__
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
'sample_name':self.sample_name,
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): <|fim_middle|> <|fim▁end|>
__tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True) analysis_id = Column(String(500)) experiment_id = Column(String(50)) sample_name_abbreviation = Column(String(500)) # equivalent to sample_name_abbrevi...
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
self.analysis_id=row_dict_I['analysis_id']; self.experiment_id=row_dict_I['experiment_id']; self.sample_name_abbreviation=row_dict_I['sample_name_abbreviation']; self.sample_name=row_dict_I['sample_name']; self.time_point=row_dict_I['time_point']; self.analysis_type=row_d...
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
self.analysis_id=analysis_id_I self.experiment_id=experiment_id_I self.sample_name_abbreviation=sample_name_abbreviation_I self.sample_name=sample_name_I self.time_point=time_point_I self.analysis_type=analysis_type_I self.used_=used__I self.comment_=comme...
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
return {'id':self.id, 'analysis_id':self.analysis_id, 'experiment_id':self.experiment_id, 'sample_name_abbreviation':self.sample_name_abbreviation, 'sample_name':self.sample_name, 'time_point':self.time_point, 'analysis_type':self.analy...
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
return json.dumps(self.__repr__dict__())
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
__init__
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
__set__row__
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
__repr__dict__
<|file_name|>stage01_rnasequencing_analysis_postgresql_models.py<|end_file_name|><|fim▁begin|>from SBaaS_base.postgresql_orm_base import * class data_stage01_rnasequencing_analysis(Base): __tablename__ = 'data_stage01_rnasequencing_analysis' id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id...
__repr__json__
<|file_name|>plots.py<|end_file_name|><|fim▁begin|><|fim▁hole|>from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) if offset == None: offset = np.max(np.std(frames, axis=0)) * 3 if time == None: ...
import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): <|fim_middle|> def plot_sca...
frames = np.asarray(frames) if offset == None: offset = np.max(np.std(frames, axis=0)) * 3 if time == None: time = np.arange(frames.shape[0]) plt.plot(time, frames - np.mean(frames, axis=0) + np.arange(frames.shape[1]) * offset, color=color, ls=linestyle)
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
''' Plots a grid with scalpplots. Scalps contains the different scalps in the rows, sensors contains the names for the columns of scalps, locs is a dict that maps the sensor-names to locations. Width determines the width of the grid that contains the plots. Cmap selects a colormap, for example plt.cm.RdBu_...
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
offset = np.max(np.std(frames, axis=0)) * 3
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
time = np.arange(frames.shape[0])
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
width = int(min(8, np.ceil(np.sqrt(nscalps))))
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
clim = [np.min(scalps), np.max(scalps)]
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
plt.title(titles[i])
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def <|fim_middle|>(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) i...
plot_timeseries
<|file_name|>plots.py<|end_file_name|><|fim▁begin|>import matplotlib.pyplot as plt import numpy as np import scalpplot from scalpplot import plot_scalp from positions import POS_10_5 from scipy import signal def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'): frames = np.asarray(frames) ...
plot_scalpgrid
<|file_name|>apps.py<|end_file_name|><|fim▁begin|># Copyright (c) 2016 nVentiveUX #<|fim▁hole|># "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons...
# Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the
<|file_name|>apps.py<|end_file_name|><|fim▁begin|># Copyright (c) 2016 nVentiveUX # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rig...
name = 'mystartupmanager.showcase'
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
def __init__(self, cr, uid, name, context=None): super(report_account_common_horizontal, self).__init__( cr, uid, name, context=context) self.localcontext.update({ 'get_left_lines': self.get_left_lines, 'get_right_lines': self.get_right_lines, }) def ...
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
super(report_account_common_horizontal, self).__init__( cr, uid, name, context=context) self.localcontext.update({ 'get_left_lines': self.get_left_lines, 'get_right_lines': self.get_right_lines, })
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
data = copy.deepcopy(data) if data['form']['used_context'] is None: data['form']['used_context'] = {} data['form']['used_context'].update( account_financial_report_horizontal_side=side) return super(report_account_common_horizontal, self).get_lines( da...
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
return self.get_lines(data, side='left')
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
return self.get_lines(data, side='right')
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
_inherit = 'report.account.report_financial' _wrapped_report_class = report_account_common_horizontal
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
data['form']['used_context'] = {}
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
__init__
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
get_lines
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
get_left_lines
<|file_name|>report_financial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2015 Therp BV (<http://therp.nl>). # # This program is free software: you...
get_right_lines
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information.<|fim▁hole|> from ._...
# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # --------------------------------------------------------------------------
<|file_name|>bba880ef5bbd_add_is_loud_and_pronouns_columns_to_.py<|end_file_name|><|fim▁begin|>"""Add is_loud and pronouns columns to PanelApplicant Revision ID: bba880ef5bbd Revises: 8f8419ebcf27 Create Date: 2019-07-20 02:57:17.794469 """ # revision identifiers, used by Alembic. revision = 'bba880ef5bbd' down_rev...
<|file_name|>bba880ef5bbd_add_is_loud_and_pronouns_columns_to_.py<|end_file_name|><|fim▁begin|>"""Add is_loud and pronouns columns to PanelApplicant Revision ID: bba880ef5bbd Revises: 8f8419ebcf27 Create Date: 2019-07-20 02:57:17.794469 """ # revision identifiers, used by Alembic. revision = 'bba880ef5bbd' down_rev...
"""Adds parenthesis around SQLite datetime defaults for utcnow.""" if column_info['default'] == "datetime('now', 'utc')": column_info['default'] = utcnow_server_default