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 |
|---|---|---|---|---|---|
791e6ea90b4fd800056fb8af6c6affa7f6d1cdd6 | 1,511 | package info.u_team.extreme_cobble_generator.data.provider;
import static info.u_team.extreme_cobble_generator.init.ExtremeCobbleGeneratorBlocks.GENERATOR;
import java.util.function.BiConsumer;
import info.u_team.u_team_core.data.CommonLootTablesProvider;
import info.u_team.u_team_core.data.GenerationData;
import in... | 35.97619 | 95 | 0.81006 |
8621fe86d14026f39db687d5b44c1201fc09caee | 2,678 | package com.ossez.usreio.tests.client;
import com.ossez.usreio.client.RetsException;
import com.ossez.usreio.client.RetsSession;
import com.ossez.usreio.common.rets.RetsVersion;
import com.ossez.usreio.util.SessionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.junit.jupiter.api.Test;
import org.junit.... | 28.795699 | 123 | 0.629948 |
49dc32e820a505575c870c07ee11bbf68426c80d | 7,999 | /**
* 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... | 36.861751 | 147 | 0.671209 |
f97728fb3df20bc2d5b7e003b617cf81042702b0 | 4,943 | package pt.ulisboa.tecnico.cmov.ubibike.Friends;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widge... | 35.056738 | 125 | 0.658305 |
35622c00948741b162167dec5da4048200ccd54d | 1,425 | package com.midas.junior.msglegion;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
public class MessageAdapter extends Recycle... | 26.886792 | 102 | 0.682105 |
7a53db8df7a4d2e319647ff9c4007560614ee043 | 13,681 |
package lecturerPackage;
public class DisplayLecturerProfile extends javax.swing.JFrame {
public int index;
public DisplayLecturerProfile() {
initComponents();
}
public void DisplayLecturerProfile(int in){
this.index = in;
name.setText(LecturerRecord.getLecturer... | 56.533058 | 171 | 0.658212 |
c25d2ea1748c67da83b54abcb65c754408e612a7 | 831 | package com.wfsample.service;
import com.wfsample.common.dto.ResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
@Service
public... | 29.678571 | 95 | 0.77858 |
5f51748f1663703e0c30766a8296f4ddd1c02629 | 3,593 | package com.kxmall.market.app.api.api.goods;
import com.kxmall.market.core.annotation.HttpMethod;
import com.kxmall.market.core.annotation.HttpOpenApi;
import com.kxmall.market.core.annotation.HttpParam;
import com.kxmall.market.core.annotation.HttpParamType;
import com.kxmall.market.core.annotation.param.NotNull;
imp... | 59.883333 | 135 | 0.687169 |
778c83dc83d75b544ec92b29385eb4122852d1fa | 912 | package mage.cards.d;
import mage.abilities.effects.common.search.SearchLibraryAndExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.TargetPlayer;
import java.util.UUID;
/**
* @author fireshoes
*/
public final class DenyingWind extends C... | 27.636364 | 120 | 0.717105 |
be712a6efdde348c787babe688166b3916dbea32 | 2,838 | /*******************************************************************************
* Copyright 2016 Intuit
* <p>
* 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
* <p>
* http://www.apache.o... | 27.823529 | 85 | 0.615574 |
8fa43930ddf4a86f899225fbe40984a6d2b065e2 | 7,441 | package com.serenegiant.libcommon;
/*
* libcommon
* utility/helper classes for myself
*
* Copyright (c) 2014-2021 saki t_saki@serenegiant.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 Lic... | 29.883534 | 97 | 0.721005 |
dbeb73f2bc79bd8af5d755bb3ff7e7b7c78084de | 1,285 | package br.com.alura;
public class TestaCursoComAluno {
public static void main(String[] args) {
Curso javaColecoes = new Curso("Dominando as coleções do Java",
"Paulo Silveira");
javaColecoes.adiciona(new Aula("Trabalhando com ArrayList", 21));
javaColecoes.adiciona(new Aula("Criando uma Aula", 20));
... | 29.883721 | 71 | 0.702724 |
4c26e66897ab4be0cada7000c32383512eaac188 | 787 | package com.nd.android.rxjavademo.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import com.nd.android.rxjavademo.R;
/**
* BaseCompatActivity
* <p>
* Created by HuangYK on 16/8/30.
*/
public class BaseCompatActivity extends AppCompatActivity {
... | 21.861111 | 59 | 0.670902 |
c57f8307469dc0dfcaa9df7e872c9317342a6d52 | 16,136 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 42.914894 | 133 | 0.618741 |
6df3b087e56d681c4034a75bd757212b88b97d00 | 215 | package com.rhymes.app.admin.chart.util;
import java.util.Date;
public class AdminChartLastDay {
public int LastDay(int month) {
int lastDay = ( new Date( 2019, month, 0) ).getDate();
return lastDay;
}
}
| 16.538462 | 56 | 0.697674 |
13e449d874c61f4893acb187e2ee4d1e3f5d91e1 | 632 | /*
* 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 Triangle.AbstractSyntaxTrees;
import Triangle.SyntacticAnalyzer.SourcePosition;
/**
*
* @author karol
*/
public class Packag... | 24.307692 | 79 | 0.71519 |
c132bf7e2a2c460a5f52e845e29190f906b9a524 | 4,168 | package com.rob.model;
import java.math.BigDecimal;
import java.time.LocalDate;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CandidatePrevEmployment {
@JsonProperty(value = "id")
private int id;
@Json... | 23.027624 | 76 | 0.774952 |
ddefa1a553c95e2ebd951839307aed0233cdf439 | 1,644 | package com.qa.ims.persistence.domain;
import org.junit.Test;
import nl.jqno.equalsverifier.EqualsVerifier;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
public class OrderTest {
List<Item> testItems = new ArrayList<>();
Order testOrder = new Order(null, null, ... | 23.15493 | 75 | 0.72871 |
534f20047b353af73509fc819365e7650f938285 | 1,130 | package it.drwolf.alerting.conf;
import java.io.Serializable;
import javax.persistence.EntityManager;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import it.drwolf... | 20.178571 | 65 | 0.742478 |
933b871bb6b74288b555737869a58b7096cbfcb2 | 1,369 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 38.027778 | 105 | 0.768444 |
535dbc30824b8629010eacb7acac5a4bf8a7b66f | 792 | package zdream.nsfplayer.ftm.executor.effect;
import zdream.nsfplayer.ftm.executor.FamiTrackerRuntime;
/**
* 音键停止播放声音的效果. 单例
*
* @author Zdream
* @since 0.2.1
*/
public class NoteHaltEffect implements IFtmEffect {
private static NoteHaltEffect instance = new NoteHaltEffect();
private NoteHaltEffect() {
/... | 16.851064 | 68 | 0.698232 |
4cd79e2fb341054ad39af24bc296db79049defeb | 11,366 | package bloom;
import java.util.ArrayList;
import java.util.Locale;
import java.util.Random;
import stream.ConcurrentGenericReadInputStream;
import stream.ConcurrentReadInputStream;
import stream.FASTQ;
import stream.FastaReadInputStream;
import stream.Read;
import structures.ListNum;
import dna.AminoAcid... | 34.02994 | 119 | 0.616048 |
1690a725f3221fa49e1e4f1943813eebdf1543c2 | 3,674 | package view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import com.a34... | 29.869919 | 117 | 0.638269 |
5ad8ec2b5c57a33a3f940e273b1117b71c96dff2 | 240 | package com.example.verificationcodeservice.config;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.context.annotation.Configuration;
@EnableRabbit
@Configuration
public class RabbitMQConfig {
}
| 24 | 63 | 0.858333 |
4231bbf08e81f1ac2a8651fb0403076be59042d1 | 309 | package com.anor.behaviortree;
public class LeafNode<Context extends Object> extends Node<Context> {
private Action<Context> action;
public LeafNode(Action<Context> action) {
this.action = action;
}
@Override
public NodeStatus process(Context w) {
return action.perform(w);
}
}
| 18.176471 | 70 | 0.702265 |
b3558cfc50c1d09a0b1cd1da1db90cc17d666f62 | 165 | package com.github.jolice.bot.command;
import com.github.jolice.bot.MessageEvent;
public interface CommandHandler {
void handle(MessageEvent messageEvent);
}
| 18.333333 | 43 | 0.793939 |
784242bcdd81a5758d15fe1b590322141095cf00 | 1,936 | package io.quarkus.runner.bootstrap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;
import org.jboss.logging.Logger;
public class ForkJoinClassLoading {
private static final Logger log = Logger.getLogger(ForkJoinClassLoading.class.getN... | 37.960784 | 171 | 0.59814 |
4db69391f75f19c76978d4cc345d7c540cc1aa21 | 20,288 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org... | 58.298851 | 514 | 0.744479 |
c55f19c4aa931a6ae485138eb774b93db7f4cf4d | 6,236 | package com.alibaba.tesla.appmanager.server.controller;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.tesla.appmanager.api.provider.DeployAppProvider;
import com.alibaba.tesla.appmanager.auth.controller.AppManagerBaseController;
import com.alibaba.tesla.appmanager.common.pagination.Pagination;
import com.... | 38.975 | 111 | 0.69628 |
06e65f6752108f5ab067724a271c1d3853001bb7 | 1,727 | package com.mfinance.everjoy.app;
import java.util.ArrayList;
import java.util.HashMap;
import android.content.Context;
import android.os.Messenger;
import android.view.View;
import android.widget.Button;
import com.mfinance.everjoy.R;
import com.mfinance.everjoy.app.bo.OrderRecord;
import com.mfinance.everjoy.app.... | 26.166667 | 86 | 0.767226 |
f541d7f216ece5f319214501ba90da4689c8c21d | 319 | package org.mcupdater.carnivora;
public class Version {
public static final String MOD_ID = "Carnivora";
public static final String MOD_NAME = "Carnivora";
public static final String VERSION = "0.1.4";
public static final String CHANNEL = MOD_ID;
public static final String TEXTURE_PREFIX = "carnivora:";
}
| 26.583333 | 58 | 0.749216 |
06608c12258726c059a916762c3be2c768ba52bf | 4,302 | package com.michaelfotiadis.androidclocks;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import com.michaelfotiadis.android... | 23.380435 | 89 | 0.711762 |
b5029f8b047e2767470edab57e127b9dafbbc67a | 538 | package com.nano.common.logger;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
* Log的实体类
* @author nano
*/
@Data
@NoArgsConstructor
@ToString
public class LogInfo {
/**
* 等级
*/
private String level;
/**
* 产生的来源
*/
private String source;
/... | 14.540541 | 65 | 0.598513 |
6129c0457686ae8a0e1925cf002572202464bb6f | 18,775 | /*
* 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... | 47.055138 | 123 | 0.666738 |
1e303ca947f7fe8a9c0b8f99c66bc1cb8cb41790 | 2,551 | package de.hw4.binance.marketmaker;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.... | 34.472973 | 139 | 0.777342 |
3721a2581feee152d9e4f4e2014d6814496ed308 | 673 | package br.com.hoyler.apps.java.demojavafxspring.tools;
public enum ViewFXML {
LOGIN("Login", "br.com.hoyler.apps.java.demojavafxspring.gui");
private final String FileName;
private final String FilePackage;
ViewFXML(String FileName, String FilePackage) {
this.FileName = FileName;
thi... | 25.884615 | 108 | 0.643388 |
a41fb34a005e5e7deabda738269a4f9a8aaf234d | 2,807 | package pt.maisis.search.web;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging... | 34.231707 | 112 | 0.619166 |
ec68c5052513e5bb327ce46d1e3e93e910c7b682 | 411 | /*
* Copyright (c) 2019. Aaron Beetstra & Anti-Social Engineers
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT license.
*
*/
package acecardapi.apierrors;
public class InputValueViolation extends FieldViolation {
public InputValueViolatio... | 22.833333 | 68 | 0.737226 |
c1815729510498084848b867acd9cc38e26c5b4d | 3,077 | // --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, 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:/... | 58.056604 | 190 | 0.749756 |
7097864293ba7580cfcf5005ea472d925326da9d | 387 | package com.icepoint.framework.code.sysgroup.dao;
import com.icepoint.framework.code.sysgroup.entity.SysGroup;
import com.icepoint.framework.data.mybatis.RepositoryMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 分组表(SysGroup)表数据库访问层
*
* @author makejava
* @since 2021-06-05 11:04:09
*/
@Mapper
public i... | 22.764706 | 71 | 0.782946 |
0a1c4aab25525660657017dfca1632440a62e61b | 3,536 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.herograve.page.index;
import com.herograve.topic.Topicarea;
import com.herograve.util.HttpSessionUtil;
import com.herograve.util.RequestValidate;
import com.opensymphony.xwork2.ActionSupport;
import java.ut... | 28.063492 | 115 | 0.59983 |
558384e52008d8f659f841dc5036a856bea4c6c5 | 1,390 | package com.mulesoft.raml1.java.parser.impl.methodsAndResources;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import com.mulesoft.raml1.java.parser.core.JavaNodeFactory;
import com.mulesoft.raml1.java.parser.model.methodsAndResources.OAuth1SecuritySchemeSettings;
import com.mulesoft.raml1.java.p... | 30.888889 | 122 | 0.763309 |
1a35eb40cc511ae9476433e3f9a9e01b9c138601 | 5,205 | package org.zcorp.java1.storage.serializer;
import org.zcorp.java1.model.*;
import java.io.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public class DataStreamSerializer implements StreamSerializer {
private interface Elemen... | 37.992701 | 130 | 0.536984 |
01bf316e4bb8907243076e88b823921fd415776c | 12,696 | /*
Copyright 2012 - 2014 Jerome Leleu
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... | 51.193548 | 279 | 0.705577 |
7ccc62f7d04983e96a9e7123d4770d472ee45a9a | 1,729 | package com.blockchain.store.playmarket.data.entities;
import android.os.Parcel;
import android.os.Parcelable;
import java.text.DecimalFormat;
public class IcoBalance implements Parcelable {
public String address;
public String balanceOf;
public String decimals;
protected IcoBalance(Parcel in) {
... | 27.444444 | 84 | 0.651822 |
5b0115c0e1e27c2de2a67ef4c6b0276df61457cc | 386 | /*
* Copyright (c) 2004, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.jdbc3;
import org.postgresql.ds.PGConnectionPoolDataSource;
/**
* @deprecated Please use {@link PGConnectionPoolDataSource}
*/
@Deprecated
public c... | 24.125 | 70 | 0.753886 |
a44942774033e7b0d2d4519d3c6f1fba8192450f | 1,872 | /*
* -
* #%L
* Pipeline: AWS Steps
* %%
* Copyright (C) 2017 Taimos GmbH
* %%
* 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
*
... | 31.728814 | 106 | 0.742521 |
44cdc9048984fec79beeca0339c31c71d979f696 | 349 | package tech.aistar.design.factory.abstracts;
/**
* 本类用来演示:
*
* @author: success
* @date: 2020/8/3 2:19 下午
*/
public class PhoneXFactory implements ProductFactory{
@Override
public Sender produceSender() {
return new QQSender();
}
@Override
public Caller produceCaller() {
retu... | 17.45 | 53 | 0.638968 |
649d62fa1768a0cdd45013800d75f6283bed4d03 | 5,871 | /*
* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. 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/license... | 46.968 | 140 | 0.697666 |
56ae1595129376d165fbffe4b2328400677206ce | 2,189 | package com.xuzimian.java.learning.spring.security.configuration;
import org.jasig.cas.client.session.SingleSignOutFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.cas.web.CasAuthenticat... | 39.089286 | 107 | 0.751942 |
0d2a664796845675cd2ef39f781733c057b07a0a | 11,866 | /*
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... | 35.740964 | 95 | 0.614276 |
6b1818e3fe05ac22c074eb34ff70bbc4351e993b | 6,652 | package dbao;
import java.util.Arrays;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import dbo.Food;
/**
*
* @author MatthewsLaptop
* @see Food
* @version 1.0.0 This class is used in conjunction with the Food class. It is
* the go between for the database a... | 24.820896 | 133 | 0.624023 |
cbb5158df15a5d4afdc7ea63b7ad3c81eefb6238 | 1,870 | /*
* Copyright (C) 2017, Rockwell Collins
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the 3-clause BSD license. See the LICENSE file for details.
*
*/
package fuzzm.lustre.evaluation;
import java.util.ArrayList;
import java.util.Collection;
import java.util.H... | 24.605263 | 73 | 0.670053 |
e1f5c55008b961ca2bce139169a43d6c25f1f4ef | 797 | package com.fit5136.missionToMars.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public abstract class User {
private final long userId;
private final String userName;
private String password;
public User(@JsonProperty("userId") long userId, @JsonProperty("userName") String use... | 24.151515 | 96 | 0.622334 |
4f1b24606620e22deb96cbb87adda70b68154dae | 2,295 | package com.example.navigationview;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
im... | 29.805195 | 116 | 0.655773 |
e1066ed14c175b9c87eb867a649f8bc003eccb63 | 14,979 | package com.ouc.dcrms.video;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import java.awt.Frame;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swi... | 32.00641 | 126 | 0.642166 |
8eae49b7bb306ef7c756d604b1d9f5bb2412140b | 17,027 | /*
* 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 ... | 50.227139 | 175 | 0.678687 |
0ec9267f0dfca4e9e3505db5406747325677fa0e | 27,955 | /*
* Copyright <2021> 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://www.apache.org/licenses/LICENSE-2.0
*
* or i... | 54.281553 | 107 | 0.608693 |
52fdcb75119e75b6fdd17f379ba95b4e8db94980 | 1,469 | package com.firebase.uidemo;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.firebase.uidemo.auth.AuthUiActivity;
/**
* Created by mgumiero9 on 04/12/16.
* This is the splash screen activity. It also cont... | 30.604167 | 100 | 0.667801 |
ae5bd49227bd743b988ce56ce86b992fa920a9a0 | 617 | package org.rhett.mysecurity.service.impl;
import org.rhett.mysecurity.entity.SysUser;
import org.rhett.mysecurity.mapper.SysUserMapper;
import org.rhett.mysecurity.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @Author Rhet... | 24.68 | 62 | 0.779579 |
4bfa455143f71723c954b13723194ac402b32277 | 3,442 | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.sherpa.v2;
import java.util.List;
import java.util.Map;
/**
* Plain java repre... | 26.682171 | 109 | 0.695235 |
8321e3f0b39c7acdb6b8196c6a1e9a6319c88277 | 2,956 | /**
* 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... | 32.483516 | 95 | 0.700271 |
36be92314dfc9fde8b5a5a45ed58648d7da0db75 | 11,844 | /*
* 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 ... | 43.069091 | 126 | 0.669453 |
f98ac8af12b913571d1e8e8d3e54b3a08ca2239f | 392 | /*
* 开机启动接受boot complete消息 启动Device服务
*/
package com.rongyan.hpmessage;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class BootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context arg0, Intent arg1) {
Intent intent = new... | 20.631579 | 57 | 0.783163 |
16aa797558a97967317677f0e71468bb0d48c362 | 2,427 | package net.wukl.cacofony.http2;
import net.wukl.cacofony.http2.frame.FrameReader;
import net.wukl.cacofony.http2.frame.FrameWriter;
import net.wukl.cacofony.server.Connection;
import net.wukl.cacofony.server.ServerSettings;
import net.wukl.cacofony.server.protocol.ProtocolFactory;
import java.util.concurrent.Executo... | 29.240964 | 77 | 0.660898 |
cbebfb0950bbea12b458ae16e4944d5978d716a5 | 2,433 | package com.game.misc.utils;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.*;
import static com.game.misc.Vars.PPM;
/**
* Created by Ash on 09/02/2016.
*/
public class Box2dUtils {
private static float density = 1f;
private static float friction = 0.9f;
public static Bod... | 30.037037 | 131 | 0.618989 |
9277b30982248033fc3b863551d47d595fb355ba | 3,805 | /*
* Copyright (c) 2015, Florent Hedin, Markus Meuwly, and the University of Basel
* All rights reserved.
*
* The 3-clause BSD license is applied to this software.
* see LICENSE.txt
*
*/
package ch.unibas.fittingwizard.infrastructure.base;
import ch.unibas.fittingwizard.application.scripts.base.ScriptExecutionE... | 27.773723 | 107 | 0.617608 |
a51e4b837462c2e1fa41fbf0e169e440a739702d | 5,635 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 30.961538 | 117 | 0.675599 |
428f7f089c88b865812012d72716d6ab0188e98e | 1,458 | package com.xxkj.bean;
import org.springframework.context.annotation.Bean;
/**
* Created by Administrator on 2017/5/7.
*/
public class UserInfo {
private int uid;
private String username;
private String password;
private int status;
private String code;
private String email;
publi... | 19.184211 | 103 | 0.588477 |
965c74a8de678526d690efbaba8811ed4abf1c2d | 973 | package multithread.synchronize.test23;
/**
* @author: linghan.ma
* @DATE: 2018/1/29
* @description:
*/
/**
* 验证:volatile非原子性
* 100个线程,由于addCount未加synchronized
*/
public class MyThread extends Thread {
//public static int count;
volatile public static int count;
//synchronized static private ... | 19.078431 | 52 | 0.526208 |
ca608c59addf8671090fe1f0c1cc3a7c8dbc07ad | 466 | package com.stats.aggregator.DTOs.enums;
import com.stats.aggregator.common.utils.EnumHelper;
public enum FilterDataType {
UNKNOWN(0),
STRING(1),
INT(2),
LONG(3),
FLOAT(4),
DATETIME(5);
private final int id;
FilterDataType(int id) { this.id = id; }
public int getValue() { return i... | 22.190476 | 72 | 0.671674 |
9cff3ed196ed01d0cbfba0ba9456201b064b24de | 3,884 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.wpilibj.AnalogGyro;
import edu.wpi.first.wpilibj.geometry.Pose2d;
import edu.wp... | 38.455446 | 100 | 0.726313 |
886d834d113e4208090484754b334a27f5095f89 | 2,137 | package tacos.data;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import org.springframework.stereotype.Repository;
import java.util.Dat... | 35.032787 | 115 | 0.679457 |
3fabc01ad1e3e61f1d9c19891cf9e15f8bafe00e | 9,351 | package com.github.mmolimar.kafka.connect.fs.file.reader;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.kafka.c... | 41.193833 | 132 | 0.585178 |
f431756b05ef1ed70bf051373406b24a5f434021 | 5,888 | package cl.tiocomegfas.ubb.loud.controller;
import android.content.Context;
import android.text.TextUtils;
import cl.tiocomegfas.ubb.loud.backend.listeners.OnBuildLoudTreeListener;
import cl.tiocomegfas.ubb.loud.backend.listeners.OnLoadDataListener;
import cl.tiocomegfas.ubb.loud.backend.listeners.OnQueryCadenaMandoL... | 41.464789 | 176 | 0.709069 |
bab7c7707f1ec859c60547c8d19fd5494253d7ca | 35,569 | package com.foryatto.onetoolbox;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.drawerlayout.widget.DrawerLayout;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.widg... | 52.077599 | 167 | 0.380556 |
387b1d95d6120888be69f0ce878d418b7e8b4227 | 1,066 | package com.cqupt.master_helper.dao;
import com.cqupt.master_helper.entity.VideoRelease;
import com.cqupt.master_helper.utils.DruidUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import java.sql.SQLException;
import java.util.ArrayList;
import java.ut... | 26.65 | 76 | 0.644465 |
50e7295d54e0df4f6639cca943e628090bc12707 | 962 | package com.penglecode.xmodule.common.cloud.hystrix;
import java.util.concurrent.Callable;
import org.springframework.util.Assert;
/**
* 代理的Callable
*
* 解决将主线程的请求上下文参数添加到hystrix执行子线程中去
*
* @param <V>
* @author pengpeng
* @date 2020年2月12日 下午8:54:09
*/
public class DelegatingCallable<V> impl... | 23.463415 | 86 | 0.709979 |
0bde5ea00836f97fc26400b9b074310fd8964e01 | 6,474 | /*
* 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... | 37.639535 | 104 | 0.694161 |
5e82f8f0b9d26acf770ad9a33102fabc4bd49959 | 673 | package org.togglz.slack;
import org.togglz.core.logging.Log;
import org.togglz.core.logging.LogFactory;
import org.togglz.core.util.Preconditions;
import java.util.LinkedList;
import java.util.List;
class ChannelsProvider {
private static final Log log = LogFactory.getLog(ChannelsProvider.class);
private ... | 25.884615 | 92 | 0.71471 |
405eacab4a5dcdfc84e2ccd6ef057b2a8b4339c9 | 2,836 | package com.emistoolbox.server.servlet;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
... | 24.448276 | 101 | 0.683004 |
decbd8aec99cc42e216c5b2626f0e7179f7f91db | 31,633 | package com.racersystems.protege.preferences;
import com.racersystems.protege.RacerProInstalledBinaryInfo;
import org.protege.editor.core.ui.util.ComponentFactory;
import org.protege.editor.owl.ui.preferences.OWLPreferencesPanel;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import java.awt.*;
impo... | 47.425787 | 176 | 0.668226 |
0d28dc2c42178dd1b9296821d13968f0a34dd773 | 6,675 | package com.bdxh.system.controller;
import com.bdxh.common.utils.BeanMapUtils;
import com.bdxh.common.utils.BeanToMapUtil;
import com.bdxh.common.utils.ObjectUtil;
import com.bdxh.common.utils.SnowflakeIdWorker;
import com.bdxh.common.utils.wrapper.WrapMapper;
import com.bdxh.system.dto.AddAppConfigSecretDto;
import c... | 43.064516 | 191 | 0.700375 |
b332d9f95a5e7c9068a1ff29475bcbbf6c0ed50b | 429 | package com.example.functional;
/**
* Created by debasishc on 4/9/16.
*/
public class Address {
private String street;
private City city;
public Address(City city, String street) {
this.city = city;
this.street = street;
}
public Option<City> getCity() {
return Option.op... | 18.652174 | 46 | 0.615385 |
861db2588a6a7a7d4199482d02966d3e069c1a2d | 3,083 | package com.diamon.pantalla;
import com.diamon.nucleo.Juego;
import com.diamon.nucleo.Pantalla;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.hardware.SensorEvent;
import android.view.KeyEvent;
import android.view.MotionEvent;
public class PantallaContinuar extends Pantalla {
priva... | 15.492462 | 106 | 0.698994 |
9902a9000d9c94722a88e1d6755ef29cc47afb08 | 2,070 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | 33.387097 | 94 | 0.701449 |
bf58008ad7518c743eac0424811fa1c411386528 | 2,015 | package com.github.knightliao.middle.http.sync.utils.helper;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.... | 29.632353 | 120 | 0.673945 |
039d1f82ad16e13d6b9e9b87256da3bdea9435a6 | 631 | package com.sensorsdata.analytics.android.runtime;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
/**
* Created by 王灼洲 on 2016/12/1
* TabHost.OnTabChangeListener
*/
@Aspect
public class TabHostOnTabChangedAspectj {
private final static S... | 30.047619 | 90 | 0.7813 |
039c94587afac2b224825f9a20a86ed2679fcbeb | 836 | package com.woayli1.pickerviewdemo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
public class FragmentTestActivity extends AppCompatActivity {
... | 34.833333 | 86 | 0.788278 |
08a9dcbede72680a4d062d4ff9bab636edf17640 | 372 | package com.github.yingzhuo.fastdfs.springboot.exception;
/**
* 上传图片例外
*
* @author tobato
*/
public class FastDFSUploadImageException extends FastDFSException {
protected FastDFSUploadImageException(String message) {
super(message);
}
public FastDFSUploadImageException(String message, Throwab... | 19.578947 | 73 | 0.717742 |
c5dcb5ca9b6703650d48915df31edb60154bd6dc | 1,857 | package com.twu.biblioteca;
public class Menu {
private final Library library;
private ConsoleSimulator consoleSimulator;
public Menu(Library library, ConsoleSimulator consoleSimulator) {
this.library = library;
this.consoleSimulator = consoleSimulator;
}
public void display() {
... | 37.897959 | 197 | 0.571352 |
4381702bdb3f95d1b1643e394c756d9a3aae338f | 250 | package ifelse;
public class Whileloop4 {
public static void main(String[] args) {
int number = 12;
int sum = 0;
while (number <= 421) {
System.out.println(number);
number += number;
sum = sum + number;
sum = sum + 1;
}
}
}
| 13.888889 | 41 | 0.596 |
5ac61e8ecf1f746578dd7ff47f3da7c05934e67e | 813 | package rw.action;
import com.intellij.execution.Executor;
import com.intellij.execution.executors.DefaultRunExecutor;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.diagnostic.Logger;
import rw.icons.Icons;
public class RunWithReloadiumRunContext extends ContextPopupAction {
... | 28.034483 | 94 | 0.742927 |
e6e86ae87fd03668a62d07b17a5e01b0be40394c | 607 | package com.lenovo.compass.sys.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lenovo.compass.s... | 25.291667 | 62 | 0.795717 |
3d7668f4c3ddb3109a9c909909160b3777d5248b | 4,515 | /*
* This file was automatically generated by EvoSuite
* Thu Aug 02 17:08:19 GMT 2018
*/
package org.mozilla.javascript.ast;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.nio.CharBuffer;
import java.util.List;
import org.evosuite.runtime.Ev... | 36.707317 | 176 | 0.717829 |
70048d2d70014bf7dae084f40d2779e8e70d412e | 1,936 | /*
* 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 ... | 32.266667 | 104 | 0.72469 |
fbc6b74e76f29a9c6997bb4b68a57025a9af121b | 823 | package com.chunyang.servlet;
import javax.servlet.annotation.WebServlet;
import javax.servlet.annotation.WebInitParam;
import com.alibaba.druid.support.http.StatViewServlet;
/**
* Druid监控界面配置
* @author qinxuegang
*
*/
@WebServlet(urlPatterns = "/druid/*",
initParams={
@WebInitParam(na... | 34.291667 | 97 | 0.684083 |
00f5d2d6e128b160df3eafc58475a44839004b16 | 3,033 | package com.sun.mail.imap.protocol;
import javax.mail.*;
import com.sun.mail.iap.*;
public class MailboxInfo
{
public Flags availableFlags;
public Flags permanentFlags;
public int total;
public int recent;
public int first;
public int uidvalidity;
public int uidnext;
public int mode;
... | 35.682353 | 76 | 0.365315 |
ebad5c9ff41809e382ee13092da7fe96474a79ae | 6,286 | /*
* Copyright 2016 Exorath
*
* 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... | 40.818182 | 137 | 0.65622 |
7a441ffd0464c952c2fcf1d761f18d8a9579869d | 5,952 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.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.0
*
* Unless requ... | 38.153846 | 119 | 0.673723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.