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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
libnavigation-router/src/test/java/com/mapbox/navigation/route/offboard/router/MapboxDirectionsUtilsTest.kt | engelzero | 371,880,512 | true | {"Kotlin": 3077882, "Java": 96097, "Python": 11740, "Makefile": 6255, "Shell": 1686} | package com.mapbox.navigation.route.offboard.router
import com.mapbox.api.directions.v5.MapboxDirections
import com.mapbox.api.directions.v5.models.RouteOptions
import com.mapbox.geojson.Point
import com.mapbox.navigation.base.extensions.applyDefaultNavigationOptions
import io.mockk.mockk
import io.mockk.verify
import... | 0 | null | 0 | 0 | a29fc2e301880748ab67b9d1a90c61532dce975d | 1,210 | mapbox-navigation-android | Apache License 2.0 |
beckon-mesh/src/main/java/com/technocreatives/beckon/mesh/BeckonMeshClient.kt | technocreatives | 364,517,134 | false | null | package com.technocreatives.beckon.mesh
import android.content.Context
import androidx.core.content.edit
import arrow.core.Either
import arrow.core.computations.either
import arrow.core.right
import arrow.core.rightIfNotNull
import com.technocreatives.beckon.BeckonClient
import com.technocreatives.beckon.mesh.data.*
i... | 1 | Kotlin | 1 | 8 | 2e252df19c02104821c393225ee8d5abefa07b74 | 3,669 | beckon-android | Apache License 2.0 |
features/home/src/main/kotlin/id/rivaldy/feature/home/ui/home/sections/HomeSearchBar.kt | im-o | 718,908,780 | false | {"Kotlin": 156609} | package id.rivaldy.feature.home.ui.home.sections
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.lay... | 0 | Kotlin | 1 | 0 | 6cc1658634eb8273d6cf6d02d37b3a9c7f33dd30 | 2,155 | android-compose-haidoc-ui | MIT License |
app/src/main/java/com/donfreddy/troona/domain/model/Song.kt | donfreddy | 736,820,576 | false | {"Kotlin": 163323} | /*
=============
Author: Don Freddy
Github: https://github.com/donfreddy
Website: https://donfreddy.com
=============
Application: Troona - Music Player
Homepage: https://github.com/donfreddy/troona
License: https://github.com/donfreddy/troona/blob/main/LICENSE
Copyright: © 2023, Don Freddy. All rights reserved.
======... | 0 | Kotlin | 0 | 0 | 1e59a5f24ee507f6dce0c153199d7a00d519c7d2 | 1,381 | troona | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsstafflookupservice/config/HmppsStaffLookupServiceExceptionHandler.kt | ministryofjustice | 593,643,618 | false | {"Kotlin": 55666, "Dockerfile": 1371, "PLpgSQL": 211} | package uk.gov.justice.digital.hmpps.hmppsstafflookupservice.config
import jakarta.validation.ValidationException
import org.slf4j.LoggerFactory
import org.springframework.http.HttpStatus
import org.springframework.http.HttpStatus.BAD_REQUEST
import org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR
import org.... | 3 | Kotlin | 0 | 0 | 89cad3abbbd8d4220b635217de9391045af26ec2 | 3,106 | hmpps-staff-lookup-service | MIT License |
app/src/main/java/com/lx/todaysbing/data/bingapis/Images.kt | liuxue0905 | 348,978,492 | false | null | package com.lx.todaysbing.data.bingapis
import com.google.gson.annotations.SerializedName
data class ImageAnswer(
@field:SerializedName("_type") val _type: String,
@field:SerializedName("readLink") val readLink: String,
@field:SerializedName("webSearchUrl") val webSearchUrl: String,
@field:SerializedN... | 0 | Kotlin | 0 | 0 | 6eadfb2af127581510ee02f5484aa96924f7a845 | 2,158 | Today-s-Bing-2 | Apache License 2.0 |
server/src/main/kotlin/org/tod87et/roomkn/server/plugins/Metrics.kt | spbu-math-cs | 698,579,800 | false | {"Kotlin": 162233, "JavaScript": 143389, "CSS": 11387, "HTML": 1871, "Dockerfile": 1208, "Shell": 483} | package org.tod87et.roomkn.server.plugins
import io.ktor.server.application.Application
import io.ktor.server.application.call
import io.ktor.server.application.install
import io.ktor.server.metrics.micrometer.MicrometerMetrics
import io.ktor.server.response.respond
import io.ktor.server.routing.get
import io.ktor.ser... | 55 | Kotlin | 0 | 3 | f323ac4c4072414d15d5b65547fd84ed576d840f | 1,303 | roomkn | Apache License 2.0 |
app/src/main/java/eu/kanade/presentation/theme/colorscheme/TealTurqoiseColorScheme.kt | mihonapp | 743,704,912 | false | {"Kotlin": 2940843} | package eu.kanade.presentation.theme.colorscheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color
/**
* Colors for Teal Turqoise theme
*/
internal object TealTurqoiseColorScheme : BaseColorScheme() {
override val dark... | 280 | Kotlin | 447 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 3,389 | mihon | Apache License 2.0 |
neo4k-reporting/src/main/kotlin/me/roybailey/neo4k/reporting/ReportRunner.kt | roybailey | 189,282,455 | false | null | package me.roybailey.neo4k.reporting
import com.google.common.net.MediaType
import me.roybailey.neo4k.api.Neo4jService
import me.roybailey.neo4k.dsl.QueryStatement
import mu.KotlinLogging
import java.io.ByteArrayOutputStream
import java.io.OutputStream
data class ReportColumn(
val name: String,
val t... | 10 | Kotlin | 0 | 0 | 1749bafb650a95fd2668dc05cea8ecb1aefbda35 | 2,630 | neo4k | Apache License 2.0 |
buisness/account/src/main/kotlin/net/sergey/kosov/account/domains/User.kt | Sergey34 | 104,038,580 | false | {"JavaScript": 193369, "Kotlin": 169128, "HTML": 59327, "Groovy": 48321, "CSS": 4132, "Shell": 2658, "Dockerfile": 2029} | package net.sergey.kosov.account.domains
import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import net.sergey.kosov.common.annotations.NoArgs
import net.sergey.kosov.common.serializers.ObjectIdSerializer
import net.sergey.kosov.common.utils.DateTimeUtils.C... | 4 | JavaScript | 0 | 5 | ac24b0b643ea910260ff408c2277edf0cccbcc60 | 1,330 | platform-sales | Apache License 2.0 |
Alter/alter-core/src/main/java/com/pixocial/alter/core/lifecycle/dispatcher/IDispatcher.kt | Pixocial | 506,082,070 | false | {"Kotlin": 125556, "Groovy": 15216, "Java": 1679} | package com.pixocial.alter.core.lifecycle.dispatcher
interface IDispatcher {
fun callCreateOnMainThread(): Boolean
fun toWait()
fun toNotify()
} | 0 | Kotlin | 0 | 5 | c1ea25c2cf9bad17224546cb1925b5aecd7782e4 | 161 | Alter-Android | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/welcome/WelcomeActivity.kt | JMoicano | 347,425,383 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 9568e2d7225adf8a387de6e127df46effd6a76a7 | 1,776 | AndroidDevChallengeWeek3 | Apache License 2.0 |
app/src/main/kotlin/dev/mbo/dbq/db/model/types/retrystrategy/RetryDelayProcessor.kt | mbogner | 487,622,806 | false | {"Kotlin": 77379, "PLpgSQL": 4569} | /*
* Copyright 2022 mbo.dev
*
* 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 or agreed to in... | 0 | Kotlin | 0 | 0 | d89d18513f04f69a61e2a955db496548349e19a1 | 2,088 | dbq | Apache License 2.0 |
src/day24/Day24.kt | gautemo | 317,316,447 | false | null | package day24
import shared.getLines
import kotlin.math.abs
val commands = listOf("e", "se", "sw", "w", "nw", "ne")
fun turnedTiles(input: List<String>, days: Int = 0): Int{
val tiles = mutableMapOf<PointDouble, Boolean>()
for(path in input){
var x = 0.0
var y = 0.0
var pathLeft = pat... | 0 | Kotlin | 0 | 0 | ce25b091366574a130fa3d6abd3e538a414cdc3b | 2,795 | AdventOfCode2020 | MIT License |
src/main/kotlin/com/api/project/repository/caddy/CaddyMongo.kt | antoinebou12 | 448,323,978 | false | {"Kotlin": 68077, "Java": 214, "Dockerfile": 114} | package com.api.project.repository.caddy
class CaddyMongo {
} | 1 | Kotlin | 0 | 0 | 3be3bbc6d828edf840ab6edaffee661db671d7db | 62 | SpringBootFilesUploader | MIT License |
app/src/main/java/com/example/androiddevchallenge/data/LocalDataRepository.kt | rohitjakhar | 343,223,902 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 4 | 4ae965c3682f9201ff5c4ef9e766f6bed624a7ef | 1,901 | PuppyAdoption | Apache License 2.0 |
src/main/kotlin/no/nav/aap/rest/tokenx/TokenXJacksonModule.kt | navikt | 432,668,965 | false | {"Kotlin": 45041} | package no.nav.aap.rest.tokenx
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.core.util.VersionUtil.versionFor
import com.fasterxml.jackson.databind.module.SimpleModule
import no.nav.security.token.support.client.core.oauth2.OAuth2AccessTokenResponse
class TokenXJacksonModul... | 1 | Kotlin | 0 | 2 | 99bd63bb9dceb06ab737d41d3ce916faa05262a7 | 684 | aap-domain | MIT License |
src/jsMain/kotlin/sh/christian/website/sheet/ResumeApp.kt | christiandeange | 15,754,740 | false | null | package sh.christian.website.sheet
import org.jetbrains.compose.web.css.CSSMediaQuery.MediaType
import org.jetbrains.compose.web.css.CSSMediaQuery.MediaType.Enum.Print
import org.jetbrains.compose.web.css.CSSSizeValue
import org.jetbrains.compose.web.css.CSSUnit
import org.jetbrains.compose.web.css.CSSUnitValueTyped
i... | 0 | Kotlin | 0 | 0 | 4820bfaa6355fdd64ed7da35a2eb835527184f55 | 2,593 | Website | The Unlicense |
fluentui_core/src/main/java/com/microsoft/fluentui/theme/token/controlTokens/CircularProgressIndicatorTokens.kt | microsoft | 257,221,908 | false | {"Kotlin": 3021107, "Shell": 8996} | package com.microsoft.fluentui.theme.token.controlTokens
import android.os.Parcelable
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.microsoft.fluentui.t... | 25 | Kotlin | 103 | 574 | 851a4989a4fce5db50a1818aa4121538c1fb4ad9 | 3,074 | fluentui-android | MIT License |
simplified-books-api/src/main/java/org/nypl/simplified/books/api/Bookmark.kt | jonathangreen | 292,624,474 | true | {"Gradle": 90, "Shell": 9, "INI": 88, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 90, "EditorConfig": 1, "YAML": 1, "XML": 329, "Kotlin": 620, "Java Properties": 1, "JSON": 46, "Java": 280, "CSS": 1, "HTML": 1, "JavaScript": 2} | package org.nypl.simplified.books.api
import com.io7m.jfunctional.Some
import org.joda.time.LocalDateTime
import java.io.Serializable
import java.net.URI
import java.nio.charset.Charset
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
/**
* The saved data for a bookmark.
*
* <p>Note... | 0 | Kotlin | 0 | 0 | 34a6fda48570a75372723b71acd36130570e1bcb | 3,221 | Simplified-Android-Core | Apache License 2.0 |
Yogiraj (Android)/Animation/app/src/main/java/com/drawonapp/animation/MainActivity.kt | SwiftUI-Animation-Challenges | 513,304,739 | false | null | package com.drawonapp.animation
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.drawonapp.animation.customview.FillAnimation
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
class MainActivity : AppCompatActivity() {
private la... | 2 | Swift | 20 | 19 | 8ff1f6716655630eb8d6328c2c64668835965e4b | 1,351 | Challenge-1 | MIT License |
playground/main/src/main/kotlin/playground/Second.kt | facebookresearch | 498,810,868 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package playground
import shapeTyping.annotations.AllowUnreduced
import shapeTyping.annotations.SType
@SType("S: Shape")
class... | 15 | Kotlin | 2 | 8 | b80b7484b8f1033fbef3e76a401b7a0237a35e05 | 661 | shapekt | MIT License |
core/src/test/kotlin/main/operation/Show_test.kt | elect86 | 364,643,104 | false | null | package main.operation
import main.Commit
import main.SimpleGit
import main.plusAssign
import kotlin.test.Test
class Show_test : SimpleGit() {
@Test
fun `can show diffs in commit that added new file`() {
val fooFile = repoFile("dir1/foo.txt")
fooFile += "foo!"
gik.add(patterns = setOf... | 1 | Kotlin | 1 | 2 | f5f28edfee6a2683ce5da5ea8fdc4e1ba32a3f33 | 3,576 | gik | Apache License 2.0 |
clef-workflow-api/clef-workflow-api-usecase/clef-workflow-api-usecase-stage/src/main/java/io/arkitik/clef/workflow/api/usecase/stage/main/CreateStageUseCase.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.usecase.stage.main
import io.arkitik.clef.workflow.api.common.error.StageResponses
import io.arkitik.clef.workflow.api.common.response.ViewIdentify
import io.arkitik.clef.workflow.api.store.stage.InitialStageStore
import io.arkitik.clef.workflow.api.store.stage.StageStore
import io... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 2,953 | clef-workflow | Apache License 2.0 |
app/src/main/java/io/github/vladimirmi/internetradioplayer/data/repository/MediaRepository.kt | DL44227 | 178,415,007 | true | {"Kotlin": 342234, "Java": 7538} | package io.github.vladimirmi.internetradioplayer.data.repository
import com.jakewharton.rxrelay2.BehaviorRelay
import io.github.vladimirmi.internetradioplayer.data.utils.Preferences
import io.github.vladimirmi.internetradioplayer.domain.model.Media
import io.github.vladimirmi.internetradioplayer.domain.model.MediaQueu... | 0 | Kotlin | 0 | 0 | d2eac5d745d69ed9510eba5c08529c04927db3f1 | 1,060 | InternetRadioPlayer | MIT License |
src/commonMain/kotlin/nonEmptyList/NonEmptyList+plus.kt | balazstothofficial | 265,933,158 | false | null | package nonEmptyList
operator fun <T> NonEmptyList<T>.plus(value: T) = copy(tail = tail + value)
operator fun <T> NonEmptyList<T>.plus(other: List<T>) = copy(tail = tail + other)
operator fun <T> List<T>.plus(
other: NonEmptyList<T>
): NonEmptyList<T> = other.copy(head = other.firstOrNull() ?: other.head, tail =... | 0 | Kotlin | 0 | 0 | cb8862db7a520acbf20a41412328315511fd4d82 | 450 | data-structures | MIT License |
scripts/Day2.kts | matthewm101 | 573,325,687 | false | {"Kotlin": 63435} | import java.io.File
enum class Hand(val handScore: Long) {Rock(1), Paper(2), Scissors(3)}
fun charToHand(c: Char) = when(c) {
'A', 'X' -> Hand.Rock
'B', 'Y' -> Hand.Paper
'C', 'Z' -> Hand.Scissors
else -> Hand.Rock
}
enum class Goal(val goalScore: Long) {Loss(0), Tie(3), Win(6)}
fun charToGoal(c: Char... | 0 | Kotlin | 0 | 0 | bbd3cf6868936a9ee03c6783d8b2d02a08fbce85 | 2,158 | adventofcode2022 | MIT License |
app/src/main/java/ru/ozh/android/recycler/decorator/sample/pager/controllers/StubController.kt | ozh-dev | 193,144,003 | false | {"Kotlin": 84727} | package ru.ozh.android.recycler.decorator.sample.pager.controllers
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.viewbinding.ViewBinding
import ru.ozh.android.recycler.decorator.sample.pager.controllers.StubController.Holder
import ru.surfstudio.android.easyadapter.controller.NoDat... | 1 | Kotlin | 19 | 92 | c3718d6a58a5712933d4e92ce333b4fb57e262b2 | 756 | recycler-decorator-library-sample | Apache License 2.0 |
fluxo-core/src/commonMain/kotlin/kt/fluxo/core/intent/IntentRequest.kt | fluxo-kt | 566,869,438 | false | {"Kotlin": 540610, "Shell": 968, "Dockerfile": 791} | package kt.fluxo.core.intent
import kotlinx.coroutines.CompletableDeferred
import kt.fluxo.common.annotation.ExperimentalFluxoApi
import kotlin.jvm.JvmField
/**
*
* **NOTE: please fill an issue if you need this class to be open for your own specific implementations!**
*
* @see ChannelBasedIntentStrategy for usage... | 9 | Kotlin | 1 | 28 | aac0f6ba9118e9b3d20ec1cca934e230f3ec8066 | 481 | fluxo | Apache License 2.0 |
src/main/kotlin/com/dubreuia/pih/services/ApplicationService.kt | dubreuia | 435,223,862 | false | {"Kotlin": 8330} | package com.dubreuia.pih.services
import com.dubreuia.pih.MyBundle
class ApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 3 | Kotlin | 1 | 9 | 90527b83b567155ad9cb1b496554149bee189596 | 173 | python-inlay-hints-plugin | MIT License |
core/src/commonMain/kotlin/io/github/aeckar/parsing/typesafe/Symbols.kt | aeckar | 834,956,853 | false | {"Kotlin": 78817} | @file:Suppress("LeakingThis")
package io.github.aeckar.parsing.typesafe
import io.github.aeckar.parsing.*
import io.github.aeckar.parsing.utils.SymbolStream
import io.github.aeckar.parsing.utils.unsafeCast
/**
* A symbol providing type-safe access to its components.
*
* Enables type-safe access to children of each... | 0 | Kotlin | 0 | 0 | 2f13ccfd7fee1242eb784f0ce3d4dd7d35412a03 | 1,484 | power-parse | MIT License |
app/src/main/java/com/littlelemon/menu/ProductsGrid.kt | mamado143 | 649,249,040 | false | null | package com.littlelemon.menu
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layou... | 0 | Kotlin | 0 | 0 | a41e627c4a94afb598d7097b08e09290af668649 | 1,972 | DinnerTableManu | MIT License |
data/src/main/kotlin/repository/model/pdf/content/model/Projects.kt | tardisjphon | 647,261,331 | false | null | package repository.model.pdf.content.model
import repository.model.pdf.content.model.projects.ProjectData
data class Projects(
val id: Int,
val title: String,
val projects: List<ProjectData>? = null
)
| 0 | Kotlin | 0 | 0 | 95f14ec3ad35a5345ed4664ed985dd215a382190 | 216 | CvGenerator | MIT License |
android/src/main/kotlin/africa/ejara/trustdart/interfaces/CoinInterface.kt | jayluxferro | 476,413,025 | true | {"Kotlin": 30680, "Swift": 24442, "Dart": 13985, "Ruby": 2348, "Objective-C": 686} | package africa.ejara.trustdart.interfaces
interface CoinInterface {
fun generateAddress(
path: String,
mnemonic: String,
passphrase: String
): Map<String, String?>?
fun getPrivateKey(path: String, mnemonic: String, passphrase: String): String?
fun getPublicKey(path: String, mne... | 0 | Kotlin | 0 | 0 | 778b677697dc3b1c761da89ce1632b5513c594ea | 564 | trustdart | MIT License |
app/src/main/java/com/revolgenx/anilib/radio/ui/view/CircleSimpleDraweeView.kt | rev0lgenX | 244,410,204 | false | null | package com.revolgenx.anilib.radio.ui.view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.ColorDrawable
import android.util.AttributeSet
import android.view.View
import com.facebook.drawee.drawable.ScalingUtils
... | 29 | Kotlin | 3 | 62 | 743e6bf5c865ba5eb601fafe655d498cee04c681 | 1,927 | AniLib | Apache License 2.0 |
app/src/main/java/com/oscarliang/gitfinder/api/GithubService.kt | iamoscarliang | 771,415,562 | false | {"Kotlin": 100365} | package com.oscarliang.gitfinder.api
import retrofit2.http.GET
import retrofit2.http.Query
interface GithubService {
@GET("search/repositories")
suspend fun searchRepos(
@Query("q") query: String,
@Query("per_page") number: Int
): RepoSearchResponse
@GET("search/repositories")
su... | 0 | Kotlin | 0 | 0 | 07ee831afa9cc19f1862d863c2b13017101c59c6 | 479 | git-finder | MIT License |
DualView/src/main/java/com/microsoft/device/display/samples/dualview/models/AppStateViewModel.kt | microsoft | 329,091,156 | false | null | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.device.display.samples.dualview.models
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class AppStateViewModel : ViewModel() {
var viewWidth: Int = 0
var... | 1 | Kotlin | 9 | 27 | 16c6bc36ad741bb0b0024a36eaededca73b20b9d | 406 | surface-duo-compose-samples | MIT License |
basics/ktx/src/main/java/top/sunhy/ktx/StringExt.kt | RDSunhy | 421,280,382 | false | null | package top.sunhy.ktx
//import com.alibaba.fastjson.JSONObject
/**
* 判断字符串不为空
*/
fun CharSequence?.isNotNullOrEmpty(): Boolean {
return !this.isNullOrEmpty()
}
/**
* 判断字符串是否为 json 字符串
*/
/*fun CharSequence?.isJson(): Boolean {
if(this.isNullOrEmpty()){
return false
}
try {
JSONObj... | 0 | Kotlin | 0 | 0 | ff8d615fceeb21169caba21df32e120e2ac783f6 | 685 | android-component | Apache License 2.0 |
module/src/main/java/com/ke/hs_tracker/module/entity/GraveyardCard.kt | keluokeda | 469,693,055 | false | {"Kotlin": 372770} | package com.ke.hs_tracker.module.entity
data class GraveyardCard(
val card: Card,
/**
* 插入时间
*/
val time: Long = System.currentTimeMillis()
) | 8 | Kotlin | 31 | 216 | b4c42c2ecf385f0f9b18bf5656f1ede42795ef20 | 164 | hs_tracker | MIT License |
module/src/main/java/com/ke/hs_tracker/module/entity/GraveyardCard.kt | keluokeda | 469,693,055 | false | {"Kotlin": 372770} | package com.ke.hs_tracker.module.entity
data class GraveyardCard(
val card: Card,
/**
* 插入时间
*/
val time: Long = System.currentTimeMillis()
) | 8 | Kotlin | 31 | 216 | b4c42c2ecf385f0f9b18bf5656f1ede42795ef20 | 164 | hs_tracker | MIT License |
ion-schema/src/main/kotlin/com/amazon/ionschema/model/TimestampPrecisionValue.kt | amazon-ion | 148,685,964 | false | {"Kotlin": 804755, "Inno Setup": 15625, "Java": 795, "Shell": 631} | package com.amazon.ionschema.model
import com.amazon.ion.Timestamp
import java.lang.Integer.max
class TimestampPrecisionValue private constructor(internal val intValue: Int) : Comparable<TimestampPrecisionValue> {
override fun compareTo(other: TimestampPrecisionValue): Int = this.intValue.compareTo(other.intValu... | 40 | Kotlin | 14 | 27 | 7a9ee6d06e9cfdaa530310f5d9be9f5a52680d3b | 2,785 | ion-schema-kotlin | Apache License 2.0 |
app/src/main/java/io/github/omisie11/spacexfollower/util/NumbersUtils.kt | OMIsie11 | 159,474,083 | false | null | package io.github.omisie11.spacexfollower.util
import java.math.RoundingMode
import java.text.DecimalFormat
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Date
import java.util.Locale
import org.threeten.bp.Instant
import org.threeten.bp.LocalDateTime
import org.threeten.bp.ZoneId
// Use... | 1 | Kotlin | 9 | 47 | 16c4c0fe50508e9f6c455997256538cbbbde9537 | 1,491 | SpaceXFollower | Apache License 2.0 |
data/test/src/test/java/app/tivi/utils/AuthorizedAuthStore.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2023 Google LLC
*
* 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 i... | 20 | Kotlin | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 1,160 | tivi | Apache License 2.0 |
app/src/main/java/br/com/renanbarbieri/snakotlin/presentation/ui/GameActivity.kt | renanBarbieri | 134,337,443 | false | {"Kotlin": 33760} | package br.com.renanbarbieri.snakotlin.presentation.ui
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.graphics.Point
import android.os.Bundle
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import br.com.renanbarbieri.snakotlin.R
... | 0 | Kotlin | 0 | 0 | b27e8e8ead9f0eaf27f0712cbde33076257127ce | 4,713 | snakotlin | MIT License |
database/src/main/java/com/demo/minnies/database/room/daos/ProductsDao.kt | jsonkile | 572,488,327 | false | {"Kotlin": 482538, "Java": 28720, "Shell": 1599} | package com.demo.minnies.database.room.daos
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.demo.minnies.database.models.ProductCategory
import com.demo.minnies.database.models.Product
import kotlinx.coroutines.flow.Flow
@Dao
interface... | 0 | Kotlin | 0 | 0 | ce016c05333f8a7301447f412e8d38ed46e1b2db | 1,159 | Minnies | MIT License |
app/src/main/java/com/basaraksanli/photoAlbum/feature_album/presentation/photolistscreen/PhotoListViewModel.kt | basaraksanli | 449,885,231 | false | {"Kotlin": 62324} | package com.basaraksanli.photoAlbum.feature_album.presentation.photolistscreen
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.basaraksanli.photoAlbum.... | 0 | Kotlin | 0 | 0 | 32972f26e9118259ca2d0142a7b8a4e573d934c1 | 2,205 | PhotoAlbum | Apache License 2.0 |
ospf-kotlin-framework-gantt-scheduling/gantt-scheduling-domain-task-context/src/main/fuookami/ospf/kotlin/framework/gantt_scheduling/domain/task/model/Executor.kt | fuookami | 359,831,793 | false | {"Kotlin": 1571399, "Python": 6629} | package fuookami.ospf.kotlin.framework.gantt_scheduling.domain.task.model
import kotlinx.datetime.*
import fuookami.ospf.kotlin.utils.concept.*
open class ExecutorInitialUsability<T : AbstractTask<E, A>, E : Executor, A : AssignmentPolicy<E>>(
open val lastTask: T?,
val enabledTime: Instant
) {
open val o... | 0 | Kotlin | 0 | 1 | 641c80bf9cfa991f9e1a98a049d2982b981bc96e | 526 | ospf-kotlin | Apache License 2.0 |
app/src/main/java/com/luismunyoz/rylaisscepter/data/CloudChampionDataSet.kt | luismunyoz | 102,855,608 | false | null | package com.luismunyoz.rylaisscepter.data
import com.luismunyoz.rylaisscepter.data.riot.mapper.ChampionMapper
import com.luismunyoz.rylaisscepter.data.riot.RiotAPIService
import com.luismunyoz.rylaisscepter.domain.entity.BaseChampion
import com.luismunyoz.rylaisscepter.domain.entity.Champion
import com.luismunyoz.ryla... | 0 | Kotlin | 0 | 0 | 2b390a93de97e1f529b0f8d2759628d85597602d | 984 | Rylais | Apache License 2.0 |
atv-tests-3/app/src/main/java/com/example/android/architecture/blueprints/todoapp/ServiceLocator.kt | gugapadilha | 508,436,828 | false | {"Kotlin": 307791} | package com.example.android.architecture.blueprints.todoapp
import android.content.Context
import androidx.annotation.VisibleForTesting
import androidx.room.Room
import com.example.android.architecture.blueprints.todoapp.data.source.DefaultTasksRepository
import com.example.android.architecture.blueprints.todoapp.data... | 0 | Kotlin | 0 | 2 | ed404495ac0b3a245aef8ff8249ab370fd69d1be | 2,713 | android-tests-codelabs | Apache License 2.0 |
app/src/main/java/com/example/Foodster/MainActivity.kt | aspirers01 | 701,244,296 | false | {"Kotlin": 63679} | package com.example.Foodster
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.Foodster.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(sav... | 0 | Kotlin | 0 | 0 | c9bb63aff4995e70573d8c1e6979adb36016e37d | 655 | Foodster | MIT License |
domain/src/commonMain/kotlin/ireader/domain/utils/Resource.kt | kazemcodes | 540,829,865 | true | {"Kotlin": 2179459} | package ireader.domain.utils
import ireader.i18n.UiText
sealed class Resource<T>(val data: T? = null, val uiText: UiText? = null) {
class Success<T>(data: T?) : Resource<T>(data)
class Error<T>(uiText: UiText, data: T? = null) : Resource<T>(data, uiText)
}
| 0 | Kotlin | 0 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 267 | IReader | Apache License 2.0 |
remote/src/main/java/com/androchef/remote/services/intercepter/AuthorizationInterceptor.kt | happysingh23828 | 251,545,848 | false | null | package com.androchef.remote.services.intercepter
import java.io.IOException
import okhttp3.Interceptor
import okhttp3.Response
class AuthorizationInterceptor(private val apiKey: String) : Interceptor {
@Throws(IOException::class)
override fun intercept(chain: Interceptor.Chain): Response {
val origi... | 0 | Kotlin | 51 | 293 | 63777c3d98929b31294719a99c9bf0ae4d7cd616 | 594 | Android-Clean-Architecture | MIT License |
library/src/main/java/me/bytebeats/generator/ChineseCharHelper.kt | bytebeats | 401,924,809 | false | null | package me.bytebeats.generator
import java.nio.charset.Charset
import java.nio.charset.UnsupportedCharsetException
import java.util.*
import kotlin.math.absoluteValue
import kotlin.random.Random
/**
* @Author bytebeats
* @Email <<EMAIL>>
* @Github https://github.com/bytebeats
* @Created on 2021/9/1 21:08
* @Vers... | 0 | Kotlin | 2 | 4 | 24ef998a28c3217dacc526722fc0782e42b38d2c | 11,808 | RandomGenerator | MIT License |
src/main/kotlin/me/nepnep/nepbot/music/MusicManager.kt | NepNep21 | 332,348,863 | false | null | package me.nepnep.nepbot.music
import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager
import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers
object MusicManager {
val audioPlayerManager = DefaultAudioPlayerManager()
// Long is the guild
val players = mutableMapOf<Long, TrackS... | 0 | Kotlin | 1 | 2 | 9652ca68693218526660e12b1246643b59a7d120 | 421 | nepbot | MIT License |
lang/jap/src/main/kotlin/com/yandex/yatagan/lang/jap/JavaxTypeImpl.kt | yandex | 570,094,802 | false | {"Kotlin": 1455421} | /*
* Copyright 2022 Yandex LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 11 | Kotlin | 10 | 231 | d0d7b823711c7f5a48cfd76d673ad348407fd904 | 3,836 | yatagan | Apache License 2.0 |
core/design/src/test/kotlin/cn/wj/android/cashbook/core/design/BackgroundScreenshotTests.kt | WangJie0822 | 365,932,300 | false | {"Kotlin": 1658612, "Java": 1405038, "Batchfile": 535} | /*
* Copyright 2021 The Cashbook 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 7 | Kotlin | 11 | 71 | 6c39b443a1e1e46cf3c4533db3ab270df1f1b9e8 | 2,247 | Cashbook | Apache License 2.0 |
core/design/src/test/kotlin/cn/wj/android/cashbook/core/design/BackgroundScreenshotTests.kt | WangJie0822 | 365,932,300 | false | {"Kotlin": 1658612, "Java": 1405038, "Batchfile": 535} | /*
* Copyright 2021 The Cashbook 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 7 | Kotlin | 11 | 71 | 6c39b443a1e1e46cf3c4533db3ab270df1f1b9e8 | 2,247 | Cashbook | Apache License 2.0 |
app/src/main/java/com/nuevo/gameness/ui/pages/personal/tournaments/detail/tournamentroom/refereechat/RefereeChatAdapter.kt | arbabkh | 873,814,880 | false | {"Kotlin": 538078} | package com.nuevo.gameness.ui.pages.personal.tournaments.detail.tournamentroom.refereechat
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.nuevo.gameness.data.model.tournamentrefereemessages.TournamentRefereeUse... | 0 | Kotlin | 0 | 0 | 80d7b04385a2cd516b8157dbea19dd821c30fcc9 | 3,668 | gameness-android | MIT License |
app/src/main/java/com/puntogris/posture/domain/repository/SyncRepository.kt | puntogris | 398,388,678 | false | null | package com.puntogris.posture.domain.repository
import com.puntogris.posture.domain.model.UserPrivateData
import com.puntogris.posture.utils.SimpleResult
interface SyncRepository {
suspend fun syncAccount(authUser: UserPrivateData?): SimpleResult
suspend fun syncAccountExperience()
}
| 0 | Kotlin | 2 | 7 | 099ba90c707c308047c43b1536f92f450f59c772 | 297 | posture-reminder | MIT License |
app/src/main/java/com/dreamit/androidquiz/utils/QuizRatesUtils.kt | mkAndroDev | 142,674,492 | false | null | package com.dreamit.androidquiz.utils
import com.dreamit.androidquiz.quizitem.model.Answer
import com.dreamit.androidquiz.quizitem.model.Rate
class QuizRatesUtils {
companion object {
fun getValidResultAsPercent(validQuestionsCount: Int, totalAnswers: Int): Int {
return validQuestionsCount * ... | 0 | Kotlin | 0 | 0 | eabf29df22080fcb6c4656b638ef1f6c5cc004f4 | 755 | AndroidQuiz | MIT License |
shared/src/commonMain/kotlin/by/game/binumbers/tutorial/domain/model/TutorialAction.kt | alexander-kulikovskii | 565,271,232 | false | {"Kotlin": 454229, "Swift": 3274, "Ruby": 2480, "Shell": 622} | package by.game.binumbers.tutorial.domain.model
import by.game.binumbers.base.BinumbersAction
sealed class TutorialAction : BinumbersAction {
object Load : TutorialAction()
object OnClickDone : TutorialAction()
}
| 0 | Kotlin | 0 | 10 | 66b1678b47a96a52ebef467111d1d4854a37486a | 223 | 2048-kmm | Apache License 2.0 |
lib/src/main/kotlin/org/konigsoftware/kontext/KonigKontext.kt | konigsoftware | 690,328,441 | false | {"Kotlin": 31037} | package org.konigsoftware.kontext
import io.grpc.Context
class KonigKontext<KontextValue> private constructor(
internal val konigKontextKey: KonigKontextKey<KontextValue>,
internal val konigKontextValue: KontextValue
) {
companion object {
@JvmStatic
fun <KontextValue> withValue(key: Konig... | 5 | Kotlin | 0 | 1 | cdfe2ab61f32625d5300c9dcd3c17c82079cc6ec | 1,122 | konig-kontext | MIT License |
main.kt | fpeterek | 138,159,931 | false | {"Kotlin": 2465} | package swing
import java.awt.*
import java.util.*
import javax.swing.*
fun main(args: Array<String>) {
val win = Window()
}
class Window: JFrame("Swing test") {
private val rand = Random()
private val panel = JPanel()
init {
panel.layout = GridLayout(3, 1)
contentPane.add(panel)
... | 0 | Kotlin | 0 | 0 | b53c9be19a3b5cb842cb04999c751bf49a7eb352 | 2,465 | ColorPicker | MIT License |
library/src/commonMain/kotlin/dev/toastbits/ytmkt/endpoint/LikedArtistsEndpoint.kt | toasterofbread | 771,753,101 | false | {"Kotlin": 244150, "Nix": 2896} | package dev.toastbits.ytmkt.endpoint
import dev.toastbits.ytmkt.model.AuthenticatedApiEndpoint
import dev.toastbits.ytmkt.model.external.mediaitem.YtmArtist
abstract class LikedArtistsEndpoint: AuthenticatedApiEndpoint() {
/**
* Loads the authenticated user's liked artists.
*
* @return the list of... | 2 | Kotlin | 6 | 8 | 51aaf1c093afb4fff09db8dcd493463b4228d6c9 | 414 | ytm-kt | Apache License 2.0 |
app/src/main/java/com/felipersn/itaurepositorylist/presentation/repositorylist/RepositoryListActivity.kt | FelipeRsN | 227,366,438 | false | null | package com.felipersn.itaurepositorylist.presentation.repositorylist
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.felipersn.itaurepositorylist.R
import com.felipersn.itaurepositorylist.comm... | 0 | Kotlin | 0 | 0 | a498396ecb75518763e3fd0588b87f87e2b5aae6 | 4,756 | Itau_RepositoryListTest | MIT License |
app/src/main/java/com/waryozh/simplestepcounter/services/StepCounter.kt | Waryozh | 202,525,623 | false | null | package com.waryozh.simplestepcounter.services
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.hardware.Sensor
import android.hardware.SensorEvent
i... | 0 | Kotlin | 0 | 0 | 9c1d619d51c2fcdc5f041ea3a84a6ed36771a4d1 | 5,034 | simple-step-counter | MIT License |
okhttp/src/main/java/com/lightningkite/rx/okhttp/WebSocketInterface.kt | lightningkite | 400,655,884 | false | null | package com.lightningkite.rx.okhttp
import io.reactivex.rxjava3.core.Observable
import io.reactivex.rxjava3.core.Observer
import io.reactivex.rxjava3.disposables.Disposable
import io.reactivex.rxjava3.subjects.PublishSubject
import okhttp3.Response
import okhttp3.WebSocket
import okhttp3.WebSocketListener
import okio.... | 1 | Kotlin | 0 | 2 | 165fc0842698d1d6bbb7bc1e9f2ad73d2338edb4 | 826 | rxkotlin-plus | MIT License |
android/app/src/main/kotlin/com/hahafather007/flutterweather/utils/RxController.kt | hahafather007 | 154,427,119 | false | null | package com.hahafather007.flutterweather.utils
import io.reactivex.disposables.CompositeDisposable
/**
* Created by chenpengxiang on 2018/6/15
*/
interface RxController {
/**
* 在子类中这样写:
* override val rxComposite = CompositeDisposable()
*/
val rxComposite: CompositeDisposable
/**
*... | 1 | Dart | 18 | 64 | a5243eceb1b8a0722937352cf501c094af5a48a8 | 411 | flutter_weather | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/domain/staking/start/common/StakingStartedDetectionService.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7668451, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_staking_impl.domain.staking.start.common
import io.novafoundation.nova.common.data.memory.ComputationalCache
import io.novafoundation.nova.feature_account_api.domain.interfaces.AccountRepository
import io.novafoundation.nova.feature_staking_api.domain.dashboard.model.MultiStaking... | 11 | Kotlin | 6 | 9 | b39307cb56302ce7298582dbd03f33f6b2e2a807 | 3,595 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/e444er/cleanmovie/feature_home/data/dto/TvSeriesDto.kt | e444er | 597,756,971 | false | null | package com.e444er.cleanmovie.feature_home.data.dto
import com.e444er.cleanmovie.core.domain.models.TvSeries
import com.squareup.moshi.Json
data class TvSeriesDto(
val id: Int,
val popularity: Double,
val overview: String,
val name: String,
@Json(name = "original_name") val originalName: String,
... | 0 | Kotlin | 0 | 0 | 1c939de424b4eb254fd4258f4e56e4399bdfb3cd | 1,177 | KinoGoClean | Apache License 2.0 |
app/src/main/java/com/fecostudio/faceguard/ChooseStyleFragment.kt | Fewing | 344,456,083 | false | null | package com.fecostudio.faceguard
import android.app.Dialog
import android.content.Context
import android.graphics.Bitmap
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import com.google.mlkit.vision... | 0 | Kotlin | 1 | 1 | 0ff80b283598310241e0c79b1630d23f4f0a63be | 2,139 | FaceGuard | MIT License |
app/src/main/java/com/fecostudio/faceguard/ChooseStyleFragment.kt | Fewing | 344,456,083 | false | null | package com.fecostudio.faceguard
import android.app.Dialog
import android.content.Context
import android.graphics.Bitmap
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import com.google.mlkit.vision... | 0 | Kotlin | 1 | 1 | 0ff80b283598310241e0c79b1630d23f4f0a63be | 2,139 | FaceGuard | MIT License |
web/widgets/src/commonMain/kotlin/Arrangement.kt | JetBrains | 293,498,508 | false | null | package org.jetbrains.compose.common.foundation.layout
import org.jetbrains.compose.common.ui.ExperimentalComposeWebWidgetsApi
@ExperimentalComposeWebWidgetsApi
object Arrangement {
@ExperimentalComposeWebWidgetsApi
interface Horizontal
@ExperimentalComposeWebWidgetsApi
interface Vertical
val En... | 422 | Kotlin | 398 | 6,759 | 5598db273feb44e95c7706662dd4ba18984d62f9 | 461 | compose-jb | Apache License 2.0 |
app/src/androidTest/java/io/sinzak/android/ExampleInstrumentedTest.kt | SINZAK | 567,559,091 | false | {"Kotlin": 482864} | package io.sinzak.android
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import dagger.hilt.android.AndroidEntryPoint
import io.sinzak.android.ui.main.home.viewmodel.HomeViewModel
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.As... | 0 | Kotlin | 0 | 3 | 3467e8ee8afeb6b91b51f3a454f7010bc717c436 | 806 | sinzak-android | MIT License |
src/main/kotlin/no/nav/bidrag/stønad/konfig/KafkaRetryListener.kt | navikt | 360,850,317 | false | {"Kotlin": 217028, "Dockerfile": 293} | package no.nav.bidrag.stønad.konfig
import no.nav.bidrag.stønad.SECURE_LOGGER
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.springframework.kafka.listener.RetryListener
class KafkaRetryListener : RetryListener {
override fun failedDelivery(record: ConsumerRecord<*, *>, exception: Exception, d... | 1 | Kotlin | 0 | 0 | c6a6acdfd78c574d5411f207197d7317eecb675f | 889 | bidrag-stonad | MIT License |
lib/navigationsetup/src/main/java/se/gustavkarlsson/skylight/android/lib/navigationsetup/FragmentStateChanger.kt | wowselim | 288,922,417 | true | {"Kotlin": 316543} | package se.gustavkarlsson.skylight.android.lib.navigationsetup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.zhuinden.simplestack.StateChange
import com.zhuinden.simplestack.StateChanger
import se.gustavkarlsson.skylight.a... | 0 | null | 0 | 0 | 4da1731aca92d4e6d4b0e8128ca504fc0b3820b9 | 4,473 | skylight-android | MIT License |
app/src/main/kotlin/com/ceh9/portfolio/features/calculator/presentation/ui/advanced/AdvancedCalcFragment.kt | CeH9 | 202,865,791 | false | null | package com.ceh9.portfolio.features.calculator.presentation.ui.advanced
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import com.ceh9.portfolio.R
import com.ceh9.portfolio.common.domain.entities.ErrorModel
import co... | 0 | Kotlin | 0 | 0 | d4efdcffbee64a02cdb82d73d4f707f322964c40 | 3,023 | Portfolio | MIT License |
app/src/main/java/com/sleewell/sleewell/reveil/DesactivationActivity.kt | TitouanFi | 427,797,671 | true | {"Kotlin": 554160, "HTML": 385717, "Java": 102120, "CSS": 12842, "JavaScript": 7278} | package com.sleewell.sleewell.reveil
import android.app.PendingIntent
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.sleewell.sleewell.R
import com.sleewell.sleewell.reveil.data.model.Alarm
import kotlinx.android.synthetic.main.activity_desactivation_a... | 0 | Kotlin | 0 | 0 | e1980017127869159b0742b63273fa342ae0c9da | 2,532 | Sleewell-Android | MIT License |
app/src/main/java/org/simple/clinic/bp/history/BloodPressureHistoryScreenModel.kt | nikulsabhani | 235,044,934 | true | {"Kotlin": 2953763, "C": 680052, "Java": 8206, "Shell": 1878, "Makefile": 635} | package org.simple.clinic.bp.history
import org.simple.clinic.bp.BloodPressureMeasurement
import java.util.UUID
data class BloodPressureHistoryScreenModel(
val patientUuid: UUID,
val bloodPressures: List<BloodPressureMeasurement>?
) {
companion object {
fun create(patientUuid: UUID) = BloodPressureHist... | 0 | null | 0 | 0 | e37ae8f5a1c2ecf224bca4394eeefd62f1a497be | 591 | simple-android | MIT License |
src/test/kotlin/org/onliner/kafka/transforms/JsonDeserializeTest.kt | onliner | 682,631,795 | false | {"Kotlin": 34662} | package org.onliner.kafka.transforms
import com.fasterxml.jackson.databind.node.ObjectNode
import org.apache.kafka.connect.data.Schema
import org.apache.kafka.connect.data.SchemaBuilder
import org.apache.kafka.connect.data.Struct
import org.apache.kafka.connect.errors.DataException
import org.apache.kafka.connect.sour... | 0 | Kotlin | 0 | 0 | 2466d5266732b6880222602e069d5155a485568c | 6,381 | kafka-smt | MIT License |
lib/src/main/java/quevedo/soares/leandro/blemadeeasy/typealiases/TypeAliases.kt | LeandroSQ | 341,048,778 | false | {"Kotlin": 101459} | package quevedo.soares.leandro.blemadeeasy.typealiases
internal typealias EmptyCallback = () -> Unit
internal typealias Callback <T> = (T) -> Unit
internal typealias PermissionRequestCallback = (granted: Boolean) -> Unit
| 3 | Kotlin | 28 | 87 | dfe096d08cec36a6f17271633e0197b9ef213f52 | 224 | android-ble-made-easy | MIT License |
rabbit-hole/src/main/kotlin/com/yonatankarp/rabbit_hole/retry/QueueFactory.kt | yonatankarp | 349,646,173 | false | null | package com.yonatankarp.rabbit_hole.retry
import com.yonatankarp.rabbit_hole.exception.ExchangeException.Companion.invalidExchangeNameException
import com.yonatankarp.rabbit_hole.exception.QueueConfigException
import com.yonatankarp.rabbit_hole.exception.QueueConfigException.Companion.emptyConfigurationException
impor... | 4 | Kotlin | 2 | 0 | 2d0c1c1c05bfe09865e1f3c32db6294fb852d4cd | 2,864 | rabbit-hole | MIT License |
src/test/kotlin/adventofcode2019/Day13CarePackageTest.kt | n81ur3 | 484,801,748 | false | {"Kotlin": 467824, "Java": 275} | package adventofcode2019
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import utils.ResourceLoader
import java.io.File
class Day13CarePackageTest {
lateinit var file: File
@BeforeEach
fun setup() {
file = ResourceLoader.getFile(... | 0 | Kotlin | 0 | 0 | ff5e3af6081fb0f872ad35b0437620aedc628f4c | 1,085 | kotlin-coding-challenges | MIT License |
shared/src/commonMain/kotlin/com/kkk/kopilot/presentation/component/buttons/PrimaryButton.kt | k-kertykamary | 708,003,499 | false | {"Kotlin": 100618, "Swift": 644, "Shell": 228} | package com.kkk.kopilot.presentation.component.buttons
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.height
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
i... | 0 | Kotlin | 0 | 0 | 29c99211a40364ff7e40dd4ce08e5c32aedf4b30 | 1,549 | km2-ktofit | Apache License 2.0 |
im-access/src/main/kotlin/com/qingzhu/imaccess/service/AutoKickOutService.kt | linjinhai | 394,838,665 | true | {"Kotlin": 693654, "ANTLR": 281490, "Java": 48298, "Dockerfile": 375} | package com.qingzhu.imaccess.service
import com.qingzhu.common.domain.shared.msg.constant.CreatorType
import com.qingzhu.imaccess.domain.query.WebSocketRequest
import com.qingzhu.imaccess.socketio.constant.SocketEvent
import com.qingzhu.imaccess.socketio.sendWithCallback
import com.qingzhu.imaccess.util.Key
import com... | 0 | null | 0 | 0 | b4718991300746ccc627c735c79f478b3cfa0956 | 2,006 | contact-center | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/SquareBolt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,646 | icons | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/PeopleMoney.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.PeopleMoney: ImageVector
get() {
if (_peopleMoney != null) ... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 4,414 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/com/example/cekongkir/di/UseCaseModule.kt | holis12821 | 382,658,929 | false | null | package com.example.cekongkir.di
import com.example.cekongkir.domain.usecase.UseCaseCekOngkir
import org.koin.dsl.module
val useCaseModule = module {
single { UseCaseCekOngkir(get()) }
} | 0 | Kotlin | 0 | 1 | 9b0149b020a2c8155806bef4228f8f885d98610c | 192 | cekongkir-repo | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/ShuffleRounded.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/ShuffleRounded")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val ShuffleRounded: SvgIconComponent
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 210 | kotlin-wrappers | Apache License 2.0 |
compiler/src/main/kotlin/edu/cornell/cs/apl/viaduct/backends/cleartext/LocalProtocolFactory.kt | apl-cornell | 169,159,978 | false | null | package edu.cornell.cs.apl.viaduct.backends.cleartext
import edu.cornell.cs.apl.viaduct.selection.ProtocolFactory
import edu.cornell.cs.apl.viaduct.syntax.Protocol
import edu.cornell.cs.apl.viaduct.syntax.intermediate.DeclarationNode
import edu.cornell.cs.apl.viaduct.syntax.intermediate.LetNode
import edu.cornell.cs.a... | 20 | Kotlin | 4 | 11 | 2352c676305c595d235bc9024770fc622efb8aa2 | 819 | viaduct | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/CameraAdd.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.CameraAdd: ImageVector
get() {
if (_cameraAdd != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 3,441 | compose-fluent-ui | Apache License 2.0 |
postgresql-async/src/main/kotlin/com/github/mauricio/async/db/postgresql/parsers/MessageParsersRegistry.kt | KotlinPorts | 77,183,383 | false | null | /*
* Copyright 2013 <NAME>
*
* <NAME> licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 5 | Kotlin | 2 | 23 | 942ebfeee4601f9580916ed551fcfd2f8084d701 | 2,828 | pooled-client | Apache License 2.0 |
app/src/main/java/com/jerimkaura/contacts/receiver/AlarmReceiver.kt | jerimkaura | 520,493,196 | false | null | package com.jerimkaura.contacts.receiver
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.telephony.SmsManager
import androidx.annotation.RequiresApi
impor... | 0 | Kotlin | 0 | 0 | 1e590768743984a979a59f29e0775cbae4f1a028 | 2,464 | Contacts | The Unlicense |
app/src/main/java/com/jerimkaura/contacts/receiver/AlarmReceiver.kt | jerimkaura | 520,493,196 | false | null | package com.jerimkaura.contacts.receiver
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.telephony.SmsManager
import androidx.annotation.RequiresApi
impor... | 0 | Kotlin | 0 | 0 | 1e590768743984a979a59f29e0775cbae4f1a028 | 2,464 | Contacts | The Unlicense |
Barlom-Client-JS/src/main/kotlin/js/barlom/presentation/client/application/Application.kt | martin-nordberg | 82,682,055 | false | null | //
// (C) Copyright 2017-2018 <NAME>
// Apache 2.0 License
//
package js.barlom.presentation.client.application
import js.katydid.vdom.api.KatydidApplication
import js.katydid.vdom.api.KatydidApplicationCycle
import o.barlom.infrastructure.revisions.RevisionHistory
import o.barlom.presentation.client.ApplicationState... | 0 | Kotlin | 0 | 0 | 337b46f01f6eec6dfb3b86824c26f1c103e9d9a2 | 8,126 | ZZ-Barlom | Apache License 2.0 |
android/src/main/java/com/uvccamera/UVCCameraPackage.kt | and2long | 680,363,985 | false | null | package com.uvccamera
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class UVCCameraPackage : ReactPackage {
override fun createNativeModules(reactContext: ReactApplication... | 2 | Kotlin | 0 | 0 | 80ed87fb461f14e61d183a33281f3b2b54272f3d | 557 | react-native-uvc-camera | MIT License |
app/src/main/java/fr/smarquis/fcm/data/services/FcmService.kt | tkstone | 370,204,426 | false | null | /*
* Copyright 2017 <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 in writin... | 1 | Kotlin | 0 | 0 | 76276059ea9af82f68cca73294e4b89a486260ff | 2,550 | fcm_client | Apache License 2.0 |
src/test/kotlin/no/nav/tiltak/tiltaknotifikasjon/TiltakNotifikasjonApplicationTests.kt | navikt | 718,075,727 | false | {"Kotlin": 31691, "Dockerfile": 102} | package no.nav.tiltak.tiltaknotifikasjon
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.annotation.Profile
@SpringBootTest
@Profile("dockercompose")
class TiltakNotifikasjonApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 991a13a6ef9764608bb86800e087665851051e4e | 312 | tiltak-notifikasjon | MIT License |
app/src/main/java/com/example/doitnow/data/repository/MainRepository.kt | HimashRajapaksha | 840,378,745 | false | {"Kotlin": 26095} | package com.example.doitnow.data.repository
import com.example.doitnow.data.database.TaskDao
import com.example.doitnow.data.model.TaskEntity
import javax.inject.Inject
class MainRepository @Inject constructor(private val dao: TaskDao) {
fun allTasks() = dao.getAllTasks()
fun searchTasks(search:String) = da... | 0 | Kotlin | 0 | 1 | 71fabd65c3c6a7bd7243abd8d6bc87c3faa11430 | 473 | TaskBuddy | MIT License |
android-buddy-plugin/src/main/java/com/likethesalad/android/buddy/utils/FilesHolder.kt | LikeTheSalad | 289,290,234 | false | null | package com.likethesalad.android.buddy.utils
import java.io.File
data class FilesHolder(
val dirFiles: Set<File>,
val jarFiles: Set<File>,
val allFiles: Set<File>
) | 0 | Kotlin | 6 | 43 | 1089f89e1f8ad5fb9fdfb9195592cc8a7d04e299 | 178 | android-buddy | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.