hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
a54a2a508abb3c2a31a4770e44e4a8b4b14c01ab | 1,440 | package com.shang.upms.controller;
import com.alibaba.fastjson.JSON;
import com.shang.upms.dao.entity.Book;
import org.springframework.http.converter.json.MappingJacksonValue;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRespo... | 27.692308 | 119 | 0.698611 |
175d2d0951dcf3ab4e7d63ee630b49fbeeb7578b | 16,250 | package fj.demo.concurrent;
import fj.F;
import fj.Monoid;
import fj.P;
import fj.P1;
import fj.P2;
import fj.control.parallel.ParModule;
import fj.control.parallel.Promise;
import fj.control.parallel.Strategy;
import fj.data.IOFunctions;
import fj.data.Iteratee.Input;
import fj.data.Iteratee.IterV;
import fj.data.Lis... | 45.518207 | 139 | 0.662892 |
3d55b231fd6d5bbeac3dfe2712bdbb69a77348c9 | 1,121 | package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.DISPID;
import com4j.DefaultValue;
import com4j.IID;
import com4j.MarshalAs;
import com4j.NativeType;
import com4j.Optional;
import com4j.VTID;
@IID("{EAB7E2A5-8E0C-4DFE-A963-9AD073A9F2DC}")
public abstract interface IComponentFactory2
extends... | 35.03125 | 290 | 0.769848 |
b388e65faa70f19e38d4061b0bd838b6a9a8065d | 7,341 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 37.263959 | 142 | 0.752214 |
0ffc19e673a5bed90f3204fa5b5cddc819cd63cf | 51,344 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.apach... | 52.391837 | 126 | 0.621397 |
a540f88db4d6df0d6bba6b27ca0dd3a4d324ac05 | 720 | package com.nzt.b2d.events.type.mvt;
import com.badlogic.gdx.physics.box2d.Body;
import com.nzt.b2d.events.B2dBaseEvent;
import com.nzt.b2d.events.B2dEventsEnum;
public class AngularDampingBodyEvent extends B2dBaseEvent<AngularDampingBodyEvent> {
public float angularDamping;
public AngularDampingBodyEvent()... | 22.5 | 84 | 0.708333 |
d5f7f2bc4d863ec9603b374654ce5c70493b5ee9 | 2,793 | /*
* Copyright (c) 2008 Bradley W. Kimmel
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge... | 34.481481 | 78 | 0.729323 |
dbbc17d56dd1ba329502ce22e49556bfbd0f918c | 3,802 | package com.vincentkammerer.ussd_service;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.p... | 40.446809 | 118 | 0.748816 |
72478a7a0b5a62b075a1614b4468bb77f427acc3 | 347 | package entities.types;
import entities.Entity;
import org.lwjgl.util.vector.Vector3f;
/**
*
* @author ko
*/
public class Sun extends Entity {
public Sun(Vector3f position, float rotX, float rotY, float rotZ, float scale) {
super(Entity.SUN_MODEL, position, rotX, rotY, rotZ, scale);
super.G... | 20.411765 | 84 | 0.662824 |
071c1f2e4f278b23126349c6e98af017bbae5ddc | 1,368 | package com.spike.giantdataanalysis.rdfstore.sparql.exception;
public class AlgebraParseException extends RuntimeException {
private static final long serialVersionUID = 1L;
public static AlgebraParseException newE() {
return new AlgebraParseException();
}
public static AlgebraParseException newE(String... | 27.36 | 92 | 0.765351 |
558298ccb1560acb51322aeb1e934fead10f56db | 7,721 | package com.alexchurkin.truckremote.fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.appcom... | 40.424084 | 128 | 0.66222 |
a5559403e2d44498e1440a96d7c02119ba8a3042 | 324 | package STRING;
class Longestword
{
public static void main(String[]args)
{
String sen;
int i,s,l,max=0;
sen=s;
sen=sen+"";
l=sen.length();
for(i=0;i<l;i++)
{
String w="";
while(sen.charAt(i)!=' ')
{
w=w+sen.charAt(i);
i++;
}
if(w.length()>max)
{
max=w.length();
}
}
System.out.println(max);
... | 11.571429 | 38 | 0.561728 |
ea9bfbe820b1af0eb50da4e749b9f6bcbb3c02aa | 1,947 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 25.285714 | 71 | 0.725218 |
a3bb751bceb0fb29a517a4aff2791ae945795552 | 440 | package eu.fox7.rexp.util.incubator;
import java.util.List;
import java.util.Map;
public class TeeMapping<K, V> implements Mapping<K, V> {
private final List<Map<K, V>> maps;
public TeeMapping(List<Map<K, V>> maps) {
this.maps = maps;
}
@Override
public void put(K key, V val) {
for (Map<K, V> map : maps) {... | 17.6 | 56 | 0.656818 |
706ee3603bf247f6fdac5c66e853fd7ca2946a8d | 26,121 | package io.deephaven.db.v2.utils.rsp.container;
import org.junit.Test;
import java.util.Random;
import java.util.function.BiFunction;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertEquals;
import static io.deephaven.db.v2.utils.rsp.container.Container.MAX_RANGE;
public class... | 38.986567 | 122 | 0.547376 |
14428aa2445949f57669071859da5486504ea3b9 | 1,244 | package com.biemo.cloud.system.modular.mgr.model;
import com.biemo.cloud.system.modular.mgr.enums.ManagerInfoEnums;
import lombok.Data;
import java.util.List;
/**
* 初始化系统管理员的参数
*
*
* @date 2018-03-01 18:34
*/
@Data
public class InitManagerParam {
/**
* 用户信息id
*/
private Long infoId;
/**
... | 17.521127 | 67 | 0.606913 |
a8638ab4639da036c10796030f30ca4cf5d0bcf8 | 7,343 | package eu.bittrade.libs.steemj.base.models;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.BeforeClass;
import org.junit.Test;
import eu.bittrade.cry... | 41.485876 | 123 | 0.71878 |
835c810d11d98aa6e046ecca1354e7719899f4b6 | 2,803 | package org.bitbucket.poad1010.example.springboot.jpa.resource.impl;
import org.bitbucket.poad1010.example.springboot.jpa.entity.MessageEntity;
import org.bitbucket.poad1010.example.springboot.jpa.exception.UncheckedGeneralSecurityException;
import org.bitbucket.poad1010.example.springboot.jpa.model.MessageModel;
impo... | 40.042857 | 160 | 0.747413 |
8a94aea1ea70b4825d62415002093e9039313195 | 367 | package aa.sw.hello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collections;
import java.util.Map;
@RestController
public class HelloController {
@GetMapping({ "/api/hello" })
public Map<String, String> demo() {
... | 21.588235 | 62 | 0.741144 |
8806902184cefbb8bd825e0a6045f463c52400fc | 8,240 | package eu.bubu1.pushclient;
import com.google.gson.Gson;
import com.google.gson.JsonParseException;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.text.DateFormat;
import java.util.LinkedHashMap;
import java.util.Map;
import eu.bubu1.pushclient.auth.Ht... | 29.963636 | 154 | 0.723058 |
91978eab86283a1c3f8d47de9057790fb3b5995e | 2,083 | package com.sparrowwallet.hummingbird.registry;
import co.nstant.in.cbor.model.*;
public class CryptoAddress extends RegistryItem {
public static final long INFO = 1;
public static final long TYPE = 2;
public static final long DATA = 3;
private final CryptoCoinInfo info;
private final Type type;
... | 26.705128 | 92 | 0.570331 |
7a77501f8876d4475bae4cf374711e8225420f02 | 375 | package dsa6.chapter_04;
public class NLogN {
// The running time grows in proportion to n log n of the input:
// O(n log n)
public static void nLogN(int n) {
for (int i = 1; i <= n; i++){
for(int j = 1; j < 8; j = j * 2) {
System.out.println("Hey - I'm busy looking at:... | 25 | 84 | 0.477333 |
299431193270b5498d479815f34f32af947b43b4 | 407 | package org.ops4j.pax.jdbc.pool.common;
import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;
import org.osgi.service.jdbc.DataSourceFactory;
public interface PooledDataSourceFactory {
public static final String POOL_KEY = "pool";
public static final String XA_KEY = "xa";
... | 27.133333 | 84 | 0.786241 |
cd7ca714752d8d6292283fee998d8a203e04a4a2 | 1,160 | package nl.knokko.rpg.quests;
import nl.knokko.rpg.main.Game;
import nl.knokko.rpg.utils.SpecialText;
public class TalkQuest extends Quest {
public final String name;
public final Reward reward;
public final Quest[] nextQuests;
TalkQuest(String questName, Reward questReward, Quest... next) {
name = questNam... | 20 | 130 | 0.732759 |
30f41f7772fafb1b60ae132531bc5938816051b7 | 5,775 | /*
* Copyright 2015 The CHOReVOLUTION project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 37.993421 | 175 | 0.78684 |
6c2238641de2e10997f153b50074a1eb5467779a | 3,645 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridnetwork.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.az... | 52.826087 | 115 | 0.76214 |
26c3ca76f9807d114674e8b30022e38b8496afcc | 406 | package ucztujacyfilozofowie.Model;
public class Widelec {
private int id;
private boolean czyjestuzywany;
public Widelec(int id){
this.id=id;
this.czyjestuzywany=false;
}
public void uzyj(){
czyjestuzywany=true;
}
public void odloz(){
czyjestuzywany=false;
... | 18.454545 | 39 | 0.625616 |
bff3f0278017c3e430e4a4f59f6c6923cabb2f2f | 1,946 | package eu.bcvsolutions.idm.core.security.evaluator.eav;
import java.util.List;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Component;
import com.google.common.collect.Lists;
import eu.bcvsolutions.idm.core.eav.api.domain.BaseFaceType;
import eu.bcvsolutions.idm.... | 36.716981 | 140 | 0.815519 |
e349ebb068ae9258de71d3bc97b699c18de7ed19 | 118 | package br.com.prog2.heranca1;
public class Pessoa {
String nome;
int idade;
public Pessoa(){
}
}
| 10.727273 | 31 | 0.610169 |
79c1cba18558fb17506e20eaae8b2692d6273bf3 | 1,098 | package restfulcraft.mod.api.v2;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import restfulcraft.mod.api.ContainerWrapper;
import restfulcraft.mod.http.CreateJSON;
import spark.Route;
import spark.Spark;
public class V2ContainerRouter {
public static final Route GET = (req, res) -> {
Json... | 31.371429 | 115 | 0.715847 |
c10cbe4d0b0ec1c3c60833c469651d3a64f01e89 | 3,172 | package ua.gram.controller.animation.tower;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import java.util.EnumMap;
import java.util.EnumSet;
import ua.gram.controller.animation.AnimationManager;
import ua.gram.controller.pool.animation.AnimationPool;
import ua.g... | 34.478261 | 117 | 0.65826 |
30885a707a298144510f07f4d67a59a72405a4a7 | 2,049 | package egovframework.com.utl.sys.rsc.web;
import egovframework.com.cmm.EgovMessageSource;
import egovframework.com.cmm.annotation.IncludedInfo;
import egovframework.com.utl.sys.rsc.service.EgovLoginSesionCeckUtil;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import or... | 27.689189 | 83 | 0.689117 |
ba3712004dd7428ea4d5a6de77164455069892bb | 1,001 | package io.renren.modules.fenhuo.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renr... | 34.517241 | 118 | 0.772228 |
1ebc8a06fa5b7168a212154184e50bca9834a378 | 609 | package com.bsdsolutions.sanjaydixit.adbserver;
/**
* Created by sanjaydixit on 06/10/15.
*/
public interface AdbServerListener {
/**
* Error Codes:
*
* 1 : Socket Already Closed
* 0 : Success
* -1 : Failed to bind
* -2 : Invalid port
* -3 : Exception while close
* -4 :... | 22.555556 | 58 | 0.638752 |
4d65be65d1e62c068ebc5a42bd694e43714cb58b | 3,170 | package com.example.everything;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.viewpager2.widget.ViewPager2;
import android.os.Bundle;
import android.util.ArrayMap;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import andro... | 31.386139 | 136 | 0.645426 |
95ab31704f0ad7e04eac49bd61b3c1095492d0f6 | 985 | package com.wagner.hackerrank.practice.algorithms.implementation;
import com.wagner.shared.util.AlgorithmUtil;
import java.util.Arrays;
/**
* User: DanielW
* Date: 18.04.2019
* Time: 15:54
*/
public class GradingStudents {
public static void main(String[] args) {
int[] grades = new int[]{73, 67, 38, 33};
... | 21.413043 | 81 | 0.64467 |
662c90f45097d081f0d328f4bead8a5999340fe9 | 2,466 | package seedu.address.logic.parser.event;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.EVENT_DATE_DESC_CHESS;
import static seedu.address.logic.commands.CommandTestUtil.EVENT_NAME_DESC_CHESS;
import static seedu.address.log... | 40.42623 | 110 | 0.783455 |
a7cbff6f6033d3cb4d856f08d7cbfd3e56b3c7c4 | 3,759 | //
// Copyright © 2021 Terry Moreland
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr... | 44.223529 | 161 | 0.740356 |
0e5ef7d1fd6e8c691144228aa47a436cedbf177a | 7,645 | package base;
import entity.types.Player;
import object.types.*;
import java.util.*;
public class Test
{
public static int gameState = 0;
public static Scanner sc;
public static String[] interactions;
public static String input;
public static void main(String[] args)
{
... | 37.292683 | 274 | 0.460562 |
5da942e3ce8ccacf4a797410949e6768e7689102 | 4,474 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.com.touresbalon.jwtgenerator.impl;
import co.com.touresbalon.jwtgenerator.cliente.ClienteJWT;
import co.com.touresbalon.jw... | 34.152672 | 139 | 0.668976 |
dc497310632c57359eec014fe2a736454baf94af | 14,279 | package com.zipc.garden.webplatform.client.editor.fm;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.smartgwt.client.types.KeyNames;
import com.smartgwt.client.util.EventHandler;
import com.smartgwt.client.util.SC;
import com.s... | 48.900685 | 152 | 0.51145 |
72ec9295b8c3b89bdac2539cdbb409b244c591a8 | 10,577 | package com.icepoint.framework.web.system.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.icepoint.framework.data.domain.TreeNode;
import com.ice... | 33.900641 | 119 | 0.607545 |
b6561592f66f49b1b06db63868069722d94d529a | 443 | package org.apache.haox.transport.tcp;
public interface DecodingCallback {
/**
* OK, enough data is ready, a message can be out
*/
public void onMessageComplete(int messageLength);
/**
* Need more data to be available
*/
public void onMoreDataNeeded();
/**
* Need more da... | 22.15 | 77 | 0.6614 |
22ff6f65298d879ebcc8bec5c299793edfeccacf | 17,517 | /*
* Copyright 2017-2018 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.948763 | 109 | 0.530057 |
5dfe6a7208e0451f778473ff400487d5fb1595d2 | 1,872 | package com.jwt.servlets;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import javax.servlet.ServletException;
import javax.se... | 23.4 | 119 | 0.663462 |
07c573945846aed570e7464a0edef21e5d314d4b | 2,138 | package net.artyxmc.bungee.listeners;
import java.util.ArrayList;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import net.artyxmc.bungee.Main;
import net.md_5.bungee.BungeeCord;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.ap... | 35.633333 | 222 | 0.579046 |
44d72d48b07804f5ddc9c175014f34f248462888 | 356 | package com.application.repositories;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.application.entities.CarType;
@Repository
public interface CarTypeRepository extends JpaRepository<CarType, Long>{
Optional<Ca... | 22.25 | 72 | 0.831461 |
d84f603da4eec69fcdc4d24796accecf9b5f45ce | 2,711 | package uk.gov.digital.ho.hocs.info.api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.... | 43.725806 | 115 | 0.758761 |
6b73e01ac91f629c8b15637bb80469834a016076 | 707 | package com.abay.assenov.model;
import javax.xml.bind.annotation.*;
import java.util.List;
@XmlRootElement(name = "athlets")
@XmlAccessorType(XmlAccessType.FIELD)
//@XmlSeeAlso({Athlet.class})
public class Athlets {
@XmlElement(name = "athlet")
private List<Athlet> athlets = null;
public Athlets(List<At... | 19.638889 | 50 | 0.60396 |
abb8dba086e808ee080b5baf88470438995dbd28 | 931 | package com.kiongroup.dc.functions.search;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import com.kiongroup.dc.function.search.GoogleReferenceSearcher;
@Ignore
public class SearchIntegrationTest {
@Test
public void... | 25.162162 | 88 | 0.762621 |
fca206d3c5a9140cfbd56025f6005cc09c16e822 | 2,496 | package unit.codechecker.checks;
import nl.tudelft.cse1110.andy.codechecker.checks.Check;
import nl.tudelft.cse1110.andy.codechecker.checks.Comparison;
import nl.tudelft.cse1110.andy.codechecker.checks.MockitoVerify;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit... | 44.571429 | 115 | 0.740785 |
a19b59643b69f824dce586fe1a1f9daf8ab358f1 | 4,525 |
package org.whispercomm.shout.ui.widget;
import java.util.ArrayList;
import java.util.HashSet;
import android.database.DataSetObserver;
import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms... | 24.327957 | 89 | 0.718232 |
397a0a53336eb3cd4fbf2c04578afb09aa8d4a9a | 1,731 | /*
* Copyright 2006 Webmedia Group 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 applicable law or agree... | 29.338983 | 109 | 0.722126 |
f776c898703f5aad5cd180950b54ae8eefc2d120 | 895 | package com.learningjava.full.spring.controller;
import com.learningjava.full.spring.service.user.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.an... | 29.833333 | 88 | 0.772067 |
c941520141052fd311daf202106fa2537e0c30f4 | 1,572 | /**
* Node class used for implementing the CircularSinglyLinkedList.
*
* DO NOT ALTER THIS FILE!!
*
* @author CS 1332 TAs
* @version 1.0
*/
public class CircularSinglyLinkedListNode<T> {
private T data;
private CircularSinglyLinkedListNode<T> next;
/**
* Constructs a new CircularSinglyLinkedLi... | 20.415584 | 78 | 0.562977 |
0ab5c218e79d2b4935188a0af7e273e64d3c7bec | 3,431 | package com.hedera.hashgraph.stablecoin.app.handler;
import com.hedera.hashgraph.stablecoin.sdk.Address;
import com.hedera.hashgraph.stablecoin.app.State;
import com.hedera.hashgraph.stablecoin.app.Status;
import com.hedera.hashgraph.stablecoin.app.handler.arguments.ConstructTransactionArguments;
import com.hedera.has... | 39.436782 | 132 | 0.714952 |
884a02b5ab28e01796544295e02d1adbd1a482cc | 2,383 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 27.390805 | 129 | 0.658414 |
42b0d19216d9d820c72395c58acf85f0f369514c | 4,355 | /**
* Copyright 2008 The Apache Software Foundation
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the... | 39.234234 | 88 | 0.738921 |
52c5b17d5a6b64a133c19c789b83b4cf5b1a224e | 824 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.interfaces.backendwashere;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
/**
*
* @author Alej... | 21.128205 | 79 | 0.669903 |
adc138e81aa024748b0aaff077ac63f22344c213 | 1,522 | package se.bluebrim.view.layout;
import java.awt.Dimension;
import java.awt.geom.Dimension2D;
import java.util.*;
import se.bluebrim.view.*;
/**
* Arranges the views in vertical pile with a small gap between them.
* Set the width to the container minus gap and distribute the hight of the
* container on... | 23.78125 | 91 | 0.649146 |
4748c3de6bb61bfd625de579807090f1828bd095 | 806 | package org.clinicalontology.terminology.api;
/**
* Enumeration representing the type of mapping between a source and target concept
*/
public enum TerminologyMappingType {
/**
* Target concept is broader than source (e.g., Beta-blocker is broader than Metoprolol). Generally this means that the source is a... | 28.785714 | 165 | 0.69603 |
e761eb993519a9e27f8f70f876ccb51458fadf58 | 4,362 | package com.example.sample;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provi... | 31.381295 | 115 | 0.644429 |
72d06882c4c5cc15a3525efe944835a28c98184d | 3,563 | package depsolver;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.Stack;
import org.jgrapht.alg.cycle.CycleDetector;
import org.jgrapht.graph.DefaultDirectedGraph;
import org.jgrapht.graph.DefaultEdge;
import org.jgrap... | 28.504 | 122 | 0.598653 |
114f92c832aa91f29c9973ecb7351c83346502d8 | 9,751 | package jdk.lang;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.apache.commons.lang.StringUtils;
import org.junit.Test;
public class... | 29.194611 | 134 | 0.628038 |
373379c54cac32e8297b084c14045dabaed5b22a | 488 | package lambda.stream;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
public class StreamSources {
public static void main(String[] args) {
Stream<Integer> intStream = Stream.of(1, 2, 3);
List<Integer> intList = Arrays.asList(1, 2, 3);
Stream<Integer> intS... | 27.111111 | 67 | 0.659836 |
c4d630b1afdc57ee459d37cc6a55daba568c5d0e | 1,864 | package com.diguage.truman.netty.buf;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import org.junit.jupiter.api.Test;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* @author D瓜哥, https://www.diguage.com/
* @since 2020-06-28 10:26
*/
public class NettyByteBuf {
@Test
public vo... | 25.888889 | 66 | 0.61427 |
740cae6bd1c7eb6dcde2b8cce80788c585751806 | 1,553 | package com.n11.bootcamp.dto;
import com.n11.bootcamp.entity.Product;
import com.n11.bootcamp.entity.ProductComment;
import com.n11.bootcamp.entity.User;
import lombok.Builder;
import lombok.Data;
import java.util.Date;
@Data
@Builder
public class ProductCommentDTO {
private Long commentId;
private String ... | 31.693878 | 112 | 0.676111 |
9c7d92338d147feb1ae22d1f0eac2bf242fbf03e | 4,312 | package net.i2p.router;
/*
* free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain
* with no warranty of any kind, either expressed or implied.
* It probably won't make your computer catch on fire, or eat
* your children, but it might. Use ... | 33.169231 | 99 | 0.678108 |
8e6f3f8c249cff59ebb3636735b55735cf85a6d8 | 774 | package org.algonell.trading.dp.structural.proxy;
import java.util.HashSet;
import java.util.Set;
/**
* Flat file (CSV) data store.
*
* @author Andrew Kreiemr
*/
public class CsvDataStore implements DataStore {
private Set<String> data;
public CsvDataStore() {
// has data for
data = new HashSet<>();... | 17.2 | 49 | 0.630491 |
98c5d1d8f2767850818b33dc624427f1bca1202e | 431 | package com.example.examplemod.core.init;
import com.example.examplemod.ExampleMod;
import net.minecraft.world.item.Item;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
public final class ItemInit {
public static final DeferredRegister<Item> ITEMS = ... | 26.9375 | 101 | 0.781903 |
10730aecf13f20b211b7dd842ea77e0146183127 | 5,298 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 29.764045 | 81 | 0.687618 |
3458ebedd07315cbab4d124222168e0d03cc4fbe | 707 | package jtwirc.utils.jsonclasses;
import org.json.simple.JSONStreamAware;
import org.json.simple.JSONValue;
import java.io.IOException;
import java.io.Writer;
import java.util.LinkedHashMap;
public class Perm implements JSONStreamAware
{
private String name;
private String permission;
public Perm(Strin... | 22.806452 | 66 | 0.693069 |
7ddb9db3f5bd2db454790b0412f4d6b9d32b59cf | 3,909 | package io.agrest.cayenne.cayenne.main.auto;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.List;
import org.apache.cayenne.BaseDataObject;
import org.apache.cayenne.exp.property.ListProperty;
import org.apache.cayenne.exp.property.NumericProperty;
im... | 29.171642 | 120 | 0.644155 |
1d8430039879cc29b8ba7bbb2f5599632fed214d | 688 | package Singleton;
/**
* This is singleton design pattern which gets created at the class loading regardless of their need.
*
* @author raviranjan
*
*/
public class EgerSingleton {
private static EgerSingleton objEgerSingleton = null;
static {
try {
objEgerSingleton = new EgerSingleton();
}catch(E... | 19.657143 | 101 | 0.704942 |
c1dd14d3e53b351090a173b06163c6f9f0d2ebc4 | 1,914 | package pl.piomin.services.account.service;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jac... | 35.444444 | 84 | 0.789446 |
7cbcead094110d4afed14309a4e973535b3af4ad | 687 | package com.example.template.design;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Client {
public static Logger logger = LoggerFactory.getLogger(Client.class);
public static void main(String[] args) {
test_NetMall();
}
/**
* 测试链接
* 京东;https://item.jd.com/10... | 27.48 | 93 | 0.647744 |
e7d6d5e9b46eed90e4263b1aff42f6d0eeb7c459 | 855 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package produto;
/**
*
* @author Batata
*/
public class Produto {
private int id;
private String nome;
private int qtd;... | 16.764706 | 79 | 0.577778 |
fdf4a3c6fd82751dac7bd2332f21c816a99c6788 | 1,059 | package springfive.airline.authservice.service;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;
import springfive.airline.authservice.domain.Credential;
import sprin... | 40.730769 | 139 | 0.846081 |
adccb0238315aabeb113d0db33798a861a7b049c | 2,259 | /*
* Copyright (C) 2012 TopCoder Inc., All Rights Reserved.
*/
package gov.medicaid.entities;
import java.util.Date;
/**
* Search result container for profiles.
*
* @author TCSASSEMBLER
* @version 1.0
*/
public class ProfileHeader {
/**
* The profile id.
*/
private long profileId;
/**
... | 21.514286 | 118 | 0.598052 |
26d3c83fc22426a80bfa79ac3b065f30c70739c3 | 2,035 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 29.071429 | 97 | 0.684029 |
c9845637685c1bba97d8c4872d35c274abee05e5 | 3,978 | /*
* Copyright (C) Grzegorz Skorupa 2019.
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package com.signomix.out.db;
import com.signomix.mailing.Mailing;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLExc... | 34.293103 | 120 | 0.597536 |
3633727dcf3c4fc7675b60b3a62cf257c0002b5d | 2,230 | package com.huaweicloud.sdk.rds.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** UpdateDatabaseReq */
public class UpdateDatabaseReq {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
... | 24.777778 | 106 | 0.600897 |
5e729f0a229302027e5912a487218ae023684a77 | 1,446 | package com.paul.algorithm;
import java.util.Arrays;
/**
* 快速排序
*
* @ClassName: QuickSort
* @Description: TODO(这里用一句话描述这个类的作用)
* @author admin
* @date 2018年10月11日 下午4:05:47
*/
public class QuickSort {
private static void quickSort(int[] a, int left, int right) {
if (left > right) {
re... | 26.290909 | 84 | 0.428077 |
995b56e602a88bc6d6fd31bbc11c24caa816b937 | 1,138 | package com.niit.colloboration.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.springframework.stereotype.Component;
@Entity
@Table
@Component
public class Blog extends BaseDomain{
@Id
private String blog_id;
private String blog_title;
... | 21.471698 | 54 | 0.728471 |
b3abd197741552fc355834056509ea3ed5099369 | 6,731 | package eu.scasefp7.eclipse.servicecomposition.transformer;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URI;
import java.net.URL;
import java.util.ArrayList;
import java.util.Properties;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.P... | 30.595455 | 179 | 0.657257 |
64ead9ff79b8b957f2eafc5ba6ab0e1faf6c3c48 | 1,460 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. All Rights Reserved.
*
* 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
*
* Un... | 32.444444 | 78 | 0.75274 |
03b1de681670d3632f0f9e0c8f36d26feffa69d6 | 5,044 | package br.vinibrenobr11.minichat.page;
import android.app.AlertDialog;
import android.graphics.Color;
import android.net.nsd.NsdServiceInfo;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.widget.Swip... | 31.72327 | 115 | 0.627478 |
90b4430b419cb0b354dc4b8b385f45f01594076e | 31,360 | /*
* This is the source code of Telegram for Android v. 1.3.2.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013.
*/
package com.yahala.objects;
import android.graphics.Bitmap;
import android.graphic... | 53.333333 | 326 | 0.576116 |
8b3a7ee8df7b40468fd9e8a7dd8967269d1aa826 | 547 | /**
*
* uses a boolean representation so that it can update from the gui
* easily, and then change the scale in the tuning system every time
* it updates.
*/
package ren.gui.seqEdit;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import ren.tonal.*;
... | 18.862069 | 69 | 0.6234 |
20eadf4d026c4d9133085a33c5f01804176f68ba | 1,227 | package org.nachc.tools.fhirtoomop.util.db.connection.postgres;
import java.sql.Connection;
import org.junit.Test;
import org.yaorma.database.Data;
import org.yaorma.database.Database;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class PostgresDatabaseConnectionFactoryIntegrationTest {
@Test
public void shoul... | 28.534884 | 112 | 0.732681 |
e5a35c09103f39f84c199bc9417d7641779e3689 | 958 | package com.quarkdata.data.dal.dao;
import com.quarkdata.data.model.dataobj.ProjectTag;
import com.quarkdata.data.model.dataobj.ProjectTagExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ProjectTagMapper {
long countByExample(ProjectTagExample example);
int deleteB... | 29.9375 | 114 | 0.784969 |
29e11ad27127e1153ddea41b2a35bf67ce34a059 | 134 | import system.System;
public class App {
public static void main(String[] args) throws Exception {
new System();
}
}
| 16.75 | 61 | 0.641791 |
4f84b4615ac610f93dbdde993a6e74b17060ff1f | 528 | package okaram.samples;
import org.junit.Test;
import org.junit.Assert;
import static org.junit.Assert.*;
public class TestRecursionSamples {
@Test
public void testStringTimes(){
assertEquals("abababab", RecursionSamples.stringTimes("ab", 4));
assertEquals("aaa", RecursionSamples.stringTimes("a", 3));... | 26.4 | 75 | 0.712121 |
2f14bd2e34092615284da53bbc225653eaf88e2e | 1,003 | package org.wrj.haifa.zookeeper.lock;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.Stat;
/**
* Created by wangrenjun on 2017/4/26.
*/
public class ZKLock extends ZKBaseLock {
public ZKLock(String connectString){
super(connectString);
... | 24.463415 | 106 | 0.654038 |
a6527bc16ff38a51aa1bb395d96609bb760ae4fd | 777 | package org.codereligion.flux;
import com.codereligion.flux.Capacitor;
import com.codereligion.flux.Feature;
import com.codereligion.flux.Features;
import com.codereligion.flux.Flux;
import com.codereligion.flux.UnknownConversionException;
import org.junit.Assert;
import org.junit.Test;
public final class IdentityFe... | 28.777778 | 88 | 0.747748 |
cd2bc56fe8eae5607e59e4c6118764b3aedb2c02 | 13,856 | /* SPDX-License-Identifier: Apache-2.0 */
package org.odpi.openmetadata.accessservice.assetcatalog;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentMatchers;
import org.mockito.InjectMocks;
import org.mockito.Moc... | 34.29703 | 113 | 0.693057 |
751cc43f2f74a0fca81d3b9f395c0e7f4900a84a | 1,084 | package com.ripstech.api.utils.file;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import java.io.IOException;
import java.nio.file.Paths;
import static org.mockito.Mockito.mock;
class ArchiverTest {
@Mock
static Rip... | 23.06383 | 79 | 0.747232 |
e3b466a4f2caca714e5dbba66fcbe07eef7bacc1 | 1,769 |
package com.laegler.openbanking.soap.service;
import javax.xml.ws.WebFault;
/**
* Method Not Allowed
*
* This class was generated by Apache CXF 3.3.3
* 2019-10-21T07:01:27.551+13:00
* Generated source version: 3.3.3
*/
@WebFault(name = "GET_GetAccountsAccountIdStatementsStatementIdTransactions_405", targetNa... | 38.456522 | 193 | 0.804975 |
a0736eaa16df6705a244b2c1aa98aecefceaf1ac | 666 | package com.medallia.unsafe.example;
import com.medallia.unsafe.Driver;
import com.medallia.unsafe.NativeFunction;
import com.medallia.unsafe.NativeModule;
/** Simple "Hello World" example */
public class HelloWorld {
public static void main(String[] args) {
final NativeModule nativeModule = Driver.compileInMemory... | 26.64 | 67 | 0.690691 |
1ade49eab35334bf0206b4576653b0fba70b4f9a | 1,592 | package com.googlecode.blaisemath.graph.metrics;
/*
* #%L
* BlaiseGraphTheory
* --
* Copyright (C) 2009 - 2021 Elisha Peterson
* --
* 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
*
... | 25.677419 | 91 | 0.696608 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.