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 |
|---|---|---|---|---|---|
7125046755283f82f3483f568cb504cf53e9b370 | 886 | package com.compomics.jtraml.web.listener;
import com.compomics.jtraml.model.ConversionJobOptions;
import com.vaadin.ui.Button;
/**
* This class is a
*/
public class RtShiftCheckBoxListener implements Button.ClickListener {
private ConversionJobOptions iConversionJobOptions;
public RtShiftCheckBoxListener... | 30.551724 | 86 | 0.715576 |
99affcb3b2bab7ab4b69624d1e0e8312732020f5 | 9,035 | /*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... | 36.877551 | 143 | 0.656115 |
718222ce603de35e402071e2a355dab3c8642324 | 753 | package trackitnus.model.task;
import java.util.function.Predicate;
import trackitnus.model.commons.Code;
/**
* Tests that a {@code Task}'s {@code code} equals to a given {@code code}
*/
public class TaskHasCodePredicate implements Predicate<Task> {
private final Code code;
public TaskHasCodePredicate(Co... | 25.1 | 81 | 0.667995 |
5cbfee99ca2b9aa24234c5a3f252b4392e7d578b | 675 | package com.jxtech.app.pubrole;
import com.jxtech.jbo.Jbo;
import com.jxtech.jbo.JboSetIFace;
import com.jxtech.jbo.util.JxException;
/**
* 康拓普角色信息- 健新科技优化实现
*
* @author wmzsoft@gmail.com
* @date 2014.05
*/
public class PubRole extends Jbo {
private static final long serialVersionUID = 1203011774084075352L... | 24.107143 | 169 | 0.722963 |
d4e17b2e1246248f132be5bd4f126f2c317b8d6c | 494 | package dev.vality.newway.dao.deposit.revert.iface;
import dev.vality.dao.GenericDao;
import dev.vality.newway.domain.tables.pojos.DepositRevert;
import dev.vality.newway.exception.DaoException;
import java.util.Optional;
public interface DepositRevertDao extends GenericDao {
Optional<Long> save(DepositRevert r... | 27.444444 | 77 | 0.811741 |
13bbd1f5a0cd398b5936930a04b49c659331fbd6 | 1,676 | package me.stupideme.zhihucolumn;
/**
* Created by StupidL on 2016/11/12.
*/
public class Constants {
public static final int MESSAGE_COLUMN_RESULT = 0x0001;
public static final int MESSAGE_ARTICLE_RESULT = 0x0002;
public static final String EXTRA_COLUMN_SLUG = "slug";
public static final String ... | 45.297297 | 89 | 0.790573 |
e4d1959001b3b90a6a06dd0506bde80b401ddd10 | 4,195 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 48.218391 | 161 | 0.796186 |
2653bbac1224295a4b9f94b1e36dc401012ce30d | 563 | package apollo.tianya.base;
import android.app.Application;
import android.content.Context;
import android.content.res.Resources;
/**
* Created by Texel on 2016/5/30.
*/
public class BaseApplication extends Application {
static Context _context;
static Resources _resource;
@Override
public void onC... | 21.653846 | 58 | 0.698046 |
24b2338ab1206e8ba509a2f4339d24efd29d8423 | 2,354 | /*
* 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 ... | 35.666667 | 102 | 0.728122 |
829aa26cddbf72326bab3cd51a1cbb7f3d593feb | 698 | package com.skeqi.framecore.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.ann... | 27.92 | 101 | 0.826648 |
7acb650f8877062cdd26e1583193222734a27afe | 394 | package org.lforeman;
import org.lforeman.controllers.EmailController;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import static org.springframework.boot.SpringApplication.run;
@SpringBootApplication
public class GroceryMvcApplication {
public static void main(String[] args) {
run(Grocer... | 23.176471 | 68 | 0.822335 |
b8d6ab2c7934ccae09fcaa13646aaaea48c27509 | 3,110 | /*
* $Id$
*/
/*
Copyright (c) 2000-2010 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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, incl... | 38.395062 | 79 | 0.755305 |
2277655fec3627938d2fb52f9a5bf116e467839c | 923 | // Generated by Haxe 4.1.4
package verb;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public class Verb extends haxe.lang.HxObject
{
public static void main(String[] args)
{
haxe.java.Init.init();
verb.Verb.main();
}
public Verb(haxe.lang.EmptyObject empty)
{
}
public Verb()... | 21.97619 | 297 | 0.665222 |
2a1915317cb2ab2e780338e77b4594c807b74c09 | 170 | package com.yimei.attendance.service;
import org.springframework.stereotype.Service;
/**
* Created by xiangyang on 15/11/5.
*/
@Service
public class UserService {
}
| 14.166667 | 46 | 0.747059 |
c80ea66031ea2c9620ba6c68f42f88751aa520b9 | 3,379 | package me.angelstoyanov.sporton.management.feedback.repository;
import io.quarkus.mongodb.panache.PanacheMongoRepository;
import io.quarkus.runtime.annotations.RegisterForReflection;
import me.angelstoyanov.sporton.management.feedback.exception.RatingAlreadyExistsException;
import me.angelstoyanov.sporton.management.... | 43.320513 | 160 | 0.690737 |
57d1069ec3ea8bbdd85312f341f327a958ca2a4c | 714 | package cn.edu.seu.alumni_server.controller.dto;
import java.lang.reflect.InvocationTargetException;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.beanutils.BeanUtils;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityBasicInfoWithCurr... | 31.043478 | 90 | 0.852941 |
ee8181f93ae3b197b9429e973710eba6c5152705 | 956 | package com.vanguard.web.automation.tools.selenium;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
public class SeleniumHelperUtilTest {
@Test
public void updateXPathIfNeededForSubElementsWhenUsingXPathOfRelativePathTest() {
By expected = By.xpath(".//input");
By actual = Sele... | 29.875 | 99 | 0.775105 |
1c6678cf72cff62bf23d9f5fa9c315d9ba9a1925 | 1,661 | package pmel.sdig.cli;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.OptionGroup;
import org.apache.commons.cli.Options;
/**
* Created by rhs on 11/9/17.
*/
public class FastCleanOptions extends Options {
OptionGroup utilities = new OptionGroup();
Option root = new Option("r", "root", ... | 41.525 | 157 | 0.662252 |
9cc281a47f32398e48ccf898064ceef3e0c59c73 | 7,399 | /**
* 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 under ... | 38.73822 | 120 | 0.720773 |
a2aaf20df830147f7792e878ee3d3169d4a16190 | 1,756 | package com.moo.tabsdemo.utils;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.widget.RadioGroup;
import java.util.List;
/**
* name:FragmentChangeUtils
* author:moo.
* date:2016/8/1.
... | 29.762712 | 115 | 0.624146 |
db4230e3e116892450a37576cbc3cbe956c5b950 | 1,266 | package api;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class AufgabeScannerTest {
AufgabeScanner aufgabeScanner = new AufgabeScanner();
@Before
public void setUp() throws Exception {
}
@Test
public void testOperation() {
char operator = '+';
... | 25.32 | 83 | 0.662717 |
acad9173bc1e462ede151ce3b57696affc4dea61 | 129 | public class M6 {
public static void main(String[] args) {
M6Class m6Class=new M6Class(100,3);
}
} | 25.8 | 44 | 0.550388 |
d51d0319163aedd308dc70a56dfbcad407523b89 | 2,801 | package org.endeavourhealth.core.database.rdbms.jdbcreader.models;
import org.endeavourhealth.core.database.dal.jdbcreader.models.BatchFile;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
... | 27.460784 | 73 | 0.686541 |
1960ea63b4e4852fed99beb3a99880dae07d915b | 1,175 | import java.util.Scanner;
public class ProcessChoose {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("if单选泽请输入");
String s = scanner.nextLine();
System.out.println("if双选择请输入");
int score = scanner.nextInt();
/*
* if 选择结构
*/
// if 单选择结构
if(s.equals("... | 18.650794 | 42 | 0.603404 |
8312417bfcdc2597f14387c67646400f0bbd75d2 | 4,024 | package org.opennms.newts.stress;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import org.opennms.newts.api.Sample;
import org.opennms.newts.api.SampleProcessorService;
import org.opennms.newts.api.SampleRepository;
import org.opennms.newts.cassandra.CassandraSession... | 32.192 | 114 | 0.580517 |
5ac2a8e6f09cd1f4a883d1f143739a9c3a756b72 | 14,397 | import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.junit.BeforeClass;
import org.junit.Test;
import nl.tue.id.oocsi.client.OOCSIClient;
import nl.tue.id.oocsi.client.protocol.DataHandler;
import n... | 27.112994 | 114 | 0.687157 |
3981b35e1baebf127ab59e4379c502117b31be17 | 1,133 | import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;
import audio.AudioLoader;
import image.ImageLoader;
/**
* A quick class for a clickable image that plays an audiofile when clicked.
*
* @author Daniël Barenholz
*/
public class... | 26.348837 | 83 | 0.622242 |
a7b41fd3667107f5fd72e6633d06d0676f1adeff | 3,391 | package com.fasterxml.jackson.core.json.async;
import java.io.IOException;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.async.AsyncTestBase;
import com.fasterxml.jackson.core.json.JsonFactory;
import com.fasterxml.jackson.core.testsupport.AsyncReaderWrapper;
public class AsyncUnicodeHandlin... | 34.602041 | 67 | 0.635506 |
64b38629e465fdfbc3c9416a036415063675fcd6 | 736 | package com.frozenorb.meetup.backend.adapter;
import com.frozenorb.meetup.backend.game.GameState;
import com.frozenorb.qlib.scoreboard.IScoreboardAdapter;
import com.frozenorb.qlib.tablist.ITablistAdapter;
import org.bukkit.entity.Player;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public ... | 24.533333 | 109 | 0.754076 |
8c9047c2e96d614d9521d5b8ad97f9a2a9144b2d | 11,916 | /*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... | 44.629213 | 139 | 0.722474 |
a5bdff6423cde6a5026f2d73ef1822c0482284f1 | 6,251 | package com.ocp.common.zookeeper.template;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.ocp.common.constant.CommonConstant;
import lombok.SneakyThrows;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.cache.*;
import org.apa... | 27.060606 | 93 | 0.609023 |
bf5c87452a86f13bba6ede4c36acff699d7913ee | 2,368 | /*
* 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 book.vue.control;
import book.model.DB;
import book.model.Entry;
import javafx.animation.Transition;
import javafx.fxml.FXML;
... | 22.769231 | 79 | 0.570101 |
23928dabfb5f5fee500105c0bed566c2ba8ecf3a | 4,619 | package edu.harvard.fas.rbrady.tpteam.tpmanager.hibernate.test;
import java.util.Hashtable;
import junit.framework.Test;
import org.eclipse.hyades.test.common.junit.DefaultTestArbiter;
import org.eclipse.hyades.test.common.junit.HyadesTestCase;
import org.eclipse.hyades.test.common.junit.HyadesTestSuite;
im... | 30.793333 | 142 | 0.704914 |
5bfcd92edd9bd190e49d283239cf45446f67513c | 470 | package com.atguigu.gmall.pms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.common.bean.PageResultVo;
import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
/**
* sku图片
*
* @author Zgp
* @email zgp8050@gmail.com
* @da... | 23.5 | 69 | 0.778723 |
b17524a10a4da00c10a38c42968a42ac3bcb00a2 | 400 | /*
* 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 br.com.image.util;
/**
*
* @author Jesimar S. Arantes
*/
public class Constants {
public static final int WIDTH_F... | 21.052632 | 79 | 0.67 |
14538cdf41b9a1ed57b5394940730f1708113ef8 | 2,848 | /*
* Copyright 2018 Netflix, 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 t... | 35.160494 | 105 | 0.739466 |
9f0b222d3c7064501818e7a99815399b3b479c91 | 2,168 | /*
* Copyright 2013-2017 EMC Corporation. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* or in the "license" ... | 27.794872 | 102 | 0.691882 |
ca091ace3474e52adbb86280dd1e3a6661602014 | 864 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.webui.search;
public class SearchProcessorException extends Exception
{
pu... | 24 | 69 | 0.674769 |
fcd9766789f987e7bcad9d96a3cbaa2ce655eba1 | 3,356 | /*
* 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 ... | 33.56 | 133 | 0.732122 |
62f31cd4b2252b2b43d8900ea046a7c05f6f95aa | 1,702 | package lapr2.ClientServicesProvider.aplicationagpsd.Records;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import lapr2.ClientServicesProvider.aplicationagpsd.Model.AffectedTo;
import lapr2.ClientServicesProvider.aplicationagpsd.Model.RequestedServiceDescription;
/**
*
* @author b... | 30.392857 | 106 | 0.688602 |
5d6a1dc8a6eeb005659f70d68a974413d4b2bf29 | 6,036 | /*
* 3D City Database - The Open Source CityGML Database
* https://www.3dcitydb.org/
*
* Copyright 2013 - 2021
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.lrg.tum.de/gis/
*
* The 3D City Database is jointly developed with the following
* cooperation partners:
... | 36.581818 | 124 | 0.693837 |
86564cf4c9fd955d8938d9c53de32f9544eec869 | 6,722 | /**
* Mars Simulation Project
* Relax.java
* @version 3.1.0 2017-09-13
* @author Scott Davis
*/
package org.mars_sim.msp.core.person.ai.task;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
impo... | 28.726496 | 101 | 0.669592 |
38ab1cd51a5fb7983e8fe03799cd78f418d080bb | 2,069 | package com.forte.qqrobot.component.forhttpapi.beans.response;
/**
* @author Ricardo
* @create 2019-03-22 16:44
**/
public class Resp_getMoreGroupHeadimg implements RespBean<Resp_getMoreGroupHeadimg.MoreGroupHeadimg[]> {
private Integer status;
private MoreGroupHeadimg[] result;
private Strin... | 20.69 | 105 | 0.518125 |
49f7dd783dfd1680325ab88abd66f2c08402eef0 | 1,004 | package com.wednesday.assignment.relaxicab.data.entity;
import lombok.*;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Timestamp;
@Getter
@S... | 21.361702 | 55 | 0.723108 |
ab4134684300877d926f63ebc8b7f423b1c0116e | 4,920 | package Bussiness_Layer.Supplier;
import Bussiness_Layer.Utility;
import DataLayer.DalObjects.SupplierHandler;
import java.sql.SQLException;
import java.time.LocalDate;
import java.time.temporal.TemporalAdjusters;
import java.util.List;
import java.time.DayOfWeek;
import java.util.Set;
public class Supplier {
... | 30.184049 | 221 | 0.672561 |
becdc4e744e7f4fec4318e2c2b897a647c14df2d | 1,301 | package fishmaple.DTO;
/**
* @author 鱼鱼
* 资源类
* */
public class Resource {
private String id;
private String name;
private String describe;
private int readonly;
private String path;
private String dateline;
/** 资源下载url*/
private String downloadCode;
public String getDownloadCode... | 17.821918 | 54 | 0.590315 |
0711bf521dd858fce0829661c9a53903c018c39e | 929 | package lab.work.file;
import java.io.File;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DirectoryInspector {
private static final Logger logger = LoggerFactory.getLogger(DirectoryInspector.class);
public static void main(String[] args) {
File dir = new File("C:/dev/temp");
inspect(di... | 20.195652 | 88 | 0.634015 |
8824cc95ce045d15c4d9150e147ad0fb146cd988 | 3,671 | package com.askey.firefly.zwave.control.utils;
import android.app.Activity;
import android.content.Context;
import android.os.Environment;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter... | 21.982036 | 103 | 0.629256 |
a06eb3ce1be149f49dd9bc3d56ad8ec8ef6b1c61 | 1,749 | package roxtools;
import java.util.BitSet;
final public class BitSetBooleanMatrix {
final private int width ;
final private int height ;
final private BitSet bitSet ;
public BitSetBooleanMatrix(boolean[][] matrix) {
this.width = matrix.length;
this.height = matrix[0].length;
this.bitSet = new BitSet(widt... | 22.423077 | 133 | 0.590623 |
42e10744817c03f05e2f5656fb5071c46a7b0280 | 1,427 | package com.anb.coinconverter.feature;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import androi... | 28.54 | 122 | 0.723896 |
75d7c4f25f344eacc73b32526ea94eff60c62a99 | 2,973 | package com.senzhikong.config;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;
import java.util.Map;
/**
* @author Shu.zhou
* @date 2018年12月7日下午3:07:14
*/
public abstract class ConfigInterface {
public abstract void reloadConfig();
... | 31.294737 | 102 | 0.711066 |
435e5791f00d710224c6631639301a8ff77baa4c | 10,148 | package cn.iocoder.yudao.module.system.service.auth;
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.enums.UserTypeEnum;
import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest;
import cn.iocoder.yudao.framework.test.core.util.AssertUtils;
import cn.iocod... | 41.08502 | 121 | 0.681119 |
aa7d4db60010f3515b1866c66e29ab90c91a3cab | 3,011 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.SDCustomerCaseManagementRetrieveOutputModelServiceDomainRetrieveActionRecordContro... | 44.279412 | 194 | 0.888077 |
71d17a3f4080ad920ad0477351cf0e683f091e85 | 1,814 | /*
* Copyright 2015 mellowtech.org
*
* 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 ... | 32.981818 | 92 | 0.751929 |
a82cd96d7dffe46a89d2dad9dd2541b4819f3a90 | 50,827 | package com.j256.ormlite.field;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static or... | 35.945545 | 115 | 0.737403 |
c08e2546a6dde811314a86339012ea86de4fffa4 | 421 | package com.threecore.project.operator.rank.post;
import com.threecore.project.model.rank.post.PostRankingStreamSelection;
import com.threecore.project.operator.rank.post.base.AbstractPostRanker;
public final class PostRankerStreamSelection extends AbstractPostRanker {
private static final long serialVersionUID = 1... | 30.071429 | 73 | 0.824228 |
51739b36a1bd0fe6b8fa69788b7bac5ceb68300c | 4,555 | package org.wirelessmousetail.tvschedule.core;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.wirelessmousetail.tvschedule.api.Program;
import org.wirelessmousetail.tvschedule.client.TvMazeClien... | 46.958763 | 143 | 0.748847 |
882b1747f074421f600f93e404b62e36f84ca2ee | 459 | package com.sivalabs.demo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author Siva
*
*/
@SpringBootApplication
@MapperScan("com.sivalabs.demo.mappers")
public class SpringbootMyBatis... | 19.956522 | 70 | 0.801743 |
5d5d2f1ffdcd36f781bb531b374ab5da9aa5ac64 | 14,172 | package com.hys.exam.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class CVSet implements Serializable {
/**
* boy
*/
private static final long serialVersionUID = 3299179869424516827L;
private Long id;
private String name;
private Integer fo... | 20.362069 | 84 | 0.668713 |
09d96ecce95b9e88afb80516442801e78784b53f | 12,902 | package com.revature.SQL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import org.apache.commons.dbcp2.BasicDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.rev... | 28.29386 | 155 | 0.631065 |
1dfba559953aee61406639637de2232d47c87190 | 2,151 | package com.example.spikee.smartirrigation;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widge... | 25.305882 | 73 | 0.635518 |
0c8ebcd7bd9f5762353d3e901de227ba57d312ad | 1,246 | // ============================================================================
//
// Copyright (C) 2006-2015 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 33.675676 | 124 | 0.629213 |
42f3bce350d838511a8b8ef96bd9782e9b9b84ca | 2,473 | package org.eclipse.persistence.testing.jaxb.annotations.xmlwriteonly;
import java.io.ByteArrayInputStream;
import java.util.HashMap;
import java.util.Map;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import org.eclipse.persistence.jaxb.JAXBContextFactory;
import org.eclipse.persisten... | 37.469697 | 126 | 0.647796 |
b6da8bc71a5210f2815ccb09f5282295420001ab | 618 | package com.hbm.items.food;
import java.util.List;
import com.hbm.items.ModItems;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
public class ItemNugget extends ItemFood {
public ItemNugget(int p_i45340_1_, boolean p_i45340_2_)... | 22.888889 | 97 | 0.716828 |
8efeef3f66aa48d28d428e56eae09dd347df21a7 | 6,668 | package com.vmware.avi.vro.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vmware.o11n.plugin.sdk.a... | 33.009901 | 117 | 0.722406 |
b5ef710ab758dad07dff00a4cccd37d1b882ed45 | 2,319 | /*
* Copyright (c) 2017. 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 un... | 32.208333 | 540 | 0.667098 |
ae6fda64173a8767673e428fe5c51f8c9e35aa8f | 178 | package org.thingsboard.server.dft.common.constants;
public class FileStorageConstant {
public static final String KHACHHANG_DOCUMENT_PATH =
"/static/documents";
}
| 22.25 | 54 | 0.764045 |
bf89d5a8ac65ab814383f571ca47f0a966f53995 | 1,551 | package com.konstantinlevin77.hrms.business.concretes;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.konstantinlevin77.hrms.business.abstracts.PositionService;
import com.konstantinlevin77.hrms.core.results.abstracts.Da... | 31.02 | 75 | 0.798839 |
c4417b8a533f29cb2dca8cbffc37c4d80db40c7b | 15,376 | package edu.uiowa.icts.safeseed.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
i... | 28.421442 | 98 | 0.715206 |
85ee64423ae72f49ccaad6eecb9842d3ac653575 | 9,425 | package com.khayyamapp.juveiran.activity;
import android.Manifest;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.os... | 42.264574 | 167 | 0.604668 |
fc2424080c8df8a1ed7bb3ba4140536ffe30a11b | 256 | package com.bluefireplatform.service;
import com.alibaba.fastjson.JSONObject;
import java.io.IOException;
public interface OutdoorTrajectoryForecastService {
public Object queryForecastResult(JSONObject queryString) throws IOException, Exception;
}
| 25.6 | 92 | 0.839844 |
9c1698fc0b92db1f5a1c23143d18411a9b52900c | 3,894 | package Common.Hash;
import Common.Blood.BloodType;
import Common.Person.Person;
public class Hash {
/*
* RASTGELE BIR NUMARA URETMEK ICIN TC KIMLIK NUMARASINDA KULLANILAN ALGORITMA KULLANILDI
*
* 1 2 3 4 5 6 7 8 9 10 11
* A B C D E F G H I J K --- 11 HANELI BIR TC... | 40.5625 | 119 | 0.534155 |
6c31e7e32afe6bfd85fbc195ccf95cc5f747de02 | 4,080 | package de.adorsys.ledgers.um.impl.service;
import de.adorsys.ledgers.um.api.domain.EmailVerificationBO;
import de.adorsys.ledgers.um.api.domain.EmailVerificationStatusBO;
import de.adorsys.ledgers.um.api.service.ScaVerificationService;
import de.adorsys.ledgers.um.db.domain.EmailVerificationEntity;
import de.adorsys.... | 60 | 179 | 0.63799 |
ec9bf54e515e998ff86b42312fe54a7febd6f106 | 6,653 | // Generated from MuJs.g4 by ANTLR 4.4
package it.univr.main;
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.runtime.dfa.DFA... | 51.176923 | 80 | 0.598076 |
300105a60023048b9e96b75a8662bb12a9377ac2 | 807 | package org.linuxguy.MarketBot;
import java.util.ArrayList;
import java.util.List;
public abstract class Watcher<T> extends Thread {
protected String mAppName;
protected long mLastPollTime;
private List<ResultListener> mListeners;
public Watcher() {
mListeners = new... | 23.735294 | 60 | 0.655514 |
2f87d8d8a608db44bd09ee58efc4b11cfb5ac7c0 | 5,192 |
// author: dashie
// version: 1.0
package com.kvinnekraft;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.in... | 26.762887 | 95 | 0.499615 |
7496d28a1499065e2b316ca5f0ec81fde1e39fe4 | 3,570 | package com.serverless.demo.function;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
import com.amazonaws.services.dynamodbv2.model.A... | 54.923077 | 150 | 0.731933 |
836c808b672216914bacc79fce59a8939664c53e | 1,815 | package org.mipams.jumbf.privacy_security.entities;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
import org.mipams.jumbf.core.util.MipamsException;
import org.mipams.jumbf.privacy_security.entities.replacem... | 37.040816 | 112 | 0.702479 |
175949b52f9388d7af2bef0e0389795f11856ecc | 1,728 | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any la... | 32 | 80 | 0.78588 |
2560003e434a60e904201f3ee872cebccabb4d58 | 569 | package exception.connection;
public class DriverNotFoundException extends Exception {
public DriverNotFoundException() {
super();
}
public DriverNotFoundException(String message) {
super(message);
}
public DriverNotFoundException(Exception e){
super(e);
}
@Overr... | 19.62069 | 56 | 0.586995 |
bbd681d59916efb7d8852837c12f203d8e1ea642 | 4,738 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.payments;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.... | 36.728682 | 95 | 0.732165 |
fa37924dab038e36caf5334ad9fffcd0ad54a447 | 4,986 | package simulation_results;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Hashtable;
import java.util.regex.Matcher;
import sim_mob.vis.util.Utility;
public class SimulationExtractor
{
/**
* Extract
*/
public static Simulation_Result getResultsFromOneFile(BufferedReader[] one_pc_fi... | 27.395604 | 117 | 0.699559 |
78a5f979239a4030468cdcd3fd5816083f920eef | 8,081 | /*
* 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 docz;
/**
*
* @author Michael
*/
public class WaitDialog extends javax.swing.JDialog {
private static interface Proces... | 35.915556 | 176 | 0.599926 |
393d96666c8ce46c79c6807a29d922b67ef8d66d | 683 | package com.uwaterloo.iqc.registrationservice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@EnableEurekaServer... | 37.944444 | 100 | 0.816984 |
2be9785077bd36886f44831490cb3e5cfed05677 | 8,414 | // Copyright 2019 The Nomulus 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 required by a... | 37.5625 | 100 | 0.705729 |
220dbdf1f9870a30e9e7c6687b50e6e5424ae8cf | 169 | package org.globsframework.gui.splits.exceptions;
public class TextNotFound extends SplitsException {
public TextNotFound(String message) {
super(message);
}
}
| 21.125 | 51 | 0.775148 |
1a0a9a4f28c4180a0f740e4b1199881d21fd4466 | 4,537 | package com.bethel.mycoolwallet.mvvm.view_model;
import android.app.Application;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.lifecycle.MediatorLiveData;
import androidx.lifecycle.MutableLiveData;
import com.bethel.mycoolwa... | 45.37 | 114 | 0.722063 |
ef5dc0f8f2ca43a35df1fc90bdfafb6e40eb7d04 | 662 | package com.example.android.quakereport;
/**
* Created by Manoj on 12/29/2016.
*/
public class Earthquake {
private double mMagnitude;
private String mLocation;
private Long mTime;
private String mUrl;
public Earthquake(double Magnitude, String Location, Long Time, String url) {
this.mM... | 20.060606 | 81 | 0.637462 |
1851f9cf49d24cacc1c63ce578311c58d0c9c1f4 | 189 | package com.creditease.ns.transporter.config;
/**
* configmanager用来对config信息进行管理
* @author liuyang
*2015年8月11日下午9:20:50
*/
public interface ConfigManager {
public void loadConfig();
}
| 18.9 | 45 | 0.767196 |
5191c307187e26badea1ccabe6ca7285b0ae134f | 965 | package io.github.code10ftn.monumentum.utils;
public class ApiServiceConstants {
public static final String ROOT_URL = "http://192.168.43.131:8080/api";
public static final String SIGNUP_PATH = "/auth/sign-up";
public static final String SIGNIN_PATH = "/auth";
public static final String MONUMENTS_P... | 33.275862 | 88 | 0.752332 |
bfc2e214d10d1c45750eeac5caeb32c31e826ce0 | 2,049 | package com.shangbaishuyao.demo.FlinkDemo03;
import com.shangbaishuyao.demo.Function.MyEsSinkFunc;
import com.shangbaishuyao.demo.bean.WaterSensor;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.ap... | 41.816327 | 103 | 0.668619 |
c6051f1edf0dbb6121753891121338d08af39059 | 1,053 | package com.ashish;
import org.testng.annotations.Test;
import java.util.Arrays;
/**
* 1.3
* <p>
* Given two strings, write a method to decide if one is a permutation of the other
* <p>
* @author Ashsih Sharma on 12/8/2015.
*/
public class StringPermutationTest {
@Test
public void stringPermutationTes... | 24.488372 | 83 | 0.603989 |
dd6a15911aecc2a217bf478f42b733a68e8fb94e | 3,599 | package pers.husen.highdsa.activity;
import android.content.Intent;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android... | 25.34507 | 98 | 0.631009 |
a91eb3eafe80bbf953bcc065f256e9bbe9020b4d | 16,577 | package com.ringtonemanager;
import android.content.ContentValues;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.MediaStore;
import android.database.Cursor;
import com.facebook.react.bridge.ReactApplicationContext;
import c... | 47.22792 | 217 | 0.598178 |
a37023fff26b9d4a9a33fdaca221b72436d685d0 | 1,013 | package s2n.jComp.services.impl;
import org.springframework.stereotype.Service;
import s2n.jComp.dto.Result;
import s2n.jComp.entities.CodeQuestion;
import s2n.jComp.services.ClazzRunTestsService;
import s2n.jComp.services.Tester;
@Service
public class DefaultClazzRunTestsService implements ClazzRunTestsService {
... | 28.138889 | 92 | 0.736426 |
10c079da3ca79d74adcbb804617388a6685b266b | 5,797 | /*
* This file is part of GDHooks, licensed under the MIT License (MIT).
*
* Copyright (c) bloodmc
* Copyright (c) contributors
*
* 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 witho... | 43.916667 | 131 | 0.708642 |
7859ea89043ed039397aeabb8c649c5d1c3697f3 | 932 | /*
* 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 br.senac.sp.grupoum.projectpiiv.models;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Mat... | 26.628571 | 89 | 0.630901 |
db13ba0a04ea73704445ed70f3d62dca019685c7 | 397 | package uk.gov.pay.connector.events.model.charge;
import uk.gov.pay.connector.events.eventdetails.EventDetails;
import java.time.ZonedDateTime;
public class PaymentRefundCreatedByUser extends PaymentEvent {
public PaymentRefundCreatedByUser(String resourceExternalId, EventDetails eventDetails, ZonedDateTime time... | 33.083333 | 118 | 0.813602 |
db72c0d75618866cf4e2079f71d044e9c48b1ae0 | 687 | package com.skytala.eCommerce.domain.product.relations.product.event.categoryAttribute;
import java.util.List;
import com.skytala.eCommerce.framework.pubsub.Event;
import com.skytala.eCommerce.domain.product.relations.product.model.categoryAttribute.ProductCategoryAttribute;
public class ProductCategoryAttributeFoun... | 32.714286 | 111 | 0.858806 |
961dbaa116db651c340c8fd097441351e280dcf6 | 4,597 | package com.github.binarywang.wxpay.bean.notify;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 退款结果通知.
* 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_11.shtml
*
* @author thinsstar
*/
@Data
@NoArgsConstr... | 21.282407 | 213 | 0.569284 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.