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 |
|---|---|---|---|---|---|
a599d6d501f8a22afefe3dc2d3e9f0c58c8ae7c3 | 2,188 | package str.json;
import com.alibaba.fastjson.JSONObject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.*;
import java.util.Date;
import java.util.HashMap;
/**文件和json对象转换
* Created by lvm on 2016/3/1.
*/
public class File2json {
static Logger log = LogManage... | 28.051282 | 68 | 0.533364 |
1e9d94871100fd8498c68baffe005ec831b3c4f5 | 1,975 | package net.thesimpleteam.jrevolt.entities.messages;
import java.awt.Color;
import java.net.MalformedURLException;
import java.net.URL;
public class EmbedBuilder {
private final String content;
private String iconUrl;
private String url;
private String title;
private String description;
priva... | 25 | 135 | 0.610633 |
d5302bb0d81490decf0c77043ca096137cc5e742 | 4,169 | /*
* Copyright 2015-2018 Micro Focus or one of its affiliates.
*
* 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... | 37.223214 | 127 | 0.763492 |
c26126447ad387bf55ce3aff3c65ba8ef23c54ed | 1,603 | package com.poa.POAvanzados.controller;
import com.poa.POAvanzados.exception.NoWarehouseWithEnoughStock;
import com.poa.POAvanzados.exception.QuantityExceedsMaxSlots;
import com.poa.POAvanzados.model.item_model.ItemCount;
import com.poa.POAvanzados.model.position_model.Position;
import com.poa.POAvanzados.model.workpl... | 34.847826 | 156 | 0.790393 |
2afe6a76cf0bc42d4664c9676159fe080fb7bec5 | 4,516 | package com.loserico.datetime;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import org.junit.Test;
public class DifferentTimeZoneTest {
... | 35.84127 | 119 | 0.673605 |
3436d03f1ec62609c905f1eee4a41b51cddc230a | 1,154 | package dev.marker.utils;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.testng.reporters.Files;
import dev.marker.daos.UserDao;
import dev.marker.daos.UserDaoPostgres;
import dev.marker.entities.User;
p... | 32.055556 | 92 | 0.657712 |
73917f12a2e35ba1d42f09590451fb94aeffc3c4 | 4,870 | package com.huaweicloud.sdk.waf.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.Objects;
/** Response Object */
public class CreatePremiumHostResponse extends SdkResponse {
@JsonInc... | 26.612022 | 106 | 0.629979 |
efb0c06908b16c88f5a3d96b0ca1455bcf0fb401 | 1,507 | package uk.dangrew.nuts.recipe.constraint;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.math3.optim.linear.LinearConstraint;
import or... | 32.76087 | 99 | 0.738553 |
991dda615eff45d53bd943bd12cf3aea82fee0d1 | 8,118 | package org.zmsoft.framework.utils;
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import jav... | 20.868895 | 117 | 0.599901 |
6186e4761ac068346aeba3adb98b15aafe9ea7b6 | 103 | /**
* General purpose facets for classes.
*/
@ml.alternet.misc.InfoClass
package ml.alternet.facet;
| 14.714286 | 38 | 0.728155 |
c08a5140246a60168ddc8dd4f582cf32474c5696 | 4,773 | package org.agmip.translators.soil;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import org.agmip.ace.AcePathfinder;
import org.agmip.ace.util.AcePathfinderUtil;
import org.agmip.functions.WeatherHelperTest;
import org.agmip.util.JSONAdapter;
import static org.junit.Assert.*;
impor... | 44.194444 | 113 | 0.652001 |
1c74dd119b16c4979508fc108e14e3e541f9a4cd | 9,423 | /**
*
*/
package de.metas.form.swing;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program 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 2 of the
... | 28.728659 | 80 | 0.721639 |
a9dc27a2bba14c39b802433cb8801d9b98c00f67 | 3,193 | package cn.edu.neu.pojo;
import java.util.Objects;
public class Employee implements Comparable<Employee>{
private Integer eid;
private String username;
private String password;
private String name;
private EmployeeType type;
private String birthday;
private String expertSkill;
private ... | 22.971223 | 94 | 0.575321 |
af0e37ff5ce59caf76d5157904309f14e7997957 | 6,772 | package com.nainai.mapper;
import com.nainai.domain.ShopNavigation;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface ShopNavigationMapper {
int deleteByPrimaryKey(String id);
int in... | 43.690323 | 141 | 0.607944 |
38dcfde0be46eb89deef8d4bd0e9f932de81efce | 10,537 | package org.apache.velocity.util.introspection;
/*
* 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 Apa... | 39.464419 | 117 | 0.556515 |
f03e811354b5261a2292308d74ad15cc3f7f98a0 | 1,872 | package tech.quantit.northstar.main.utils;
import java.io.IOException;
import com.google.gson.Gson;
import com.google.protobuf.Message;
import com.google.protobuf.util.JsonFormat;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ProtoBeanUtils {
private ProtoBeanUtils() {}
/**
* 将ProtoBean对象转化为POJO对象... | 30.193548 | 107 | 0.640491 |
9f31dad2db3a801b9a1e4288549983e1adcf221d | 4,886 | package small_management_program.model.database;
import com.mysql.cj.jdbc.exceptions.CommunicationsException;
import small_management_program.controller.queries.Query;
import small_management_program.controller.queries.QueryRevert;
import small_management_program.controller.queries.QueryWithError;
import small_managem... | 38.777778 | 149 | 0.64388 |
4028ed1bfc2db9b114b6486e1d1b68138fdfb87f | 14,237 | package dk.kb.netarchivesuite.solrwayback.parsers;
import dk.kb.netarchivesuite.solrwayback.facade.Facade;
import dk.kb.netarchivesuite.solrwayback.properties.PropertiesLoader;
import dk.kb.netarchivesuite.solrwayback.properties.PropertiesLoaderWeb;
import dk.kb.netarchivesuite.solrwayback.service.dto.ArcEntryDescript... | 53.123134 | 144 | 0.540001 |
6a0f4a0941e3a6f9e846696cdaeaf6dfd8a7e59d | 6,433 | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: Kiyingi Simon Peter
* License Type: P... | 54.516949 | 125 | 0.80227 |
04a090697b63b7c4c1f8f00fe704766faa6892b1 | 3,492 | package io.openindoormap.interceptor;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
... | 37.956522 | 121 | 0.640034 |
19d6125502c9df14660a06ff49f29ad54f24b8b2 | 5,774 | package ftb.lib.api.block;
import cpw.mods.fml.relauncher.*;
import ftb.lib.LMMod;
import ftb.lib.api.tile.TileLM;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecr... | 27.107981 | 138 | 0.693453 |
435e013b77a4e80bc87fb859d128c05078a23648 | 1,071 | package org.apache.spark.sql.catalyst.plans.logical;
/**
* The logical plan of the USE/USE NAMESPACE command that works for v2 catalogs.
*/
public class SetCatalogAndNamespace extends org.apache.spark.sql.catalyst.plans.logical.LogicalPlan implements org.apache.spark.sql.catalyst.plans.logical.Command, scala.Product... | 76.5 | 247 | 0.771242 |
ac7067d40770d028d365e231e6c1835d26479482 | 4,009 | /*
* Copyright (c) 2003, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
package edu.uci.ics.jung.algorithms.generators.random;
import com.google.common.grap... | 29.91791 | 97 | 0.64879 |
cc3b8357f495cf12a227463e7a6fc450424af65d | 4,023 | package com.xracoon.teamcat.agent.archive;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.SocketException;
import java.util.Date;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.http.client.utils.DateUtils;
impo... | 24.680982 | 138 | 0.688044 |
2c6ad9e6a5b6fd809e7556c56705a7b7b5348308 | 25,390 | /*
* Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 43.700516 | 130 | 0.637141 |
02d7de87cab8d4d2374f171f071b68d11e71c64a | 3,170 | package voldemort.rest.coordinator;
import java.util.Map;
import org.apache.log4j.Logger;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.Channels;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.handler.codec.http.HttpResponseStatus;
import voldemort.common.V... | 42.837838 | 129 | 0.663091 |
cc582d8e26518dd92731324371c70d07abe4176e | 145 | package com.echinacoop.lightos.socket.dto;
public enum UserState {
online,
offline,
leave,
invisible
}
| 10.357143 | 42 | 0.565517 |
9233043cee5c263ff799b58c44a84c7bad2ee6b6 | 6,788 | /*
* This file is part of NeptuneVanilla, licensed under the MIT License (MIT).
*
* Copyright (c) 2015-2017, Jamie Mansfield <https://github.com/jamierocks>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | 30.035398 | 111 | 0.686506 |
10ab973da4ba4820ea4c8d08ef67ebc62e29adb4 | 1,562 | package br.com.lsd.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import br.com.lsd.dao.EnderecoDao;
impo... | 22 | 79 | 0.741997 |
2f99c094e468e0162246cbd2e47676efb6a71443 | 5,256 | package org.ihtsdo.snomed.util.rf2;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.ihtsdo.snomed.util.pojo.Concept;
import org.ihtsdo.s... | 32.645963 | 114 | 0.743151 |
3bcaf2889c6e214262ab2c10ddaee36f8c69f620 | 658 | package com.demo.android.beacons.ibeaconscanner.handlers;
import android.support.annotation.NonNull;
import com.demo.android.beacons.ibeaconscanner.Beacon;
/**
* Created by eliaslecomte on 28/09/2016.
*
* This class generates {@link com.demo.android.beacons.ibeaconscanner.handlers.TimeoutHandler.TimeoutCallback#t... | 31.333333 | 128 | 0.784195 |
ff6090813bea67a36e1d4035309ff63937b39554 | 4,701 | /**
*
*/
package net.oneandone.troilus.persistence;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Optional;
import net.oneandone.troilus.CassandraDB;
import net.oneandone.troilus.Dao;
import net.oneandone.troilus.DaoImpl;
import net.oneandone.troilus.... | 24.231959 | 157 | 0.67475 |
53d43bf3bb34cb9fa7352860c27d34993c774193 | 1,095 | /*
* Copyright 2019 WeBank
*
* 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 writi... | 28.815789 | 75 | 0.742466 |
aba8b21c4d5e82d3ad410427436565a25db6b41a | 1,962 | package no.nav.domain.pensjon.common.person;
import java.io.Serializable;
import java.util.List;
public class UtlandHistorikk implements Serializable {
private static final long serialVersionUID = 7359980525762077165L;
private Person person;
private List<HistorikkInfo> statsborgerskapListe;
... | 30.65625 | 90 | 0.716616 |
73a88f19754d56442456628ca3fc5f628730f8fe | 9,526 | package org.bsim;
import org.javax.vecmath.Vector3d;
/**
* Standard chemical field (uniform division of space) .
* Uses regular division of the three-dimensional space into boxes that
* then allow for diffusion of chemical quantities between the boxes at
* some rate (diffusivity).
*/
public class BSimC... | 35.412639 | 108 | 0.570019 |
8f60ecf8a41ee420135fa2a548d81a5fcc45c098 | 5,384 | package edu.cmu.lti.oaqa.index;
import edu.cmu.lti.oaqa.liveqa.CQAResult;
import edu.cmu.lti.oaqa.search.WordNetExpansion;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.en.EnglishAnalyzer;
import org.apache.lucene.analysis.tokenattributes.C... | 40.787879 | 138 | 0.622028 |
8b738f2e3945f48df116fcb4b07639ccea1addaa | 7,050 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 shibafu
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | 33.254717 | 84 | 0.66227 |
df5e2a0b859d558e13ef1f1b03a59244c6e89850 | 15,406 | /*
* Copyright 2003-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 33.933921 | 151 | 0.710178 |
46e9506559ca02ce0874e7cbb778b22cfc657afc | 523 | package com.twu.biblioteca;
import com.twu.biblioteca.entity.Book;
import com.twu.biblioteca.repository.BooksRepository;
public class BibliotecaApp {
public static void main(String[] args) {
System.out.println("The library is oficially open! Welcome! \n And don't forget: Reading is FUNdamental ;)");
... | 29.055556 | 117 | 0.686424 |
540ccd05ffa30bf408e88c584f5018accd561368 | 5,591 | /**
* Get more info at : www.jrebirth.org .
* Copyright JRebirth.org © 2011-2013
* Contact : sebastien.bordes@jrebirth.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
*
... | 34.94375 | 155 | 0.627258 |
3a955d5f072e4eb7a1a7a9f18be7c1800b5b967f | 1,000 | package com.leidos.dataparser.data.pcap;
import com.leidos.dataparser.pipeline.GenericStageResult;
import com.leidos.dataparser.pipeline.StageException;
import com.leidos.dataparser.pipeline.StageResult;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.ni... | 30.30303 | 152 | 0.741 |
e84fdecb927d4a9dd5c0a8fcb049a8ec4e87afa6 | 926 | //Leetcode problem 386 Lexicographical Numbers
//Solution written by Xuqiang Fang on 20 April, 2018
import java.util.ArrayList;
import java.util.List;
//solution provided by user@songzec
class Solution{
List<Integer> lexicalOrder(int n){
List<Integer> list = new ArrayList<>();
int curr = 1;
... | 24.368421 | 69 | 0.49892 |
12f3ebe2d2844bb020c7d04552b5f09f0a7708e6 | 538 | package object_examples;
/**
* This class models a circle with radius and color fields
*/
class Circle {
double radius; //Represents the Circle's radius
String color; //Represents the Circle's color
/**
* Returns a string representation of the object.
* (Needs the public modifie... | 23.391304 | 58 | 0.565056 |
68c921b86612178afd731d41ec73e16860c9c895 | 953 | package com.michaelfotiadis.crossyscore.core.utils.score;
import com.michaelfotiadis.crossyscore.common.models.score.Score;
import com.michaelfotiadis.crossyscore.common.models.score.ScoreImpl;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
imp... | 28.029412 | 72 | 0.729276 |
1220c6952bc242108845929110f41fd125008004 | 8,659 | package com.bencvt.minecraft.buildregion.ui.world;
import libshapedraw.MinecraftAccess;
import libshapedraw.animation.trident.Timeline;
import libshapedraw.primitive.ReadonlyColor;
import libshapedraw.primitive.ReadonlyVector3;
import libshapedraw.primitive.Vector3;
import org.lwjgl.opengl.GL11;
import com.bencvt.mi... | 39.538813 | 112 | 0.596605 |
5a8f67ab444328fb8fdf56f9d568733457c276fc | 346 | package com.givejeong.todo.repository.querydsl;
import com.givejeong.todo.domain.TodoEnum;
import com.givejeong.todo.dto.todo.TodoDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface TodoRepositoryCustom {
Page<TodoDto> findTodoList(Long id, Long stat... | 31.454545 | 72 | 0.817919 |
da3669e0a5bc3b62631e6aabcbf140f77211000f | 10,555 | /*
* This software is distributed under following license based on modified BSD
* style license.
* ----------------------------------------------------------------------
*
* Copyright 2003 The Nimbus Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... | 37.429078 | 140 | 0.712459 |
63b12a45b6d21d7a9ea70604d7a805e99f3eca4b | 716 | package com.example.unit.androidunittests.json;
import android.test.suitebuilder.annotation.SmallTest;
import com.example.unit.androidunittests.Item;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Instrumented test for a json parser. It uses org.json classes from the Android SDK
*/
@Sm... | 24.689655 | 85 | 0.710894 |
960fd6eda1e1433ecd5fe9e4009ff763a62c2a52 | 1,009 | package com.codersafterdark.progressivemastery.utils.configs;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
public class PMConfigs {
public static File configDir;
public static Configuration configuration;
public static int miningXP;
public static void init(File file) ... | 28.828571 | 153 | 0.665015 |
fd6173b9808448c6cd37fcd7c02055ca43691ef3 | 222 | package com.library.errorutil;
import android.util.Log;
public class ErrorDebug {
private static final String TAG = "Super_AWESOME_APP";
public static void e(String message){
Log.e(TAG,message);
}
}
| 18.5 | 58 | 0.698198 |
fc45dabc9a8fb05d44badf0e26ded78ae4e39152 | 5,099 | package com.achur.avalon.processors;
import com.achur.avalon.entity.Game;
import com.achur.avalon.entity.Player;
import com.achur.avalon.storage.GameStore;
import com.achur.avalon.storage.PlayerStore;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.base.Function;
import org.junit.Be... | 33.768212 | 92 | 0.710728 |
c70968729ca50865792d9d11cedebc573ab93762 | 1,334 | /*
* 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 automatopilha.dto;
/**
*
* @author Lucas Alison de Lima
*/
public class Transicao {
private Estado estadoAtual;
... | 21.868852 | 79 | 0.670165 |
e25d03575355a8a214bbfba52419fd95c653229c | 1,689 | /* Lab Objects - Scanner - ArrayList - Vectors
-- OBJECTIVE --
Students to familiarize students with writing classes to create and use objects
they have written and from the Java API.
Name: Jose Ramos
Date: February 21, 2019
*/
// Import the library that has Scanner AND Vector.
import java.util.*;
// Creating a ... | 35.1875 | 102 | 0.648905 |
d1f945ca4040a7fa4fa2ba964fa2f4fd3231166f | 73,134 | package com.example.blckclov3r.arduino_firebase_nodemcu.FirebasePackage;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.util.Log;
import android.webkit.Mi... | 61.251256 | 192 | 0.507425 |
526a560f9020593d59e3a5d8eb50ae634fa4a7ba | 4,388 | /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 23.216931 | 102 | 0.577028 |
298bc81154bb42566ab168044c9b9266cbeed047 | 155,844 | /*
* Copyright 2015 FUJITSU 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 applicable law or agreed to in wri... | 39.374432 | 100 | 0.663105 |
54a89cf78f063db5badbdab376a5577dc9e1b043 | 37,588 | /*******************************************************************************
* Copyright 2015 InfinitiesSoft Solutions 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
*
* ... | 42.091825 | 124 | 0.719139 |
acb2f7825262148a21e1e70d1a8dc1e1fd057bd8 | 1,136 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 小目标卡片实例模型
*
* @author auto create
* @since 1.0, 2020-02-24 11:36:25
*/
public class CardInstanceDO extends AlipayObject {
private static final long serialVersionUID = 141758659... | 16.463768 | 68 | 0.638204 |
106ac48ceaf70e9a9ee3aa2987aa7ec01fa49978 | 351 | package gruv.apps.counter.domain.interactors;
import gruv.apps.counter.domain.model.DomainModel;
/**
* Интерфейс обновления значения счетчика.
*
* @author Goncharenko Ruslan
*/
public interface ValueUpdaterInteractor {
interface Callback {
// interactor callback методы
void onValueUpdate(Doma... | 19.5 | 52 | 0.732194 |
6688ae9b4d9fb497646d8fff69b3109d0410a5dc | 955 | package com.github.bazoocaze.vulkancpu4j.vulkan.internal.devices.software;
import com.github.bazoocaze.vulkancpu4j.util.OutRef;
import com.github.bazoocaze.vulkancpu4j.vulkan.VkGraphicsPipelineCreateInfo;
import com.github.bazoocaze.vulkancpu4j.vulkan.VkPipeline;
import com.github.bazoocaze.vulkancpu4j.vulkan.enums.Vk... | 36.730769 | 101 | 0.772775 |
1aa5b66a9edce0073acb9768ea76d447f4d7aded | 870 | package com.amyliascarlet.jsontest.bvt.path.extract;
import com.amyliascarlet.lib.json.JSONPath;
import junit.framework.TestCase;
public class JSONPath_extract_4_multi extends TestCase {
public void test_0() throws Exception {
assertEquals("[\"male\",\"john\"]"
, JSONPath.extract(json, "$... | 30 | 65 | 0.458621 |
719fdb9402afb9f3b2cbaafa4648faf4a0f1dc3a | 22,764 | package gcewing.sg.features.gdo.client.gui;
import com.google.common.eventbus.Subscribe;
import gcewing.sg.features.gdo.network.GdoNetworkHandler;
import gcewing.sg.network.GuiNetworkHandler;
import gcewing.sg.tileentity.DHDTE;
import gcewing.sg.util.IrisState;
import gcewing.sg.tileentity.SGBaseTE;
import gcewing.sg.... | 54.071259 | 167 | 0.63372 |
9f8a6339a9f9669d7b4a2585683f72aa13b1c20d | 285 | package loops;
import java.util.Scanner;
public class Table {
public static void main(String[] args) {
for(int j = 1; j<=20; j++) {
int tableOf = j;
for(int i = 1; i<=10; i++) {
System.out.print(tableOf * i +" ");
}
System.out.println();
}
}
}
| 12.391304 | 41 | 0.533333 |
70d966822e19e3587ed802ea4158c0d95e54ac55 | 3,020 | package io.github.vampirestudios.gadget.tileentity;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class TileEntityLaptop extends TileEntityBaseDevice {
private static ... | 25.166667 | 106 | 0.593377 |
77363f0f8e0190518a7443b8525d940de440e97c | 1,041 | package at.jku.sea.cloud.rest.client.handler.util;
import java.util.List;
import java.util.Objects;
import at.jku.sea.cloud.rest.client.navigator.RestNavigator;
import at.jku.sea.cloud.rest.client.navigator.RestStartNavigator;
import at.jku.sea.cloud.rest.client.navigator.actions.Access;
import at.jku.sea.cloud.rest.... | 33.580645 | 92 | 0.74928 |
4b6325c3bc469a04699c6f7f00380d6c620635c9 | 2,723 | /**
* Copyright (c) 2015, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and t... | 37.30137 | 81 | 0.698862 |
6d7131a64b13e40ba287c25c2f9f39a15a61efd8 | 1,688 | package cphb.assignment_10.bank;
/**
* Account
*/
public class Account {
private double balance;
private String customerName;
public Account(String customerName) {
this.customerName = customerName;
}
public String getCustomerName() {
return customerName;
}
public void ... | 25.19403 | 91 | 0.572275 |
e3adc8b1314e204a0f0b8e3d396029b70ca28ecf | 4,412 | /*
* Copyright 2017 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 applica... | 40.477064 | 186 | 0.761786 |
e551068d3f00857f2b7ba9c0077abcc0dddefdf9 | 593 | package com.daimabaike.springboot.mybatis.core.entity;
import java.util.Date;
public class BaseEntity {
protected Long id;
protected Date createDate;
protected Date updateDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreate... | 15.605263 | 55 | 0.67285 |
cfc67e9cbee3f79f2f3ef49631d2bd0a132dffe2 | 4,348 | package org.n3r.eql;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.junit.Test;
import org.n3r.eql.map.EqlRun;
import java.util.List;
import java.util.Map;
import static com.googl... | 45.291667 | 151 | 0.611546 |
17276978a494e757926d5c2468a534ca782f6a2e | 2,001 | package com.cg.spring.boot.demo.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springf... | 33.35 | 98 | 0.774113 |
957d467390984e3ae10c005a0b7efcd90af85347 | 4,892 |
package pubmed.nlp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
import java.util.function.Predicate;
import jam.util.ListUtil;
import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.pipeline.CoreDocument;
import edu.stanford.nlp.pipeline.Stan... | 30.767296 | 91 | 0.657809 |
82ccb5eda86a84fcf024731aa5c423b46023d4c4 | 2,234 | package org.infinispan.statetransfer;
import java.util.Collection;
import java.util.concurrent.CompletionStage;
import org.infinispan.factories.scopes.Scope;
import org.infinispan.factories.scopes.Scopes;
import org.infinispan.remoting.transport.Address;
import org.infinispan.topology.CacheTopology;
/**
* Handles i... | 33.848485 | 123 | 0.748433 |
655a9f930929ec0c76b6152067b338b37ef32fe6 | 31,318 | /*
Copyright (C) 2005-2013, by the President and Fellows of Harvard College.
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... | 48.107527 | 178 | 0.468101 |
95afd23795b4950d0f45d03c9f435c3fb98da5b6 | 6,343 | package br.upe.devflix.services;
import java.util.List;
import java.util.Optional;
import java.util.ArrayList;
import java.time.LocalDateTime;
import java.util.stream.Collectors;
import java.util.function.Predicate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.S... | 35.238889 | 104 | 0.731988 |
4b62eb478117c6b2c28a8db16c9d8b5ca24c450d | 33,913 | /*
* $Id$
*/
package decodes.decoder;
import java.util.*;
import java.text.SimpleDateFormat;
import ilex.util.Logger;
import ilex.util.PropertiesUtil;
import ilex.util.TextUtil;
import ilex.var.Variable;
import ilex.var.NoConversionException;
import ilex.var.TimedVariable;
import decodes.datasource.RawMessage;
imp... | 29.010265 | 108 | 0.656297 |
3ea23e5445d8bf4a27246243bd8ee7298a298dca | 1,813 | package com.urjc.daw.practica.service.impl;
import com.urjc.daw.practica.exception.FileStorageException;
import com.urjc.daw.practica.exception.MyFileNotFoundException;
import com.urjc.daw.practica.model.Quote;
import com.urjc.daw.practica.model.QuoteImage;
import com.urjc.daw.practica.repository.ImageRepository;
impo... | 28.777778 | 92 | 0.777716 |
6a6c4ea6d308c304d1b960edb9ecb805cbf49377 | 659 | /*
* 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 gr.athenainnovation.imis.fusion.gis.json;
/**
*
* @author Nick Vitsas
*/
public class JSONLinkMatching {
JSONLinkMatch... | 18.305556 | 79 | 0.638847 |
898f6474d613515b7ca99a276af96635f06ab53a | 4,254 | package cz.drabek.feedreader.feeds;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.util.Log;
... | 33.761905 | 123 | 0.647626 |
7fb0757f95559e6652a70aeb4c7d78e7a0d16a28 | 759 | package org.globsframework.utils.collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class ConcurrentMapOfMaps<KEY1, KEY2, VALUE> extends MapOfMaps<KEY1, KEY2, VALUE> {
public ConcurrentMapOfMaps() {
}
public ConcurrentMapOfMaps(ConcurrentMapOfMaps<KEY1, KEY2, VALUE>... | 23.71875 | 90 | 0.667984 |
ce4ad43de69ea48f717f08d7d3d7813ee59f4f17 | 2,455 | package utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.xml.parsers.ParserConfigurationExc... | 27.277778 | 112 | 0.627291 |
94d1f9f9dfe073d8598307d885cf9cb2e86f5e80 | 1,492 | /*
* Copyright 2016 javiersantos.
*
* 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.434783 | 88 | 0.752011 |
acf3a72c60499534988440c39031a494f534f87c | 2,251 | package il.co.codeguru.corewars8086.gui;
//import java.awt.BorderLayout;
//import java.awt.GridLayout;
//import javax.swing.JLabel;
//import javax.swing.JPanel;
//import javax.swing.JTextField;
import elemental2.dom.DomGlobal;
import elemental2.dom.HTMLInputElement;
import il.co.codeguru.corewars8086.gui.widgets.*;
... | 26.482353 | 92 | 0.709018 |
78e35e7ff0b95024d77a0a592ebc30e2383e80be | 2,081 | package ru.loolzaaa.sso.client.autoconfigure;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configur... | 38.537037 | 125 | 0.775108 |
8df827e7c135903d74ac8f30cf47ffb7da085792 | 565 | package com.hartwig.hmftools.common.variant.structural;
import org.immutables.value.Value;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Value.Immutable
@Value.Style(passAnnotations = { NotNull.class, Nullable.class })
public abstract class EnrichedStructuralVariant implements ... | 25.681818 | 78 | 0.782301 |
57222e37ff04f76e235b80276123f4433c6fc32e | 7,637 | /*
* Aipo is a groupware program developed by Aimluck,Inc.
* Copyright (C) 2004-2011 Aimluck,Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eit... | 34.556561 | 79 | 0.686395 |
b59539141c2f6680e36b4253a1e76f3deda79f44 | 2,579 | package com.avid.ctms.examples.tools.common;
import kong.unirest.json.JSONObject;
import java.net.*;
import java.util.*;
/**
* Copyright 2016-2021 by Avid Technology, Inc.
* User: nludwig
* Date: 2016-06-28
* Time: 14:52
* Project: CTMS
*/
/**
* Represents a folder item.
*/
public class ItemInfo {
priva... | 29.643678 | 96 | 0.606049 |
f4bffae3736fe06d1dad870e9d3b05269645feed | 12,075 | package edu.ucdenver.ccp.common.file.reader;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2014 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following c... | 41.071429 | 126 | 0.745176 |
d9981b37268b57d72fa552afac6f1da856c5f482 | 138 | public aspect AtTargetAspect {
before(): call(* *(..)) && @target(MyAnnotation) {
System.err.println("advice running");
}
}
| 17.25 | 52 | 0.601449 |
92c5dec728dea577d6bea91ca58fe21d4fdd17e6 | 3,469 | package com.xiaoxin.jhang.wxspeak;
import android.app.Application;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import com.xiaoxin.jhang.wxspeak.util.Constant;
import com.xiaoxin.jhang.wxspeak.util.TextStyUt... | 34.346535 | 125 | 0.615163 |
f5fa4f40b75823cd0f658ac2267af05844b53091 | 399 | package com.opendataview.web.persistence;
import java.util.List;
import org.springframework.dao.DataAccessException;
import com.opendataview.web.model.PropertiesModel;
public interface PropertiesServiceDAO {
List<PropertiesModel> readPropertiesModel(String user) throws DataAccessException;
void updateProperties... | 23.470588 | 83 | 0.842105 |
4eb53c9a8b0f4fbf03ce69ab7b0bec47876e8134 | 427 | package no.nav.foreldrepenger.fordel.web.app.metrics;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import com.codahale.metrics.MetricRegistry;
/** Producer siden MetricRegistry ikke er annotert. */
@ApplicationScoped
public class MetricRegistryProducer {
@Produces
... | 23.722222 | 54 | 0.800937 |
9ccae4bdc6e90c733982df95cd1ef95d9eca5f38 | 1,364 | package bg.bulsi.egov.eauth.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.CorsConfigurationSource;
import org.springfra... | 42.625 | 245 | 0.780059 |
b386d977c13934e1abd421b18ba82709567dbb9a | 2,791 | package org.spiderflow.core.executor.function;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.spiderflow.annotation.Comment;
im... | 29.072917 | 81 | 0.626299 |
52a102a146aaa2c549ee3435834534d9075ff863 | 173 | package com.hm.test;
/**
* @author Coder编程
* @Title: HelloWord
* @ProjectName hm-platform
* @Description: TODO
* @date 2020/8/1316:48
*/
public class HelloWord {
}
| 12.357143 | 27 | 0.65896 |
ac6061fa4143e476455397f71d850fc0c061b97b | 47,502 | /*
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the Common Development and Distribution
* License, Version 1.0 only (the "License"). You may not use this file except in compliance with
* the License.
*
* You can obtain a copy of the license at license/ESCIDOC.LICENSE or
* ... | 33.194969 | 139 | 0.672098 |
4a70818b3a3ed2f44c426aeca9e385d470b359b7 | 1,842 | package common.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Hashtable;
/**
* @author mym
* 读取文本文件
* 文本文件的格式为: key=value
*... | 25.232877 | 96 | 0.669924 |
475fdcf0956d195bff19e4e7e6a0ff66640623d3 | 894 | package com.sip.api.domains.payment;
import com.sip.api.dtos.payment.PaymentStatusDto;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class PaymentStatusConverter {
public static List<PaymentStatusDto> fromEntityToDto(Set<PaymentStatus> paymentStatuses) {
return p... | 37.25 | 114 | 0.708054 |
aedcb9d96f25b3da8d238e63f2ecdff60184ba3c | 4,091 | /*
* NEC Mobile Backend Platform
*
* Copyright (c) 2013-2018, NEC Corporation.
*/
package com.nec.baas.core.internal;
import com.nec.baas.core.*;
import com.nec.baas.json.*;
import com.nec.baas.util.*;
import lombok.Setter;
import lombok.experimental.Accessors;
import okhttp3.Response;
/**
* NbRestResponseHand... | 27.092715 | 100 | 0.636519 |
ab65ae918a65015ad3dcf751c7c79e573135f228 | 2,611 | package com.bmtc.scene.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.tra... | 25.349515 | 74 | 0.681348 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.