path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/androidTest/java/com/hodinv/mvpdemo/screens/detail/DetailRouterTest.kt | hodinv | 140,211,180 | false | {"Kotlin": 33799} | package com.hodinv.mvpdemo.screens.detail
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.filters.LargeTest
import android.support.test.internal.runner.junit4.statement.UiThreadStatement
import android.support.test.rule.ActivityTestRule
import android.suppo... | 0 | Kotlin | 0 | 0 | c2f5c04d27ada8eff13a5aa49ac3425ac7e172fd | 1,260 | mvp_demo | MIT License |
app/src/main/java/com/kylecorry/trail_sense/shared/DecimalFormatter.kt | Haxine | 325,499,055 | true | {"Kotlin": 493346} | package com.kylecorry.trail_sense.shared
import java.text.DecimalFormat
object DecimalFormatter {
fun format(number: Double): String {
val fmt = DecimalFormat("#.####")
return fmt.format(number)
}
} | 0 | null | 0 | 0 | 363d3c988894d7823a3f727dd137ce495c3ccb77 | 224 | Trail-Sense | MIT License |
newm-server/src/main/kotlin/io/newm/server/database/migration/V5__SongsUpdates.kt | projectNEWM | 447,979,150 | false | {"Kotlin": 2223591, "HTML": 154009, "Shell": 2775, "Dockerfile": 2535, "Procfile": 60} | package io.newm.server.database.migration
import org.flywaydb.core.api.migration.BaseJavaMigration
import org.flywaydb.core.api.migration.Context
import org.jetbrains.exposed.sql.transactions.transaction
@Suppress("unused")
class V5__SongsUpdates : BaseJavaMigration() {
override fun migrate(context: Context?) {
... | 1 | Kotlin | 4 | 9 | b25c5a6d016c232707b6aefad18abec35fc4c167 | 829 | newm-server | Apache License 2.0 |
app/src/main/java/com/aliasadi/mvvm/ui/details/DetailsViewModelFactory.kt | AlirezaGhanbarinia | 320,996,430 | true | {"Kotlin": 16798} | package com.aliasadi.mvvm.ui.details
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.aliasadi.mvvm.data.network.model.Movie
class DetailsViewModelFactory(private val movie: Movie) : ViewModelProvider.Factory {
override fun <T : ViewModel?> create(modelClass: Class<T>): T... | 0 | Kotlin | 0 | 0 | a74a70c08bd9df34119cf5a849f815a484517b13 | 527 | android-mvvm-sample-app | Apache License 2.0 |
income/android/app/src/main/kotlin/com/example/income/MainActivity.kt | WojuadeAA | 286,723,280 | false | {"Dart": 115791, "Swift": 2424, "Kotlin": 746, "Objective-C": 228, "C#": 131} | package com.example.income
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 3b6af233a07490ad617151d741e27e3f5484d675 | 123 | FlutterProjects | MIT License |
app/src/androidTest/java/com/wedding/thinking/SplashActivityTest.kt | callacroix | 874,981,627 | false | {"Kotlin": 7139, "Java": 330} | package com.wedding.thinking
import androidx.activity.result.launch
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner... | 0 | Kotlin | 0 | 0 | a5a02910f6e2a9b508bda9b3007b308934eaf778 | 1,102 | do-not-forget | Apache License 2.0 |
push-message-provider-hpk/src/main/kotlin/ru/touchin/push/message/provider/hpk/clients/hms_hpk/dto/android/AndroidBadgeNotification.kt | TouchInstinct | 256,563,788 | false | null | package ru.touchin.push.message.provider.hpk.clients.hms_hpk.dto.android
import com.fasterxml.jackson.annotation.JsonProperty
import ru.touchin.push.message.provider.hpk.base.builders.Buildable
internal data class AndroidBadgeNotification private constructor(
/** Accumulative badge number. */
val addNum: Shor... | 1 | Kotlin | 1 | 3 | c8ed908656dc5d28b77961131188ef5b65a98e0d | 2,294 | Backend-common | Apache License 2.0 |
src/main/kotlin/com/github/kerubistan/kerub/planner/issues/problems/vstorage/VStorageDeviceOnRecyclingHostDetector.kt | soloturn | 164,455,794 | true | {"Kotlin": 1728202, "Gherkin": 74051, "HTML": 73962, "JavaScript": 53966, "CSS": 754} | package com.github.kerubistan.kerub.planner.issues.problems.vstorage
import com.github.kerubistan.kerub.planner.Plan
import com.github.kerubistan.kerub.planner.issues.problems.ProblemDetector
import com.github.kerubistan.kerub.planner.issues.problems.common.recyclingHostMap
import com.github.kerubistan.kerub.utils.joi... | 0 | Kotlin | 0 | 1 | 42b70cb9a182af4923a7f960c6df98284e03bab2 | 1,205 | kerub | Apache License 2.0 |
app/src/main/java/com/sleewell/sleewell/database/analyse/night/entities/Analyse.kt | TitouanFi | 427,797,671 | true | {"Kotlin": 554160, "HTML": 385717, "Java": 102120, "CSS": 12842, "JavaScript": 7278} | package com.sleewell.sleewell.database.analyse.night.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Analyse(
@PrimaryKey(autoGenerate = true) val uId: Long,
val nightId: Long,
val db: Double,
val ts: Long
) {
constructor(nightId: Long = 0, db: Double = 0.0,... | 0 | Kotlin | 0 | 0 | e1980017127869159b0742b63273fa342ae0c9da | 363 | Sleewell-Android | MIT License |
src/main/kotlin/de/gmuth/io/ByteArrayExtension.kt | gmuth | 247,626,449 | false | {"Kotlin": 239007} | package de.gmuth.io
import java.io.ByteArrayOutputStream
import java.io.OutputStream
fun ByteArray.hexdump(maxRows: Int = 32, dump: (String) -> Unit) {
val hexStringBuilder = StringBuilder()
val charStringBuilder = StringBuilder()
fun dumpLine() = dump("%-${maxRows * 3}s '%s'".format(hexStringBuilder, ch... | 0 | Kotlin | 8 | 53 | 2f02bc0ea2a69cb73f3a1979041dd35ad7a1f658 | 800 | ipp-client-kotlin | MIT License |
adaptive-lib-sandbox/src/commonMain/kotlin/fun/adaptive/lib/sandbox/ui/markdown/markdown.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2251135, "Java": 24502, "HTML": 7707, "JavaScript": 3880, "Shell": 687} | /*
* Copyright © 2020-2024, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package `fun`.adaptive.lib.sandbox.ui.markdown
import `fun`.adaptive.foundation.Adaptive
import `fun`.adaptive.markdown.fragment.document
import `fun`.adaptive.ui.api.column
@Adaptive
fun markdown... | 30 | Kotlin | 0 | 3 | d6c0623918922416e3f2d6666b66626e25fb0704 | 679 | adaptive | Apache License 2.0 |
app-ktvn-prototyper-swing/src/main/kotlin/com/github/benpollarduk/ktvn/prototyping/swing/components/ResourceTracker.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.prototyping.swing.components
import com.github.benpollarduk.ktvn.prototyping.swing.ResourceType
/**
* Provides an interface for tracking resources.
*/
interface ResourceTracker {
/**
* Register that a required resource was found.
*/
fun registerResourceLocated(... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 578 | ktvn | MIT License |
12_CherryBlossoms/Complete/CherryBlossoms/app/src/main/java/com/example/cherryblossoms/DataViewModel.kt | emboss369 | 764,072,610 | false | {"Kotlin": 274549} | package com.example.cherryblossoms
import androidx.compose.runtime.mutableStateListOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.cherryblossoms.data.ApiResult
import com.example.cherryblossoms.data.ApiSearch
import fuel.Fuel
import fuel.get
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | 3c0afdd260012091d671996fcab47db8a7e0cc47 | 985 | android-compose-book | The Unlicense |
app/src/main/java/com/nmrc/note/data/model/Note.kt | 16george | 348,022,465 | false | null | package com.nmrc.note.data.model
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.nmrc.note.data.model.util.note.NoteData
import com.nmrc.note.viewmodel.NoteSharedViewModel
import kotlinx.parcelize.Parcelize
import java.time.LocalDateTi... | 0 | Kotlin | 0 | 1 | d7daa12f5383191993f6fb2fb7e2a5c1681af476 | 1,032 | Note | Apache License 2.0 |
plugin/src/main/kotlin/me/dkim19375/bedwars/plugin/data/ItemWrapper.kt | SecretX33 | 368,578,906 | true | {"Kotlin": 273270} | /*
* MIT License
*
* Copyright (c) 2021 dkim19375
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | 0 | null | 0 | 0 | 541da69bc8163d43851c087ce505aede7cfebe9e | 3,649 | Bedwars | MIT License |
src/main/kotlin/jp/assasans/protanki/server/api/ApiServer.kt | Assasans | 452,391,158 | false | {"Kotlin": 418747} | package jp.assasans.protanki.server.api
import com.squareup.moshi.Moshi
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.plugins.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*... | 5 | Kotlin | 18 | 32 | 5cfb1e2682c029e47a69cb2910e80d14015c5896 | 3,725 | protanki-server | MIT License |
rxfeedback/src/test/java/org/notests/rxfeedback/RxFeedbackObservableTests.kt | NoTests | 110,270,025 | false | null | package org.notests.rxfeedback
import io.reactivex.Observable
import io.reactivex.schedulers.TestScheduler
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
import org.notests.rxtestutils.Event
import org.notests.rxtestutils.complete
import org.notests.rxtestutils.next
impor... | 2 | null | 2 | 54 | 460c48ea59b7fadbdd4312599ed7f917e50c0e61 | 8,576 | RxFeedback.kt | MIT License |
src/test/kotlin/pl/szymeker/csvwarehouse/storage/DataRowTest.kt | szymeker | 418,118,807 | false | null | package pl.szymeker.csvwarehouse.storage
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import pl.szymeker.csvwarehouse.dimension.GroupDimension
import pl.szymeker.csvwarehouse.dimension.MetricDimension
import pl.szymeker.csvwarehouse.dimension.MetricDimensionType
import pl.szymeke... | 0 | Kotlin | 0 | 0 | 4eb07020d2c21ed0ee9bb73e038115c4a14bd0f5 | 1,757 | csv-warehouse-poc | Apache License 2.0 |
components/src/commonMain/kotlin/me/lincolnstuart/funblocks/essentials/chart/bar/BarChart.kt | LincolnStuart | 645,064,211 | false | null | package me.lincolnstuart.funblocks.essentials.chart.bar
import androidx.compose.runtime.Composable
import me.lincolnstuart.funblocks.chart.bar.BasicBarChart
import me.lincolnstuart.funblocks.chart.bar.utils.BarChartValue
import me.lincolnstuart.funblocks.essentials.chart.bar.utils.BarChartOptions
import me.lincolnstua... | 1 | Kotlin | 0 | 1 | a70b1c58fe60b4d70580e33578f8c20091da167d | 1,086 | fun-blocks | MIT License |
Laboratorio-06/app/src/main/java/com/evildev/laboratorio_06/repositories/MoviesRepository.kt | cabrera-evil | 618,555,990 | false | null | package com.evildev.laboratorio_06.repositories
import com.evildev.laboratorio_06.data.Movie
class MoviesRepository(private val movies: MutableList<Movie>) {
fun getMovies() = movies
fun addMovie(movie: Movie) {
movies.add(movie)
}
} | 0 | Kotlin | 0 | 0 | 8190d084d16b20b68a66334b30e0498bee676bdc | 256 | mobile-laboratories | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/calculatereleasedatesapi/model/SentenceDiagramRow.kt | ministryofjustice | 387,841,000 | false | {"Kotlin": 1613119, "Shell": 7185, "Dockerfile": 1379} | package uk.gov.justice.digital.hmpps.calculatereleasedatesapi.model
data class SentenceDiagramRow(
val description: String,
val sections: List<SentenceDiagramRowSection>
)
| 7 | Kotlin | 0 | 5 | 74c452f2e7ac5c5c2b7cf056e0f0e3001194b38d | 177 | calculate-release-dates-api | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/battle/event/EvtDoSkillSuccNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.battle.event
import org.anime_game_servers.multi_proto.gi.data.general.Vector
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.CommandType
import org.a... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 633 | anime-game-multi-proto | MIT License |
domain/src/main/kotlin/io/github/wykopmobilny/domain/promoted/PromotedModule.kt | otwarty-wykop-mobilny | 374,160,630 | true | {"Kotlin": 1326147, "HTML": 66896, "Java": 38599} | package io.github.wykopmobilny.domain.promoted
import androidx.paging.Pager
import androidx.paging.PagingConfig
import dagger.Binds
import dagger.Module
import dagger.Provides
import io.github.wykopmobilny.domain.api.PagingSource
import io.github.wykopmobilny.domain.api.StoreMediator
import io.github.wykopmobilny.prom... | 13 | Kotlin | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 847 | wykop-android | MIT License |
client/android/div/src/test/java/com/yandex/div/internal/widget/AutoEllipsizeHelperTest.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.internal.widget
import android.text.Layout
import android.view.ViewTreeObserver
import org.junit.Test
import org.mockito.ArgumentMatchers.anyInt
import org.mockito.ArgumentMatchers.eq
import org.mockito.kotlin.argumentCaptor
import org.mockito.kotlin.clearInvocations
import org.mockito.kotlin.do... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 3,471 | divkit | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/CloudMoonRain.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,553 | icons | MIT License |
gen/com/kotakotik/kotalin/iterator/UShortIterator.kt | kotakotik22 | 590,055,669 | false | null | // Automatically generated by the task generateIterators
@file:JvmMultifileClass
@file:JvmName("PrimitiveItersKt")
package com.kotakotik.kotalin.iterator
import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName
/** An iterator over a sequence of values of type `UShort`. */
abstract class UShortIterator : Itera... | 0 | Kotlin | 0 | 0 | 20da6b52350ea69e0183276a03098f999ee25fc6 | 489 | kotalin | MIT License |
app/src/main/java/com/example/mycommish/feature/prize/presentation/component/PrizeInputForm.kt | moaliyou | 786,551,198 | false | {"Kotlin": 119370} | package com.example.mycommish.feature.prize.presentation.component
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundati... | 2 | Kotlin | 1 | 1 | e378c696aa6ba9ba34d1da02a15b143212cca0e0 | 4,366 | My-Commish | MIT License |
app/src/main/java/com/manish/shopnow/model/orders/Order.kt | Manishshakya6614 | 804,889,000 | false | {"Kotlin": 130178} | package com.manish.shopnow.model.orders
import android.os.Parcelable
import com.manish.shopnow.model.Address
import com.manish.shopnow.model.CartProduct
import kotlinx.parcelize.Parcelize
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import kotlin.random.Random.Default.nextLong
@Parc... | 0 | Kotlin | 0 | 0 | c15139b29f4c0452c2fbea2ecbbc19fdd70d3bb6 | 672 | Shop_Now | Apache License 2.0 |
frogocoreconsumeapi/src/main/java/com/frogobox/coreapi/movie/model/SeacrhKeywordResult.kt | frogobox | 389,577,716 | false | null | package com.frogobox.coreapi.movie.model
data class SeacrhKeywordResult(
val id: Int?,
val name: String?
) | 0 | Kotlin | 2 | 7 | 1dd90a037f9acb2ba30066f753d35f7b909621a6 | 115 | frogo-consume-api | Apache License 2.0 |
problems/kotlin/141.linked-list-cycle.kt | EkeMinusYou | 336,591,212 | false | null | /*
* @lc app=leetcode id=141 lang=kotlin
*
* [141] Linked List Cycle
*/
// @lc code=start
/**
* Example:
* var li = ListNode(5)
* var v = li.`val`
* Definition for singly-linked list.
* class ListNode(var `val`: Int) {
* var next: ListNode? = null
* }
*/
class Solution {
fun hasCycle(head: ListNod... | 0 | Kotlin | 0 | 0 | 8ddc1ad08d774a4f09d7f602c040f07bb568b167 | 622 | leetcode | MIT License |
app/src/main/java/com/example/zibook/feature_book/presentation/shared_components/ComposablePermissionHandler.kt | flgsercan | 609,108,096 | false | {"Kotlin": 151068} | package com.example.zibook.feature_book.presentation.shared_components
import android.content.pm.PackageManager
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import andro... | 0 | Kotlin | 0 | 0 | 33d264760f07dd189ab4ef70117030bfe8ef0be0 | 1,547 | EbookProject | MIT License |
sketch-extensions-core/src/commonTest/kotlin/com/github/panpf/sketch/extensions/core/test/ability/ProgressIndicatorTest.kt | panpf | 14,798,941 | false | {"Kotlin": 2881356, "Shell": 1469} | package com.github.panpf.sketch.extensions.core.test.ability
class ProgressIndicatorTest {
// TODO test
} | 1 | Kotlin | 309 | 2,033 | ae155721bc43debe11edd9e93776163ab7500916 | 110 | sketch | Apache License 2.0 |
buildSrc/src/main/kotlin/codegen/GenerateClasspathManifest.kt | jnizet | 146,316,824 | true | {"Kotlin": 1080014, "Java": 5870, "Shell": 549} | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 1 | 75ad0e760f9c6fe2d3f0728f60837a0b22184566 | 1,930 | kotlin-dsl | Apache License 2.0 |
spring-cloud-function/src/main/kotlin/com/livk/function/FunctionApp.kt | livk-cloud | 441,105,335 | false | {"Kotlin": 91905} | package com.livk.function
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean
import java.util.function.Function
/**
* @author livk
*/
@SpringBootApplication
open class FunctionApp {
@Bean
open ... | 2 | Kotlin | 7 | 26 | 24a5ed3d575787e65bd20860323e9e668c3bfaea | 496 | spring-cloud-kotlin | Apache License 2.0 |
src/main/kotlin/mathlingua/frontend/chalktalk/phase2/ast/group/clause/If/IfGroup.kt | DominicKramer | 203,428,613 | false | null | /*
* Copyright 2020 The MathLingua Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 4 | Kotlin | 0 | 67 | c264bc61ac7d9e520018f2652b110c4829876c82 | 3,199 | mathlingua | Apache License 2.0 |
src/main/kotlin/ch/chrigu/gmf/givemefeatures/tasks/TaskService.kt | huberchrigu | 873,071,847 | false | {"Kotlin": 21108, "HTML": 2483, "CSS": 1275} | package ch.chrigu.gmf.givemefeatures.tasks
import ch.chrigu.gmf.givemefeatures.tasks.repository.TaskRepository
import org.springframework.stereotype.Service
@Service
class TaskService(private val taskRepository: TaskRepository) {
fun resolve(tasks: List<TaskId>) = taskRepository.findAllById(tasks.map { it.toStrin... | 0 | Kotlin | 0 | 0 | 20c6ab76cdc205abb237a9e554695cd31cbb9028 | 393 | give-me-features | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/TreeGraphQ.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: TreeGraphQ
*
* Full name: System`TreeGraphQ
*
* Usage: TreeGraphQ[g] yields True if the graph ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 954 | mathemagika | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/BuildCircleSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/BuildCircleSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val BuildCircleSharp: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 214 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/chataway/ui/main/FriendRowsViewModel.kt | asd135hp | 415,375,429 | false | {"Kotlin": 72006} | package com.chataway.ui.main
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.chataway.data.Encryption
import com.chataway.data.FirebaseConstants
import com.chataway.data.firebase.Operations
import com.chataway.da... | 0 | Kotlin | 0 | 0 | a876c7309f77adf9434d7195bd015452c40c3595 | 2,708 | chataway | MIT License |
Android/src/main/java/com/example/vocab/database/HttpConnector.kt | Arduino13 | 599,629,871 | false | null | package com.example.vocab.database
import android.annotation.SuppressLint
import android.content.ContentResolver
import android.provider.Settings
import com.example.vocab.DateUtils
import com.example.vocab.filters
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.... | 0 | Kotlin | 0 | 0 | 5281c5b8281fd3cb06cf670dcaa7e6c858606179 | 6,911 | 3N | MIT License |
src/main/kotlin/de/flapdoodle/tab/ui/events/Event2ModelEvent.kt | flapdoodle-oss | 237,231,857 | false | {"Kotlin": 448974, "CSS": 11113, "Shell": 80} | package de.flapdoodle.tab.ui.events
import de.flapdoodle.kfx.controls.grapheditor.GraphEditor
import de.flapdoodle.kfx.controls.grapheditor.events.Event
import de.flapdoodle.kfx.controls.grapheditor.events.EventListener
import de.flapdoodle.kfx.controls.grapheditor.types.SlotId
import de.flapdoodle.kfx.controls.graphe... | 0 | Kotlin | 1 | 0 | ada605f02cfba305bf2e7ed3e354e90a99977ca6 | 2,874 | tab | Apache License 2.0 |
app/src/main/java/io/iamjosephmj/clean/ui/screens/JobsActivity.kt | iamjosephmj | 347,596,083 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 0 | Kotlin | 0 | 2 | c98b95542857eab6ecc0deb47382c70ef82c756d | 4,760 | Rx-Clean | MIT License |
src/main/kotlin/sosteam/deamhome/domain/log/repository/MailLogRepository.kt | S-OSTeam | 686,862,885 | false | {"Kotlin": 129153} | package sosteam.deamhome.domain.log.repository
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import sosteam.deamhome.domain.log.entity.MailLog
interface MailLogRepository: ReactiveMongoRepository<MailLog,String>{
} | 5 | Kotlin | 0 | 0 | 041b28b91bacc44f22175336e3de3847ab76c238 | 245 | shop-api | MIT License |
src/main/kotlin/com/adverity/etl/controller/SecurityController.kt | liodegar | 415,680,713 | false | null | package com.adverity.etl.controller
import com.adverity.etl.service.SecurityService
import com.adverity.etl.util.SIX_MINUTES
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.... | 0 | Kotlin | 0 | 0 | ddc4925236e71b2923125851056af10f3fd7f86b | 1,036 | etl-rest-api | Apache License 1.1 |
src/main/kotlin/net/palatzky/microvault/encryption/asymmetric/RsaEcbDecryption.kt | kpalatzky | 547,373,030 | false | null | package net.palatzky.microvault.encryption.asymmetric
import net.palatzky.microvault.encryption.Decryption
import java.security.Key
import javax.crypto.Cipher
/**
* Rsa ecb decryption
*
* @property key
* @constructor Create empty Rsa ecb decryption
*/
class RsaEcbDecryption (
override val key: Key
): Decryption... | 6 | Kotlin | 0 | 12 | e6b42af4e87f139b28bfa372aba5d40b09f6d841 | 582 | microvault | MIT License |
src/main/kotlin/net/palatzky/microvault/encryption/asymmetric/RsaEcbDecryption.kt | kpalatzky | 547,373,030 | false | null | package net.palatzky.microvault.encryption.asymmetric
import net.palatzky.microvault.encryption.Decryption
import java.security.Key
import javax.crypto.Cipher
/**
* Rsa ecb decryption
*
* @property key
* @constructor Create empty Rsa ecb decryption
*/
class RsaEcbDecryption (
override val key: Key
): Decryption... | 6 | Kotlin | 0 | 12 | e6b42af4e87f139b28bfa372aba5d40b09f6d841 | 582 | microvault | MIT License |
app/src/main/kotlin/me/xizzhu/android/joshua/reading/detail/StrongNumberItem.kt | xizzhu | 173,533,770 | false | null | /*
* Copyright (C) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 23 | null | 8 | 26 | db43163619c37fd7febd208eb7bde2ffefc4fa99 | 2,946 | Joshua | Apache License 2.0 |
src/jvmMain/kotlin/database/tables/UserSession.kt | mackimaow | 585,306,863 | false | null | package database.tables
import database.EntryToDataIso
import org.jetbrains.exposed.dao.IntEntity
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IntIdTable
import org.jetbrains.exposed.sql.deleteAll
import org.jetbrains.exposed.sql.transactions.transaction
object UserSessionTable : ... | 0 | Kotlin | 0 | 0 | 7161a62e9351f4225d0b620b9f6c94ba78f9a4d6 | 1,028 | Flowtime | MIT License |
Themes-example/Android/app/src/main/java/cn/jiguang/imuisample/themes/ThemeStyle.kt | jpush | 91,675,117 | false | null | package cn.jiguang.imuisample.themes
enum class ThemeStyle {
DEFAULT,
BLACK,
LIGHT;
} | 8 | Swift | 20 | 65 | 277f32851ca0bf001205fbb6ab6d58d8cba32308 | 98 | aurora-imui-examples | MIT License |
app/src/main/java/org/stepik/android/remote/last_step/LastStepRemoteDataSourceImpl.kt | abhirocks1211 | 205,717,847 | false | null | package org.stepik.android.remote.last_step
import io.reactivex.Maybe
import io.reactivex.Single
import org.stepic.droid.util.mapNotNull
import org.stepic.droid.web.Api
import org.stepik.android.data.last_step.source.LastStepRemoteDataSource
import org.stepik.android.domain.last_step.model.LastStep
import javax.inject... | 1 | null | 1 | 1 | 8a2ead7334b6b26a281b3a7842e6502fd96b2cc5 | 982 | stepik | Apache License 2.0 |
src/test/kotlin/no/nav/personopplysninger/testutils/TestFileReader.kt | navikt | 143,875,913 | false | {"Kotlin": 253966, "Dockerfile": 267} | package no.nav.personopplysninger.testutils
import java.io.InputStreamReader
object TestFileReader {
fun readFile(filename: String): String {
return InputStreamReader(this.javaClass.getResourceAsStream("/json/$filename")!!).readText()
}
} | 4 | Kotlin | 0 | 0 | 5dde7538c15dd83f257777e8c927ca92f449fd86 | 256 | personopplysninger-api | MIT License |
src/commonTest/kotlin/kotools/types/collection/NotEmptyListTest.kt | kotools | 581,475,148 | false | null | package kotools.types.collection
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerializationException
import kotlinx.serialization.builtins.serializer
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Jso... | 3 | Kotlin | 0 | 3 | 455ef0f2002f0376099522261c6057bd9ec9cca0 | 4,216 | types | MIT License |
app/src/main/java/com.egadwys.notesApp/ui/todo/TodoViewModel.kt | Egadwys | 805,261,053 | false | {"Kotlin": 48728} | package com.egadwys.notesApp.ui.todo
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import com.egadwys.notesApp.data.ToDoRepository
import com.egadwys.notesApp.data.db.AppNotesDatabase
import com.egadwys.notesApp.d... | 0 | Kotlin | 0 | 0 | cceb715a04360b52622d86bad8ba268535d5e937 | 1,321 | NOTES-APPS | Apache License 2.0 |
app/src/main/java/com/makalaster/etherealdialpad/main/adapter/PadsAdapter.kt | Makalaster | 235,464,029 | false | null | package com.makalaster.etherealdialpad.main.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.StringRes
import androidx.recyclerview.widget.RecyclerView
import com.makalaster.etherealdialpad.pads.Pad
import com.makalaster.etherealdialpad.R
import kotlinx.android.synthe... | 0 | Kotlin | 0 | 0 | 6c296df88742dfdd92936029ed2d3d555073b050 | 1,292 | ethereal-dialpad | MIT License |
app/src/main/java/soup/movie/ui/theater/mode/TheaterModeService.kt | ashishkharcheiuforks | 246,956,919 | true | {"Kotlin": 383771, "Shell": 1169} | package soup.movie.ui.theater.mode
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.IBinder
import soup.movie.R
import soup.movie.notification.NotificationSpecs
import soup.movie.ui.theater.mode.brig... | 0 | null | 0 | 0 | a7c6d9b372913241523cd36fdf04d1863ced9969 | 3,510 | Moop-Android | Apache License 2.0 |
platform/lvcs-impl/src/com/intellij/platform/lvcs/impl/LocalHistoryActivityItem.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.lvcs.impl
import com.intellij.history.core.revisions.RecentChange
import com.intellij.history.core.revisions.Revision
import com.intellij.history.integration.ui.models.... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 1,897 | intellij-community | Apache License 2.0 |
library/src/jvmMain/kotlin/dev/toastbits/kjna/c/CTypeModifier.kt | toasterofbread | 804,979,600 | false | {"Kotlin": 241250, "ANTLR": 18319, "CSS": 9516, "Nix": 1006} | package dev.toastbits.kjna.c
import dev.toastbits.kjna.grammar.*
enum class CTypeModifier {
SHORT,
LONG,
SIGNED,
UNSIGNED
}
| 0 | Kotlin | 0 | 5 | 06a445b2e9b62927dde09b7e0655952eb4eb6e8d | 142 | KJna | Apache License 2.0 |
components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/adapter/rest/Rest.kt | holunda-io | 435,500,011 | false | {"Kotlin": 196780, "TypeScript": 95928, "HTML": 26775, "JavaScript": 4004, "Java": 3166, "SCSS": 1684, "Dockerfile": 649, "Shell": 505} | package io.holunda.polyflow.example.process.approval.adapter.rest
import io.holunda.polyflow.example.process.approval.adapter.rest.model.ApprovalRequestDraftDto
import io.holunda.polyflow.example.process.approval.adapter.rest.model.ApprovalRequestDto
import io.holunda.polyflow.example.process.approval.adapter.rest.mod... | 30 | Kotlin | 4 | 6 | 2c88043d2283a9960cdbd7a1f9ffe9d476e20ab0 | 1,958 | polyflow-examples | Apache License 2.0 |
app/src/main/java/com/dev/james/sayariproject/models/iss/DockedVehicle.kt | JayExtra | 426,628,122 | false | null | package com.dev.james.sayariproject.models.iss
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class DockedVehicle(
val id :Int,
val url : String,
@SerializedName("docking")
val dockedDate : String,
val departure : ... | 4 | Kotlin | 0 | 0 | cea83c93bbfa286ee473910c1f00abe076ef1344 | 418 | Sayari_Project | Apache License 2.0 |
nanoha/src/main/kotlin/com/kotcrab/fate/nanoha/editor/core/FontLoader.kt | RikuNoctis | 165,883,449 | false | null | /*
* Copyright 2017-2018 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 1 | 04d0a219269e17c97cca54f71ae11e348c9fb070 | 2,633 | fate-explorer | Apache License 2.0 |
app/src/main/java/dev/baharudin/weatherinfo/presentation/common/Utils.kt | baharudin-yusup | 701,484,629 | false | {"Kotlin": 80669} | package dev.baharudin.weatherinfo.presentation.common
import dev.baharudin.weatherinfo.data.const.ApiConstant
import dev.baharudin.weatherinfo.domain.entities.Condition
fun Condition.getWeatherIconUrl(): String? {
return if (this.weathers.isNullOrEmpty()) {
null
} else {
"${ApiConstant.WEATHE... | 0 | Kotlin | 0 | 0 | 7da8a09437bf3c96412a73a305f55921d5ad83c9 | 381 | weather-info | MIT License |
app/src/main/java/com/example/docscanner/feature_createpdf/domain/util/PdfOrder.kt | IamAbhinavSINGH | 805,725,247 | false | {"Kotlin": 160329} | package com.example.docscanner.feature_createpdf.domain.util
sealed class PdfOrder(val orderType: OrderType) {
class Title(orderType: OrderType): PdfOrder(orderType = orderType)
class Description(orderType: OrderType): PdfOrder(orderType = orderType)
class Date(orderType: OrderType): PdfOrder(orderType = o... | 6 | Kotlin | 2 | 21 | b17ef64b5b0591950b5bef2e049bd87d180b62f5 | 555 | DocScanner | MIT License |
app/src/main/java/com/packt/tellastory/fragments/StoryContributeFragment.kt | mikerworks | 108,963,811 | false | null | package com.packt.tellastory.fragments
import android.app.Fragment
import com.packt.tellastory.activities.MainActivity
import com.packt.tellastory.AuthenticationHelper
import com.packt.tellastory.models.Contribution
import android.os.Bundle
import android.view.ViewGroup
import android.view.LayoutInflater
import androi... | 0 | Kotlin | 0 | 0 | c229be54e703c327767e1e7ce3af98353ec94a58 | 2,811 | packt-lean-onboarding | MIT License |
tmp/arrays/youTrackTests/8430.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-21162
data class MyDto(
val parameter1: String,
val parameter2: String = "",
val parameter3: String = "",
val parameter4: String
)
| 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 185 | bbfgradle | Apache License 2.0 |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/adapters/viewholders/EntryViewHolder.kt | altaf933 | 122,962,254 | false | null | package io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders
import io.github.feelfreelinux.wykopmobilny.glide.GlideApp
import io.github.feelfreelinux.wykopmobilny.models.dataclass.Author
import io.github.feelfreelinux.wykopmobilny.models.dataclass.Entry
import io.github.feelfreelinux.wykopmobilny.ui.widgets.e... | 1 | null | 1 | 1 | 0c2d9fc015a5bef5b258481e4233d04ab5705a49 | 1,396 | WykopMobilny | MIT License |
agp-7.1.0-alpha01/tools/base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/resources/NonTransitiveAppRClassesTest.kt | jomof | 502,039,754 | true | {"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D... | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 5,431 | CppBuildCacheWorkInProgress | Apache License 2.0 |
app/src/main/java/com/mxt/anitrend/extension/KoinExt.kt | switchswap | 144,502,337 | true | {"Java": 1083710, "Kotlin": 405280} | package com.mxt.anitrend.extension
import android.content.Context
import androidx.annotation.StringRes
import org.koin.core.KoinComponent
import org.koin.core.get
object KoinExt : KoinComponent {
/**
* Helper to retrieve dependencies by class definition
*
* @param `class` registered class in koin ... | 0 | Java | 0 | 0 | 25e17623d9f1476529337efce6e436be196646bc | 909 | anitrend-app | MIT License |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/game/ProjectionMode.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.api.game
import org.hexworks.zircon.api.data.Block
import org.hexworks.zircon.api.data.Tile
import org.hexworks.zircon.internal.game.GameAreaRenderer
import org.hexworks.zircon.internal.game.impl.TopDownGameAreaRenderer
/**
* Represents modes for projecting the Blocks in a [GameArea].
* ... | 42 | null | 138 | 738 | 55a0ccc19a3f1b80aecd5f1fbe859db94ba9c0c6 | 1,014 | zircon | Apache License 2.0 |
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/domain/beacon/BeaconSharedState.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.wallet.impl.domain.beacon
import jp.co.soramitsu.common.data.storage.Preferences
import jp.co.soramitsu.core.models.Asset
import jp.co.soramitsu.runtime.multiNetwork.ChainRegistry
import jp.co.soramitsu.runtime.state.SingleAssetSharedState
private const val BEACON_SHARED_STATE = "BEACON_SHARED... | 15 | null | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 641 | fearless-Android | Apache License 2.0 |
plugins/kapt3/kapt3-base/test/org/jetbrains/kotlin/kapt3/base/incremental/IncrementalKaptTest.kt | svitalsky | 177,876,537 | true | {"Markdown": 58, "Gradle": 502, "Gradle Kotlin DSL": 227, "Java Properties": 13, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 13, "Java": 6006, "Kotlin": 45173, "Proguard": 8, "XML": 1628, "Text": 9955, "JavaScript": 241, "JAR Manifest": 2, "Roff": 210, "Roff Manpage": 34, "IN... | /*
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.kapt.base.test.org.jetbrains.kotlin.kapt3.base.incremental
import org.jetbrains.kotlin.base.kapt3.KaptOptions
import org.jetbr... | 0 | Kotlin | 0 | 0 | 7aed9fd5929464319abea1bc89cec7a0b1baf541 | 6,794 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/knextsunj/cms/util/ValidationUtil.kt | knextsunj | 643,231,064 | false | {"Java": 84911, "Kotlin": 27268} | package com.github.knextsunj.cms.util
import com.github.knextsunj.cms.dto.AddressDTO
import com.github.knextsunj.cms.exception.ValidationFailureException
open class ValidationUtil {
fun checkAddressParams(addressDTO: AddressDTO):Boolean? {
val result = addressDTO?:-1
if(result==-1) {
... | 1 | null | 1 | 1 | 01cde71ac46e01de64f1edf2356255d7e018b326 | 790 | cms-backend | Apache License 2.0 |
plugins/git4idea/src/git4idea/rebase/GitCommitFixupBySubjectAction.kt | aquagray | 199,735,010 | true | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package git4idea.rebase
import com.intellij.vcs.log.VcsShortCommitDetails
class GitCommitFixupBySubjectAction : GitAutoSquashCommitAction() {
override fun getCommitMessage(com... | 1 | null | 1 | 1 | 9c9ef51bc90b061d4ec579f12b60f631a46d024c | 441 | intellij-community | Apache License 2.0 |
framework/kotlin-simple-architecture-client/src/jsMain/kotlin/kim/jeonghyeon/type/WeakReference.kt | dss99911 | 138,060,985 | false | null | package kim.jeonghyeon.type
actual class WeakReference<T : Any> actual constructor(referred: T) {
var data: T? = referred
actual fun clear() {
data = null
}
actual fun get(): T? {
return data
}
} | 1 | null | 2 | 38 | e9da57fdab9c9c1169fab422fac7432143e2c02c | 233 | kotlin-simple-architecture | Apache License 2.0 |
app/src/main/java/com/affirmations/app/ui/affirmation/AffirmationView.kt | deepak786 | 121,542,965 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 19, "XML": 32, "Java": 3} | /*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 1 | null | 1 | 1 | 85e90a80d27c71ee67e0d2b0be710e8186369469 | 2,936 | Affirmations-Room-Sample | Apache License 2.0 |
dcp_kotlin/src/test/kotlin/dcp/day283/day283.kt | sraaphorst | 182,330,159 | false | {"Text": 2, "Ignore List": 1, "Markdown": 214, "Python": 61, "Scala": 36, "XML": 2, "Java": 16, "INI": 3, "Gradle": 2, "Shell": 1, "Batchfile": 1, "Kotlin": 180, "CMake": 2, "C++": 85, "C": 1} | package dcp.day283
// day283.kt
// By <NAME>, 2020.
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class UnitTests {
@Test
fun example1() {
// From http://oeis.org/A051037
val expected = listOf(1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36, 40, 45, 4... | 1 | null | 1 | 1 | 5981e97106376186241f0fad81ee0e3a9b0270b5 | 608 | daily-coding-problem | MIT License |
common/src/main/java/com/balsikandar/common/utils/Utils.kt | balsikandar | 255,555,406 | false | null | package com.balsikandar.common.utils
import com.google.gson.Gson
// only for use inside ui
object GsonUtils {
private val gson: Gson by lazy { Gson() }
fun gson() = gson
}
// unique name for any object in form of `ClassName(object hex code)`
val Any.name: String
get() = "${javaClass.simpleName}(${Integer... | 0 | Kotlin | 1 | 6 | 7a6f61a5390b68a023b8aafd19d1c25cd7eab1fe | 510 | MVIGithubSample | Apache License 2.0 |
personalizado_carrito_compras/android/app/src/main/kotlin/com/sena/carrito_compras/MainActivity.kt | Sebas333231 | 569,885,251 | false | {"Java": 516, "Kotlin": 135} | package com.sena.carrito_compras
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | null | 1 | 1 | 04f9c65affc0ba0fbb2dd8e94598f1e55218897b | 129 | proyectos_app | MIT License |
openrndr-application/src/jvmMain/kotlin/org/openrndr/Application.kt | ylegall | 254,515,360 | true | {"Kotlin": 2028026, "Java": 760094, "ANTLR": 9333, "CSS": 4706, "GLSL": 2677, "Shell": 548} | package org.openrndr
import kotlinx.coroutines.runBlocking
import mu.KotlinLogging
import org.openrndr.math.Vector2
private val logger = KotlinLogging.logger {}
/**
* Application preload class
* [ApplicationPreload] can be used to configure [Application] and [Program] without changing
* user code.
*
* [Applicat... | 1 | Kotlin | 1 | 5 | 29a9045bc7676e330ea65be745d41fffe6e47b4b | 4,469 | openrndr | BSD 2-Clause FreeBSD License |
app/src/main/java/org/fossasia/susi/ai/rest/responses/susi/SkillRating.kt | chiragw15 | 68,939,397 | false | null | package org.fossasia.susi.ai.rest.responses.susi
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
/**
*
* Created by chiragw15 on 18/8/17.
*/
class SkillRating {
@SerializedName("positive")
@Expose
var positive: Int = 0
@SerializedName("negative")
@Ex... | 1 | null | 1 | 1 | 182d1ab21006eb2302a000c7589d24ec59935e36 | 352 | susi_android | Apache License 2.0 |
src/main/java/com/bot/commands/meme/FeelsCommand.kt | SiberGamer | 277,353,342 | true | {"Java": 392881, "Kotlin": 64986, "TSQL": 6154, "Dockerfile": 401, "Makefile": 278} | package com.bot.commands.meme
import com.bot.commands.MemeCommand
import com.jagrosh.jdautilities.command.CommandEvent
class FeelsCommand : MemeCommand() {
private val feels = "───────▄▀▀▀▀▀▀▀▀▀▀▄▄\n" +
"────▄▀▀░░░░░░░░░░░░░▀▄\n" +
"──▄▀░░░░░░░░░░░░░░░░░░▀▄\n" +
"──█░░░░░░░░░░... | 0 | null | 0 | 0 | 41d7089388af7b671cea3a947b6fdfd13bafa1a3 | 1,275 | Vinny | MIT License |
bbfgradle/tmp/results/BACKUP_JVM-Xuse-ir/FRONTEND_sjtouat_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM -Xuse-ir
//File: tmp/tmp0.kt
var a =
a.p
get(): Int {}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 83 | kotlinWithFuzzer | Apache License 2.0 |
src/main/kotlin/io/kanro/idea/plugin/protobuf/lang/psi/proto/impl/ProtobufLineCommentImpl.kt | devkanro | 351,091,577 | false | {"Kotlin": 723329, "Lex": 11522, "Java": 749} | package io.kanro.idea.plugin.protobuf.lang.psi.proto.impl
import com.intellij.lang.folding.FoldingDescriptor
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiWhiteSpace
import com.intellij.psi.impl.source.tree.PsiCommentImpl
import com.intellij.psi.tree.IElementType
import com.intellij.psi.util.CachedValu... | 13 | Kotlin | 11 | 82 | 4d6bd78652590733de23155b5caa6e4c0f8d8376 | 1,746 | intellij-protobuf-plugin | Apache License 2.0 |
AutoHunt/app/src/main/java/mds/mobile/autohunt/home/adapters/AHCarsAdapter.kt | nbogdand | 252,981,597 | false | null | package mds.mobile.autohunt.home.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import mds.mobile.autohunt.R
impor... | 0 | Kotlin | 0 | 0 | 5a2fa104e45afdbafb8b60eaa6fbd1cd81acbcf8 | 1,991 | MDS_Android | MIT License |
src/iosMain/kotlin/com/shepeliev/webrtckmp/IceCandidate.kt | cloudwise-solutions | 413,005,519 | true | {"Objective-C": 456849, "Kotlin": 171448, "Python": 11133, "C": 5349, "Ruby": 949} | package com.shepeliev.webrtckmp
import WebRTC.RTCIceCandidate
actual class IceCandidate internal constructor(val native: RTCIceCandidate) {
actual val sdpMid: String = native.sdpMid!!
actual val sdpMLineIndex: Int = native.sdpMLineIndex
actual val candidate: String = native.sdp
actual override fun to... | 0 | null | 0 | 0 | 06b881cef5bc88e52bc510134e4ec936f522029f | 351 | webrtc-kmp | Apache License 2.0 |
app/src/main/java/com/sbz/noteify/adapter/NotesAdapter.kt | SHabaj-dev | 667,126,302 | false | null | package com.sbz.noteify.adapter
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.sbz.noteify.AddNoteActivity
import com.sbz.no... | 0 | Kotlin | 0 | 0 | 95fe74893a8a239bf0a2959f53a0c8fb245ee1f3 | 2,287 | Notify | MIT License |
app/src/main/java/dalian/razvan/cucer/ibm/screens/skuValues/SKUValuesViewModel.kt | daliaan | 367,817,053 | false | null | package dalian.razvan.cucer.ibm.screens.skuValues
import dalian.razvan.cucer.ibm.core.baseClasses.BaseViewModel
import dalian.razvan.cucer.ibm.core.repository.IBMRepositoryDAO
import dalian.razvan.cucer.ibm.core.repository.IBMRepositoryDAOCallback
import dalian.razvan.cucer.ibm.models.SKUValue
class SKUValuesViewMode... | 0 | Kotlin | 0 | 0 | f1c87dd1745ee8477d486b036dc5c45aacabe59e | 1,092 | IBM | Apache License 2.0 |
renderer/src/main/kotlin/io/sparkled/renderer/util/FillUtils.kt | sparkled | 53,776,686 | false | {"Kotlin": 321814, "TypeScript": 141619, "JavaScript": 133004, "CSS": 5012, "HTML": 353} | package io.sparkled.renderer.util
import io.sparkled.common.logging.getLogger
import io.sparkled.model.animation.fill.BlendMode
import io.sparkled.renderer.api.RenderContext
import java.awt.Color
object FillUtils {
private val logger = getLogger<FillUtils>()
// TODO effectColor is an intermediate step. At p... | 20 | Kotlin | 21 | 71 | 681240d1a17bfffbd22da75d00ae1188f26c6a76 | 2,426 | sparkled | MIT License |
app/src/main/java/io/procrastination/skeleton/view/splash/SplashFragment.kt | rodrigojmlourenco | 249,366,803 | false | null | package io.procrastination.skeleton.view.splash
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavCont... | 1 | Kotlin | 0 | 0 | 05135af5a5217833bc46375e47e986493c652648 | 1,878 | android-skeleton | MIT License |
diskordin-base/src/main/kotlin/org/tesserakt/diskordin/core/data/json/response/AccountResponse.kt | ITesserakt | 218,969,129 | false | null | package org.tesserakt.diskordin.core.data.json.response
import org.tesserakt.diskordin.core.data.Snowflake
import org.tesserakt.diskordin.core.entity.IIntegration
import org.tesserakt.diskordin.impl.core.entity.Integration
data class AccountResponse(
val id: Snowflake,
val name: String
) : DiscordResponse<II... | 1 | Kotlin | 1 | 12 | e93964fcb5ecb0e1d03dd0fc7d3dd2637a0e08ae | 483 | diskordin | Apache License 2.0 |
live-video-sample/app/src/main/java/com/sendbird/live/videoliveeventsample/view/LiveEventForParticipantActivity.kt | sendbird | 542,961,997 | false | {"Kotlin": 271278} | package com.sendbird.live.uikit.sample.view
import android.view.View
import com.sendbird.live.Host
import com.sendbird.live.LiveEvent
import com.sendbird.live.LiveEventState
import com.sendbird.live.ParticipantCountInfo
import com.sendbird.live.uikit.sample.R
import com.sendbird.live.uikit.sample.util.displayFormat
im... | 1 | Kotlin | 1 | 1 | 24aaad8749f827ce4900f06838534335aa2ffb6a | 3,330 | sendbird-live-sample-android | MIT License |
app/src/main/java/com/mrspd/csevotingapp/adapter/CustomListAdapterResults.kt | satyamurti | 275,547,085 | false | null | package com.mrspd.csevotingapp.adapter
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log.d
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 0 | Kotlin | 1 | 3 | 5850509b115c3d118d94e7c915726595198d6d2b | 1,862 | CSEVotingApp | MIT License |
src/main/kotlin/no/nav/bidrag/dokument/produksjon/Configuration.kt | navikt | 715,656,968 | false | {"Kotlin": 23912, "Handlebars": 14666, "Dockerfile": 485} | package no.nav.bidrag.dokument.produksjon
import com.fasterxml.jackson.databind.ObjectMapper
import io.swagger.v3.oas.annotations.OpenAPIDefinition
import io.swagger.v3.oas.annotations.info.Info
import io.swagger.v3.oas.models.examples.Example
import no.nav.bidrag.commons.web.DefaultCorsFilter
import no.nav.bidrag.com... | 6 | Kotlin | 0 | 0 | 07583dea78a65b9c9b45b67df9b4a8cc70b3584a | 2,125 | bidrag-dokument-produksjon | MIT License |
app/projfair/src/main/java/me/progneo/projfair/domain/repository/CandidateRepository.kt | imysko | 498,018,609 | false | {"Kotlin": 846714} | package me.progneo.projfair.domain.repository
import kotlinx.coroutines.flow.Flow
import me.progneo.projfair.domain.model.Candidate
interface CandidateRepository {
suspend fun getCandidate(): Result<Candidate>
suspend fun getProjectCandidatesList(projectId: Int): Result<List<Candidate>>
suspend fun can... | 1 | Kotlin | 1 | 2 | 52791643ed0112a97cb0e6cdd7d996075e3b881c | 365 | Schedule-ISTU | MIT License |
src/main/kotlin/me/aberrantfox/judgebot/configuration/Configuration.kt | the-programmers-hangout | 251,074,065 | false | null | package me.aberrantfox.judgebot.configuration
import me.aberrantfox.judgebot.dataclasses.PunishmentConfig
import me.aberrantfox.judgebot.dataclasses.PunishmentType
import me.jakejmattson.discordkt.api.dsl.data.Data
data class Configuration(
val owner: String = "insert-owner-id",
val whitelist: List<St... | 0 | Kotlin | 0 | 1 | 3d70f5d4cb3dbf17bfcfad7bb9db21785a6ab343 | 3,320 | JudgeBot-old | MIT License |
web/src/main/kotlin/com/github/niuhf0452/exile/web/internal/RouterImpl.kt | niuhf0452 | 240,633,641 | false | null | package com.github.niuhf0452.exile.web.internal
import com.github.niuhf0452.exile.common.URLHelper
import com.github.niuhf0452.exile.web.*
import com.github.niuhf0452.exile.web.serialization.EntitySerializers
import org.slf4j.LoggerFactory
import java.util.concurrent.ConcurrentHashMap
import kotlin.reflect.KClass
cla... | 0 | Kotlin | 1 | 2 | 8020cb1ab799f7b1e75c73f762a9ee1ed493a003 | 9,705 | exile | Apache License 2.0 |
app/src/main/java/com/panda/pda/app/operation/OperationFragment.kt | Givennn | 402,701,983 | false | null | package com.panda.pda.app.operation
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import androidx.annotation.MenuRes
import androidx.annotation.StringRes
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.ConcatAdapter
import androidx.recyclerview.widge... | 0 | Kotlin | 0 | 0 | 24f6284eed22b1fe91b5462a0cdd5a466d6531ad | 3,997 | pda | MIT License |
src/main/kotlin/com/github/nikitavbv/servicemonitor/metric/resources/MysqlMetric.kt | nikitavbv | 151,761,891 | false | null | package com.github.nikitavbv.servicemonitor.metric.resources
import com.github.nikitavbv.servicemonitor.metric.AbstractMetric
import com.github.nikitavbv.servicemonitor.metric.Metric
import com.github.nikitavbv.servicemonitor.metric.MetricRepositories
import com.github.nikitavbv.servicemonitor.metric.MetricType
import... | 0 | Kotlin | 0 | 0 | d26cbb6e99cb420590e5f47f58f282612aa89997 | 1,277 | ServiceMonitor | MIT License |
app/src/main/java/com/example/demoappp/Adapter.kt | Srihitha18798 | 459,462,350 | false | {"Kotlin": 41786} | package com.example.demoappp
import android.graphics.Color
import android.text.Spannable
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.style.BackgroundColorSpan
import android.text.style.ForegroundColorSpan
import android.util.Log
import android.view.LayoutInflater
... | 1 | Kotlin | 4 | 9 | 0afd73e04ba5ba4b6804de1711cf29c19c9201da | 2,700 | ExcelReader | Apache License 2.0 |
shared/src/commonMain/kotlin/com/seyedjafariy/shared/network/KtorExtensions.kt | seyedjafariy | 520,298,973 | false | {"Kotlin": 101839} | package com.seyedjafariy.shared.network
import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.http.*
fun HttpRequestBuilder.addJsonBody(body: Any) {
contentType(ContentType.Application.Json)
this.body = body
}
fun HttpRequestBuilder.addFormData(vararg params: Pair<String, Strin... | 0 | Kotlin | 0 | 7 | 65a91dbc992368e0552fde97c7975cdd5bed3b92 | 682 | Shuttle | Apache License 2.0 |
idea/testData/editor/enterHandler/multilineString/withTabs/tabs4/enterWithTabsAfterMarginChar.kt | JakeWharton | 99,388,807 | true | null | fun some() {
val b = """
|class Test() {
| fun test() {<caret>
|}
""".trimMargin()
}
//-----
fun some() {
val b = """
|class Test() {
| fun test() {
| <caret>
|}
""".trimMargin()
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 200 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.