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 |
|---|---|---|---|---|---|
ebffb0af4b060ce7e8fc1bc41b09cfd0f3e2eb54 | 13,760 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... | 38.760563 | 112 | 0.603852 |
e2fe1e0c1d7adf68d2f403ee4a7e184a02e2158a | 11,656 | package nourl.mythicmetals.registry;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import nourl.mythicmetals.MythicMetals;
public class RegisterIngots {
//Normal Ingots
public static final Item Adamantite_Ingot = new Item(new Item.Setting... | 93.248 | 123 | 0.798301 |
edb5a586e6c8e194c2be9157fcc8e8a1515dfc65 | 4,346 | package enadesimulado.studio.rafael.enadesimulado.Activity;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.... | 41.390476 | 119 | 0.607455 |
be2c4d58e1894c9a181b18c4bf5abd6848a06164 | 2,035 |
package com.joymain.jecs.bd.service.impl;
import java.util.List;
import java.math.BigDecimal;
import com.joymain.jecs.service.impl.BaseManager;
import com.joymain.jecs.bd.dao.JbdDayBounsCalcHistDao;
import com.joymain.jecs.bd.model.JbdDayBounsCalcHist;
import com.joymain.jecs.bd.service.JbdDayBounsCalcHistManager;
im... | 37 | 137 | 0.762654 |
f84d6f0724bfa79f53200530d8904b25ceee1716 | 5,152 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.xml;
import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.vespa.model.builder.xml.d... | 39.937984 | 144 | 0.632182 |
3b533d7aa667c97233ac47272da51b61aa4e84a3 | 1,548 | package org.mbari.kb.jpa.knowledgebase;
import org.mbari.kb.jpa.DAO;
import org.mbari.kb.core.knowledgebase.LinkRealizationDAO;
import org.mbari.kb.core.knowledgebase.LinkRealization;
import org.mbari.kb.core.knowledgebase.ConceptDAO;
import org.mbari.kb.core.knowledgebase.Concept;
import java.util.Map;
import java.u... | 31.591837 | 85 | 0.703488 |
ea03a1671e9bd51fe50da1263dbeb426997f6519 | 923 | /**
* Copyright (c) 2003-2013 The Apereo Foundation
*
* Licensed under the Educational Community 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://opensource.org/licenses/ecl2
*
* Unless requ... | 27.147059 | 81 | 0.737811 |
8b31cf3774357c2cec95499841dae6e5761584c4 | 266 | package DNA.sdk.info.asset;
/**
* 资产信息
*
* @author 12146
*
*/
public class AssetInfo {
public String assetid; // 资产编号
public String assetname; // 资产名称
public long regAmount; // 注册数量
public String register; // 注册人地址
public String controller; // 控制人地址
} | 17.733333 | 35 | 0.676692 |
92be7167c1533042ea3cb15a4191d8d2a1d50371 | 1,295 | /*
* 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 ambroafb.minitables.merchandises;
import ambroafb.general.editor_panel.EditorPanel;
import ambroafb.general.interfaces.Dialoga... | 31.585366 | 110 | 0.759846 |
5c6603872b4328c772b02410094576b43c133a05 | 315 | package com.digirati.elucidate.service.search;
import com.digirati.elucidate.common.model.annotation.oa.OAAnnotation;
import com.digirati.elucidate.common.model.annotation.oa.OAAnnotationPage;
public interface OAAnnotationPageSearchService extends AnnotationPageSearchService<OAAnnotation, OAAnnotationPage> {
}
| 35 | 116 | 0.863492 |
abe0ad8c96b41a5f850a4dc603e2a5f8d3c23ca9 | 6,692 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package test;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import j... | 25.738462 | 129 | 0.534369 |
728e6258a3f7ae7ec9bebf1c85fbf7fd45a32100 | 5,576 | package io.jenkins.plugins.forensics.miner;
import java.util.Collection;
import java.util.Optional;
import org.junit.ClassRule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestExtension;
import edu.hm.hafner.util.FilteredLog;
import hudson.FilePath;
import hudson.mo... | 38.993007 | 133 | 0.70104 |
61639cede5fa4e07436ab137c32f46b1f35909fb | 343 | package net.datafaker;
/**
* Generates marketing buzzwords.
*
* @since 1.2.0
*/
public class Marketing {
private final Faker faker;
protected Marketing(Faker faker) {
this.faker = faker;
}
public String buzzwords() {
return faker.fakeValuesService().resolve("marketing.buzzwords",... | 17.15 | 85 | 0.644315 |
62f2027645ae099b50bb9939373c997406d5c6bb | 621 | package com.ctrip.zeus.service.clean.impl;
import com.ctrip.zeus.dal.core.ReportDao;
import com.ctrip.zeus.dal.core.ReportDo;
import com.ctrip.zeus.service.clean.AbstractCleanFilter;
import com.ctrip.zeus.service.clean.CleanFilter;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
... | 25.875 | 60 | 0.768116 |
b34a0e5b72d3c4d59f41ff2079c31bf8497f810e | 573 | package model;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class NewUser {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpa");
EntityManag... | 27.285714 | 81 | 0.668412 |
417b465d67d8867e96dd4947ca716e016fa4d464 | 7,587 | package mekanism.client.render.transmitter;
import java.util.HashMap;
import mekanism.api.MekanismConfig.client;
import mekanism.client.render.MekanismRenderer;
import mekanism.client.render.MekanismRenderer.DisplayInteger;
import mekanism.client.render.MekanismRenderer.FluidType;
import mekanism.client.render.Mekani... | 26.527972 | 140 | 0.657836 |
edb73dd0fd5e465abefc6a8718431cd26dbfd70b | 1,606 | package cx.evermeet.versioninfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.PackageManager;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridg... | 32.12 | 89 | 0.80137 |
c67132e238a2a1801b151b60e9b747f569c64f2b | 1,836 | /**
* Copyright (C) 2013-2018 Centro de Investigación en Tecnoloxías da Información (CITIUS) (http://citius.usc.es)
*
* 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://w... | 27.402985 | 112 | 0.619826 |
07552df592150aeac81467a7ccd4a027811d48bb | 1,045 | package com.chuansen.modules.system.service;
import com.chuansen.modules.system.entity.Dept;
import com.chuansen.modules.system.entity.dto.DeptDTO;
import com.chuansen.modules.system.entity.dto.DeptQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheE... | 23.222222 | 64 | 0.698565 |
962d095c2ef3f367b34600e9f328ebb30f39369e | 13,024 | package edu.utexas.listeners;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import org.apache.log4j.Logger;
import edu.utexas.cert.SimpleCert;
import edu.utexas.cert.Tree;
import edu.utexas.cert.TreeNode;
import edu.utexas.util.PathConditionOps;
import gov.nasa.jpf.Config;
import gov.nas... | 27.476793 | 72 | 0.63406 |
7a41f2670788fc1d3c82df160678bafd1cbd9576 | 3,416 | /**
* blackduck-alert
*
* Copyright (C) 2019 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* 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 o... | 52.553846 | 191 | 0.821136 |
6db2e90e17a1ad448a838cefb6fbc7e63fd53e06 | 2,321 | /*
* Copyright 2018 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 in... | 40.017241 | 85 | 0.794054 |
8ceb36eeda85cb162e66dfddf4b81b8494e27c64 | 4,436 | package org.isbar_software.google.qualifications.ovations;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.PrintWriter;
/**
* Problem
It's opening night at the opera, and your friend is the prima donna (the lead female singer). You will not be in the audience, but you w... | 38.241379 | 614 | 0.709197 |
c72fdd0a686f0d6b59af2dc8c2f3825d0e935397 | 1,394 | package us.slemjet.leetcode.easy.from_1_to_50;
public class NextPermutation {
/**
* O(n) time complexity
* O(1) space complexity
* @param nums
*/
public void nextPermutation(int[] nums) {
if (nums.length == 1)
return;
int reverseFrom = 0;
for (int i = ... | 27.88 | 89 | 0.421808 |
1c10a7e06750f2ef0e849f2a738b401dfd1dc7e5 | 206 | package net.goldolphin.maria.api.cli;
import java.util.List;
/**
* Created by caofuxiang on 2017/4/21.
*/
public interface CliCommandHandler {
List<String> list();
String help(String method);
}
| 17.166667 | 38 | 0.703883 |
47bd7ece8d021c7e8da9a545805a97853f823c64 | 645 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.appboy;
import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.appboy.enums.AppboyViewBou... | 30.714286 | 123 | 0.810853 |
6cd6e397fadd82384757d9b033a65d12a94a79fc | 6,606 | /*
* The MIT License
*
* Copyright (c) 2018-2022, qinglangtech Ltd
*
* 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... | 29.891403 | 101 | 0.706176 |
12e540d1a0cf421c0f288642ec56e6bd9beca8d3 | 1,325 | package org.efix.util.format;
import org.efix.util.TestUtil;
import org.efix.util.type.DateType;
import org.junit.Test;
import static org.efix.util.TestUtil.generateLong;
public class DateFormatterTest extends AbstractFormatterTest {
protected static final long MIN_TIMESTAMP = TestUtil.parseDate("19040101");
... | 28.804348 | 81 | 0.713208 |
dd5e05d34b856446bdb4ab912fa4333546e96570 | 587 | package de.szengerle.idoit.api.client.rpc;
public class Response {
String message;
int id;
boolean success;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;... | 16.305556 | 69 | 0.65247 |
e1d0f731c4277f63e0074d0c6663080ab97ee9a5 | 1,665 | package array;
/**
* @Description:
* Given n non-negative integers representing an elevation map where the width of each bar is 1,
* compute how much water it is able to trap after raining.
*
* The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water
*
*
* ... | 29.210526 | 113 | 0.508709 |
bcbc27cde5c7b98d8545bf2ad39a97d62a816529 | 3,950 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.appboy.ui.contentcards.view;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
// Referenced classes... | 40.721649 | 211 | 0.643038 |
f973b9159ff165f43a01638bcb633830c45425a2 | 4,616 | package com.ingidear.webview;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.v... | 29.401274 | 112 | 0.602253 |
42d0695db4b83eded0d529f43c980b44a6013cc5 | 3,617 | /**
Copyright (c) 2018-present, Walmart, 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 in writing, ... | 30.652542 | 103 | 0.659386 |
529e129ed30824887d976810eef6807249c412dc | 1,484 | package skel.Implementations;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class Main {
public static void main(String[] args) {
Employee employee = new Employee("clara", 0, 100);
Manager manager = new Manager("root", 100, 0, 1000);
Manager rive... | 32.26087 | 113 | 0.642183 |
2be7c394ef96a0bccd2b39c9a436651985ee5d43 | 656 | package one.digitalinnovation.interfaces;
public class Programa {
public static void main(String[] args) {
final Carro gol = new Gol();
System.out.println("Marca do Gol : "+gol.marca());
gol.ligar();
final Veiculo trator = new Trator();
System.out.println("Registro do Trato... | 31.238095 | 72 | 0.61128 |
c4d733c519a64a6868ba77810692b506ef0cc8ad | 180 | // Generated automatically from org.w3c.dom.EntityReference for testing purposes
package org.w3c.dom;
import org.w3c.dom.Node;
public interface EntityReference extends Node
{
}
| 18 | 80 | 0.8 |
2594e069a965bac95ff5abe3ba2a26330867789c | 1,265 | /*
* Copyright (c) 2019 FabricMC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 32.435897 | 75 | 0.623715 |
45508db86c6e1cbeeb9e3b52fcc2c5e4bda44ea6 | 5,110 | /**
* Copyright 2009 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 applic... | 37.29927 | 135 | 0.695499 |
e91c958a3806b4ffa706d6f76619e5a3897cfc78 | 1,228 | package org.ottobackwards.dsl.util;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.ottobackwards.dsl.SyslogFieldKeys;
public class StructuredDataUtil {
private static Pattern structuredPattern = Pattern
.compile(SyslogFieldKeys.STRUC... | 29.95122 | 95 | 0.685668 |
4b77eaebf9edd53cdf4ccac4b9301b897f3f0eb0 | 2,383 | package ozj.weather.wf.service;
import org.springframework.stereotype.Component;
/**
* Corn服务类
* @author ozj
* @date 2020-02-25 13:55
*/
@Component
public class CornService {
/**
*
* @param type 秒/分的类型,1 为 每秒/分,2 为 周期,3 为 从 temp 开始每cyclic秒/分执行一次,4 为指定
* @param cyclic 循环时间
* @param temp 开始... | 25.084211 | 80 | 0.382711 |
bbed6e539aaec76d9718e183071d02bc20bbd32e | 2,468 | /*
MIT License
Copyright (c) 2021 xnbox team
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, merge, publish, dis... | 30.097561 | 109 | 0.725689 |
c6f1af478edfa93c5834bcd73540a0929ff80d59 | 980 | package com.github.dapeng.gateway.util;
/**
* desc: Constants
*
* @author maple 2018.08.27 22:37
*/
public class Constants {
public static final int DEFAULT_IO_THREADS = Math.min(Runtime.getRuntime().availableProcessors() * 2, 32);
public static final String DEFAULT_ZOOKEEPER_HOST = "127.0.0.1:2181";
... | 28 | 110 | 0.72449 |
8b5008cbc97e7f2f90433f5529b70ecf2bdc846c | 428 | package com.cls.mymall.common.exception;
public enum BizCode {
UNKNOWN_EXCEPTION(10000, "系统未知异常"),
VALID_EXCEPTION(10001, "参数格式校验失败"),
;
private final Integer code;
private final String msg;
BizCode(Integer code, String msg) {
this.code = code;
this.msg = msg;
}
publ... | 17.12 | 40 | 0.600467 |
eebee72196e18928d3a194d66bf3bbf5b732b051 | 1,143 | /*
* Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://mindorks.com/license/apache-v2
*
* Unless required by a... | 28.575 | 78 | 0.736658 |
6a95d45a8e0dbe7650db3e7be9be0bc452a03106 | 2,297 | /*
* Copyright 2012 University of Chicago
*
* 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... | 31.902778 | 75 | 0.644319 |
7b5cffd26b9160e1cc6d158e7627e11eab081638 | 110 | /**
* Тернарный оператор внутри ofNullable, перегруженная логика
*/
package com.epam.mix.optionaldemo.case8; | 27.5 | 61 | 0.781818 |
06e885138b7d1871b96b0786d71c883b283eee4a | 3,466 | package com.mkl.eu.client.service.vo;
import com.mkl.eu.client.service.vo.tables.Tech;
/**
* Abstract for VO that has the notion of losses.
*
* @author MKL.
*/
public class AbstractWithLoss extends EuObject implements Losses {
/** Number of round loss. */
private Integer roundLoss;
/** Number of third... | 28.178862 | 96 | 0.572706 |
01317bcff6761d8d6fcb86b8c4da167e0497db2d | 1,356 | /*
* Copyright 2020 Google LLC
*
* 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 wr... | 35.684211 | 87 | 0.744838 |
481d5e09525cdac929953079d22d33be421ed68f | 588 | package com.ss.editor.ui.component.bar.action;
import com.ss.editor.Messages;
import com.ss.editor.ui.dialog.plugin.PluginsDialog;
import javafx.scene.control.MenuItem;
/**
* The action to open plugins dialog.
*
* @author JavaSaBr
*/
public class OpenPluginsAction extends MenuItem {
public OpenPluginsAction(... | 21.777778 | 57 | 0.671769 |
8dec7ef44c1e82f050cf285920c6f5510a6fb7de | 239 | package cn.example.life.demo.pattern.template;
/**
* Created by 季先生 on 2018/3/23 10:55.
*/
public class Client {
public static void main(String[] args) {
AbstractStep someOne = new SomeOne();
someOne.join();
}
}
| 19.916667 | 46 | 0.631799 |
829772db3ab5cf8f6ce4416c7e8840095c046170 | 8,152 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.jod... | 27.083056 | 105 | 0.59237 |
9e019b229105a467d202d226b52362d9eb0f2b16 | 3,068 | package com.example.android.basicnotifications;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.... | 38.35 | 99 | 0.668514 |
25b714402a6bf63c08c67094b9d289eddfc174c5 | 2,737 | package pcpanel.dev.niels.mediakeys;
import com.sun.jna.platform.win32.BaseTSD;
import com.sun.jna.platform.win32.User32;
import com.sun.jna.platform.win32.WinDef;
import com.sun.jna.platform.win32.WinUser;
import dev.niels.pcpanel.plugins.Action;
import dev.niels.pcpanel.plugins.Control;
import dev.niels.pcpanel.plug... | 33.378049 | 161 | 0.706978 |
3587856d55d3d0244868d43fc31f05d7009f8a1a | 2,237 | /*
* eID Applet Project.
* Copyright (C) 2009 FedICT.
* Copyright (C) 2009 Frank Cornelis.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version
* 3.0 as published by the Free Software Foundation.
*
* This software is distributed ... | 33.893939 | 91 | 0.736701 |
b69b9fe65fca22a36f071a82d62014ec81f7fd30 | 2,883 | package com.alibaba.tesla.gateway.server.util;
import com.alibaba.tesla.gateway.server.cache.GatewayCache;
import com.alibaba.tesla.gateway.server.repository.domain.RouteInfoDO;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.... | 34.321429 | 132 | 0.663545 |
c6fb4f57172d092a8f72f88d1be36809097ff552 | 841 | package com.subjecttochange.ghhelper.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
*
* @author SubjectToChange
* @version 1
*
* Responds with a 404 error stating that the resource was not found
*/
@ResponseStatus(HttpStatus.NOT_FOUND)
p... | 22.72973 | 71 | 0.680143 |
2c13aa80f46c278ba0784dfc4b2d982c6ce72cdc | 789 | package org.scribble.sesstype.name;
import org.scribble.sesstype.kind.RoleKind;
public class Role extends AbstractName<RoleKind>
{
public static final Role EMPTY_ROLE = new Role();
private static final long serialVersionUID = 1L;
protected Role()
{
super(RoleKind.KIND);
}
public Role(Strin... | 15.78 | 51 | 0.623574 |
6b87738f55e9163c8d878c08d484e6122f5da52e | 348 | package jp.go.ndl.lab.common.utils;
import java.io.File;
import java.util.UUID;
import org.apache.commons.io.FileUtils;
public class TempUtils {
public static File createTempFile() {
File tempDir = FileUtils.getFile("temp");
tempDir.mkdirs();
return FileUtils.getFile(tempDir, UUID.randomU... | 21.75 | 72 | 0.689655 |
fb00d026d65f102109efd136dcdf8cbd25c93e3d | 402 | package generics;
/**
* @author XuYanXin
* @program OnJava8_Example
* @description
* @date 2020/3/12 11:33 上午
*/
// CountedObject.java
// id 自增的计数类
public class CountedObject {
private static long counter = 0;
private final long id = counter++;
public long id() {
return id;
}
@Overr... | 16.08 | 38 | 0.614428 |
4daad4f8a2ad21b034b41adbc087275cdc809eaa | 826 | // Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE
package org.tensorflow.internal.c_api;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.tensorflow.internal.c_api.global.tensorflow.*;
// Operation that has been added to the graph. Valid until ... | 37.545455 | 85 | 0.743341 |
2ca7dcf1179c3d5efa609d6dbd358d0d479da9ad | 2,882 | import javax.swing.*;
import java.awt.*;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
public class VisibleHelper {
private VisibleHelper(){}
public static final Color Red = new Color(0xF44336);
public static final Color Pink = new Color(0xE91E63);
public static final Color Purple... | 34.722892 | 105 | 0.665857 |
0392fe9b6714c731876a175782820754be27e2ef | 5,786 | package PSLHAR;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.configuration.ConfigurationException;
import edu.umd.cs.psl.application.inference.LazyMPEInference;
import edu.umd.cs.psl.application.inference.MPEInference;
import edu.umd.cs.psl.application.learning.weight.maxlikelihood.Ma... | 40.746479 | 154 | 0.753197 |
f60fe42049678820eafb27bb1fc0e2d5c74bc2b9 | 3,677 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.policyinsights.models;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/** Resource collection AP... | 57.453125 | 117 | 0.763666 |
40786016667f75984a77cce49b3f09900f613a12 | 875 | package org.kohsuke.rngom.binary;
import org.kohsuke.rngom.binary.visitor.PatternFunction;
import org.kohsuke.rngom.binary.visitor.PatternVisitor;
public class EmptyPattern extends Pattern {
EmptyPattern() {
super(true, EMPTY_CONTENT_TYPE, EMPTY_HASH_CODE);
}
boolean samePattern(Pattern other) {
return ... | 30.172414 | 85 | 0.762286 |
28e7a6168b5e5b79f27d77953bbbff5a33f23a63 | 11,583 | package jpl.mipl.mdms.FileService.komodo.services.query.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List... | 34.473214 | 79 | 0.563844 |
3d6d4123b580a6fdd8be2190c9ab13504f3a205d | 3,507 | /* ###
* IP: GHIDRA
*
* 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 writin... | 28.512195 | 93 | 0.721699 |
140d3d2b520bd441b7a955d67c1a46fe809712bd | 3,311 | package org.ccctc.common.commonidentity.domain.identity;
import static org.junit.Assert.assertEquals;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.method;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo;
import static org.springframework.test... | 45.986111 | 117 | 0.745394 |
74b52ab7627fa7a4f7a53e09d2b6126e18c1a018 | 1,135 | package ru.job4j.search;
/**
* @author Sergey Volkov (rusobraz@mail.ru)
* @version $Id$
* @since 26.03.2018
*/
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class PhoneDictionary {
private List<Person> persons = new ArrayList<>();
public void add(Person per... | 31.527778 | 219 | 0.666079 |
71020755de9271a62c899cb93837d994d51a5d56 | 4,250 | package me.stoladev.sdSkills.managers;
import me.stoladev.sdSkills.Main;
import me.stoladev.sdSkills.components.Profile;
import me.stoladev.sdSkills.components.Skills;
import me.stoladev.sdSkills.configs.ProfileConfig;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
i... | 34.274194 | 98 | 0.658118 |
61ebb2d0bb9ab10adc9cb3214459f4bf27569271 | 14,417 | /*
* Copyright (C) 2017 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... | 42.653846 | 100 | 0.58438 |
33922ba1058f0cae2d6b96d0d74839dce52bc6e2 | 568 | // generics/watercolors/Watercolors.java
// (c)2021 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
package generics.watercolors;
public enum Watercolors {
ZINC, LEMON_YELLOW, MEDIUM_YELLOW, DEEP_YELLOW,
ORANGE, ... | 35.5 | 63 | 0.788732 |
8d5874e1aea9c30374b1dedaadfb840c5198f518 | 1,317 | package org.firstinspires.ftc.teamcode.teleop;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
@Disabled
@TeleOp (name = "GG: flyWheelTest", grou... | 36.583333 | 99 | 0.663629 |
f4ed6d0a3c6290770b01f3b1a78326347056c818 | 1,672 | package cn.imdada.overwatch;
import java.util.HashMap;
import java.util.Map;
class ServerStats {
private Integer time;
private String system;
private Map<String, Map<String, NodeStats>> stats;
public static class NodeStats {
private Integer rpm;
private Integer fpm;
public... | 23.549296 | 71 | 0.587321 |
039ea371c2bc6bd16894f45b324db968cfb5431d | 2,578 | /**
* Copyright 2010-2018 Ralph Schaer <ralphschaer@gmail.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/licenses/LICENSE-2.0
*
* Unless required by... | 29.632184 | 80 | 0.732739 |
b2f37529e7b435a1f7c346452c2bf3c3ebb8adb6 | 2,187 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | 34.714286 | 116 | 0.692273 |
698cdce2ddee8609cd00037a413e58b061cd9f58 | 311 | package org.com.allen.enhance.basic.cache;
import java.util.concurrent.locks.ReadWriteLock;
public interface Cache<K, V> {
String getID();
void putObject(K k, V v);
V getObject(K k);
V removeObject(K k);
void clear();
int getSize();
ReadWriteLock getReadWriteLock();
}
| 14.136364 | 48 | 0.649518 |
3e2495c92cc228aeb39ff1094975d1214f94539e | 533 | package com.hellopopartz.hidlauncher.data.res;
import android.graphics.drawable.Drawable;
/**
* Created by Resh on 22/02/2015.
*/
public class AppInfo {
public CharSequence appPackage;
public CharSequence appName;
public Drawable appIcon;
public boolean official;
public AppInfo(CharSequence app... | 25.380952 | 103 | 0.707317 |
6db5e8aa5d4cf6d80de08b464d3811836661edd7 | 2,013 | package test.io.github.dbstarll.dubai.model.service.attach;
import io.github.dbstarll.dubai.model.collection.Collection;
import io.github.dbstarll.dubai.model.service.ServiceFactory;
import io.github.dbstarll.dubai.model.service.attach.CompanyAttach;
import io.github.dbstarll.dubai.model.service.test.TestEntity;
impor... | 21.645161 | 83 | 0.653254 |
e05b2fb083ca46715204f5828f0c4515e13f37b9 | 531 | package nyu.adb.Locks;
import lombok.Getter;
import java.util.Arrays;
/**
* Lock types supported by the database/datamanager.
*/
public enum LockType {
READ("read"),
WRITE("write");
@Getter
private final String value;
LockType(String value) {
this.value = value;
}
LockType ge... | 20.423077 | 112 | 0.653484 |
801d15de444773b33c9d685eec39035c40039f21 | 686 | package com.example.annotation;
import java.lang.annotation.*;
/**
* <pre>
* 只是个标识 与 ConfigurationProperties(prefix) 配合使用
* 使用此注解动态配置要实现get set
* 支持数据类型为:
* Integer int
* Long long
* Double double
* Boolean boolean
* String
* S... | 23.655172 | 76 | 0.619534 |
c998f7fc7bf17713d01322481ff6cd1cd419e136 | 1,706 | package net.oschina.app.improve.detail.general;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import net.oschina.app.improve.bean.News;
import net.oschina.app.improve.bean.SubBean;
import net.oschina.app.improve.detail.v2.DetailActivity;
import net.oschina.app.improve.detail... | 31.592593 | 70 | 0.682298 |
b44532e938a7d4d431489e6c0af16883816f0d95 | 5,957 | package com.wecoo.qutianxia.manager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.Priority;
import com.bumptech.glide.... | 32.911602 | 103 | 0.606345 |
34ac7f38802e038decb5a8cd77bc1eac6a511df8 | 7,606 | package com.jingyuyao.tactical.view.world.system;
import com.badlogic.ashley.core.ComponentMapper;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.google.common.base.Preconditions;
import com.google.common.eventbus.Subscribe... | 34.41629 | 96 | 0.732185 |
61db527ec636716b57e0e80d37faf3aac2c65183 | 6,263 | package com.exozet.android.core.utils;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.WindowManager;
import net.kibotu.logger.Logger;
import java.security.MessageDigest;
import j... | 33.854054 | 134 | 0.570334 |
90ef9956d86c59699a791a94f4e370357e717cd7 | 1,250 | /*
* Copyright 2018 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 ... | 28.409091 | 76 | 0.7096 |
39907f6d13086903d5a5e532936a61cd4606c24c | 8,181 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 33.256098 | 109 | 0.641975 |
2d807d38c3edff0f63cea0ddd5b0d342760dda0e | 2,383 | /*-
* Copyright (C) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 28.369048 | 96 | 0.660092 |
bd62914c2de78d3f81db03053c79323a14911a52 | 880 | package org.devon.algorithms.matrix;
import org.junit.Test;
/**
* @author dewen.ye
* @date 2019/2/18 23:29
*/
public class ThreadCacheParallelIndividualMultiplierTest {
@Test
public void multiply() {
MatrixGenerator<Double> matrixGenerator = new MatrixGenerator<>();
Double[][] matrix1 = ... | 32.592593 | 107 | 0.685227 |
2ff2e053ce84cc8c306980f9faf2d1f3facd30f6 | 14,136 | /*
* Copyright 2014 Salesforce, Inc. (http://salesforce.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/licenses/LICENSE-2.0
*
* Unless requir... | 46.653465 | 133 | 0.629598 |
f11be357e82479a2dd45051fd3fa09668b34601c | 617 | package com.formssi.frms.system.service;
import java.util.List;
import java.util.Map;
import com.formssi.frms.common.domain.Tree;
import com.formssi.frms.system.domain.SysDept;
/**
* 部门管理
*
* @author chglee
* @email 1992lcg@163.com
* @date 2017-09-27 14:28:36
*/
public interface DeptService {
SysDept get(L... | 17.138889 | 46 | 0.713128 |
36e26cddd604d3099f95ba8558fe36b74b19ff15 | 1,914 | package havis.llrpservice.data.message.parameter;
import havis.llrpservice.data.message.parameter.ParameterTypes.ParameterType;
public class ROSpecStopTrigger extends Parameter {
private static final long serialVersionUID = 3824731294812043849L;
private TLVParameterHeader parameterHeader;
private ROSpecStopTrigg... | 31.377049 | 145 | 0.820794 |
518a09d2d7b32525a1f7a5bf61e99a6b209333c8 | 1,880 | package me.autopvpkit.listeners;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
import me.autopvpk... | 28.923077 | 118 | 0.691489 |
724f0b470c49b9733059ee813ebc78a429473288 | 959 | package romanowicz.projectx.Database;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import a... | 28.205882 | 58 | 0.771637 |
a8992369e7281634250b63125ce6f419c2cf433e | 1,555 | package com.amazon.opendistroforelasticsearch.security.securityconf;
import java.util.Map;
import java.util.Set;
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.collect.Tuple;
import com.amazon.opendistrof... | 45.735294 | 175 | 0.830868 |
4d80009aad590f8438b2e5d20c330bd4571fc61b | 1,886 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.suggestions.tile;
import android.content.Context;
import android.content.res.Resources;
import android.util.Attribute... | 41.911111 | 93 | 0.683987 |
5b0a9ef3e7a6f5bffe00f526eacdf15557b51977 | 2,911 | /*
* Copyright 2011 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 22.92126 | 75 | 0.664377 |
ba2893253da81f3adfedbae5b73eab001ea468bf | 3,572 | package com.maxml.timer.ui.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import a... | 31.333333 | 98 | 0.676092 |
57533a4f70c8f0db7cf21c039b574657212dec1f | 1,566 | package com.alphago365.octopus;
import com.alphago365.octopus.config.DownloadConfig;
import com.alphago365.octopus.config.HandicapAnalysisConfig;
import com.alphago365.octopus.config.JobConfig;
import com.alphago365.octopus.config.JwtConfig;
import org.springframework.boot.ApplicationArguments;
import org.springframew... | 37.285714 | 118 | 0.783525 |
8acfcf87cc83ec65e2fa562e39e9c44283e8b53e | 2,244 | /**
* 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
* dist... | 29.526316 | 81 | 0.776292 |
365f7ee758ce0c50b3021e025329e630b2fd0712 | 1,538 | package examples.corejava.example_fileoperations.one;/**
* @author : Nitin Jain
* @mailto : official.nitinjain@gmail.com
* @created : 3/12/2022, Saturday
**/
import com.sun.org.slf4j.internal.Logger;
import com.sun.org.slf4j.internal.LoggerFactory;
import examples.corejava.example_fileoperations.one.*;
import ja... | 26.067797 | 78 | 0.618336 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.