Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Beam Katas Java to use the new course metadata yaml format #9901

Merged
merged 5 commits into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ rat {
"**/*.json",

// Katas files
"learning/katas/**/course-remote-info.yaml",
"learning/katas/**/section-remote-info.yaml",
"learning/katas/**/lesson-remote-info.yaml",
"learning/katas/**/task-remote-info.yaml",
"learning/katas/*/IO/**/*.txt",

// Mockito extensions
Expand Down
3,151 changes: 0 additions & 3,151 deletions learning/katas/java/.idea/study_project.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/aggregation/count/Task.java
visible: true
placeholders:
- offset: 1707
length: 29
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/aggregation/count/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713738
update_date: Wed, 19 Jun 2019 09:23:51 UTC
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/aggregation/max/Task.java
visible: true
placeholders:
- offset: 1709
length: 35
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/aggregation/max/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713742
update_date: Wed, 19 Jun 2019 09:24:06 UTC
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/aggregation/mean/Task.java
visible: true
placeholders:
- offset: 1709
length: 28
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/aggregation/mean/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713740
update_date: Wed, 19 Jun 2019 09:23:58 UTC
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/aggregation/min/Task.java
visible: true
placeholders:
- offset: 1709
length: 35
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/aggregation/min/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713741
update_date: Wed, 19 Jun 2019 09:24:02 UTC
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/aggregation/sum/Task.java
visible: true
placeholders:
- offset: 1709
length: 35
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/aggregation/sum/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713739
update_date: Wed, 19 Jun 2019 09:23:55 UTC
25 changes: 25 additions & 0 deletions learning/katas/java/Common Transforms/Aggregation/lesson-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

content:
- Count
- Sum
- Mean
- Min
- Max
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id: 229514
update_date: Fri, 31 May 2019 17:51:12 UTC
unit: 202039
29 changes: 29 additions & 0 deletions learning/katas/java/Common Transforms/Filter/Filter/task-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/filter/filter/Task.java
visible: true
placeholders:
- offset: 1718
length: 49
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/filter/filter/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713737
update_date: Wed, 19 Jun 2019 09:23:47 UTC
29 changes: 29 additions & 0 deletions learning/katas/java/Common Transforms/Filter/ParDo/task-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/filter/pardo/Task.java
visible: true
placeholders:
- offset: 1752
length: 292
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/filter/pardo/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 713736
update_date: Wed, 19 Jun 2019 09:23:44 UTC
22 changes: 22 additions & 0 deletions learning/katas/java/Common Transforms/Filter/lesson-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

content:
- ParDo
- Filter
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id: 229513
update_date: Fri, 31 May 2019 17:50:56 UTC
unit: 202038
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

type: edu
files:
- name: src/org/apache/beam/learning/katas/commontransforms/withkeys/Task.java
visible: true
placeholders:
- offset: 1875
length: 117
placeholder_text: TODO()
- name: test/org/apache/beam/learning/katas/commontransforms/withkeys/TaskTest.java
visible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 754089
update_date: Wed, 19 Jun 2019 09:24:09 UTC
21 changes: 21 additions & 0 deletions learning/katas/java/Common Transforms/WithKeys/lesson-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

content:
- WithKeys
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id: 237992
update_date: Mon, 17 Jun 2019 17:11:31 UTC
unit: -1
23 changes: 23 additions & 0 deletions learning/katas/java/Common Transforms/section-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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:https://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 CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

content:
- Filter
- Aggregation
- WithKeys
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id: 85641
update_date: Fri, 31 May 2019 17:51:12 UTC
Loading