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 |
|---|---|---|---|---|---|
fa9e941d39b5f744ce7e7fb68658b8c15c77f266 | 2,584 | package servlet;
import dao.Impl.UserDaoImpl;
import domain.User;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession... | 33.128205 | 114 | 0.594427 |
4a213e10d7d9efd93527dc216c5d4cac40bf2d01 | 1,914 | package com.yqwl.dao;
import com.yqwl.pojo.NewsTrends;
import java.util.List;
public interface NewsTrendsMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_news_trends
*
* @mbggenerated
*/
int deleteByPrimaryKey(Long id);
... | 24.857143 | 66 | 0.677638 |
c87084be61ae54e3cfaee8d667f3157bc192bf27 | 2,706 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileReader;
import java.io.FileWriter;... | 21.307087 | 92 | 0.556911 |
0dfd6ab5952790019a0c22be04adf7e14917191c | 18,204 | package com.egoveris.edt.web.pl;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.Lo... | 30.80203 | 98 | 0.702318 |
7f101cc3b98cd7c66c87c6ddf772ec5fca262ad0 | 631 | package model;
import java.util.ArrayList;
import java.util.List;
import activity.AnythingActivity;
import android.content.Context;
import android.widget.Button;
public class ModelUI {
private static ModelUI sModelUI;
private Context mContext;
private ArrayList<Button> mButtons;
private ModelUI(Context con... | 16.179487 | 52 | 0.740095 |
b9629b2b78f9baa74ea309f5ced264e9d350bfc2 | 57,767 | package chat.rocket.android.api;
import android.content.Context;
import android.os.Build;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Date;
import java.util.Iterator;
impor... | 39.111036 | 144 | 0.523292 |
4a997dbbce956ac9635a8ec32e162c35ea85838c | 3,357 | package com.easypick.web.events.vo;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MovieDataVo {
private String shortDesc;
private String description;
private String thumbnail;
private String releaseDate;
private Str... | 22.836735 | 63 | 0.70986 |
3b74f771993378e80e948c6415011194875ea7f7 | 1,633 | package org.batfish.representation.juniper;
import java.util.Collections;
import java.util.List;
import org.batfish.common.Warnings;
import org.batfish.common.util.CommonUtil;
import org.batfish.datamodel.Configuration;
import org.batfish.datamodel.routing_policy.expr.InlineCommunitySet;
import org.batfish.datamodel.r... | 33.326531 | 97 | 0.749541 |
4cb693937ac0530605058e55c663b294f2e26e06 | 4,614 | package com.azhar.komik.fragment;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotat... | 38.773109 | 114 | 0.627221 |
c620b43558eb9c3d95aa4578d224a53a695a1629 | 896 | package com.intuit.karate.junit4.syntax;
import com.intuit.karate.Runner;
import java.util.Collections;
import org.junit.Test;
/**
*
* @author pthomas3
*/
public class SyntaxPerfRunner {
@Test
public void testPerf() {
System.setProperty("karate.env", "foo");
long startTime = System.cur... | 27.151515 | 89 | 0.620536 |
915c06bb33c4d10cef287178c54a30ed59c6f460 | 708 | package com.zhidiantech.orangesample.frametest.flowsence.morebs;
import com.zhidiantech.orangesample.frametest.base.IBaseView;
/**
* -----------------------------------------------------------------
* Copyright (C) 芝点科技 wen
* -----------------------------------------------------------------
* Create: 2019/1/3 下午1... | 24.413793 | 68 | 0.481638 |
e1e1c83c0f79e80fb3da109025d0921c2d212487 | 2,671 | package io.qt.example.splitapplication;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Keep;
import android.view.View;
import android.view.View.OnSystemUiVisibilityChangeListener;
import org.qtproject.qt5.android.bindings.QtActivity;
import java.io.ByteArrayOutputStream;
import ... | 29.351648 | 119 | 0.625608 |
fdd5cc062b40a623548ab73202764c1ca377cb02 | 1,279 | package org.luvx.message.mail;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.luvx.fund.util.MarkdownUtils;
imp... | 27.212766 | 85 | 0.727131 |
113ebfa915536851dce2ec89d593e56f661c5dea | 8,009 | package com.jusenr.androidgithub.home.ui.activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view... | 31.656126 | 141 | 0.645274 |
7aa4a415532b53cc016a441054c79719e20ad18a | 700 | package com.highjet.common.modules.wechat.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 消息父类
* @ClassName: BaseMessage
* @Description: TODO(消息父类)
* @author zhaojian.zheng
* @date 2019年6月21日 上午10:19:27
*
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
p... | 21.212121 | 66 | 0.731429 |
44191a23f6fea050fd9cd6bada4b90ea0d2e9573 | 383 | /*
* @author Anshul Saraf
*/
package kushina.repository;
import kushina.model.team.TeamDTO;
import kushina.model.team.TeamDoc;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface TeamRepository extends MongoRepository<Te... | 23.9375 | 74 | 0.81201 |
eaa3b652234fad31e3db5cccdbd6c3b0fc66570b | 377 | import org.jetbrains.annotations.Contract;4
class CompoundAssignmentSideEffect {
int k;
void m() {
pureCall(nonPureCall1(), nonPureCall2()).b &= true<caret>;
}
@Contract(pure = true)
X pureCall(int i, int j) {
return new X();
}
int nonPureCall1() {
return k;
}
int nonPureCall2() {
... | 13.962963 | 62 | 0.604775 |
451cefbd1b61c45ddb8d4e5f4bdd34d0ee621a76 | 2,423 | /*
Copyright 2008-2009 Christian Vest Hansen
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 a... | 29.91358 | 86 | 0.617416 |
85e43d2e0e23ede4bf62f01b78d08b6e2a64672f | 5,515 | package com.hk.goffer.ui.cview;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfig... | 27.167488 | 113 | 0.631913 |
48ee1e90ff775007b2cd8b5d8c892ecf6a454d07 | 1,104 | /*
* 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 AQSaga;
import javax.jms.JMSException;
/**
*
* @author pnavaney
*/
public interface Osaga {
public String beginS... | 29.052632 | 104 | 0.749094 |
0598c52903bcd814a605adb3cb2260bf4d82960b | 2,391 | package teamEarth.homeSchoolHelper.configs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationMa... | 45.113208 | 210 | 0.684233 |
09ac9b77769db8b5428742f8b2c7a42c3ff54d3d | 1,822 | package com.song;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.song.saber.common.http.HttpUtil;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
/**
* Created by 001844 on 2018/5/5.
*/
public clas... | 35.72549 | 342 | 0.637212 |
3f0e2911309b7052535604ebf78a0b42e2216072 | 1,149 | package com.chutneytesting.environment.api.dto;
import static java.util.Collections.emptyList;
import static java.util.Optional.ofNullable;
import com.chutneytesting.environment.domain.Environment;
import java.util.List;
import java.util.stream.Collectors;
public class EnvironmentDto {
public String name;
p... | 33.794118 | 120 | 0.708442 |
76a5060037f6acca6b9969a6a92af471b4d48ac8 | 412 | /*
* Copyright 2020, Backblaze Inc. All Rights Reserved.
* License https://www.backblaze.com/using_b2_code.html
*/
package com.backblaze.b2.client.structures;
/**
* B2LegalHold provides constants for file lock legal hold
*/
public interface B2LegalHold {
/**
* Legal hold is on (enabled)
*/
Strin... | 19.619048 | 58 | 0.633495 |
560d4640b2e3c074042552fc1ffbd3814f7eada8 | 6,973 | /*
* Copyright 2014 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 applicable l... | 36.7 | 144 | 0.674172 |
eb99126cae050d69e0641d76c32c654bc1638387 | 591 | package br.com.renanfretta.pc.plataformacomunicacao.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;
... | 42.214286 | 176 | 0.876481 |
4d8ee5752ff0a4926b21a558a3ab41578485aaae | 171 | package net.alenzen.intelHex;
public class ValidationException extends Exception {
/**
*
*/
private static final long serialVersionUID = 8737374532913228983L;
}
| 15.545455 | 67 | 0.754386 |
6650410e015163fd4186acc1ce2666b1389c1a21 | 6,716 | package breaker;
import iut.Audio;
import iut.Objet;
import iut.ObjetTouchable;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
/**
* Objet de soutient que le joueur peut rammasser au cours du jeu qui invoque un pokémon qui aide le joueur
* @author Islem Yahiaoui, Alan Gouvernet... | 35.914439 | 114 | 0.449821 |
b9a05d21fd905af975a0e7464e44f38402d86025 | 26,819 | /*
*
* Copyright 2004 Cordys R&D B.V.
*
* This file is part of the Cordys JMS Connector.
*
* 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/L... | 31.965435 | 103 | 0.522689 |
66dee97656e98d698cf7f047025c43a7b468576e | 614 | package br.com.zup.desafiomercadolivre.desafiomercadolivre.repository;
import br.com.zup.desafiomercadolivre.desafiomercadolivre.models.Opiniao;
import br.com.zup.desafiomercadolivre.desafiomercadolivre.models.Pergunta;
import br.com.zup.desafiomercadolivre.desafiomercadolivre.models.Produto;
import br.com.zup.desafio... | 40.933333 | 74 | 0.855049 |
6af635d88ced18724e34a8bcf6aa189f71242731 | 1,206 | package com.bzh.floodserver.utils;
import java.io.Serializable;
public class JsonResult implements Serializable{
private static final long serialVersionUID = 4380426753651589809L;
public static final int SUCCESS = 0;
public static final int ERROR = 1;
private int state;
/** 错误消息 */
private String message;... | 16.985915 | 88 | 0.674959 |
e9eae4b6e2d424a2786ea5616fdfb085b697ee39 | 54 | package TreeTraversal;
public class BreadthFirst {
}
| 10.8 | 27 | 0.796296 |
82132d8609a115a55f3fa368a924d5dd2a4509e5 | 364 | package z;
import org.junit.AfterClass;
import org.junit.Ignore;
import org.junit.Test;
import ca.uhn.fhir.util.TestUtil;
public class TestTest {
@Test
@Ignore
public void testId() throws InterruptedException {
Thread.sleep(1000000);
}
@AfterClass
public static void afterClassClearContext() {
TestUtil.... | 14 | 51 | 0.75 |
d108511a33969c107dc2950b26a73d5f0bbb27ce | 1,374 | package org.tickler.model.factories;
import org.tickler.exceptions.ProductionException;
import org.tickler.model.Tickle;
import java.util.Date;
/**
* Created by jasper on 14/10/18.
*/
public class SingleTickleFactory extends TickleFactory {
private String tickleName;
private Date tickleStartDate;
priv... | 24.535714 | 76 | 0.689229 |
94ac335785fd9049d274313392a099186adae025 | 16,721 | /*
* Copyright (c) 2003-2006 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 31.728653 | 115 | 0.673524 |
5da93b147de40befe450cfa6d2e658149fecdaf0 | 2,612 | /*
* Copyright (C) 2019 AquariOS
*
* 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... | 33.922078 | 96 | 0.701761 |
64bdb648cf0a3590d258af890c056e160db5faf6 | 22,318 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 43.420233 | 163 | 0.634824 |
7530a76b504fc886c9308ec257c1e53066645a72 | 954 | package com.eerussianguy.firmalife.render;
import net.minecraftforge.common.property.IUnlistedProperty;
import com.eerussianguy.firmalife.recipe.PlanterRecipe;
public class UnlistedCropProperty implements IUnlistedProperty<PlanterRecipe.PlantInfo>
{
public int ordinal;
public UnlistedCropProperty(int ordina... | 23.268293 | 87 | 0.689727 |
ed92f5b8bd2f33d93228ef6b9a54444536f32b97 | 16,024 | package dch.eclipse.p5Export;
import java.io.*;
import java.util.*;
import org.eclipse.debug.core.ILaunchConfiguration;
import com.sun.org.apache.xml.internal.serialize.LineSeparator;
import processing.app.Base;
import processing.app.Preferences;
import processing.core.PApplet;
import processing.core.PConstants;
p... | 34.093617 | 169 | 0.620819 |
ee0fe1eb377f6d4e9256257dc49465f219384ceb | 223 | /*
* Copyright (c) 2016 OmniFaces.org. All Rights Reserved.
*/
package org.omnifaces.serve.rest;
import org.omnifaces.serve.context.Context;
/**
* The REST context.
*/
public interface RestContext extends Context {
}
| 17.153846 | 57 | 0.726457 |
2778a86c818ab94243ed1d724a9435cd8e22d7e5 | 453 | package linkedlists.lockfree;
/**
* Parent Node class used for the Run-Time Type Identification (RTTI)
* version of Harris-Michael's variant in Java. This is the code used in:
*
* A Concurrency-Optimal List-Based Set. Gramoli, Kuznetsov, Ravi, Shang. 2015.
*
* @author Di Shang
*/
public interface No... | 22.65 | 80 | 0.675497 |
eef41850e5e3d57e80c02640b056e291e441eb54 | 1,405 | package org.andengine.extension.multiplayer.protocol.adt.message.server;
import org.andengine.extension.multiplayer.protocol.adt.message.Message;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 19:20:38 - 02.03.2011
*/
public abstract class ServerMessage extends Mess... | 33.452381 | 79 | 0.26548 |
51c7d0cfbabf6c50eae9c5b68948a321681167f6 | 2,167 | package com.salesforce.bazel.sdk.bep.event;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.junit.Test;
public class BEPBuildConfigurationEventTest {
private static final String confi... | 45.145833 | 121 | 0.620674 |
0caa8609c55eb6c15acb07a9d75cf7e437ff75ea | 4,886 | /*
* Copyright 2007-2009 Hilbrand Bouwkamp, hs@bouwkamp.com
*
* 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... | 40.716667 | 129 | 0.700982 |
0a84978e851ad11be2396e05fea1279bf390903a | 9,082 | // Copyright 2008 Google 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 agreed to in writ... | 32.669065 | 98 | 0.67386 |
d60ebe0d31f1684be411b8f06d64450fce44023a | 428 | package pl.jakubz.simplehouse.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class LoginController {
public LoginController() {
}
@GetMapping("/loginForm")
public String showLogin(){
return "login";
... | 19.454545 | 58 | 0.693925 |
506518dc4d80e01847914013ffea76238b6ae7da | 3,453 | package de.androbin.remote.http;
import de.androbin.remote.http.message.*;
import de.androbin.remote.http.message.Message.*;
import java.io.*;
import java.net.*;
import java.util.concurrent.*;
import java.util.concurrent.locks.*;
import java.util.function.*;
public final class NetworkHelper {
private static final S... | 23.979167 | 128 | 0.607877 |
f6484e6853529ddcf6a9bbbbd4b73d8f2cf90f3b | 8,646 | /*******************************************************************************
* * Copyright 2015 Impetus Infotech.
* *
* * 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
*... | 30.020833 | 118 | 0.53331 |
45bde5534d5fa8f5c610f8fa110254009555f228 | 258 | package com.jacobmountain.resolvers.dto;
import lombok.Data;
import java.util.List;
@Data
public class FriendsConnection {
private Integer totalCount;
private List<FriendsEdge> edges;
private List<Character> friends;
private PageInfo pageInfo;
}
| 13.578947 | 40 | 0.782946 |
8c21037a8140924739fe28a4bc13ff12573ee7cb | 1,269 | package com.ThreadPool;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
public class ThreadHistory3 {
private static final int threadNum = 100;
private static final Executor exe... | 21.508475 | 78 | 0.635146 |
b5d68ec4c5710018ac353d1c36b995fb8e29116d | 5,607 | /*
* 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 ma... | 34.398773 | 100 | 0.64366 |
2e8a9df31612d0bc6ccbad2a5f0d0a983efcf131 | 13,079 | package org.contentmine.ami.tools;
import java.io.File;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.contentmine.ami.tools.AMIImageTool;
import org.junit.Test;
/** test cleaning.
*
* @author pm286
*
*/
public class AMIImageTest {
private static final String OLD_DEVTEST = "/Users/pm... | 27.768577 | 100 | 0.653108 |
edf58c0ad54ff22bb496c36cd52563c58c70397a | 27,227 | /*
* 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 BeanBagger;
import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.VirtualMachine;
impo... | 49.235081 | 214 | 0.426525 |
8503a02f385d4f86246122b1ffda572bf015eb59 | 3,329 | package com.xianzhi.integration.adapter.settings;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.xianzhi.integration.R;
import com.xianzhi.integration.bean.SecEditBean;
import java.util.ArrayList;
imp... | 27.97479 | 86 | 0.644638 |
42e85781778d66277582c9afade8ecaa1379885e | 367 | package org.light4j.exception.relation;
import java.util.Date;
public class NullTest
{
public static void main(String[] args)
{
Date d = null;
try
{
System.out.println(d.after(new Date()));
}
catch (NullPointerException ne)
{
System.out.println("空指针异常");
}
catch(Exception e)
... | 15.956522 | 44 | 0.613079 |
d472440fa0a0f45ec43787b27eaaf4cacf1f9cf5 | 630 | package com.joindata.inf.common.support.idgen.component.sequence.impl;
import javax.annotation.Resource;
import com.joindata.inf.common.support.idgen.component.Sequence;
import com.joindata.inf.common.support.idgen.core.IdRangeFactory;
import lombok.Setter;
@Setter
public abstract class AbstractBaseSequen... | 24.230769 | 71 | 0.706349 |
718a26bd7c46c25d13a6f4dfb82bee4e4e25b951 | 1,479 | // This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time... | 25.947368 | 82 | 0.701826 |
59fb1574d51945957e86bdf9e2d97d5f20a7ab0c | 1,060 | package com.stubbornjava.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.net.URL;
import com.google.common.base.Charsets;
import com.google.common.io.CharSource;
public class Resources {
// {{start:asString}}
public static String asString(String resource) {
URL url = c... | 30.285714 | 101 | 0.659434 |
29be0804d07b2ed335591777a920ec00a3dc5c10 | 8,660 | package sk.upjs.ics.tennismanager;
import java.awt.Color;
public class TurnajForm extends javax.swing.JDialog {
private TurnajDao turnajDao = DaoFactory.INSTANCE.getTurnajDao();
private Turnaj turnaj;
public TurnajForm(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initCom... | 48.651685 | 169 | 0.627598 |
3bce44ab850787c5ff64b7380d09721ebe4c7ddd | 3,725 |
package com.leakyabstractions.result;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.ap... | 36.881188 | 114 | 0.637047 |
8bfa55726db7aa78d1bb2a9b77cda6212235d82e | 640 | public class Experiment {
public Object function() {
int i = 1_0000_0000;
class A {
public Object function() {
int i = 1_0000_0000;
class A1 {
public Object function() {
return new A1();
}
... | 25.6 | 52 | 0.421875 |
2e5c8f41ec7a05bc66ea8518eb82020ebb14326d | 458 | package com.atguigu.gulimall.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.coupon.entity.SpuBoundsEntity;
import java.util.Map;
/**
* 商品spu积分设置
*
* @author linfeng
* @email 951243590@qq.com
* @date 2021-06-05 15... | 21.809524 | 69 | 0.770742 |
ce82876cd87a2104b2a40f41854486ed7cb4db6d | 348 | package com.github.kubesys.vsphere.get;
import com.github.kubesys.vsphere.VsphereClientTest;
/**
* Unit test for simple App.
*/
public class GetResourcePoolTest extends VsphereClientTest {
public static void main(String[] args) throws Exception {
System.out.println(getClient().virtualMachinePools().getResource... | 23.2 | 87 | 0.767241 |
83a7d9b1575ad2bb61a09a2cd4785ef83dbfcea5 | 8,503 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 40.490476 | 113 | 0.686464 |
c037c343d0c00f12bc86cc251ec0b7ac0e7ba6d4 | 3,338 | /**
* Copyright 2016 William Van Woensel
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 ... | 21.261146 | 80 | 0.683044 |
ed5c508923e5ce2141946e5f3ae8a107fa4e418d | 3,404 | package com.applurk.plugin;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
imp... | 39.581395 | 125 | 0.709753 |
b71785ff8a2a86924b24160353e7fd645fb2234b | 2,833 | package com.emc.rpsp.imageaccess.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
imp... | 51.509091 | 190 | 0.810448 |
c7492d812d5625274ed1e9f9deec15eb689efe98 | 690 | package org.interledger.encoding.asn.codecs;
/**
* A base for codecs for primitive ASN.1 types.
*/
public abstract class AsnPrimitiveCodec<T> extends AsnObjectCodecBase<T> {
private final AsnSizeConstraint sizeConstraint;
public AsnPrimitiveCodec(AsnSizeConstraint sizeConstraint) {
this.sizeConstraint = s... | 24.642857 | 74 | 0.769565 |
72987f2fcb292b897a886d3b545bd500175c32dd | 1,057 | package zzGeneradordeEncuentros;
import java.util.Vector;
public class Equipo {
private int NdeEquipo;
private Vector<Actividad> Va = new Vector<Actividad>();
private Vector<Equipo> Ve = new Vector<Equipo>();
private Vector<Integer> Hora = new Vector<Integer>();
public Equipo(int nde) {
NdeEquipo=... | 18.54386 | 57 | 0.62157 |
e24768f48e55eb6e4e0fee795d96d50a64308af3 | 986 | package com.rustam.project.endpoint;
import com.google.inject.Inject;
import com.google.inject.servlet.RequestScoped;
import com.rustam.project.model.entity.Transfer;
import com.rustam.project.model.response.MessageResponse;
import com.rustam.project.service.TransferService;
import javax.ws.rs.GET;
import javax.ws.rs... | 23.47619 | 64 | 0.737323 |
440a79a91078ca898870f7fa59666fdb2c093b96 | 3,262 | /* Mazer5D: A Maze-Solving Game
Copyright (C) 2008-2013 Eric Ahnell
Any questions should be directed to the author via email at: products@puttysoftware.com
*/
package com.puttysoftware.mazer5d.objects.abc;
import com.puttysoftware.mazer5d.Mazer5D;
import com.puttysoftware.mazer5d.abc.MazeObject;
import com.puttysof... | 32.949495 | 87 | 0.667382 |
95783b9090f200f6d9b9f6b9d7db7bda4b1773a6 | 6,899 | /*
* Copyright (C) 2019 Guilherme Maeda
*
* 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... | 40.345029 | 109 | 0.80229 |
a5487013af8a8b4cf61165ff58b21b36e560db7b | 1,535 | /**
* Copyright 2011, Kevin Lindsey
* See LICENSE file for licensing information
*/
package com.kevlindev.pinconverter.switches;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.kevlindev.pinconverter.commands.ICommand;
import com.kevlindev.pinconverter.commands.TransformCom... | 19.679487 | 105 | 0.701629 |
acfb43088898400ca80ea6691b848fc469958e50 | 580 | package org.jxls.examples;
import java.io.IOException;
import java.text.ParseException;
import org.junit.Test;
import org.jxls.JxlsTester;
import org.jxls.common.Context;
import org.jxls.entity.Department;
/**
* Two nested each commands demo
*/
public class TwoInnerLoopsDemo {
@Test
public void test() thr... | 23.2 | 70 | 0.708621 |
7056f3afc3e9ccfd8d53a9e9cdf1c4d2e1983ce8 | 3,228 | /**************************************************************************/
/* Implementation of a simple semi-unification algorithm (Henglein 1993) */
/* Copyright (C) 2012. Michael Lienhardt */
/* */
/* This pro... | 44.219178 | 132 | 0.527571 |
f7e59587e1b3f12ea475e9a3a3c25849e79337a8 | 1,481 | package com.tdxy.oauth.model.bo;
import java.util.Date;
public class ZFCookie {
private String stuNumber;
private String cookieHash;
private String cookiePrefix;
private String cookieValue;
private Date updateTime;
public ZFCookie() {
}
public ZFCookie(String stuNumber, String co... | 22.784615 | 99 | 0.653612 |
f189799c960a94110eb5eed1599d18bb8ad3a321 | 3,664 | package com.okanciftci.cukatify.services.impl;
import com.okanciftci.cukatify.common.enums.RoleNames;
import com.okanciftci.cukatify.entities.mongo.Role;
import com.okanciftci.cukatify.entities.mongo.User;
import com.okanciftci.cukatify.exceptions.UsernameAlreadyExistsException;
import com.okanciftci.cukatify.persist... | 29.312 | 86 | 0.664847 |
35cb366e29310924317447d5fbfccab5dcf48480 | 6,454 | /**
* This code was auto-generated by a tool.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.test.framework.datafactorycommerce;
import java.util.List;
import java.util.HashMap;
import java.util.ArrayList;
import ... | 52.471545 | 334 | 0.768671 |
3ed5107e8bbf1648e70013fd2249a6f08938ac19 | 750 | package com.baeldung.datetime;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.Locale;
public class UseDateTimeFormatter {
public String formatAsIsoDate(LocalDateTime localDateTime) {
return localDateTime.format(DateTimeForma... | 34.090909 | 113 | 0.773333 |
f9918859bdf1c8a3d3df73fbc6664064ab47fa73 | 113 | package br.edu.ifrn.projetoifjics.app.enums;
public enum RoleEnum {
ROLE_ROOT, ROLE_ADM, ROLE_MOD, ROLE_USER
}
| 18.833333 | 44 | 0.787611 |
578f79ae63cf9331e3d938fcb67d70da6de3e22e | 3,705 | /*
* MIT License
*
* Copyright (C) 2020 The SimpleCloud authors
*
* 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, c... | 28.282443 | 114 | 0.565992 |
eac62d25adb1b6bd4d58494e7ef8fbf9e5292dfb | 699 | package fziviello.sharedpreferences;
/**
* Created by fziviello on 08/03/18.
*/
public class ModelUser {
int id;
String nome;
String cognome;
public ModelUser(int id, String nome, String cognome) {
this.id = id;
this.nome = nome;
this.cognome = cognome;
}
public i... | 15.886364 | 59 | 0.560801 |
2e4e461652093803fe0e367258ec9a1059034b76 | 41 | package assets.mmoverhaul.textures.block; | 41 | 41 | 0.878049 |
9fff626266bf81398e8e26458bcf9cdbef2ca6f7 | 851 | package org.batfish.representation.frr;
import java.io.Serializable;
/**
* Route map statement that calls another routemap.
*
* <p>Executed after any Set Actions have been carried out. If the route-map called returns deny
* then processing of the route-map finishes and the route is denied, regardless of the Match... | 31.518519 | 99 | 0.745006 |
10e6c00d2fb83f9e01325cd4fead48b0c7045f45 | 2,721 | package com.summerbrochtrup.myeats.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.w... | 34.884615 | 100 | 0.701948 |
385a4698a3ea81849ff35d92d73bbe2ee741bf39 | 48,289 | /*
* ============LICENSE_START==========================================
* org.onap.music
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
* Licensed under the Apache Licens... | 49.476434 | 123 | 0.647912 |
2ddc8bd073791420cf8ef0e47aa7495d453f57c1 | 851 | package com.vanniktech.emoji.<%= package %>.category;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;
import com.vanniktech.emoji.emoji.EmojiCategory;
import com.vanniktech.emoji.<%= package %>.R;
import com.vanniktech.emoji.<%= package %>.<%= name %>;
... | 34.04 | 121 | 0.714454 |
250a7ccb68820a674a9c6fd18a38eac7cad30c52 | 2,186 | /*
* Copyright (C) 2016-2019 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 29.945205 | 90 | 0.76075 |
4e3ac187beff2f21f1988a12be9671efc7682829 | 1,473 | package io.ebean.enhance.entity;
import io.ebean.enhance.asm.AnnotationVisitor;
import io.ebean.enhance.asm.Attribute;
import io.ebean.enhance.asm.FieldVisitor;
import io.ebean.enhance.common.EnhanceConstants;
import static io.ebean.enhance.Transformer.EBEAN_ASM_VERSION;
/**
* Used to collect information about a fi... | 23.380952 | 83 | 0.68907 |
e5a13d215925fd38c29d8e38526bee47bf22e8d0 | 249 | package black.libcore.io;
import top.niunaijun.blackreflection.annotation.BClassName;
import top.niunaijun.blackreflection.annotation.BStaticField;
@BClassName("libcore.io.Libcore")
public interface Libcore {
@BStaticField
Object os();
}
| 20.75 | 61 | 0.791165 |
6759a8e6a17443c0b16f9e408d1ee0279795a7ba | 651 | package com.yahoo.r4hu7.moviesdoughnut.data.local.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import com.yahoo.r4hu7.moviesdoughn... | 34.263158 | 84 | 0.814132 |
76236cbab7d18bc347148ad7200cf1b8f4e41f9b | 283 | package com.github.entropyfeng.simpleauth.config.anno;
import java.lang.annotation.*;
/**
* @author entropyfeng
* @date 2019/6/12 15:40
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PostAuth {
String value()default "";
}
| 18.866667 | 54 | 0.734982 |
31e44698fce504356e93247bb19daa5a13d431e2 | 5,580 | /*
* 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 ... | 31.173184 | 100 | 0.659857 |
81b9b9f4cf4d7a8983f0ea3dc445ae86419093f6 | 1,112 | package fwcd.fructose.swing;
import java.awt.Color;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
/**
* A viewable text component that
* is intended to provide helpful
* information.
*
* @author Fredrik... | 20.981132 | 79 | 0.703237 |
312daaf8cbb1ddb9ac19e8b31940276b2967496a | 4,167 | package com.upseil.gdx.util;
import java.util.Collection;
import java.util.function.Consumer;
import java.util.function.IntConsumer;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.CharArray;
import com.badlogic.gdx.utils.FloatArray;
import com.badlogic.gdx.utils.IntArray;
import com.badlogic.gdx.u... | 33.071429 | 108 | 0.535157 |
168705e9544bb3e97f5fb6e5f5003959e1f2c5c7 | 644 | package com.att.research.music.main;
public class WriteReturnType {
private ResultType result;
private String message;
public WriteReturnType(ResultType result, String message) {
super();
this.result = result;
this.message = message;
}
public ResultType getResultType() {
return result;
}
public String ... | 18.4 | 60 | 0.725155 |
d2357c891f25c6f5e2e541bc391e7bc4d60a4eb9 | 3,869 | package org.contest.scrapper;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.jsoup.Jsoup;
import org.jsoup.helper.StringUtil;
import org.jsoup.nodes.Document;
import java.io.FileWri... | 39.479592 | 158 | 0.636599 |
978e997fc9c040233189dfabb5aa8d3c664822a4 | 2,183 | package com.ilcarro.qa11;
import org.openqa.selenium.By;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class CreateAccountTest extends TestBase {
//preconditions: user should be logged out
@BeforeMethod
public void ensurePreconditions() {... | 30.319444 | 99 | 0.628493 |
574a7951e38af8dc7f4f07281bf7385ba61faa9c | 1,785 | /*
*
* Copyright 2008-2021 Kinotic and 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 34.326923 | 95 | 0.755742 |
d5c0be2e1c5384b45755b1acfd4b93f24e25e4b8 | 2,031 | package cn.edu.nju.software.sda.plugin.function.info.impl.demo;
import cn.edu.nju.software.sda.core.domain.dto.InputData;
import cn.edu.nju.software.sda.core.domain.dto.ResultDto;
import cn.edu.nju.software.sda.core.domain.info.InfoSet;
import cn.edu.nju.software.sda.core.domain.info.PairRelation;
import cn.edu.nju.so... | 36.927273 | 103 | 0.750862 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.