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 |
|---|---|---|---|---|---|
dab08306333648bfa3549a5f9133c2dd915fe300 | 720 | package com.qtin.sexyvc.ui.bean;
/**
* Created by ls on 17/7/31.
*/
public class UnReadBean {
private int total_no_read;
private int msg_no_read;
private int notice_no_read;
public int getTotal_no_read() {
return total_no_read;
}
public void setTotal_no_read(int total_no_read) {
... | 20 | 55 | 0.659722 |
1ae01c5014c8770cef2e559190781ed4645c63b0 | 209,341 | /*
* 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.
*/
/**
*
* @author manduchi
*/
public class MARTE2_STREAMSetup extends DeviceSetup
{
/**
*
*/
private static final long serialVer... | 38.947163 | 114 | 0.677474 |
20f965424c67a09d010c7d9cafe533d2a7eab4d2 | 462 | package com.sao.dentalappointment.appointment.orm.repository;
import com.sao.dentalappointment.appointment.orm.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PersonRepository extends JpaRepository<Person, Long> {
Person findByEmail(String email);
Person findByG... | 33 | 92 | 0.822511 |
d9298b6a5e08be79492184c05d0115b5a4b5458e | 1,284 | package quickcache.logic.parser;
import static java.util.Objects.requireNonNull;
import java.nio.file.Path;
import java.nio.file.Paths;
import quickcache.commons.core.Messages;
import quickcache.logic.commands.ImportCommand;
import quickcache.logic.parser.exceptions.ParseException;
/**
* Parses input arguments and... | 33.789474 | 94 | 0.712617 |
f58d39bffb0860d63e865f3187af39b1eba65abd | 2,394 | /*
* 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 br.univali.model.interpolacao;
import java.util.ArrayList;
import java.util.List;
import br.univali.model.minimos_quadrados.Po... | 36.272727 | 133 | 0.63868 |
e77fc6a71d80d669f00b1dc98f74e462bf0420ae | 792 | package com.alamousse.modules.order.service.dto;
import lombok.Data;
import java.math.BigDecimal;
import java.io.Serializable;
/**
* @author mike
* @date 2019-07-27
*/
@Data
public class OrderGoodsDTO implements Serializable {
// Id
private Integer id;
// Goods Id
private Integer goodsId;
// ... | 15.84 | 52 | 0.662879 |
415bf0b6af96c62995d48a6b29448da6a3afdd7a | 1,261 | package org.xdty.moments;
import android.support.test.espresso.assertion.ViewAssertions;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.xdty.moments.activity.MainActivity_;
... | 30.02381 | 106 | 0.746233 |
23b95a7f1698b2f865c4fdb5364425c3025ff4f3 | 1,566 | /**
* 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... | 28.472727 | 77 | 0.717752 |
1ab8c7d4c9c7e71a9d43f78908ef0114e922467a | 1,516 | /*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... | 29.153846 | 102 | 0.684037 |
33eda3fc9b921a19444fefc8f3c675db7e102a53 | 1,882 | package com.ktc.control.home;
import java.lang.Thread.UncaughtExceptionHandler;
import android.content.Context;
import android.util.Log;
/**
*
* TODO 捕获应用crash异常
*
* @author Arvin
* 2018-3-15
*/
public class CatchCrashHandler implements UncaughtExceptionHandler{
private static String TAG = "SerialCatchCrash... | 26.138889 | 71 | 0.629649 |
41d4f32dfd4a60078418586f049ede974cfed046 | 305 | package com.cloud.mall.search.constant;
/**
* @Author ws
* @Date 2021/3/2 19:45
* @Version 1.0
*/
public class EsConstant {
/**
* sku数据在es中的索引
*/
public static final String PRODUCT_INDEX="product";
/**
* 每页大小
*/
public static final Integer PRODUCT_PAGE_SIZE=4;
}
| 16.052632 | 55 | 0.609836 |
f873024794ecd2254f778ae5f2d530a271effa2d | 2,635 | package com.bbz.latte;
import java.util.ArrayList;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget... | 31.369048 | 106 | 0.777989 |
2f707c174de6b8cff175178d052f0d31563d8152 | 21,405 | package today.flux.gui.loginui;
import com.soterdev.SoterObfuscator;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
im... | 45.349576 | 265 | 0.601775 |
f8a804177986209c61b9d122fcc89968ac7233e3 | 211 | package org.schema.api.model.thing.medicalEntity.anatomicalStructure;
import org.schema.api.model.thing.medicalEntity.anatomicalStructure.AnatomicalStructure;
public class Nerve extends AnatomicalStructure
{
} | 30.142857 | 88 | 0.862559 |
88411644164817b1bc1981800ef4d94ab56876b8 | 7,584 | /*
* 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 ... | 41.442623 | 120 | 0.65625 |
4087b83b9b7238132ca4b9193a777f7fd13b9096 | 4,497 | package gui.telas;
import dao.ProdutoDAO;
import gui.tabelas.ProdutoTableModel;
import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;
import javax.swing.RowFilter;
import javax.swing.table.TableRowSorter;
import modelo.Produto;
/**
* Janela de consulta a dados do produto
*
* @author Juliano
*/
public... | 39.104348 | 143 | 0.67356 |
04435586472f4bf647149f0354b1b118d33da146 | 2,215 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 31.197183 | 103 | 0.757111 |
dda4bdbd0be511dc69f44ddab42f428fee3f0cc2 | 3,073 | /*
* MIT License
*
* Copyright (c) 2021 Pierre Adam
*
* 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, modi... | 30.73 | 106 | 0.694761 |
889f2a1b51eb86224b93916caa7a6697e3250070 | 6,575 | /*
* Copyright 2020 ThoughtWorks, 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 agr... | 41.09375 | 151 | 0.705247 |
d84f3ab2ee54e9e19ba9b96d0f2a283d2e0cd7c6 | 149 | package org.billing.accountingpoints.model;
/** Значение состояния прибора учета. */
public enum MeterState {
ACTIVE,
DISABLE,
VERIFICATION
}
| 16.555556 | 43 | 0.751678 |
ce3673835389db795bbe4e2e8d0c587e6b2a47eb | 17,425 | /**
* Copyright (C) 2015 Orange
* <p/>
* This software is distributed under the terms and conditions of the 'Apache-2.0'
* license which can be found in the file 'LICENSE' in this package distribution
* or at 'http://www.apache.org/licenses/LICENSE-2.0'.
*/
package com.orange.datavenue;
import android.content.I... | 36.453975 | 136 | 0.54835 |
08e96a0db7a8149bc54b0a9c897156f831b93518 | 6,117 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 31.694301 | 98 | 0.722413 |
52282474e6be8ea75b93cd84de0741c0ee8ca06b | 13,569 | /**
* Copyright (C) 2014 - present by Marc Henrard
*/
package marc.henrard.book.algorithmicdifferentiation.finance.formula;
import org.apache.commons.math3.distribution.NormalDistribution;
import marc.henrard.book.algorithmicdifferentiation.mathad.MathAad;
import marc.henrard.book.algorithmicdifferentiation.mathad.... | 46.31058 | 123 | 0.693566 |
16579783075a1d4a3d0660ff4ef398966c0b2fc4 | 2,970 | package com.lunatech.postroom;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
... | 33.370787 | 104 | 0.674074 |
a6313c0dc51f64f27b218a07e058410695b811ce | 1,884 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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... | 35.54717 | 82 | 0.686306 |
fc9df0a3f83380daf8c41fb9193f5f0609682757 | 2,442 | /*
The MIT License
Copyright 2016, 2017, 2018 Rudy Alex Kohn.
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... | 33 | 103 | 0.678133 |
cff4a787a40672556e6da2676d9fb9c5b53c8386 | 410 | package main.util.task;
import main.enums.Priority;
import main.enums.TaskType;
import main.util.Task;
/**
* A task sub class notifying the system to exit the program
*
* @author andreashammer
*/
public class TaskQuit extends Task {
/**
* Initializes a new quit task with the specified priority
*
* @par... | 17.826087 | 60 | 0.702439 |
d494076eb70b9fc9d7b3bdafc12e4d40896849d7 | 591 | package org.digitalcrafting.theOne.service.outposts.domain;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestContr... | 26.863636 | 62 | 0.800338 |
e17c1b2e37e341a871cebfd479e5a190e00155c7 | 298 | package org.carbon.sample.v2.app.oauth;
import lombok.Getter;
/**
* @author Shota Oda 2017/08/11.
*/
@Getter
public class OAuth2AccessTokenErrorResponse {
private String error;
public OAuth2AccessTokenErrorResponse(OAuth2Exception ex) {
this.error = ex.getErrorCode();
}
}
| 18.625 | 63 | 0.714765 |
4f3bdbd65c660a0d995ca1a9789c4ab9030148a8 | 15,374 | package de.esri.geotrigger.core;
import java.net.URLEncoder;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class TriggerHandler {
private static Logger log = LogManager.getLogger(Trigge... | 37.045783 | 211 | 0.690126 |
40799bd56033c86a889d5a8cd2db1443fa7483c6 | 750 |
package com.kevinwilde.sitecrawler.masternodesonline.domain.githubInforesponse;
import java.util.HashMap;
import java.util.Map;
public class Repository {
private DefaultBranchRef defaultBranchRef;
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
public DefaultBranchRef ... | 25.862069 | 85 | 0.741333 |
895aa12aac3b6cac4ad0b88cc71a8939d4e50e8d | 725 | package net.kwmt27.codesearch.entity.payloads;
import com.google.gson.annotations.SerializedName;
import net.kwmt27.codesearch.entity.CommentEntity;
import net.kwmt27.codesearch.entity.GithubRepoEntity;
public class CommitCommentEntity {
@SerializedName("action")
private String mAction;
@SerializedName(... | 21.969697 | 53 | 0.703448 |
e79262b44255e396d31f814672f603639aaaceb4 | 558 | package io.github.talelin.latticy.service.imy;
import io.github.talelin.latticy.bo.my.MinUserBO;
import io.github.talelin.latticy.dto.my.MinUserDTO;
import io.github.talelin.latticy.model.my.Page;
import java.util.Map;
/**
* @Author Guiquan Chen
* @Date 2021/5/31 11:31
* @Version 1.0
*/
public interface IMinUser... | 21.461538 | 79 | 0.718638 |
68cd23d5f0386e01d65f385fcff7abfa19ba6e54 | 719 | package com.ttrzcinski.rest.java;
import io.javalin.http.BadRequestResponse;
import io.javalin.http.Context;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class DemonController {
static List<String> demons = new ArrayList<>(Arrays.asList("Minister_Pinoccio", "Angry_Duck", "H... | 25.678571 | 116 | 0.652295 |
1929e65b0009e862cc24416dedb7988d6e57d079 | 1,038 | package org.beer30.silvia.sample.springintegration;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.integration.launch.JobLaunchRequest;
import org.springframework.integration.annotation.Transformer;
import org.springframework.mess... | 30.529412 | 98 | 0.765896 |
7dcec20081fb17dbf13ee83e07988de6a6d6e709 | 3,277 | /******************************************************************************
**
** Advanced Distributed Learning Co-Laboratory (ADL Co-Lab) Hub grants you
** ("Licensee") a non-exclusive, royalty free, license to use, modify and
** redistribute this software in source and binary code form, provided that
** i) t... | 31.815534 | 81 | 0.638389 |
90820d25426c055f10fe3896ade84c5ed800df73 | 831 | package com.opensoc.dataservices.websocket;
import javax.servlet.annotation.WebServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.inject.Inject;
import com... | 30.777778 | 98 | 0.817088 |
1907f0b710c6f481a6278023872d0e77b4ea6428 | 9,837 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... | 36.705224 | 184 | 0.706923 |
7bff93739e0a4f52ae01f6c8cc842bbf32db2943 | 23,184 | package com.homework.infrastructure.web.controller;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchElementException;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import ... | 41.106383 | 139 | 0.780452 |
044ada0777c6fb31d02348e868e35b51bdf7b139 | 1,027 | /**
* C:\Users\kriti\Desktop\DS\Codefores\Good bye 2020\music.java
* @author Kritika Srivastava
* @since December 31, 2020
*
* Link - https://codeforces.com/contest/1466/problem/B
*/
import java.util.Scanner;
import java.util.*;
public class music {
public static void main(String[] args) {
Scanner kb... | 27.756757 | 74 | 0.435248 |
3950c18d20509ca35187e6440e71883dfa5d3cdc | 350 | package tech.jhipster.lite.technical.infrastructure.primary.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Gen... | 26.923077 | 71 | 0.828571 |
6c138eb08507174584f5418a8ec5404f6ed42c05 | 571 | package com.github.jolice.stream.iterator;
import java.util.Iterator;
public class LimitedIterator<T> implements Iterator<T> {
private Iterator<T> delegate;
private long limit;
private long current;
public LimitedIterator(Iterator<T> delegate, long limit) {
this.delegate = delegate;
... | 20.392857 | 62 | 0.625219 |
316625cc9f9fad412c2b9a7a071224c6466261fa | 21,269 | package com.proxima.fragments;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import android.location.Location;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
impor... | 37.118674 | 125 | 0.581363 |
61488da5b654f123d43ba8c843313f48f0cf5ec3 | 3,619 | package demo.java.v2c10.WebService2;
//import com.horstmann.amazon.*;
import java.awt.*;
import java.awt.event.*;
import java.util.List;
import javax.swing.*;
import javax.xml.ws.*;
/**
* The client for the Amazon e-commerce test program.
* @version 1.10 2007-10-20
* @author Cay Horstmann
*/
public class AmazonTes... | 29.909091 | 92 | 0.61039 |
6de69c6af6b4023a6b160f36cd08f3e71afd1a6b | 4,996 | /* ###
* 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... | 36.202899 | 93 | 0.723579 |
fc558c9545877696c40655c4df62cf564b89af3b | 504 | package hackatum.hackabot.bot.skills.examples;
import hackatum.hackabot.bot.Localization;
import hackatum.hackabot.bot.skills.BasicSkill;
import org.telegram.telegrambots.api.methods.send.SendMessage;
import org.telegram.telegrambots.api.objects.Message;
public class GoodBotSkill extends BasicSkill {
@Override
... | 36 | 127 | 0.787698 |
88f8afa9b8666ecd32e88a59755046076955448d | 2,973 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 38.115385 | 101 | 0.668348 |
c30bca3e85e0f830c4a8c89e5885209ee022cc19 | 889 | package com.cloud.api.query.dao;
import com.cloud.api.ApiConstants.HostDetails;
import com.cloud.api.query.vo.HostJoinVO;
import com.cloud.api.response.HostForMigrationResponse;
import com.cloud.api.response.HostResponse;
import com.cloud.legacymodel.dc.Host;
import com.cloud.utils.db.GenericDao;
import java.util.Enu... | 32.925926 | 109 | 0.814398 |
1c23b4c8a9b57ba87b0c0b883f2af29d8b142552 | 319 | import lombok.Value;
@Value(staticConstructor = "of")
public class ValueWithGeneric176<T> {
private T name;
private int count;
public static void main(String[] args) {
ValueWithGeneric176<String> valueObject = ValueWithGeneric176.of("thing1", 10);
System.out.println(valueObject);
}
}
| 24.538462 | 87 | 0.69279 |
e4615225b9c54dcd25f4548d35ba2458ad91f442 | 10,040 | package de.ids_mannheim.korap.index;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.spans.SpanQuery;
import org.apache.lucene.search.spans.SpanTermQuery;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.j... | 33.245033 | 80 | 0.551195 |
ce4b732b20349c75939a63371404bd554f8f1790 | 11,142 | package com.arenafight;
import com.arenafight.gear.Belt;
import com.arenafight.gear.BeltSize;
import com.arenafight.gear.Footwear;
import com.arenafight.gear.Headgear;
import com.arenafight.weapons.BareHanded;
import com.arenafight.weapons.Weapon;
import java.util.ArrayList;
import java.util.List;
import java.util.Ra... | 31.834286 | 100 | 0.687848 |
cc1fa10ba77fd76e63c2360169e0a71227ebf43e | 500 | package application;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
//combining two example in project also
class Alert implements Runnable {
public void run() {
System.out.println("hii");
}
}
public class App {
public static... | 20.833333 | 74 | 0.77 |
81aeddebd5789a85348cd93df3d390a4e98a01bc | 5,442 | package server;
import org.apache.log4j.Logger;
import javax.swing.*;
import java.io.IOException;
import java.util.ArrayList;
public class SharedCarParkState extends JFrame
{
private boolean isAccessing = false;
private int waitingThreads = 0;
private final ArrayList<CarDataModel> groundFloorCollection;... | 38.595745 | 148 | 0.61007 |
2d2973531538947c78081379aae347f673a2c886 | 1,980 | package com.crescentflare.smartmock.utility;
import android.content.Context;
import com.crescentflare.smartmock.model.SmartMockProperties;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.InputStream;
/**
* Smart mock library utility: easily read and manage response properties
*/
public ... | 29.552239 | 139 | 0.563131 |
0fd272bf727138948c249e4d496cf98e43e8b91d | 4,746 | package net.oschina.app.improve.detail.apply;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.SearchView;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.View;
import android.widget.EditText;
import android.widget.FrameLayout;
import an... | 30.037975 | 81 | 0.634218 |
660cde36fbaeb2ee34416ab4ced43497b443c33f | 1,929 | package com.numberone.project.system.reduces.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.project.system.reduces.mapper.ReducesMapper;
import com.numberone.project.system.reduces.domain.Reduces;
i... | 20.305263 | 73 | 0.636081 |
27951f94eff82c103c4e79b457f4f5daf74f5b5f | 14,594 | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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... | 30.340956 | 128 | 0.608469 |
74b58969b00812fd660ab058c42fb3019c81f7c1 | 1,693 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: types.proto
package com.github.jtendermint.jabci.types;
public interface ConsensusParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.github.jtendermint.jabci.types.ConsensusParams)
com.google.protobuf.MessageOrBuilde... | 34.55102 | 101 | 0.724158 |
497c7241b0eaa1b290ef26d4b9b0e2504ec3321b | 1,876 | package com.inpowered.nlp.stanford;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Service;
import com.inpowered.nlp.NamingService;
import com.inpowered.user.profile.Profile;
import edu.stanford.nlp.ie.AbstractSequenceClassifier;
import edu.stanford.nlp.ie.crf.C... | 28.861538 | 99 | 0.773987 |
1c2b431d55f8a4cbef7210a2095bc6c8d8aab533 | 7,047 | /*
* 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 ... | 50.335714 | 197 | 0.721584 |
83782a14467dc5faeabbe90d5375017be9aba9fd | 465 | package com.voxelwind.server.network.mcpe.packets;
import com.voxelwind.nbt.util.Varints;
import com.voxelwind.server.network.NetworkPackage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
@Data
public class McpeSetTime implements NetworkPackage
{
private int time;
@Override
public void decode (ByteBuf buffe... | 18.6 | 51 | 0.769892 |
8a87cc8e1a43f53ba7e74dd0ede2fd4285ea676a | 9,603 | package DiscordPlayer;
import com.google.api.services.youtube.model.PlaylistItem;
import com.google.api.services.youtube.model.SearchResult;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.player.Defa... | 49.756477 | 122 | 0.573467 |
ce7079b859691c05fa7bdf419bd0e4cd9bbc4d07 | 4,631 | /*
Copyright 1995-2019 Esri
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... | 32.159722 | 103 | 0.71518 |
b479a81deaac8d681d3c0ffbb6aaf04b531989b0 | 4,362 | package org.firstinspires.ftc.teamcode;
public class Matricies {
private double[][] forward;
private double[][] distSensor;
private double[][] distSensorOrientation;
public double angle;
private static Matricies instance;
public double[][] getForward(double angle) {
... | 35.754098 | 197 | 0.514901 |
c519a17ac1fb091a6ccae62ec4138fdfd7c3f770 | 3,289 | /*
* Copyright DataStax, 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 wri... | 37.804598 | 89 | 0.757981 |
513d3ab98a2a82ace1fed83c055ca773486f2ccc | 501 | package com.wecamp.model;
import java.sql.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberAndAuthority {
private int rnum;
private String email;
private int a_no;
private String name;
private String nick... | 19.269231 | 33 | 0.804391 |
b131b9ea2ccd2dfff458580100942c953c1d20cd | 257 | package com.example.application.data.repository;
import com.example.application.data.entity.FoodProduct;
import org.springframework.data.jpa.repository.JpaRepository;
public interface FoodProductRepository extends JpaRepository<FoodProduct, Integer> {
}
| 28.555556 | 84 | 0.848249 |
907ae9aef80aa7b99d74f334cd359386981c9151 | 1,318 | package org.moodminds.route;
/**
* Route definition block by the argument values functional interface.
*
* @param <I1> the type of the input argument 1
* @param <I2> the type of the input argument 2
* @param <I3> the type of the input argument 3
* @param <I4> the type of the input argument 4
* @param <I5> the t... | 39.939394 | 139 | 0.694234 |
ebf34956014e449a066094e7220a524abb5e5afa | 2,103 | package com.koch.ambeth.cache.interceptor;
/*-
* #%L
* jambeth-cache
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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.808219 | 94 | 0.768426 |
2e98b5cbb877fa10020cf2e874e3644b8840ad74 | 4,271 | package de.simbuildings.tilemapper.variations;
import de.simbuildings.tilemapper.image.TextureImage;
import de.simbuildings.tilemapper.variations.model.Face;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.Set;
import static de.simbuildings.tilemapper.junit.TestUtils.get... | 36.194915 | 98 | 0.682744 |
a82d069abaf72d69a19aefefce015109400240b9 | 7,802 | /*
* Copyright 2014-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.288372 | 174 | 0.767752 |
2d915beb77e45bbda993f679b34a98888e735f5c | 3,937 | /*
* 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 ... | 37.141509 | 106 | 0.624587 |
1e61be6b9ce6e700350d7a057d9404acda797dd2 | 43,631 | /*
* 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 ... | 45.213472 | 140 | 0.630744 |
b83aaa323cdd1cabcb3fa39bbb7fd6fca5116486 | 1,551 | /*
* Copyright 2011 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 i... | 28.2 | 80 | 0.738233 |
573dcc6384764b4740e03de2ad1b362098cea754 | 2,122 | package com.spaghetti.assets;
import java.nio.*;
import javax.sound.sampled.*;
import org.lwjgl.BufferUtils;
import org.lwjgl.openal.AL10;
import com.spaghetti.audio.*;
import com.spaghetti.interfaces.AssetLoader;
import com.spaghetti.utils.*;
public class SoundLoader implements AssetLoader {
@Override
public v... | 26.197531 | 107 | 0.704995 |
6cdc8bce85dac9ec611c3024124d2266e266bf1f | 7,378 | /*
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | 32.9375 | 121 | 0.551369 |
20d7a51ca62879aba624f45e8bda17308a2fd4c0 | 5,311 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.geom.AffineTransform;
import java.awt.geom.Area;
import java.awt.geom.Path2D;
import java.awt.geom.PathIterator;
import java.io.Serializable;
im... | 31.613095 | 125 | 0.653549 |
dbed9ee3406df78d33e56cbced5d412c8bffc4ab | 796 | package leetcode.problem_0804;
import java.util.HashSet;
import java.util.Set;
class Solution {
private static String[] MORSE_CODES = {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", ... | 30.615385 | 229 | 0.45603 |
95b6d38ef63656e5ef5ed4141b1e1a46ed954260 | 1,502 | package com.ds.algo.matters.array;
public class TrapRainWater {
public static void main(String[] args){
int[] height = {2, 0, 2};
System.out.println(trapUsingTwoPointers(height));
}
private static int trapUsingTwoPointers(int[] height){
int N = height.length;
if (N < 3) ret... | 27.814815 | 76 | 0.476032 |
bb506b726c86b570d9e258d1cabadf377da27475 | 1,598 | /*
* Copyright (C) 2013 Jerzy Chalupski
*
* 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... | 29.592593 | 125 | 0.754693 |
c88a39c054001f8a834de69ca6e2ed0e67bbfd39 | 2,778 | /*
*
* Copyright (c) 2013,2019 AT&T Knowledge Ventures
* SPDX-License-Identifier: MIT
*/
package com.att.research.xacml.std;
import java.util.Collection;
import com.att.research.xacml.api.MissingAttributeDetail;
import com.att.research.xacml.api.StatusDetail;
import com.att.research.... | 36.077922 | 165 | 0.7527 |
84f5c046060cc0540b135f7883ac940b3d0bb038 | 12,435 | package com.digero.maestro.view;
import info.clearthought.layout.TableLayout;
import info.clearthought.layout.TableLayoutConstants;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusAdapter;
import java.awt.... | 35.630372 | 114 | 0.712183 |
b64c6cea72c586cb0f93343252b449e2a37b31fd | 678 | package org.esfinge.guardian.rbac.entity;
public class Role {
private String roleName;
public Role(String roleName) {
this.roleName = roleName;
}
@Override
final public String toString() {
return roleName;
}
@Override
final public boolean equals(Object o) {
if (o != null && roleName... | 19.371429 | 60 | 0.653392 |
3022118cc5c8a940338297d720ae107282755ca4 | 1,141 | package org.jabingp.state;
public class Account {
private AccountState state;
private String owner;
public Account(String owner, double init) {
System.out.printf("%s开户,初始金额为%f\n", owner, init);
this.owner = owner;
if (init >= 0) {
this.state = new GreenState(init, this... | 24.804348 | 62 | 0.51709 |
9edc8a30bf6ab0f47c959d243bcc36e2dcd340b0 | 2,075 | /*
* Copyright 2013-2017 consulo.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 required by applicable law or agreed to ... | 28.819444 | 137 | 0.768675 |
1466165a65fcc29f12d42214e173d43b34562954 | 1,823 | /*
* 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 ... | 39.630435 | 116 | 0.710368 |
df22bd4c885b9feacf4113ae0bdb172dd73ed8af | 1,040 | package org.swingeasy;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.WindowConstants;
/**
* @author Jurgen
*/
public class ListDnDDemo {
public static void main(String[] args) {
JFrame f = new JFrame();
JSplitPane jsp = new JSplitPane... | 28.888889 | 66 | 0.600962 |
f3125fc4602719f091de24aca403db076034be0e | 1,291 | package io.izzel.ambershop.data;
import com.google.inject.ImplementedBy;
import io.izzel.ambershop.util.OperationResult;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.world.Location;
import org.spongepowered.api.world.World;
import java.util.Collection;
import java.util.List;
... | 27.468085 | 79 | 0.764524 |
1a0f6b166ae4cb16a33e1ec3176c2467403d3cd0 | 443 | package com.chen.service;
import com.chen.entity.Area;
import java.util.List;
/**
* Created by handsome programmer.
* User: chen
* Date: 2019/3/12
* Time: 3:48
* Description: 区域信息服务类
*
* @author chen
*/
public interface AreaService {
/**
* 获取区域信息
*
* @return 区域信息列表
*/
List<Area> g... | 14.290323 | 37 | 0.586907 |
f195423cba16bc6ceb944aded2120bf70463fe34 | 2,416 | package org.struckture.handlers;
import org.struckture.base.Struck;
import org.struckture.base.Strucktor;
import org.struckture.base.StrucktureTest;
import org.struckture.base.annotations.Reverse;
import org.struckture.base.annotations.StruckField;
import org.struckture.base.annotations.Struckture;
import org.junit.Te... | 31.789474 | 94 | 0.625 |
4c70786bb5b46247cf2770ca5aa1a93843c80630 | 5,046 | /**
* Copyright 2017-2019 The GreyCat Authors. All rights reserved.
* <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.org/licenses/LICENSE-2.0
* <p>
* Un... | 35.286713 | 162 | 0.608601 |
05ffd6ee36727e68b29ae2fb61bf8fffd57c9c67 | 749 | package easy.array;
/**
* @Classname LC485_MaxConsecutiveOnes
* @Description TODO
* 题目:给定一个二进制数组, 计算其中最大连续1的个数。
* 解法1:1.
* @Date 2020/12/12 16:29
* @Created by youfayang
*/
public class LC485_MaxConsecutiveOnes {
public static void main(String[] args) {
int[] nums = new int[]{1,1,0,1,1,1};
S... | 24.966667 | 58 | 0.555407 |
c2069e871a4125efb90d8b39b903bd79b5c179a1 | 1,644 | package org.springframework.security.oauth2.client.endpoint;
import org.springframework.security.oauth2.client.registration.ClientRegistration;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
import org.springframework.util.Assert;
/**
* An OAuth 2.0 Client Credentials Grant request that hold... | 36.533333 | 113 | 0.804136 |
c2d1779362bcae691f155acd54072ee2fdd2e683 | 67,068 | /*
*
* 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"); y... | 37.280712 | 131 | 0.696711 |
6e58dc952996df2af8b396b852346e681d1d8ccc | 1,183 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.ml.common.dataframe;
import org.junit.Test;
import org.opensearch.common.Strings;
import org.opensearch.common.xcontent.XContentBuilder;
import org.opensearch.common.xcontent.XContentFactory;
import org.opensearc... | 29.575 | 84 | 0.720203 |
a0217c8dab9dc6e5b2bc6b811749370d59b0afa5 | 148 | package land.bruinkool.garzweiler.security;
import land.bruinkool.garzweiler.entity.User;
public interface Authenticatable {
User getUser();
} | 21.142857 | 45 | 0.797297 |
8bf40405bac7adc5274c9e8fc1e6ae5cf4ac1d6a | 600 | // JOOS1: PARSER_WEEDER,JOOS1_EXPLICIT_SUPER_CALL,PARSER_EXCEPTION
// JOOS2: TYPE_CHECKING,THIS_BEFORE_SUPER_CALL
// JAVAC:UNKNOWN
/**
* Parser/weeder:
* - (Joos 1) Explicit this statements not allowed
* Typecheck:
* - A this reference (AThisExp) must not occur, explicitly or
* implicitly, in a static method, an i... | 27.272727 | 69 | 0.743333 |
6a2b6a08181f2f1c83487e925e7efea3931fc658 | 74 |
/**
* JDBC transaction.
*/
package org.apache.ibatis.transaction.jdbc;
| 12.333333 | 43 | 0.702703 |
a01be1e9c84ee18237466e957bf9fdd4d3ee9761 | 520 | package db.services;
import com.j256.ormlite.jdbc.JdbcPooledConnectionSource;
import com.j256.ormlite.support.ConnectionSource;
import java.sql.SQLException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class TestingDataSourceCo... | 30.588235 | 82 | 0.826923 |
21e3853f535953912119164066e63da94ecc96bf | 4,945 | package com.xiaoke1256.orders.pay.service;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.LockModeType;
import javax.persistence.PersistenceContext;
import org.apache.commons.beanutils.BeanUtils;
import org.ap... | 33.412162 | 132 | 0.740546 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.