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 |
|---|---|---|---|---|---|
d2cdeeeb2f5d36ee75b4a451cebb5ffdb30df368 | 1,740 | package com.kangec.vcms.utils.logging;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
/**
* @autho... | 29.491525 | 106 | 0.59023 |
b1602077e976bbf5c5e3a6b96106d28a070bf0aa | 2,364 | /*
* Copyright 2020 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... | 40.758621 | 132 | 0.719543 |
2b3aa0f8a8f3c2c1d88225e6b721109df34c17da | 857 | package scar;
import org.spongycastle.crypto.prng.*;
import org.spongycastle.crypto.digests.SHA256Digest;
import org.spongycastle.crypto.macs.HMac;
//Used to generate random bytes of various lengths based on keys as seed
public class RndKeyGen {
SP800SecureRandom rnd;
public RndKeyGen() {
SP800SecureRandom... | 21.974359 | 72 | 0.677946 |
18e5e301d3a4b3a58667bce7298fce96e986435c | 1,526 | package com.litesuits.http.request;
import android.graphics.Bitmap;
import com.litesuits.http.parser.DataParser;
import com.litesuits.http.parser.impl.BitmapParser;
import com.litesuits.http.request.param.HttpParamModel;
import com.litesuits.http.request.param.NonHttpParam;
import java.io.File;
/**
* @author MaTian... | 23.476923 | 71 | 0.67038 |
549e6ef9bd8513c5850067d82723dd61dab56fee | 3,728 | package org.docksidestage.dockside.dbflute.whitebox.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import org.dbflute.util.DfTypeUtil;
import org.docksidestage.dockside.dbflute.bsentity.customize.dbmeta.ForcedTypeDbm;
import org.docksidestage.dockside.db... | 42.363636 | 110 | 0.492221 |
047c651d2dcf702cd51d3c380093658d96be1bce | 2,970 | /* */ package org.springframework.context.config;
/* */
/* */ import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
/* */ import org.springframework.beans.factory.support.BeanDefinitionBuilder;
/* */ import org.springframework.beans.factory.xml.ParserContext;
/* */ import org... | 34.941176 | 166 | 0.588552 |
4fa20fff576578b9599773444c464018532c0a7f | 647 | /**
* 严肃声明:
* 开源版本请务必保留此注释头信息,若删除我方将保留所有法律责任追究!
* 本软件已申请软件著作权,受国家版权局知识产权以及国家计算机软件著作权保护!
* 可正常分享和学习源码,不得用于违法犯罪活动,违者必究!
* Copyright (c) 2020 十三 all rights reserved.
* 版权所有,侵权必究!
*/
package ltd.newbee.mall.dao;
import ltd.newbee.mall.entity.MallUserToken;
public interface NewBeeMallUserTokenMapper {
int delet... | 23.962963 | 58 | 0.771252 |
6685658114a1c0dfc1fc37fdc65f48cdeb61f1ba | 275 | package com.klaus3d3.xDripwatchface.resource;
import com.ingenic.iwds.slpt.view.digital.SlptTimeView;
public class SlptAnalogAmPmView extends SlptTimeView {
public SlptAnalogAmPmView() {
}
protected short initType() {
return SVIEW_ANALOG_AM_PM;
}
} | 22.916667 | 55 | 0.745455 |
ce3101a9699b9e1e210cabaafc12a99c64e7f2a4 | 6,461 | /*
* The MIT License
*
* Copyright 2013-2015 "Osric Wilkinson" <osric@fluffypeople.com>.
* Copyright 2015 Linagora
*
* 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 re... | 28.973094 | 90 | 0.588763 |
2917245d59adabf7a08d37e6dc1931dd8d0579ed | 552 | package factory;
public class Calculator {
public static double calculate(String operation , double o1,double o2){
switch (operation){
case "add":
return o1+o2;
case "sub":
return o1-o2;
case "multiply":
return o1*o2;
... | 25.090909 | 75 | 0.51087 |
3402d2126c25da72c38b4eea9b11802aa7d44d70 | 2,291 | /*
* Copyright (c) 2008-2016, 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 ... | 34.19403 | 84 | 0.678306 |
f395adcd05d942d90c78b3c345c9b976ba5cadc4 | 11,940 | package com.pushtorefresh.storio3.sqlite.operations.put;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.pushtorefresh.storio3.test.ToStringChecker;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Collections;
import java.u... | 36.738462 | 114 | 0.68727 |
8ff65aa289358bbe72ba154bfbbe9e90098c7229 | 446 | package final2020_2021;
import static java.util.Arrays.*;
import java.util.*;
import java.util.ArrayList;
public class RadixSort {
/**
* Sorts the list of student IDs as defined in the description.
*
* @param studentIds - list of student IDs
* @return sorted list of studen... | 22.3 | 71 | 0.609865 |
7b69416bcba7d05d320207f2d077290333b49eed | 6,690 | /*
(*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Nomadic Development, Inc. <contact@tezcore.com> ... | 40.301205 | 119 | 0.634828 |
b99d28f958951f234d96103949c71cb1e7fd3d8c | 216 | package com.subho.wipro.pjp.tm03.ac.q1;
public class KotMBank extends GeneralBank {
public double getFixedDepositInterestRate() {
return 6;
}
public double getSavingsInterestRate() {
return 9;
}
} | 14.4 | 46 | 0.717593 |
1ea4b443f2d25d22bfcd0ec65a8aa585821db9bd | 1,493 | package com.example.clipboard.client.repository.model;
import org.springframework.context.ApplicationEvent;
import java.util.Date;
public class ClipboardContentEvent extends ApplicationEvent {
private final String id;
private final Integer type;
private final Date version;
public ClipboardContentEv... | 22.969231 | 64 | 0.54722 |
53b0def718986870fae7c653dc947178697632e0 | 3,315 | package koopa.trees.antlr.dtd;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import koopa.grammars.generator.KGLexer;
import koopa.grammars.generator.KGParser;
import koopa.util.ASTFrame;... | 27.396694 | 77 | 0.685973 |
1a66142e0dd405c2678edc45edb1eafe48f5b36b | 3,771 | package com.project.group18.limberup;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.suppo... | 34.916667 | 145 | 0.607531 |
a88f7fa1ccf1d72cc91b3b4d93886bf7a5d34174 | 571 | /*
* Copyright (c) 2014 mgamelabs
* To see our full license terms, please visit https://github.com/mgamelabs/mengine/blob/master/LICENSE.md
* All rights reserved.
*/
package mEngine.graphics.gui;
import java.util.ArrayList;
import java.util.List;
public class GUIScreenController {
private static List<GUIScr... | 22.84 | 106 | 0.711033 |
bee286debde2a55d5302f0c454f28fef3206d507 | 1,959 | package com.wlgdo.avatar.web.common;
import org.junit.Test;
/**
* Author: Ligang.Wang[wlgchun@l63.com]
* Date: 2019/6/5 16:35
*/
public class RSAEncryptTest {
@Test
public void encrypt() {
String message = "ItryMYbesttoLoveU";
try {
String cryptoStr = RSAEncrypt.encrypt(message... | 55.971429 | 910 | 0.810107 |
0f32f591339d9509e611dcba1cde946cf87e6d84 | 6,696 | package com.code.server.game.mahjong.util;
import java.util.Comparator;
public class MyComparator implements Comparator<String> {
// 重定義排序方法
@Override
// 1 小到大
public int compare(String s1, String s2) {
if (s1.startsWith("wan")) {
if (s2.startsWith("wan")) {
if (Integer
.parseInt(s1.substring(s1.le... | 24.617647 | 69 | 0.53405 |
5013c407742c1ec681844f25a0216be38c6ae361 | 1,925 | /*
* 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 mycode.seiyugoods.source.entity;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
... | 28.308824 | 110 | 0.710649 |
576a7b9d3e86295a6d44c7c364824b823625351d | 11,921 | package com.raizlabs.android.debugmodule.url;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.TypedArray;
import android.support.annotation.ArrayRes;
import android.support.annotation.LayoutRes;
import android.util.Patterns;
import andr... | 34.453757 | 133 | 0.579733 |
59bffa9f6806c07b1495943aa2cd9cdb688bcbe8 | 2,060 | package org.redquark.leetcode.challenge;
/**
* @author Anirudh Sharma
* <p>
* Implement the StreamChecker class as follows:
* <p>
* StreamChecker(words): Constructor, init the data structure with the given words.
* query(letter): returns true if and only if for some k >= 1, the last k characters queried
* (in o... | 27.837838 | 94 | 0.546602 |
174012c502057daf74dacf3ff27a4e8df3ed4354 | 10,336 | package gridwhack;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferStrategy;
import java.text.DecimalFormat;
import javax.swing.JFrame;
/**
* Core game engine class file.
* @author Christoffer Niska <ChristofferNiska@gmail.com>
*/
public abstract class CGameEngine extends JFra... | 24.377358 | 106 | 0.627322 |
0df97f50f53df94f20a9d686d19cea22b3697ea5 | 5,839 | /**
* Copyright 2019 ForgeRock AS.
*
* 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, ... | 38.163399 | 158 | 0.660387 |
77c147869095635366c1bc21418507783390445d | 544 | package io.github.mongoshaman.core.exceptions;
import java.util.List;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ShamanExecutionException extends ShamanException {
private static final Logger LOGGER = LoggerFactory.getLogger(ShamanExecutionException.cl... | 28.631579 | 101 | 0.795956 |
e16ee6fc96ec13d5e099812f3309e81e4531d695 | 2,394 | package internal.org.springframework.content.docx4j;
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.docx4j.Docx4J;
import org.docx4j.Docx4jProperties;
import org.docx4j.convert.out.HTMLSettings;
import org.docx4j.convert.out.html.Ab... | 31.5 | 92 | 0.787803 |
53f6041268170581a746d745756429862de64281 | 1,061 | package datadog.trace.instrumentation.grizzly.client;
import static datadog.trace.bootstrap.instrumentation.api.DDComponents.GRIZZLY_HTTP_ASYNC_CLIENT;
import com.ning.http.client.Request;
import com.ning.http.client.Response;
import datadog.trace.bootstrap.instrumentation.decorator.HttpClientDecorator;
import java.n... | 26.525 | 97 | 0.773798 |
b5acc054257403257fd6b320d7bcfab04c047985 | 5,021 | package test;
import java.io.*;
import java.util.*;
import java.util.jar.*;
import junit.framework.*;
import aQute.lib.osgi.*;
public class AttributesTest extends TestCase {
/**
* Remove a version attribute
*
* A mandatory attribute adds the common and tst properties to the
* import. We remove them using... | 35.864286 | 154 | 0.690102 |
4e87e8c79a65593fd888cebae27afd1bc1bb02bd | 305 | package com.bornium.security.oauth2openid.providers;
import com.bornium.security.oauth2openid.server.TimingContext;
import java.time.Duration;
public interface TimingProvider {
Duration getShortTokenValidFor(TimingContext context);
Duration getRefreshTokenValidFor(TimingContext context);
}
| 21.785714 | 62 | 0.82623 |
6e367448df65ceb8dc655eee4c267954da0f2da9 | 503 | /*
* This software is available under Apache License
* Copyright (c) 2020
*/
package org.pixel.commons.logger;
public interface LoggerStrategy {
/**
* Creates a logger object based on the given class.
*
* @return Logger instance.
*/
Logger createLogger(Class<?> classRef);
/**
... | 20.12 | 58 | 0.638171 |
9b6b4c548ecb3d70bd1d1c41867894ac563340a0 | 899 | package net.jeebiz.boot.demo.web.mvc;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestControlle... | 28.09375 | 71 | 0.656285 |
6f0feab6b103f1a6c742890e2c9b967c3b52c2ba | 4,146 | package com.bloodl1nez.analytics.vk.job.analyser.friends;
import com.bloodl1nez.analytics.vk.api.friends.FriendsService;
import com.bloodl1nez.analytics.vk.api.likes.LikeType;
import com.bloodl1nez.analytics.vk.api.likes.LikesFetcher;
import com.bloodl1nez.analytics.vk.api.photos.PhotosFetcher;
import com.bloodl1nez.a... | 41.46 | 109 | 0.714906 |
ff459a089beabf041eea3827e4376a68a95a405b | 1,957 | import java.util.LinkedList;
import java.util.Queue;
/*
You need to supply the following class in your solution
Pair
Complete the following class in your solution:
*/
/**
* @version 0.1
* @author TomRokickiii
* This is the Grid Class
*/
public class Grid {
private static final int SIZE = 10;
/**
* p... | 25.75 | 68 | 0.443536 |
87b3498d9edd1e38b0e67fcc4a5b38c98b656b6d | 18,162 | /**
*/
package org.sheepy.lily.vulkan.extra.model.mesh.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.sheepy.lily.core.model.maintainer.Maintainable;
import org.sheepy.lily.core.model.maintainer.Maintainer;
import org.sheepy.lil... | 34.926923 | 118 | 0.695133 |
0f9d859e4037a5f4c67cb42df8bdf9f44401a689 | 1,115 | /*
* Copyright (C) 2012 Christopher Peisert. 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 b... | 25.930233 | 78 | 0.712108 |
b26f475071e699474001d0fa74f51997108442d7 | 236 | package mops.util;
import java.lang.annotation.*;
/**
* Interface for marking a class with Aggregate Root for testing.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface AggregateRoot {
}
| 18.153846 | 65 | 0.766949 |
69d4eb07b797c9c0bd0705da8271aeeb7cb493a6 | 2,105 | /*******************************************************************************
* Copyright (c) 2006, 2012 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | 30.071429 | 83 | 0.647506 |
f408ec9a7eda0ebcbb98e4b018fb6c5e0edce583 | 2,749 | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 33.52439 | 161 | 0.781375 |
fa58222bd5742b3a43f255bfc31b63cb1abf521c | 596 | package cn.org.wyxxt.singleton;
/**
* @author xingzhiwei
* @createBy IntelliJ IDEA
* @time 2021/2/23 1:59 下午
* @email jsjxzw@163.com
*/
/**
* 简单实用,推荐使用
* Class.forName("")
*/
public class Mgr01 {
private static final Mgr01 INSTANCE = new Mgr01();
private Mgr01() {
}
public static Mgr01 getIn... | 17.529412 | 54 | 0.583893 |
d227b7eabe64a12e09fe15cfe0741c556af7792f | 12,164 | /*
* 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... | 47.515625 | 128 | 0.731832 |
0cf729028ef1e509c01a009e7e9c58de9b4d784d | 342 | /**
* This packages contains classes and interface to configure the JEngine.
* email templates can be set from here.
* And there is an additional REST-Interface.
* <p/>
* There might be more options in the future:
* configuring data attributes for an activity
* configuring users and roles
*/
package de.hpi.bpt.... | 34.2 | 73 | 0.751462 |
267ce9993cf6a453aaadbbf6789a80d9dd6ec95b | 9,599 | /*
* DiSNI: Direct Storage and Networking Interface
*
* Author: Patrick Stuedi <stu@zurich.ibm.com>
*
* Copyright (C) 2016, IBM 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 Licen... | 18.353728 | 486 | 0.645588 |
ac442a1d0d503c3eb00d60eb9ecbe8660b9759de | 695 | /*
* Created on 24 Oct 2015 ( Time 23:23:56 )
* Generated by Telosys Tools Generator ( version 2.1.1 )
*/
package com.kumasi.journal.web.listitem;
import com.kumasi.journal.domain.Entrytype;
import com.kumasi.journal.web.common.ListItem;
public class EntrytypeListItem implements ListItem {
private final String v... | 18.783784 | 66 | 0.71223 |
858f1a93bf14a10762d569b4e5ff43f789660cef | 293 | /*
* AddCast1.java
*
* Created on March 12, 2005, 8:10 PM
*/
package org.netbeans.test.java.hints;
/**
*
* @author lahvac
*/
public class AddCast1 {
/** Creates a new instance of AddCast1 */
public AddCast1() {
Object x = null;
String s = x;
}
}
| 13.318182 | 45 | 0.549488 |
fc906d878f1ea549343f7975b501d073363a6af4 | 1,887 | package org.jboss.rhiot.scoreboard;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane;
/**
* Created by starksm o... | 32.534483 | 82 | 0.618972 |
04bd1aff821da886406544429faea051882718a5 | 1,687 | /*
* 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 ... | 39.232558 | 74 | 0.752816 |
76a56b6209e4c5ffbd8c9f0df4901a242dfa735b | 2,622 | /*
*
* 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
* distri... | 33.189873 | 134 | 0.737223 |
6cdd85ce48bedd2acaf205d25ce01d9175f1a90a | 515 | package edu.psu.sweng500.emrms.service;
import edu.psu.sweng500.emrms.model.HAuditRecord;
import edu.psu.sweng500.emrms.model.Policy;
import java.util.List;
public interface AuditEventService {
public int auditEvent(HAuditRecord auditRecord);
public List<Policy> getAuditPolicies();
public List<HAuditReco... | 34.333333 | 93 | 0.798058 |
0d547ec410b9a91f937519b7337d813775d2d5cc | 1,626 | package com.palyrobotics.frc2022.behavior.routines.superstructure.intake;
import java.util.*;
import com.palyrobotics.frc2022.behavior.TimeoutRoutineBase;
import com.palyrobotics.frc2022.robot.Commands;
import com.palyrobotics.frc2022.robot.ReadOnly;
import com.palyrobotics.frc2022.robot.RobotState;
import com.palyro... | 26.655738 | 73 | 0.775523 |
5f8a914508311ffd358557df314a0a82ff3418a2 | 308 | package com.safou.issueManager.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.safou.issueManager.models.IssueNumeric;
import com.safou.issueManager.models.IssueNumericId;
public interface IssueNumericRepository extends JpaRepository<IssueNumeric, IssueNumericId> {
}
| 30.8 | 93 | 0.857143 |
1a4650892e0b63ac84f55899894e1bf57a997832 | 698 | /**
* T: O(logN) S: O(1)
*
* <p>Binary search through the array, check if the next element is the same as the current one. If
* so - this means that the single element is further into array, if not - it is either current
* element or some of the elements before. We only need to check the even indexes to avoid redu... | 25.851852 | 100 | 0.558739 |
e82bbeffe69f16ba37bdb6d9eeeb164655bfce96 | 12,286 | /*
* Copyright (C) 2017 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 51.621849 | 514 | 0.621602 |
813f01c99750670e0485c088e1160bed8bfbea3c | 8,300 | /*
* Copyright (c) 2020 Oracle and/or its affiliates. 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
*
* Unl... | 34.439834 | 109 | 0.557108 |
32bf6fc11f543c24de48e2ea716ecad5ca24d1d6 | 1,090 | package com.fererlab.wowzajersey.core.controller;
import com.fererlab.wowzajersey.core.config.Configurable;
import com.fererlab.wowzajersey.app.model.Client;
import com.fererlab.wowzajersey.app.model.HttpSession;
/**
* Controller for module operations
*/
public interface ModuleController extends Controller, Configu... | 25.348837 | 68 | 0.686239 |
b8ab8e17f28f248a56d5c8fa9b3f9d320c18f214 | 17,341 | package guis;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.Vector;
import javax.swing.BorderFactory;
im... | 34.682 | 146 | 0.736117 |
de040f6769eab38a695ba062cd6ffdd65d11c53e | 5,469 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 35.745098 | 118 | 0.756445 |
f8420bf14891ecd8ea011f2608c804220ae436ba | 5,397 |
package com.ptoceti.osgi.modbus.impl;
/*
* #%L
* **********************************************************************
* ORGANIZATION : ptoceti
* PROJECT : Modbus
* FILENAME : Activator.java
*
* This file is part of the Ptoceti project. More information about
* this project can be found here: http://www.pto... | 35.27451 | 108 | 0.710395 |
42d49499d822c0c7273fd8ca6d5b99bb21515028 | 9,196 | /*******************************************************************************
* Copyright (c) 2010-2011 VIVO Harvester Team. For full list of contributors, please see the AUTHORS file provided.
* All rights reserved.
* This program and the accompanying materials are made available under the terms of the new BSD l... | 34.833333 | 230 | 0.703349 |
f4262837d1cdfcb41e28b80ebf0af1c696c2fbd0 | 1,268 | package com.twu.biblioteca.entity;
import java.util.Objects;
public class Book extends Article {
String name;
String author;
String publishedYear;
public Book( String name, String author, String publishedYear) {
this.name = name;
this.author = author;
this.publishedYear = publ... | 22.245614 | 68 | 0.604101 |
bf26d3e398e81131cb1a2e0fc06b4ff32fb43313 | 1,549 | /**
* Copyright 2018 chengfan(fanhub.cn)
*
* 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 o... | 35.204545 | 81 | 0.693996 |
f80160efe23ae9fc5752e046fdb54ca4b5ac44f8 | 5,420 | /**
* Copyright 2019 Pramati Prism, 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 a... | 38.169014 | 119 | 0.684871 |
353c323e894720311e6f550e7e6f5235ee5e77fa | 2,687 | package com.txlidat.dao.hibernate;
import com.txlcommon.dao.hibernate.TXLAbstractSiteCheckingDao;
import com.txlcommon.domain.psn.TXLPsn;
import com.txlidat.dao.TXLClientDao;
import com.txlidat.domain.TXLClient;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import or... | 27.418367 | 95 | 0.701898 |
c1cffad94843a21a6495fd20e7802698d9143aac | 1,934 | package com.ironhack.demobakingapp.service.impl.Users;
import com.ironhack.demobakingapp.controller.DTO.Users.AccountHolderDTO;
import com.ironhack.demobakingapp.enums.UserRole;
import com.ironhack.demobakingapp.model.Users.AccountHolder;
import com.ironhack.demobakingapp.model.Users.Role;
import com.ironhack.demobaki... | 35.814815 | 89 | 0.737849 |
0bb7b1ebdee4b2d9debedf31bd7ea00b11cccd21 | 1,726 | package Dec2020Leetcode;
public class _0329LongestIncreasingPathInAMatrix {
public static void main(String[] args) {
System.out.println(longestIncreasingPath(
new int[][] { new int[] { 9, 9, 4 }, new int[] { 6, 6, 8 }, new int[] { 2, 1, 1 } }));
System.out.println(longestIncreasingPath(
new int[][] { new... | 30.821429 | 90 | 0.559676 |
bfa550c5867f4c2981ea8e417b82f052fb9e87ef | 2,486 | package io.github.incplusplus.bigtoolbox.network;
import io.github.incplusplus.bigtoolbox.network.interfaces.WiFiAdapter;
import io.github.incplusplus.bigtoolbox.network.interop.lin.dbushelpers.PropertiesExtractor;
import io.github.incplusplus.bigtoolbox.network.interop.lin.nm.NMInterop;
import io.github.incplusplus.b... | 44.392857 | 113 | 0.730491 |
338db9a24d93f7d5d9752deb28d7301aabacdf65 | 1,470 | package ca.ghandalf.urban.mobility.dto;
import java.io.Serializable;
import java.util.UUID;
public class AgencyDTO implements Serializable {
private static final long serialVersionUID = -5110247213639696407L;
private UUID id;
private String agencyId;
private String name;
private String url;
private Stri... | 14.7 | 68 | 0.702041 |
e8541270e5da76ddc719a6fdb8470ea236bdbb41 | 574 | package org.simplity.fm.example.gen.list;
import org.simplity.fm.core.validn.ValueList;
public class Religion extends ValueList {
private static final Object[][] VALUES = {
{"Hindu", "Hindu"},
{"Muslim", "Muslim"},
{"Christian", "Christian"},
{"Sikh", "Sikh"},
{"Jain", "Jain"},
{"Others", "Other"}
... | 18.516129 | 53 | 0.621951 |
b58b0f9e5395b48fc8d186f979789213db392a28 | 693 | package model;
public class Categoria {
private Integer codigo;
private String categoria;
private String descricao;
public Categoria(String categoria, String descricao) {
this.categoria = categoria;
this.descricao = descricao;
}
public Integer getCodigo() {
return codigo;
}
public void setCodigo(Inte... | 16.5 | 55 | 0.724387 |
363e154280a6f4123f7ed54ab5ea6eb3f2b1c3ed | 2,017 | package pl.mprzybylak.presentation.rxjavaquick;
import io.reactivex.Observable;
import org.junit.Test;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
impor... | 23.729412 | 87 | 0.596926 |
3eff82fdf52b8efccfe2e9b1797af71425e8e5c7 | 11,227 | package com.africultures.seed.Action;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Base64;
import android.util.Log;
import com.co... | 39.53169 | 126 | 0.539325 |
ec98bd351149a6a4b2645aa78b57091e5d9572e9 | 5,885 | /**
Copyright 2008 University of Rochester
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... | 35.884146 | 133 | 0.747494 |
3d40430050fc248364c926cf82277c218342615d | 8,172 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.0... | 27.701695 | 124 | 0.61723 |
efb6bdf37202fc9369212d4597e76d528df02ba2 | 1,240 | package com.liefeng.property.repository.fee;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import com.liefeng.property.po.fee.MeterSettingPo;
... | 20 | 87 | 0.716129 |
6ac72136c51c61f74f5b6d2161b15f02c12c7fd0 | 2,440 | package net.consensys.eventeum.chain.service.strategy;
import net.consensys.eventeum.chain.service.BlockchainException;
import net.consensys.eventeum.chain.service.domain.TransactionReceipt;
import net.consensys.eventeum.chain.service.domain.wrapper.Web3jTransactionReceipt;
import net.consensys.eventeum.dto.block.Bloc... | 36.969697 | 126 | 0.736475 |
aece90e1df52d25bf8a6b10c53bd90c1557c918c | 492 | package de.polocloud.bootstrap.config;
import de.polocloud.api.config.IConfig;
import de.polocloud.bootstrap.config.messages.Messages;
import de.polocloud.bootstrap.config.properties.Properties;
public class MasterConfig implements IConfig {
private Properties properties = new Properties();
private Messages ... | 23.428571 | 59 | 0.739837 |
3e8912f7e2c25452ab726b8479425da4ed43e5f7 | 818 | package de.tu_dresden.selis.pubsub;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
/**
* Possible type of the values stored in the Message.
*/
public enum ValueType {
@SerializedName("string")
STRING(String.class),
@SerializedName("float")
FLOAT(Float.class),
... | 19.023256 | 55 | 0.624694 |
d181471663d826acc45d96e01153ab681272f6d1 | 566 | package com.happy;
import com.happy.Common.TreeNode;
import org.junit.Test;
/**
* 第106题 从中序与后序遍历序列构造二叉树
*
* @author qgl
* @date 2019/07/01
*/
public class Test106 {
@Test
public void test106() {
ConstructTreeByInPostTraversal106 builderTree106 = new ConstructTreeByInPostTraversal106();
in... | 25.727273 | 99 | 0.662544 |
8857ef5cc60772170a8c609020618b83113b00d1 | 8,748 | /*
* Copyright (C) 2010 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 33.906977 | 112 | 0.610768 |
b3ab9ecaa16686b8085f23d91baafd3c4e58e371 | 279 | package net.loganford.noideaengine.entity;
public class SimpleEntityStore extends EntityStore<Entity> {
@Override
protected Entity unwrap(Entity item) {
return item;
}
@Override
protected Entity wrap(Entity entity) {
return entity;
}
}
| 18.6 | 60 | 0.677419 |
df0c0a72d3de97eb570d71294ad3eeb720b09863 | 1,521 | package com.nicolasdu.MyFlikz.common.adapter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.nicolasdu.MyFlikz.fragment.ShowsListFragment;
import com.nicolasdu.MyFlikz.showsFilter;
... | 29.823529 | 75 | 0.619329 |
281d3977c5063b0065d84ae66fe76b6137c8626a | 1,184 | /*
* Copyright 2014 Open mHealth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 32.888889 | 90 | 0.760135 |
b05218f172caed427c940e79a2b150427057cf5a | 2,322 | /*
* 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... | 40.736842 | 95 | 0.677864 |
f548e560e861bcace24a53a9814edc43b0820e87 | 957 | package kr.co.popone.fitts.feature.category;
import androidx.viewpager.widget.ViewPager;
import io.reactivex.functions.BiConsumer;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import kr.co.popone.fitts.C0010R$id;
final class CategorySearchActivity$onCreate$2<T1, T2> implements BiConsumer<Unit, T... | 41.608696 | 113 | 0.755486 |
b04733594adc1577ad9658ceeda485daf215d15e | 9,052 | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | 40.959276 | 114 | 0.628038 |
3b4fb128db1a0256a376e8636c4d583fdf9c3a40 | 10,319 | /*
* Copyright (c) 2017 by Gerrit Grunwald
*
* 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... | 40.308594 | 147 | 0.601512 |
881be3a96aa907149093bf892fcafe0647b153c8 | 2,949 | package com.smartpro.mis.modular.system.controller;
import com.baomidou.mybatisplus.mapper.SqlRunner;
import com.baomidou.mybatisplus.plugins.Page;
import com.smartpro.mis.core.base.controller.BaseController;
import com.smartpro.mis.core.common.annotion.BussinessLog;
import com.smartpro.mis.core.common.annotion.Permis... | 34.694118 | 219 | 0.736521 |
e64ad51482cf05a0e1a9dc4faddca3e82fd6ab31 | 2,185 | package cfvbaibai.cardfantasy.engine.skill;
import cfvbaibai.cardfantasy.GameUI;
import cfvbaibai.cardfantasy.Randomizer;
import cfvbaibai.cardfantasy.data.Skill;
import cfvbaibai.cardfantasy.engine.*;
import java.util.List;
public final class TaoistNature {
public static void apply(SkillResolver resolver, Skill... | 44.591837 | 171 | 0.645767 |
113417b2d46f7530721644836a2377dcf6f499aa | 3,884 | package com.dse.dseMod.block;
import net.minecraft.block.BlockSlab;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
impo... | 26.786207 | 162 | 0.709835 |
b2648b519cb72b4f479a49afb9f1534a4998bb42 | 1,308 | package com.stylefeng.guns.api.controller.order;
import com.baomidou.mybatisplus.plugins.pagination.PageHelper;
import com.stylefeng.guns.api.order.OrderService;
import com.stylefeng.guns.api.order.VO.OrderVO;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.Request... | 33.538462 | 86 | 0.678135 |
36a4f48cd16ceaf7d2989f489506c4e0249857c1 | 759 | package br.com.jornadacolaborativa.microservice.payment.saga.payment.model;
import br.com.jornadacolaborativa.microservice.payment.saga.payment.enums.TransactionStatus;
import lombok.Getter;
import lombok.ToString;
@ToString
@Getter
public class TransactionEvent implements Event {
private static final String EVE... | 22.323529 | 92 | 0.714097 |
10f1bfbeb5290f2378c14d1936f80ec1070716ff | 49,614 | package annotator;
import annotator.find.AnnotationInsertion;
import annotator.find.CastInsertion;
import annotator.find.ConstructorInsertion;
import annotator.find.Criteria;
import annotator.find.GenericArrayLocationCriterion;
import annotator.find.Insertion;
import annotator.find.Insertions;
import annotator.find.Ne... | 39.501592 | 100 | 0.591607 |
a920c371a7c242f04e6b9038f44556566ef188a7 | 929 | package com.xiaoTools.core.convert.pathConverter;
import java.io.File;
import java.net.URI;
import java.net.URL;
import java.nio.file.Path;
import java.nio.file.Paths;
import com.xiaoTools.core.convert.abstractConverter.AbstractConverter;
/**
* [字符串转换器](String converter)
* @description zh - 字符串转换器
* @description ... | 20.195652 | 70 | 0.703983 |
fc9b7b3656802e4c8d4c25a0212facc374a0f2f2 | 5,374 | package com.github.stazxr.zblog.base.manager;
import com.github.stazxr.zblog.base.domain.entity.Permission;
import com.github.stazxr.zblog.base.domain.entity.Router;
import com.github.stazxr.zblog.base.service.PermissionService;
import com.github.stazxr.zblog.base.service.RouterService;
import com.github.stazxr.zblog.... | 35.355263 | 110 | 0.638817 |
8fdebaaacbf89e6232ccf7cf4251720c83c6856c | 437 | package ag.algorithms.leetcode.solutions.strings;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class LongestHappyStringTest {
@Test
void getLongestHappyString() {
LongestHappyString longestHappyString = new LongestHappySt... | 31.214286 | 101 | 0.768879 |
52719ce6157d18602f354f6607557e1ca6bb3dd7 | 2,770 | package com.jameslin.progression;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import net.minecraft.world.biome.Biome;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
public class ProgressionConfig {
public boolean disab... | 41.969697 | 135 | 0.74657 |
ba021b888edaffcbd36989d1e3ba50c078cd2a60 | 4,939 | package com.ebgolden.domain.locationservice.dal;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ebgolden.common.Location;
import com.ebgolden.common.Visibility;
import org.json.simple.JSONOb... | 44.9 | 145 | 0.652966 |
65ada536db4ca40f3a334a820323be4ba51ed539 | 1,524 | package com.coderqian.eurekaorder.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.s... | 33.130435 | 107 | 0.744751 |
24d1a1ceea7423946caa538f4215a9b2a7fe0acc | 3,871 | /*
* 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 n... | 36.518868 | 101 | 0.622578 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.