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 |
|---|---|---|---|---|---|
72751aaed38b11cec6b74c2687d6b2249a4ccc38 | 5,375 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.A... | 41.030534 | 155 | 0.674419 |
487bb49222e305e9c5e8b340dbf7c1b08a537edc | 1,298 | package com.jf.system.handler.mybatis;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Created with... | 30.186047 | 119 | 0.739599 |
3c15773611ad3613d385269348cb1b82a24c10f6 | 3,133 | /*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 40.688312 | 113 | 0.616023 |
075cca63410e16edf690e848e8776ac611b75f4b | 5,025 | package com.weimin.common.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
impo... | 26.036269 | 158 | 0.688955 |
8fc96497fd4f2f81aa06c26b9714f345a5bb56ac | 4,370 | package com.example.orbitsatellitevisualizer;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.app.Dialog;
import android.content.SharedPreferences;
import android.os.FileUtils;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import ... | 36.416667 | 134 | 0.785584 |
509f689a98fc1e2f8c6474457c31a9b3e6fdb621 | 2,328 | package cn.ucloud.umem.model;
import cn.ucloud.common.annotation.UcloudParam;
import cn.ucloud.common.pojo.BaseRequestParam;
import cn.ucloud.common.pojo.Param;
import org.apache.commons.codec.binary.Base64;
import javax.validation.constraints.NotEmpty;
import java.io.UnsupportedEncodingException;
import java.util.Ar... | 23.755102 | 80 | 0.626718 |
6db4a52416eb437ec36b3f0e1bd50c062d059897 | 666 | package fr.parisnanterre.miage.poa.shapes.impl;
import fr.parisnanterre.miage.poa.shapes.impl.Point2D;
public class Point3D extends Point2D {
private double z;
public Point3D(double z)
{
super();
this.z = z;
}
public double getZ() { return this.z; }
public void setZ(double z... | 16.65 | 54 | 0.585586 |
f6f9af4cd825fdfed4d16f0f1262ecaa241699e8 | 2,838 | package br.com.caelum.stella.boleto;
/**
* Interface com métodos do sacado<br/> Sacado é a pessoa/empresa que irá pagar
* pelo boleto gerado.
*
* @author Cauê Guerra
*
*/
public class Sacado {
private String nome;
private String cpf;
private String endereco;
private String cep;
private Stri... | 16.5 | 79 | 0.495067 |
22fd7fa10be6d20f00bf99efcf4ad8a4d84034d7 | 1,631 | package ch.awae.moba2.core.control.impl;
import ch.awae.moba2.core.Sector;
import ch.awae.moba2.core.buttons.ButtonProvider;
import ch.awae.moba2.core.buttons.SectorButtonProvider;
import ch.awae.moba2.core.control.Processor;
import ch.awae.moba2.core.path.Path;
import ch.awae.moba2.core.path.PathProvider;
import ch.a... | 31.365385 | 113 | 0.680564 |
1e6b2cd5c9089184dd0c59151b7925befbf88daa | 166 | package com.r00ta.ffm.manager.infra;
import org.eclipse.microprofile.jwt.JsonWebToken;
public interface IdentityResolver {
String resolve(JsonWebToken jwt);
}
| 18.444444 | 49 | 0.795181 |
580c0e574dcc87a563281375e1f653378e68b993 | 834 | package org.adligo.xml_io.shared.schema;
public class AnyMutant implements I_Any {
private String minOccurs;
private String maxOccurs;
public AnyMutant() {
}
public AnyMutant(I_Any other) {
minOccurs = other.getMinOccurs();
maxOccurs = other.getMaxOccurs();
}
/* (non-Javadoc)
* @see org.adligo.xm... | 19.857143 | 61 | 0.720624 |
c97b1ff34c570869465c0eafb536275dbf49e95d | 380 |
package com.expro.akash.programs;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.widget.SimpleAdapter;
public class ListDrawerAdapter extends SimpleAdapter {
public ListDrawerAdapter(Context context, List<? extends Map<String, ?>> data, int resource, String[] from,int[... | 22.352941 | 118 | 0.755263 |
974d2aa8150e0281fcc7e0a00ac00f9de60e0532 | 5,887 | package ar.edu.unlp.sedici.dspace.authority;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.dspace.content.Collection;
import org.dspace.content.authority.Choice;
import org.dspace.content.authority.ChoiceAuthority;
import org.dspace.content.authority.Ch... | 35.463855 | 133 | 0.753015 |
9658b4a342e8cbc23765757b27e6a07e6ad5d3c4 | 634 | package com.segeyburlaka.test.jellyworkz.mydaggermvprxtest.util;
import com.amulyakhare.textdrawable.TextDrawable;
import com.amulyakhare.textdrawable.util.ColorGenerator;
public class TextDrawUtil {
private TextDrawUtil() {
//no instance
}
public static TextDrawable getTextDrawable(String name)... | 28.818182 | 66 | 0.662461 |
781d46b6ceb68a8d3cbfd51e413364bd52bcdb3b | 1,546 | package com.manywords.softworks.tafl.rules.brandub.seven.test;
import com.manywords.softworks.tafl.rules.*;
import com.manywords.softworks.tafl.rules.taflmen.King;
import java.util.ArrayList;
import java.util.List;
public class AITwoCornerEscapeTestDefenders extends Side {
public AITwoCornerEscapeTestDefenders(B... | 24.539683 | 131 | 0.657827 |
249bcca233b555af8ee7d068a14c0278dfb5ad97 | 4,577 | /*
* 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 ... | 47.677083 | 96 | 0.772995 |
af98a54e6a934d6bfd89240f0a84e62dd452b55e | 3,347 | /**
* Copyright (C) 2012 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 agree... | 29.619469 | 111 | 0.645952 |
e40e45b7fd80b56646904ce3f64613f831e43dd2 | 5,267 | package st.ggviario.house.control.component;
import com.jfoenix.controls.JFXRippler;
import com.jfoenix.effects.JFXDepthManager;
import de.jensd.fx.glyphs.GlyphIcon;
import javafx.css.PseudoClass;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.l... | 28.015957 | 134 | 0.599582 |
3dd08902e61fa7ff8e9cad2f9eb96a3f04c9efe9 | 534 | package miniJava.SyntacticAnalyzer;
public class ScannerException extends SyntacticAnalyzerException {
private static final long serialVersionUID = 1L;
public ScannerException(Token t, int lineNum, int lineWidth){
super("Unexpected token with value " + "\"" + t.getValue() + "\" on line " + lineNum + ":" + lineWi... | 35.6 | 112 | 0.709738 |
70157784891249dbde5580ceea32b0b0a5c879d0 | 1,168 | // 3Sum
// 先排序,然后左右夹逼,注意跳过重复的数
// Time Complexity: O(n^2),Space Complexity: O(1)
public class Solution {
public List<List<Integer>> threeSum(int[] nums) {
List<List<Integer>> result = new ArrayList<>();
if (nums.length < 3) return result;
Arrays.sort(nums);
final int target = 0;
... | 35.393939 | 73 | 0.38613 |
76f1121703686f74e8926a7e2e4c6e8e2836ea78 | 2,560 | // automatically generated by the FlatBuffers compiler, do not modify
package com.riiablo.net.packet.d2gs;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class ItemP extends Table {
public static void ValidateVersion() { Constant... | 51.2 | 176 | 0.733203 |
a7b396ecd0c1859d61bd7a09b457881b522644dd | 11,402 | 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 license... | 18.012638 | 814 | 0.802666 |
44c806f68ccf6f5710eff427e548aa98f15c566f | 3,767 | package com.mshlab.quickaid.Uitls;
import android.content.Context;
import android.os.AsyncTask;
import android.text.TextUtils;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;... | 26.907143 | 95 | 0.521901 |
bf5ebc9e718b77458fcca17728bcba9be17d6fce | 1,962 | package com.penglecode.xmodule.examples.springboot.dal.model;
import com.penglecode.xmodule.common.support.BaseDO;
/**
* @author pengpeng
* @version 1.0
* @since 2021/5/16 17:00
*/
public class Order implements BaseDO {
private Long orderId;
private Double totalAmount;
private Double freightAmount;... | 20.652632 | 61 | 0.586646 |
99f9310d5dfb9c5ee1ddf389983452428aa42aa1 | 11,053 | /*
* The Gemma project
*
* Copyright (c) 2013 University of British Columbia
*
* 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 ... | 43.515748 | 186 | 0.668597 |
a28b83ef426e2971e7e61bac20e1a2a0998dae3d | 5,174 | /**
* Copyright (c) Istituto Nazionale di Fisica Nucleare, 2014-2021.
*
* 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 re... | 33.816993 | 99 | 0.774256 |
adc3804e8814b5e8af15655b922411e76c316bf1 | 1,769 | package org.easy.framekwork.util;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.LinkedHashMap;
import java.util.Map;
public class ClassUtil {
public static ClassLoader getClassLoader... | 29 | 94 | 0.697569 |
ff1d8e88eb3126bd2027ca3a923f9ac41570bd21 | 487 | // UpdateProperties.java
// (C) 2016 Masato Kokubo
package org.lightsleep.entity;
import java.lang.annotation.*;
/**
* Indicates an array of <b>UpdateProperty</b> annotations.
*
* @since 1.3.0
* @author Masato Kokubo
* @see UpdateProperty
* @see UpdateProperties
*/
@Documented
@Retention(RetentionPolicy.RUNTI... | 21.173913 | 65 | 0.716632 |
785b069ad449754758a96bb50f4bec21f60528eb | 267 | package com.bonjourcs.java.play.designpattern.factory;
/**
* @author Liang Chenghao
* Description:
* Date: 2018/10/23
*/
public class MLoggerFactory implements LoggerFactory {
@Override
public Logger getLogger() {
return new MLogger();
}
}
| 16.6875 | 54 | 0.681648 |
d03aea1d8ef2d84e4a57ac63ff7b8b11f02c2e05 | 459 | package org.luo.system.user.service;
import org.luo.auth.model.LoginUser;
import org.luo.mp.base.BaseService;
import org.luo.system.user.entity.User;
import org.luo.system.user.vo.UserInfoVo;
import java.util.List;
/**
* @Date 14:37 2021/5/6
* @Description {
* UserService
* }
* @Author lsay
**/
public interf... | 19.956522 | 56 | 0.732026 |
3534d04645b0a263049a848ea99f8530c63168d2 | 648 | package com.bergerkiller.mountiplex.reflection.util;
import com.bergerkiller.mountiplex.reflection.declarations.TypeDeclaration;
/**
* A mapping from Type to a collection of elements, where the contents of extended types
* show up in their supertype classes and interfaces. For example, the contents retrieved
* fro... | 34.105263 | 96 | 0.75463 |
f33738cbda635a0f0da089ae4ee97d6c7bcb483d | 4,598 | package me.jessyan.mvparms.wanandroid.mvp.ui.activity;
import android.content.Intent;
import android.widget.EditText;
import com.google.gson.Gson;
import com.jess.arms.utils.ArmsUtils;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.j... | 36.492063 | 139 | 0.707699 |
070bfbdc0a4c217289e19f8963a61553765f0ff6 | 2,174 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package stronglyconnectedgraph;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import ja... | 28.233766 | 94 | 0.591996 |
147ab9b679465f6849bb27469a1c364325018699 | 484 | package ${project_package};
import griffon.core.test.GriffonUnitRule;
import griffon.core.test.TestFor;
import org.junit.Rule;
import org.junit.Test;
import static org.junit.Assert.fail;
@TestFor(${project_class_name}.class)
public class ${project_class_name}Test {
private ${project_class_name} ${artifact_type};... | 23.047619 | 65 | 0.727273 |
49f61a8eaa9ba1bccc6e6a52b3810c94494a255d | 1,246 | package org.aml.raml08210.registry.old;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import org.aml.registry.model.ApiDescription;
import org.aml.registry.model.Registry;
public class RepoRegistry {
protected HashMap<String, RepoDescription>map=new HashMap<>();
public ... | 27.086957 | 88 | 0.679775 |
6be94e52363a17904446e8855f978e4aba550380 | 1,482 | package jm.tests.logistics;
import java.util.ArrayList;
import java.util.List;
import java.util.StringJoiner;
/**
* Представляет список предметов.
* Используется в {@link ItemSelectorByCombination}.
*/
class Items implements Cloneable {
private ArrayList<Item> list = new ArrayList<>();
public List<Item> g... | 23.52381 | 65 | 0.541161 |
dc8a656fe9f2868017ff785a8a9fc2a7bc180c84 | 3,943 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... | 37.913462 | 126 | 0.674867 |
e6cb51adfcbe01f44ac361e4c34751d5aa2359b0 | 8,865 | package com.coolweather.android;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget... | 33.835878 | 156 | 0.557473 |
01950fefba4a654bbb29f33d6043fd8522b14f94 | 3,022 | package com.github.jgzl.gw.gateway.decorator;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import com.github.jgzl.gw.common.gateway.domain.GatewayLog;
import com.github.jgzl.gw.gateway.common.WebEnum;
import com.github.jgzl.gw.gateway.util.LogUtils;
import lombok.extern.slf4j.Slf4j;
import... | 41.972222 | 124 | 0.698544 |
0e73956641b02b2746b9a1ec4d73dd3e118c7f20 | 634 | package com.jvfast.common.util;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import org.springframework.ui.freemarker.FreeMarkerTemplateUtils;
import java.io.IOException;
import java.util.Map;
public class TemplateUtil {
/**
* 模板转换
*
* @param template
* ... | 25.36 | 126 | 0.731861 |
832d443550356ebf54607288a0f6ca25f7c8819e | 18,624 | /*
* Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 41.478842 | 163 | 0.556916 |
4cc1ad8e0a353f8ffba38fcd67b3c1da5c822b08 | 39,669 | /*
* Copyright 2013-2014 Richard M. Hightower
* 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 ... | 27.528799 | 130 | 0.497794 |
10d1dafcad17d374a188c3c49dc600a212c41989 | 1,668 | package me.chanjar.weixin.mp.bean.comment;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 群发图文评论数据.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
* @date ... | 18.954545 | 76 | 0.654676 |
1b5a27dc362a0888767f6663f39bee2344aff13d | 2,438 | package com.fc.async;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class test {
private Connection conn;
private PreparedStatement pstmt;
private PreparedStatement pstmt2;
private ResultSet... | 29.731707 | 159 | 0.554143 |
a560bc10f6c8669b8e6d0e0ef1a141ca67735249 | 2,319 | package code.ponfee.hbase.test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import org.springframework.stereotype.Repository;
import com.google.common.collect.Lists;
import code.ponfee.commons.reflect.BeanMaps;
import code.ponfee.commons.u... | 27.607143 | 102 | 0.643381 |
9ab59e6aa5eab6ca084ede8f209684e7dd759fed | 1,134 | package ru.job4j.caches;
import org.junit.Test;
import java.util.concurrent.atomic.AtomicReference;
import static org.junit.Assert.*;
public class NonBlockingCacheTest {
@Test
public void whenUpdateIn2ThreadsSimultaneouslyThanThrowExceptionInOne() throws InterruptedException {
AtomicReference<Excep... | 29.842105 | 105 | 0.566138 |
7930f304654912159666da5ce5e07526981efd53 | 5,138 | /*
* 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 ... | 41.772358 | 114 | 0.704554 |
c2d8b571433fb3f34277fc87308e505558aecac4 | 7,255 | package com.gempukku.swccgo.logic.effects;
import com.gempukku.swccgo.filters.Filters;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.SwccgGame;
import com.gempukku.swccgo.game.state.GameState;
import com.gempukku.swccgo.logic.actions.SubAction;
import com.gempukku.swccgo.logic.modifiers... | 49.02027 | 157 | 0.614059 |
8091efdbcd6cc7fb491881e8e8e0c7071f01d249 | 1,669 | /*************************************************************************
* *
* EJBCA Community: The OpenSource Certificate Authority *
* *
* This software is... | 34.770833 | 75 | 0.47154 |
c752e6dc5dc1d8365a244347cf32333765cc16b4 | 5,922 | package main;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
public class PoseConverter_CommU implements PoseConverter {
private final double REDUCTION_RATIO_BODY_P = 3.833;
private final double REDUCTION_RATIO_L_SHOU_P = 1.364;
private final double REDUCTION_RATIO_R_SHO... | 35.04142 | 86 | 0.515704 |
c2ef73037d290b8a95d1f25e37e6f6ce254313f9 | 2,660 | package by.jackraidenph.dragonsurvival.particles.SeaDragon;
import by.jackraidenph.dragonsurvival.registration.ParticleRegistry;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordC... | 32.439024 | 289 | 0.798872 |
55b6b9c43e07e45a25ba7fd72acebd8df78b7ac7 | 1,632 | package com.aparovich.barterspot.tags;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.BodyCon... | 30.222222 | 95 | 0.697304 |
ec6fa5873f92d1f7f9237b5a83b76906d8796232 | 8,355 | package com.kar.transferup.contacts;
import android.text.TextUtils;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by praveenp on 09-01-2017.
*/
public class RawContact {
private static final String TAG = RawContact.class.getSimpleName();
... | 38.150685 | 162 | 0.5848 |
ed20bd6183f140c24a62997f64e67ee259833f56 | 109 | vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|27 Apr 2001 16:01:24 -0000
vti_extenderversion:SR|4.0.2.3406
| 27.25 | 50 | 0.816514 |
093487d055b974379d9ca213dfaa8caa3ab35484 | 1,153 | package com.bazl.dna.sys.constants;
import com.bazl.dna.common.PublicConstants;
/**
* 系统用户常量
*/
public class SysConstants extends PublicConstants {
public static final String ID = "id";
public static final String USER_ID = "userId";
public static final String ROLE_ID = "roleId";
public static final String ORG... | 30.342105 | 62 | 0.734605 |
bf456fa7274ee0f478211af5dcf5884351b7fb7c | 6,837 | /*
* MainActivity.java
*
* Copyright 2018 Araien Redfern
*
* 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
*
* ... | 35.42487 | 94 | 0.655404 |
72ccf213c023201df1fc7f3f0c4c3502a4cd5b85 | 2,000 | package com.hujiang.project.zhgd.lzfw.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 两制服务菜单表 hj_menu
*
* @author hujiang
* @date 2019-07-01
*/
public class HjMenu
{
private static final long serialVersionUID = 1L;
... | 19.80198 | 72 | 0.6635 |
227dd6d681f9cd418761c1c83e20c75917148afb | 2,305 | /*
* Copyright (C) 2010 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 ... | 37.177419 | 91 | 0.770499 |
0f6cff5c91be5455b4f6c2b744fa3f25d88745cc | 5,978 | package com.revature.daos.methods;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import com.revature.daos.User... | 24.5 | 66 | 0.652058 |
0d80f4f63dbb7b6c8dae21026e3d2ba45d5324a3 | 1,652 | /*-
* #%L
* rapidoid-integration-tests
* %%
* Copyright (C) 2014 - 2018 Nikolche Mihajlovski and contributors
* %%
* 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.... | 28.482759 | 91 | 0.694915 |
0496b171bbfaf2a618bbf6b60299545d2ba508b6 | 2,893 | package com.lesfurets.maven.partial.utils;
import java.io.*;
import java.util.*;
import java.util.function.Function;
import org.apache.maven.model.Plugin;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.slf4j.Logger;
im... | 39.094595 | 108 | 0.683719 |
36f6d0c3d183966907e4ad8905c38f13ec55b7d0 | 379 | /*
* 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 csv2rdf;
/**
*
* @author ksharma
*/
public interface ConversionListener {
public void DidFinishConversion();
p... | 22.294118 | 79 | 0.730871 |
819622794189a8e0d501e5a8a9f80bb80fe489f7 | 872 | package ss;
/**
* Marble enum used in the pentago Software Systems UT project
* @author janwillem.nijenhuis
* @version 0.2.0
*/
public enum Marble {
EMPTY,
BLACK,
WHITE;
/**
* checks if marble is equal to the other marble
* @param other marble to check
* @return true if equal, false... | 22.358974 | 62 | 0.580275 |
e90920db9edcc35595831c5bf23793159c69bc24 | 3,308 | package dev.hmmr.apps.coursebooking.adapter.boxchamp;
import dev.hmmr.apps.coursebooking.exception.CourseNotFoundException;
import dev.hmmr.apps.coursebooking.model.Booking;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import org.springframework.boot.conte... | 40.839506 | 125 | 0.765115 |
fa51aae1405ef22c8f2298f8ad2c4c0f593e2ef7 | 2,145 | package org.jruby.javasupport.binding;
import org.jruby.RubyModule;
import org.jruby.internal.runtime.methods.DynamicMethod;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Created by headius on 2/26/15.
*/
public abstract class MethodInstaller e... | 31.086957 | 101 | 0.647086 |
315e07ce25f158414ad26f1d1c3be210d46b71fd | 567 | package g0301_0400.s0397_integer_replacement;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void integerReplacement() {
assertThat(new Solution().integerReplacement(8), equalTo(3));
... | 23.625 | 69 | 0.703704 |
255b7509c66beadeb0d0470433bf378bf849c9f6 | 1,053 | import java.util.*;
class Sequence {
public static int sequences(String str) throws NumberFormatException {
String s[] = str.split(",");
int arr[] = new int[s.length];
int copy[] = new int[s.length];
for (int i = 0; i < s.length; i++) {
arr[i] = Integer.parseInt(s[i]);
copy... | 27 | 73 | 0.518519 |
8e5cf71db72f36c515ebb9a11120585a052c8ec9 | 5,721 | /*
* Copyright (c) 2006 JMockit developers
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit.internal.expectations;
import java.util.*;
import javax.annotation.*;
import static java.util.Collections.emptyList;
import mockit.internal.expectations.invocation.*;
public fina... | 33.261628 | 138 | 0.679427 |
f880bd2553228fb0eefdc9bf6ca70c00bc579783 | 29,547 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.find;
import com.intellij.find.editorHeaderActions.*;
import com.intellij.icons.AllIcons;
import com.intellij.ide.DataManager;
import com.intellij.ide.lightE... | 38.472656 | 140 | 0.716858 |
5302ee1180a9bd2faeafb63f87f80e80b277927d | 13,788 | 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 ... | 14.873786 | 810 | 0.805048 |
605c18ed0956480eea8b00a1a9bd4467ef2ade39 | 1,738 | package com.angcyo.uiview.base;
import android.support.annotation.CallSuper;
import android.view.View;
import com.angcyo.uiview.net.NonetException;
import com.angcyo.uiview.net.RSubscriber;
import com.angcyo.uiview.receiver.NetworkStateReceiver;
import rx.Subscription;
import rx.observers.SafeSubscriber;
import rx.s... | 25.940299 | 98 | 0.628308 |
92475a8524cdeffabb3fcbbf916c908598974d06 | 5,487 | /*
* Copyright (c) 2008, Christophe Delory
* 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 copyright
* notice, this... | 31.176136 | 117 | 0.612356 |
ce04185d873ceaf960eeb5c50deccc6d61d9c0c7 | 486 | package dev.bodner.jack.unlimited;
import net.fabricmc.api.ModInitializer;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
... | 27 | 60 | 0.808642 |
2f2d4e8dedd44a877223af8a2f07813da72c234c | 11,231 | package com.xendit.model;
import com.google.gson.annotations.SerializedName;
import com.xendit.Xendit;
import com.xendit.exception.XenditException;
import com.xendit.network.RequestResource;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import lombok.Builder;
import lombok.Getter;
import... | 34.987539 | 100 | 0.711335 |
17bf491f0ec121290d943e8a11daecb0ef78031b | 160 | package com.carrotsearch.progresso.views.console;
import com.carrotsearch.progresso.util.UnitFormatter;
public interface WithUnit {
UnitFormatter unit();
}
| 20 | 53 | 0.8125 |
f739facc5a000da052a3a68cdd74f8d68bc6980e | 2,598 | /*
* Copyright (C) 2015 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... | 36.083333 | 100 | 0.712086 |
e1e9008405f4f30f5b9e57c62084c98cb4511441 | 6,645 | /**
* This file is part of SimpleEgg, licensed under the MIT License (MIT)
*
* Copyright (c) 2015 Brian Wood
*
* 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 restrict... | 41.53125 | 89 | 0.56614 |
64b81f6f1a19bf40fc3726794a097e2ea7960343 | 15,212 | package gov.nasa.jpl.aerie.scheduler.constraints.activities;
import gov.nasa.jpl.aerie.constraints.time.Window;
import gov.nasa.jpl.aerie.constraints.time.Windows;
import gov.nasa.jpl.aerie.merlin.protocol.types.Duration;
import gov.nasa.jpl.aerie.merlin.protocol.types.DurationType;
import gov.nasa.jpl.aerie.scheduler... | 40.031579 | 213 | 0.672101 |
2f6c3a7bd64c21d500b6d7568a570d24c3daa285 | 5,002 | //To Test: http://localhost:8080/nbia-api/api/v1/getManufacturerValues
//To Test: http://localhost:8080/nbia-api/api/v1/getManufacturerValues?format=xml
//To Test: http://localhost:8080/nbia-api/api/v1/getManufacturerValues?format=html
//To Test: http://localhost:8080/nbia-api/api/v1/getManufacturerValues?format=jso... | 64.128205 | 136 | 0.789684 |
354ddb4fe1a4f5791012d800d8acca8b0f591dd0 | 11,964 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 46.19305 | 239 | 0.783601 |
d69b142a08c49855c2ae2afbda6e33ce2c871791 | 1,796 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package de.tavendo.autobahn;
import java.util.HashMap;
public class PrefixMap {
private final HashMap<String, String> mPrefixes = new HashMap();
private final HashMap<String, String> mUris = new HashMap()... | 25.295775 | 83 | 0.555122 |
7f79a60c48d800fcdc40d6cfeac9291df31fe2bd | 2,796 | package org.bds.lang.statement;
import org.antlr.v4.runtime.tree.ParseTree;
import org.bds.compile.CompilerMessage.MessageType;
import org.bds.compile.CompilerMessages;
import org.bds.lang.BdsNode;
import org.bds.lang.expression.Expression;
import org.bds.lang.expression.ReferenceVar;
import org.bds.lang.type.Type;
im... | 27.96 | 98 | 0.709943 |
0fc30cdc8f1d03188b9b1d3260fe1d4a2aa89c11 | 571 | package prestocloud.tosca.parser.postprocess;
import java.util.List;
import java.util.Map;
import org.prestocloud.tosca.model.definitions.CapabilityDefinition;
import org.prestocloud.tosca.model.templates.Capability;
import org.prestocloud.tosca.model.templates.NodeTemplate;
import org.prestocloud.tosca.model.types.N... | 35.6875 | 98 | 0.84063 |
76667b3a0346ffa14e21f4f3ebfa9398bf6e4a3b | 782 | package graduationproject.back.model.request;
/**
* @Author Pan
* @Date 2020/11/28 20:22
*/
public class LoginRequest {
private String studentId;
private String pwd;
private int accountType;
public int getAccountType() {
return accountType;
}
public void setAccountType(int accountT... | 19.073171 | 55 | 0.620205 |
08d8c7960415726ac8365ecddedbffefd7066d43 | 2,832 | /*
* Copyright (c) 2015 PocketHub
*
* 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.181818 | 86 | 0.688559 |
5d1cbad701ec01c4b383fb02704aa636f95fc1d4 | 361 | package com.xiaobei.spring.aop.demo;
/**
* {@link EchoService} 的默认实现
* @author <a href="https://github.com/xiaobei-ihmhny">xiaobei-ihmhny</a>
* @date 2021-02-09 19:35:35
*/
public class DefaultEchoService implements EchoService {
@Override
public String echo(String msg) {
System.out.printf("Hello ... | 22.5625 | 73 | 0.65651 |
4581007560d5d8e0260948ee6012fb514d046a93 | 7,440 | package com.ruszala.fueltrack.ui.orders.details;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impor... | 37.575758 | 135 | 0.647312 |
14510e59a3cd209abaef9e92a10ace921b19ee45 | 471 | package org.basex.query.func.ft;
import org.basex.util.options.*;
/**
* Full-text options.
*
* @author BaseX Team 2005-22, BSD License
* @author Christian Gruen
*/
public final class FtThesaurusOptions extends FtIndexOptions {
/** Option: relationship. */
public static final StringOption RELATIONSHIP = new S... | 27.705882 | 90 | 0.726115 |
e24afa08ae95a9c3c45e6ff5fa17449ad95caeeb | 2,116 | package com.facebook.hive.udf;
/**
* 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, Ver... | 28.213333 | 75 | 0.675331 |
ddd4d036d1d547a15bcdcb80fe7e63a2885dd72f | 7,027 | package org.starexec.test;
import org.mockito.Mockito;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.starexec.constants.DB;
import org.starexec.constants.R;
import org.starexec.data.to.*;
import org.starexec.data.to.Status.StatusCode;
import org.starexec.data.to.enums.Process... | 32.233945 | 146 | 0.697026 |
3ec7db6dcbdca5921c6b7c0bf43f90c6982d8a01 | 253 | package dk.accel.misw.mp.model.node.mock;
import dk.accel.misw.mp.model.server.node.rmitypes.SensorId;
import dk.accel.misw.mp.model.server.node.rmitypes.SensorValue;
public interface SensorMock {
SensorId getSensorId();
SensorValue getValue();
}
| 21.083333 | 63 | 0.786561 |
ac51eb25517a93666547bb1f8ea9ef378a7b2d14 | 809 | package ru.curs.lyragridtest;
import ru.curs.celesta.CelestaException;
import ru.curs.lyra.grid.Rules;
import ru.curs.lyra.grid.VarcharFieldEnumerator;
public class TestEnum {
public static void main(String[] args) throws CelestaException {
final Rules rules = new Rules() {
@Override
public String getRules()... | 26.966667 | 79 | 0.697157 |
1f8ba7906ab0c7484077b382f3c006e8b5bfb880 | 1,510 | import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JFrame;
public class MovFiguras extends Canvas{
double theta=0.0;
JFrame winPrincipal;
public static void main(String args[]){
MovFiguras fig = new MovFiguras();
fig.... | 26.964286 | 68 | 0.56755 |
90bc873e66a1cbfdc034702b4798322a86a1684b | 1,034 | package com.ceiba.repartidor.servicio;
import com.ceiba.dominio.excepcion.ExcepcionDuplicidad;
import com.ceiba.repartidor.modelo.entidad.Repartidor;
import com.ceiba.repartidor.puerto.repositorio.RepositorioRepartidor;
public class ServicioActualizarRepartidor {
private static final String EL_REPARTIDOR_NO_EXIS... | 35.655172 | 112 | 0.777563 |
6db9557a7eb8b366770a0695cde4063341fa8f40 | 88 | package main.fieldRemoved;
public interface IFieldRemoved {
int FIELD_STAY = 1;
}
| 11 | 32 | 0.738636 |
020ff5852dd5a7459c9d6d445e94d4f99f0dde9e | 4,619 | package cn.panda.ronda.base.remoting.codec.msgpack.template;
import cn.panda.ronda.base.helper.MsgPackHelper;
import cn.panda.ronda.base.remoting.message.RequestMessage;
import org.msgpack.packer.Packer;
import org.msgpack.template.AbstractTemplate;
import org.msgpack.template.Template;
import org.msgpack.unpacker.Unp... | 31 | 127 | 0.597315 |
e3a4de085724fd7dcc03143fa91be1baa7de206b | 20,103 | /*
* This file is a part of MI
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* 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 limita... | 42.591102 | 251 | 0.456201 |
cd29345be2e13e0aa738fb3169056d963891afba | 416 | package org.jboss.dashboard.export;
/**
* The datasource definition is invalid, it does not contains the required properties or are not valid.
*/
public class InvalidDataSourceDefinition extends Exception {
public InvalidDataSourceDefinition(String message) {
super(message);
}
public Invali... | 26 | 103 | 0.725962 |
b7cefe0d812cca7f97777ffa9cea5f03856ed837 | 2,663 | /**
* Copyright 2005-2016 Restlet
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or or EPL 1.0 (the "Licenses"). You can
* select the license that you prefer but you may not use this file except in
* compliance with one of these Licenses.
*
* ... | 28.634409 | 79 | 0.644762 |
2228e913151faff838ab8fd168862788fa3ac8f2 | 2,723 | /*
* Copyright 2013-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... | 22.319672 | 127 | 0.716122 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.