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 |
|---|---|---|---|---|---|
6df02c1edcc744b24a96f1afc2ad671b2cc528d7 | 7,278 | /*
* Copyright 2016
*
* 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... | 34.009346 | 82 | 0.51058 |
6685bf1757458d908e32d4069f7a8a22a28c28d7 | 4,376 | package net.minecraft.server.commands;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.builder.RequiredArgumentBuilder;
i... | 56.102564 | 296 | 0.693327 |
f6e4a48c131328736f34cb9e43606e3dd2420cc7 | 506 | package com.example.reactiveweb.model;
import lombok.*;
import org.springframework.data.annotation.Id;
@Data
@NoArgsConstructor
public class Employee {
@Id
private Long id;
private String name;
private String email;
private String phone;
private int department;
public Employee(St... | 17.448276 | 78 | 0.664032 |
73bea4b706f4f7ab4c009ae1c057921eeb02bec0 | 1,911 | package ren.crux.rainbow.core.parser;
import com.sun.javadoc.FieldDoc;
import org.apache.commons.lang3.tuple.Pair;
import ren.crux.rainbow.core.interceptor.CombinationInterceptor;
import ren.crux.rainbow.core.model.EntryField;
import ren.crux.rainbow.core.module.Context;
import ren.crux.rainbow.core.utils.EntryUtils;
... | 37.470588 | 183 | 0.729461 |
29cb1b57edd3858302a8e86a626559e10df20098 | 19,750 | /*
* @author Hallaz ~ hallaz.ibnu@gmail.com
*
* Please do not modify without any agreement between end user and the author.
*
* Copyright (C) 2009 - 2013 AChartEngine - The 4ViewSoft Company
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... | 35.01773 | 81 | 0.724051 |
d24a8f2f8687671c3495658a2dd75674650ca2d1 | 490 | package com.cooltee.test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
/**
* Base abstract class of text, use to upload spring context;
* Note: No Transactional Test should extends this.
* Created by Daniel on 2017/2/... | 35 | 89 | 0.806122 |
719b593e1920bed3aade1ff3bbcdd0003219ed79 | 5,706 | /*
* 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.295302 | 128 | 0.74115 |
c907ebe9ef6cc54f3ede1c1cd7fd1cb1e4283a0e | 21,112 | /*
* 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 ... | 37.169014 | 167 | 0.674545 |
8e21543e9e516205857bf3fff0b0266a729eca6e | 1,531 | /*
* Copyright 2006-2021 The JGUIraffe Team.
*
* 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... | 34.795455 | 80 | 0.72371 |
e943fc353128579e0b34821f3e3aa7cb90511523 | 1,810 | package org.innovateuk.ifs.competition.domain;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.innovateuk.ifs.category.domain.CategoryLink;
import org.innovateuk.ifs.category.domain.InnovationArea;
import javax.persistence.DiscriminatorValue;
... | 29.672131 | 94 | 0.688398 |
480b359c8e65d3c82738961670b9f0813c3f007b | 15,182 | /*
* 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 ... | 44.91716 | 120 | 0.758925 |
0ad1df14f2d57f3879f2301eb379f50f152cc90c | 1,882 | package com.actech.protozoan_parasite;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class OptionsPage extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceS... | 22.404762 | 85 | 0.623804 |
7541547ea99d16d116a112a63e9e90c9601dd7aa | 603 | package org.sam.server.http;
import org.junit.jupiter.api.Test;
import java.io.*;
import static org.junit.jupiter.api.Assertions.*;
class MultipartFileTest {
@Test
void writeFile() throws IOException {
InputStream fis = new FileInputStream("/Users/melchor/Downloads/download.jpeg");
int i;
... | 23.192308 | 88 | 0.605307 |
aea358fe083d10b3552f3f1a1333c2a74bdbeb28 | 880 | package com.walker.concurrency.inpractice.chapter1;
/**
* @author walkerwei
* @version 2016/11/14
*/
public class SequencyDemo {
public static void main(String[] args) throws InterruptedException {
// final UnsafeSequence sequency = new UnsafeSequence();
final SafeSequency sequency = new SafeSequ... | 24.444444 | 72 | 0.498864 |
06450ee692f472cac0d437ed77d23547652322e9 | 522 | package com.onewind.android.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by bin on 2017/11/5.
*/
public class Now {
public String tmp;
public String fl;
@SerializedName("cond_code")
public String condCode;
@SerializedName("cond_txt")
public String condTxt;
... | 15.352941 | 50 | 0.681992 |
56c3ea3a7a1c458f7598218990d849e69561652a | 1,867 | package net.freeapis.reactor.telnet;
import net.freeapis.reactor.IOHandler;
import java.io.File;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
/**
* Created by wuqiang on 2017/8/20.
*/
public class TelnetHandler extends IOHandler{
private sta... | 35.226415 | 91 | 0.621318 |
5a69b5fc82c9cecdc0cd2681c274a2035c79ba33 | 11,679 | package com.mindorks.test;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.StringRequest;
import com.facebook.AccessToken;
imp... | 36.611285 | 125 | 0.579245 |
8c00b973ba00c3581da32819bebac979d4360e1b | 3,545 | /*
* Artificial Intelligence for Humans
* Volume 3: Deep Learning and Neural Networks
* Java Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
*
* Copyright 2014-2015 by Jeff Heaton
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | 29.541667 | 110 | 0.674471 |
13286d451bf42d60dc879325789586b18ea252e9 | 32,063 | package trainableSegmentation;
/**
* This class is intended for the Trainable Segmentation library. It creates and holds
* different feature images for the classification. Possible 3D filters include:
* - Gaussian blur
* - Hessian
* - High order derivative
* - Laplacian
* - Structure tensor
* - Edge detect... | 30.162747 | 154 | 0.661417 |
575554f7b7c721534560ffb5b3a7c08ab2af303c | 1,280 | package com.redescooter.ses.api.common.exception;
public class BaseException extends RuntimeException {
public static final String DEFAULE_ERRORCODE = "1";
public static final String DEFAULT_ERRORMSG = "unknown error";
private String errorCode = DEFAULE_ERRORCODE;
private String errorMessage;
... | 23.703704 | 78 | 0.685938 |
42e34b1a69a803a671be6b332b2e5b6735f63a9e | 352 | package com.stevecorp.teaching.spring.beans_tutorial.scenario_07.model;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
@Getter
@Builder
@ToString
public class ConnectionProperties {
private final String driverClassName;
private final String url;
private final String username;
pr... | 19.555556 | 71 | 0.789773 |
e8940ee674480e95ebddb20a0a4267132ad521e9 | 895 | package oidc.control;
import oidc.saml.DefaultServiceProviderTranslationService;
import oidc.saml.ServiceProviderTranslationService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;... | 34.423077 | 112 | 0.818994 |
4ade3f0dc676df32fdd53d2d6fcdac79d5bbd0df | 1,795 | //
// Este archivo ha sido generado por la arquitectura JavaTM para la implantacin de la referencia de enlace (JAXB) XML v2.2.8-b130911.1802
// Visite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas las modificaciones realizadas en este archivo se perdern si se vuelve a compilar el es... | 25.28169 | 138 | 0.646797 |
8c77d38a8b8abf057ec570625480b3ae2ba31954 | 2,687 | package com.example.madinandroid;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import androidx.annotation.NonNull;
import an... | 32.768293 | 132 | 0.695571 |
3d9a5a77b28f255ae0cce1b4ec0d3d41b8b756c1 | 8,193 | /*
* Copyright © 2020 Richard de Jong
*
* 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 applic... | 22.821727 | 81 | 0.655071 |
79e4fa224ab03c434394e9da473c35d07aaa3ca4 | 1,264 | package com.github.trho.reproducer;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.spi.cluster.ClusterManager;
import io.vertx.ext.cluster.infinispan.InfinispanClusterManager;
import org.infinispan.manager.DefaultCacheManager;
/**
* User: Tobias Rho
* Date: 10.12.20
* Time: 10:... | 26.893617 | 102 | 0.65981 |
3b9a8da3fa4667123b93f42da2fba4ed1d32a7b4 | 2,935 | /*
* Copyright 2021 Vaibhav Nargwani
*
* 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 agree... | 39.133333 | 124 | 0.608518 |
dbb3ac86132d49d6e88969b0dcbf6357125c0451 | 4,508 | /*
* Copyright {2017} {Shudipto Trafder}
*
* 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... | 34.151515 | 113 | 0.675466 |
00f043789f8752952b9c9cc87c234cc3af370bf8 | 1,880 | /*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.util.locale.provider;
import java.util.Locale;
import java.util.Set;
import sun.text.spi.JavaTime... | 24.415584 | 115 | 0.703723 |
9f2e16d85295226b4d5bcdf74c4be24905d03c55 | 897 | package imc.utilities;
public class TypeUtils {
/**
* returns the base type of the given type
*
* <ul>
* <li>simple types are returned without length or precission
* <li>in case of structs or dation the value is STRUCT or DATION
* </ul>
*
* @param openPearlType the type as specified in the xml inp... | 24.916667 | 89 | 0.701226 |
d999a2e85d3d8fe90d9f98755c1bca29286edb40 | 8,627 | package org.sahagin.share.srctree;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.sahagin.runlib.external.CaptureStyle;
import org.sahagin.share.srctree.code.CodeLine;
import org.sahagin.share.yaml.YamlUtils;
im... | 35.212245 | 108 | 0.632433 |
368372e0a0809816ae745b82f46fac8fc111be1c | 3,242 | package io.immutables.micro.wiring;
import io.immutables.micro.*;
import io.immutables.micro.wiring.docker.DockerRunner;
import io.immutables.regres.SqlAccessor;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.google.common.util.concurrent.ServiceManager;
import com.google.inject.Binder;
import c... | 35.23913 | 99 | 0.659778 |
f69c221adab6fff288aefe6fdbafbd2cae030394 | 31,377 | /*
* Copyright (C) 2010 Heinrich Schuchardt
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pro... | 29.997132 | 96 | 0.543742 |
97f3bbf152ffec59fdf20119edc13972565df296 | 1,460 | package com.youzu.clan.main.wechatstyle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.ArrayList;
/**
* Created by wuyexiong on 4/25/15.
*/
public class WeChatStyleFragmentAdapter extends FragmentPagerAdap... | 26.545455 | 91 | 0.644521 |
2410c6e4a5fb7d89e423fc6f4fb284055cbe3154 | 3,296 | package com.publiccms.logic.dao.cms;
import java.util.Date;
import org.springframework.stereotype.Repository;
import com.publiccms.common.base.BaseDao;
import com.publiccms.common.constants.CommonConstants;
import com.publiccms.common.handler.PageHandler;
import com.publiccms.common.handler.QueryHandler;
import com.... | 33.632653 | 122 | 0.625 |
b2df1ca39a66172cd89f3e0a8eeeb82da960c99b | 924 | package net.meisen.dissertation.server.session;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Date;
import net.meisen.dissertation.server.sessions.Session;
import net.meisen.dissertation.server.sessions.Session.IDateProvider;
import org.junit.Test;
/**
* T... | 19.25 | 69 | 0.669913 |
3a3b9dd6701109fbf512ca638c97d992f1e2bb9e | 2,537 | /**
* generated by Xtext 2.17.1
*/
package ck2xtext.generic.ck2;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Bool Clause Property</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <... | 29.847059 | 111 | 0.632637 |
3106818dfb51eb1e179b7d9d54a3847b862f060f | 78 | package com.ze.devhelper.dto;
public enum TYPE {
COMMAND,SCRIPT,PYTHON
}
| 13 | 29 | 0.730769 |
60d00a36b986c8c8caa42bf70abfcbe5ae3f3097 | 6,255 | package org.vitrivr.cineast.standalone.config;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import gnu.trove.map.hash.TObjectDoubleHashMap;
import org.vitrivr.cineast.core.features.*;
import org.vitrivr.cineast.core.features.exporter.QueryImageExporter;
imp... | 35.742857 | 109 | 0.7255 |
a28da78702f3685d45d84d7ea62375f6be04c21c | 2,299 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// 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: 2013.06.28 at 12:... | 25.544444 | 110 | 0.61418 |
33dfc9a71afd36af30b8c4a1bf1e04da9366fa2f | 153 | package tcpassresetplugin;
public class InvalidTokenException extends RuntimeException {
public InvalidTokenException() {
super();
}
}
| 17 | 61 | 0.72549 |
d6e53dd3d45dcc6ac104dbc6e5b11d4a2c832b14 | 5,863 | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.office;
import com.wilutions.com.*;
/**
* _CommandBarComboBox.
*
*/
@CoInterface(guid="{000C030C-0000-0000-C000-000000000046}")
public interface _CommandBarComboBox extends IDispatch {
static boolean __typelib__loaded = __TypeLib.l... | 76.142857 | 117 | 0.796691 |
568976a8dfdbdcdee930fa051a302c0b11bbcf46 | 468 | package com.terraformersmc.cinderscapes.util;
public class MathHelper {
public static float map(float val, float instart, float inend, float outstart, float outend) {
return ((val - instart) / (inend - instart)) * (outend - outstart) + outstart;
}
public static float max(float ...vals) {
f... | 29.25 | 98 | 0.58547 |
d2835e373dd8924c5af30b515c7e04ec8154a971 | 2,092 | //一只青蛙想要过河。 假定河流被等分为若干个单元格,并且在每一个单元格内都有可能放有一块石子(也有可能没有)。 青蛙可以跳上石子,但是不可以跳入水中。
//
// 给你石子的位置列表 stones(用单元格序号 升序 表示), 请判定青蛙能否成功过河(即能否在最后一步跳至最后一块石子上)。
//
// 开始时, 青蛙默认已站在第一块石子上,并可以假定它第一步只能跳跃一个单位(即只能从单元格 1 跳至单元格 2 )。
//
// 如果青蛙上一步跳跃了 k 个单位,那么它接下来的跳跃距离只能选择为 k - 1、k 或 k + 1 个单位。 另请注意,青蛙只能向前方(终点的方向)跳跃。
//
//
//
//
// 示例 1:... | 24.611765 | 80 | 0.478489 |
4c9ac64ed9333c41eeb1801442f626fb3fe0e8d1 | 1,233 | package com.leggett.upload;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.PostMapping;
impor... | 31.615385 | 87 | 0.81914 |
610858d6b6edf4f5892144bc0682f990fcf87b77 | 2,114 | package com.ijinshan.sjk.dao.impl;
import java.io.Serializable;
import javax.annotation.Resource;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ijinshan.sjk.dao.BaseDao;
public abstract class Abstra... | 22.252632 | 112 | 0.644749 |
7eeb27e7b006e8f9ff7e66df7bdf7ee87b679b81 | 232 | package com.yuepong.workflow.param;
import lombok.Data;
/**
* ModelAttr
* <p>
* <br/>
*
* @author apr
* @date 2021/10/25 14:54:48
**/
@Data
public class ModelAttr{
public String bpmn_xml;
public String svg_xml;
}
| 11.6 | 35 | 0.637931 |
3309a7089279ec598b2d1e0561c12049cfd0e115 | 358 | package com.sudoplay.sudoxt.classloader.asm.transform;
import org.objectweb.asm.MethodVisitor;
/**
* Created by codetaylor on 2/26/2017.
*/
public interface IMethodVisitorFactory {
MethodVisitor create(
MethodVisitor methodVisitor,
int access,
String name,
String desc,
String signat... | 18.842105 | 54 | 0.698324 |
1c373c1506abd3a18202c704487e89c9f4358d15 | 3,444 | package lesson5.labs.prob3.control;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import javax.swing.JFrame;
import lesson5.labs.prob3.data.Data;
import lesson5.labs.prob3.data.Logins;
import lesson5.labs.prob3.ui.*;
public enum Control {
INSTANCE;
Start start;
... | 28 | 60 | 0.714576 |
a6feb7aea79aa764d65abb76c3207f27b624afac | 3,591 | package edu.tufts.contours.contoursGame;
import java.util.ArrayList;
public class ScoreSet {
/** Not-null value. */
private String user_id;
private String difficulty;
private int interval_size;
private int total_score;
private Long elapsed_time;
private Integer notes_hit;
private Inte... | 25.468085 | 103 | 0.659983 |
af382b6e9d92d6366b7c799e2427a31e5b11c8c7 | 23,302 | package io.joyrpc.config;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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... | 30.14489 | 209 | 0.603768 |
28f42cf3eb9cb135a18c814d5aae6d14f6110aca | 7,624 | package com.manywords.softworks.tafl.test.mechanics;
import com.manywords.softworks.tafl.Log;
import com.manywords.softworks.tafl.engine.Game;
import com.manywords.softworks.tafl.engine.MoveRecord;
import com.manywords.softworks.tafl.engine.clock.TimeSpec;
import com.manywords.softworks.tafl.rules.Coord;
import com.ma... | 33.292576 | 148 | 0.595357 |
cf1a29d7279946c6f9e8605311d277b4e3c72542 | 402 | package com.sunny.shop.service.user.api;
import com.sunny.base.ReturnResult;
import org.springframework.stereotype.Component;
@Component
public class UserFeignFallBack implements UserFeignApi{
@Override
public ReturnResult getByUserName(String userName) {
return null;
}
@Override
public... | 19.142857 | 61 | 0.736318 |
4e63d964bef1bbca611c29cd5a0e7d68d77506c8 | 8,034 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL")... | 36.853211 | 99 | 0.717824 |
1583a93d7c6e7bcf9cfeebfe66257ef9fe7172cc | 456 | package com.jerusalem.goods.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jerusalem.goods.entity.SpuInfoDescEntity;
/****
* 服务层接口
* spu信息介绍
* @author jerusalem
* @email 3276586184@qq.com
* @date 2020-04-09 14:48:19
*/
public interface SpuInfoDescService extends IService<SpuInfo... | 19.826087 | 73 | 0.725877 |
1af82abb55fd08c7dd4fea98d43ef82c03b84ad4 | 7,162 | /*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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:... | 37.302083 | 134 | 0.572745 |
e3b4336e176a83451e4985f17783211b9bc739b4 | 4,392 | /*
* Copyright (C) 2016 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... | 39.214286 | 97 | 0.693078 |
8723b0070885caad21a9daef331187b9ccdf8058 | 1,478 | /**
* Copyright 2019 Jordan Zimmerman
*
* 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 t... | 32.844444 | 96 | 0.743572 |
b3dac5a68ab60f3d8f0f0f3cb922c7e0d1f6d8e3 | 1,445 | /**
* Copyright 2019 SPeCS.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 31.413043 | 118 | 0.649827 |
df767ed02fc8923f81def87b3ccacf0b69ed7321 | 2,107 | package com.ptong.worldcities.utils;
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.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;... | 32.921875 | 106 | 0.655909 |
0917f62011ef37edbd8e30b2d5947cce756d0776 | 563 | package com.yr.net.app.base.service;
import com.yr.net.app.base.entity.TagInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yr.net.app.common.exception.AppException;
import java.util.List;
/**
* @author dengbp
*/
public interface ITagInfoService extends IService<TagInfo> {
/**
... | 22.52 | 65 | 0.69627 |
2c9b9a50545060bd6db540bde72ecd5db960ad86 | 106 | package com.mypurecloud.sdk.v2;
public enum DetailLevel {
NONE,
MINIMAL,
HEADERS,
FULL
}
| 11.777778 | 31 | 0.650943 |
73104697712e8a3a50e8e594f3f8cbc83e29f086 | 887 | package it.unipi.di.acube.semanticview;
import java.io.Serializable;
import java.util.Comparator;
import java.util.TreeSet;
import com.google.common.collect.Multiset;
import com.google.common.collect.Multiset.Entry;
public class Utils {
public static <K extends Comparable<? super K>> Comparator<Entry<K>> comparingE... | 27.71875 | 105 | 0.673055 |
8eb56221d2d2afd87878e9ebc5f15e0310a19ae8 | 542 | import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.UserService;
/**
* @Description:
* @Author: Kevin
* @Create 2020-01-06 08:55
*/
@RestController
public class UserControll... | 24.636364 | 66 | 0.723247 |
dc7505c96559bac4c5e6503b068ced056bf258e8 | 983 | package leetcode.weekly_contests.weekly_238;
public class P_1839 {
public int longestBeautifulSubstring(String word) {
final String vowels = "aeiou";
int res = 0;
final int n = word.length();
final char[] w = word.toCharArray();
for (int i = 0; i < n; i++) {
if ... | 28.085714 | 74 | 0.318413 |
30391eaa27de444755ba3b7562ca223128dd2273 | 55,071 | package core.ast.decomposition;
import com.intellij.lang.jvm.JvmModifier;
import com.intellij.lang.jvm.types.JvmReferenceType;
import com.intellij.psi.*;
import com.intellij.psi.util.PsiUtil;
import core.ast.Access;
import core.ast.AnonymousClassDeclarationObject;
import core.ast.ArrayCreationObject;
import c... | 54.09725 | 157 | 0.654337 |
00d4a1048b5af1646f038d346036c2efa41ae350 | 9,044 | /******************************************************************
* File: TomcatTestContainerFactory.java
* Created by: Dave Reynolds
* Created on: 30 Nov 2012
*
* (c) Copyright 2012, Epimorphics Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | 33.746269 | 110 | 0.615215 |
fc70a80b53a1e183a33ed8c48a440ddfe9447eec | 5,369 | package com.hui.DFS;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* @author: shenhaizhilong
* @date: 2018/11/13 21:58
*
*
* 491. Increasing Subsequences
* DescriptionHintsSubmissionsDiscussSolution
* Given an integer array, your task is to... | 34.416667 | 186 | 0.510151 |
411871dfb8865bf2d27e29119ca1a7afc8a8734e | 2,875 | /*
* 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... | 35.9375 | 89 | 0.66887 |
6c5f2c69fb9e804ca5ce17baab32320ce3a93510 | 1,070 | package com.springboot.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_NULL)
public class MyJsonInclude {
private String id;
private String name;
private String gender;
private String age;
private String zipCode;
... | 18.77193 | 90 | 0.703738 |
f87ae389f95fdc85ab6d98ed3cd6b3464acdb6d9 | 1,971 | package zserio.runtime.array;
import java.util.ArrayList;
import java.util.List;
import zserio.runtime.ZserioError;
/**
* Packing context node.
*
* This class is used to handle a tree of contexts created by appropriate PackedArrayTraits.
* For built-in packable types only a single context is kept. However for Zs... | 25.269231 | 104 | 0.650939 |
94a5751230a6d9e80dd8794150c37100fd13ed6c | 2,394 | package es.udc.pa.pa013.practicapa.model.orderline;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.pers... | 22.8 | 84 | 0.722222 |
8db6daa1cf1f7fc99109e96506258acaec1e1e82 | 931 | /*
* This file is part of Linyin, Peng Wan's graduation project in Haut.
* Copyright (C) 2016 Peng Wan <phylame@163.com>. All Rights Reserved.
*/
package pw.phylame.linyin.service.chain.ocs;
import org.springframework.beans.factory.annotation.Autowired;
import pw.phylame.linyin.constants.ErrorCode;
import pw.phyl... | 29.09375 | 100 | 0.709989 |
bf4b38c3c2f76f2fb10ab4854dd84cd50c0e3fbd | 6,784 | /*
* Copyright 2017 Amazon.com, Inc. 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. A copy of the
* License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "LICEN... | 41.365854 | 100 | 0.762235 |
f53a2c2bbdae7579fbd50197469047caa9291fc6 | 229 | package Taxi.controler;
public class DriverController {
// priemane na zaqven kurs i opredelqne ma cena
// end kurs
// pregled na all zavyrsheni kursove
// pregled na ocenkite ot kursovete i obshta ocenka
// more?
}
| 17.615385 | 52 | 0.720524 |
5fae7986648a934dddfd82076359652682591f90 | 5,640 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 16.443149 | 810 | 0.801418 |
0e3d571ef32da00b62d179eafef3e7ddc7d7d88e | 1,579 | /**
* FileInfo.java
*
* For hold some information of a file's features
*/
package com.sciome.bmdexpress2.util.annotation;
import java.io.File;
public class FileInfo {
private String httpURL = null, fName = null;
private File file = null;
private int fSize = 0;
private long lastMod... | 18.360465 | 51 | 0.542115 |
5561f6f66924b1895162504027686c5bb34728cd | 449 | package pw.dotdash.mukkit.impl.command;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.command.SimpleCommandMap;
import org.jetbrains.annotations.NotNull;
import java.util.Map;
public class MukkitCommandMap extends SimpleCommandMap {
public MukkitCommandMap(@NotNull Server server... | 23.631579 | 56 | 0.750557 |
71d9718ea4ab557c16296f58c6257e2f8a5b5fe8 | 2,251 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, 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
*
* Un... | 29.233766 | 99 | 0.699689 |
c2bda9e4c22d4c87249eaa21735a573d1dee4f85 | 13,423 | package io.hashimati.microcli.config;
import io.micronaut.context.annotation.Factory;
import javax.inject.Singleton;
import java.util.HashMap;
@Factory
public class FeaturesFactory {
@Singleton
public static HashMap<String, Feature> features(){
HashMap<String, Feature> features = new HashMap<>();... | 47.098246 | 121 | 0.471057 |
71a98f66f0e4ba31b51eacf49d91f6b5404796bc | 1,701 | package freeseawind.lf.basic.button;
import java.awt.Color;
import java.io.Serializable;
/**
* Button color attribute class
*
* @author freeseawind@github
* @version 1.0
*/
public class LuckButtonColorInfo implements Serializable
{
private static final long serialVersionUID = -635267708176853577... | 19.77907 | 72 | 0.553204 |
b4c9185d781f6373889597eb84df7234c056c0fa | 3,257 | package com.olacabs.dp.utils;
import com.olacabs.dp.exceptions.HttpFailureException;
import com.olacabs.dp.foster.models.metastore.Schema;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClien... | 41.227848 | 400 | 0.642616 |
60b6ccb85f347bd3e0a64ec4b255889f9d203eaf | 14,886 | /*
* 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 distributed under t... | 34.943662 | 238 | 0.703883 |
753f34cf9b710c3cc08ed366de0711af2fec083b | 2,728 | package com.billow.system.api;
import com.billow.base.workflow.component.WorkFlowExecute;
import com.billow.base.workflow.component.WorkFlowQuery;
import com.billow.base.workflow.vo.CustomPage;
import com.billow.base.workflow.vo.ProcessDefinitionVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiO... | 37.888889 | 141 | 0.762097 |
69b0d1c736ca1f57e359f41e06159395b26ce7c6 | 1,056 | package test2;
import javax.xml.bind.annotation.*;
import java.util.List;
@XmlRootElement(name = "question")
@XmlAccessorType(XmlAccessType.FIELD)
public class Question {
private int id;
private String questionname;
@XmlElementWrapper(name = "answersC")
@XmlElement(name = "answer")
private List<A... | 23.466667 | 72 | 0.629735 |
f4c10e494300e0a8eb536d021200d5ecb23527d8 | 7,650 | /**
* MIT License
*
* Copyright (c) 2018 - 2020 FormKiQ
*
* 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,... | 36.956522 | 100 | 0.729412 |
2be11c38ccdefb3e5d07e75e7a1038fcda81ecd1 | 3,014 | package com.ppdai.das.core.client;
import java.sql.Connection;
import java.sql.SQLException;
import org.apache.tomcat.jdbc.pool.PooledConnection;
import com.ppdai.das.client.Hints;
import com.ppdai.das.core.HintEnum;
import com.ppdai.das.core.DasConfigureFactory;
import com.ppdai.das.core.DasException;
import com.pp... | 23.184615 | 105 | 0.693762 |
4c6e8aa35f2b0b449129feb31e0f5f17d05ce61c | 517 | package org.example;
import java.util.HashMap;
import java.util.Map;
import org.gradle.api.tasks.Input;
public class TemplateData {
private String name;
private Map<String, String> variables;
public TemplateData(String name, Map<String, String> variables) {
this.name = name;
this.variable... | 21.541667 | 69 | 0.667311 |
76892a4f80c86193392fddc211d3d48ef31a80aa | 4,973 | /*
* 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 ... | 33.153333 | 91 | 0.699377 |
41c8e224af3bb7c20390c267595605e1501e5e58 | 2,990 | package com.ankhrom.base.networking;
import android.content.Context;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingExcept... | 28.47619 | 85 | 0.597324 |
8d5d043e48fcd42c22f4933ad66eb9fa00cb7fff | 55,912 | /*
* 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... | 35.658163 | 117 | 0.614537 |
680bd43ee79d0738957358d859e0db9896654401 | 1,035 | /**
*
*/
package mx.com.extend.example;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
/**
* @author alexander
*
*/
public class UtilProperties {
/**
* Path del archivo properties
*/
private static final Str... | 20.7 | 116 | 0.662802 |
bab56b84a45ff8118fc3e18d55a5195f0a8f9555 | 218 | import java.util.*;
class Test<K,V> {
private final Map<? extends K, ? extends V> m = null;
{
f(m.entrySet());
}
private static <A, B> void f(Set<? extends Map.Entry<? extends A, ? extends B>> s) {}
}
| 15.571429 | 87 | 0.577982 |
bd26d48ef672686f6745a88bb320631092c1b2e3 | 13,314 | /*
* Copyright (c) 2002-2019 Gargoyle 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 law ... | 32.15942 | 104 | 0.498723 |
45869721c2844e0e38b0ef45f305eb3c0ce73e8f | 3,290 | package net.emuman.commandbuilder;
import net.emuman.commandbuilder.exceptions.CommandStructureException;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import java.util.*;
import java.util.stream.Collectors;
public class SingleStringNode extends NodeBase {
private List<String> opti... | 35.376344 | 118 | 0.602736 |
b9a8ab69bbbd4e4ca187a8508ebbae53a203ffa7 | 5,737 | /*
* 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 ... | 31.696133 | 89 | 0.658009 |
86d587b1b47a40197f11ede5416adedd716d724d | 27,784 | /*
* 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 distributed under t... | 46.461538 | 182 | 0.729557 |
b40870a3b1fef572798b731dc2ca931c23c27d95 | 4,087 | package synergynet3.web.earlyyears.server;
import synergynet3.web.earlyyears.client.EarlyYearsUI;
import synergynet3.web.earlyyears.client.service.EarlyYearsService;
import synergynet3.web.earlyyears.core.EarlyYearsControlComms;
import synergynet3.web.earlyyears.shared.EarlyYearsActivity;
import synergynet3.web.shared... | 22.960674 | 92 | 0.718865 |
c43509ae2b90cd1dc313feb40e95ab169636657d | 4,007 | package org.kasource.spring.nats.integration;
import java.io.File;
import org.springframework.util.SocketUtils;
import org.kasource.spring.nats.integration.avro.NatsAvroJavaIntegration;
import org.kasource.spring.nats.integration.avro.NatsAvroXmlIntegration;
import org.kasource.spring.nats.integration.custom.NatsCus... | 51.371795 | 113 | 0.691041 |
f489bd1972ec2b004e267f1add763cc54488022e | 2,101 | package codejam2010;
import java.io.*;
import java.util.*;
public class Solution {
final String f = "A-large-practice.in.txt";
private BufferedReader in;
private PrintWriter out;
private StringTokenizer st;
void solve() throws IOException {
int D = nextInt();
int I = nextInt();
int m =... | 21.222222 | 73 | 0.516421 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.