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 |
|---|---|---|---|---|---|
9fa47a39d13188bd28ecc1281327f4f01bfd210d | 583 | package com.xuecheng.manage_course.service;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import com.xuecheng.manage_course.dao.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation... | 26.5 | 64 | 0.785592 |
09d0991f82c7164fb47acf08c0d2d23032229853 | 1,221 | package nablarch.common.web.validator;
import java.io.Serializable;
import nablarch.common.web.interceptor.InjectForm;
import nablarch.core.validation.ValidationContext;
import nablarch.core.validation.ValidationUtil;
import nablarch.fw.web.HttpRequest;
import nablarch.fw.web.servlet.ServletExecutionContext;
/**
* ... | 29.071429 | 117 | 0.750205 |
6af15472de8aca27e62c999e5c76148c6f81e26b | 2,148 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 31.130435 | 79 | 0.663873 |
8885cb5b2eb1b4739255e14dae7370e2100a9bf9 | 812 | package br.edu.infnet.domain.controller;
import br.edu.infnet.domain.service.EnderecoService;
import org.hibernate.type.StringNVarcharType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.we... | 33.833333 | 136 | 0.794335 |
a57859d6c9706b69f996094a0529fdb1cb3483e1 | 10,662 | /*
* Copyright 2017-2021 Axway Software
*
* 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 l... | 42.142292 | 119 | 0.554868 |
c499a1cf9af6667df66b924ab475d76d2b78c948 | 330 | import com.subodh.javatraining.oop.classExamples.Stack;
public class StackTest {
public static void main(String[] args) {
Stack stack1 = new Stack();
stack1.pop();
stack1.push(1);
stack1.push(2);
stack1.push(3);
stack1.pop();
System.out.println(stack1.peek())... | 23.571429 | 55 | 0.587879 |
25e5d5974be93f4daa226f2d93ea61608ace2bc1 | 8,401 | package com.koala.springComponents.springContext.context.support;
import com.koala.springComponents.springContext.context.ConfigurableApplicationContext;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.b... | 42.005 | 117 | 0.597191 |
a54108d8483e015f0575d00391e6c90635830acb | 9,741 | /**
* Copyright (c) 2009-2011 Misys Open Source Solutions (MOSS) and others
*
* 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
*
*... | 33.705882 | 104 | 0.698902 |
b89a0378c6ea4e552c5447d4a24624fa1ad37712 | 1,280 | package com.maximchuk.rest.api.client.util;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
/**
* @author Maxim Maximchuk
* date 14.07.2015.
*/
public class StringParamBuilder {
private Map<String, Object> params;
public Str... | 26.122449 | 117 | 0.615625 |
13d75e49907bb61f87c4a64d0cc16413be52abce | 3,203 | /*
* $Id: AbstractSelectAction.java 421119 2006-07-12 04:49:11Z wsmoak $
*
* Copyright 2003-2005 The Apache Software Foundation.
*
* 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
*
* ... | 36.397727 | 91 | 0.625663 |
f4a6ec2d68f50e9293e06424bc2bba9142efc3f0 | 1,147 | package helpers;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ConcurrentHashMap;
public class BullshifierException extends Exception {
private static final ConcurrentMap<String, AtomicInteger> pathToCounterMap =
new ConcurrentHashMap<Strin... | 25.488889 | 77 | 0.737576 |
8c6b6aa45caa466b1def5a534c4a2de36c21392c | 1,858 | package com.threathunter.greyhound.server.esper.eplgen;
import com.threathunter.model.VariableMeta;
import org.codehaus.jackson.map.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Helper class for read variables or ... | 30.966667 | 103 | 0.6324 |
26db02e39d63dafb1128e0b36babc493a8209ad2 | 23,849 | /**
* 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... | 35.917169 | 108 | 0.669504 |
55560d6ccb57a5bc8c2c2a5798b54b24202e8ea7 | 1,929 | package org.webharvest.gui.component;
import javax.swing.*;
import javax.swing.event.PopupMenuEvent;
import javax.swing.event.PopupMenuListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.*;
/**
* Common popup menu.
*/
public class WHPop... | 28.367647 | 73 | 0.582685 |
b3d4f9803ef0e2edc1212853d1314acc9125dc97 | 1,209 | public class Time extends ReplacedPlaybook {
public synchronized boolean isComplete() {
return Bases[29] != null;
}
public synchronized boolean ensureAppeals(Methods rifeSue) {
if (Bases[0] == null) {
return false;
}
for (int i = 0; i < Bases.length; i++) {
if (Bases[i] == null) r... | 20.491525 | 92 | 0.581472 |
6b08e92577f5b80be504e95c6155045d9dd5c687 | 5,474 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 31.28 | 129 | 0.688162 |
8385f2068d871f216f35be4523267ee4a980adeb | 9,863 | package edu.sfsu.cs.orange.ocr;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.TextView;
import com.google.firebase.database.FirebaseDatabase;
import android.view.View;
import android.widget.Button;
import com.google.firebase.databas... | 30.441358 | 131 | 0.600629 |
990b4c98b75041d65ab2298243d6576389452b08 | 1,024 |
package com.itgacl.magic4j.common.validator;
import com.itgacl.magic4j.libcommon.exception.IncorrectParameterException;
import java.util.UUID;
public class Validator {
public static void validateString(String val, String errorMessage) {
if (val == null || val.isEmpty()) {
throw new Incorre... | 25.6 | 78 | 0.65625 |
d64eddc62ede9b410960b0d03a67ec7c2642fe28 | 4,492 | package cz.nkp.urnnbn.services;
import cz.nkp.urnnbn.core.*;
import cz.nkp.urnnbn.core.dto.*;
import cz.nkp.urnnbn.services.exceptions.ContentNotFoundException;
import cz.nkp.urnnbn.services.exceptions.NotAdminException;
import cz.nkp.urnnbn.services.exceptions.RegistrarScopeIdentifierNotDefinedException;
import cz.nk... | 35.09375 | 151 | 0.776046 |
be3428c202ebb34404ab4bdc15531059e35b4927 | 145 | package org.shujito.cartonbox.view.listener;
public interface TagListItemSelectedCallback
{
public void tagListItemSelected(String tag);
} | 24.166667 | 46 | 0.813793 |
7c2be9fe44ba78b7789b44fd645265b3e6940f9e | 13,648 | /*
* 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 no... | 42.918239 | 154 | 0.668889 |
cd580948ea1a8371b73581add1e48e134ee00781 | 1,320 | package com.us.example.service;
import com.us.example.bean.Person;
import com.us.example.dao.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.stereotype.Service;
/**
* Cre... | 26.4 | 79 | 0.671212 |
74016245c3378210f6d646729fa7e1afe8af93e9 | 381 | package github.gx.jumptable.dto;
import lombok.Data;
/**
* @program: RedisGrowUp
* @description: 跳表每层后置节点维护对象
* @author: gaoxiang
* @email: 630268696@qq.com
* @create: 2021-03-11 16:01
**/
@Data
public class JumpFloorNode {
/**
* 下一个节点引用地址
*/
private JumpNode forwardNode;
/**
* 当前节点... | 15.24 | 36 | 0.632546 |
9976c33b97c640486296b58a8dccedb5d3ff3577 | 3,887 | // Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.compatproguard;
import static org.junit.Assert.assertEquals;
import static or... | 38.87 | 94 | 0.674813 |
dc92ecdb0676fda28f0945fe725e60ddf0401950 | 4,520 | import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;
import java.io.IOException;
import javax.naming.ConfigurationException;
public final class Config
{
//constants
public static final String DEFAULT_DBPORT = "33... | 26.432749 | 110 | 0.603761 |
78a48110043a42e343b4eea62da78102a314e126 | 4,103 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.simpleinstruments.pricing;
import com.opengamma.analytics.financial.model.interestrate.curve.YieldAndDiscountCurve;
/**
* Market data req... | 26.301282 | 151 | 0.649037 |
afcea064586b48c118bf6866a4b5e4676ba3c3c1 | 3,352 | __________________________________________________________________________________________________
sample 1 ms submission
class Solution {
public boolean splitArraySameAverage(int[] A) {
return useDFS(A);
}
private boolean useDFS(int[] a) {
int n = a.length;
// claculate the tot... | 32.862745 | 98 | 0.507458 |
fd6d4a712670c66124b141f18efc4a34669908f6 | 704 | package com.example.wyattfraley.golftracker;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import java.util.List;
@Dao
public interface ScoreEntryDao {
@Query("SELECT * FROM ScoreEntr... | 26.074074 | 63 | 0.752841 |
4ce7ecabb8b5bcffcd0e4b41879befb4ab9d60b2 | 7,883 | package seedu.address.model.application;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThrows;
import static seedu.address.testutil.Typ... | 41.272251 | 120 | 0.761639 |
b349e4ecfa1d1443009fef9463b91f8c7a8b1f0b | 3,273 | package ru.romashov.blogapp.tests.repositories;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.dao.DataIntegrityViolationEx... | 27.504202 | 80 | 0.681638 |
479a7034339bfb2754b4b8bc9d2c8c321a62efe6 | 27,594 | package org.terifan.ui.listview;
import org.terifan.ui.listview.util.Orientation;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt... | 22.562551 | 190 | 0.695187 |
cdcc10026d78542cd4fe426306457a6c5719664b | 2,044 | /*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 40.88 | 111 | 0.769569 |
c84e70fdc788f485ebb2a294614470de9c697b1e | 737 | package com.packt.springboot.securityintro.logic;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
@Service
public class ShortMessageService {
private List<ShortMessage> shortMessages = new LinkedList<>(... | 29.48 | 86 | 0.7327 |
0f98d499f1f69397d3924fb322442c4fd5d56ddb | 2,201 | package com.cky.learnandroiddetails;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
import android.view.View;
import android.widget.T... | 31.898551 | 128 | 0.736938 |
4eb0c1863038cbb0a050af49aaf5cfca502ea03b | 370 | package io.appium.java_client.pagefactory_tests.widgets.android.extended;
import io.appium.java_client.pagefactory_tests.widgets.android.annotated.AnnotatedAndroidReview;
import org.openqa.selenium.WebElement;
public class ExtendedAndroidReview extends AnnotatedAndroidReview{
protected ExtendedAndroidReview(WebE... | 30.833333 | 96 | 0.824324 |
108a1a3ece1f07abb96484e5d2f04edbd9dc3865 | 327 | package backtype.storm.topology;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Tuple;
import java.util.Map;
public interface IBasicBolt extends IComponent {
void prepare(Map stormConf, TopologyContext context);
void execute(Tuple input, BasicOutputCollector collector);
void clean... | 29.727273 | 62 | 0.795107 |
0ed87c8d58e9e5a1ef72dd61ba2238f42b024665 | 581 | package com.patrykkosieradzki.quizletify.ui;
import com.patrykkosieradzki.quizletify.Word;
public class CheckBoxListItem {
private Word word;
public CheckBoxListItem(Word word) {
this.word = word;
}
private boolean isSelected = false;
public boolean isSelected() {
return isSel... | 17.606061 | 49 | 0.652324 |
a9857f54f43f6b156c22cd8e2504138b581c1296 | 891 | package search;
import java.io.File;
import java.util.Observer;
import javafx.collections.ObservableList;
/**
* Created by: Aleksandr
* Date: 08.01.2017
* Project: FileFinder
* <p>
* "The more we do, the more we can do" ©
*/
public class Search {
private static volatile Search instance;
private boolean sea... | 22.846154 | 58 | 0.672278 |
889da320f93a84f634b43bbd524343a64df8e0af | 1,671 | package com.goodjoon.guppy.engine.common.mybatis.typehandler;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.Map... | 30.944444 | 83 | 0.745063 |
c59b808a2e186dad737d71b1567b5095057e2c3d | 4,047 | /*
* 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 com.aeox.business.login.boundary;
import com.aeox.business.common.boundary.ErrorMessage;
import com.aeox.business.logg... | 37.472222 | 143 | 0.696318 |
7aa7e2535481f049206ed55bd1c62de67d201c10 | 3,979 | /**
* Copyright 2010-2013, Stanford University. This file is licensed under the
* BSD license as described in the included LICENSE.txt.
*/
package net.beaconcontroller.devicemanager.web;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.... | 35.212389 | 115 | 0.685851 |
10709237eda7f34afe7c4c5d4b2abc1af922ef96 | 8,053 | /**
* 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... | 38.903382 | 96 | 0.725816 |
0141d2e5caca90160024b3b79c0eeae4b1c04f99 | 2,667 | package com.client.impl.test;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;
import java.util.Random;
import java.util.zip.CRC32;
import java.util.zip.Checksum;
//import org.apache.log4j.Logger;
import com.client.ClientException;
import com.client.DataStoreClient;
import co... | 31.376471 | 72 | 0.752906 |
eb481cffecc3b76f1eb1772122d8a2a97276714a | 372 | package com.sylvyrfysh.monerowallet;
public class TimedObject<T> {
private T obj;
private long endTime;
public TimedObject(T obj,long secondsOfValidity) {
this.obj = obj;
this.endTime = (secondsOfValidity * 1000) + System.currentTimeMillis();
}
public boolean isValid() {
return System.currentTimeMillis() < ... | 21.882353 | 73 | 0.723118 |
c2f89237e1ec00f45b2160cfc65777d34c328a19 | 1,141 | /*
* generated by Xtext 2.12.0
*/
package uniandes.mdd.aplicacion.blockchain.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import uniandes.mdd.aplicacion.blockchain.parser.antlr.internal.InternalBlockc... | 27.829268 | 89 | 0.816827 |
fc666f1d6bfe9de463ff791f24cf29a346a9ada6 | 201 | package com.scs.stevetech1.components;
import com.scs.stevetech1.server.AbstractGameServer;
public interface IProcessByServer {
void processByServer(AbstractGameServer server, float tpf_secs);
}
| 20.1 | 65 | 0.825871 |
4327c015ee31493266d930fb6b1bcf1b6496ec77 | 301 | public enum QuestionStatus{
OPEN,
CLOSED,
ON_HOLD,
DELETED
}
public enum QuestionClosingRemark{
DUPLICATE,
OFF_TOPIC,
TOO_BROAD,
NOT_CONSTRUCTIVE,
NOT_A_REAL_QUESTION,
PRIMARILY_OPINION_BASED
}
public enum AccountStatus{
ACTIVE,
CLOSED,
CANCELED,
BLACKLISTED,
BLOCKED
} | 13.086957 | 34 | 0.747508 |
0bf2dc91deb3e1e90468d505a9b10e173ec1e4ef | 1,333 | package com.example.demo.model;
public class Plant {
public final static String KEY_ROOT_ARRAY = "plants";
public final static String KEY_ID = "id";
public final static String KEY_GENUS = "genus";
public final static String KEY_SPECIES = "species";
public final static String KEY_CULTIVAR = "cultivar";
pu... | 22.59322 | 55 | 0.632408 |
5f2272c554283f2e7e6dab698a16bb6003808413 | 397 | package com.udacity.jdnd.course3.critter.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.NOT_FOUND)
public class EmployeeNotFoundException extends RuntimeException{
public EmployeeNotFoundException(Long id) {
... | 30.538462 | 68 | 0.785894 |
d861f274ea12e1e73c9825da077af28bbdecc9a2 | 5,194 | /*
* MIT License
*
* Copyright (c) 2018 i4one Interactive, LLC
*
* 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 us... | 33.509677 | 140 | 0.77166 |
2bab28d78d2483d728cbfa0b56666c508197b0da | 3,901 | package org.bbop.apollo.web.dataadapter.gff3;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
import org.bbop.apollo.web.datastore.JEDatabase;
import org.gmod.gbol.bioObject.AbstractSingleLocationBioFeature;
import org.gmod.gbol.bio... | 34.219298 | 195 | 0.784414 |
c2c080dd0fcbeb285c373c0540a1b55accae189c | 68 | package com.benayn.ustyle.base;
public enum EnumType {
T1,T2,T3
}
| 11.333333 | 31 | 0.735294 |
9373cd4cb9f825649334339e3704d1d514ec8975 | 602 | package chapter07;
import com.google.common.collect.Lists;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import java.util.List;
public class TradeBuyAuditor {
private List<BuyEvent> buyEvents = Lists.newArrayList();
public TradeBuyAuditor(EventBus eventBus) {
... | 22.296296 | 67 | 0.702658 |
9afbb485283de851cdcf5a562ab321a885b86f64 | 827 | package COM;
public class Calculation {
public static int countWhitePoints(int[][] my2DArray) {
int theMax = 0;
for (int i = 0; i < my2DArray.length; i++) {
for (int j = 0; j < my2DArray[i].length; j++) {
if (my2DArray[i][j] == 255) {
theMax++... | 27.566667 | 61 | 0.392987 |
f808c1d1181ea344724ab164531742e4757e3926 | 1,320 | package com.callerscreendialer.theme.yourthemenamehere;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.callerscreendialer.themeclickevent.ApplyClickEvent;
public class MainActivity extends A... | 29.333333 | 124 | 0.69697 |
fc70eb376ccf078cfb733ed45bf80d05d52bd0ae | 3,666 | package com.publiccms.logic.component.site;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
... | 37.030303 | 146 | 0.671304 |
30d96a547989d63000aa9653c68ff5a9fa2c524c | 1,434 | package org.astraea.performance;
import com.beust.jcommander.ParameterException;
import java.util.stream.Stream;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.common.record.CompressionType;
import org.astraea.argument.ArgumentUtil;
import org.junit.jupiter.api.Assertions;
import org.... | 34.142857 | 83 | 0.706416 |
3ac32dbc7161ea95f37e5cddfa6a05c1f54fb4b4 | 3,701 | /*******************************************************************************
* Copyright 2006 - 2014 Vienna University of Technology,
* Department of Software Technology and Interactive Systems, IFS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | 30.841667 | 120 | 0.654418 |
6fbe3e5342cb9c4d75b9b6ebe3372549c66c6f2f | 2,521 | /*
* Copyright (c) 2017, Board of Trustees of Leland Stanford Jr. University,
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above cop... | 40.015873 | 116 | 0.750496 |
1289415419647b40ebef253a08131f5e98422513 | 4,150 | package com.osafe.util;
import java.util.List;
import java.util.Map;
import org.apache.ofbiz.base.util.StringUtil;
import org.apache.ofbiz.base.util.UtilMisc;
import org.apache.ofbiz.base.util.UtilValidate;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apa... | 33.739837 | 295 | 0.543855 |
9eca545be74e8b2f10fd8806df616c27c1743d6a | 4,307 | package org.dhis2.fhir.adapter;
/*
* Copyright (c) 2004-2019, University of Oslo
* All rights reserved.
*
* 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 copyr... | 47.32967 | 235 | 0.768516 |
11255c2842104a07157fbc0d200ef27c9bdb3a6a | 8,649 | package com.volvain.yash;
import android.content.Context;
import android.util.Log;
import com.volvain.yash.DAO.Database;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.BufferedInputStream;
im... | 33.265385 | 132 | 0.587814 |
dc75e09c19b8d0108805ac49dd6d6a42612a09d0 | 5,014 | package com.sequenceiq.redbeams.flow.redbeams.provision;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
... | 40.764228 | 126 | 0.779817 |
bf8c1abadd9a0bc242969cf6c9711db7fec1a701 | 3,621 | package uk.gov.ons.ctp.response.casesvc.scheduled;
import com.godaddy.logging.Logger;
import com.godaddy.logging.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Sche... | 40.685393 | 100 | 0.773819 |
019f919aba23ab48c5c2789db5d36e83f08755d0 | 423 | //------------------------------------------------------------------
// Copyright 2020 mobile.de GmbH.
// Author/Developer: Philipp Bartsch
//
// This code is licensed under MIT license (see LICENSE for details)
//------------------------------------------------------------------
package org.example.move.webhookreceive... | 28.2 | 68 | 0.503546 |
1d103beafda5c5430e7b723c20ed693b68001a46 | 1,867 |
package org.springframework.expression.spel.support;
import java.lang.reflect.Method;
/**
* A {@link org.springframework.expression.PropertyAccessor} variant for data binding
* purposes, using reflection to access properties for reading and possibly writing.
*
* A property can be referenced through a public get... | 31.644068 | 109 | 0.763792 |
0835b74306e5f1de813f9beabca0dc5aec48d1fb | 5,483 | package com.tobe.niuniu.core;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
/***
* The object of NiuGame represent one real game of dealer or one player.
*/
public class NiuGame {
public final static int ALL_CARD_NUMBER = 52;
public final static int ALL_CARD_COMBINATION = 2598960;... | 33.432927 | 137 | 0.622834 |
9e533f33782639293249677a0c0da5943057e435 | 3,685 | package com.kimbrelk.android.hamlogger.utils;
public final class Constants {
public final static String PREFS_NAME = "prefs";
public final static class Extras {
public final static String BOOK_ID = "com.kimbrelk.android.hamlogger.book_id";
public final static String BOOK_NAME = "com.kimbrelk.android.hamlogge... | 39.623656 | 84 | 0.76228 |
5b079867072271ed761060b993c996bd12b4bcc9 | 937 | package com.my.learning.swt.viewer;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
public class NodeLabelProvider extends LabelProvider implements ITableLabelProvider {
// @Override
// public String getText(Object element) ... | 24.025641 | 85 | 0.690502 |
3ac01c232d23e7f857a85d150ab919546b1b04d9 | 2,840 | /**
*/
package ocl.exp;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Iterator Exp</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link ocl.exp.IteratorExp#getKind <em>Kind</em... | 31.555556 | 118 | 0.647535 |
0c8cecf898f5d1b607a2fe99a9889fd120350779 | 2,480 | /*
* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
* Modification Copyright... | 38.75 | 82 | 0.623387 |
1446528b648ff38f09a6378932170a85f447d624 | 939 | package com.hospital.application.views;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* Hospital Application.
* <p>
* Contact information.
*
* @author Dmitriy Kalistratov <dmitry@kalistratov.ru>
* @version 1.0... | 27.617647 | 80 | 0.681576 |
00dadbf5aef4c9dac3656ddb983702209dfb9893 | 1,849 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.sitesettings.general.general;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIg... | 28.446154 | 219 | 0.756625 |
eec0a97ed8f9535599c129dbe6fe7a36245a0d2a | 2,009 | package de.htw_berlin.ai.itsec.testwriter;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class TestReader {
private FileReader testFile;
private BufferedReader bufferedReader;
... | 28.7 | 103 | 0.608263 |
c164aefcb08ed91db8908ae59da885d890a51733 | 899 | package org.openjdk.jmh.reconfigure.statistics;
import org.apache.commons.math3.distribution.EnumeratedDistribution;
import org.apache.commons.math3.util.Pair;
import org.openjdk.jmh.reconfigure.helper.HistogramItem;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class Sam... | 34.576923 | 173 | 0.731924 |
bf5f9d4f24177a7f77bbcf3efcc62483a4b132bd | 969 | /*
* Copyright (c) [2020] [yang1989]
* [yt4j] is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS ... | 27.685714 | 207 | 0.705882 |
58b2f3de6b3cffa32b31bcc8b02dd2b29a73261d | 2,598 | package cn.van.mall.web.mapper;
import cn.van.mall.system.atom.SystemRoleAtom;
import cn.van.mall.system.entity.SysRoleDO;
import cn.van.mall.system.model.SysRoleDTO;
import cn.van.mall.system.param.SysRoleParam;
import cn.van.mall.web.BaseTest;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import javax.an... | 30.564706 | 96 | 0.646266 |
9203dca30d035fe16554a7c3f34e91e81950e1e6 | 1,679 | /*
* Copyright (C) 2018, Brian He
*
* 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 ... | 34.265306 | 81 | 0.691483 |
d06ff2fb68593a3a43de6452474ff42cc2ba3dbc | 97 | package org.n0nb0at.hive.codec;
public interface GeekEncoder {
String encode(String raw);
}
| 16.166667 | 31 | 0.752577 |
9644a38e2c9f8a17c1f5c3c3db25c40d7d2a334d | 2,812 | /*
* Copyright 2014
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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/license... | 36.051282 | 100 | 0.720128 |
b2e1c25abcfc7f8a3d3b087d86191dfcb1b17f3a | 1,594 | /**
* Copyright © 2016-2022 liuhangjun All rights reserved.
*/
package com.channelsharing.hongqu.supplier.api.entity;
import java.math.BigDecimal;
import java.util.Date;
import com.channelsharing.common.entity.BaseEntity;
import lombok.Data;
/**
* 订单的商品信息Entity
* @author liuhangjun
* @version 2018-07-01
... | 26.131148 | 61 | 0.728984 |
54b34de8ee33024e0e99433aa2850c83525c025a | 3,320 | package com.chinamobile.bcbsp.examples.copra;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import com.chinamobile.bcbsp.api.AggregateValue;
import com.chinamob... | 22.585034 | 92 | 0.688855 |
0662cc3ca18cc856d91730dc8a5c7b42768952c3 | 1,861 | /*
* generated by Xtext
*/
package com.robotoworks.mechanoid.db;
import org.eclipse.xtext.generator.IOutputConfigurationProvider;
import org.eclipse.xtext.naming.IQualifiedNameProvider;
import org.eclipse.xtext.parsetree.reconstr.ICommentAssociater;
import org.eclipse.xtext.parsetree.reconstr.ITransientValueService;... | 35.788462 | 109 | 0.792585 |
6efbe7d6cca2769eedc366ea5641e243e0ec478e | 15,863 | /**
* Copyright 2015 IBM Corp. 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 applicable l... | 37.149883 | 108 | 0.718086 |
5f1208c40999e28b1f4cce5197ede62969de6539 | 695 | package ca.uhn.fhir.jpa.starter.custom;
import org.springframework.http.MediaType;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.R... | 28.958333 | 81 | 0.811511 |
77e39779f34b6c71057ad4b5df523edf375a62f7 | 1,191 | package common.webapp.controller;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.BDDMockito.*;
import javax.servlet.http.HttpServletRequest;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.Mock... | 33.083333 | 85 | 0.70529 |
697c0bfde06d3dacfe2132015b03875fc4ca2729 | 4,099 | package io.quarkus.webjars.locator.deployment;
import java.io.IOException;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.u... | 45.544444 | 128 | 0.585265 |
1c66ae0e256eb09b7b3d391f08eacb96f10c739d | 1,194 | package com.tct.jms.consumer;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import org.springframework.stereotype.Service;
import com.tct.codec.MessageCodec;
import com.tct.codec.MessageCodecSelector;
import com.tct.service.ServiceSelector;
... | 25.956522 | 81 | 0.740369 |
60bfae597b007ec3202c11700bf19723104df174 | 314 | package io.github.ludovicianul.prettylogger.config.level;
import io.github.ludovicianul.prettylogger.config.MarkerType;
import org.slf4j.event.Level;
public class Fav extends PrettyMarker {
private Fav() {
super(MarkerType.FAV, Level.INFO);
}
static Fav defaultConfig() {
return new Fav();
}
}
| 19.625 | 61 | 0.738854 |
2ea8f381a55eed99246735eb88af2e3129a478d0 | 463 | package miniprojekti.data_access;
import java.util.List;
import miniprojekti.domain.ReadingTip;
import miniprojekti.domain.Tip;
/**
*
* @author Tatu
*/
public interface Dao {
List<ReadingTip> findAll();
void save(String author, String title, String url);
int deleteTip(Tip tip);
int dele... | 16.535714 | 55 | 0.663067 |
9294282ba9312a289cfd6214fccafe92cd1de769 | 139 | package io.neow3j.compiler.sourcelookup;
public class TestSmartContract {
// The content of this file does not matter to the test.
} | 19.857143 | 60 | 0.755396 |
ac05c7221f83048beeb95ac1534494a2b114ade8 | 96 | package io.github.laskowski.os;
public enum OperatingSystem {
WINDOWS,
MAC,
UNIX
}
| 12 | 31 | 0.677083 |
2fa4450f0386459e45fe7fc7f3ab92aae678c1e4 | 2,551 | package com.bazl.dna.lims.service.impl;
import com.bazl.dna.lims.dao.FugitivesMiddleTableMapper;
import com.bazl.dna.lims.model.po.FugitivesMiddleTable;
import com.bazl.dna.lims.service.FugitivesMiddleTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.an... | 31.109756 | 105 | 0.659741 |
c7dabeecca525f427638b0b834d5a7776bf828d7 | 7,321 | /*
* Copyright 2016 LinkedIn Corp.
*
* 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... | 39.572973 | 114 | 0.740199 |
e50f17796781be63d6d70c9ab5ff39098c6fa975 | 12,084 | package uk.gov.hmcts.reform.civil.bpmn;
import org.camunda.bpm.engine.externaltask.ExternalTask;
import org.camunda.bpm.engine.variable.VariableMap;
import org.camunda.bpm.engine.variable.Variables;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.pr... | 43.941818 | 116 | 0.67097 |
55aac5a91448e24565af52bfdc6063255c652745 | 856 | package net.dblsaiko.bruhmoment.util.list;
import net.dblsaiko.bruhmoment.util.IdentifierFilter;
public record EntityEntry(IdentifierFilter entityId, IdentifierFilter itemId) {
public static EntityEntry fromArgs(String[] args) {
if (args.length < 1) {
return null;
}
Identifier... | 28.533333 | 101 | 0.642523 |
1921f7ca589b07e85e796993e0aeec85d7e77741 | 2,339 | package cn.brainco.limiting_direction_csx;
import androidx.appcompat.app.AppCompatActivity;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.util.Log;
import andro... | 33.898551 | 98 | 0.638307 |
b6c96e3636ac76104927edb4d4121dfef56b587f | 74,876 | package org.jesperancinha.java11.mastery4dot2;
import org.jesperancinha.console.consolerizer.console.Consolerizer;
import org.jesperancinha.java11.mastery4dot2.band.EffectiveBandManager;
import org.jesperancinha.java11.mastery4dot2.band.GeneralBandManager;
import org.jesperancinha.java11.mastery4dot2.band.QuintetBandM... | 63.400508 | 270 | 0.662295 |
b6eac9313459b10583ec1c7dbd36ec454982a184 | 683 | package net.okair.springcloud.sysadmin.organization.entity.form;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.okair.springcloud.commom.web.entity.form.BaseForm;
import net.okair.springcloud.sysadmin.organization.entity.po.Role;
import java.ut... | 22.766667 | 66 | 0.764275 |
08e88c2fcccbaca9adee151a5b96e80ed2013d2c | 19,472 | package org.hisp.dhis.reports.ouwiseprogress.action;
import static org.hisp.dhis.system.util.ConversionUtils.getIdentifiers;
import static org.hisp.dhis.system.util.TextUtils.getCommaDelimitedString;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
i... | 37.089524 | 223 | 0.566917 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.