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 |
|---|---|---|---|---|---|
885aca47d7d269b46b2e68919636bd8d880635a2 | 1,866 | package com.wizzardo.servlet.war;
import com.wizzardo.servlet.WarBuilder;
import com.wizzardo.servlet.WarTest;
import org.junit.Assert;
import org.junit.Test;
import javax.servlet.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | 30.590164 | 136 | 0.67149 |
192e60aaf49f4d58dde560ce56207c777f8b388f | 9,627 | package softuni.aggregator.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
import org.modelmapper.ModelMapper;
import org.springframework.boot.test.contex... | 40.1125 | 110 | 0.718708 |
c7987b8ada050f16bce97e1906c1939bbf4014b8 | 1,102 | package com.glume.common.core.exception.servlet;
/**
* 业务异常
* @author tuoyingtao
* @create 2021-10-23 16:55
*/
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* 状态码
*/
private Integer code;
/**
* 错误提示
*/
private... | 17.774194 | 59 | 0.598911 |
a94415a4cf77d0059ea2ca3063ffbfb14a5ad12d | 2,495 | package com.ecm.portal.archivegc.workflowEvent;
import java.util.List;
import java.util.Map;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | 31.987179 | 144 | 0.73988 |
c9ab2f701ac1c04f8b6334b62c5a62d4abee5615 | 3,800 | package com.mypurecloud.sdk.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.... | 29.92126 | 197 | 0.712895 |
87ff5a9d6d7c774d3da50a64e23cc2f5a6fc3eec | 733 | package com.aptoide.models.displayables;
import com.aptoide.models.displayables.Displayable;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by hsousa on 08-10-2015.
*/
public class HomeStoreItem extends Displayable {
public long id;
public String repoName;
public String avatar;
... | 21.558824 | 70 | 0.706685 |
e37435187586942846171653bf036a3bd996e2e8 | 717 | package smithereen.util;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.Instant;
public class InstantMillisJsonAdapter extends TypeAdapter<Instant>{
@Overrid... | 23.129032 | 74 | 0.760112 |
f4364169a887ff989379dc02d220d3fe3e84a95d | 583 | package io18;
import java.io.*;
public class StoringAndRecouveringData {
public static void main(String[] args) throws IOException {
DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("Data.txt")));
out.writeDouble(3.14155);
out.writeUTF("That was pi");
out.writeDouble... | 26.5 | 106 | 0.73928 |
9bb618036f5bd1b0a66d492a84557d162eb2de85 | 1,734 | /**
* Async.java
*
* Copyright 2016 the original author or authors.
*
* We 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/LICENS... | 32.716981 | 76 | 0.743945 |
a517064912ebb2b1e40946febf2a61b053e6858f | 456 | package trabajadores;
import ejercicio1.ContadorSincronizado;
public class DecrementadorContadorSincronizadoRunnable implements Runnable{
private ContadorSincronizado cantidad = null;
public DecrementadorContadorSincronizadoRunnable(ContadorSincronizado cont) {
cantidad = cont;
}
public void run() {
for(in... | 26.823529 | 107 | 0.776316 |
d0aa892f28a8c786a43fdb6535fd8993869e8320 | 1,440 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
**********************************************... | 40 | 97 | 0.680556 |
24db7da4aad91f7720ad2879dca4c591922eb62c | 9,164 | /*
* 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 ... | 25.887006 | 78 | 0.586534 |
cdb4a9a39f57d2981a80af9d21db7f1d94ca935a | 813 | package app.dassana.ruleengine.grammar.specification;
import app.dassana.ruleengine.IJqPathParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.commons.text.StringEscapeUtils;
public abstract class AbstractSpecification implements ISpecification {
protected IJqPathParser jsonPath... | 30.111111 | 105 | 0.793358 |
ce2d9c999d9b0425aef5c8e7d24741772ed1236d | 989 | package controller;
import model.Product;
import persistence.FileIO;
import java.io.IOException;
import java.util.ArrayList;
public class Ctrl
{
FileIO io = new FileIO();
public void readProducts(String f)
{
try
{
io.readFile(f);
}
catch (NumberFormatException... | 17.981818 | 61 | 0.569262 |
0d18b512fd51ee58d25fae7dac4d8f1011301f51 | 25,026 | package com.orion.utils.reflect;
import com.orion.constant.Const;
import com.orion.lang.collect.ConcurrentReferenceHashMap;
import com.orion.utils.Arrays1;
import com.orion.utils.Exceptions;
import com.orion.utils.Strings;
import com.orion.utils.Valid;
import com.orion.utils.collect.Lists;
import java.lang.reflect.Fi... | 33.682369 | 177 | 0.575402 |
278d28c8216d4cfeeabd9ffbf7579f5636ab5193 | 5,907 | package com.irtimaled.bbor.common;
import com.irtimaled.bbor.Logger;
import com.irtimaled.bbor.client.config.ConfigManager;
import com.irtimaled.bbor.common.events.PlayerLoggedIn;
import com.irtimaled.bbor.common.events.PlayerLoggedOut;
import com.irtimaled.bbor.common.events.PlayerSubscribed;
import com.irtimaled.bbo... | 39.119205 | 132 | 0.69206 |
35d132523bdff80dc761ad1fbe0d125cdff88987 | 2,096 | package org.black_ixx.bossshop.core.rewards;
import org.black_ixx.bossshop.core.BSBuy;
import org.black_ixx.bossshop.managers.ClassManager;
import org.black_ixx.bossshop.managers.misc.InputReader;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.ClickType;
public class BSRewardTypeShop extends BSR... | 28.324324 | 176 | 0.647424 |
300c62e7308dbf8412383b4c20bb48a49268e192 | 6,293 | /*
* Copyright 2005 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 i... | 37.236686 | 126 | 0.588908 |
9f901d17436c55aed13141c2b8454e40a00b4bb3 | 2,259 | package com.ckf.crm.service;
import com.ckf.crm.entity.Employee;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/**
* @au... | 22.59 | 108 | 0.585215 |
6a4b646169732f6f335ad3bca224fbfdb93721a7 | 216 | package memorialize;
public abstract class SeminarRead {
protected double hours;
protected String dope;
public double now() {
return this.hours;
}
public String scoop() {
return this.dope;
}
}
| 14.4 | 35 | 0.685185 |
b31b24292828d6378d780dd7476cac3e00b3b84f | 2,128 | package com.xiezizuocai.pureacg.task;
import android.os.AsyncTask;
import com.xiezizuocai.pureacg.constant.API;
import com.xiezizuocai.pureacg.entity.LatestInfo;
import com.xiezizuocai.pureacg.utils.ParserUtils;
import com.xiezizuocai.pureacg.utils.Request;
import org.json.JSONException;
import org.json.JSONObject;
... | 30.4 | 103 | 0.605263 |
4c706d17ae6bce64d1dd023f4f104439c01e8313 | 716 | package com.ntbrock.seatop.pebble.protocol;
/**
* Created by brockman on 2/7/16.
*/
public class SeatopPointDistroStruct {
int point_type;
// Picked 20 arbirarility. This is a limitation of the protocol
// Will not allow of very large, dyanmically sized histograms.
// It also means that smaller hi... | 31.130435 | 110 | 0.743017 |
9f21da3929d0e1553e4f38f9f441b14ddf589ce4 | 81 | package com.example.p2psharelibrary;
public interface DiscoverPeersCallBack {
}
| 16.2 | 40 | 0.839506 |
1fa5ad935473c04bd5c95d04b47df69c217fe6bd | 1,086 | package com.hrh.mall.service;
import com.hrh.mall.domain.UmsOss;
import com.hrh.mall.dto.FileInfo;
import com.hrh.mall.dto.ResponseResult;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
* @ProjectName: mall-monomer
* @Package: com.hrh.mall.service
* @ClassName: UmsOssService
*... | 20.884615 | 73 | 0.633517 |
0908603eb6f4c81551f777dff229a9f3e4f24211 | 12,344 | /**
* NOTE: This class is auto generated by the swagger code generator program (3.0.18).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package io.swagger.api.germ;
import io.swagger.model.BrAPIResponse;
import io.swagger.model.Model202AcceptedSearchResponse;
import io.swagge... | 89.449275 | 329 | 0.755752 |
c76bac7115f53570b1c8fc2deeec57782ce349df | 16,258 | /**
* Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is governed by a
* license that can be found in the LICENSE file.
*
* This file was generated automatically. Changes to this file will be lost every time the
* code is regenerated.
*/
package com.blockchyp.client.dto;
import com.fasterxm... | 28.623239 | 93 | 0.639193 |
5ab6b2d412156e903e31688a7ebc08e9bac945fd | 1,004 | package com.example.processor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.sp... | 26.421053 | 68 | 0.786853 |
1d86e3ea9cb10308ed5a0f37ade6a64c2c0bcb2c | 449 | package br.com.zupacademy.antonio.dtos;
import br.com.zupacademy.antonio.entities.Biometria;
public class BiometriaResponse {
private String fingerprint;
private String cartao;
public BiometriaResponse(Biometria biometria) {
this.fingerprint = biometria.getFingerprint();
this.cartao = biometria.getCartao().... | 18.708333 | 52 | 0.750557 |
96b851606f9a2bed61369af6806cf329d1a19fe2 | 869 | /*
* 版权所有 (c) 2015 。 李倍存 (iPso)。
* 所有者对该文件所包含的代码的正确性、执行效率等任何方面不作任何保证。
* 所有个人和组织均可不受约束地将该文件所包含的代码用于非商业用途。若需要将其用于商业软件的开发,请首先联系所有者以取得许可。
*/
package org.ipso.lbc.common.frameworks.jfreechart;
import org.jfree.chart.renderer.category.BarRenderer;
import org.jfree.data.category.CategoryDataset;
import java.awt.*;
/**... | 25.558824 | 70 | 0.698504 |
678a4b6a7e210806bcbabdd12501747fe5b8b74e | 388 | package com.xuxianda.feign;
import com.xuxianda.entity.User;
import org.springframework.web.bind.annotation.PathVariable;
/**
* Created by Xianda Xu on 2018/3/18.
*/
public class HystrixClientFallback implements UserFeignClient{
@Override
public User findById(@PathVariable("id") Long id) {
User user... | 22.823529 | 62 | 0.690722 |
aff9ba6a387af8457704fc85c3661dd41c1abaac | 4,147 | /*
* Copyright 2018 Nextworks s.r.l.
*
* 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 w... | 26.928571 | 114 | 0.742947 |
1b17be4f153c535617e139b0e477573482bf8413 | 1,716 | package com.microsoft.hsg.android.simplexml.test;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import junit.framework.TestCase;
import android.util.Base64;
import com.microsoft.hsg.Connection;
import com.microsoft.hsg.android.simplexml.ConnectionFactory;
import com.microsoft.hsg.andr... | 36.510638 | 112 | 0.81993 |
334942e986b283979ad18dbcf7742dd948d1567e | 1,875 | package com.gh4a.resolver;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import com.gh4a.activities.FileViewerActivity;
import com.gh4a.utils.ApiHelpers;
import com.gh4a.utils.FileUtils;
import com.gh4a.utils.Optional;
import com.gh4a.utils.RxUtils;
import com.meisolsson.githubsdk.mod... | 36.057692 | 95 | 0.698133 |
5950def98f5b09a750861c690c4081289c28f411 | 885 | package com.abocode.jfaster.system.entity;
import com.abocode.jfaster.core.AbstractIdEntity;
import lombok.Data;
import javax.persistence.*;
/**
* 权限操作表
*/
@Entity
@Table(name = "t_s_operation")
@Data
public class Operation extends AbstractIdEntity implements java.io.Serializable {
@Column(name = "operation_na... | 27.65625 | 81 | 0.710734 |
fa7822ded6bd30578510d8d33a1986b019a7b968 | 226 | package de.cgrotz.kademlia.storage;
import lombok.Builder;
import lombok.Data;
/**
* Created by Christoph on 27.09.2016.
*/
@Builder
@Data
public class Value {
private long lastPublished;
private String content;
}
| 15.066667 | 38 | 0.725664 |
e320ce2bf8627ff3e1f2e1d84dd82708ea1ce52b | 9,296 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Un... | 45.793103 | 127 | 0.716007 |
7b467f816467b2ea14014a6a70e6a3aabc8a0a85 | 1,434 | package common.net;
import io.netty.handler.codec.http.HttpRequest;
public class HttpPacket {
private int playerid;
private String deviceid;
private String token;
private int protocol;
private String data;
private HttpRequest request;
private String ip;
public HttpPacket(int playerid,String devi... | 19.378378 | 118 | 0.682008 |
4ce1be8bfb6d6e0eef6ded5a8611787a53768c58 | 7,032 | /*
* 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 ... | 43.677019 | 154 | 0.718572 |
66623120db92ee74a6c6e4b69e01e7fd0da9d859 | 1,666 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 41.65 | 140 | 0.718487 |
43fb8b58f87f11b40d40292087e286da45485b53 | 14,221 | package com.plealog.jgaf.prefs4j.implem.ui.tools;
import java.awt.Container;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JLabel;
import javax.swing.RootPaneContainer;
/**
* Swing LayoutManager that implements "Canonical Grids" as used by graphic artists to design
* magazines, pos... | 41.949853 | 101 | 0.687786 |
0370b4621afef1026ca2abd3160ddd1b5301fe62 | 242 | class G{
int i;
void display(){
int i=1;
System.out.println(this.i);
}
}
class Run5{
public static void main(String...args){
G g1= new G();
g1.i=10;
G g2=new G();
g2.i=20;
g1.display();
g2.display();
}
}
| 12.736842 | 41 | 0.528926 |
188a6025081c3c34194adb3d0bce136a3bdcc9d2 | 7,267 | package com.mmoehler.sldt.analysis;
/*-
* #%L
* dt
* %%
* Copyright (C) 2016 - 2020 Michael Moehler
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 35.276699 | 120 | 0.398376 |
855985b4e29e8315cff30854fd282e3b933c64f4 | 1,971 | package ca.utoronto.utm.mvcexample;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
public class MVCApplication extends Application {
// REMEMBER: To run this in ... | 29.41791 | 85 | 0.698123 |
a0bf7764c8b0aba6b379b165cce19c852a36ec42 | 8,848 | /*
National Crime Agency (c) Crown Copyright 2018
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 wr... | 33.900383 | 152 | 0.688969 |
39645cc8615625831497b8385ef448480ea01be3 | 1,006 | package example;
import nlp4j.Document;
import nlp4j.DocumentAnnotator;
import nlp4j.impl.DefaultDocument;
import nlp4j.krmj.annotator.KuromojiAnnotator;
import nlp4j.util.DocumentUtil;
import nlp4j.util.JsonUtils;
/**
* 日本語形態素解析とインデックス処理を利用して、共起性の高いキーワードを抽出するサンプルソースコードです。 <br>
* Sample for Dependency An... | 21.869565 | 78 | 0.695825 |
950d5ec77f6ff2f8e626224e7b52268f67b68c5a | 827 | package com.arcussmarthome.ipcd.client.handler;
import com.arcussmarthome.ipcd.client.comm.IpcdClientDevice;
import com.arcussmarthome.ipcd.msg.GetReportConfigurationCommand;
import com.arcussmarthome.ipcd.msg.GetReportConfigurationResponse;
import com.arcussmarthome.ipcd.msg.Status;
public class GetReportConfigurati... | 27.566667 | 98 | 0.816203 |
8f5b559b62a97d584ccfcda7202d7183602e8610 | 8,643 | /*
* Copyright 2016 Ali Moghnieh
*
* 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... | 43.215 | 147 | 0.660882 |
7c649adc523697f90c20fd45f6dbf7731a18f206 | 2,856 | package interop.wchar;
/**
* Client.java
*
* Java implemention of the reference wchar data supplied to both
* clients and servers. This is independently maintained in parallel
* with the c++ version, wchar_reference.cpp
*
* @author Phil Mesnier
* @version $Id: WCharReference.java 63125 2005-01-06 04:09:37Z me... | 27.461538 | 76 | 0.502101 |
7d800571d9ee3bcdeec4729a67d8b47483aa5c66 | 7,500 | // Interactive Web Physics (IWP)
// Copyright (C) 1999 Nathaniel T. Brockman
//
// For full copyright information, see main source file,
// "iwp.java"
package edu.ncssm.iwp.objects.grapher;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;
imp... | 34.562212 | 153 | 0.621733 |
1bde8375ae757bc570056c80443a6a42e36b3714 | 316 | package org.springframework.roo.addon.javabean.addon;
import org.springframework.roo.classpath.itd.ItdTriggerBasedMetadataProvider;
/**
* Provides {@link SerializableMetadata}.
*
* @author Alan Stewart
* @since 1.1
*/
public interface SerializableMetadataProvider extends ItdTriggerBasedMetadataProvider {
}
| 24.307692 | 87 | 0.800633 |
81acb67281d426a37e5a15c4bb19c36f80b83e26 | 668 | package main;
public class DBBinding {
private String key;
private String value;
public DBBinding(String line) {
String[] strArray = line.split(":");
key = strArray[0].trim();
value = strArray[1].trim();
}
public String getKey() { return key; }
public St... | 23.034483 | 80 | 0.558383 |
6136f1a96070a3104f8974388c204c4a6a0d2eaa | 1,575 | package test.xdef;
import java.util.ArrayList;
import java.util.List;
import org.xdef.component.XComponent;
import org.xdef.proc.XXNode;
public class TestXComponents_G {
XComponent _X, _Y, _G;
private String _XX;
private int _flags;
public static void setXX(XXNode xx, String s) {
if (xx.getXComponent() != nul... | 28.125 | 67 | 0.695873 |
0147d5cd6844dc2f7c0f8031715259492f10b6f7 | 340 | package info.izumin.android.droidux.example.todoswithdagger.action;
import info.izumin.android.droidux.Action;
/**
* Created by izumin on 12/5/15.
*/
public class ClearNewTodoTextAction implements Action {
public static final String TAG = ClearNewTodoTextAction.class.getSimpleName();
public ClearNewTodoTex... | 24.285714 | 82 | 0.764706 |
c9782163a7f822a7444e87817cd7ced09db06248 | 789 | package org.hisp.dhis.rules.android;
import android.support.annotation.NonNull;
import com.squareup.duktape.Duktape;
import org.hisp.dhis.rules.RuleExpressionEvaluator;
import javax.annotation.Nonnull;
public final class DuktapeEvaluator implements RuleExpressionEvaluator {
@NonNull
private final Duktape ... | 23.205882 | 72 | 0.680608 |
83b39a2af64ed8a98bc39117aeb26c6dd9bea1a8 | 2,533 | /*
* Copyright (C) 2014 Ribot Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 32.896104 | 88 | 0.708251 |
18eba1a6857b089756919e458cf21b0b418b3fd9 | 1,976 | /* 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
* distribut... | 37.283019 | 128 | 0.769231 |
2b40292e51d5f3b645e9c6f08741e5ebbab8ea3b | 7,042 | package me.jlurena.revolvingweekview.sample;
import android.graphics.Color;
import android.graphics.RectF;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.v7.app.AppCompatActivity;
import android.util.TypedValue;
import android.view.Menu;
import android.view.MenuItem;
impor... | 36.86911 | 116 | 0.656632 |
6bc12cad7b1b3d0efb5542dbd406f69c117cbf16 | 106,073 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: monitorhttp.proto
package monitor.http;
public final class Monitorhttp {
private Monitorhttp() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtens... | 31.691963 | 297 | 0.574048 |
6c854a097aaa5e957aeb137de6c10192d0670c22 | 1,880 | package xyz.juanes.jviz.registry.routes;
import org.json.simple.JSONObject;
import xyz.juanes.jviz.registry.Config;
import xyz.juanes.jviz.registry.firebase.FirebaseREST;
import xyz.juanes.jviz.registry.firebase.FirebaseResponse;
import xyz.juanes.jviz.registry.helpers.HttpOut;
import xyz.juanes.jviz.registry.helpers... | 25.405405 | 96 | 0.685106 |
fe56af795ade0f09444dbbc1ad698c7a392bfa4f | 226 | package com.monezhao.common.base;
import org.springframework.web.bind.annotation.RestController;
/**
* @author monezhao@163.com
* @Date: 2020/5/23 9:58
* @Description:
*/
@RestController
public class BaseController {
}
| 16.142857 | 62 | 0.738938 |
0f03e11ce8f7fd7b693e8bea439c00fbe164e0d3 | 453 | package com.stackroute.intelligentservice.repository;
import com.stackroute.intelligentservice.domain.IntelligentService;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface IntelligentServiceRepository extends MongoRepos... | 25.166667 | 98 | 0.843267 |
c1607fd6be29751cab92c314c271726339b7cac5 | 2,491 | /*
* 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 ... | 42.948276 | 118 | 0.78322 |
24f489fafe30faada20f1a91623fc7688df3625f | 375 | package ir.maktab.project.domain.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class UserOfCourseDTO {
private String userName;
private String firstName;
private String last... | 18.75 | 37 | 0.784 |
4c7fb90767853102bc8116a0eaf22c16ff90345f | 2,569 | package cn.sexycode.myjpa.plus.injector.methods;
import cn.sexycode.myjpa.plus.injector.AbstractMethod;
import cn.sexycode.myjpa.plus.injector.MyTableInfoHelper;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.enums.SqlMethod;
import com.baomidou.mybatisplus.core.metadata.TableI... | 45.070175 | 142 | 0.705333 |
1ad5b7e04b9fb5d2a14927f5c88184f6fd668b98 | 231 | /**
* Event types
*/
public class Commands{
public static int PRESS_MOUSE = -1;
public static int RELEASE_MOUSE = -2;
public static int PRESS_KEY = -3;
public static int RELEASE_KEY = -4;
public static int MOVE_MOUSE = -5;
} | 23.1 | 38 | 0.705628 |
9a53610305229b57088cb23a151bf67397bd2eb2 | 1,843 | package com.cmput301.penguindive;
import junit.framework.TestCase;
import org.junit.Assert;
public class QuestionTest extends TestCase {
public void testGetQuestion() {
Question ques = new Question("Question", "ID","Title","123");
String result = ques.getQuestion();
Assert.assertEquals("... | 32.910714 | 70 | 0.637005 |
c3be78655348b35d53b1de67d8d3c309e4534963 | 5,922 | package com.api;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
/**
* 活动系统API
*
* @author Jayin Ton
*
*/
public class ActivityAPI {
public ActivityAPI() {
}
/**
* 根据给定的条件查找活动列表 String name should be appended!
*
* @param page
... | 25.2 | 80 | 0.580209 |
cc30cda5067bbe71c9370faa332567a362505253 | 586 | /* FantastleX: A Maze/RPG Hybrid Game
Copyright (C) 2008-2010 Eric Ahnell
Any questions should be directed to the author via email at: FantastleX@worldwizard.net
*/
package com.puttysoftware.fantastlex.maze.objects;
import com.puttysoftware.fantastlex.maze.abc.AbstractPort;
import com.puttysoftware.fantastlex.resou... | 26.636364 | 87 | 0.742321 |
9984c187ff208b89135830476af091dfb73e37ea | 148 | class Output
{
public static void main(String args[])
{
Object obj=new Object();
System.out.println(obj.getClass());
}
} | 18.5 | 43 | 0.581081 |
5d45f5d952b3b10568761cb5a9436419a2a5f0e8 | 35,016 | /*
* This file was automatically generated by EvoSuite
* Fri May 22 11:46:13 GMT 2020
*/
package com.alibaba.fastjson.parser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.alibaba.fastjson.parser.DefaultJSONParser;
import com.alibaba.fastjso... | 35.334006 | 428 | 0.655872 |
8306bffe1eaeee9912f8cec95bdd3d2ea24ebf12 | 793 | package com.feilong.namespace;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.c... | 30.5 | 80 | 0.723834 |
daef28f95875ecbe00d4ef9df667ab74a7435f30 | 1,421 | /*******************************************************************************
* Copyright 2018 Tremolo Security, 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://... | 37.394737 | 96 | 0.660099 |
61dba50471f57ce1772d2a743733941be8822de5 | 3,850 | package com.waterphobiadr.ui.feature.doctorlist;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import... | 37.745098 | 111 | 0.717403 |
91d14468e429ec69d9d033b1800fc80af0aa7bc5 | 1,026 | package org.rtest.framework.client.dynamicreload;
import org.rtest.api.annotations.AllowedDataFetchPath;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* By default checks whether the custom path has been specified by annotation and if not, just allows to bring everything in the p... | 36.642857 | 136 | 0.733918 |
4cd84ccb360f848effdf20ebf9011078d3ea80fd | 7,237 | /*
* ConnectBot: simple, powerful, open-source SSH client for Android
* Copyright 2010 Kenny Root, Jeffrey Sharkey
*
* 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.a... | 32.452915 | 104 | 0.77311 |
515a0ac6d6620224797a83edbc26814cbf24e78a | 2,863 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 25.792793 | 810 | 0.749563 |
83683ecc26e602b9508507acc48df4096e376ac4 | 3,539 | package com.twitter.elephantbird.mapred.input;
import com.twitter.elephantbird.mapreduce.input.MultiInputFormat;
import com.twitter.elephantbird.mapreduce.io.BinaryWritable;
import com.twitter.elephantbird.util.TypeRef;
import org.apache.hadoop.hive.conf.HiveConf;
import org.apache.hadoop.hive.ql.exec.Utilities;
impor... | 39.764045 | 98 | 0.747104 |
9ead1ba2485ff8e03f302cc03fd0b99c9144e5e8 | 1,984 | package com.tazine.evo.webflux.error;
import org.springframework.boot.autoconfigure.web.ResourceProperties;
import org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler;
import org.springframework.boot.web.reactive.error.ErrorAttributes;
import org.springframework.context.Applicati... | 38.153846 | 104 | 0.765121 |
589d1c54284d3e09b0c35a9517fabb952af6b3bd | 180 | package com.genesis.utils.time;
/**
* @author: KG
* @description:
* @date: Created in 下午9:47 2019/1/25
* @modified by:
*/
public enum IntervalLanguage {
ENG,
CHN
}
| 12 | 37 | 0.622222 |
14ba83f599bb7110deec6900ad7f83e5301acab9 | 587,285 | /**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package alluxio.thrift;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.th... | 33.306017 | 346 | 0.636151 |
cf055c05b3d0993fcfe1b9abb3c3675bcef5c62b | 2,109 | /*
Copyright 2014-2016 Intel Corporation
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, s... | 27.038462 | 102 | 0.645804 |
bad88aafc51e3c5b72d6df47391df7123b21d999 | 10,123 | /*
* This file was automatically generated by EvoSuite
* Sat Jan 18 19:39:17 GMT 2020
*/
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWi... | 36.677536 | 176 | 0.669663 |
25a2ba3faabbe2d5e291bf66f2a51d27b86e1f2e | 902 | package org.blueshard.olymp.files;
public class ServerFiles {
public static class etc {
public static final String dir = "/srv/etc/";
public static final String register_codes = dir + "register_codes";
public static final String versions = dir + "versions.conf";
public static cla... | 22.55 | 75 | 0.608647 |
57d28ab101438a75d9c7e749eeff6772e887b282 | 543 | /** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
package com.gemstone.org.jgroups.blocks;
import com.gemstone.org.jgroups.ChannelException;
/**
* This exception is thrown when voting listener cannot vote on the
* specified decree.
*
* @aut... | 27.15 | 67 | 0.747698 |
d48ac047d7a884c90b6f336978266d5698e42e7a | 10,329 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... | 15.100877 | 810 | 0.811405 |
a1f57f6258ef8a0a4bac37f4087884d8ae2fb170 | 477 | package cn.learn.learn.command.demo01;
/**
* design-pattern-runoob-cn.learn.learn.command.demo01
*
* @author : WXF
* @date : 2018年-06月-30日
*/
public class Stock {
private String name = "ABC";
private int quantity = 10;
public void buy(){
System.out.println("stock [name:" + name + ",quantity:... | 20.73913 | 89 | 0.595388 |
727c3be2d99b4d4a215c76fd09d181d38667e098 | 2,908 | package uk.gov.hmcts.reform.em.test;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mocki... | 32.311111 | 87 | 0.736589 |
11bd5e0bf5a7105679eac3916843a873d72b2617 | 7,453 | package com.testquack.maven.mojo;
import com.testquack.beans.Launch;
import com.testquack.beans.LaunchStatus;
import com.testquack.beans.LaunchTestCase;
import com.testquack.beans.LaunchTestCaseTree;
import com.testquack.maven.client.QuackClient;
import com.testquack.maven.client.QuackClietnUtils;
import org.apache.ma... | 40.286486 | 129 | 0.662149 |
60b1eb869835a1778d52695971348ce36397afe5 | 341 | package uk.ac.kent.eda.jb956.sensorlibrary.data;
/**
* Copyright (c) 2017, Jon Baker <Jonty800@gmail.com>
* School of Engineering and Digital Arts, University of Kent
*/
public class PositionsData extends SensorData {
public float X;
public float Y;
public PositionsData(int sensorType) {
super(... | 22.733333 | 61 | 0.70088 |
12290babffbac9e37c8dfc4f2977c3c264c25527 | 372 | package tiams.comparator;
import java.util.Comparator;
import tiams.model.Menu;
/**
* 菜单排序
*
* @author nonkr
*
*/
public class MenuComparator implements Comparator<Menu> {
public int compare(Menu o1, Menu o2) {
int i1 = o1.getSeq() != null ? o1.getSeq().intValue() : -1;
int i2 = o2.getSeq() != null ? o... | 16.173913 | 61 | 0.634409 |
db299d692530592c001c005bf92a1362a2146997 | 2,846 | package org.example.translator.impl;
import org.example.domain.dto.AccountTransactionDto;
import org.example.domain.dto.AccountTypeDto;
import org.example.domain.persistance.AccountTransaction;
import org.example.repo.persistence.AccountTransactionRepository;
import org.example.translator.AccountTransactionTranslator;... | 37.946667 | 133 | 0.728039 |
ed1afb62adf7253bc09eb3aba2919e3737a8efe9 | 295 | package com.yangzg.chapter06;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by Sam on 2019/6/17.
*/
public class Main {
@Test
public void test1() {
Fu fu = new Zi();
System.out.println(fu.a);
assertEquals(1, fu.a);
}
} | 17.352941 | 44 | 0.610169 |
31840d0ca6121ff522c3d8846d8fae408c5dffbf | 25,162 | /*
* 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 ... | 24.668627 | 113 | 0.681464 |
456895dd969082e43e7464726cb9856b21385207 | 983 | package com.adrninistrator.javacg.dto;
import java.util.Map;
/**
* @author adrninistrator
* @date 2021/6/25
* @description:
*/
public class ExtendsClassMethodInfo {
private boolean abstractClass;
private String superClassName;
private Map<String, MethodAttribute> methodAttributeMap... | 22.860465 | 89 | 0.678535 |
eec773d4100b98022444f6c5c11cb382705a7edb | 2,153 | package org.ayo.rx.sample;
import io.reactivex.Flowable;
import io.reactivex.MaybeObserver;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
/**
* Created by Administrator on 2017/2/14 0014.
*/
public class Rx_firstElem... | 24.465909 | 80 | 0.499303 |
b91152c44bc9ae758070e3c5b579818827b415d8 | 14,094 | package org.hcjf.layers.query.functions;
import org.hcjf.errors.HCJFRuntimeException;
import org.hcjf.properties.SystemProperties;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoField;
import java.time.... | 51.816176 | 144 | 0.666028 |
c350b24a7d7f4c86aa3cc6b95b25c31ab81b50c1 | 623 | package com.ggar.altair.dao;
import com.ggar.altair.model.intermediate.UrlTag;
import com.magc.sensecane.framework.dao.CachedDao;
import com.magc.sensecane.framework.database.connection.pool.ConnectionPool;
public class UrlTagsDao extends CachedDao<UrlTag> {
public UrlTagsDao(ConnectionPool pool) {
super... | 23.074074 | 77 | 0.711075 |
f9162a69b9904d1f4710db4d17b2dcd78d55a7ab | 1,008 | package nl.rostykerei.cci.ch01.q04;
import nl.rostykerei.cci.common.AbstractFactoryTest;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public abstract class PalindromePermutationAbstractTest extends AbstractFactoryTest<PalindromePermutation> {
@Tes... | 36 | 108 | 0.752976 |
a7e462982dad92d8c7c3fb9ce7a81d1911c3b81d | 5,367 | package org.zalando.sprocwrapper.globalvaluetransformer;
import com.google.common.base.Strings;
import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.TypeAnnotationsScanner;
import org.reflections.util.ClasspathHelper;
import org.reflections.util.Configura... | 46.267241 | 120 | 0.660704 |
46c6217739169038f5a137a0ff5dc15337c7783d | 2,028 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.sql.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.P... | 27.780822 | 96 | 0.688363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.