repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
seq2seq | seq2seq-master/bin/tools/generate_vocab.py | #! /usr/bin/env python
# Copyright 2017 Google 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 law o... | 2,816 | 28.652632 | 103 | py |
seq2seq | seq2seq-master/bin/tools/profile.py | #! /usr/bin/env python
# Copyright 2017 Google 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 law o... | 6,966 | 32.820388 | 81 | py |
seq2seq | seq2seq-master/bin/tools/generate_toy_data.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Google 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 req... | 4,493 | 29.364865 | 79 | py |
seq2seq | seq2seq-master/bin/data/cnn_daily_mail_summarization/process_story.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Google 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 req... | 1,667 | 27.271186 | 74 | py |
seq2seq | seq2seq-master/seq2seq/losses.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 1,666 | 34.468085 | 79 | py |
seq2seq | seq2seq-master/seq2seq/graph_module.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,091 | 32.206349 | 80 | py |
seq2seq | seq2seq-master/seq2seq/global_vars.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 648 | 33.157895 | 74 | py |
seq2seq | seq2seq-master/seq2seq/graph_utils.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,141 | 28.342466 | 74 | py |
seq2seq | seq2seq-master/seq2seq/configurable.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,758 | 29.120253 | 78 | py |
seq2seq | seq2seq-master/seq2seq/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 1,110 | 29.861111 | 74 | py |
seq2seq | seq2seq-master/seq2seq/training/hooks.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 13,075 | 33.776596 | 105 | py |
seq2seq | seq2seq-master/seq2seq/training/utils.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 9,354 | 30.819728 | 78 | py |
seq2seq | seq2seq-master/seq2seq/training/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 709 | 36.368421 | 74 | py |
seq2seq | seq2seq-master/seq2seq/models/model_base.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,752 | 36.601307 | 80 | py |
seq2seq | seq2seq-master/seq2seq/models/seq2seq_model.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 11,905 | 35.860681 | 80 | py |
seq2seq | seq2seq-master/seq2seq/models/bridges.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,728 | 33.305389 | 78 | py |
seq2seq | seq2seq-master/seq2seq/models/image2seq.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,190 | 34.516949 | 77 | py |
seq2seq | seq2seq-master/seq2seq/models/attention_seq2seq.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 3,073 | 35.595238 | 74 | py |
seq2seq | seq2seq-master/seq2seq/models/basic_seq2seq.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,092 | 39.420635 | 79 | py |
seq2seq | seq2seq-master/seq2seq/models/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 863 | 36.565217 | 74 | py |
seq2seq | seq2seq-master/seq2seq/test/pipeline_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 7,879 | 31.697095 | 79 | py |
seq2seq | seq2seq-master/seq2seq/test/losses_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,389 | 35.212121 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/hooks_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 5,319 | 33.322581 | 81 | py |
seq2seq | seq2seq-master/seq2seq/test/decoder_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 8,788 | 35.020492 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/train_utils_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 6,539 | 32.88601 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/vocab_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 4,111 | 32.430894 | 77 | py |
seq2seq | seq2seq-master/seq2seq/test/attention_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 3,532 | 31.412844 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/pooling_encoder_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,502 | 31.506494 | 74 | py |
seq2seq | seq2seq-master/seq2seq/test/rnn_encoder_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 7,638 | 36.446078 | 78 | py |
seq2seq | seq2seq-master/seq2seq/test/bridges_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,316 | 32.866242 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/utils.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,557 | 26.804348 | 74 | py |
seq2seq | seq2seq-master/seq2seq/test/models_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 8,137 | 33.927039 | 80 | py |
seq2seq | seq2seq-master/seq2seq/test/metrics_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 6,445 | 29.695238 | 79 | py |
seq2seq | seq2seq-master/seq2seq/test/data_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 5,789 | 34.740741 | 77 | py |
seq2seq | seq2seq-master/seq2seq/test/rnn_cell_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 5,578 | 37.475862 | 77 | py |
seq2seq | seq2seq-master/seq2seq/test/input_pipeline_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 5,357 | 32.074074 | 77 | py |
seq2seq | seq2seq-master/seq2seq/test/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 643 | 34.777778 | 74 | py |
seq2seq | seq2seq-master/seq2seq/test/beam_search_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 7,776 | 36.752427 | 79 | py |
seq2seq | seq2seq-master/seq2seq/test/conv_encoder_test.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,480 | 30.807692 | 74 | py |
seq2seq | seq2seq-master/seq2seq/test/example_config_test.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 3,079 | 28.902913 | 77 | py |
seq2seq | seq2seq-master/seq2seq/decoders/rnn_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 3,795 | 30.114754 | 77 | py |
seq2seq | seq2seq-master/seq2seq/decoders/basic_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,398 | 35.348485 | 79 | py |
seq2seq | seq2seq-master/seq2seq/decoders/attention_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 6,750 | 34.531579 | 77 | py |
seq2seq | seq2seq-master/seq2seq/decoders/beam_search_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 6,788 | 35.896739 | 79 | py |
seq2seq | seq2seq-master/seq2seq/decoders/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 816 | 37.904762 | 74 | py |
seq2seq | seq2seq-master/seq2seq/decoders/attention.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,054 | 32.476821 | 79 | py |
seq2seq | seq2seq-master/seq2seq/metrics/metric_specs.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 7,492 | 31.158798 | 86 | py |
seq2seq | seq2seq-master/seq2seq/metrics/bleu.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 3,202 | 33.074468 | 80 | py |
seq2seq | seq2seq-master/seq2seq/metrics/rouge.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 10,972 | 28.980874 | 80 | py |
seq2seq | seq2seq-master/seq2seq/metrics/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 733 | 35.7 | 74 | py |
seq2seq | seq2seq-master/seq2seq/encoders/image_encoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,469 | 31.5 | 75 | py |
seq2seq | seq2seq-master/seq2seq/encoders/rnn_encoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 6,202 | 29.55665 | 76 | py |
seq2seq | seq2seq-master/seq2seq/encoders/encoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 1,874 | 28.296875 | 78 | py |
seq2seq | seq2seq-master/seq2seq/encoders/pooling_encoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,639 | 35.387097 | 78 | py |
seq2seq | seq2seq-master/seq2seq/encoders/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 877 | 37.173913 | 74 | py |
seq2seq | seq2seq-master/seq2seq/encoders/conv_encoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,663 | 37.229508 | 78 | py |
seq2seq | seq2seq-master/seq2seq/data/postproc.py | # -*- coding: utf-8 -*-
# Copyright 2017 Google 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 law ... | 1,617 | 34.173913 | 77 | py |
seq2seq | seq2seq-master/seq2seq/data/sequence_example_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 3,625 | 39.288889 | 80 | py |
seq2seq | seq2seq-master/seq2seq/data/parallel_data_provider.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,826 | 33.684524 | 78 | py |
seq2seq | seq2seq-master/seq2seq/data/vocab.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,274 | 33.2 | 80 | py |
seq2seq | seq2seq-master/seq2seq/data/split_tokens_decoder.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,456 | 34.1 | 74 | py |
seq2seq | seq2seq-master/seq2seq/data/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 821 | 36.363636 | 74 | py |
seq2seq | seq2seq-master/seq2seq/data/input_pipeline.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 12,004 | 32.347222 | 79 | py |
seq2seq | seq2seq-master/seq2seq/contrib/experiment.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,680 | 39.704348 | 80 | py |
seq2seq | seq2seq-master/seq2seq/contrib/rnn_cell.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 5,167 | 40.344 | 80 | py |
seq2seq | seq2seq-master/seq2seq/contrib/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 576 | 40.214286 | 74 | py |
seq2seq | seq2seq-master/seq2seq/contrib/seq2seq/helper.py | # Copyright 2016 The TensorFlow Authors. 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/LICENSE-2.0
#
# Unless required by applica... | 20,852 | 39.491262 | 115 | py |
seq2seq | seq2seq-master/seq2seq/contrib/seq2seq/decoder.py | # Copyright 2016 The TensorFlow Authors. 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/LICENSE-2.0
#
# Unless required by applica... | 10,401 | 34.023569 | 80 | py |
seq2seq | seq2seq-master/seq2seq/contrib/seq2seq/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 576 | 40.214286 | 74 | py |
seq2seq | seq2seq-master/seq2seq/inference/inference.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 1,715 | 30.2 | 74 | py |
seq2seq | seq2seq-master/seq2seq/inference/beam_search.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 9,614 | 33.339286 | 80 | py |
seq2seq | seq2seq-master/seq2seq/inference/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 817 | 34.565217 | 74 | py |
seq2seq | seq2seq-master/seq2seq/tasks/inference_task.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 1,982 | 28.597015 | 75 | py |
seq2seq | seq2seq-master/seq2seq/tasks/dump_beams.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 2,654 | 31.777778 | 77 | py |
seq2seq | seq2seq-master/seq2seq/tasks/decode_text.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 6,520 | 33.502646 | 77 | py |
seq2seq | seq2seq-master/seq2seq/tasks/dump_attention.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 4,850 | 34.152174 | 77 | py |
seq2seq | seq2seq-master/seq2seq/tasks/__init__.py | # Copyright 2017 Google 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 law or agreed to in writing,... | 817 | 36.181818 | 74 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/configure.py | #!/usr/bin/env python3
# coding: utf-8
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
Top-level configuration file for Gunyah build system.
This module constructs an instance of AbstractBuildGraph, and passes it to the
real build system which is in tools... | 32,251 | 38.331707 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/__init__.py | 0 | 0 | 0 | py | |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/objects/object_gen.py | #!/usr/bin/env python3
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from Cheetah.Template import Template
import argparse
import subprocess
import sys
class Object:
__slots__ = 'name', 'config'
def __init__(self, name):
items = name.spli... | 2,038 | 28.550725 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/events/event_gen.py | #!/usr/bin/env python3
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import os
import sys
import logging
import subprocess
import inspect
import pickle
if __name__ == '__main__' and __package__ is None:
sys... | 5,648 | 32.229412 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/events/parser.py | # © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
from lark import Transformer, v_args
from ir import (
Include, Symbol, Type, ConstExpr, Priority, Result, ExpectedArgs, Param,
Selectors, SelectorParam, CountParam, Module, Eve... | 7,056 | 28.161157 | 77 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/events/ir.py | # © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
import abc
import logging
import collections
logger = logging.getLogger(__name__)
def _first_of_type(children, cls):
return next(c for c in children if isinstance(c, cls))
de... | 23,761 | 30.809906 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/cpptest/misra_xml_to_json.py | #!/usr/bin/env python3
# coding: utf-8
#
# © 2023 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
Run as a part of gitlab CI, after Parasoft reports have been generated.
This script converts the Parasoft XML-format report to a Code Climate
compatible json file, that... | 3,717 | 30.243697 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/debug/tracebuf.py | #!/usr/bin/env python3
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
Convert a trace buffer binary file to text form.
"""
import os
import struct
import argparse
import sys
import tempfile
import subprocess
import itertools
import math
MAP_ID = 0x14
UN... | 13,209 | 31.298289 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/hypercalls/hypercall.py | #!/usr/bin/env python3
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
import os
from Cheetah.Template import Template
from Cheetah import ImportHooks
def xreg_range(*args):
return tuple('x{:d}'.format(r) for r in range(*args))
templates_dir = os.path.... | 4,598 | 30.285714 | 77 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/hypercalls/hypercall_gen.py | #!/usr/bin/env python3
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from hypercall import Variable, Hypercall, apply_template
from lark import Lark, Tree
import os
import sys
import argparse
import subprocess
import logging
import pickle
import inspect
# D... | 10,064 | 35.075269 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/codegen/codegen.py | #!/usr/bin/env python3
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
# Simple generic code generator. Assumes that all logic is in the template
# itself and is based only on the architecture names and the preprocessor
# defines, all of which are passed on th... | 4,655 | 31.333333 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/typed/ast_nodes.py | # © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
from lark import Tree, Token
import itertools
from ir import (
TopLevel, PrimitiveType, BitFieldDeclaration, BitFieldType, StructureType,
EnumerationType, AlternativeType, BitF... | 39,670 | 29.031037 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/typed/exceptions.py | # © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
import re
class BaseError(Exception):
def get_context(self, text, pos, span=40):
start = max(pos - span, 0)
end = pos + span
before = text[start:pos].rspl... | 2,525 | 34.083333 | 77 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/typed/type_gen.py | #!/usr/bin/env python3
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
from lark import Lark, ParseError
from exceptions import RangeError, DSLError
from ir import TransformTypes
from abi import AArch64ABI
import argparse
import sy... | 6,103 | 32.911111 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/typed/ir.py | # © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# 2019 Cog Systems Pty Ltd.
#
# SPDX-License-Identifier: BSD-3-Clause
import inspect
import math
import itertools
import os
import abc
from Cheetah.Template import Template
from exceptions import DSLError
from collections import namedtuple
from functools... | 91,723 | 28.493248 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/typed/abi.py | #!/usr/bin/env python3
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
import abc
class CType:
def __init__(self, name, is_signed, size, align=None, bitsize=None):
self.name = name
self.is_signed = is_signed
self.size = size
... | 5,962 | 31.763736 | 78 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/misc/get_genfiles.py | #!/usr/bin/env python3
# coding: utf-8
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
Simple script to parse the compile_commands to extract generated source and
header files, to pass to cscope or other source indexing tools.
"""
import json
import sys
i... | 2,739 | 26.676768 | 77 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/registers/register_gen.py | #!/usr/bin/env python3
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from Cheetah.Template import Template
import argparse
import itertools
import subprocess
import logging
import sys
logger = logging.getLogger(__name__)
valid_access_strs = \
set([''.... | 4,773 | 27.586826 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/elf/package_apps.py | #!/usr/bin/env python3
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
import argparse
import logging
import sys
from elftools.elf.elffile import ELFFile
from elftools.elf.constants import SH_FLAGS, P_FLAGS
from elftools import construct
class NewSegment():
... | 11,003 | 29.823529 | 68 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/utils/__init__.py | 0 | 0 | 0 | py | |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/utils/genfile.py | # coding: utf-8
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
"""
import sys
import io
import argparse
class _ReplaceFileMixin(object):
def __init__(self, name, mode, encoding=None):
super().__init__()
self._name = name
sel... | 2,524 | 26.150538 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/build/__main__.py | # coding: utf-8
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""
Gunyah build system.
This module is invoked by configure.py with the global variable `graph` set to
an instance of AbstractBuildGraph, which can be used to add rules, targets and
variables to... | 53,295 | 35.05954 | 79 | py |
gunyah-hypervisor-develop | gunyah-hypervisor-develop/tools/build/gen_sym_ver.py | #!/usr/bin/env python3
# coding: utf-8
#
# © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from random import SystemRandom
rng = SystemRandom()
print("#define HYP_SYM_VERSION 0x{:x}".format(rng.getrandbits(64)))
| 268 | 23.454545 | 67 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.