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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
case/case-api/src/main/java/com/arda/case_api/domain/usecase/AssignRoleToCaseUseCase.kt | Arda-Gokalp-Batmaz-AGB | 810,753,476 | false | {"Kotlin": 290164} | package com.arda.case_api.domain.usecase
import com.arda.case_api.domain.model.Comment
import com.arda.core_api.util.Resource
interface AssignRoleToCaseUseCase {
suspend operator fun invoke(caseID : String, role : String): Resource<String>
} | 0 | Kotlin | 0 | 1 | 4a01d5bb569a00dbc8a3fe4cbd55814e72770af7 | 247 | CloudEngineeringProject | MIT License |
client/android/div/src/main/java/com/yandex/div/core/actions/DivActionTypedSetStoredValueHandler.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.core.actions
import com.yandex.div.core.expression.storedvalues.StoredValuesActionHandler
import com.yandex.div.core.view2.Div2View
import com.yandex.div.data.StoredValue
import com.yandex.div.evaluable.types.Color
import com.yandex.div.evaluable.types.Url
import com.yandex.div.json.expressions.... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 2,410 | divkit | Apache License 2.0 |
cinema-api/src/main/kotlin/io/github/ermadmi78/kobby/cinema/api/kobby/kotlin/entity/_Film.kt | ermadmi78 | 323,070,076 | false | null | package io.github.ermadmi78.kobby.cinema.api.kobby.kotlin.entity
import io.github.ermadmi78.kobby.cinema.api.kobby.kotlin.fetchFilm
/**
* Created on 21.05.2021
*
* @author <NAME> (<EMAIL>)
*/
suspend fun Film.refresh(__projection: (FilmProjection.() -> Unit)? = null): Film =
fetchFilm(id) {
__project... | 0 | null | 4 | 5 | 5fd5808e9d2b5c0912d0196116ab622ff580d35c | 573 | kobby-gradle-example | Apache License 2.0 |
Section 5/GenericsConstraints.kt | PacktPublishing | 187,770,226 | false | null | @file:Suppress("unused", "UNUSED_VARIABLE", "UNUSED_PARAMETER", "ConvertTryFinallyToUseCall")
import java.io.Closeable
fun noRawTypes() {
//no Raw Types in Kotlin
val list: List = ArrayList()
}
fun wildcards(anyList: List<*>) {
if (anyList.isNotEmpty()) {
val firstItem = anyList[0]
}
}
fun ... | 1 | null | 2 | 3 | f6dbb0bfb28c6072decd400d169a35d65fe31530 | 564 | Mastering-Kotlin-for-Android-Development | MIT License |
sample/src/main/java/com/sensorfields/horizon/android/license/view/LicenseViewFragment.kt | sensorfields | 224,729,690 | false | null | package com.sensorfields.horizon.android.license.view
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.observe
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
impor... | 0 | Kotlin | 0 | 0 | 86b26095392d8b4fad36e654dceda91584130e61 | 1,563 | horizon | Apache License 2.0 |
compiler/src/main/java/io/sellmair/kompass/compiler/deserialize/DeserializeMethodBuilderImpl.kt | MaTriXy | 119,345,612 | false | null | package io.sellmair.kompass.compiler.deserialize
import com.squareup.javapoet.ClassName
import com.squareup.javapoet.MethodSpec
import com.squareup.javapoet.TypeName
import com.squareup.javapoet.TypeSpec
import io.sellmair.kompass.compiler.attribute.AttributeSerializeLogic
import io.sellmair.kompass.compiler.exception... | 1 | null | 1 | 1 | 7db0f6eb6adbdd9a13af2f28ca3fcd3f98e969a9 | 2,436 | kompass | Apache License 2.0 |
src/main/java/com/cumulocity/client/model/C8yAgent.kt | SoftwareAG | 525,378,320 | false | null | // Copyright (c) 2014-2022 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 2 | null | 1 | 3 | 4c09a39aced1c5fb0677eb2a099a2dcda466f4d4 | 789 | cumulocity-clients-kotlin | Apache License 2.0 |
app/src/main/java/qwqeqrqwqeqr/android/room/database/di/DatabaseModule.kt | qwqeqrqwqeqr | 775,294,342 | false | {"Kotlin": 30769} | package qwqeqrqwqeqr.android.room.database.di
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import qwqeqrqwqeqr.android.room.data... | 0 | Kotlin | 0 | 0 | f27e718eb35c05e431630f3e37608e321bf97356 | 717 | android-room-sample | Apache License 2.0 |
annotation/src/test/kotlin/com/typedpath/unittestof/testutil/TestVerify.kt | typedpath | 565,979,433 | false | null | package com.typedpath.unittestof.testutil
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class TestVerify {
private val verifier = Verifier()
@Test
fun testExactUnorderedRaw() {
val testCalls = listOf(
CallCentre.Call("proxy1", "call2", arrayOf("he... | 0 | Kotlin | 0 | 0 | 47500ee544412bf72a45390853fea18b48a7cbb7 | 4,016 | unittestof | Apache License 2.0 |
app/src/main/java/com/pedrofr/sportsfinder/ui/history/BetHistoryListAdapter.kt | PedroFrr | 305,659,844 | false | null | package com.pedrofr.sportsfinder.ui.history
import android.annotation.SuppressLint
import android.opengl.Visibility
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recy... | 0 | Kotlin | 0 | 0 | ce7016d2cd87a3bbf2503ca8cb35df7ec3666dc2 | 3,377 | Sports-Discovery | Apache License 2.0 |
graph/graph-application/src/main/kotlin/eu/tib/orkg/prototype/community/domain/model/ResearchField.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2433821, "Cypher": 215872, "Python": 4880, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package eu.tib.orkg.prototype.community.domain.model
data class ResearchField(
var id: String?,
var label: String?
)
| 0 | Kotlin | 2 | 5 | 13cd2ba723dbd061e0dad8e9a9aa02378dd9166d | 126 | orkg-backend | MIT License |
app/src/main/java/com/example/quizzed/question/OptionAdapter.kt | gaddarkumar7447 | 594,030,255 | false | null | package com.example.quizzed.question
import android.annotation.SuppressLint
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example... | 0 | Kotlin | 0 | 1 | 7eb892dfa8aeb3e48033496527903b10a199b162 | 1,630 | Quizzed | MIT License |
codebase/android/core/common/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/common/util/Tuples.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1662499} | package com.makeappssimple.abhimanyu.financemanager.android.core.common.util
import java.io.Serializable
/**
* Represents a collection of four values.
*
* See Also: [Pair] and [Triple].
*/
public data class Quadruple<out A, out B, out C, out D>(
val first: A,
val second: B,
val third: C,
val fourt... | 11 | Kotlin | 0 | 2 | c16afd210b40ec527483daaa37c78bcc2c8f14b0 | 1,865 | finance-manager | Apache License 2.0 |
domain/src/main/java/com/lighthouse/domain/repository/BoardRepository.kt | soma-lighthouse | 658,620,687 | false | null | package com.lighthouse.domain.repository
import com.lighthouse.domain.constriant.Resource
import com.lighthouse.domain.entity.request.UploadQuestionVO
import com.lighthouse.domain.entity.response.vo.BoardVO
import kotlinx.coroutines.flow.Flow
interface BoardRepository {
fun getBoardQuestions(category: Int, order:... | 3 | Kotlin | 0 | 0 | be614af85c7e21bd36131faf8bfab4bcebdad108 | 543 | FE-lingo-swap | Apache License 2.0 |
src/main/kotlin/hu/deepdata/indicatortoolbox/model/view/IndicatorSearchResult.kt | deepdata-ltd | 125,861,681 | false | {"CSS": 137383, "Kotlin": 126503, "HTML": 38300, "JavaScript": 5820} | /*
* Copyright 2018 DeepData Ltd.
*
* 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 applicab... | 1 | CSS | 1 | 0 | 1ed76d4359e2c30ab4435d5fbfc31e283e417082 | 1,149 | indicator-toolbox | Apache License 2.0 |
feature/location-manager/src/main/java/com/github/mukiva/feature/locationmanager/ui/LocationManagerRootFragment.kt | MUKIVA | 715,584,869 | false | {"Kotlin": 323153} | package com.github.mukiva.feature.locationmanager.ui
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.github.mukiva.core.ui.component.component
import com.github.mukiva.core.ui.viewBindings
import com.github.mukiva.feature.locati... | 0 | Kotlin | 0 | 5 | c616fcc30cbea2fa079fac76c4eb16ec6922705d | 2,626 | open-weather | Apache License 2.0 |
buildSrc/src/test/kotlin/com/example/model/User.kt | hixio-mh | 281,064,117 | true | {"Kotlin": 1797271, "Java": 213999, "C": 74755, "C++": 15178, "CMake": 1606} | package com.example.model
import com.google.gson.annotations.SerializedName
import kotlin.String
internal data class User(
@SerializedName("username")
val username: String,
@SerializedName("host")
val host: String,
@SerializedName("firstname")
val firstname: String? = null,
@SerializedName... | 4 | null | 0 | 0 | 3b3bfab22b26067330186c4637e80d19adf334c1 | 585 | dd-sdk-android | Apache License 2.0 |
app/src/main/kotlin/com/yajatkumar/newsapp/fragment/BaseCategoryFragment.kt | YAJATapps | 418,653,307 | false | {"Kotlin": 76190} | package com.yajatkumar.newsapp.fragment
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.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.w... | 0 | Kotlin | 0 | 2 | a1b876024c4a6851f0e3280f3d48a45bcd5ea58f | 2,452 | NewsApp | Apache License 2.0 |
features/home/src/main/kotlin/app/dapk/st/home/HomeViewModel.kt | ShadowJonathan | 471,471,233 | true | {"Kotlin": 586327, "Java": 13756, "Shell": 763, "Prolog": 113} | package app.dapk.st.home
import androidx.lifecycle.viewModelScope
import app.dapk.st.directory.DirectoryViewModel
import app.dapk.st.home.HomeScreenState.*
import app.dapk.st.login.LoginViewModel
import app.dapk.st.matrix.common.CredentialsStore
import app.dapk.st.matrix.common.isSignedIn
import app.dapk.st.matrix.roo... | 0 | null | 0 | 0 | 2ab2253e7a1335f8c25b5e69be0dc1ec9c254958 | 1,675 | small-talk | Apache License 2.0 |
src/main/java/com/github/xtermi2/kotlin/playground/17ForLoop.kt | xtermi2 | 183,295,649 | false | {"Batchfile": 1, "Shell": 1, "Maven POM": 1, "Text": 2, "Ignore List": 1, "EditorConfig": 1, "Markdown": 1, "INI": 1, "Java": 3, "Kotlin": 31, "YAML": 1} | package com.github.xtermi2.kotlin.playground
/**
* @author <NAME>
*
* - while and do while loops are the same as in java!
* - no classic for loop like in java exists in kotlin: for (int i = 0; i < 10; i++)
*/
fun main() {
// range operator
val range = 1..5 // 1 and 5 are inclusive
val charRange = 'a'.... | 1 | null | 1 | 1 | 6e2e9d3bcc01ab1962182458b93c230bbf6af3c9 | 1,939 | kotlin-playground | Apache License 2.0 |
PassiveEvents/app/src/main/java/com/example/passiveevents/MainActivity.kt | garanj | 385,553,739 | true | {"Kotlin": 101094} | /*
* 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 | null | 0 | 0 | f32c8956daa3f9e2c9bce6cf45102a8ae34bc22e | 4,955 | health-samples | Apache License 2.0 |
app/src/main/java/com/kusamaru/standroid/fragment/LoginFragment.kt | kusamaru | 442,642,043 | false | {"Kotlin": 1954774} | package com.kusamaru.standroid.fragment
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.content.edit
import androidx.fragment.app.Fragment
import androidx.lifecyc... | 0 | Kotlin | 0 | 3 | 5c58707eecc7a994fbd4bc900b22106697bf3806 | 2,714 | StanDroid | Apache License 2.0 |
data/src/main/java/zero/friends/data/entity/RoundEntity.kt | ZeroFriends | 412,748,430 | false | null | package zero.friends.data.entity
import androidx.room.*
import androidx.room.ForeignKey.CASCADE
import zero.friends.domain.model.Round
@Entity(
foreignKeys = [
ForeignKey(
entity = GameEntity::class,
parentColumns = ["id"],
childColumns = ["gameId"],
onDelet... | 0 | Kotlin | 1 | 13 | 88ee6f8a55d832ca419d03eee2a9a3f87f733e06 | 789 | GoStopCalculator | Apache License 2.0 |
app/src/main/java/com/erkindilekci/borutobook/data/data_source/remote/dto/HeroDto.kt | erkindilekci | 649,616,697 | false | null | package com.erkindilekci.borutobook.data.data_source.remote.dto
import com.erkindilekci.borutobook.domain.model.Hero
import kotlinx.serialization.Serializable
@Serializable
data class HeroDto(
val id: Int,
val name: String,
val image: String,
val about: String,
val rating: Double,
val power: I... | 0 | Kotlin | 0 | 0 | e1ed8921f65747449cf23fc02aeaddef0706c838 | 720 | BorutoBook | Apache License 2.0 |
src/main/kotlin/me/senseiwells/replay/player/predicates/NonePredicate.kt | senseiwells | 643,690,788 | false | {"Kotlin": 41791, "Java": 18054} | package me.senseiwells.replay.player.predicates
import com.google.gson.JsonObject
import net.minecraft.server.level.ServerPlayer
class NonePredicate: ReplayPlayerPredicate(id) {
override fun shouldRecord(player: ServerPlayer): Boolean {
return false
}
companion object: PredicateFactory {
... | 1 | Kotlin | 1 | 5 | a3ba346616e91475dd682ab4ef6c8885f6aabed4 | 469 | ServerReplay | MIT License |
src/main/java/partialview/protocols/shuffle/Shuffle.kt | Costa-Silva | 115,575,392 | false | {"Kotlin": 72009} | package partialview.protocols.shuffle
import akka.actor.ActorRef
import akkanetwork.AkkaUtils
import partialview.PVHelpers
import partialview.PVHelpers.Companion.PASSIVE_VIEW_MAX_SIZE
import partialview.PVMessagesCounter
import partialview.ViewOperations
import partialview.protocols.shuffle.messages.ShuffleMessage
imp... | 0 | Kotlin | 0 | 3 | cf8b1cc1e0aa5e4a9f485ea24af28d789ab689a7 | 4,593 | hyparview | Apache License 2.0 |
core/domain/src/main/kotlin/org/michaelbel/movies/domain/ktx/AccountKtx.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.domain.ktx
import org.michaelbel.movies.domain.data.entity.AccountDb
import org.michaelbel.movies.entities.GRAVATAR_URL
import org.michaelbel.movies.entities.image.formatProfileImage
import org.michaelbel.movies.network.model.Account
import java.util.Locale
internal val Account.mapToAcco... | 4 | Kotlin | 24 | 81 | 00b1cd807a4e7c894b0792ebb668e4cbcedc5605 | 782 | movies | Apache License 2.0 |
image-loader-singleton/src/commonMain/kotlin/com/seiko/imageloader/LocalImageLoader.kt | qdsfdhvh | 502,954,331 | false | null | package com.seiko.imageloader
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidedValue
import androidx.compose.runtime.ReadOnlyComposable
import com.seiko.imageloader.cache.memory.MemoryCache
import com.seiko.imageloader.component.setupDefaultComponents
import com.seiko.imageloader.inte... | 22 | null | 14 | 347 | 5a8b9ff37e0b2af41012fd1ab523424a1345a220 | 2,166 | compose-imageloader | MIT License |
src/main/kotlin/com/example/delivery/service/impl/DeliveryServiceImpl.kt | pooyadg | 770,367,145 | false | {"Kotlin": 46483, "Dockerfile": 561} | package com.example.delivery.service.impl
import com.example.delivery.controller.dto.DeliveryDto
import com.example.delivery.controller.dto.DeliveryPatchDto
import com.example.delivery.domain.DeliveryEntity
import com.example.delivery.domain.DeliveryStatus
import com.example.delivery.exception.*
import com.example.del... | 0 | Kotlin | 0 | 0 | 721086602c90f1f9a12e255e3bda28641c8b8706 | 3,445 | delivery | Apache License 2.0 |
app/src/main/java/org/wikipedia/feed/news/RecyclerViewIndicatorDotDecor.kt | greatfire | 460,298,221 | false | null | package org.wikipedia.feed.news
import android.content.res.Resources
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.view.View
import androidx.annotation.ColorInt
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLay... | 2 | null | 4 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 3,762 | apps-android-wikipedia-envoy | Apache License 2.0 |
app/src/main/java/com/mkim14/tippy/MainActivity.kt | puzzlecollector | 303,192,946 | false | null | package com.mkim14.tippy
import android.animation.ArgbEvaluator
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.widget.SeekBar
import androidx.core.content.ContextCompat
import kotlinx.android.s... | 0 | Kotlin | 0 | 0 | 8da180c679441a29ddcc540906b6e7a0fd3af114 | 3,172 | Tippy | Apache License 2.0 |
app/src/main/java/com/exmaple/breakingbadcharacters/characterDetails/CharacterDetailsActivity.kt | haladin | 224,893,167 | false | null | package com.exmaple.breakingbadcharacters.characterDetails
import android.os.Bundle
import android.view.KeyEvent
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.exmaple.breakingbadcharacters.R
import com.exmaple.breakingbadcharacters.data.Character
import com.exma... | 0 | Kotlin | 0 | 0 | 0a80233617b7e50463f76eaaa1080d1523a45103 | 1,251 | BreakingBadApp | Apache License 2.0 |
src/main/kotlin/com/example/paul/blog/config/BlogConfiguration.kt | pauldragoslav | 214,669,673 | false | null | package com.example.paul.blog.config
import com.example.paul.blog.models.Article
import com.example.paul.blog.models.User
import com.example.paul.blog.repositories.ArticleRepository
import com.example.paul.blog.repositories.UserRepository
import org.springframework.boot.ApplicationRunner
import org.springframework.con... | 0 | Kotlin | 0 | 0 | 5f149fb39e71b62148109dafeaf9364debee6592 | 1,836 | Kotlin-Spring-MVC | MIT License |
app/src/androidTest/kotlin/com/sys1yagi/goatreader/models/CategoryTest.kt | sys1yagi | 21,494,825 | false | null | package com.sys1yagi.goatreader.models
import com.sys1yagi.goatreader.testtools.DatabaseTestCase
import com.activeandroid.ActiveAndroid
import com.activeandroid.query.Select
import kotlin.test.*
public class CategoryTest() : DatabaseTestCase() {
public fun testCreateItem() {
val category = Category.create... | 6 | Kotlin | 0 | 7 | 6fe1af5a71ebd8c9c998e824392a6a33e470f84f | 1,007 | goat-reader-2-android-prototype | Apache License 2.0 |
example/android/app/src/main/kotlin/com/kakao/sdk/flutter/example/KakaoLinkActivity.kt | jeiea | 350,543,406 | true | {"Dart": 280159, "Kotlin": 36587, "Swift": 15555, "Shell": 4178, "Ruby": 2254, "Python": 649, "Objective-C": 419, "HTML": 198} | package com.kakao.sdk.flutter.example
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
/**
* 카카오링크, 메시지 또는 카카오스토리에서 앱 링크 클릭 시 실행되는 Activity 예제
*
* AndroidManifest.xml 에 intent-filter 설정이 필요하므로 샘플앱의 설정을 참고합니다.
... | 0 | Dart | 2 | 0 | 6592656725e375508d6e4fdcf35e986acf8b0408 | 1,257 | kakao_flutter_sdk | Apache License 2.0 |
android/src/main/kotlin/com/seyedjafariy/shuttle/ui/main/LaunchLinksDialog.kt | seyedjafariy | 520,298,973 | false | {"Kotlin": 101839} | package com.seyedjafariy.shuttle.ui.main
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.AlertDialog
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui... | 0 | Kotlin | 0 | 7 | 65a91dbc992368e0552fde97c7975cdd5bed3b92 | 1,530 | Shuttle | Apache License 2.0 |
src/main/kotlin/tech/kekulta/domain/models/users/User.kt | kekulta | 832,402,126 | false | {"Kotlin": 75123, "Dockerfile": 361} | package tech.kekulta.domain.models.users
import kotlinx.serialization.Serializable
@Serializable
data class User(val id: UserId, val number: PhoneNumber) | 0 | Kotlin | 0 | 0 | 0b84d2c4d4a3495a276bd73700eef09523a98c96 | 155 | events-app-back | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/mechanics/ladders/ladders.plugin.kts | grian32 | 420,653,114 | false | {"Kotlin": 3265428, "Dockerfile": 1354} | package gg.rsmod.plugins.content.mechanics.ladders
loadService(LadderService())
onWorldInit {
world.getService(LadderService::class.java)?.let { service ->
service.gates.climbUp.forEach { ladder ->
onObjOption(ladder.id, "climb-up") {
ladder.locations.forEach { loc ->
... | 0 | Kotlin | 0 | 1 | 98728b086968278a0d05e82d784c1e97f1322b27 | 1,244 | grianmod | Apache License 2.0 |
declarations/src/main/kotlin/management/management.kt | cypressious | 112,238,581 | false | null | package management
import kotlin.js.Promise
import manifest.ExtensionID
import manifest.HttpURL
import webextensions.Event
/**
* Information about an icon belonging to an extension.
* @param size A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and ... | 9 | Kotlin | 7 | 30 | f674e77a11070cb94056131714b93ae4139cb0b4 | 5,472 | kotlin-webextensions-declarations | Apache License 2.0 |
src/main/kotlin/com/team4099/robot2023/util/Velocity2d.kt | team4099 | 560,942,123 | false | null | package com.team4099.robot2023.util
import edu.wpi.first.math.geometry.Translation2d
import org.team4099.lib.units.LinearVelocity
import org.team4099.lib.units.base.meters
import org.team4099.lib.units.derived.Angle
import org.team4099.lib.units.derived.angle
import org.team4099.lib.units.derived.cos
import org.team40... | 7 | Kotlin | 2 | 9 | d114a9a0cd8de83d438df424b74adf7844050354 | 1,997 | ChargedUp-2023 | MIT License |
node-kotlin/src/jsMain/kotlin/web/streams/ReadableWritablePair.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package web.streams
sealed external interface ReadableWritablePair<R, W> {
var readable: ReadableStream<R>
/**
* Provides a convenient, chainable way of piping this readable stream
* through a transform stream (or any other { writable, readable }
* p... | 0 | Kotlin | 6 | 22 | 00321b7e81352bc3d7243dd6631e1fb178f528c8 | 633 | types-kotlin | Apache License 2.0 |
vire-api/src/test/kotlin/net/voxelpi/vire/api/simulation/network/NetworkStateTest.kt | VoxelPi | 700,036,011 | false | {"Kotlin": 115879} | package net.voxelpi.vire.api.simulation.network
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class NetworkStateTest {
@Test
fun notNone() {
assertEquals(NetworkState.value(true, 1), !NetworkState.None)
}
@Test
fun notValue() {
val state =... | 0 | Kotlin | 0 | 0 | 6d8589e0adfee4ad155475a4d5ffba32ea0fa666 | 1,676 | Vire | MIT License |
src/test/kotlin/github/etx/neo4j/NeoQueryTest.kt | erictsangx | 79,791,206 | false | null | package github.etx.neo4j
import github.etx.test.Rand
import helper.Gender
import helper.Person
import helper.person
import mu.KLogging
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.neo4j.driver.v1.AuthTokens
import org.neo4j.driver.v1.Config
import org.neo4j.driver.v1.Driver
impo... | 1 | null | 7 | 18 | a13847c73ebf5aea0c1d4dfc30d24a55dccde475 | 13,705 | kotlin-neo4j | Apache License 2.0 |
kraftverk-core/src/main/kotlin/io/kraftverk/core/env/ValueSource.kt | jogro | 211,348,610 | false | null | /*
* Copyright 2019 <NAME>
* Licensed under MIT: https://github.com/jogro/kraftverk/blob/master/LICENSE
*/
package io.kraftverk.core.env
import io.kraftverk.core.internal.logging.createLogger
import java.util.concurrent.ConcurrentHashMap
class ValueSource {
internal val map = ConcurrentHashMap<String, Any>()
... | 0 | Kotlin | 0 | 2 | 66a2cb9254f2fe83a845e384c75e7a87a100b7a5 | 2,914 | kraftverk | MIT License |
app/src/main/kotlin/net/ketc/numeri/util/rx/Schedulers.kt | KetcKtsD | 75,272,615 | false | null | package net.ketc.numeri.util.rx
import io.reactivex.schedulers.Schedulers
import java.util.concurrent.Executors
object MySchedulers {
val stream = Schedulers.from(Executors.newFixedThreadPool(1))
val io = Schedulers.from(Executors.newFixedThreadPool(1))
val imageLoad = Schedulers.from(Executors.newFixedTh... | 0 | Kotlin | 0 | 0 | ea3b007ab7875ea6d1bc1c5c1cec871eee2685a5 | 470 | numeri3 | MIT License |
src/main/kotlin/dev/shtanko/algorithms/learn/bit/Or.kt | ashtanko | 203,993,092 | false | {"Kotlin": 6521832, "Shell": 1168, "Makefile": 961} | /*
* Copyright 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 in w... | 4 | Kotlin | 0 | 19 | 5bfa4b0dd30d515117d112b5d061e9235e444d13 | 783 | kotlab | Apache License 2.0 |
src/main/kotlin/Server.kt | suransea | 359,669,311 | false | null | package top.suransea
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.gson.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import org.jetbrains.exposed.sql.Database
import org.mariadb.jdbc.MariaDbDataSource
import top.suransea.route.all
import java.text.Date... | 0 | Kotlin | 0 | 0 | f0af455699658d4ceed366820b9f92ce48b2e365 | 818 | blog-server-kotlin | Apache License 2.0 |
pleo-antaeus-app/src/main/kotlin/io/pleo/antaeus/app/utils.kt | nicholaspoz | 205,702,584 | true | {"Kotlin": 52274, "Shell": 1616, "Dockerfile": 632} | package io.pleo.antaeus.app
import io.pleo.antaeus.data.AntaeusDal
import io.pleo.antaeus.models.Currency
import kotlin.random.Random
// This will create all schemas and setup initial data
internal fun setupInitialData(dal: AntaeusDal) {
(1..1000).mapNotNull {
dal.createCustomer(
currency = Cu... | 0 | Kotlin | 0 | 0 | 2545d7131415ee71ba03bb4481b127a950211488 | 397 | antaeus | Creative Commons Zero v1.0 Universal |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/vault/collection/CollectionRoute.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.feature.home.vault.collection
import androidx.compose.runtime.Composable
import com.artemchep.keyguard.feature.navigation.DialogRoute
data class CollectionRoute(
val args: Args,
) : DialogRoute {
data class Args(
val collectionId: String,
)
@Composable
overr... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 409 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
lib_main/src/main/java/com/example/lib_main/ui/adapter/PoetryAdapter.kt | TReturn | 399,864,608 | false | null | package com.example.lib_main.ui.adapter
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.utils.ui.TextFontUtils
import com.example.lib_main.R
/**
* @CreateDate : 2023/3/30 17:42
* @Author :... | 0 | Kotlin | 1 | 1 | 41099aa4de890edb7afdd0327080a576e5386862 | 682 | BaseApp | Apache License 2.0 |
spdx-utils/src/test/kotlin/SpdxExpressionLexerTest.kt | andreas-bauer | 165,835,940 | true | {"Kotlin": 1208419, "JavaScript": 223092, "CSS": 17418, "HTML": 12814, "Python": 8342, "Ruby": 3694, "Dockerfile": 3206, "ANTLR": 1861, "Shell": 744, "Go": 164} | /*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... | 0 | Kotlin | 0 | 1 | b0b8117a5eccc8c4c2833a1089c91c7eb0c2dcc9 | 3,515 | oss-review-toolkit | Apache License 2.0 |
soundboard-template/src/main/java/ventum/zephyr/soundboardtemplate/model/SoundboardCategory.kt | wblxyxolbkhv | 171,863,968 | false | {"Kotlin": 39079, "Java": 1132} | package ventum.zephyr.soundboardtemplate.model
class SoundboardCategory(val name: String, val soundItems: SoundItems, val adsId: String) | 1 | Kotlin | 2 | 1 | c1dffe12c7d96d6dfeb3d74a7cb5559793128fa9 | 137 | Soundboard-Template | Apache License 2.0 |
src/main/kotlin/com/fraktalio/restaurant/web/rsocket/configuration/RestaurantRSocketSecurityConfiguration.kt | depesr | 333,029,762 | true | {"Kotlin": 85210, "HTML": 30320, "CSS": 31} | package com.fraktalio.restaurant.web.rsocket.configuration
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.messaging.rsocket.RSocketStrategies
import org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler
... | 0 | null | 0 | 0 | e01f9ed041f5bf6250ef4762798dd4397807d8cc | 1,678 | restaurant-demo | Apache License 2.0 |
app/src/androidTest/java/com/ealva/toque/service/audio/LocalAudioQueueTest.kt | pandasys | 311,981,753 | false | null | /*
* Copyright 2021 Eric A. Snell
*
* 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 t... | 0 | Kotlin | 0 | 0 | f64ca9023f2384d322d924ceeb0cf3c8c5a1809d | 7,240 | toque | Apache License 2.0 |
src/test/kotlin/br/com/zupacademy/model/ChavePixTest.kt | sergio-ads | 388,237,743 | true | {"Kotlin": 120453, "Smarty": 2172, "Dockerfile": 198} | package br.com.zupacademy.model
import br.com.zupacademy.model.enums.TipoDeChave
import br.com.zupacademy.model.enums.TipoDeConta
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import java.util.*
internal class ChavePixTest {
companion object {
val TIPOS_DE_CHAVES_EXCETO_ALEA... | 0 | Kotlin | 0 | 0 | e37b39e0c7ca5821cb9c10d00ef3ca55f39f4db4 | 2,390 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/app/eluvio/wallet/screens/purchaseprompt/PurchasePrompt.kt | eluv-io | 719,801,077 | false | {"Kotlin": 814244, "Java": 29738} | package app.eluvio.wallet.screens.purchaseprompt
import android.graphics.Bitmap
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Intrins... | 8 | Kotlin | 1 | 0 | 3bd0cc96ff1d75f870d5ee94f3d3a6a5f491e243 | 11,564 | elv-wallet-android | MIT License |
kotlin/src/src/main/java/com/techlabcamp/neuronet/manager/adapter/CertStudentRvAdapter.kt | dimske-sys | 610,048,630 | false | null | package com.techlabcamp.neuronet.manager.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.techlabcamp.neuronet.databinding.ItemStudentCertBinding
import com.techlabcamp.neuronet.manager.Utils
import com.... | 0 | Kotlin | 0 | 0 | 0f4cc0534a3c77a8edfb0fa043fb2ed7e2707250 | 1,407 | neuronet | Apache License 2.0 |
FFRv2/app/src/main/java/com/devingotaswitch/utils/ParsingUtils.kt | jbailey2010 | 91,362,935 | false | {"Kotlin": 694986} | package com.devingotaswitch.utils
import android.util.Log
import com.amazonaws.util.StringUtils
import com.devingotaswitch.rankings.domain.Player
import java.util.*
import kotlin.collections.HashMap
object ParsingUtils {
private var playerFixes: MutableMap<String, String> = HashMap()
private var teamFixes: Mu... | 10 | Kotlin | 0 | 0 | ba3fb10b541e67129c7b3ea81d90d64a7ab9694a | 19,955 | FFRv2 | Apache License 2.0 |
src/main/kotlin/com/example/coreweb/domains/address/repositories/AddressRepo.kt | teambankrupt | 292,072,114 | false | null | package com.example.coreweb.domains.address.repositories
import com.example.coreweb.domains.address.models.entities.Address
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.reposi... | 2 | Kotlin | 0 | 2 | 6b1d548076bf72d2445edf314c4cc81d3a2959c9 | 822 | coreweb | Apache License 2.0 |
platforms/intellij/skate/src/test/kotlin/foundry/intellij/skate/codeowners/CodeOwnerFileFetcherImplTest.kt | slackhq | 481,715,971 | false | null | /*
* Copyright (C) 2024 Slack Technologies, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 26 | null | 20 | 430 | 8228e72ef7f76a283df544793a8b9f68adceda46 | 1,549 | foundry | Apache License 2.0 |
src/test/kotlin/com/kreait/bots/agile/domain/common/service/ConversationServiceTest.kt | kreait | 316,613,408 | false | null | package com.kreait.bots.agile.domain.common.service
import com.kreait.bots.agile.UnitTest
import com.kreait.slack.api.contract.jackson.ChannelType
import com.kreait.slack.api.contract.jackson.common.types.Conversation
import com.kreait.slack.api.contract.jackson.common.types.Member
import com.kreait.slack.api.contract... | 3 | Kotlin | 2 | 8 | 0b56e5b82eda60ed76f31dbdf8f57719b2d30acd | 2,691 | olaph-slack-app | MIT License |
src/main/kotlin/org/authapp/authfeature/spi/UserCredentials.kt | koldn | 279,396,209 | false | null | package org.authapp.authfeature.spi
interface UserCredentials | 0 | Kotlin | 0 | 0 | 2437e37e2ce0409f31c5c49bccc1eb22665050fe | 62 | auth-app | Apache License 2.0 |
src/main/kotlin/team/msg/hiv2/domain/user/application/usecase/QueryAllStudentsUseCase.kt | GSM-MSG | 634,687,373 | false | {"Kotlin": 206251, "Dockerfile": 177} | package team.msg.hiv2.domain.user.application.usecase
import team.msg.hiv2.domain.user.application.service.UserService
import team.msg.hiv2.domain.user.domain.constant.UserRole
import team.msg.hiv2.domain.user.presentation.data.response.AllStudentsResponse
import team.msg.hiv2.domain.user.presentation.data.response.St... | 1 | Kotlin | 0 | 9 | b1a868356669f99fcf527c2e87c1d955527a4c61 | 755 | Hi-v2-BackEnd | MIT License |
ok-workout-be-logics/src/main/kotlin/ru/otus/otuskotlin/workout/backend/logics/workers/ChooseDb.kt | otuskotlin | 377,713,426 | false | null | package ru.otus.otuskotlin.workout.backend.logics.workers
import handlers.CorChainDsl
import handlers.worker
import ru.otus.otuskotlin.workout.backend.common.context.BeContext
import ru.otus.otuskotlin.workout.backend.common.models.MpStubCases
import ru.otus.otuskotlin.workout.backend.common.models.MpUserGroups
import... | 0 | Kotlin | 1 | 0 | 7f9445aacad7e524a74b3a0cab0e853e845faba7 | 1,097 | ok-202105-workout-kkh | MIT License |
app/src/androidTest/java/com/simplemobiletools/calculator/AboutTest.kt | rachael-waddington | 217,506,564 | false | null | package com.simplemobiletools.calculator
import android.support.test.rule.ActivityTestRule
import com.simplemobiletools.calculator.activities.MainActivity
import com.simplemobiletools.calculator.pages.AboutPage
import com.simplemobiletools.calculator.pages.ActionBar
import org.junit.After
import org.junit.Rule
import ... | 0 | Kotlin | 0 | 0 | 3f72ec72ee9687157a4f027341aa89a060e750d9 | 688 | automation-test-calculator | Apache License 2.0 |
mordant/src/commonMain/kotlin/com/github/ajalt/mordant/widgets/ProgressLayout.kt | ajalt | 104,693,921 | false | {"Kotlin": 702013, "Python": 9412, "Shell": 927} | package com.github.ajalt.mordant.widgets
import com.github.ajalt.mordant.internal.DEFAULT_STYLE
import com.github.ajalt.mordant.rendering.TextAlign
import com.github.ajalt.mordant.rendering.TextStyle
import com.github.ajalt.mordant.rendering.Widget
import com.github.ajalt.mordant.table.ColumnWidth
import com.github.aj... | 16 | Kotlin | 32 | 860 | dd4816be7cd4c4e1708f0170321cdc2e334b1e60 | 5,401 | mordant | Apache License 2.0 |
main/java/com/example/chatbook/SigninActivity.kt | shaanitis | 402,146,013 | false | null | package com.example.chatbook
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.util.Patterns
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.ProgressBar
import android.... | 0 | Kotlin | 0 | 0 | 35ad7024bf1e0ac12d18cd2fcf8daeb623644153 | 3,084 | Chatbook | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/refactoring/moveTopLevel/kotlin/createDirInProjectPkgDirStructure/before/a/main.kt | JetBrains | 2,489,216 | false | null | package a
class X { }
class Y<caret> { } | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 42 | intellij-community | Apache License 2.0 |
data/src/test/java/com/anand/data/network/TestRetrofitModule.kt | anandgaur22 | 814,111,348 | false | {"Kotlin": 31129} | package com.anand.data.network
import com.anand.data.network.ApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.junit.Assert.assertNotNull
import org.junit.Test
import org.mockito.Mockito.mock
import retrofit2.Retrofit
import ... | 0 | Kotlin | 0 | 0 | e8d16d9197226f1a90a8ed5c63b42a296142c667 | 1,494 | LloydsBankTestNew | MIT License |
data/src/test/java/com/anand/data/network/TestRetrofitModule.kt | anandgaur22 | 814,111,348 | false | {"Kotlin": 31129} | package com.anand.data.network
import com.anand.data.network.ApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.junit.Assert.assertNotNull
import org.junit.Test
import org.mockito.Mockito.mock
import retrofit2.Retrofit
import ... | 0 | Kotlin | 0 | 0 | e8d16d9197226f1a90a8ed5c63b42a296142c667 | 1,494 | LloydsBankTestNew | MIT License |
buildSrc/src/main/kotlin/extensions/BuildTypeExtensions.kt | Harrypulvirenti | 267,049,548 | false | null | package extensions
import com.android.build.gradle.internal.dsl.BuildType
import org.gradle.api.Action
import org.gradle.api.NamedDomainObjectContainer
fun NamedDomainObjectContainer<BuildType>.debug(
configureClosure: Action<BuildType>
) {
getByName("debug", configureClosure)
}
fun NamedDomainObjectContaine... | 0 | Kotlin | 1 | 8 | 23c84e068944a69d543dccf6825b6395aa2c8137 | 579 | TimeToPlay | Apache License 2.0 |
data/src/main/java/com/no1/taiwan/stationmusicfm/data/data/mappers/lastfm/StatsDMapper.kt | SmashKs | 168,842,876 | false | null | /*
* Copyright (C) 2019 The Smash Ks Open Project
*
* 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 | Kotlin | 1 | 5 | 696fadc54bc30fe72f9115bdec2dacdac8cd4394 | 1,936 | StationMusicFM | MIT License |
src/main/kotlin/bgp/SSBGP.kt | FAWC438 | 443,940,908 | false | {"Kotlin": 185867} | package bgp
import bgp.notifications.BGPNotifier
import bgp.notifications.DetectNotification
import core.routing.Node
import core.routing.RoutingTable
import core.simulator.Time
/**
* 类似 SS-BGP 的协议的基类。实现邻居的停用并将检测条件留给子类。
*/
abstract class BaseSSBGP(mrai: Time = 0, routingTable: RoutingTable<BGPRoute>): BaseBGP(mrai,... | 0 | Kotlin | 0 | 3 | 8a1f75ee37535ba87d98c3e0fe93d79e5fb83c38 | 4,198 | BGP-ASPA | MIT License |
app/src/main/kotlin/io/github/wykopmobilny/ui/modules/links/promoted/PromotedFragment.kt | otwarty-wykop-mobilny | 374,160,630 | false | null | package io.github.wykopmobilny.ui.modules.links.promoted
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import io.github.wykopmobilny.R
import io.github.wykopmobiln... | 7 | null | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 2,423 | wykop-android | MIT License |
order/api/src/test/kotlin/com/rarible/protocol/order/api/integration/BaseApiApplicationTest.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.api.integration
import com.rarible.core.test.containers.MongodbTestContainer
import com.rarible.core.test.containers.OpenEthereumTestContainer
import com.rarible.ethereum.domain.Blockchain
abstract class BaseApiApplicationTest {
init {
System.setProperty(
"ra... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 991 | ethereum-indexer | MIT License |
analysis/analysis-api/testData/components/resolver/singleByPsi/inImport/staticMethodFromJavaClassJavaClass.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | import java.lang.M<caret>ath.sin
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 33 | kotlin | Apache License 2.0 |
fintechplatform-api/src/main/java/com/fintechplatform/api/transactions/api/TransactionsAPI.kt | DWAplatform | 128,736,783 | false | null | package com.fintechplatform.api.transactions.api
import com.android.volley.Request
import com.fintechplatform.api.log.Log
import com.fintechplatform.api.net.IRequest
import com.fintechplatform.api.net.IRequestProvider
import com.fintechplatform.api.net.IRequestQueue
import com.fintechplatform.api.net.NetHelper
import ... | 1 | null | 1 | 1 | 498bfbdfd00724ae24d7efc01e9af0b2a8cb58b0 | 5,219 | fintech-platform-sdk-android | MIT License |
src/main/kotlin/com/valaphee/foundry/ecs/accessor/BehaviorAccessor.kt | valaphee | 400,115,259 | false | null | /*
* MIT License
*
* Copyright (c) 2021, Valaphee.
*
* 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, modif... | 0 | Kotlin | 1 | 16 | 39e8592567b1fc1b363a8ab91b278ae1d339503b | 1,795 | tesseract-kotlin | MIT License |
app/src/main/java/com/example/rtnewnetworklib/FirstFragment.kt | wb1357076878 | 645,715,978 | false | null | package com.example.rtnewnetworklib
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.rtnewnetworklib.databinding.FragmentFirstBinding
import c... | 0 | Kotlin | 0 | 0 | f0037a38d884d2cf5d7db4984b05463777d52f68 | 2,508 | RTRetrofitLib | MIT License |
src/main/kotlin/org/rust/utils/Result.kt | mfarrugi | 62,188,867 | true | {"Kotlin": 514080, "Rust": 85561, "Java": 66376, "Lex": 11905, "HTML": 2019, "RenderScript": 91} | package org.rust.utils
/**
* Common-use utility to designate whether particular operation was successful or not
* without resort to the nullable-types
*/
interface Result<in T> {
object Failure : Result<Any>
data class Ok<T>(val result: T) : Result<T>
}
| 0 | Kotlin | 0 | 0 | 5b7a1023d9666a05369e586eb153cd4aeba2d7f7 | 270 | intellij-rust | MIT License |
test-http-server-jackson/src/test/kotlin/io/github/nillerr/http/server/testing/jackson/JsonRequestBodyExpectationTests.kt | Nillerr | 658,771,142 | false | null | package io.github.nillerr.http.server.testing.jackson
import io.github.nillerr.http.server.testing.stringValuesOf
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class JsonRequestBodyExpectationTests {
@Test
fu... | 0 | Kotlin | 0 | 0 | 534937ff5332db9321c4bc41dc93c9c894dbd6f8 | 3,572 | test-http-server-kotlin | MIT License |
lint/src/test/java/tv/abema/lint/DeadlineExpiredDetectorText.kt | abema | 312,185,075 | false | null | package tv.abema.lint
import com.android.tools.lint.checks.infrastructure.LintDetectorTest
import com.android.tools.lint.checks.infrastructure.TestFile
import com.android.tools.lint.detector.api.Detector
import com.android.tools.lint.detector.api.Issue
import org.junit.Before
import org.junit.Test
import org.junit.run... | 3 | Kotlin | 1 | 52 | d1d16892884634513db86dbd5c91ce35dfc8de47 | 6,138 | flagfit | Apache License 2.0 |
frostygum/src/main/java/com/github/frostygum/view/FragmentPianoTilesGame.kt | amirisback | 391,295,733 | false | null | package com.github.frostygum.view
import android.content.Context
import android.graphics.*
import android.os.Bundle
import android.view.*
import androidx.core.content.res.ResourcesCompat
import androidx.fragment.app.Fragment
import com.github.frostygum.R
import com.github.frostygum.databinding.FragmentPianoTilesGameBi... | 0 | Kotlin | 3 | 9 | 7f39cb6283623ae73809143bdd56ddbe9121bca2 | 8,017 | piano-tiles-clone | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsstafflookupservice/controller/IndexingController.kt | ministryofjustice | 593,643,618 | false | {"Kotlin": 54645, "Dockerfile": 1371, "PLpgSQL": 211} | package uk.gov.justice.digital.hmpps.hmppsstafflookupservice.controller
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagger.v3.oas.annotations.responses.ApiResponses
import org.springframework.http.MediaType
import org.springframework.web.bind.ann... | 1 | Kotlin | 0 | 0 | bade2b4e0df71ebd44d8da45821329eb2deab7b3 | 1,120 | hmpps-staff-lookup-service | MIT License |
app/src/test/java/io/github/lekaha/currency/domain/GetCurrenciesBlocTest.kt | lekaha | 264,767,689 | false | null | package io.github.lekaha.currency.domain
import io.github.lekaha.currency.CoroutineTestRule
import io.github.lekaha.currency.TestDataFactory
import io.github.lekaha.currency.entity.Currencies
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import kotlinx.cor... | 0 | Kotlin | 0 | 1 | 907d926f42f1240eb870751d61e45a055832a06f | 1,407 | currency | MIT License |
livingdoc-repository-git/src/main/kotlin/org/livingdoc/repositories/git/GitFileResolver.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.repositories.git
import org.eclipse.jgit.errors.IncorrectObjectTypeException
import org.eclipse.jgit.lib.Constants
import org.eclipse.jgit.lib.Repository
import org.eclipse.jgit.treewalk.TreeWalk
import org.livingdoc.repositories.DocumentNotFoundException
import java.io.InputStream
/**
* A GitF... | 34 | null | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 1,389 | livingdoc | Apache License 2.0 |
solutions/src/solutions/y21/day 4.kt | Kroppeb | 225,582,260 | false | null | @file:Suppress("PackageDirectoryMismatch", "UnusedImport")
package solutions.y21.d4c
/*
import grid.Clock
import helpers.*
import kotlin.math.*
*/
import grid.Clock
import helpers.*
val xxxxx = Clock(6, 3);
private fun part1(data: Data) {
var dd = data.splitOn { it.isEmpty() }
val items = dd.first().first... | 0 | Kotlin | 0 | 1 | 744b02b4acd5c6799654be998a98c9baeaa25a79 | 2,321 | AdventOfCodeSolutions | MIT License |
src/main/kotlin/org/ofdspec/CTExtension.kt | ryecrow | 352,894,172 | false | {"Kotlin": 78972, "Java": 796} | package org.ofdspec
import jakarta.xml.bind.annotation.*
import java.util.*
import javax.xml.datatype.XMLGregorianCalendar
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Extension", propOrder = ["propertyOrDataOrExtendData"])
class CTExtension {
@XmlElements(
XmlElement(name = "Property", type... | 0 | Kotlin | 1 | 2 | c8cfac05940a36de5d6f97105cdc4fd888b71f09 | 1,383 | ofd-parser | Apache License 2.0 |
analysis/src/main/kotlin/io/gitplag/analysis/analyzer/AbstractAnalyzer.kt | nikita715 | 163,607,927 | false | {"Kotlin": 210708, "JavaScript": 63990, "Java": 10988, "CSS": 3445, "HTML": 2310, "Dockerfile": 1200, "Shell": 148} | package io.gitplag.analysis.analyzer
import io.gitplag.analysis.AnalysisException
import io.gitplag.analysis.analysisFilesDirectoryName
import io.gitplag.analysis.solutions.SourceCodeStorage
import io.gitplag.model.data.AnalysisResult
import io.gitplag.model.data.AnalysisSettings
import io.gitplag.model.data.PreparedA... | 2 | Kotlin | 1 | 3 | fb0cd89f62c482d880f7b9c2f8c679a14f09e45e | 1,309 | gitplag | Apache License 2.0 |
library/src/main/java/com/fallgamlet/calendar/YearMonthDay.kt | fallGamlet | 356,704,435 | false | null | package com.fallgamlet.calendar
data class YearMonthDay(
val year: Int,
val month: Int,
val day: Int = -1
) {
fun plusMonth(month: Int): YearMonthDay {
val months = totalMonths() + month
return YearMonthDay(
year = months / 12,
month = months % 12,
da... | 0 | Kotlin | 0 | 0 | a31975eaa75c619f7e35e85c361b81e3deb5c91b | 521 | AndroidCustomCalendar | MIT License |
testdata/example-patternmatch/example-patternmatch-03.kt | kamildoleglo | 360,485,696 | true | {"Kotlin": 94830} | // prefix the third example
// This file was automatically generated from example-patternmatch.in.md by Knit tool. Do not edit.
package com.example.examplePatternmatch03
// include into all examples
fun theThirdExample() {}
| 0 | Kotlin | 0 | 0 | f0ff1dcec40acc37a3e6315136297b9e01d12a2a | 226 | kotlinx-knit | Apache License 2.0 |
app/src/main/java/com/aridwiprayogo/popularmovie/data/remote/RemoteDataSource.kt | aridwiprayogo | 168,526,153 | false | null | package com.aridwiprayogo.popularmovie.data.remote
import com.aridwiprayogo.popularmovie.data.remote.response.PopularMovieResponse
import com.aridwiprayogo.popularmovie.data.remote.response.TvMovieResponse
interface RemoteDataSource {
suspend fun getPopularMovieResponse(): PopularMovieResponse
suspend fun get... | 0 | Kotlin | 4 | 7 | 1684fec7aa2f0375871e62a31958ffb7f0d06470 | 357 | PopularMovie | MIT License |
core/src/jvmMain/kotlin/com/khercules/SegmentManager.kt | lpicanco | 313,477,369 | false | null | package com.khercules
import java.io.File
import java.nio.file.Files
import java.nio.file.Path
class SegmentManager(private val config: Config) {
private var directoryFiles: Sequence<File>
private val dirtySegmentsIds: MutableSet<Long> = mutableSetOf()
private var lastSegment: Segment
init {
... | 0 | Kotlin | 0 | 0 | 8d4da8ee5994f0818cd61c0d7bb6273de1869b43 | 2,921 | khercules | Apache License 2.0 |
app/src/main/java/com/verifone/mobile/dataobjects/paypal/PayerAddress.kt | verifoneone | 488,284,384 | false | {"Kotlin": 337130} | package com.verifone.mobile.dataobjects.paypal
import com.google.gson.annotations.SerializedName
class PayerAddress(paramCountry:String,paramPostalCode:String,paramSubDivision:String,paramCity:String
,paramAddressLine1:String,paramAddressLine2:String) {
@SerializedName("country")
var count... | 0 | Kotlin | 0 | 5 | af847b68098ed977504d142f10d3e9bccec9822a | 705 | verifone-ecom-android-sdk | MIT License |
app/src/main/java/bwki/deepblossom/blumenidentifikator/ImageClassification.kt | johaza | 188,280,919 | false | {"Kotlin": 44552} | package bwki.deepblossom.blumenidentifikator
import android.content.res.AssetManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.SystemClock
import android.os.Trace
import android.util.Log
import org.tensorflow.lite.Interpreter
import org.tensorflow.lite.gpu.GpuDelegate
impor... | 0 | Kotlin | 0 | 0 | 4943284fc5290b21b3e99dd4f6053bc337dcf95a | 9,066 | BWKI_APP | MIT License |
credentialsauth/src/test/java/com/sun/auth/credentials/interceptors/BasicAuthInterceptorTest.kt | sun-asterisk | 575,642,139 | false | {"Kotlin": 204985, "Shell": 4578} | package com.sun.auth.credentials.interceptors
import com.sun.auth.credentials.base.BaseApiTest
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.Protocol
import okhttp3.Request
import okhttp3.Response
import okhttp3.ResponseBody.Companion.toResponseBody
import org.junit.Assert.*
import org.junit.Test
clas... | 2 | Kotlin | 0 | 1 | 43900c2adda86b620fe53354c53f2fa3998b7144 | 1,751 | tech-standard-android-auth | Apache License 2.0 |
app/src/main/kotlin/mykrake/com/krakesample/model/RequestCache.kt | LaserSrl | 165,023,586 | false | {"Gradle": 23, "Text": 3, "INI": 20, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 512, "JSON": 4, "Java": 163, "Kotlin": 393, "Proguard": 2, "Groovy": 2} | /**
* Created by Krake Generator 8.3 Daiquiri (1711.02.15) on 14/04/2020, 12:25**/
package mykrake.com.krakesample.model
import io.realm.RealmList
import io.realm.RealmObject
import io.realm.annotations.*
import java.util.Date
open class RequestCache: RealmObject(), com.krake.core.model.RequestCache
{
@PrimaryKey... | 1 | null | 1 | 1 | 51b97524ff72273227d029faf06acbef0f2699f8 | 1,914 | KrakeAndroid | Apache License 2.0 |
app/src/main/java/com/tsiemens/androidscripter/util/UiUtil.kt | ETS-Android5 | 497,650,573 | true | {"Java Properties": 2, "Shell": 1, "INI": 1, "Markdown": 3, "Batchfile": 1, "Java": 244, "Proguard": 1, "Kotlin": 45, "Python": 7} | package com.tsiemens.androidscripter.util
import android.content.Context
import android.graphics.Point
import android.os.Handler
import android.os.Looper
import android.util.DisplayMetrics
import android.view.Display
import android.view.Surface
import android.view.WindowManager
class UiUtil {
companion object {
... | 0 | Java | 0 | 0 | 538ae39f2aeee49dd94a6bacf459e4140c3a1379 | 1,506 | AndroidScripter | MIT License |
Application-Challenge/【立正队】忘忧/VMMatchAndroid/app/src/main/java/com/vmloft/develop/app/match/ui/main/home/HomeFragment.kt | AgoraIO-Community | 355,093,340 | false | {"Ignore List": 167, "Markdown": 122, "Gradle": 122, "Java Properties": 55, "Shell": 53, "Batchfile": 22, "Proguard": 69, "Java": 1189, "XML": 1726, "INI": 44, "C": 158, "C++": 988, "CMake": 25, "HTML": 797, "CSS": 246, "JavaScript": 1271, "PHP": 209, "SVG": 100, "Text": 103, "YAML": 78, "Python": 413, "JSON": 363, "Ed... | package com.vmloft.develop.app.match.ui.main.home
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.vmloft.develop.app.match.R
import com.vmloft.develop.app.match.common.CacheManager
import com.vmloft.develop.app.match.common.SignMana... | 1 | null | 1 | 1 | 558c96cf0f029fb02188ca83f60920c89afd210f | 7,909 | RTE-2021-Innovation-Challenge | MIT License |
examples/reactive-app/src/test/kotlin/reactive/port/rest/RestExceptionHandlerTest.kt | test-automation-in-practice | 511,864,660 | false | null | package reactive.port.rest
import org.hibernate.HibernateException
import org.jboss.resteasy.reactive.RestResponse
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
import strikt.assertions.isTrue
import javax.persistence.PersistenceException
import javax.ws.rs.NotFoundE... | 2 | Kotlin | 1 | 5 | 2215469c57d4777639e2d8197fd4a15661bd35ca | 1,759 | cnt-quarkus | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.