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 |
|---|---|---|---|---|---|
9b52d872f9801723a5541fde109122ef74e52802 | 883 | package com.danielprinz.udemy;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.security.annotation.Secured;
import io.micronaut.security.rules.SecurityRule;
@Secured(SecurityRule.IS_ANONYMOUS)
@Controller("${hello.controller.path:/hello}")
public class Hell... | 22.075 | 93 | 0.722537 |
9e54c3364364a602c7ea0b8167d2ada139a125a3 | 3,283 | package whc.com.whc_wallet.adapter;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... | 31.567308 | 150 | 0.703929 |
293ad9bf4efadfa99baafe31fbabeda3fb4f8d38 | 3,118 | package com.payneteasy.superfly.security;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.*;
import org.easymock.EasyMock;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.security.authentication.... | 34.644444 | 120 | 0.715843 |
810fca10bb6957aba499a8f762be37992df683db | 975 | package greencity.entity.order;
import greencity.entity.user.User;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import... | 21.666667 | 55 | 0.77641 |
bdc5f56fde908b62f7a6e87e550b898c7ec6362e | 1,195 | package lab;
import lab.logarithmic.LogFunction;
import lab.trigonometric.TrigFunction;
/**
* Created by ivan on 07.04.17.
*/
public class FunctionSystem extends AbstractFunction{
private Double precision;
private TrigFunction trigFunction;
private LogFunction logFunction;
{
table.put(0.01,... | 25.425532 | 53 | 0.646862 |
4c0ea4d838d2fa1c0b16ec2edec5a2861aca6cb9 | 2,408 | /*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obta... | 32.986301 | 78 | 0.737126 |
d6b2a041a4ca2d33dae798f2d2e29ed9171e973e | 6,073 | package com.rsvps;
import static org.apache.spark.sql.functions.col;
import static org.apache.spark.sql.functions.from_json;
import static org.apache.spark.sql.types.DataTypes.DoubleType;
import static org.apache.spark.sql.types.DataTypes.LongType;
import static org.apache.spark.sql.types.DataTypes.StringType;
... | 46.007576 | 102 | 0.543224 |
ff3ac6dd4f7773a83f6e10c37bec13848d20e1f1 | 524 | package species;
/***
* @author Chalena Scholl, Owen Chung
*/
public abstract class PredatorPreySpecies extends Species{
private int timeUntilBreed;
private boolean roomToBreed;
public abstract boolean toBreed();
public int getTimeUntilBreed(){
return this.timeUntilBreed;
}
public void setRoomToB... | 15.878788 | 58 | 0.73855 |
73d56421328bb6fedc47a1d025b911e68112e5a1 | 632 | package com.ad.system.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 系统用户角色
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRole implements Serializable {
private static final long serialVersionUID = 2543291254171... | 18.057143 | 70 | 0.599684 |
be16645e0b4df58321bf168aa277c00c833abb8e | 4,936 | package com.jacobmekker.aurumancy;
import com.jacobmekker.aurumancy.blocks.AurumancyBlocks;
import com.jacobmekker.aurumancy.data.AurumancySavedData;
import com.jacobmekker.aurumancy.networking.ModPacketHandler;
import com.jacobmekker.aurumancy.items.AurumancyItems;
import net.minecraft.block.Block;
import net.minecr... | 43.298246 | 136 | 0.740883 |
71514622f93eecd8aa44bae585ce15e81da31255 | 749 | package com.github.orekyuu.javatterfx.controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.layout.HBox;
import com.github.orekyuu.javatterfx.event.Listener;
import com.github.orekyuu.javatterfx.managers.EventMana... | 24.966667 | 82 | 0.755674 |
0529f6c56a47e8ca1f012d033c55b11bda463b07 | 228 | package org.rapidpm.openherbarium.module.ui.component.mainview.searchview.interfaces.selectionlist;
import com.vaadin.ui.Component;
public interface VaadinSelectionListSubject<T> extends SelectionListSubject<T>, Component {
}
| 32.571429 | 99 | 0.846491 |
99bf772eda4776d8a620e47faced0d5f3aea9413 | 487 | import org.apache.commons.codec.binary.Base64;
public class Password_Encode {
public static void main(String[] args) {
// TODO Auto-generated method stub
String passWord="Sagar@12345";
byte[] encodePass=Base64.encodeBase64(passWord.getBytes());
System.out.println("The encoded Password " + ne... | 23.190476 | 71 | 0.702259 |
ee38f58fafb785c22d42156206b1d3ad8f614914 | 279 | package de.trho.rpi.core;
import de.trho.rpi.com.PacketGateway;
public interface CoreController extends KeyInputProvider {
void addShutdownHook(Runnable r);
PacketGateway getPacketGateway();
void addModule(AppModule module);
void removeModule(AppModule module);
}
| 17.4375 | 58 | 0.784946 |
069791a2b28b93eeeb58f8b74ddd49187c78a379 | 11,198 | package models;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import com.avaje.ebean.Model;
import com.avaje.ebean.annotation.CreatedTimestamp;
import com.avaje.ebean.annotation.UpdatedTimestamp;
@Entity
@Tab... | 23.475891 | 78 | 0.675746 |
be03e07e057f7fb3ec7114fe88eccdda3d4982a6 | 1,550 | package com.jacobmountain.logging;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import org.springframework.http.client.ClientHttpResponse;
import org... | 41.891892 | 132 | 0.669677 |
de19148bae52fcfe920461eb0fe956bdb30f91c2 | 1,740 | /*
* Copyright 2019 MovingBlocks
*
* 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... | 29.491525 | 88 | 0.701724 |
a4fb5a20d75b88c6059688bcc4db6dc51308b10f | 1,094 | package client;
import ca.uhn.fhir.rest.api.CacheControlDirective;
import ca.uhn.fhir.rest.client.api.IGenericClient;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Patient;
import java.util.ArrayList;
import java.util.List;
public class QueryPatientsFromServer {
private List<Bundle> response... | 24.863636 | 105 | 0.651737 |
5d01d437e693162509989461190563f8925b88f6 | 4,886 | int var1 = 10;
int var2 = 20;
double punteoBasicas = 0.0;
double declaracion, asignacion, aritmeticas, relacionales, logicas;
int dimension = 3;
String[] arreglo = ["Estudiante1", "Estudiante2", "Estudiante3"];
//Posicion 0 - 2 para estudiante 1
//Posicion 3 - 5 para estudiante 2
//Posicion 6 - 8 para estudiante 3
int... | 31.522581 | 197 | 0.574294 |
a432fd10fb450c684e08d5b108c6e1e25a29f745 | 2,511 | package langModel;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
/**
* Class MiscUtils: class containin... | 25.363636 | 106 | 0.688969 |
147ecef7de8faea1bf73cb886a370724b20e6a57 | 1,248 | /**
* Copyright 2010-2018 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 appl... | 23.54717 | 75 | 0.728365 |
36c975ff51450890ccab4c60d330de3f3921c84a | 2,271 | /*
* #%L
* Conserve Concept Server
* %%
* Copyright (C) 2010 - 2011 KMR
* %%
* 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
*
... | 27.361446 | 75 | 0.663584 |
35a0c2883bc339b6022755e1dd0903a697284c0d | 467 | package com.polidea.rxandroidble.internal.cache;
import bleshadow.dagger.internal.Factory;
public final class DeviceComponentCache_Factory implements Factory<DeviceComponentCache> {
private static final DeviceComponentCache_Factory INSTANCE = new DeviceComponentCache_Factory();
public DeviceComponentCache ge... | 29.1875 | 100 | 0.775161 |
57c6f59dbec358cd3387d7bc6afd7a9802ee00af | 2,755 | /**
* BlueCove - Java library for Bluetooth
* Copyright (C) 2006-2008 Vlad Skarzhevskyy
*
* 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. Th... | 28.112245 | 76 | 0.718693 |
1a02790e837d7c6213d062479b77573bab022d93 | 7,109 | /*
* 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 ... | 38.846995 | 121 | 0.702771 |
2001d341d709bebe02df0923bc15261e3a1694f6 | 319 | package org.parker.mips.assembler;
import org.parker.mips.assembler.data.UserLine;
public class InvalidOpCodeException extends AssemblerException {
InvalidOpCodeException(String message, UserLine line){
super(message, line);
}
InvalidOpCodeException(UserLine line){
super(line);
}
}
| 21.266667 | 64 | 0.730408 |
028f85a462fdaddf680c978a5712cb5aa383aaf1 | 173 | /*
Author: Romain DALICHAMP
Github: https://github.com/fukakai
Portfolio: http://romain.dalichamp.fr
Contact: romain.dalichamp@free.fr
*/
String s = Integer.toString(n); | 24.714286 | 38 | 0.745665 |
91fa34a1b3aac064230f760aea65de3915724ec1 | 408 | package com.stop.stop_app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class StopServiceBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
System.out.println("Stop broadcast... | 29.142857 | 69 | 0.767157 |
f613e203d313a0005224f3e41b11b281a042a18b | 3,372 | package com.nightonke.boommenu.BoomButtons;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.Gravity;
import com.nightonke.boommenu.Util;
/**
* Created by Weiping Huang at 02:2... | 31.514019 | 97 | 0.695433 |
c052955e5033e2462c6c15ea5eac150a003eb0bf | 1,291 | package emSeco.custodianUnit.core.modules.allocationDetailAffirmationRules.implementations;
//#if ContractAllocationDetailPriceEquality
import emSeco.custodianUnit.core.entities.allocationDetail.AllocationDetail;
import emSeco.custodianUnit.core.entities.contract.Contract;
import emSeco.custodianUnit.core.modules.allo... | 56.130435 | 118 | 0.768397 |
75ff4affa59aeb6fb7cb721eea46787fa40a3970 | 558 | package lc_practice.easy;
/**
* @author: afuya
* @program: BiShiLianXi
* @date: 2021/6/28 11:28 上午
* 530. 二叉搜索树的最小绝对差
*/
public class LC_530 {
int res = Integer.MAX_VALUE;
TreeNode pre = null;
public int getMinimumDifference(TreeNode root) {
dfs(root);
return res;
}
private v... | 19.241379 | 52 | 0.537634 |
37092fcb6c619533174ed2b56f9d8f52d1e660af | 612 | package uo.ri.business.impl.admin;
import alb.util.menu.Action;
import uo.ri.conf.PersistenceFactory;
/**
* Adds a given mechanic to the database.
*
* @author Guillermo Facundo Colunga
* @version 201711231134
* @since 201711201739
*/
public class AddMechanic implements Action {
private String name, surname;
... | 19.741935 | 70 | 0.722222 |
ffb27b7fbabef56d6f58a532ae9a6c6b77f57084 | 1,831 | package Main;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.json.simple.JSONObject;
import org.json.simple.parser.... | 31.033898 | 82 | 0.622611 |
41fb0a47568f2cd4152262ae277f77337a5566b0 | 3,428 | package com.padcmyanmar.news.viewholders;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.padcmyanmar.news.R;
import com.padcmyanmar.news.data.vo.NewsVO;
import com.padcmyanmar.news.de... | 28.098361 | 95 | 0.67007 |
bb956b5e72d2ec11d1303bb129069f763be2b4ef | 1,114 | package com.hatim.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.Date;
/**
* Created by Hatim on 2017/3/27.
*/
@Document(collection = "t_text")
public class Text implements Serializable {
privat... | 20.62963 | 62 | 0.589767 |
2f6edd029fcfbe527a47ff97a7196f6d5d873b4e | 2,254 | package dsf.algorithm.interview.xiaomi.m20200825;
import java.util.Arrays;
import java.util.HashSet;
import java.util.PriorityQueue;
import java.util.Scanner;
/**
* 两个有序数组和的top K
* https://www.nowcoder.com/practice/7201cacf73e7495aa5f88b223bbbf6d1
*
* @author 董少飞
* @version 1.0
* @since 1.0, 2020/8/25 18:53
*/... | 29.272727 | 104 | 0.487578 |
22a776f8795f3d6ef419847a8e79ebd235907a7b | 1,466 | package ru.job4j.set;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class SimpleLinkedSet<E> implements Iterable<E> {
Node<E> first = null;
Node<E> last = null;
private int size = 0;
public void add(E value) {
if (!duplicate(value)) {
Node<E> item = ne... | 24.433333 | 57 | 0.421555 |
26443810dcc18fc6d7e9dd7777cf19a0d6dafdd3 | 117 | package com.dbr.springboot.template.system.auth.enumeration;
public enum AuthRoleEnum {
ROLE_ADMIN, ROLE_USER
}
| 19.5 | 60 | 0.794872 |
bff352b69700c87e7dc617a02ea7d1c9095d0a6a | 10,268 | package org.rhine.unicorn.storage.db.tx;
import org.rhine.unicorn.core.store.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;
public class ConnectionProxy implements Connection, Resource {
... | 30.111437 | 150 | 0.706856 |
c35632ca77f20ec239ea262c17df5f9f85e9b849 | 4,059 | package seedu.system.logic.commands.outofsession;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.system.testutil.Asser... | 33.270492 | 118 | 0.697709 |
8ded78490e85ab8b39608143c002aa887ec40dad | 793 | package org.sadtech.bot.gitlab.context.domain.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.sadtech.haiti.context.domain.BasicEntity;
import javax.persistence.Column;
import javax.persistence.Id;
import java.time.LocalDateTime;
/**
* // TODO: 20.09.2020 Добавить опи... | 22.027778 | 68 | 0.737705 |
96c9d4ad97a56e0b644f1e837e929545b3e6fc75 | 818 | package inventory.utils;
import inventory.interfaces.*;
import inventory.models.*;
import org.jetbrains.annotations.*;
import java.io.*;
import java.util.*;
import static inventory.utils.Paths.*;
/**
* 货物反序列化器
*/
public class InventoryDeserializer extends Deserializer<Map<String, Item>>
{
public InventoryDese... | 23.371429 | 100 | 0.643032 |
d1f5f2a7aa5aa53656f6fe2aa4a25b78717415db | 34,158 | /*
* Copyright (c) 2010-2017 Evolveum
*
* 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... | 47.640167 | 235 | 0.772967 |
ecfe54330e91ceceb179872c7fcf1dc341ff0d7e | 1,963 | /*
* Copyright (c) 2012 ZES Inc. All rights reserved.
* This software is the confidential and proprietary information of ZES Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with ZES Inc. (http://www.zesinc.... | 26.527027 | 109 | 0.641365 |
66a2d018eb1737211426e1295f7a045b058aa00e | 157 | package com.jbariel.example.reflection;
public class Entry {
public static void main(String[] args) {
System.out.println("Hello moto");
}
} | 19.625 | 44 | 0.66879 |
31730680e63e30c711669f8c426b7250aa9b3536 | 986 | package org.systemsbiology.sax;
import java.io.*;
/**
* org.systemsbiology.xtandem.sax.IXMLAppender
* User: steven
* Date: 4/20/11
*/
public interface IXMLAppender extends Serializable {
public static final IXMLAppender[] EMPTY_ARRAY = {};
public void appendAttribute(String name, Object value... | 23.47619 | 60 | 0.694726 |
ab597a0bcd93a564f545a0124ce61784632b6b75 | 2,037 | /* StarFighterz
* Version 1.0
* Kyle Simmons
*
* CLASS - Boss - Creates a boss enemy
*/
package starfighterz;
import processing.core.*;
public class Boss {
private PApplet sketch;
private PImage destroyerBoss;
private PImage droidBoss;
private PImage speederBoss;
private PImage boss;
public float pos_x... | 19.586538 | 74 | 0.647521 |
5157043e2f298892e561280b9c801c0cb312130e | 9,743 | package controllers;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import org.uqbarproject.jpa.java8.extras.PerThreadEntityManagers;
import ar.com.sge.... | 39.930328 | 198 | 0.758493 |
3bacd5012c681faabdab8a06224c567b5f25ef27 | 2,119 | /*
* Copyright (c) 2005-2010, 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.ap... | 32.6 | 87 | 0.76404 |
f0f160f285090c7216351dc0e9d420fda5ca5e48 | 6,784 | package edu.uoregon.casls.aris_android.models;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import edu.uoregon.casls.aris_android.GamePlayActivity;
import edu.uoregon.casls.aris_android.data_objects.Dia... | 43.767742 | 174 | 0.787294 |
60ef6158a3a24b186f75dce7b60b530e7bac5736 | 17,469 | /*
* This file was automatically generated by EvoSuite
* Mon Dec 14 19:09:27 GMT 2015
*/
package com.lts.application.international;
import static org.junit.Assert.*;
import org.junit.Test;
import com.lts.application.ApplicationException;
import com.lts.application.international.MessageFormatter;
import edu.stanfor... | 41.592857 | 201 | 0.719274 |
e347f1e9ef95b5a269c6b43559307eec0d230519 | 2,666 | package org.sagebionetworks.repo.manager;
import java.util.Date;
import java.util.HashSet;
import org.sagebionetworks.repo.model.ACCESS_TYPE;
import org.sagebionetworks.repo.model.AccessControlList;
import org.sagebionetworks.repo.model.AuthorizationConstants;
import org.sagebionetworks.repo.model.AuthorizationUtils;... | 43 | 125 | 0.765566 |
53f0487db085630c01e69e3bc61952b3b3f3c20c | 547 | package com.example.srikate.ibeacondemo;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
/**
* Created by srikate on 10/6/2017 AD.
*/
public class SplashScreenActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstan... | 24.863636 | 81 | 0.723949 |
1d7840f5879f3d3868de1b954422ee710a94118d | 2,005 | package team.okky.personnel_management.attendance;
import lombok.*;
import team.okky.personnel_management.employee.Employee;
import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.TextStyle;
import java.util.Locale;
@Entity
@Getter
@NoArgsConstructor(access = Acce... | 31.328125 | 131 | 0.686284 |
cf826d6350e11a0946b1d8ac552b5b12e44b4f54 | 2,759 | /*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* =============================================================... | 40.573529 | 109 | 0.658934 |
ef065d56dafe8b1a4ea36960f231c87a883b53d9 | 1,743 | package org.ovirt.engine.ui.userportal.section.main.view.popup.vm;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import org.ovirt.engine.ui.common.CommonApplicationMessages;
import org.ovirt.engine.ui.common.CommonApplicationTemplates;
import org.o... | 49.8 | 192 | 0.797476 |
09ee75cae674d1f73b2cdfcd227b1aa2a62fb1e8 | 4,289 | package com.getninjas.test.jeffersonalvess.getninjastest;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.v... | 31.306569 | 95 | 0.670786 |
e8bcbff776eb0d05f578f37a464bf53d8a4c32de | 5,002 | package seedu.cakecollate.logic.commands;
import static java.util.Objects.requireNonNull;
import static seedu.cakecollate.model.Model.PREDICATE_SHOW_ALL_ORDERS;
import java.util.ArrayList;
import java.util.List;
import seedu.cakecollate.commons.core.Messages;
import seedu.cakecollate.commons.core.index.Index;
import... | 40.666667 | 116 | 0.682727 |
a2bbd78c3583e51981dbf5dd9d00c7dee1f21341 | 1,504 | /*******************************************************************************
*
* Copyright 2015 Walmart, Inc.
*
* 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
*
* ... | 37.6 | 81 | 0.676862 |
6a0ee7c590e6be99467227f3465da17769fea3ab | 1,784 | package presenter;
import listgestion.Stores;
import restaurant.Store;
import usersclass.Gerant;
import utils.RequestHandler;
import view.View;
import javax.swing.*;
import java.awt.event.ActionEvent;
import static utils.Constants.*;
public class StoreFormPresenter extends Presenter<StoreFormPresenter.Displayable> ... | 29.245902 | 168 | 0.641256 |
5c9becf8ad0af4649325fe334602f91fba889dcd | 1,406 | package com.passswordmanager.Util;
import java.awt.*;
/**
* A simple Library for controlling the Keyboard in Java.
* License : Mozilla Public License 2.0 / http://choosealicense.com/licenses/mpl-2.0/#
*
* @author AYIDouble / https://github.com/AYIDouble
* @version 1.0
* @since 22.02.2016
*/
class PressAKe... | 25.563636 | 88 | 0.503556 |
0e9a14ed21b4afc40b0a71bb0548f9f3281f03b8 | 546 | package br.com.wilson.books.service;
import java.io.IOException;
import java.util.List;
import br.com.wilson.books.model.Book;
import br.com.wilson.books.service.exception.BookNotFoundException;
import br.com.wilson.books.service.exception.RequiredFieldException;
public interface BookService {
Book save(Book book)... | 23.73913 | 68 | 0.809524 |
a80cb87586ab44f99730e4188099cf3a51f3d3b9 | 720 | package com.vsp.bd.domain;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface ParserConfigDataRep... | 32.727273 | 92 | 0.818056 |
a3dd2aa41790f2f5c712928291940aaed42052bd | 598 | package org.seasar.doma.internal.apt.processor.dao;
import example.domain.PhoneNumber;
import java.util.Optional;
import java.util.stream.Collector;
import org.seasar.doma.Dao;
import org.seasar.doma.Select;
import org.seasar.doma.SelectType;
@SuppressWarnings("deprecation")
@Dao(config = MyConfig.class)
public inter... | 29.9 | 81 | 0.777592 |
c586402071328c97e32ef634ee932bf514f957e8 | 3,402 | package com.neomades.contactexample.screens.contactmanager;
import com.neomades.app.ResManager;
import com.neomades.app.Screen;
import com.neomades.contact.Contact;
import com.neomades.contact.ContactManager;
import com.neomades.contact.ContactResult;
import com.neomades.contact.ContactResultListener;
import com.neoma... | 26.169231 | 95 | 0.744562 |
21979c5443e2f2c47548ea839377e3e8dcb9d2ce | 39,889 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Raj
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import java.util.*;
import java.lang.*;
import j... | 35.4254 | 120 | 0.593848 |
efdf5b2b360d414d8d2348c2010ae6e60bff3b35 | 6,543 | /*
* JFLAP - Formal Languages and Automata Package
*
*
* Susan H. Rodger
* Computer Science Department
* Duke University
* August 27, 2009
* Copyright (c) 2002-2009
* All rights reserved.
* JFLAP is open source software. Please see the LICENSE for terms.
*
*/
package edu.duke.cs.jflap.gui.g... | 24.143911 | 79 | 0.634571 |
49fa9eff408a0e9f849d542d4a0c57d9dbeb6bb9 | 567 | package nodemanager.gui;
import java.util.function.Consumer;
/**
*
* @author Matt
*/
public class InputRequest {
private final String message;
private final Consumer<String> doThisWithUserInput;
public InputRequest(String message, Consumer<String> doThisWithUserInput){
this.message = messa... | 21.807692 | 78 | 0.684303 |
f85e63a98563f3d10378457f40b6491eb1e45dc1 | 3,242 | /* Author: Luigi Vincent */
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.UncheckedIOException;
import java.io.Wr... | 29.743119 | 122 | 0.712215 |
0d155db72ec99e12427b7047453a930f05af6de8 | 1,864 | package com.example.virtualbank.controllers;
import com.example.virtualbank.Account;
import com.example.virtualbank.Customer;
import com.example.virtualbank.virtualBankApplication;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Sce... | 27.014493 | 106 | 0.751609 |
dfcec96ad1dd3de865c02fbe1cd649c870f713f4 | 2,856 | package concurrent;
import java.util.concurrent.CompletableFuture;
/**
* @author phil.zhang
* @date 2019/11/6
*/
public class CompletableFutureTest {
public static void main(String[] args) {
/**
* CompletableFuture: runAsync(Runnable) => CompletableFuture<void>
* CompletableFuture: supplyAsy... | 27.2 | 123 | 0.596989 |
54cf4ca731af1ea8bccc8dffeed3abe5cd4b4ed4 | 533 | package com.zs.leetcode.stack;
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
public void insert(TreeNode root, int data) { // 向二叉树中插入子节点
if (data > root.val){// 二叉树的左节点都比根节点小
if (root.right == null) {
root.right = new TreeNode(data);
... | 19.035714 | 61 | 0.577861 |
933d179d2f885cb6ad53019649a809547e420c24 | 968 | package com.liangxiaoqiao.leetcode.day.medium;
import com.liangxiaoqiao.leetcode.day.pojo.ListNode;
/*
* English
* id: 148
* title: Sort List
* href: https://leetcode.com/problems/sort-list
* desc: Sort a linked list in O(n log n) time using constant space complexity.
* Example 1:
* Input: 4->2->1... | 19.755102 | 130 | 0.594008 |
14c5b88e086479024a67b42498d9cca67614cacd | 691 | package com.mapswithme.maps.purchase;
import android.support.annotation.NonNull;
import com.android.billingclient.api.BillingClient;
import com.android.billingclient.api.Purchase;
import com.android.billingclient.api.SkuDetails;
import java.util.List;
public interface PlayStoreBillingCallback
{
void onProductDeta... | 31.409091 | 67 | 0.82055 |
d6ac675f610de666f063da01ef253b3603d0f1cf | 1,238 | package com.frinder.frinder.activity;
import android.os.Bundle;
import com.google.android.material.tabs.TabLayout;
import androidx.viewpager.widget.ViewPager;
import androidx.appcompat.widget.Toolbar;
import android.view.Menu;
import com.frinder.frinder.R;
import com.frinder.frinder.adapters.RequestsFragmentPagerAdap... | 28.790698 | 96 | 0.751212 |
7dde3f2dc9916530880462055e6499c1c0fe55aa | 1,041 | package ca.bc.gov.gwa.servlet.developerkey;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ca.bc.gov.gwa.v1.ApiService;
impor... | 31.545455 | 92 | 0.762728 |
59d216332cdc70cfcf23d69f33a44b98713b368b | 2,553 | /* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri 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... | 40.52381 | 124 | 0.662358 |
5a079df3ff771166481ef130b34d68a32894929d | 2,490 | package de.adorsys.ledgers.deposit.api.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.Currency;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DepositAccountBO {
private St... | 23.714286 | 93 | 0.662651 |
e92f8c3477ffbfa52972ce0f7669c62bd255d38c | 6,935 | package ganymede.dependency;
/*-
* ##########################################################################
* Ganymede
* %%
* Copyright (C) 2021 Allen D. Ball
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | 38.314917 | 102 | 0.527758 |
f3ef38414990ed25a8bae76fb0c20cc27276338e | 928 | package me.jessyan.mvparms.demo.di.component;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;
import dagger.Component;
import me.jessyan.mvparms.demo.di.module.ImageDetailModule;
import me.jessyan.mvparms.demo.mvp.ui.activity.ImageDetailActivity;
/**
* 通过Template生成对应页面的M... | 34.37037 | 85 | 0.830819 |
08ce9ee49ccb0675afaca8b0de4f1155ddffe915 | 2,466 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020-2030 The XdagJ Developers
*
* 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 righ... | 33.780822 | 104 | 0.698702 |
040fe1f3d95d3d356e6a6cb759e19b3a8fbe2aea | 3,749 | package com.pricemonitor.pm_backend.service.impl;
import com.pricemonitor.pm_backend.bean.pojo.Class;
import com.pricemonitor.pm_backend.bean.pojo.JdItem;
import com.pricemonitor.pm_backend.bean.pojo.JdItemExample;
import com.pricemonitor.pm_backend.mapper.JdItemMapper;
import com.pricemonitor.pm_backend.service.Clas... | 37.118812 | 94 | 0.658576 |
b3eb773e00a8f1eafc8ab355e29237cf31812d0f | 3,906 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | 39.857143 | 115 | 0.740399 |
e7669631627cea6d1d5c76067732b37dd2ec2395 | 1,438 | package br.com.helderfarias.pushandroid.helpers;
import android.app.ActivityManager;
import android.content.Context;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.common.LifecycleState;
import java.util.List;
public class SharedHelper {
public static boolean isAppInForeground(Context ... | 35.073171 | 111 | 0.648122 |
a8bd6746c15b7cd2a288b36639906f0c1b9c45af | 2,841 | /*
* Copyright 2014-present Facebook, Inc.
*
* 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... | 35.5125 | 93 | 0.778599 |
3b467d8f8ea08ef4c476ee626c99745bc2cb1ac5 | 2,209 | package com.sasiddiqui.blazefilemanager.presentation.presenter;
import com.sasiddiqui.blazefilemanager.action.PermissionActionHelper;
import com.sasiddiqui.blazefilemanager.presentation.ui.BaseView;
/**
* Created by shahrukhamd on 01/05/18.
*
* The sole responsibility of this presenter will be to manage the permis... | 38.754386 | 102 | 0.683567 |
f80577fc63c623596d2226d44440d99cc6ceb4da | 64 | /**
* DAO implementation tests.
*/
package com.epam.brest.dao; | 16 | 28 | 0.6875 |
4cae535c3827cf62451d604a753237f686821065 | 1,272 | package leetcode321_330;
/**You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.
Example 1:
coins = [1, 2, 5... | 36.342857 | 264 | 0.606132 |
18c298895e675fcf8dad752c2770c80a56a280f8 | 1,632 | /**
* Developer: Minhas Kamal(BSSE-0509, IIT, DU)
* Date: 31-May-2013
**/
package com.minhasKamal.ultimateCalculator.calculators.primeNumberHunter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.LongPredicate;
import java.util.str... | 25.904762 | 102 | 0.704657 |
682d2dd69835828ac34e063cca44bee09d7be6f4 | 9,456 | // Copyright 2014 Google 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
//
// Unless required by applicable ... | 43.178082 | 100 | 0.702517 |
571d6e4638a0384d5ccd8c4e69597c42a27c55f5 | 4,934 | package com.enremmeta.rtb.jersey;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.times;
import java.util.LinkedList;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.container.AsyncResponse;
import javax.ws.rs.core.UriInfo;
imp... | 39.472 | 98 | 0.697811 |
1dc0c18c5062d7af2df326e1b38f97ccfe2529b4 | 5,537 | package twg2.dateTimes;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
/** A formatter for {@link TimeUnit} time periods with various {@code toString()} overrides and {@code abbreviation()} to get a t... | 42.592308 | 170 | 0.731624 |
093abc87ab9cbea24c2ad11fea2204f71044a2cd | 530 | package timely.netty.udp;
import java.util.List;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.socket.DatagramPacket;
import io.netty.handler.codec.MessageToMessageDecoder;
public class UdpPacketToByteBuf extends MessageToMessageDecoder<DatagramPacket> {
... | 26.5 | 109 | 0.756604 |
0460298d2fc52c2ba9742c8b5af41cb2bd550a78 | 2,252 | package com.kurlabo.backend.controller;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.req... | 46.916667 | 343 | 0.717584 |
73549562a2dc3ed67b105d8e4ff72f887248af23 | 2,632 | /*
* 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 ... | 28.923077 | 98 | 0.716185 |
8de10fdd89e5e19d67c135fcec15a7a72dfadcb2 | 442 | package org.jboss.bakery.data.dao;
import java.util.List;
public abstract interface IAbstractDao<T>
{
public abstract void flush();
public abstract T create(T paramT);
public abstract T update(T paramT);
public abstract void delete(T paramT);
public abstract T findById(Object paramObject);
... | 19.217391 | 49 | 0.717195 |
a7e74fd25d8aa2ad247bc94012b0cfd650345bbb | 837 | package lms_rozier_convers.core.penalty;
import lms_rozier_convers.core.Duration;
/**
* An object in which we have the attributes of a penalty.
* 08/12/2015.
*/
public class Penalty {
private String type;
private Duration penaltyDuration;
/**
* CONSTRUCTOR
* @param type
* @param penalt... | 19.928571 | 62 | 0.64994 |
00f30e989098bc1c2620641b772af64a157ce52e | 4,084 | package me.kirantipov.mods.sync.api.networking;
import me.kirantipov.mods.sync.Sync;
import me.kirantipov.mods.sync.api.core.Shell;
import me.kirantipov.mods.sync.api.core.ShellState;
import me.kirantipov.mods.sync.api.core.ShellStateUpdateType;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
imp... | 32.15748 | 139 | 0.595984 |
a1248fdfa4c855d2d90788cf9e1f774b07e878ce | 2,139 | package com.company.nowcode;
import com.sun.org.apache.bcel.internal.generic.RET;
import org.junit.Test;
import java.util.Arrays;
import java.util.Comparator;
/**
* @author SmileAlfred
* @create 2021-03-28 10:13
* @csdn https://blog.csdn.net/liusaisaiV1
* @description https://www.nowcoder.com/practice/fc89745740... | 28.144737 | 186 | 0.551192 |
fb43b6a73300ddd58621ee8421cb9036e0f76f9a | 79 | package dominio;
public interface Bono {
public abstract double importe();
}
| 13.166667 | 34 | 0.759494 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.