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 |
|---|---|---|---|---|---|
aa0f06694750f748d816deba590bf13f82ddd310 | 2,254 | /*
* 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.21875 | 100 | 0.72937 |
83834c21d9c0acbf05921e676cb36d31c6ba78db | 1,316 | package org.broadinstitute.ddp.model.activity.instance.answer;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import com.google.gson.annotations.SerializedName;
import org.jdbi.v3.core.mapper.reflect.ColumnName;
import org.jdbi.v3.core.mapper.r... | 25.803922 | 70 | 0.680091 |
b439e55b7a59099b7f704248745addf10e880f7f | 452 | package com.pf.system.constants.enums;
import com.pf.base.BaseErrCode;
/**
* @ClassName : TableFieldTypeEnum
* @Description :
* @Author : wangjie
* @Date: 2021/10/19-17:38
*/
public enum TableFieldTypeEnum {
SELECTION( 0 ),
EXPAND( 1 ) ,
INDEX( 2 ) ,
NORMAL( 3 ),
;
private final int code... | 15.586207 | 38 | 0.595133 |
3be3eb4d785321d52964290b254c354e147cde9c | 3,044 | package net.minecraft.core;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.Random;
public class BlockMinecartTrack extends Block {
protected BlockMinecartTrack(int i, int j) {
... | 33.822222 | 152 | 0.57523 |
5ae2d7c891691e20fa109327206596c0a7c564c6 | 2,157 | package us.fjj.spring.learning.annotationdeclarativetransactionmanagement;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springfram... | 31.720588 | 146 | 0.668521 |
bf4a01e01e28933efd7be8d68be6703f8591d3b1 | 6,845 | /*
* Copyright (c) 2010-2017 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.web.page.admin.certification.dto;
import com.evolveum.midpoint.gui.api.util.ModelServiceLocator;
i... | 36.409574 | 147 | 0.740979 |
b7aa81475c56cf563611b612a41db68605590ba2 | 23,178 | package lattice;
/*
* Concept.java
*
*
* Copyright: 2013-2014 Karell Bertet, France
*
* License: http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html CeCILL-B license
*
* This file is part of java-lattices, free package. You can redistribute it and/or modify
* it under the terms of CeCILL-B license.
*... | 33.111429 | 147 | 0.550738 |
3a899b86d96ff4957acc04e8b7b2e9678d7d9bb9 | 1,596 | /**
* Copyright 2017 TerraMeta Software, 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 ... | 33.25 | 75 | 0.740602 |
03bb089781ac8845cf3f9aefbfb68e45b982c557 | 1,081 | package com.nick.jvm.entry;
import java.io.*;
/**
* Created by KangShuai on 2017/7/14.
*/
public class DirEntry extends BaseEntry {
public DirEntry(String classPath) {
super(classPath);
}
@Override
public byte[] readClass() {
try {
byte[] bytes = new byte[1024];
... | 27.717949 | 90 | 0.517114 |
ab1e0423fefe9c080b60ad11f709c309875b3b35 | 1,378 | /*
* Copyright (c) 2018 LingoChamp 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 ag... | 32.809524 | 100 | 0.717707 |
175f5d1fd18275e1631e413106cad531acea026c | 1,392 | package com.voisintech.tagmyclip.solr;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.spr... | 31.636364 | 112 | 0.793103 |
b188b81446dc0b1115ef568894d0fa41b4c4b5e1 | 2,807 | /**
* Copyright 2009 Wilfred Springer
*
* 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... | 30.51087 | 75 | 0.582829 |
1791b82edaa3231ce2e18f295d5ea75b141a07df | 1,325 | package csdn.shimiso.eim.db;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
/**
* SQLite数据库管理类
*
* 主要负责数据库资源的初始化,开启,关闭,以及获得DatabaseHelper帮助类操作
*
* @author shimiso
*
*/
public class DBManager {
private int version = 1;
private String databaseN... | 18.150685 | 77 | 0.701132 |
5ff378fe699db5324a75d4ea947b2565916dabc2 | 1,269 | /*
* Copyright (C) 2005-present, 58.com. 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... | 23.5 | 75 | 0.710008 |
f6e1a99684b116de56f431c68808b3a5271ed801 | 3,280 | package com.ivorita.servlet;
import com.google.gson.Gson;
import com.ivorita.bean.GranaryInfo;
import com.ivorita.bean.InfoTotal;
import com.ivorita.util.JDBCUtils;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpS... | 36.043956 | 173 | 0.623476 |
6177a6e03a72aa210ec8cc3f8cc9ec5a89c7eaad | 19,687 | /*
* MIT License
*
* Copyright (c) 2020 XenoAmess
*
* 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... | 32.702658 | 112 | 0.55849 |
5eb9fb41e8fc2d644a64af726de43824777bf7e9 | 3,566 | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 34.288462 | 85 | 0.732473 |
0a2d62d7ec9238aa16873a6073aa8aa5bd95dfac | 4,744 | package com.icebox.bombjammers.elements.character;
import java.io.File;
import com.icebox.bombjammers.loaders.BJAnimationLoader;
import com.icebox.bombjammers.loaders.BJPropertiesLoader;
import com.ragebox.bombframework.bwt.BTAnimatedImage;
import kuusisto.tinysound.Sound;
import kuusisto.tinysound.TinySound;
publi... | 28.926829 | 77 | 0.711847 |
ef58f3eab55645f13130b1717f677ab9f4d3d17b | 2,277 | package net.jackw.olep.common.store;
import net.jackw.olep.common.StoreKeyMissingException;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public interface SharedKeyValueStore<K, V> {
int DEFAULT_BACKOFF_ATTEMPTS = 20;
/**
* Tests whether the specified key has a corresponding value ... | 33.985075 | 119 | 0.640316 |
713c72b87d7e38fce1160447aa410467ac0f37ff | 870 | package com.veertu.plugin.anka;
import hudson.model.TaskListener;
/**
* Created by avia on 09/07/2016.
*/
public class AnkaTaskListenerLog implements AnkaLogger {
private final TaskListener taskListener;
private final String logPrefix;
public AnkaTaskListenerLog(TaskListener taskLister, String logPref... | 22.894737 | 75 | 0.693103 |
b4f1cfdcbbd2cf7114f257d01bd5876915b7c567 | 2,513 | /*
* This file was last modified at 2020.04.24 21:39 by Victor N. Skurikhin.
* This is free and unencumbered software released into the public domain.
* For more information, please refer to <http://unlicense.org>
* SortFields.java
* $Id: b4f1cfdcbbd2cf7114f257d01bd5876915b7c567 $
*/
package su.svn.showcase.util... | 32.217949 | 87 | 0.64226 |
e7f6f1bce3cca5f1c634802fb3c035f38524f82e | 332 | package com.rhialtothemarvellous.newangelesrivalrandomizer;
public enum Unused implements CorpOrUnused {
UNUSED(R.string.unused);
private final int stringID;
Unused(int stringID) {
this.stringID = stringID;
}
@Override
public int getStringID() {
return this.string... | 19.529412 | 59 | 0.656627 |
46ee77fd463fe8fdb77e1017d568e2c034ac71fc | 5,278 | package com.ascn.richlife.server.group;
import com.ascn.richlife.model.CardGroup;
import com.ascn.richlife.model.Game;
import com.ascn.richlife.model.Location;
import com.ascn.richlife.model.role.CurrentRole;
import com.ascn.richlife.model.role.RoleInfo;
import java.util.Map;
import java.util.Queue;
import java.util.... | 21.720165 | 107 | 0.598143 |
baed1d86d454c310f1396b2a769fd8b251cdda22 | 182 | package br.exemplo.heranca;
public class Cachorro extends Animal{
public Cachorro() {
//Sempre que for referencia a SUPER classe AMINAL, usa o SUPER
super(30,"Carne");
}
}
| 16.545455 | 64 | 0.714286 |
6fb472c91b68702142c7428c06ab99e870d98305 | 17,475 | /**
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.market.param;
import static com.opengamma.strata.collect.TestHelper.assertThrowsIllegalArg;
import static com.opengamma.strata.collect.TestHelper.coverB... | 54.780564 | 124 | 0.754335 |
9e610faab8cc88a92bbd561b19ab225ce4534a15 | 602 | package com.yosanai.spring.starter.samplefileparse.model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public abstract class BaseRecord {
public static final String RECORD_TYPE_HEADER = "01";
public static final String RECORD_TYPE_TRAILER = "05";
public static fina... | 23.153846 | 66 | 0.785714 |
9f90c90c8d4787de70d2cee8b02706b1d7d2b611 | 1,245 | package com.htc.htcwalletsdk.Utils;
import android.content.Context;
import android.util.Log;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.Volley;
import org.json.JSONArray;
import org.json.JSONExcepti... | 31.923077 | 91 | 0.725301 |
09f6d6442ae4bf74b253ca278cb802d8116190db | 1,670 | package edu.nikon.simpleapi.api.catalog;
import edu.nikon.simpleapi.api.catalog.dto.CountryItemDto;
import edu.nikon.simpleapi.api.catalog.dto.DocTypeItemDto;
import edu.nikon.simpleapi.api.catalog.service.CountryService;
import edu.nikon.simpleapi.api.catalog.service.DocumentTypeService;
import io.swagger.annotations... | 36.304348 | 89 | 0.764671 |
0171a39cae2eb4880c573d1cae6ca444f1fb1819 | 318 | package ca.bc.gov.open.scss;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ScssApplication {
public static void main(String[] args) {
SpringApplication.run(ScssApplication.class, args);
}
}
| 26.5 | 68 | 0.786164 |
1b4116fdba7a8d8721035c09e53670cb8700b071 | 635 | package hr.tvz.vatrogasci.views.about;
import java.util.Optional;
import com.vaadin.flow.component.Text;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.RouteAlias;
@PageTitle("About")
@Route(value = "about")
@Rout... | 23.518519 | 60 | 0.669291 |
f252e19a4c6292a4f5486e186333b350454597af | 4,180 | /*
* Copyright 2000-2006 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... | 36.99115 | 126 | 0.71866 |
ade5366c5f9a8c39470cf579b5611dacc549cce1 | 663 | package com.github.davidmoten.security;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
final class Bytes {
private Bytes() {
// prevent instantiation
}
static byte[] from(InputStream is) {
try {
ByteArrayOutputStream bytes = new ... | 23.678571 | 70 | 0.570136 |
8863fdb0252594ce029e6b785a7aad65cfdccdd3 | 1,559 | package net.dzikoysk.netkit;
import net.dzikoysk.netkit.listener.LoadListener;
import org.apache.commons.lang.StringEscapeUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.atomic.AtomicLong;
public class NetkitPage {
private static final AtomicLong idAssigner = new Atom... | 28.345455 | 113 | 0.675433 |
345ed3b8ebb5a1dc403bd8afd6b9aeef82df6778 | 9,864 | package com.jakub.ajamarks.services.showdataservices;
import com.jakub.ajamarks.entities.Classroom;
import com.jakub.ajamarks.entities.Student;
import com.jakub.ajamarks.repositories.ClassroomRepository;
import com.jakub.ajamarks.services.showdataservices.ClassroomServiceImpl;
import org.junit.Before;
import org.juni... | 34.25 | 134 | 0.710361 |
b888333dc953ac6b5024717df4bb865440127d70 | 5,182 | /*
* Copyright (C) 2016-present Albie Liang. 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... | 29.443182 | 132 | 0.66345 |
56b4eae78ac0cab5d865550d24e1fa051aca1742 | 9,993 | /***********************************************************************************************************************
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | 33.533557 | 120 | 0.734314 |
cb3c8bfc8efcf69c754191a7d2a048ec81f4b78a | 193 | package com.github.mmurak.scalemaker.functions;
public class KI extends Function {
public double calculateFunction(double value) {
return 1.0 - Math.log10(Math.pow(value, 1.0 / 3.0));
}
}
| 24.125 | 54 | 0.735751 |
1bd47eafe50372bedd809e1166547d4189201c1d | 572 | public class ChessboardPoint {
private int x;
private int y;
public ChessboardPoint(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public String toString() {
return String.format("(... | 19.724138 | 51 | 0.475524 |
6eee12e73e81a2dc6e80d2e213170b802b883187 | 583 | package org.testobject.rest.api.resource.v2;
import org.testobject.rest.api.model.TestSuiteReport;
import javax.ws.rs.*;
@Produces({"application/json"})
@Consumes({"application/json"})
@Path("v2/batchReports")
public interface TestSuiteReportResourceV2 {
@GET
@Produces({"application/json"})
@Consumes({"applicati... | 27.761905 | 131 | 0.765009 |
77ee68141ee02e21216b246d32efa79c3e2a2647 | 2,471 | package scanner;
import domain.ScanResult;
import util.CollectionUtil;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor... | 32.946667 | 91 | 0.696074 |
dca77f5fecbd44374d13f342a7b3672a86c59471 | 7,253 | /*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 33.423963 | 94 | 0.665656 |
a1d89ab55e10c5c483a229eea4469febd4e65cc9 | 4,706 | package org.adligo.tests4j_tests.system.shared.report.summary;
import org.adligo.tests4j.models.shared.results.PhaseStateMutant;
import org.adligo.tests4j.shared.asserts.reference.AllowedReferences;
import org.adligo.tests4j.shared.en.Tests4J_EnglishConstants;
import org.adligo.tests4j.shared.i18n.I_Tests4J_ReportMess... | 33.614286 | 91 | 0.760943 |
ba463d75e63df722bc55f8f2d3b8e03a2456bd2b | 1,606 | package com.fasterxml.jackson.databind.filter;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.BaseMapTest;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.faster... | 30.884615 | 93 | 0.627646 |
35b65a1026939baa0a28c6085caa11d15a4531ce | 534 | package io.dkgj.modules.sys.dao;
import io.dkgj.modules.sys.entity.LogloanEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
*
*
* @author Mark
* @email sunlightcs@gmail.com
* @date 2019-03-27 10:12:15
... | 22.25 | 71 | 0.750936 |
8676e9421a4aa925b7491684f93cee5ff5a54111 | 421 | package fun.play.dubbo;
import java.util.concurrent.TimeUnit;
import org.springframework.stereotype.Service;
@Service
public class OneServiceImpl implements OneService{
public String doSth(){
return "Hello,client";
}
@Override
public String timeOut() {
try {
TimeUnit.MINUTES.sleep(1);
} catch ... | 17.541667 | 50 | 0.703088 |
d64e298088a63a28b7e0fa3513cb81bab06fe38e | 1,021 | package com.mimecast.robin;
import java.util.ArrayList;
import java.util.List;
/**
* Main runnable.
*/
public final class MainMock extends Main {
/**
* Logs list.
*/
private List<String> logs;
/**
* Main runnable.
*
* @param argv List of String.
*/
public static List<... | 17.603448 | 66 | 0.520078 |
e363239ee6daa3a66928f3b0296216e9f5c76e63 | 7,387 | /*
* ******************************************************************************
* * Copyright (c) 2021 Deeplearning4j Contributors
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.or... | 32.399123 | 120 | 0.569514 |
b06a94ff68c51fe9f5a7174f55dfc62afaf8c1ef | 3,304 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
//... | 39.333333 | 117 | 0.703995 |
ebd7a26c2210b681cc1612437679ecd77129e2f4 | 12,164 | /*
* COPYRIGHT AND LICENSE
*
* Copyright 2014 The Regents of the University of California All Rights Reserved
*
* Permission to copy, modify and distribute any part of this CRBS Workflow
* Service for educational, research and non-profit purposes, without fee, and
* without a written agreement is hereby grant... | 34.458924 | 104 | 0.637701 |
42cc86c128f5ffb362f2fb356f9e0c15ea751c5f | 9,299 | /***
Copyright 2013-2015 Tushar Dudani
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 ... | 35.903475 | 137 | 0.64394 |
6704b12e3c27b035d18b3f3897605172bdc05835 | 809 | /*
* 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 uts.isd.model;
import java.util.Date;
/**
*
* @author willi
*/
public class UniversalAccessLog {
private Date loggedi... | 19.731707 | 79 | 0.648949 |
cbdfc69c246709470f47c025102f27d071b65862 | 1,830 | /*
* Copyright 2018-2021 Crown Copyright
*
* 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... | 41.590909 | 121 | 0.761749 |
01f571166614ac0bb32380fb9f749cf13fa360ef | 1,455 | package dk.osaa.psaw.job;
import lombok.Value;
/**
* The constraints to obey when traversing, aka moving without the laser on.
*/
@Value
public class TraverseSettings {
boolean accurate;
boolean speedUnlimited;
boolean exitSpeedMandatory;
double maxSpeed;
/**
* Move as quickly as possible,... | 32.333333 | 137 | 0.694158 |
66dfade782e60b6750fb16627b0bc63d44128b0f | 458 | /*CopyrightHere*/
package repast.simphony.freezedry.wizard;
import repast.simphony.freezedry.FreezeDryedDataSource;
import repast.simphony.util.wizard.WizardOption;
public interface FreezeDryWizardOption extends WizardOption {
DataSourceBuilder createDataSourceBuilder(FreezeDryedDataSource oldDataSource);
... | 35.230769 | 81 | 0.838428 |
1fdcf8adbb5f6b10ef34874fe6bed9668e50a879 | 3,269 | package seedu.address.logic.parser.commands.inventory;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_QUANTITY;
import java.util.ArrayList;
import java.util.List... | 42.454545 | 107 | 0.720404 |
651c4cd35f2de45219d30326cf6dc9507e3fa377 | 3,239 | package com.dianping.cat.consumer.matrix.model.entity;
import static com.dianping.cat.consumer.matrix.model.Constants.ATTR_NAME;
import static com.dianping.cat.consumer.matrix.model.Constants.ENTITY_MATRIX;
import java.util.LinkedHashMap;
import java.util.Map;
import com.dianping.cat.consumer.matrix.model.BaseEntity... | 19.279762 | 86 | 0.600494 |
75056ace5606ad7527bd61e99f1dcb4b32845591 | 355 | /**
* generated by Xtext 2.16.0
*/
package in.handyman.validation;
import in.handyman.validation.AbstractDslValidator;
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
@SuppressWarnings("all")
public class DslValidato... | 22.1875 | 87 | 0.769014 |
3b4fab564ebb07e45526b047585ac4818ee04ad8 | 10,247 | /*
* $Id$
*
* $Log$
* Revision 1.1 2008/04/04 18:21:04 cvs
* Added legacy code to repository
*
* Revision 1.6 2008/02/10 20:17:33 mmaloney
* dev
*
* Revision 1.2 2008/02/01 15:20:40 cvs
* modified files for internationalization
*
* Revision 1.5 2006/05/11 18:26:42 mmaloney
* dev
*
* Revision 1.4 2004/12/21... | 29.193732 | 102 | 0.6842 |
ee2eaeb50e4f230326daf61a65813f86b6f7f529 | 118 | package mineCord.world;
public abstract class ChunkGenerator
{
protected abstract void generate(Chunk chunk);
} | 19.666667 | 48 | 0.779661 |
a7856b7755ca8b317573ea74ef03357bb619adc4 | 824 | package test.pivotal.pal.trackerapi;
import io.pivotal.pal.tracker.PalTrackerApplication;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
imp... | 34.333333 | 94 | 0.793689 |
94690d59b8c23be4fad11755cdad09c42a27e847 | 5,828 | package ui;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import com.mxgraph.swing.mxGraphComponent;
import javax.swing.JButton;
import javax.swing.JFileC... | 27.752381 | 73 | 0.756692 |
37d0d22ae2e210c1b98e061de702679a323f2bd4 | 1,122 | package org.aicoder.bizdelegate;
import java.util.List;
import org.archcorner.chartreuse.dal.dao.LedgerDAO;
import org.archcorner.chartreuse.pojo.Ledger;
public class LedgerBusinessDelegate{
private LedgerDAO ledgerDAO ;
public int getHighestId()
{
ledgerDAO = new LedgerDAO();
int id=ledgerDAO.getHighestId()... | 19.016949 | 51 | 0.73262 |
3270960983ce6b1bd1d43e93b4d3537a875cac39 | 9,840 | // Copyright (c) 2014-2019 K Team. All Rights Reserved.
package org.kframework.krun;
import com.beust.jcommander.DynamicParameter;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParameterException;
import com.beust.jcommander.ParametersDelegate;
import com.google.inject.Inject;
import org.apache.co... | 42.969432 | 372 | 0.63811 |
6f0999999b10440365b8dce7f8dc46d61e505b3b | 713 | package org.artur.masterdetail.data;
import java.util.List;
import java.util.Optional;
public abstract class CrudEndpointWithService<T, ID> implements CrudEndpoint<T, ID> {
protected abstract CrudService<T, ID> getService();
@Override
public List<T> list(int offset, int limit) {
return getServic... | 20.371429 | 85 | 0.629734 |
9419a09b4b52cb1afaec7d00f7c2f08966fbf1a6 | 1,832 | /*
* Copyright 2017 Prasenjit Purohit
*
* 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... | 32.140351 | 82 | 0.706332 |
ac3f26716f5b74eb15656e9337315cbb2998f6ff | 926 | /*
*
* * Copyright 2020 PPI AG (Hamburg, Germany)
* * This program is made available under the terms of the MIT License.
*
*/
package de.ppi.deepsampler.examples.helloworld;
import javax.inject.Inject;
/**
* An example for a Service that would give access to person related data.
* This Service is used to c... | 28.060606 | 118 | 0.709503 |
1157acf095b994dfae3563ca7f88315783efc4e7 | 1,025 | package thingverse.common.config;
import com.thingverse.common.env.health.EnvironmentHealthListener;
import com.thingverse.common.env.health.EnvironmentHealthListenerImpl;
import com.thingverse.common.log.DeferredLogActivator;
import com.thingverse.common.log.DeferredLogActivatorImpl;
import org.springframework.boot.c... | 39.423077 | 122 | 0.843902 |
c0eade7c09e03473488fb7eb41ed94c79ac3b32d | 1,668 | package hsoft;
import com.hsoft.codingtest.DataProvider;
import com.hsoft.codingtest.DataProviderFactory;
import com.hsoft.codingtest.PricingDataListener;
import com.hsoft.codingtest.impl.TestDataProvider;
import hsoft.services.DataListenerService;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.... | 32.705882 | 109 | 0.747002 |
8954b02d033fcba76630758ac350bb01bbef114f | 395 | public class S0504Base7 {
public String convertToBase7(int num) {
if (num < 0) {
return "-" + convertToBase7(-num);
}
StringBuilder res = new StringBuilder();
while (num >= 7) {
res.insert(0, String.valueOf(num%7));
num = num/7;
}
... | 24.6875 | 49 | 0.506329 |
4946cb865311602617b755699a29d721bacea6ad | 1,247 | package sample;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.text.Text;
import javafx.stage.Modality;
import javafx.stage.Stage;
public class ErrorsController {
... | 31.974359 | 100 | 0.659182 |
234051894427ea1a0b4e8ce2c4ce8584118ad30b | 3,522 | /*
* 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 ... | 30.626087 | 94 | 0.74276 |
fe757a62b881eb3d42fa79c712118206277ffa2e | 1,519 | package b.l.a.c.f.e;
import android.os.Parcel;
import android.os.Parcelable;
import b.l.a.c.b.a;
import java.util.ArrayList;
public final class zj implements Parcelable.Creator<yj> {
public final Object createFromParcel(Parcel parcel) {
int C0 = a.C0(parcel);
boolean z = false;
boolean z2 ... | 29.784314 | 73 | 0.445688 |
93e295f74dfa02173631ade68be09c82370da277 | 12,928 | package com.telekom.m2m.cot.restsdk.measurement;
import com.telekom.m2m.cot.restsdk.CloudOfThingsPlatform;
import com.telekom.m2m.cot.restsdk.inventory.ManagedObject;
import com.telekom.m2m.cot.restsdk.util.ExtensibleObject;
import com.telekom.m2m.cot.restsdk.util.Filter;
import com.telekom.m2m.cot.restsdk.util.Sample... | 40.654088 | 144 | 0.68487 |
4f5c71265abd362fe73be355fd5bd33c9d0bc181 | 1,772 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package myfileutil;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.i... | 23.626667 | 126 | 0.645598 |
3e71fb17b3af02ea3a315f0e64fe0db73637e6a1 | 3,351 | /**
* The MIT License (MIT)
*
* Copyright (c) 2016 Thiago Souza <thiago@scrap.sh>
*
* 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 th... | 36.423913 | 92 | 0.632945 |
bab12217195fbc4639f4d12810eaa3a1c2aeb9fc | 287 | package godofjava.inheritance;
public class Dog extends Animal {
String dogVariable;
public void move() {
System.out.println("Method Dog move overriding");
}
public void eatFood() {
System.out.println("Method Dog eatFood overriding");
}
}
| 23.916667 | 61 | 0.637631 |
556d155cdbdc7528a17bdd4b6837e00f543d8b74 | 22,515 | /*
* Copyright (C) 2017 Google 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 ... | 41.849442 | 100 | 0.708594 |
eb1e4d8d9789777043c68a1222203a4b6539b4e1 | 3,060 | package com.maoface.ueditor.config;
import com.maoface.ueditor.consts.Constants;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* @author zhuxuchao
* @date 2020-04-15 16:01
*/
@ConfigurationProperties(prefix ... | 24.48 | 112 | 0.664706 |
00dd653719fb3776c3d9110748fc6575250c3a19 | 156 | /**
* Package for task: 3.1. Максимум из двух чисел.
*
* @author Goureev Ilya (mailto:ill-jah@yandex.ru)
* @version 1
* @since 0.1
*/
package ru.job4j.max;
| 17.333333 | 49 | 0.666667 |
9af7b9d8e751cd199f73b04670cb83cc3f149edb | 2,650 | package org.qiunet.flash.handler.bootstrap;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.qiunet.flash.handler.bootstrap.hook.MyHook;
import org.qiunet.flash.handler.common.message.MessageContent;
import org.qiunet.flash.handler.context.header.P... | 33.125 | 89 | 0.789811 |
9dd413d1f846a12a51096afa5c3283296a613ab6 | 7,019 | package pokecube.legends.conditions;
import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.text.ITextC... | 40.80814 | 116 | 0.679442 |
4d791906fe8e2a3ea6912cf827c829c6a2987482 | 11,058 | package org.openpaas.paasta.portal.api.service;
import org.cloudfoundry.uaa.clients.*;
import org.cloudfoundry.uaa.tokens.GrantType;
import org.openpaas.paasta.portal.api.common.Common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.ArrayList;... | 46.075 | 727 | 0.552089 |
9dea33a311db623d1cb06a39d044bb6fb4255883 | 1,148 | package com.cjh.eshop.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;
import com.cjh.eshop.dao.IProvinceDao;
import com.cjh.eshop.dao.common.BaseDao;
import com.cjh.eshop.model.Province;
@Repository
p... | 22.509804 | 85 | 0.684669 |
8f8540c0f97a13c039eb65ab6f089bacd2e7831c | 3,246 | /*L
* Copyright SAIC, Ellumen and RSNA (CTP)
*
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
*/
package gov.nih.nci.nbia.dao;
import gov.nih.nci.nbia.dto.CustomSeriesDTO;
import gov.nih.nci.nbia.dto.CustomS... | 30.622642 | 127 | 0.741836 |
8c5bff91f60eb9277726b12640143e6de6cfffaf | 2,081 | /*
* 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 ... | 38.537037 | 106 | 0.67852 |
d141c731d7cec9edb1a3b12ac685f62958685b4d | 10,943 | package co.edu.uniandes.csw.fiestas.test.logic;
import co.edu.uniandes.csw.fiestas.ejb.ContratoLogic;
import co.edu.uniandes.csw.fiestas.entities.ContratoEntity;
import co.edu.uniandes.csw.fiestas.entities.EventoEntity;
import co.edu.uniandes.csw.fiestas.entities.HorarioEntity;
import co.edu.uniandes.csw.fiestas... | 31.445402 | 106 | 0.598556 |
b1bef381dbd0d996a89a7a57abf2aa688740497a | 18,332 | package com.zy.coolbicycle.ui.activity.user;
import android.Manifest;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactor... | 39.08742 | 144 | 0.570532 |
4bacd538c4c57e4bfa3b3aefcac9380d0bb4fa4e | 401 | package me.lisirrx.fastR.serialization;
import java.io.Serializable;
/**
* @author lihan lisirrx@gmail.com
* @date 2019/5/19
*/
class TestData implements Serializable {
String inner;
public TestData(String inner) {
this.inner = inner;
}
public String getInner() {
return inner;
... | 16.708333 | 40 | 0.633416 |
2211ec71763bd241d2d413afe4b7fe3ff70b7e49 | 4,230 | package com.orasi.utils.dataHelpers.personFactory.seeds;
import java.util.Random;
public class LastNames {
private static String[] names = {
"adams",
"alexander",
"allen",
"alvarez",
"anderson",
"andrews",
"armstrong",
"arnold",
"austin",
"bailey",
"baker",
"banks",
"barnes",
... | 13.343849 | 56 | 0.479433 |
a542203d1b04d1943bbada1fb0379ac3c1fa6c6c | 2,044 | /******************************************************************************
* Project Doppelgänger *
* *
* Copyright (c) 2020. Elex. All Rights Reserved. *
... | 32.967742 | 108 | 0.608121 |
e5813d369979c8ff7dc138b2f0e4ed4aa23440a9 | 7,306 | package com.study.riseof.contactBookAndWeather.contactBook.model;
public class Contact {
private final String EMPTY_STRING = "";
private int id;
private final String firstName;
private final String firstNameInitialLetter;
private final String secondName;
private final String secondNameInitialL... | 31.356223 | 82 | 0.615385 |
f3b2dfdd0a9c39b672fc1ed3fc570a6eef0dd5e5 | 668 | package com.shura.im.client.handle;
import com.shura.im.client.listener.CustomMsgHandleListener;
/**
* @Author: Garvey
* @Created: 2021/10/24
* @Description: 消息回调 Bean
*/
public class MsgHandleCaller {
/**
* 回调接口
*/
private CustomMsgHandleListener msgHandleListener ;
public MsgHandleCaller... | 23.034483 | 81 | 0.724551 |
21f1ef5d4984c76fc316cb72644d2eeb07fe3252 | 793 | package de.danoeh.antennapod.core.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class CollectionTestUtil {
public static <T> List<? extends T> concat(T item, List<? extends T> list) {
List<T> res = new ArrayList<>(list);
res.add(0, item);
return ... | 25.580645 | 98 | 0.592686 |
8c1cdddebc4c1594778016f74c68b6ccb86a2006 | 16,049 | /*
* Copyright 2017 ~ 2050 the original author or authors <Wanglsir@gmail.com, 983708408@qq.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/... | 29.556169 | 118 | 0.671818 |
053540f969431bb1a9e2d7373e5b9f9954b949ab | 303 | package tk.snapz.web;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SnapzApplication {
public static void main(String[] args) {
SpringApplication.run(SnapzApplication.class, args);
}
}
| 21.642857 | 68 | 0.815182 |
27ab697e461eb74dad2193f17da615de3a023c97 | 353 | package de.gw.auto.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import de.gw.auto.domain.Auto;
import de.gw.auto.domain.Benutzer;
public interface AutoRepository extends JpaRepository<Auto, Integer> {
public Auto findByKfz(String kfz);
public List<Auto> findByUs... | 25.214286 | 70 | 0.8017 |
b55973d9cff8067e1f136a354636d48bd61c0903 | 11,210 | package org.seckill.service.impl;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.redisson.Redisson;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.seckill.api.constant.SeckillStatusConstant;
import org.seckill.ap... | 36.754098 | 162 | 0.654951 |
4b9bacbafa88eb17d4a982c583393049ac49868f | 1,629 | package com.supenta.flitchio.demo.powerup.util;
/**
* Smoothing engine based on a circular buffer.
* It computes the average over the last half second in an efficient manner.
*
* @author Radu Hambasan <radu.hambasan@tobyrich.com>
* @date 07 Jul 2014
*/
public class SmoothingEngine {
private static final int ... | 29.618182 | 94 | 0.62124 |
1b1aa5c63e9cd9d0770132145a4ee18d31fc3243 | 589 | package android.hardware;
import com.koushikdutta.monojavabridge.MonoBridge;
import com.koushikdutta.monojavabridge.MonoProxy;
public class Camera_OnZoomChangeListenerDelegateWrapper extends com.koushikdutta.monojavabridge.MonoProxyBase implements MonoProxy, android.hardware.Camera.OnZoomChangeListener
{
static
{
... | 31 | 176 | 0.837012 |
88ef5442e01f3c9ec39a168a9c8892043634e8eb | 495 | package tr.com.obss.jss.jss_final_project.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import javax.persistence.*;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
publ... | 21.521739 | 59 | 0.753535 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.