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 |
|---|---|---|---|---|---|
1de370a0335cd4688b2efe3fcfe74c0a3f66af19 | 2,612 | /*****************************************************************
|
| Cryptanium Secure Key Box
|
| $Id: ImportExport.java 7790 2016-01-05 09:52:35Z kstraupe $
|
| This software is provided to you pursuant to your Software
| license agreement (SLA) with whiteCryption Corporation
| ("whiteCryption") a... | 33.487179 | 131 | 0.61026 |
29d5fe1768f1af51a9ad3ad47064762e718e33a1 | 873 | package com.yx.sys.common;
/**
* sys_content表中的content_model_type字段描述
*
* @author lilulu
* @since 2018/08/17 16:16
*/
public enum SysContentStatusEnum {
UNPUBLISH(0,"待发布"),
PUBLISH(1,"发布"),
DOWNLINE(2,"下线");
/**
* 成员变量
*/
private int status;//状态值
private String desc;//描述
p... | 18.1875 | 71 | 0.55441 |
a086d73d8db34ce0192dd34e6a1fb231902c1a72 | 519 | package fr.rtgrenoble.velascof.simtelui.task;
import javafx.application.Platform;
import javafx.concurrent.Task;
import org.controlsfx.dialog.ExceptionDialog;
public abstract class TaskBase extends Task<Void> {
@Override
protected Void call() {
try {
call0();
} catch (Throwable t)... | 22.565217 | 67 | 0.639692 |
9fa3717bb52869003d6551f86b250b2195e6cc54 | 3,817 | package br.com.cadastrodepessoas.util;
import android.content.Context;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
import android.text.method.KeyListener;
import android.text.method.NumberKeyListener;
import android.util.AttributeSet;
import android.widget.EditText;
p... | 28.916667 | 95 | 0.549908 |
ba5a2ce3764d8474e6e19b1432797cba16a6a0bb | 5,422 | package com.am.server.api.bulletin.service.impl;
import com.am.server.api.bulletin.dao.rdb.BulletinDao;
import com.am.server.api.bulletin.pojo.BulletinExpiredDelayedImpl;
import com.am.server.api.bulletin.pojo.Status;
import com.am.server.api.bulletin.pojo.ao.BulletinListAo;
import com.am.server.api.bulletin.pojo.ao.S... | 39.576642 | 182 | 0.646625 |
dd64175b466c65f622054a5357c95b1ab9454e99 | 2,230 | package com.stx.xhb.dmgameapp.mvp.ui.main;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.widget.TextView;
import com.stx.core.base.BaseFragment;
import com.stx.core.base.BaseMvpFragment;
import com.stx.xhb.dmgameapp.R;
import com.st... | 28.589744 | 121 | 0.727354 |
a5628be52533d0ca5e2929ae06f4f5d0ea55979d | 397 | package com.adhikari.photoalbum.service;
import java.util.stream.Stream;
import org.springframework.web.multipart.MultipartFile;
import com.adhikari.photoalbum.model.ResourceEntity;
public interface ResourcesService {
public ResourceEntity uploadResource(MultipartFile multi);
public ResourceEntity downloadRes... | 22.055556 | 59 | 0.826196 |
1ec862301c154fb8e3e84f21d35eb28be79cfcfa | 886 | package org.radartools.detection;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ProbabilityTest {
@Test
void testValidProbabilities() {
try {
Probability valid = new Probability(1.0);
assertEquals(valid.getValue(),1.0);
... | 27.6875 | 78 | 0.58465 |
086430f716f5bcb66f3586450b0ca6aac105bc89 | 765 |
package dhbw.wwi.vertsys.javaee.jtodo.soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für time complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in... | 23.181818 | 102 | 0.65098 |
46e967ae2b70fd0dd8d48ab402648b7ac7a2c885 | 5,346 | /*
* Copyright © 2013-2019, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.business.intern... | 43.819672 | 119 | 0.682192 |
489153e3e5400acb5ebbf718ea9f6186bc66402f | 330 | package com.moodysalem.graphbuilder.core.inputs;
/**
* All binding interfaces that contain some information about a specific field inherit from this
* interface.
*/
interface FieldInformation {
/**
* @return the position in the GraphQL schema where the information is associated.
*/
SchemaPosition getPosi... | 23.571429 | 96 | 0.748485 |
3d7a4fdf74a711826c4f800e76fa4ce0a627e6e9 | 1,378 | package euler;
public class P023NonabundantSums {
public static boolean isAbundant(int n) {
int i = 0, sum = 1;
for (i = 2; i * i < n; i++) {
if (n % i == 0)
sum += i + n / i;
}
if (i * i == n)
sum += i;
// System.out.println(n+" "+sum);
if (sum > n)
return true;
return false;
}
public ... | 20.878788 | 90 | 0.403483 |
d51119135e3453aa81e41099a98062a62009b9d9 | 1,726 | package gov.vha.isaac.ochre.api.collections;
import org.apache.mahout.math.map.OpenObjectIntHashMap;
import java.util.OptionalInt;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.function.ObjIntConsumer;
import org.apache.mahout.math.function.ObjectIn... | 24.657143 | 73 | 0.5927 |
c2dac5c145e4d89964fe1f8e55c3ed142490e8d2 | 3,214 | package com.transcendensoft.hedbanz.presentation.friends.list.delegates;
/**
* Copyright 2017. Andrii Chernysh
* <p>
* 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
* <p>
* http://www.ap... | 37.811765 | 96 | 0.741444 |
2dfeb5dad44cde09d66ff72729f8ef94d20d6c4b | 7,946 | /*
* Copyright 2018 Otso Björklund.
* Distributed under the MIT license (see LICENSE.txt or https://opensource.org/licenses/MIT).
*/
package org.wmn4j.notation.elements;
import java.util.Objects;
/**
* The <code>Pitch</code> class represents a pitch. Pitches consist of the basic
* pitch letter <code>Pitch.Base</... | 26.935593 | 111 | 0.640951 |
c23f9d69005767328175dddf88942d123aa36908 | 413 | package com.unifig.bi.analysis.service;
import com.unifig.bi.analysis.model.StSmsNavigation;
import com.baomidou.mybatisplus.service.IService;
import java.sql.Date;
import java.util.Map;
/**
* <p>
* 导航栏 服务类
* </p>
*
*
* @since 2019-03-22
*/
public interface StSmsNavigationService extends IService<StSmsNavigat... | 18.772727 | 81 | 0.738499 |
b6be0518619838292bbb2a65663504229dedd368 | 1,764 | package com.heyue.wms.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.heyue.common.core.annotation.Excel;
import com.heyue.common.core.web.domain.BaseEntity;
/**
* 出库单快照对象 wms_outstore_history
*
* @author wchu
* @date 2021-08-09
... | 21.777778 | 71 | 0.621315 |
106e7c54b847701b7ca73134116eb4959796a55b | 172 | package com.google.android.play.core.internal;
public final class ar extends RuntimeException {
public ar() {
super("Failed to bind to the service.");
}
}
| 21.5 | 48 | 0.680233 |
fcafc3d67288a38e55a6f7001aaeccdbe676569a | 5,299 | /**
* Copyright (C) 2019 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.financial.security.bond;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.Arrays;
import org.testng.annotations.Test;
import com.opengamma.fina... | 37.316901 | 156 | 0.750708 |
54968432991638c88aff467b5e858e709d254ef0 | 21,073 | package me.shouheng.utils.data;
import androidx.annotation.NonNull;
import android.text.format.DateUtils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
imp... | 31.546407 | 98 | 0.560528 |
613e8204cbe100d50dc44c1c3d92b6e7507e3908 | 3,332 | /*
* Copyright 2016-2018 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 39.2 | 141 | 0.733794 |
90458f27c15c51e385a48bffbfa4df5613c6a2d1 | 684 | package me.ialistannen.navigator.util;
import me.ialistannen.navigator.Navigator;
import org.bukkit.ChatColor;
/**
* A small utility class
*/
public class Util {
/**
* @param key The key to translate
* @param formattingObjects The formattingObjects
*
* @return The translated String
*/
pub... | 21.375 | 74 | 0.69883 |
17a1a551ce830d8b9a3ffe7b587e06a6b924f61c | 422 | package com.sterilecode.mitosis.view;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class ViewManagerTest {
@Test
public void loadAndGetView() throws Exception {
ViewManager vm = ViewManager.getInstance();
vm.initialize();
assertNotNull(vm.getView("sample"));
}
@Te... | 20.095238 | 49 | 0.729858 |
d374723912dc812f3d2e71f67087033851a7f839 | 13,477 | package learning.topology;
import peersim.core.CommonState;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
/**
* @author sshpark
* @date 17/2/2020
*/
public class TopoUtil {
/**
* Returns the adjacency matrix of the network,
* If value is I... | 40.963526 | 151 | 0.499814 |
27e5ef9bb61259000ce71e0e135a92c9e0dad9cf | 3,761 | package ca.on.oicr.gsi.shesmu.redict;
import ca.on.oicr.gsi.shesmu.plugin.Definer;
import ca.on.oicr.gsi.shesmu.plugin.Definer.RefillDefiner;
import ca.on.oicr.gsi.shesmu.plugin.Definer.RefillInfo;
import ca.on.oicr.gsi.shesmu.plugin.json.JsonPluginFile;
import ca.on.oicr.gsi.shesmu.plugin.refill.CustomRefillerParamet... | 35.481132 | 93 | 0.632013 |
6b4988f15bedf69aac065e6d11961c91b4de9d81 | 338 | package org.basex.query.util.pkg;
import org.basex.util.list.*;
/**
* Jar descriptor.
*
* @author BaseX Team 2005-15, BSD License
* @author Rositsa Shadura
*/
final class JarDesc {
/** List of jar files. */
final TokenList jars = new TokenList();
/** List of public classes. */
final TokenList classes = n... | 19.882353 | 44 | 0.668639 |
fe02690e06858d28515544fdacd656cc14a54414 | 977 | package com.swengsol;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HelloWorldServlet extends HttpServlet {
private ... | 39.08 | 79 | 0.683726 |
ebed6a498351e5d30aa3feb9c088d60886789e93 | 7,123 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 28.838057 | 107 | 0.754036 |
39ab72b7e21e15533dc605f23056db826f9e15c1 | 1,373 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... | 33.487805 | 81 | 0.72906 |
40e16d339420cae776785ffd2aa1a412d959d02e | 4,849 | package haxby.db.radar;
import haxby.image.*;
import java.awt.*;
import java.awt.geom.AffineTransform;
public class RBorder {
RImage line;
boolean paintTitle = true;
Font titleFont, font;
int titleH, titleWidth, titleY;
int anotH, anotY, anotW;
String title, yTitle;
Insets insets;
static double[] dAnot = {2, ... | 28.523529 | 74 | 0.61889 |
f20362f2ac0347ea7e0e321f1403aa8533956a1d | 1,175 | package com.stupidtree.hita.views;
import android.content.Context;
import android.content.Intent;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.preference.Preference;
import static com.stupidtree.hita.activities.ActivityTimeTable.TIMETABLE_REFRESH;
public class TimeTablePrefer... | 30.921053 | 96 | 0.760851 |
c3d176ea5ec007cc51210a99af1df41131243bb7 | 7,976 |
/*
* The MIT License
*
* 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, modify, merge, publish, distribute, ... | 28.485714 | 141 | 0.648947 |
37882ceb70e1b28c4495975ce03ce01f4ed6cb2e | 688 | package ru.mydesignstudio.database.metadata.extractor.output.service.impl.operations.update.request;
import lombok.Builder;
import lombok.Data;
import ru.mydesignstudio.database.metadata.extractor.output.service.impl.model.ConfluenceBody;
import ru.mydesignstudio.database.metadata.extractor.output.service.impl.model.C... | 34.4 | 100 | 0.837209 |
f5ab75bf537be1bd2ab82af5162503f0462bdd13 | 1,069 | package rfx.core.stream.kafka;
import rfx.core.model.CallbackResult;
import rfx.core.stream.emitters.DataEmitter;
import rfx.core.stream.message.KafkaDataPayload;
public class KafkaDataEmitter extends DataEmitter {
public KafkaDataEmitter() {
super();
}
private KafkaDataSeeder kafkaDataSeeder;
public Kaf... | 25.452381 | 100 | 0.77362 |
f5072dae3dcda138232e46107c077af9d4c37a9b | 1,298 | /*
* Copyright 2010 Fae Hutter
*
* 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... | 34.157895 | 78 | 0.766564 |
44a957d9397e31c193b0b11201ba14f3c37818e6 | 1,069 | package duckutil.sign;
import duckutil.Config;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import net.minidev.json.JSONObject;
public class Render
{
public static int render(Config config, String node, JSONObject view)
throws Exception
{
String host = config.requi... | 23.755556 | 85 | 0.702526 |
3031272c81ba435027dcd562d1564d95dab864fe | 11,669 | package net.mavroprovato.springcms.command;
import net.mavroprovato.springcms.entity.Category;
import net.mavroprovato.springcms.entity.ContentStatus;
import net.mavroprovato.springcms.entity.Post;
import net.mavroprovato.springcms.entity.Tag;
import net.mavroprovato.springcms.entity.User;
import net.mavroprovato.spri... | 38.767442 | 120 | 0.637415 |
b538cf6bfa382fce05213d0cf66032fa7d5524bb | 416 | package ru.job4j.storage.store;
import ru.job4j.storage.entity.User;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class MemoryStorage implements Storage {
private List<User> users = new CopyOnWriteArrayList<>();
@Override
public void add(User user) {
users.add(u... | 21.894737 | 60 | 0.692308 |
e8c882300849bbbfcb40751cd73a5d77636eab42 | 2,125 | //给定一个二叉树,返回其节点值的锯齿形层序遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。
//
// 例如:
//给定二叉树 [3,9,20,null,null,15,7],
//
//
// 3
// / \
// 9 20
// / \
// 15 7
//
//
// 返回锯齿形层序遍历如下:
//
//
//[
// [3],
// [20,9],
// [15,7]
//]
//
// Related Topics 栈 树 广度优先搜索
// 👍 375 👎 0
package com.tomster.leetcode.edit... | 25 | 85 | 0.499765 |
95a977c473215f5f3c5e01e994eb6df4523bbb94 | 332 | package com.bus.sistema.app_reservacion.ModSeguridad.Services;
import java.util.List;
public interface GenericService<T extends Object> {
T save(T entity);
T update(T entity);
void delete(T entity);
void delete(int id);
void deleteInBatch(List<T> entities);
T find(int id);
List<T> f... | 15.809524 | 62 | 0.680723 |
9d1127666d9302d3905eb9956982516982f39c29 | 3,991 | package com.eva.service.system.impl;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.eva.core.model.PageData;
import com.eva.core.model.PageWrap;
import com.eva.core.utils.Utils;
import com.eva.dao.system.SystemRoleMenuMapper;
import com.eva.dao.system.model.SystemRoleMenu;
import com.... | 35.008772 | 114 | 0.72438 |
90ef920e1aa07bbcf763c5914b12df212b1f6921 | 1,677 | // Copyright 2019 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 39 | 91 | 0.79189 |
9e7ff0b52bcbdb4fa70bbefa9d0a743f51f7c63c | 66,627 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 40.800367 | 372 | 0.774326 |
d9d0bf5a1dc55811aa8e1c398c7cda2ba7f1889b | 613 | package com.zyqlearnboot.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class MainApplication {
public static void main(String[] a... | 34.055556 | 97 | 0.737357 |
81763549249f703e76d621ea696435d774e0f6c0 | 1,430 | package edu.gdei.gdeiassistant.Pojo.Entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.io.Serializable;
@Component
@Scope("prototype")
@JsonIgnoreProperties(ignoreUnknown = true)
publi... | 22 | 61 | 0.688811 |
4eb028c09a2944a096fbf42ce4271aae3e36d4ab | 1,823 | package PinDuoDuo;
import java.math.BigInteger;
import java.util.Scanner;
public class Duo_Duo_De_Dian_Zi_Zi_Dian {
//分治法
public static void main(String[] args){
Scanner input=new Scanner(System.in);
while(input.hasNext()){
int n=input.nextInt();
int m=input.nextInt();... | 29.403226 | 85 | 0.328031 |
ab1921214f93345b0f6adba3d3a2d9056fcc0794 | 2,684 | package com.qualcomm.ftcrobotcontroller.opmodes.phoenix;
import com.lasarobotics.library.sensor.kauailabs.navx.NavXDevice;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorController;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware... | 45.491525 | 119 | 0.704545 |
12d318529f934cf9bddda9a0f84e909120b5f307 | 4,646 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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... | 30.565789 | 118 | 0.662721 |
6658f7e450929488e8a8a9bd69d1b7008ab40422 | 1,415 | package com.v1as.mytavern.thing.thing.nodes;
import static java.util.Collections.singletonList;
import com.v1as.mytavern.thing.logic.GameContext;
import com.v1as.mytavern.thing.logic.NodeResults;
import com.v1as.mytavern.thing.thing.ThingCharacter;
import com.v1as.mytavern.thing.thing.ThingNode;
import com.v1as.mytav... | 40.428571 | 115 | 0.699647 |
200ceb82d89b38fba21339d1146672daea0f1ecf | 5,826 | package uk.gov.hmcts.reform.pcqloader.postdeploy;
import com.azure.core.http.rest.PagedIterable;
import com.azure.storage.blob.BlobContainerClient;
import com.azure.storage.blob.models.BlobItem;
import lombok.extern.slf4j.Slf4j;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.j... | 50.224138 | 115 | 0.763989 |
d480a96ce440c30db4a490b0951784e6df3b622d | 966 | package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.HyMeterCase;
/**
* 箱 Mapper接口
*
* @author Administrator
* @date 2021-01-12
*/
public interface HyMeterCaseMapper {
/**
* 查询箱
*
*
* @param id 箱 ID
* @return 箱
*
*/
public HyMeterCase selectHyMeterCaseById(Lo... | 13.8 | 73 | 0.612836 |
450f985d18452d6a6ab18bafd300add80fe4700d | 445 | package com.feilong.gulimall.member.dao;
import com.feilong.gulimall.member.entity.IntegrationChangeHistoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 积分变化历史记录
*
* @author Feilong
* @email xiaomingwang5310feilong@aliyun.com
* @date 2020-11-1... | 24.722222 | 97 | 0.802247 |
90cbb8a2af4d6d8fcf4f8f0347ce6027e0248f87 | 18,608 | package architecture.community.web.spring.controller.data.secure.mgmt;
import java.io.Serializable;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
i... | 35.853565 | 181 | 0.72184 |
828412ea785375e616a3436e53308b8c04da6a70 | 9,972 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Objects;
... | 31.457413 | 125 | 0.655636 |
0128f5c345e289963aba3ea9388700e96fefe756 | 1,592 | package allPay.payment.integration.domain;
/**
* �H�Υd�w���w�B�q��d�ߪ���
* @author mark.chiu
*
*/
public class QueryCreditCardPeriodInfoObj {
/**
* MerchantID
* �|���s��
*/
private String MerchantID = "";
/**
* MerchantTradeNo
* �|������s��
*/
private String MerchantTradeNo =... | 20.410256 | 107 | 0.557789 |
d503dde7f72c3dbc47a5f0e0abbfd6da56b57ca7 | 4,501 | package seraphaestus.factoriores.block;
import java.util.Random;
import java.util.function.ToIntFunction;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.particles.ParticleTypes... | 37.198347 | 146 | 0.720507 |
f2ed856b8473824a00ca784b0bbec546c673a21b | 512 | package com.keimons.platform.executor;
/**
* 任务执行策略
*
* @author monkey1993
* @version 1.0
* @since 1.8
**/
public abstract class BaseExecutorStrategy implements IExecutorStrategy {
/**
* 策略名称
*/
protected final String name;
/**
* 线程数量
*/
protected final int nThreads;
public BaseExecutorStrategy(S... | 14.222222 | 73 | 0.673828 |
b53a2d5e7bdb819a98e8cbbad934efe62d002dca | 945 | package at.dse.g14.entity;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.persistence.Entity;
import java.time.LocalDateTime;
/**
* An entity which represents a notification, by pro... | 23.04878 | 85 | 0.767196 |
582198c2af3485e096f807182fac1d2a82120c48 | 404 | package jobapp.controller;
import org.noear.solon.extend.cron4j.Cron4j;
import java.util.Date;
@Cron4j(cron5x = "2s", name = "job1")
public class Cron4jRun1 implements Runnable {
@Override
public void run() {
System.out.println("我是定时任务: Cron4jRun1(2s) -- " + new Date().toString());
//throw n... | 23.764706 | 81 | 0.660891 |
03ca7ea541d815f32474545d35ca81dc83cf0983 | 7,035 | package com.sap.cloud.samples.ariba.discovery.rfx.api;
import java.io.IOException;
import java.text.MessageFormat;
import org.apache.http.HttpEntity;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.util.EntityUtils;
import org.slf4j.Logge... | 40.66474 | 118 | 0.742004 |
8c02a38d120000e434915e1d080855534b405e8d | 4,954 | package com.runtimeverification.rvmonitor.java.rt;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import java.util.Map;
/**
* A singleton class to record violations of properties and where they happen.
* @author A. Cody Schuffelen
*/
public class ViolationRecorder {
private f... | 36.426471 | 98 | 0.615664 |
2c8b89fb021e31ca1cceb36e86d6cf444611b188 | 1,417 | package com.lls.comics.exception;
/************************************
* ComicsResponseException
* @author liliangshan
* @date 2019/1/8
************************************/
public class ComicsResponseException extends ComicsException {
private static final long serialVersionUID = 90448836938089400L;
pu... | 32.204545 | 110 | 0.718419 |
cd924ad83a95af7187046e573c27e3dd17ae914c | 1,897 | package com.kurdi.utils;
import org.apache.commons.codec.binary.Base64;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
/**
* Created by kudrjavtsev on 09/11/16.
*/
public class GeneralUtils {
public stat... | 29.640625 | 112 | 0.628361 |
3e032713782bf8bc3bc6198976f3ed991ff043e4 | 1,148 | package cn.zhuhongqing.utils.loader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import cn.zhuhongqing.exception.UtilsException;
import cn.zhuhongqing.utils.StringPool;
/**
* Lo... | 22.509804 | 76 | 0.730836 |
af8608788421cbfe6785f580fc941a417350105d | 928 | package io.walkers.planes.pandora.jvm.book;
/**
* 10.3 语法糖
* @get 1. 包装类的“==”运算在遇到算术运算的情况下会自动拆箱
* @get 2. 包装类 equals() 方法不处理数据转型的关系
* @author Planeswalker23
* @date Created in 2020/4/7
*/
public class Chapter10No3PrimitiveTypeEqualsDemo {
public static void main(String[] args) {
Integer a = 1;
... | 23.2 | 50 | 0.573276 |
80b09d5f3c547aa2836ed2897f634d246bd309af | 5,391 | /*******************************************************************************
* Copyright (c) 2011 GigaSpaces Technologies Ltd. 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 ... | 44.553719 | 120 | 0.734929 |
08d6019514853bc61971033c1c65bce6cb763d1d | 2,238 | package io.github.riesenpilz.nmsUtilities.packet.playOut;
import org.apache.commons.lang.Validate;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import io.github.riesenpilz.nmsUtilities.packet.PacketUtils;
import io.github.riesenpilz.nmsUtilities.reflections.Field;
import net.minecraft.server.v1_16_R3.... | 27.292683 | 95 | 0.763628 |
f6061a3bf7ce80e1e5d88aa181f844377ece30ed | 544 | /* */ package src.jojobadv.Entities.Stands;
/* */
/* */ import net.minecraft.world.World;
/* */
/* */
/* */
/* */ public class EntityOutBomb
/* */ extends EntityBomb
/* */ {
/* */ public EntityOutBomb(World par1World) {
/* 11 */ super(par1World);
/* 12 */ setSize(0.1F, 0.1F... | 27.2 | 124 | 0.534926 |
4a0cf8912c3b67decf902d6a39f62165add95c49 | 2,235 | package com.jspxcms.common.orm;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.... | 29.407895 | 84 | 0.714989 |
830b8d4b5d6a5ebf7b02e04b38ecf7573a69df3c | 3,594 | package dao;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import model.Arketuar;
import model.Bojra;
import model.Klient;
import model.Shitje;
public class ShitjeDao extends DAO {
public ShitjeDao() {
super();
}
p... | 30.982759 | 114 | 0.6867 |
bfdf3a63fcf2b1e57b22c2044c625e973d1dc8e0 | 2,089 | package com.example.chihurmnanyanwanevu.popularmovies.adapter;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import com.example.chihurmnanyanwanevu.popularmovies.databinding.Item... | 30.275362 | 96 | 0.711345 |
5e9657baca95b1e995f9652c0201f38bef79658f | 526 | package grafioschtrader.algo;
import java.util.List;
import grafioschtrader.entities.AlgoTop;
public class AlgoTopCreate extends AlgoTop {
private static final long serialVersionUID = 1L;
public List<AssetclassPercentage> assetclassPercentageList;
public static class AssetclassPercentage {
public Integer... | 23.909091 | 103 | 0.747148 |
f919d990b7e6abcfbfa946af1f98c984766d4535 | 9,383 | package com.hcw2175.library.qrscan;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.graphics.Point;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Vibrator;
import android.support.... | 30.073718 | 120 | 0.589364 |
4ebf4abaa8a2aeb0a2210f7ae6b5ef7298e38cf0 | 1,135 | /**
* __ __ __
* ____/ /_ ____/ /______ _ ___ / /_
* / __ / / ___/ __/ ___/ / __ `/ __/
* / /_/ / (__ ) / / / / / /_/ / /
* \__,_/_/____/_/ /_/ /_/\__, /_/
* / /
* \/
* http://distriqt.com
*
* @file FirebaseExtensi... | 20.636364 | 56 | 0.604405 |
b56460d00d08aafd0f2e2736a716a1dffac06df0 | 3,345 | package de.otto.synapse.endpoint.receiver.kinesis;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.services.kinesis.KinesisAsyncClient;
import software.amazon.awssdk.services.kinesis.model.DescribeStreamRequest;
import software.amazon.awssdk.services.kinesis.model.DescribeStreamR... | 39.821429 | 125 | 0.678326 |
3044f7b401df71e96eac1829f7a78c2f586c7784 | 852 | package us.ihmc.exampleSimulations.exampleContact;
import javax.vecmath.Vector3d;
import us.ihmc.robotics.geometry.RigidBodyTransform;
import us.ihmc.simulationconstructionset.util.ground.CombinedTerrainObject3D;
public class ExampleTerrainWithTable extends CombinedTerrainObject3D
{
public ExampleTerrainWithTable... | 32.769231 | 92 | 0.696009 |
52486f576f8daf8b57c22d12c23fbd10596a6550 | 353 | package com.google.android.material.transition;
import android.graphics.RectF;
public interface FitModeEvaluator {
void applyMask(RectF rectF, float f, FitModeResult fitModeResult);
FitModeResult evaluate(float f, float f2, float f3, float f4, float f5, float f6, float f7);
boolean shouldMaskStartBounds... | 29.416667 | 96 | 0.78187 |
857c232ef69ccbb65395af6ef5a18f596f6b6643 | 907 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
public class GetQuijote {
public static void main(String[] args) {
int pag = 0;
while (pag <= 35) {
try {
String pagina = "https://www.elmundo.es/quijote/capitulo.html?cual=" + pag;
URL url... | 25.194444 | 79 | 0.643881 |
2df6929c05c7a59aabce9a31067b7d383e17dfc2 | 11,334 | package gov.nasa.jpl.aerie.scheduler.server.remotes.postgres;
import gov.nasa.jpl.aerie.merlin.driver.ActivityInstanceId;
import gov.nasa.jpl.aerie.scheduler.server.ResultsProtocol;
import gov.nasa.jpl.aerie.scheduler.server.exceptions.NoSuchRequestException;
import gov.nasa.jpl.aerie.scheduler.server.exceptions.NoSuc... | 38.948454 | 121 | 0.721987 |
843d793c0ce1f26bc6aa08990f655e77ba5e6b98 | 1,618 | package com.codewalle.tra.Model;
import android.app.Application;
import android.content.Context;
import com.codewalle.tra.LoginActivity;
import com.codewalle.tra.utils.Constants;
import com.koushikdutta.async.future.FutureCallback;
import com.koushikdutta.async.http.AsyncHttpClient;
import com.koushikdutta.async.http.... | 36.772727 | 112 | 0.73733 |
e15cd3c8cff439bc00ec0ebda4723618acc6ad7a | 999 | package org.schooldesk.intergrationtests;
import org.junit.After;
import org.junit.Before;
import org.schooldesk.core.services.IServiceFactory;
import org.schooldesk.core.services.ServiceFactory;
import org.schooldesk.dao.DaoFactory;
import org.schooldesk.dao.IDaoFactory;
import org.schooldesk.dao.inmemory.inmemory.*;... | 24.975 | 62 | 0.787788 |
7dc1f34ac81ae6e2218ae1d889e45a68bb24bbf9 | 712 | package org.zstack.network.service.portforwarding;
import org.zstack.header.network.service.NetworkServiceProviderType;
public interface RevokePortForwardingRuleExtensionPoint {
void preRevokePortForwardingRule(PortForwardingRuleInventory inv, NetworkServiceProviderType serviceProviderType) throws PortForwardingE... | 50.857143 | 149 | 0.869382 |
223e7ef0963056cec5177851a5ee6bdf2955fe2b | 2,411 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | 33.957746 | 95 | 0.654085 |
c91f465382c45a3359ee4df449393d1ee856bcea | 730 | package de.qaware.oss.cloud.nativ.wjax2016;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.social.twitter.api.Twitter;
import org.springframework.social.twitter.api.im... | 36.5 | 97 | 0.760274 |
592e260790e9324a3aee207ea0276e9c7fe455ce | 279 | package com.desertkun.brainout.common.msg.server;
public class AchievementCompletedMsg
{
public String achievementId;
public AchievementCompletedMsg() {}
public AchievementCompletedMsg(String achievementId)
{
this.achievementId = achievementId;
}
}
| 21.461538 | 56 | 0.74552 |
b9b9acd2264022d79489b1d004c661803a420b63 | 117,514 | /*
* Signing Today Web
* *Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitations (`signature ticket... | 60.017365 | 656 | 0.653386 |
1e95361d4cdb2f25166866f1caf37c66cdd26464 | 730 | package com.ant.ipush.domain;
import lombok.Getter;
public enum BehaviorEvent {
favorites("收藏"), unfavorites("取消收藏"), follow("关注"), unfollow("取消关注"), like("点赞"), cancelLike("取消点赞"), comments("评论"),
purchase("交易待支付"), dailyAttendance("每日签到"), share("分享"),
glance("浏览"), exchange("兑换"), paid("已付"),
birth... | 31.73913 | 139 | 0.631507 |
954e993adcd50542dc436a65ff171d07e83c208f | 2,130 | /*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html
* or http://www.netbeans.org/cddl.txt.
*
... | 32.272727 | 95 | 0.72723 |
cd9e8d1094aabf8c31dba6b258a8cffbab9d2542 | 328 | package resources.lang;
import settings.Settings;
import java.util.ResourceBundle;
public class Language {
private static Settings settings = Settings.getInstance();
public static String get(String selector) {
return ResourceBundle.getBundle("resources.lang.lang", settings.lang.getValue()).getString(selector);... | 20.5 | 103 | 0.777439 |
db49a364ec94a705696960abfb7151fa0f22b202 | 1,413 | package incrementodecremento;
/**
*
* @author Yasmin
*/
public class IncrementoDecremento {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Incremento");
int num1 = 8;
num1++;
System.out.println(num1);
... | 25.690909 | 58 | 0.46143 |
369e61cd00b8949bef17561e3076381e0725e339 | 1,067 | package io.searchbox.indices.mapping;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class GetMappingTest {
@Test
public void testBasicUriGeneration() {
GetMapping getMapping = new GetMapping.Builder().addIndex("twitter").bu... | 31.382353 | 95 | 0.712277 |
dc30207a9c0b2aa7f1ba5ac7564b9ecca65bf40a | 3,321 | /*
Copyright 2018 Gaurav Kumar
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... | 29.389381 | 103 | 0.5676 |
67f208385b17d9f17821df96d69bfdc7de3f1e98 | 544 | package org.bougainvillea.java.designpattern.pattern.creation.factory.no.pizza;
/**
* @Description: pizza 制作过程
* @Author caddy
* @date 2020-02-10 10:26:53
* @version 1.0
*/
public class Pizza {
String name;
public void setName(String name) {
this.name = name;
}
public void prepare(){
... | 15.542857 | 79 | 0.586397 |
274f307184ceb94a8b845aebbc07a2701127e0c4 | 5,606 | package main;
import java.io.PrintWriter;
import java.util.Date;
import network.DiffusionNetwork;
import network.DiffusionNetworkFactory;
import network.DiffusionNetworkScorer;
import network.Network;
import network.NetworkFactory;
import predictor.ClassifierGuidedKNeighborsPredictorCV;
import predictor.Guided... | 32.218391 | 134 | 0.637888 |
5e6cc0f6c51168ddfdc84119c532f6de348d9bc7 | 11,038 | /*
* Copyright 2000-2009 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... | 41.340824 | 188 | 0.796974 |
118aa3f9ab58c08a35f5eea59eed7b27435420c7 | 791 | package com.mongo.transactions.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import ... | 20.815789 | 62 | 0.786346 |
016645e5695087c8993201ed34bfb46a811b0216 | 4,132 | /*
* Copyright (C) 2009 HungryHobo@mail.i2p
*
* The GPG fingerprint for HungryHobo@mail.i2p is:
* 6DD3 EAA2 9990 29BC 4AD2 7486 1E2C 7B61 76DC DC12
*
* This file is part of I2P-Bote.
* I2P-Bote is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | 37.908257 | 102 | 0.663359 |
3d6996e244fb1dae75a2352ea24755a3d8b2d9ad | 1,305 | package com.rwa.services;
import org.concordion.api.FullOGNL;
import org.concordion.cubano.driver.http.HttpEasy;
import org.concordion.cubano.template.AppConfig;
import org.concordion.cubano.template.driver.logger.TestLoggerLogWriter;
import org.concordion.cubano.template.framework.CubanoTemplateFixture;
import org.c... | 39.545455 | 95 | 0.732567 |
244104b089942bfd8f8dc1df8ae6f46978ed5f9f | 5,585 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 52.196262 | 114 | 0.726768 |
7020fb9ca0bcdc38719c5151dc64f9dc656e5c62 | 2,299 | package foodguide.controller;
import foodguide.model.Gender;
import javax.validation.constraints.NotBlank;
/**
* A POJO that parses the name-gender-age identification string used by the
* controller to identify a person.
*/
public class Identification {
public final String name;
public final Gender gender... | 32.842857 | 136 | 0.593301 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.