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 |
|---|---|---|---|---|---|
c41f32f58040ec9d3bc7eeeb02ae9e8727b89e16 | 1,989 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Jeff Nelson, Cinchapi Software Collective
*
* 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 l... | 35.517857 | 80 | 0.712921 |
920416fdc0e1e3e38da8a34f6e42ff24a89fb5cc | 641 | /*
* 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 org.k5n.mobile.impl;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import ja... | 25.64 | 79 | 0.75663 |
ecee0a6970ed245ba305c1905b21b6d7a0883451 | 10,970 | package com.kahzerx.kahzerxmod.extensions.shopExtension;
import com.google.common.collect.Sets;
import com.kahzerx.kahzerxmod.Extensions;
import com.kahzerx.kahzerxmod.extensions.ExtensionSettings;
import com.kahzerx.kahzerxmod.extensions.GenericExtension;
import com.kahzerx.kahzerxmod.extensions.shopExtension.bank.Ba... | 37.568493 | 131 | 0.588332 |
2497b76cd15425388108f01fcd098e444b3d36cd | 23,531 | /*
* Copyright 2015 The AppAuth for Android Authors. 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
*
* Unless requi... | 37.350794 | 100 | 0.626875 |
bf7e3ce1862e200bf9ab49cce21d58150a3f8c1c | 11,559 | /**
*
* 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"); ... | 32.560563 | 110 | 0.687689 |
664cafcd40cdd936d02c42373b7ebbadb429419f | 1,463 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.06.12 at 09:... | 24.79661 | 110 | 0.649351 |
f51f6bcc6153fd2708b4bf317909a5d5e7903617 | 6,042 | package com.ssm.service.impl;
import com.hykit.common.ResultTip;
import com.hykit.exceptionutils.ApplicationException;
import com.hykit.exceptionutils.FormatExceptionStack;
import com.hykit.logutils.LogHelper;
import com.ssm.biz.SysResourceBiz;
import com.ssm.entity.common.PageBean;
import com.ssm.entity.common.Result... | 41.102041 | 97 | 0.672294 |
0126d754b3b10b87603a8389f78aacc5fa63edfd | 11,526 | package com.core.app.ui.main;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view... | 32.651558 | 147 | 0.64463 |
111e6c35bb4b5a517d6344d83945bedca889b9b6 | 2,964 | package com.icebuf.jetpackex.sample.pojo;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import com.icebuf.jetpackex.RecyclerViewItem;
import com.icebuf.jetpackex.sample.R;
import java.util.Objects;
@Entity
@RecyclerViewItem(layoutI... | 25.551724 | 113 | 0.592443 |
19cc98eda0fcb13ccf58ecff861a0b08711dd161 | 2,155 | package com.example.gongxingheng.spider;
import android.content.Context;
import android.graphics.Color;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.Array... | 25.352941 | 82 | 0.64826 |
386fc15176c1f58f32f75ee48d7fd2ffc45cb2dd | 936 | package de.stevenschwenke.java.writingawesomejavacodeworkshop.part3ApplyingToLegacyCode.legacy_real_code;
public class CalenderExcelExportRenderer {
public HSSFCellStyle prepareClientCellStyle(Object workBook, boolean b, boolean b1, boolean b2) {
return null;
}
public HSSFCellStyle prepareFactory... | 31.2 | 111 | 0.70406 |
11a565328e9b8ab5ba50cdf5c14583c68c2db1e5 | 566 | package com.camillepradel.movierecommender.model.db;
import com.camillepradel.movierecommender.model.Movie;
import com.camillepradel.movierecommender.model.Rating;
import java.util.List;
public abstract class AbstractDatabase {
public abstract List<Movie> getAllMovies();
public abstract List<Movie> getMoviesR... | 40.428571 | 95 | 0.812721 |
d3e1680058ef192a1d55c0efa0181fba9711a9db | 2,795 | package ca.louie.spotify;
import java.util.List;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.spr... | 28.232323 | 86 | 0.773524 |
a456775b36de9cee65dc98eb454692445cae0b2d | 4,050 | package com.project.example.controller;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import o... | 33.75 | 101 | 0.800988 |
ecb20718d5ae687b7516cdc3269c2d2099bb8a9c | 2,845 | package edu.emory.cci.bindaas.collectionquery;
import java.util.Dictionary;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.osgi.framework.BundleContext;
import com.google.gson.JsonObject;
import... | 26.839623 | 97 | 0.781722 |
cbda1df27e074f185bd4b5fdbacf72164022ea57 | 1,384 | package com.simple.mvpbase.demo;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import java.lang.reflect.Field;
/**
* Created by mrsimple on 17/4/17.
*/
public final class HandlerCleaner {
private HandlerCleaner() {
}
public static void removeAllMessages(Object target)... | 30.755556 | 91 | 0.501445 |
9082a10ca85fa73ee2179f149f692056fa48baa9 | 2,592 | package com.example.back.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
impo... | 38.117647 | 120 | 0.800154 |
e45e6e18034a83a06c85d28fe28d881f5d31d448 | 5,018 | /**
* Copyright 2021 Viridian Software Ltd.
*/
package org.mini2Dx.miniscript.core;
import org.mini2Dx.miniscript.core.notification.ScriptBeginNotification;
import org.mini2Dx.miniscript.core.notification.ScriptExceptionNotification;
import org.mini2Dx.miniscript.core.notification.ScriptSkippedNotification;
import o... | 30.975309 | 111 | 0.771224 |
27f04b48eb6a5367f8546a5f75d32b7b176cfdf3 | 434 | package com.siondream.ld29.room;
import com.badlogic.gdx.utils.Array;
public class Room {
private String name;
private String description;
private Array<Action> actions;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public void setDescription(String ... | 16.692308 | 49 | 0.730415 |
6a5e4ef93087d97e53135e3cec92f16025fa9399 | 4,073 | package cc.geektip.backupprep.commandexecutors;
import cc.geektip.backupprep.BackupPrep;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.jetbra... | 41.561224 | 263 | 0.547753 |
614ee12bdeed6bd7eecba3a18eb1f49538a89a28 | 5,681 | package com.vk.api.sdk.objects.wall;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.base.CommentsInfo;
import com.vk.api.sdk.objects.base.Geo;
import com.vk.api.sdk.objects.base.LikesInfo;
import com.vk.api.sdk.objects.base.RepostsInfo;
import java.util.List;
import java.util.Objects... | 26.059633 | 180 | 0.611336 |
2a1f89429febb1e80eac18ebdea59718e8a0abab | 1,862 | package au.org.consumerdatastandards.api.v1_1_1.common.models;
import au.org.consumerdatastandards.support.data.CDSDataType;
import au.org.consumerdatastandards.support.data.CustomDataType;
import au.org.consumerdatastandards.support.data.DataDefinition;
import au.org.consumerdatastandards.support.data.Property;
impo... | 35.807692 | 281 | 0.739527 |
22076e6891683e3240c1c29829cd892be6c6b60d | 1,312 | package com.bx.philosopher.presenter;
import com.bx.philosopher.base.activity.BasePresenter;
import com.bx.philosopher.model.bean.response.BaseResponse;
import com.bx.philosopher.model.bean.response.RecordBean;
import com.bx.philosopher.net.BaseObserver;
import com.bx.philosopher.net.HttpUtil;
import com.bx.philosophe... | 34.526316 | 105 | 0.648628 |
27a529e31186427328ef6165d2d117bde3ea4fa2 | 26,211 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.vanilla.compute;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceClient;
import com.azure.core.a... | 55.181053 | 120 | 0.734692 |
580014a8267e43bd6ba487371b93321670e12c45 | 423 | package dev.nocalhost.plugin.intellij.commands.data;
import java.nio.file.Path;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class NhctlPortForwardEndOptions extends NhctlGlobalOptions {
private String deployment;
private String port;
private String type;
public NhctlPortForwar... | 22.263158 | 78 | 0.770686 |
c1e5d0f5ab06acb5d71db28e6fd70be135ed9758 | 4,359 | /**
* Copyright 2014 XCL-Charts
*
* 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... | 27.415094 | 79 | 0.703831 |
d9e013983f69e515b93bf4d2014e9e7b23ea17f3 | 3,781 | package com.example.dm.myapplication.find;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.dm.myapplication.R;
import com.example.dm.myapplicat... | 30.491935 | 107 | 0.697699 |
3bfdee3c01a899d11d2f8e0cb008fdad800ea382 | 2,666 | /*
* 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 controller;
import dao.ComentariosDAO;
import dao.OpcoesDAO;
import dao.PostsDAO;
import models.Posts;
import java.... | 36.520548 | 110 | 0.673668 |
db0580e3c7c68f1809a19e8b62bb76e90aa64e8b | 130 | package Week3;
public interface BaseReservationService {
void createReservation(BaseReservationSystem reservation);
}
| 18.571429 | 63 | 0.784615 |
7854cc4591679f65ca697090280f49b85d8db7a0 | 1,301 | package com.xyberviri.framework.client.gui;
import com.xyberviri.framework.ModMain;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Container;
import net.minecraft.util.ResourceLocation;
public abstract class GuiBase extends GuiContainer {
protected Resource... | 36.138889 | 137 | 0.713297 |
2c778f12bdec8cf35639c9fbc501611248829dfa | 6,049 | package com.atguigu.gulimall.search.thread;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @program: gulimall -- com.atguigu.gulimall.search.thread
* @description: TODO
* @autho... | 42.598592 | 117 | 0.53761 |
bfa57649651466e32b95edda5c97cdf88f38be4b | 7,090 | package ai.verta.modeldb.common.futures;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.function.*;
import java.util.stream.Collectors;
public class I... | 34.926108 | 98 | 0.588293 |
d15fe759a0279b038248356990a4e33a54280b05 | 1,157 | package alexmog.rulemastersworld.datas;
import java.util.ArrayList;
import java.util.List;
public class SkillBean extends ScriptableBean {
private int mId, mIconId, mRange, mScriptId;
private String mName, mDescription;
private boolean mPassive;
private List<Integer> mEffectIds = new ArrayList<Integer... | 21.830189 | 117 | 0.60242 |
8f2af44e3acc474e5a06e4d5cd5b97df0a40dc29 | 946 | package desktop;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class Principal {
public static void main(String[] args) {
final String url = "jdbc:postgresql://localhost:5432/postgres";
final String usuario = "postgres"; //verificar o seu usuario do banco
... | 21.5 | 84 | 0.706131 |
766f8aeddb5ba0d43d31dfa29a27dbf64c792ede | 4,252 | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | 28.346667 | 82 | 0.703198 |
b98b7f1e39e6ddef971268a983fad3edb1e10a07 | 858 | package com.justwayward.reader.ui.contract;
import com.justwayward.reader.base.BaseContract;
import com.justwayward.reader.bean.BookSource;
import com.justwayward.reader.bean.BookToc;
import com.justwayward.reader.bean.ChapterRead;
import java.util.List;
/**
* @author lfh.
* @date 2016/8/7.
*/
public interface Bo... | 24.514286 | 68 | 0.722611 |
5a935e9cc7d972ba25c1f537063ad16007a548d9 | 512 | package com.spring5.projects.springmongodbrecipeproject.repositories.reactive;
import com.spring5.projects.springmongodbrecipeproject.domain.Category;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;
impor... | 34.133333 | 95 | 0.859375 |
c1c3a05280b89e4100529df568b871b47a30f357 | 133 | package no.nav.fo.veilarbregistrering.metrics;
import java.util.List;
public interface HasMetrics {
List<Metric> metrics();
}
| 14.777778 | 46 | 0.75188 |
3ebda0df5d80f79117432f644d2acac8e800947c | 23,240 | /**
* 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... | 46.854839 | 177 | 0.71988 |
3ec50c756a3603a95154dad7f59b052bd7d6a936 | 679 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.sdsc.nbcr.opal.manager.pbsTorque;
/**
*
* @author Mohamed M. El-Kalioby
* @since Nov. 8, 2009
* @version 1.0
*
* This class is a representation of a Machine's processing core.
*/
public class Core {... | 14.76087 | 65 | 0.596465 |
e4f2d990bf042ca6a45e77bc8eb63befa83ca013 | 226 | package no.nav.foreldrepenger.melding.integrasjon.journal.dto;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
public enum BrukerIdType {
@JsonEnumDefaultValue
UKJENT,
AKTOERID,
FNR,
ORGNR
}
| 20.545455 | 62 | 0.765487 |
e4e76b4bcb7e845d1e64f53224d3b58f0c3eff19 | 15,094 | package ca.etsmtl.applets.etsmobile.ui.activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.widget.ExpandableListView;
import android.widget.ProgressBar;
import android.widget.... | 40.575269 | 156 | 0.666092 |
82be676c5db1cebc01ebee29331a7957491e6aa8 | 2,781 | //
// Copyright © 2020 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... | 42.136364 | 161 | 0.705142 |
de02cd02c44177ef011b8e6ba55f835af695a920 | 40,054 | // Generated from /home/shivam/Desktop/spl/parser/generated/Spl.g4 by ANTLR 4.7.1
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.r... | 67.888136 | 97 | 0.645279 |
7373621a571d50579bb781b487c749631e9827cf | 6,128 | /*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 35.017143 | 95 | 0.780352 |
b68df072f533cb715f9e5708c72d859090b2ef29 | 5,310 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 32.378049 | 82 | 0.564783 |
b7d79428653dd7cdf714ad11ac53fe4fb0ea0bde | 430 | package app.service.services.api;
import app.service.models.hero.HeroDetailsServiceModel;
import app.service.models.hero.HeroServiceModel;
import app.service.models.item.ItemServiceModel;
import java.util.Optional;
public interface HeroService {
void create(HeroServiceModel model);
HeroDetailsS... | 25.294118 | 60 | 0.781395 |
04cd874de24e147ce7772dd5f3ec45df2385df6c | 23,631 | package dev.other.picture;
import android.content.Intent;
import android.text.TextUtils;
import com.luck.picture.lib.PictureSelectionModel;
import com.luck.picture.lib.PictureSelector;
import com.luck.picture.lib.config.PictureConfig;
import com.luck.picture.lib.config.PictureMimeType;
import com.luck.picture.lib.ent... | 31.011811 | 128 | 0.545089 |
368c96bde4ca5fb91db714b18ff5d77bea2258c5 | 113 | class OtherNoClinit {
// this class does not need clinit/clinit_wrapper
static double doubleFieldStatic;
}
| 16.142857 | 51 | 0.769912 |
d92f0b1f23f26df7534e35c6cba46f2978c3f974 | 4,176 | package nikochan2k.citywalker;
import java.io.File;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.logging.Logger;
import org.reflections.Reflections;
import com.esote... | 29.617021 | 134 | 0.66068 |
a16267be5a0510882067f4dd8a083deace2bc406 | 4,084 | package de.metas.material.dispo.service.candidatechange.handler;
import com.google.common.base.Preconditions;
import de.metas.common.util.IdConstants;
import de.metas.material.dispo.commons.candidate.Candidate;
import de.metas.material.dispo.commons.candidate.CandidateId;
import de.metas.material.dispo.commons.candida... | 38.895238 | 117 | 0.800196 |
2914bfd4c30cc995494263c2cf9f3b6e4f3ec95e | 2,730 | package structures.lists;
import csp.IntervalVariable;
import memory.AllocatorOf;
public class ListOfIntervalVariable extends ListOf<IntervalVariable> {
private final static ThreadLocal<Allocator> localStorage = ThreadLocal.withInitial(Allocator::new);
private IntervalVariable[] list;
//***************... | 27.857143 | 110 | 0.567766 |
64e862539f458d87004d581fd8db7a74b17e2707 | 1,906 | package marco.salesTaxes;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import org.junit.Before;
import org.junit.Test;
import marco.salesTaxes.product.Product;
import marco.salesTaxes.tax.Tax;
import marco.salesTaxes.tax.commonPredicate.ApplyOn;
i... | 28.878788 | 100 | 0.75341 |
512fbb669fcdb6dc15c24a2d960cf2299d3605a3 | 1,580 | package aero.champ.cargojson.airwaybill;
import aero.champ.cargojson.docgen.annotations.JsonDocExample;
import com.fasterxml.jackson.annotation.*;
import java.math.BigDecimal;
import java.util.Optional;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonClassDescription("Charge Summary - a structure that summarizes ch... | 35.111111 | 118 | 0.751899 |
d6d6b253a2d7a6c295547be5267978ff470fcc92 | 10,660 | /**
* 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... | 32.30303 | 78 | 0.682739 |
a4cc616325a7c3aff086337a4dabe8a46cf0bab6 | 1,161 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 结算单传输对象
*
* @author auto create
* @since 1.0, 2020-03-26 17:40:50
*/
public class SettlementbillOpenApiDTO extends AlipayObject {
private static final long serialVersionUID = 3... | 20.732143 | 71 | 0.71404 |
ea3a89a2d58fd356fe1f1a0b0ee2e46d6bea68e8 | 7,078 | package com.dumas.pedestal.framework.springboot.web.intercepter;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.dumas.pedestal.common.util.text.StrFormatter;
import com.dumas.pedestal.framework.springboot.constant.enums.BusinessType;
import com.dumas.pedestal.framework.springboot.... | 39.104972 | 134 | 0.653292 |
e9a1d2a3da367b085475ab7a3e75e1fe0e2622bb | 578 | package com.quarkdata.yunpan.api.dal.dao;
import com.quarkdata.yunpan.api.model.vo.MessageExtend;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface MessageMapper2 {
/**
* 查询未读用户消息
* @param userId
* @param incID
* @return
*/
List<MessageExtend> getMe... | 22.230769 | 93 | 0.650519 |
00a5b34d6400897fca3bf1a303986439103c1255 | 2,374 | package com.test.leetcode.hard;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* Created by ben on 2017/8/7.
*/
public class _502_IPO {
//time limit exceeded
public int findMaximizedCapital(int k, int W, int[] Profits, int[] Capital) {
... | 28.95122 | 105 | 0.44524 |
9dbbeba0125c9513412bcdaa70643d1e949cc438 | 441 | package hu.pinting.jeversi;
/**
* Két dimenziós koordináta.
*/
public class Coord {
public int x;
public int y;
/**
* Új koordináta létrehozása a megadott paraméterekkel.
* @param x X koordináta.
* @param y Y koordináta.
*/
public Coord(int x, int y) {
this.x = x;
... | 16.333333 | 59 | 0.53288 |
31cd8e0253ce89ee9338604d190c79d3a2804f5b | 2,318 | package puzzle.dotjar.com.puzzle;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.media.session.PlaybackStateCompat;
import a... | 31.324324 | 130 | 0.732097 |
02fd6fe38ffffb6a9e744e0bc4f58840643f1ce6 | 10,561 | package cesiumlanguagewriter;
import agi.foundation.compatibility.*;
import agi.foundation.compatibility.ArgumentNullException;
import agi.foundation.compatibility.CultureInfoHelper;
import agi.foundation.compatibility.DoubleHelper;
import agi.foundation.compatibility.IntHelper;
import agi.foundation.compatibility.Lo... | 30.088319 | 172 | 0.56131 |
0b0769c741e43526bcf1b0566fd55a2d4cf63573 | 575 | package com.axmor.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectToDataBase {
static private final String JDBC_DRIVER = "org.h2.Driver";
static private final String DB_URL = "jdbc:h2:tcp://localhost/~/test";
static private final String USER... | 30.263158 | 84 | 0.718261 |
33ee4932a9a3cfcbe1a15c44588c3a4faa9c1a98 | 3,973 | package totalcross;
import totalcross.io.File;
import totalcross.io.FileNotFoundException;
import totalcross.sys.Registry;
import totalcross.sys.Settings;
import totalcross.sys.Vm;
import totalcross.ui.dialog.MessageBox;
import totalcross.util.ElementNotFoundException;
public abstract class Service implements MainCla... | 30.79845 | 111 | 0.662723 |
6c769064b9c1d27bddfb2f1c3a67fc1b3a9e3b7f | 1,845 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.or... | 25.625 | 75 | 0.690515 |
0d198558f2f1efedd75997864d0f2d585f2785c0 | 247 | package com.hristoyankov.java.javapuzzlersbook.expressive;
// Chapter 01 - The joy of hex (Puzzle 5)
public class HexAreFun {
public static void main(String[] args) {
System.out.println(Long.toHexString(0x100000000L + 0xcafebabe));
}
} | 30.875 | 66 | 0.736842 |
c5347b9d5ac66670e9764790fcbedc701274073d | 5,774 | /******************************************************************************
* Copyright (c) 2012-2015, Vladimir Kravets *
* All rights reserved. *
* *
... | 31.551913 | 93 | 0.560963 |
0a99a58d3461ad05d5fbe8709fc930049fb35378 | 1,012 | package travelsafe;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunne... | 28.111111 | 77 | 0.761858 |
35a739174d9359f5ae8c571ba56af02fa17d3b5b | 413 | /**
*
*/
package com.example.demo.repository;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import com.example.demo.LastWeekOOO;
/**
* @author USER
*
*/
public interface LastWeekRepository extends CrudRepository<LastWeekOOO, String> {
List<LastWeekOOO> fi... | 19.666667 | 82 | 0.736077 |
8583142abe4ad0b48826e8e353c067ad55794b3f | 3,466 | import com.typesafe.config.Config;
import org.joda.time.DateTime;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import services.InMemoryOrderService;
import services.Statistics;
import services.Transaction;
import java.util.concurrent.Complet... | 33.650485 | 118 | 0.736295 |
de3bb679b8c47e164267499f8b08aacb4140acb3 | 3,678 | package mekanism.client.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class ModelScubaTank extends ModelBase {
ModelRenderer tankL... | 37.151515 | 78 | 0.626156 |
f4f2ee1016779e198f9452130cdefbee8e00e1ec | 3,951 | package com.codepath.apps.basictwitter;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.codepath.apps.basictwitter.models.Tweet;
... | 28.221429 | 128 | 0.715515 |
4ad5196175421a5029eb30343fe29f912a5cf097 | 1,951 | package net.kunmc.lab.numaguys.stage;
import org.bukkit.Material;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public enum NumberBlock {
AIR(Material.AIR,-3),
DUMMY1(Material.WHITE_CONCRETE, -2),
DUMMY2(Material.RED_CONCRETE, -1),
ZERO(Material.ORANGE_CONCRETE, 0),
... | 25.337662 | 65 | 0.596617 |
fcd461eb45fca4c30dc7e3c4b42d3f994c24e501 | 1,458 | /*
* (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | 32.4 | 88 | 0.751029 |
1fef2c62ae233b56927202bed60f1bb3b1f684e2 | 2,597 | package org.boutwaretech.weightspec.services.impl.floid;
import org.boutwaretech.weightspec.configuration.Profiles;
import org.boutwaretech.weightspec.domain.BodyMeasurementTransaction;
import org.boutwaretech.weightspec.domain.floid.FloIdBaseDTO;
import org.boutwaretech.weightspec.domain.floid.FloIdCollectionBaseDTO;... | 43.283333 | 90 | 0.748941 |
06f103b2865bc63f7e46853186b4ef500ecdf103 | 258 | package com.climate.mirage.targets.drawables;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
public interface DrawableFactory {
public Drawable createDrawable(Context context, Bitmap bitmap);
} | 23.454545 | 64 | 0.829457 |
e264c80561d375361b4e37c41eaa8150369a4772 | 703 | package solutions;
import java.util.Arrays;
import java.util.Scanner;
import java.io.PrintWriter;
public class CrosswordPuzzle {
public void solve(int testNumber, Scanner in, PrintWriter out) {
String[][] grid = new String[10][10];
for (int i=0; i<10; i++) {
grid[i] = in.next().split(... | 21.96875 | 68 | 0.520626 |
18c54c8c07b9b0c3a7bc67691fa7ac2f08f68abc | 14,057 | /*
* 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 writing, software
* distributed u... | 20.763663 | 112 | 0.672619 |
514387efb04569efd8379de3b659b94d5eca75f6 | 1,223 | package org.refactor.ui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
pub... | 22.648148 | 78 | 0.708913 |
89b68c282310acc5521b2791faba77e5d2700a0d | 466 | package com.example.backend.Models;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Getter
@Setter
public class Sensor {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column()
private Integer idDevice... | 15.533333 | 55 | 0.708155 |
e6923cfc2751c3c0be1a3ece3ee717f187cfe93b | 2,524 | package jp.ac.utokyo.rcast.karkinosSim;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import jp.ac.utokyo.rcast.karkinos.utils.TwoBitGenomeReader;
import jp.a... | 22.140351 | 102 | 0.660063 |
a2e2396c8b1bfd7eb68a622cc0efba863de738ea | 696 | package net.laoyeye.yyblog.quartz.listenner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import net.laoyeye.yyblog.service.TaskService;
@Comp... | 26.769231 | 68 | 0.708333 |
ac472b12e45cd6d53a80bf6d90e54746de06f5e8 | 1,605 | package bag_queue_stack;
/**
* Write a stack client Parentheses that reads in a text stream from standard input
* and uses a stack to determine whether its parentheses are properly balanced.
* For example, your program should print true for [()]{}{[()()]()} and false for [(]).
* <p/>
* Created by saagrawal on 12... | 26.75 | 87 | 0.525857 |
da10b3a66b2025180a3de92afc100127f60de305 | 1,717 | package controllers;
import models.User;
import play.data.DynamicForm;
import play.data.FormFactory;
import play.db.jpa.JPAApi;
import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.welcome;
import javax.inject.Inject;
import java.util.List;
/**
* This controller co... | 25.25 | 75 | 0.641235 |
0ed70ae20d72d91d77229aa19b5c978d5e6303ab | 1,134 | package com.gpch.hotel.configuration;
import java.io.IOException;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.AuthorityUtils;
import org.s... | 42 | 149 | 0.765432 |
8fc696bdd4d568f1ffa1219c7c3f119355c8be8f | 1,017 | package objectModels.gui.YouTube;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import com.shaft.gui.browser.BrowserActions;
import com.shaft.gui.element.ElementActions;
public class YoutubeMainPage {
public... | 33.9 | 107 | 0.710914 |
22c87f064b3140fb29388889f89cf6c72a07e8a4 | 1,441 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
import android.os.RemoteException;
// Referenced classes of package com.google.android.gms.internal.ads:
// ... | 27.188679 | 84 | 0.582929 |
795bbbd5afb13861aecfbc4e0bcdbfca024cded4 | 2,188 | package com.mindskip.xzs.configuration.spring.mvc;
import com.mindskip.xzs.configuration.property.SystemConfig;
import com.mindskip.xzs.configuration.spring.wx.TokenHandlerInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org... | 34.730159 | 108 | 0.711152 |
cbdc428afd4e206678f4d38646ffe4f9d20d2e0e | 2,453 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 31.857143 | 117 | 0.767224 |
9b6c1df375f3ce9b7f700ac6765e5e3a03990fbf | 560 | package com.dateofrock.example.aws.swf.workflow;
import java.io.File;
import com.amazonaws.services.simpleworkflow.flow.annotations.Execute;
import com.amazonaws.services.simpleworkflow.flow.annotations.Workflow;
import com.amazonaws.services.simpleworkflow.flow.annotations.WorkflowRegistrationOptions;
@Workflow
@Wo... | 32.941176 | 90 | 0.841071 |
4104159fa4f9e2947b9aa61236734c0226bea15b | 3,083 | /*
* Copyright 2019 Firas Swidan†
*
* 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... | 35.848837 | 731 | 0.789166 |
17fad2652c8799ba549775904a7eda15cbad8ff1 | 2,983 | package org.algorithmx.rulii.spring.config.aop;
import org.algorithmx.rulii.core.rulestream.RuleStream;
import org.algorithmx.rulii.spring.config.RuliiMetaInfo;
import org.algorithmx.rulii.util.reflect.ObjectFactory;
import org.algorithmx.rulii.validation.beans.BeanRuleFactory;
import org.algorithmx.rulii.valida... | 36.82716 | 112 | 0.697955 |
f3b6b62472bcf024ed63d68b85dd276eb662c4a7 | 659 | package de.polocloud.api.network.server;
import de.polocloud.api.network.INetworkConnection;
import io.netty.channel.Channel;
import java.util.List;
/**
* This interface does not implement any other methods
* than the {@link INetworkConnection} does but it's just for clarification
* if you want to identify your {... | 29.954545 | 75 | 0.746586 |
e71790e409e1fe271173db3a475c9371997ee36f | 7,802 | // Churong Zhang
//CS 3345.004. Data structures and algorithm analysis
//Fall 2018
//Intensive Track Assignment 1.3
//Aug 29, 2018
package cxz173430;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class DoublyLinkedList2<T>implements Iterable<T>
{
private Entry<T> head;
... | 19.264198 | 88 | 0.561779 |
7e966714e6c652c300cdff0382f0edd463541d6c | 1,489 | package com.kira.dsemw.drwhoquiz;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class HighestScoreActivity extends AppCompatActivity {
... | 33.088889 | 82 | 0.651444 |
63a66c6a9f98769d63f1b60796e8f1f70fc9cedf | 11,843 | package lk.ijse.deppo.hotelManagement.controller;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXDatePicker;
import com.jfoenix.controls.JFXTextField;
import javafx.animation.FadeTransition;
import javafx.animation.TranslateTransition;
import javafx.beans... | 32.008108 | 207 | 0.599088 |
47b0da487727323092fb8c2d77c9a25f0f6d1c68 | 2,906 | package asch.io.wallet.view.fragment;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import asch.io.base.fragment.BaseFragment;
import asch.i... | 28.772277 | 114 | 0.701996 |
26f26a8c5d59ae0c216e6bd499dd266d2c16036a | 4,867 | package com.cashier3.client.gui;
import java.util.Date;
import com.cashier3.client.PrivateCashier;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChange... | 34.274648 | 76 | 0.75714 |
f8224e6eb67a6aeac9539493af15bdd46f6fb51e | 8,250 | package helvidios.cp.ch4.sssp;
import java.util.*;
import static java.lang.Math.*;
/**
Idea for the algorithm: http://ibra.hammadian.com/home/uva-solutions/314-robot
**/
public class _00314_Robot {
public static class State{
public int row;
public int col;
public int direction;
... | 38.732394 | 582 | 0.444606 |
41b7c9984aa6af77a895304ed5e932e2ea4dacd1 | 2,051 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... | 32.555556 | 108 | 0.610434 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.