coding-blocks/CBOnlineApp

View on GitHub
onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt

Summary

Maintainability
F
1 wk
Test Coverage

Class OnlineJsonApi has 61 methods (exceeds 20 allowed). Consider refactoring.
Open

interface OnlineJsonApi {

    @GET("courses/{id}")
    suspend fun getCourse(
        @Path("id") id: String

    File OnlineJsonApi.kt has 332 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    package com.codingblocks.onlineapi.api
    
    import com.codingblocks.onlineapi.models.Applications
    import com.codingblocks.onlineapi.models.Bookmark
    import com.codingblocks.onlineapi.models.CareerTracks

      Method getMyDoubts has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              @Query("exclude") query: String = "content.*",
              @Query("filter[acknowledgedById]") acknowledgedId: String,
              @Query("filter[status]") filter: String = "ACKNOWLEDGED",
              @Query("include") include: String = "content",
              @Query("page[limit]") page: String = "10",

        Method getJobs has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                @Query("filter[deadline][\$gt]") deadline: String,
                @Query("filter[postedOn][\$lte]") postedOn: String,
                @Query("filter[location][\$ilike][\$any][]") filterLoc: List<String>? = null,
                @Query("filter[type][\$in][]") filterType: List<String>? = null,
                @Query("page[offset]") pageOffSet: String = "0",

          Method getRecommendedCourses has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  @Query("exclude") query: String = "ratings,instructors.*,jobs,runs.*",
                  @Query("filter[recommended]") recommended: String = "true",
                  @Query("filter[unlisted]") unlisted: String = "false",
                  @Query("page[limit]") page: Int = 12,
                  @Query("page[offset]") offset: Int = 0,

            Method getAllCourses has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    @Query("page[offset]") offset: String,
                    @Query("page[limit]") limit: String = "20",
                    @Query("exclude") query: String = "ratings,instructors.*,jobs,runs.*",
                    @Query("filter[unlisted]") unlisted: String = "false",
                    @Query("include") include: String = "instructors,runs",

              Method getBookmarksByAttemptId has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      @Query("exclude") query: String = "section.*,content.*",
                      @Query("filter[runAttemptId]") id: String,
                      @Query("page[limit]") page: Int = 10,
                      @Query("page[offset]") offset: Int = 0,
                      @Query("include") include: String = "section,content",

                Method getLiveDoubts has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        @Query("exclude") query: String = "content.*",
                        @Query("filter[status]") filter: String = "PENDING",
                        @Query("include") include: String = "content",
                        @Query("page[limit]") page: String = "10",
                        @Query("page[offset]") offset: Int = 0,

                  Method getLeaderBoard has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          @Query("filter[visible_all]") filter: String = "true",
                          @Query("include") include: String = "user",
                          @Query("sort") sort: String = "-rating_all",
                          @Query("page[limit]") page: String = "10",
                          @Query("page[offset]") offset: Int = 0

                    Method findCourses has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            @Query("exclude") exclude: String = "ratings,instructors.*,jobs",
                            @Query("filter[title][\$iLike]") query: String,
                            @Query("filter[unlisted]") unlisted: String = "false",
                            @Query("page[limit]") page: Int = 100,
                            @Query("include") include: String = "instructors,runs"

                      Method getWinnings has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              @Query("exclude") exclude: String = "spin_prize.*,user",
                              @Query("filter[used]") filter1: String = "true",
                              @Query("filter[won]") filter2: String = "true",
                              @Query("sort") sort: String = "-used_at",
                              @Query("include") include: String = "spin_prize"

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            @GET("notes")
                            suspend fun getNotesForContent(
                                @Query("filter[runAttemptId]") attemptId: String,
                                @Query("filter[contentId]") contentId: String
                            ): Response<List<Note>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 175..179

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 130.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                            @GET("doubts")
                            suspend fun getDoubtsForContent(
                                @Query("filter[runAttemptId]") attemptId: String,
                                @Query("filter[contentId]") contentId: String
                            ): Response<List<Doubts>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 169..173

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 130.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 5 locations. Consider refactoring.
                        Open

                            @POST("career_tracks/recommend")
                            @FormUrlEncoded
                            suspend fun getRecommendedTrack(
                                @FieldMap params: HashMap<String, String>
                            ): Response<CareerTracks>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 102..104
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 106..108
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 126..128
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 137..139

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 109.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @PATCH("notes/{noteid}")
                            suspend fun updateNoteById(
                                @Path("noteid") id: String,
                                @Body params: Note
                            ): Response<Note>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 70..74
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 212..216
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 156..160

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 108.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @PATCH("doubts/{doubtid}")
                            suspend fun resolveDoubt(
                                @Path("doubtid") id: String,
                                @Body params: Doubts
                            ): Response<Doubts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 196..200
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 212..216
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 156..160

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 108.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @PATCH("progresses/{id}")
                            suspend fun updateProgress(
                                @Path("id") id: String,
                                @Body params: ContentProgress
                            ): Response<ContentProgress>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 70..74
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 196..200
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 156..160

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 108.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 6 locations. Consider refactoring.
                        Open

                            @GET("run_attempts/{runAttemptId}/relationships/doubts")
                            suspend fun getDoubtByAttemptId(
                                @Path("runAttemptId") id: String
                            ): Response<List<Doubts>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 86..89
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 159..162
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 164..167
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 300..303
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 60..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 96.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 6 locations. Consider refactoring.
                        Open

                            @GET("sections/{sectionId}/relationships/contents")
                            suspend fun getSectionContents(
                                @Path("sectionId") sectionId: String
                            ): Response<ArrayList<LectureContent>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 65..68
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 86..89
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 164..167
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 300..303
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 60..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 96.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 6 locations. Consider refactoring.
                        Open

                            @GET("{id}")
                            suspend fun getTrackCourses(
                                @Path("id") path: String
                            ): Response<List<Course>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 65..68
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 86..89
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 159..162
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 164..167
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 60..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 96.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 6 locations. Consider refactoring.
                        Open

                            @GET("doubts/{doubtId}/relationships/comments")
                            suspend fun getCommentsById(
                                @Path("doubtId") id: String
                            ): Response<List<Comment>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 65..68
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 159..162
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 164..167
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 300..303
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 60..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 96.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 6 locations. Consider refactoring.
                        Open

                            @GET("run_attempts/{runAttemptId}/relationships/notes")
                            suspend fun getNotesByAttemptId(
                                @Path("runAttemptId") id: String
                            ): Response<List<Note>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 65..68
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 86..89
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 159..162
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 300..303
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 60..63

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 96.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("quizzes/{quizId}")
                            suspend fun getQuizById(
                                @Path("quizId") id: String
                            ): Response<Quizzes>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @POST("quiz_attempts/{id}/submit")
                            suspend fun submitQuizById(
                                @Path("id") id: String
                            ): Response<QuizAttempt>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @DELETE("bookmarks/{id}")
                            suspend fun deleteBookmark(
                                @Path("id") id: String
                            ): Response<Bookmark>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @DELETE("notes/{noteid}")
                            suspend fun deleteNoteById(
                                @Path("noteid") id: String
                            ): Response<Note>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("courses/{id}/relationships/user_course_wishlist")
                            suspend fun checkIfWishlisted(
                                @Path("id") id: String
                            ): Response<Wishlist>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("run_attempts/{id}")
                            suspend fun enrolledCourseById(
                                @Path("id") id: String
                            ): Response<RunAttempts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @PATCH("run_attempts/{id}/pause")
                            suspend fun pauseCourse(
                                @Path("id") id: String
                            ): Response<RunAttempts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @PATCH("doubts/{doubtId}")
                            suspend fun getDoubt(
                                @Path("doubtId") id: String
                            ): Response<Doubts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("instructors/{id}")
                            suspend fun getInstructor(@Path("id") id: String): Response<Instructor>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("career_tracks/{id}")
                            suspend fun getTrack(
                                @Path("id") id: String
                            ): Response<CareerTracks>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("quiz_attempts/{id}")
                            suspend fun getQuizAttemptById(
                                @Path("id") id: String
                            ): Response<QuizAttempt>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("courses/{id}")
                            suspend fun getCourse(
                                @Path("id") id: String
                            ): Response<Course>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @DELETE("user_course_wishlists/{id}")
                            suspend fun removeWishlist(
                                @Path("id") id: String
                            ): Response<Wishlist>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @PATCH("run_attempts/{id}/unpause")
                            suspend fun unPauseCourse(
                                @Path("id") id: String
                            ): Response<RunAttempts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 279..282
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 22 locations. Consider refactoring.
                        Open

                            @GET("companies/{id}")
                            suspend fun getCompany(
                                @Path("id") id: String
                            ): Response<Company>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 81..84
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 96..99
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 108..109
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 144..147
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 149..152
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 154..157
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 191..194
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 218..221
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 246..249
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 251..254
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 305..308
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 390..393
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 395..398
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 46..49
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 54..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 57..58
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 84..85
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 93..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 99..100
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 162..165

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 83.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            @GET("jobs/{id}")
                            fun getJobById(
                                @Path("id") id: String
                            ): Call<Jobs>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 87..88
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 90..91

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 82.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            suspend fun getProject(
                                @Path("id") id: String,
                                @Query("exclude") query: String = "course.*"
                            ): Response<Project>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 224..227
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 241..244

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 75.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            fun getQuestionById(
                                @Path("questionId") id: String,
                                @Query("include") include: String = "choices"
                            ): Call<Question>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 52..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 224..227

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 75.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            suspend fun getQuizAttempt(
                                @Query("filter[qnaId]") qnaId: String,
                                @Query("sort") sort: String = "-createdAt"
                            ): Response<List<QuizAttempt>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 52..55
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 241..244

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 75.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("players")
                            suspend fun setPlayerId(@Body params: Player): Response<ResponseBody>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("doubts")
                            suspend fun createDoubt(@Body params: Doubts): Response<Doubts>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("quiz_attempts")
                            suspend fun createQuizAttempt(
                                @Body params: QuizAttempt
                            ): Response<QuizAttempt>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("notes")
                            suspend fun createNote(
                                @Body params: Note
                            ): Response<Note>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("user_course_wishlists")
                            suspend fun addWishlist(@Body params: Wishlist): Response<Wishlist>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("comments")
                            suspend fun createComment(@Body params: Comment): Response<Comment>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("bookmarks")
                            suspend fun addBookmark(
                                @Body params: Bookmark
                            ): Response<Bookmark>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 207..210
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 9 locations. Consider refactoring.
                        Open

                            @POST("progresses")
                            suspend fun setProgress(
                                @Body params: ContentProgress
                            ): Response<ContentProgress>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 91..94
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 202..205
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 229..232
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 256..257
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 259..260
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 265..266
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 387..388
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 81..82

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 74.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @GET("carousel_cards?sort=order")
                            suspend fun getCarouselCards(): Response<List<CarouselCards>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 111..112
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 310..311
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 167..168

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 62.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @GET("professions")
                            suspend fun getProfessions(): Response<List<Professions>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 111..112
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 262..263
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 167..168

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 62.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                            @GET("instructors/")
                            suspend fun getAllInstructors(): Response<List<Instructor>>
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 262..263
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineJsonApi.kt on lines 310..311
                        onlineapi/src/main/kotlin/com/codingblocks/onlineapi/api/OnlineRestApi.kt on lines 167..168

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 62.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        There are no issues that match your filters.

                        Category
                        Status