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 |
|---|---|---|---|---|---|
d6c434c5de3901bcf974632bdcb85807c5e3ff78 | 2,698 | package org.cggh.bam.sampleClass;
import org.cggh.bam.*;
import org.cggh.bam.sampleClass.ClassTarget.ClassAllele;
import org.cggh.bam.target.*;
import org.cggh.common.exceptions.AnalysisException;
import java.io.*;
public class SampleClassConfig extends TargetAnalysisConfig {
public static final String P... | 40.268657 | 149 | 0.716457 |
be3f70df5398963b3c83e29acf0b2732eb2d12d0 | 771 | package com.infi.lyrical.adapters.holders;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import com.infi.lyrical.R;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* Creat... | 23.363636 | 58 | 0.744488 |
4a457810518b8e561908db4227995d0202034f33 | 10,717 | package com.example.android.actionbarcompat.basic;
import android.app.DownloadManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
//import android.util.Base64;
import android.util.Log;
import android.view.Menu;
impor... | 33.490625 | 164 | 0.626668 |
224df72adac6bc50e6f63884b6617a3a13fa3ef7 | 1,006 | package com.easyqa.qa.pages;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.SelenideElement;
import io.qameta.allure.Step;
import org.openqa.selenium.support.FindBy;
import static com.codeborne.selenide.Selenide.page;
public class ProjectsPage {
@FindBy(xpath = "//img[@id='user-menu']")... | 23.952381 | 64 | 0.694831 |
9a6bc8b5d036af20678fffb2384ef31591526440 | 71 | package acx.lam;
public interface Cell {
String getUniqueKey();
}
| 11.833333 | 26 | 0.704225 |
819df5331ab57b0b95b5e39f285ec30aba3c6dc5 | 569 | import java.net.*;
import java.io.*;
public class ProxyServer {
public static void main(String[] args) throws IOException {
ServerSocket serverSocket = null;
boolean listening = true;
int port = 8888; //default
try {
serverSocket = new ServerSocket(port);
S... | 22.76 | 63 | 0.553603 |
0876aeb801949f872070bc3d8b8a3c9bd010484e | 650 | package com.salesmanager.shop.model.catalog.product.attribute;
import java.io.Serializable;
import com.salesmanager.shop.model.Entity;
public class ProductAttribute extends Entity implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private ProductOption option;
private Produ... | 22.413793 | 70 | 0.778462 |
558b917ac00ebe37d9f0bea4539f340b28e316ed | 4,161 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.integration;
import org.apache.commons.lang.Validate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.opengamma.OpenGammaR... | 34.38843 | 150 | 0.69094 |
67185b28a3dd5cb1988d4307965aa911d28db3ec | 537 | package com.example.demo.application.baseData.group.service.dao.dto;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Table(name="g... | 21.48 | 69 | 0.765363 |
dc46871e3ea8d58a39030067d425dc662b2d557b | 4,991 | /*
* Copyright (C) 2013 The Rythm Engine project
* Gelin Luo <greenlaw110(at)gmail.com>
*
* 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 l... | 29.886228 | 92 | 0.585454 |
759b7c6cf9614d691af53fc0caa5a9ef0123bdbb | 762 | package it.cnr.istc.pst.platinum.ai.lang.ddl.v3.parser;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.antlr.runtime.tree.CommonTree;
/**
*
* @author Riccardo De Benedictis
*/
public class DDLParameterSet extends CommonTree {
private final List<String> parameters =... | 22.411765 | 68 | 0.62336 |
80383e12e71cec9762567e2c799c138a14765ee0 | 555 | package org.loomy;
public class MathUtil
{
public static boolean isBetween(float n, float lowerLimit, float higherLimit)
{
return (n >= lowerLimit && n <= higherLimit);
}
public static boolean isInside(float x, float y, float lowX, float lowY, float highX, float highY)
{
return isB... | 27.75 | 102 | 0.61982 |
252cecf1d11e406a8ada109083cd9b27e8f8ef80 | 1,868 | package com.netflix.governator.internal;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.List;
import javax.annotation.PostConstruct;
import com.netflix.governator.LifecycleAction;
/**
* Special AbstractLifecycleFeature to support ... | 32.206897 | 129 | 0.616702 |
d494909938871e1121a65878b140d91513d99ad3 | 2,027 | package com.jetbrains.python;
import com.intellij.codeInsight.editorActions.fillParagraph.FillParagraphAction;
import com.intellij.ide.DataManager;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.command.CommandProcessor;
impor... | 26.671053 | 121 | 0.679329 |
b09dfa95a3855a054ca90ac0cf4bba221f8cd747 | 5,319 | /*
* Copyright 2016 Makoto Consulting Group, 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 re... | 40.295455 | 137 | 0.775334 |
853418d37802d8f5f2628c8e4f8282c96d7472cf | 4,673 | /*
* Copyright 2009-2016 Weibo, 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 applica... | 31.362416 | 121 | 0.652686 |
c2034a60cf1f058ad04ab581aeec31b65e2b9733 | 689 | package com.wong.binven.demo.config;
import java.util.Map;
import org.springframework.core.env.EnumerablePropertySource;
/**
* create by: HuangZhiBin
* 2018年11月1日 上午11:37:10
*/
public class ConfigSource extends EnumerablePropertySource<Map<String, String>> {
public ConfigSource(String name, Map<Stri... | 21.53125 | 82 | 0.696662 |
735a2cc676ac1bf646707d9d9062a49071950ae8 | 2,768 | /*
* Copyright 2012 University of Chicago
*
* 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... | 24.069565 | 83 | 0.654986 |
6f613031d3a7b1a50ebbf6dfa8df4b3f0dd52bb2 | 3,764 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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 app... | 39.208333 | 112 | 0.720244 |
d0b0855f62b2d613375aa9df7b37d5cf6088b8cb | 1,919 | package wq.android.mvvm.java.starter.core.base;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import a... | 26.652778 | 138 | 0.715998 |
a0ac456eb9c41ea612a24dff458f033802391a4e | 1,524 | package com.group12.course.service;
import org.springframework.web.multipart.MultipartFile;
/**
* User service 层对应接口
* @author Xu Gang
* @date 2018年11月29日
*/
public interface UserService {
/**
* 通过账户,判断密码是否正确,获取用户对象
* @param account 用户账户
* @param password 用户输入的密码
* @return User 若用户输入正确,则... | 17.929412 | 55 | 0.561024 |
2f0e8f5fc3dd44505d9d8213d2b399f05d3a4bbf | 1,051 | package com.shaoteemo.bpmn;
import org.activiti.engine.IdentityService;
import org.activiti.engine.RuntimeService;
import javax.annotation.Resource;
/**
* 开始事件
* <p>
* 主要演示开始事件的已认证用户的存储
*
* @author shaoteemo
* @Date 2021/8/27
*/
public class StartEventImpl implements StartEvent{
@Resource
private Ide... | 22.847826 | 93 | 0.691722 |
9331cbe1219a9dee9d45d850a8af1bcddbddc2b6 | 3,891 | import protocols.agreement.MultiPaxos;
import protocols.agreement.Paxos;
import pt.unl.fct.di.novasys.babel.core.Babel;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import protocols.agreement.IncorrectAgreement;
import protocols.app.HashApp;
import protocols.statemachine.StateMach... | 36.707547 | 121 | 0.673863 |
baefab66f5803075d79adabde62d9e89abc3a617 | 4,935 | package org.hcjf.layers.storage.actions;
import org.hcjf.layers.query.Queryable;
import org.hcjf.layers.storage.StorageSession;
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
/**
* Select storage operation.
* @author javaito
*/
public abstract class Select<S extends StorageSession, O... | 42.543103 | 139 | 0.696454 |
274d3fcfe82142ce4df1af8ffd7f11fd04f83c05 | 1,382 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dao;
import java.util.List;
import model.Cliente;
/**
*
* @author Thiago
*/
public interface ClienteDAO {
/**
* Metodo para atualizar objeto cliente na tabela Cliente.
* @param cliente
*... | 21.936508 | 81 | 0.640376 |
60009bc4b6f3e98348078da3a3addb01d4429fb0 | 633 | package com.ystu.controllers;
import com.ystu.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind... | 26.375 | 62 | 0.769352 |
7a98b514d78b81f8bfc6f3e1d2c18259c868ee4d | 2,184 |
package com.hashmapinc.tempus.WitsmlObjects.v20;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Indicates that a time series has the associated time series as a parent, ... | 25.103448 | 136 | 0.643315 |
e44ccc60607d429845758d4ee0df77b60193fbc7 | 315 | package FactoryPattern2;
public abstract class FileProcessor {
public String processFile()
{
String file=getFile();
file=file+" "+addEOFSignal();
return file;
}
public String addEOFSignal()
{
return "-1"; //For eg Purpose Judge Not :)
}
protected abstract String getFile();
}
| 15.75 | 60 | 0.650794 |
b3f89389949a817d576f8b7f737db40f3f59b924 | 7,073 | package com.softbankrobotics.qisdktutorials.ui.tutorials.perceptions.detecthumanswithlocalization;
import android.os.Bundle;
import android.util.Log;
import com.aldebaran.qi.Future;
import com.aldebaran.qi.sdk.QiContext;
import com.aldebaran.qi.sdk.QiSDK;
import com.aldebaran.qi.sdk.RobotLifecycleCallbacks;
import co... | 38.026882 | 170 | 0.662802 |
6de4f162c7affeefc7db2acae459f1e765de2224 | 506 | package com.example.demo;
import com.example.demo.controller.MyResource;
import org.glassfish.jersey.server.ResourceConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class JerseyConfig extends ResourceConfig {
private final st... | 24.095238 | 82 | 0.750988 |
5bfb3da6a92f50f71500064b61e8a80e2f92dcac | 723 | package edu.nchu.cloudhis.web;
import edu.nchu.cloudhis.model.DepartInfo;
import edu.nchu.cloudhis.model.Result;
import edu.nchu.cloudhis.service.DepartInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.b... | 28.92 | 62 | 0.798064 |
0e90c07c9cb1cb07bee1d2d0aeacb9f06d09497b | 1,112 | package zserio.tools;
import org.apache.commons.cli.Options;
import zserio.antlr.ZserioEmitter;
import zserio.ast.TokenAST;
/**
* The basic interface for all Zserio extensions.
*/
public interface Extension
{
/**
* Gets name of the extension.
*
* @return Name of this extension.
*/
publi... | 25.860465 | 91 | 0.673561 |
3ae3b58f759b8ff7be20d68940adcabb494f6f4c | 533 |
package interfaces_avec_des_classes_poo;
public class substring_startwith_endwith_classmath {
public static void main(String[] args) {
String k="omar",b="OMAR LALAOUI";
System.out.println(b.substring(2, 7));
if(k.startsWith("om")==true){ System.out.println(" oui omar commen... | 31.352941 | 96 | 0.63227 |
da2d2f2d4c88df7f2f683b8fc4949b15001d4a7d | 969 | package twu.biblioteca.control;
import org.junit.Test;
import twu.biblioteca.view.UIEvent;
import twu.biblioteca.view.UIThread;
import static org.junit.Assert.assertEquals;
/**
* Created by xsu on 16/7/25.
* it's the testing code for welcome logic testing
*/
public class WelcomeLogicTest extends LogicTesing {
... | 30.28125 | 100 | 0.719298 |
3ac367d677a731f3a8095481e7d8794e942b66a2 | 827 | package nl.mwensveen.adventofcode.year_2017.day_22;
public enum Direction {
UP(1),
RIGHT(2),
DOWN(3),
LEFT(4);
private final int number;
private Direction(int number) {
this.number = number;
}
public Direction turnLeft() {
return findByNumber(number - 1);
}
... | 18.377778 | 51 | 0.493349 |
4eed37100368e96e660b91ac7afb676e7cedbdaa | 993 | package com.github.wreulicke.spring;
import java.util.concurrent.atomic.LongAdder;
import lombok.Value;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestControll... | 22.568182 | 62 | 0.72709 |
bc18df6e8d26925e046de5a01b3350f90a24c0d2 | 217 | package com.matthew_cloud.factories;
import com.matthew_cloud.base.GenericUser;
import com.matthew_cloud.base.userType;
public interface GenericFactory {
public GenericUser getUser(userType user, String name);
}
| 27.125 | 59 | 0.820276 |
505997ec42365ee34c7e705adb82085e96a458c1 | 496 | package ch.bfh.ti.jts.ai.agents;
/**
* Agent which accelerates always by its maximal value. His goal is to reach
* full speed as soon as possible.
*
* @author Enteee
* @author winki
*/
public class FullSpeedAgent extends RandomAgent {
private static final long serialVersionUID = 1L;
public FullSpeedAge... | 20.666667 | 76 | 0.66129 |
d6dfa5db4a8c85f4312a1d169a390fbb04a0f885 | 1,669 | package com.liquidlabs.common.compression;
import net.jpountz.lz4.LZ4BlockOutputStream;
import net.jpountz.lz4.LZ4Factory;
import org.xerial.snappy.SnappyFramedOutputStream;
import java.io.*;
/**
* Created with IntelliJ IDEA.
* User: neil
* Date: 11/10/2013
* Time: 14:42
* To change this template use File | Set... | 29.803571 | 137 | 0.545237 |
f09b0dedf669369679a9bc481b40d1f9a37ac7fc | 4,806 | package com.example.design;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.TextView;
... | 37.84252 | 131 | 0.596546 |
bdf149710067f266548c0659d4aee4d1e03dd779 | 14,694 | /* GSSCredential.java -- GSS credential interface.
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ve... | 42.591304 | 79 | 0.715938 |
1072295b860e5b7a6d24f2d51a20828de923f60b | 1,381 | package kr.go.seoul.seoulian.component;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.LinearLayout;
import android.widget.Relati... | 27.62 | 102 | 0.688631 |
452e6503d321d8b9d91a7e57c92c9c689d207877 | 3,236 | package de.perdian.divelog.web;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.time.LocalTime;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
i... | 40.962025 | 178 | 0.772868 |
909c23816ad54fcff5c798da88298262887eaf85 | 3,405 | /*
* Copyright 2012 JBoss 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 ... | 32.740385 | 96 | 0.597651 |
f00f0499636019f209fe8da1b3c6282141c82590 | 867 | package io.github.hapjava.impl.services;
import io.github.hapjava.accessories.CarbonDioxideSensor;
import io.github.hapjava.impl.characteristics.carbondioxide.CarbonDioxideDetectedCharacteristic;
import io.github.hapjava.impl.characteristics.carbondioxide.CarbonDioxideLevelCharacteristic;
public class CarbonDioxideSe... | 45.631579 | 98 | 0.853518 |
2ff26960045dc426ab8a42d3bf2209b263bd3cca | 7,441 | package com.sensirion.smartgadget.persistence.history_database.table;
import android.support.annotation.NonNull;
import android.util.Log;
import com.sensirion.database_library.database_object.AbstractDatabaseObject;
import com.sensirion.database_library.database_object.DatabaseObjectType;
import com.sensirion.smartga... | 47.698718 | 180 | 0.651794 |
7ee639f1d258cd05cf152e783e18317613a013a1 | 286 | package com.sutdy.dashboard.domain.system;
import com.sutdy.dashboard.domain.members.Account;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author kuh
* @since 2020.05.28
*/
public interface SystemErrorRepository extends JpaRepository<SystemError, Long> {
}
| 23.833333 | 81 | 0.79021 |
b635e21be534078a3e3d2f5d846b89cd5add0e3f | 2,256 | package com.example.demo.repository.order45;
import com.example.demo.entity.order32.Board;
import com.example.demo.entity.order45.Student;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.R... | 37.6 | 120 | 0.590869 |
52f9a8bb4cb77bbcdda7a46a2d7a53356d82f522 | 2,665 | /*
* 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 nz.ac.aut.dms.assign.model;
import java.util.ArrayList;
import java.util.concurrent.ArrayBlockingQueue;
/**
*
* @author xfn... | 22.777778 | 87 | 0.614634 |
89c49085bdb34f353f86f4b85b873f0df87053a9 | 130 | package com.twinkle.framework.core.asm.event;
/**
* Represents an event.
*
* @author chenxj
*/
public abstract class Event {} | 16.25 | 45 | 0.7 |
a3e5b98a6488024815c76d21265972994175fe5b | 642 | package com.atguigu.mybatis.bean;
import java.util.List;
/**
* 封装分页查询数据
* @author lfy
*
*/
public class OraclePage {
private int start;
private int end;
private int count;
private List<Employee> emps;
public int getStart() {
return start;
}
public void setStart(int start) {
this.start = start;
}
... | 14.266667 | 43 | 0.657321 |
140751228386531dd1aae27932326b0036d1b200 | 651 | package designModel.Observer;
public class FinalInstanceVaribaleTest {
final int var1 = 1;//定义final实例变量时指定初始值。
final int var2;
final int var3;
//在非静态初始化块中为final实例变量指定初始值。
{
var2 = 2;
}
// 在构造方法中为final实例变量指定初始值。
public FinalInstanceVaribaleTest() {
this.var3 = 3;
}
... | 24.111111 | 94 | 0.689708 |
6002c1a0fe2e44f3d4f40a64bcf3f11778998beb | 3,166 | package com.robmelfi.rcraspi.service;
import com.robmelfi.rcraspi.domain.Controller;
import com.robmelfi.rcraspi.repository.ControllerRepository;
import com.robmelfi.rcraspi.service.dto.ControllerDTO;
import com.robmelfi.rcraspi.service.mapper.ControllerMapper;
import com.robmelfi.rcraspi.timer.TimerManager;
import or... | 31.039216 | 160 | 0.699305 |
fb89a0f691c7ea80fccfc27f93afd551ecca768e | 272 | // Copyright (c) Luca Druda. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package com.github.lucadruda.iotc.device.enums;
public enum IOTC_PROTOCOL {
HTTPS, MQTT, AMQPS, MQTT_WS, AMQPS_WS
} | 38.857143 | 101 | 0.768382 |
98ba797153282df440526c2770cb5718fd0bcd19 | 2,150 | package br.pucpr.mage;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL30.glGenerateMipmap;
public class Texture {
private int id;
private TextureParameters parameters;
public Texture(Image image, TextureParameters parameters) {
//Valida os parametros
if (image.get... | 26.54321 | 77 | 0.584186 |
7fc1d835ee45bad9bb27d351b60d7de5435c6345 | 3,154 | package net.canadensys.dataportal.occurrence.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import javax.sql.DataSource;
import net.canadensys.dataportal.occurrence.dao.OccurrenceAut... | 35.840909 | 152 | 0.780279 |
64097ea88e63835b4757695ebba6741d45ed4c09 | 5,554 | /**
* 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... | 31.378531 | 104 | 0.720562 |
726a478c0592813199d365dc938b50acf17d9152 | 21,320 | package net.jbock.processor;
import org.junit.jupiter.api.Test;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assertAbout;
import static com.google.testing.compile.JavaSourcesSubjectFactory.javaSources;
import static java.util.Collections.singletonList;
import static net.jbock.proces... | 33.62776 | 128 | 0.57955 |
d02124a8ebe784034151680a2974e1c8dfa74e5d | 553 | package com.caryatri.caryatri.Database.CurrentDriver;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "CurrentDriverDB")
public class CurrentDriverDB {
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "... | 21.269231 | 53 | 0.735986 |
c3013be7377f61932acbfa731caaa270ba2bfdb1 | 3,908 | package cn.jia.isp.service.impl;
import cn.jia.core.common.EsSecurityHandler;
import cn.jia.isp.dao.CmsColumnMapper;
import cn.jia.isp.dao.CmsConfigMapper;
import cn.jia.isp.dao.CmsRowMapper;
import cn.jia.isp.dao.CmsTableMapper;
import cn.jia.isp.entity.*;
import cn.jia.isp.service.CmsService;
import com.github.pageh... | 29.164179 | 92 | 0.789406 |
e83638c17ff713607f7b8bb463e5ac3d5cafa073 | 118 | package bInterface;
public class Teste {
public Teste() {
// TODO Auto-generated constructor stub
}
}
| 11.8 | 42 | 0.644068 |
3ae75bcf052d4effc3ac133c126e98ed131cb43a | 1,060 | package me.sewer.guilds.command.impl;
import me.sewer.guilds.GuildsPlugin;
import me.sewer.guilds.command.Command;
import me.sewer.guilds.guild.Guild;
import me.sewer.guilds.guild.GuildManager;
import me.sewer.guilds.i18n.MessageManager;
import me.sewer.guilds.user.User;
import me.sewer.guilds.user.UserManager;
publi... | 31.176471 | 107 | 0.738679 |
b05cf1de0d410cd58b14f382f732206a5e8a5054 | 2,064 | package com.hit.basmath.learn.array_and_string;
/**
* 14. Longest Common Prefix
* <p>
* Write a function to find the longest common prefix string amongst an array of strings.
* <p>
* If there is no common prefix, return an empty string "".
* <p>
* Example 1:
* <p>
* Input: ["flower","flow","flight"]
* Output... | 28.273973 | 89 | 0.49564 |
70c83bbd0d65371158744cef46f5933c8bc4feb6 | 3,134 | package com.linkb.jstx.network.result;
import java.io.Serializable;
public class SendRedPacketResult extends BaseResult implements Serializable {
private static final long serialVersionUID = 2320183881249012480L;
/**
* code : 200
* data : {"userAccount":"15874986188","name":"海斌个","remark":"恭喜发财,大... | 22.875912 | 117 | 0.545948 |
a45f83d7472c1dfca9ac67fda0bfd53ea2fd8ddc | 1,677 | package org.eclipse.dataspaceconnector.ion.model.did.resolution;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.eclipse.dataspaceconnector.iam.did.spi.document.DidResolveResponse;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupite... | 35.680851 | 107 | 0.717949 |
6bf0f5cfa18ba5d6cf43634afd07084460275c1d | 5,788 | /*
* *
* * This file is part of QuickLyric
* * Created by geecko
* *
* * QuickLyric is free software: you can redistribute it and/or modify
* * it under the terms of the GNU General Public License as published by
* * the Free Software Foundation, either version 3 of the License, or
* * (at your option) a... | 43.848485 | 172 | 0.626987 |
44ddd1eaea78322c36a167a44f4afff5d14f4ee4 | 760 | package com.pxxy.service.user.consumer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.spri... | 36.190476 | 97 | 0.822368 |
7f94922b98f4249d009f7c746ab30c0d9acf9f8b | 1,961 | package com.ml.spring.tuto.aae.service;
import com.ml.spring.tuto.aae.event.OnRegistrationCompleteEvent;
import com.ml.spring.tuto.aae.persistance.model.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.Appli... | 34.403509 | 121 | 0.738909 |
dcc9e5641ae6621787578cfb20bd506c35920d93 | 1,186 | package com.tatx.partnerapp.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.tatx.partnerapp.R;
import com.tatx.partnerapp.enums.Language;
/**
* Create... | 25.234043 | 91 | 0.731029 |
6e818ee6147eb45cec7104b6b749a5d2c31d5062 | 7,445 | /*
Copyright 2016 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 law or... | 31.54661 | 85 | 0.600537 |
7f232587732714f3d2e317faca2f5f051a94479a | 802 | package ua.com.fielden.platform.basic.autocompleter;
import ua.com.fielden.platform.basic.IValueMatcherWithCentreContext;
import ua.com.fielden.platform.dao.IEntityDao;
import ua.com.fielden.platform.entity.AbstractEntity;
/**
* This is a fall back implementation for {@link IValueMatcherWithCentreContext}, which doe... | 32.08 | 172 | 0.766833 |
889551b692fda3f40d01227e04f7331f1e727d8a | 930 | package com.example.yiuhet.first_weather;
import android.app.FragmentManager;
import android.preference.CheckBoxPreference;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class SettingActivity extends BaseActivity {
private SettingsFragment mSettingsFragment;
@Override
... | 34.444444 | 78 | 0.736559 |
ee522ab14c24858de87231d51e42aff752b278d9 | 2,612 | package no.nav.vedtak.isso;
import java.util.ArrayList;
import java.util.List;
class EndUserAuthorizationTemplate {
static class Name {
private String name;
private String value;
public String getName() {
return name;
}
public void setName(String name) {
... | 21.064516 | 59 | 0.558576 |
91b6f804c482de5d98f6f8b13d0f918518f335f5 | 484 | package com.sbelei.botapi.common;
import com.fasterxml.jackson.core.JsonProcessingException;
public interface BotHandlerInterface {
void sendMessage(String userId, String message) throws Exception;
String getBotType();
String getPhoneNumber(Object input);
String getActionName(Object input);
v... | 25.473684 | 130 | 0.795455 |
5539d2cb1683b830f1e2fc3938c9cd852fdb7230 | 2,046 | package org.ggp.base.server.threads;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import org.ggp.base.server.GameServer;
import org.ggp.base.server.event.ServerConnectionErrorEvent;
import org.ggp.base.server.event.ServerTimeoutEvent;
import org.ggp.base.ut... | 33 | 134 | 0.777615 |
8a7f61d3dcf9a5baa1746807969dc9ba2188c15f | 21,053 | /*******************************************************************************
* Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
*
* 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 a... | 47.523702 | 559 | 0.683893 |
dc3b632ddf98b73b8b1acb8f7e56a79ccb1a0457 | 2,658 | /*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####... | 28.891304 | 112 | 0.44921 |
6d3de60ee0047a4b7d98885c956bac7bebc52169 | 1,014 | package com.study.zeus.service;
import com.mongodb.WriteResult;
import com.study.zeus.entity.KlineDO;
import java.util.Date;
import java.util.List;
public interface KlineService {
/**
* 更新K线
*
* @return
*/
WriteResult updateKline(KlineDO klineDO);
/**
* 查询K线列表
*
* @pa... | 18.107143 | 76 | 0.567061 |
4741576b1678b704911aaab247da4183310f67a9 | 2,471 | package uk.gov.companieshouse.document.generator.accounts.mapping.smallfull.model.ixbrl.balancesheet;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.Gson;
import java.util.Obj... | 31.278481 | 106 | 0.719142 |
0830b3614f6760436e9cfcfd8ff0b2418ef7f295 | 4,019 | package com.bitcola.exchange.caculate.service;
import com.alicp.jetcache.Cache;
import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.CreateCache;
import com.bitcola.caculate.entity.CaculateParams;
import com.bitcola.caculate.entity.ColaOrder;
import com.bitcola.exchange.caculate.dataservice.ColaBal... | 30.218045 | 178 | 0.697437 |
0972b72b210b832f26017610e614a5cabc626f9e | 2,026 | /*
* Copyright 2015 JBoss, by Red Hat, 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 ... | 34.931034 | 92 | 0.647088 |
419f95a3c155e62e955fdffd13ac507fd86c229d | 3,719 | /*
* © 2021. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.io.processor.result;
import edu.ie3.datamodel.io.factory.result.SystemParticipantResultFactory;
import edu.ie3.datamodel.... | 36.460784 | 106 | 0.694273 |
f71e6ef38d46f864c527e1ffe379fda28c122bdc | 16,931 | package com.jlfex.hermes.main;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springfra... | 31.295749 | 193 | 0.709586 |
aa006d81a90a47779c02c7d57bc0cb3ba592c7bf | 1,450 | package com.pard.modules.sys.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.pard.common.persistence.DataEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Created by wawe on 17/5/16.
*/
@Entity
@Table(name = "icon_info")
public clas... | 20.422535 | 52 | 0.656552 |
869ce99488ea8d0de708c098ba0685cf7f654ce3 | 567 | package edu.millersville.uml_editor.view;
import java.io.IOException;
public class CLIView implements ViewInterface{
public CLIView() {
}
public void printIntro() throws IOException {
System.out.println("Welcome to Syrup's UML Editor!");
System.out.println("Type 'help' to see list of command... | 23.625 | 90 | 0.664903 |
b310ac15a8bcfb8075da0ad0db25a4e32c8cb2b1 | 1,163 | package com.github.ralgond.fje;
import org.apache.thrift.protocol.TBinaryProtocol;
import com.twitter.finagle.ServiceFactory;
import com.twitter.finagle.Thrift;
import com.twitter.finagle.thrift.RichClientParam;
import com.twitter.finagle.thrift.ThriftClientRequest;
import com.twitter.util.Await;
import com.twitter.u... | 27.690476 | 101 | 0.745486 |
ce04f8b49421056b60ef4b2c332185d30a1530c6 | 5,981 | /*
* Copyright 2013-2019 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
*
* Unless required by a... | 24.512295 | 111 | 0.701555 |
64e2edf310916a94f3ed33468e51e6935201715e | 4,731 | package edu.hawaii.its.api.controller;
import edu.hawaii.its.api.access.User;
import edu.hawaii.its.api.access.UserContextService;
import edu.hawaii.its.api.service.EmailService;
import edu.hawaii.its.api.type.GroupingsHTTPException;
import edu.hawaii.its.api.type.GroupingsServiceResultException;
import edu.internet2.... | 45.057143 | 115 | 0.778271 |
86889f0c002c5b1b9e9635e7b10f641cd169c612 | 884 | /**
* Application.
* @author Renata
* @version 1.0
* @since 18/04/2020
*/
package pithan.renata.exemplocomponentscan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.spring... | 29.466667 | 109 | 0.80543 |
c0bf27296cc00751632482cfd070b3d771034cac | 989 | package net.openid.conformance.condition.client;
import com.google.common.base.Strings;
import net.openid.conformance.condition.AbstractCondition;
import net.openid.conformance.condition.PostEnvironment;
import net.openid.conformance.condition.PreEnvironment;
import net.openid.conformance.testmodule.Environment;... | 32.966667 | 82 | 0.777553 |
f3eeeeaf41a2af2b423d06e76fadd8b8a6f48e8c | 1,860 | /*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. Th... | 46.5 | 108 | 0.743011 |
f8c3bab698025f00d74a6f10be8f22cd6a6434ed | 4,176 | package com.globant.training.google.maps.trackpoint.endpoint;
import com.google.api.server.spi.auth.common.User;
import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.ApiMethod.HttpMethod;
import com.google.api.server.spi.types.DateAndTi... | 30.043165 | 92 | 0.71001 |
66800808f71fb7e461ba2eb3d02af3c14388c067 | 4,987 |
package org.deeplearning4j.examples.recurrent.word2vecsentiment;
import java.io.File;
import java.io.IOException;
import static org.deeplearning4j.examples.recurrent.word2vecsentiment.Word2VecSentimentRnnTrain.DATA_PATH;
import static org.deeplearning4j.examples.recurrent.word2vecsentiment.Word2VecSentimentRnnTrain.W... | 42.262712 | 217 | 0.676359 |
f6824a86754d9037423271a68cb01186383120f4 | 961 | package com.example.oauthserver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servle... | 24.641026 | 92 | 0.723205 |
72cfb873ce78f235ca150677706dfb147e7d5dd7 | 353 | package at.ac.tuwien.dmap.dmapbackend.re3data.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This enum is used as a target for unmarshalling the XML response from the re3data API.
* Conforms to http://schema.re3data.org/2-2/re3dataV2-2.xsd
*/
public enum YesNo {
@JsonProperty("yes")
YES,
... | 23.533333 | 89 | 0.716714 |
77bda60e09da1eadf3f2e12401b966a902e66ffb | 633 | package com.ahmadabuhasan.canvas;
/**
* Created by Ahmad Abu Hasan on 18/10/2020.
*/
public class FlashlightConeEdit {
private int mX;
private int mY;
private int mRadius;
public FlashlightConeEdit(int viewWidth, int viewHeight) {
mX = viewWidth / 2;
mY = viewHeight / 2;
m... | 17.583333 | 64 | 0.556082 |
f429ceaba4e578cefa0a3ac4edfd7489b0dcdc47 | 304 | package com.findshen.corejava.utils.convert;
/**
* Created by findshen on 2021/1/19 10:54
*/
public class UserConvert extends AbstractConvert<User, UserDTO> {
@Override
public UserDTO doForward(User user) {
return null;
}
@Override
public User doBackup(UserDTO userDTO) {
return null;
}
}
| 16.888889 | 65 | 0.726974 |
a7d101f069dd4ba65338f5fd57463befd8894bd8 | 901 | package ee.bitweb.banklink.sdk.banks.seb;
import ee.bitweb.banklink.sdk.BankLinkTestStub;
import ee.bitweb.banklink.sdk.Banklink;
import ee.bitweb.banklink.sdk.protocol.Protocol;
import ee.bitweb.banklink.sdk.protocol.Vendor;
import ee.bitweb.banklink.sdk.protocol.iPizza.Mac;
import ee.bitweb.banklink.sdk.protocol.iPi... | 25.027778 | 61 | 0.73141 |
44e6886761558e9d8e93f399e86c9221f9db25eb | 350 | package com.him.woll.singleserver;
/**
* @author huangc
* @version 1.0
* @date 21/01/15 09:07
*/
public class Test1 {
public static void main(String[] args) {
S2 s2 = new S2();
s2.setP1pro("setP1pro");
s2.setS2Name("setS2Name");
s2.setP1name("setP1name");
System.out.pr... | 18.421053 | 44 | 0.58 |
8a248629e597dd4a6989a50a0db437fada92e60e | 5,813 | package io.bdeploy.bhive.cli;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.KeyStore;
import io.bdeploy.bhive.cli.TokenTool.TokenConfig;
import io.bdeploy.common.cfg.Configuration.Help;
import io.bdeploy.common.cli.ToolBase.CliTool.CliName;
import io.bdeploy.c... | 38.243421 | 129 | 0.645106 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.