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 |
|---|---|---|---|---|---|
f692f4fbe7021d68c9116e72988a312a70ab0370 | 812 | package jpa;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class ProgrammaJpa {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("Lezio... | 21.945946 | 81 | 0.673645 |
4fffa8819822aff59a71e30f1478c86539dcce59 | 22,393 | /*
* 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... | 29.387139 | 97 | 0.619613 |
0b669c522c67a254088d5e1be1df0e0642e95f41 | 1,550 | package com.kaesar.interview_zuo.t006;
/**
* 用栈来求解汉诺塔问题
* 递归
*/
public class HanoiProblem1 {
public int hanoiProblem1(int num, String left, String mid, String right) {
if (num < 1) {
return 0;
}
return process(num, left, mid, right, left, right);
}
public int process(int num, String left, ... | 31.632653 | 94 | 0.549032 |
3b31bd21edd8002da47d831d7fdce44d4c6ef199 | 2,684 | package app.keyconnect.server.controllers;
import app.keyconnect.api.client.model.BlockchainAccountTransaction;
import app.keyconnect.api.client.model.SubmitTransactionRequest;
import app.keyconnect.api.client.model.SubmitTransactionResult;
import app.keyconnect.server.factories.BlockchainGatewayFactory;
import app.ke... | 37.802817 | 98 | 0.770864 |
f70a5165e051c90c9db8686e5efb3f8bd89257e8 | 2,608 | /*
* Licensed to the University of California, Berkeley 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 no... | 37.797101 | 100 | 0.745399 |
d2b585a8bc3323f4b517804b3737ea0331f417c4 | 27,317 | /*
* Copyright (c) 2021, 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.or... | 52.939922 | 120 | 0.693341 |
863306612f8ba5ae1cd8f5b056a0625b76afc8b9 | 751 | package cn.sbx0.zhibei.logic.websocket;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.socket.WebSocketSession;
import java.util.concurrent.ConcurrentHashMap;
@Slf4j
public class SocketManager {
private static ConcurrentHashMap<String, WebSocketSession> manager = new ConcurrentHashMap<>();
... | 26.821429 | 99 | 0.697736 |
59eb64ce41ba117be60b7d2e8014775a6e6e95bf | 625 | package DBManager;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class BeaconManager {
public Connection getConnection(){
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/cas_database", ... | 24.038462 | 111 | 0.712 |
dcba9bcfb85ef90e456a1c90844fd8b65cc9a90e | 2,454 | /*
* Copyright 2021 Sonu Kumar
*
* 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 applicable law or ... | 37.753846 | 102 | 0.745314 |
7192f4da363edea0a3dca66cf4f49a8ab431da42 | 5,288 | package info.u_team.u_team_core.util;
import java.util.Random;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Vector3d;
public class MathUtil {
public static final Random RANDOM = new Random();
public static Vector3d rotateVectorAroundYCC(Vector3d vec, double angle) {
return... | 32.243902 | 138 | 0.678896 |
7f85a9539fa1c4d537e8587149121059eaea8166 | 473 | package org.wfrobotics.reuse.commands.config;
import edu.wpi.first.wpilibj.command.InstantCommand;
/** Selects an Auto Mode parameter */
public class AutoConfig extends InstantCommand
{
protected Runnable selectNext; // Functional to force constructor call
public AutoConfig(Runnable selectNextCallback)
... | 22.52381 | 75 | 0.710359 |
74a731b0ddc9e827a4ab42ac40efee66304145a7 | 931 | package com.batch.android.tracker;
/**
* Define the running mode of the Tracker module
*
*/
public enum TrackerMode
{
/**
* Tracker is OFF (no Sqlite & webservice)
*/
OFF(0),
/**
* Tracker is only storing event in DB, not sending
*/
DB_ONLY(1),
/**
* Tracker is up & ru... | 16.333333 | 55 | 0.453276 |
18ec1e26764a4efb3f60cfea14c76e92f753f7ef | 386 | package com.mwj.echarts.impl;
import com.mwj.echarts.interf.ChartData;
import java.util.ArrayList;
/**
* @author Meng Wei Jin
* @description
* [
* {value:335, name:'直接访问'},
* {value:310, name:'邮件营销'},
* {value:234, name:'联盟广告'},
* {value:135, name:'视频广告'},
* {value:1548, name:'搜索引擎'}
* ]
**/
publi... | 19.3 | 67 | 0.632124 |
6a15b9c28df4283fc4f4c4a9e0bd4653749925e8 | 329 | package net.md_5.bungee;
public interface VersionInfo {
public static String SOFTWARE = "WaterDog";
public static String VERSION = "1.0.0";
public static String JENKINS_BUILD_ID = "unknown";
public static boolean IS_DEVELOPMENT_BUILD = false;
public static String AUTHORS = "YesDogOSS Team, Bungee ... | 29.909091 | 65 | 0.732523 |
46fc907d2c3a550623b0bbc72987ae2ac4787b56 | 342 | package org.apache.goat.chapter100.E.E066;
import org.apache.common.MyBaseDataTest;
import org.junit.jupiter.api.Test;
class App extends MyBaseDataTest {
public static final String XMLPATH = "org/apache/goat/chapter100/E/E066/mybatis-config.xml";
@Test
void deleteById1() throws Exception {
setUpByReader... | 16.285714 | 94 | 0.745614 |
c85a474a7fb7daaf65506f9733a6bc1210e0aed7 | 1,390 | package com.example.android.popular_movies_app.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.android.popular_movies_app.db.MovieContracts.*;
/**
* @author harshita.k
*/
public class MovieDbHelper extends SQLite... | 33.095238 | 91 | 0.670504 |
a2504ff890201db4699a9ec09f9c5470726fe86f | 1,375 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.contracts.productruntime;
import java.util.List;
import java.util.HashMap;
import java.io.Serializable;
import co... | 25.943396 | 97 | 0.731636 |
43c21f4a4cac3f7c7198c107c6526d778bd5c4e1 | 16,343 | package net.mcft.copy.backpacks.misc.util;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.stream.Strea... | 42.012853 | 128 | 0.70544 |
d084e703df9bea867ed01fc71bbcc9e6300e3695 | 5,017 | package com.jamworkspro.jamworksxg2;
import android.content.Context;
import android.text.InputType;
import android.util.AttributeSet;
import android.view.View;
public class JMEdit extends android.support.v7.widget.AppCompatEditText
{
JMKeyboardView m_JMKeyboardView;
public int m_iCurso... | 24.354369 | 97 | 0.614112 |
d1257c99a8267c376b618d38f003f6c494f771aa | 7,861 | //package File;
import java.util.*;
import java.io.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class StayHome {
static ArrayList<Character> input;
static ArrayList<Integer> X;
static ArrayList<Integer> A;
static int M,N,S,W,T,z, size... | 32.085714 | 136 | 0.301107 |
b6c21302b0aefeaa7f751f1d8c86b26643ef8299 | 1,440 | //Package name ---
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import androidx.annotation.NonNull;
import androidx.viewpager.widget.PagerAdapter;
impo... | 23.606557 | 101 | 0.681944 |
5d3d4e311bfc124fe69f0cf802aed5033406c3eb | 644 | package com.kaixin.core.sql2o.quirks.parameterparsing.impl;
/**
* Created by lars on 22.09.2014.
*/
public class ForwardSlashCommentParser extends AbstractCommentParser {
private boolean commentAlmostEnded;
@Override
protected void init() {
commentAlmostEnded = false;
}
@Override
p... | 23.851852 | 80 | 0.619565 |
ddbcdd224014d3a5ecbbb439cb5a0ff053a5e2c3 | 8,431 | package info.geometrixx.webviewapp;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View... | 35.57384 | 136 | 0.686633 |
9faa6f49811e4b216346bd13bc71599e1f17fed1 | 383 | package com.algolia.search.models.indexing;
import java.io.Serializable;
import java.util.List;
public class ListIndicesResponse implements Serializable {
public List<IndicesResponse> getIndices() {
return items;
}
public ListIndicesResponse setItems(List<IndicesResponse> items) {
this.items = items;
... | 20.157895 | 68 | 0.754569 |
c6a77d6a2460a9fe7097049fd14bab6ebc4358e4 | 936 | package com.ibm.research.drl.deepguidelines.pathways.extractor.synthea.parser;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.notNullValue;
import static org.junit.Assert.assertThat;
import java.time.Instant;
import java.util.Map;
import org.junit.Test;
import com.ibm.research.drl.... | 31.2 | 101 | 0.735043 |
26467c7c674bc94a95c97b101741630e4472f662 | 14,601 | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... | 32.591518 | 99 | 0.562701 |
1e08d6be98ce8f78b8dd6aeb48490dabb1919ad4 | 768 | package com.examples.leetcode.array_easy;
/** https://leetcode.com/problems/count-largest-group/ */
public class L1399CountLargestGroup {
public int countLargestGroup(int n) {
int[] counts = new int[37];
for (int i = 1; i <= n; ++i) {
int sum = sumOfDigit(i);
++counts[sum];... | 22.588235 | 57 | 0.419271 |
60c2e3d2368dedecb429b084561e6ac7faf1321d | 14,728 | package com.evguard.main;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.os.Bundle;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener;
import android.... | 30.87631 | 115 | 0.702336 |
61910b2039c2414b7e06df5f1a4ca180e21ff157 | 919 | package ru.job4j.cash;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
/**
* Cash realization via load values from disk.
* @author shaplov
* @since 01.05.2019
*/
public class StoredCash extends BaseCash {
@Override
pro... | 28.71875 | 97 | 0.616975 |
862c73e62e9edf4794eac398d96894527a14a676 | 2,292 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.web.analytics;
import static org.testng.AssertJUnit.assertTrue;
import java.util.Collections;
import org.json.JSONArray;
import org.json.JSONException;
impor... | 30.56 | 101 | 0.689354 |
532be06a07962a68e3b9ce59b81546972f991135 | 12,318 | package beans;
import model.Intervenant;
import beans.util.JsfUtil;
import beans.util.PaginationHelper;
import session.IntervenantFacade;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.inject.Named;
impor... | 33.291892 | 171 | 0.582806 |
41c60aba431462cb8f3b57da5541d3c20c2ecb72 | 809 | package yitian.study;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import yitian.study.entity.Person;
import java.io.IOException;
import java.time.LocalDate;
public class XmlSample {
public static void main(String[] args) throws IOException {
... | 33.708333 | 86 | 0.715698 |
f7667e756325df7e38e723ef29173110bfe60aad | 3,544 | package com.mgmtp.radio.service.user.favorite;
import com.mgmtp.radio.domain.user.FavoriteSong;
import com.mgmtp.radio.dto.user.FavoriteSongDTO;
import com.mgmtp.radio.mapper.user.FavoriteSongMapper;
import com.mgmtp.radio.respository.user.FavoriteSongRepository;
import com.mgmtp.radio.service.station.SongService;
imp... | 38.521739 | 115 | 0.73702 |
93e93b8a8b9793ef05b508421b3f4ce4566a06f9 | 3,223 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl.source.resolve.reference;
import com.intellij.openapi.paths.GlobalPathReferenceProvider;
import com.intellij.openapi.paths.PathReferenceManager;
imp... | 49.584615 | 192 | 0.754266 |
5e580349251df5041c1f2ca986631f6d19186d6a | 11,886 |
package com.trovebox.android.common.util;
import java.io.InputStream;
import java.text.DecimalFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
im... | 30.091139 | 108 | 0.548629 |
42b104ce2ed5d4aa480d3e9c65ca991895a92b40 | 2,727 | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 University of Maryland
*
* This library 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 2.1 of the License, o... | 26.475728 | 77 | 0.673634 |
c34e5a9c170831f16a430e7c4e2eaed2604862e9 | 5,196 | package net.jgp.labs.spark.football.lab300;
import org.apache.spark.SparkContext;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SparkSession;
import org.apache.spark.sql.functions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Finding out the next ... | 31.301205 | 79 | 0.620477 |
fc4510390e616ec5ef42b48d7197beb7ac183eb9 | 1,585 | /*
* 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
* distribut... | 27.807018 | 81 | 0.700946 |
db511539d57ca46586102dfe56823d0581f5bb21 | 13,173 | package it.chiarani.meteotrentinoapp.fragments;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import ... | 50.665385 | 168 | 0.688909 |
3ef917954615115236b5c7b872fbec3cf51f3740 | 3,640 | package myArrayList;
import myArrayList.util.Constants;
/**
* Data Structure class which replicates the behavior of
* Java's ArrayList
* @author suresh
*
*/
public class MyArrayList implements Cloneable{
private int[] array = new int[Constants.MIN_ARRAY_SIZE];
private int currentIndex = -1;
public MyAr... | 18.383838 | 94 | 0.571978 |
f0d282581dc40d21088457ddbe69ba96dfbee8f4 | 1,299 | package com.studiocadet.listeners;
import android.util.Log;
import com.inneractive.api.ads.InneractiveAdListener;
import com.studiocadet.InneractiveExtension;
public class BannerListener implements InneractiveAdListener {
@Override
public void onIaAdClicked() {
Log.i(InneractiveExtension.TAG, "Banner ad clicked... | 24.055556 | 92 | 0.763664 |
afa28b7520b3f3051c48c4218cf6991e3fcbfbc6 | 8,156 | /*
* Copyright (C) 2013 The OmniROM Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program ... | 33.563786 | 93 | 0.587052 |
4ff97b82a8c77496e57494264d2c15462aaa78ae | 1,785 | package com.elasticsearch.cloud.monitor.metric.common.monitor.kmon.config;
import java.util.Map;
import com.google.common.collect.Maps;
import static com.elasticsearch.cloud.monitor.sdk.sink.SlsMonitorSink.CONFIG_ACCESS_KEY;
import static com.elasticsearch.cloud.monitor.sdk.sink.SlsMonitorSink.CONFIG_ACCESS_SECRET;
... | 31.875 | 91 | 0.74958 |
c9f875495d9e8e937b9335d8b59a9d7399276f6b | 1,066 | package learn.baiduyun.aqs;
/**
* @Author: liangxuanhao
* @Description: 两个线程循环打印1-100的数,一个线程打印偶数,一个线程打印奇数
* @Date: 2019年03月13 09:47
*/
public class ForPrint {
public static void main(String[] args) {
final ForPrint forPrint = new ForPrint();
Thread t1 = new Thread(forPrint::demo1);
Thr... | 24.227273 | 50 | 0.471857 |
dd8b65ae9d3765d6ce984fa3eec3ea553f8a6230 | 1,281 | package com.github.pshirshov.conversion.impl.jasmin;
import java.io.PrintWriter;
import java.io.StringWriter;
import com.github.pshirshov.conversion.Disassembler;
import com.github.pshirshov.util.IdeaUtils;
import com.intellij.openapi.editor.Document;
import com.xenoamess.org.objectweb.asm.v_9_2.ClassReader;
public ... | 27.255319 | 80 | 0.672912 |
35ddedbec84531a820243245fe2e0dc69c90a33d | 1,224 | package io.idfy.identificationV2;
import io.idfy.OAuthScope;
import io.idfy.identificationV2.models.LanguageDetails;
import io.idfy.models.IdfyException;
import io.idfy.IdfyConfiguration;
import java.io.InputStream;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter... | 29.142857 | 120 | 0.742647 |
e4da4691994b1d2c016599faf4fb1faaafae44cd | 268 | /*
* Copyright (c) 2020. Self learning and applying project advanced concepts through out.
*/
package com.spring.patterns.decorator;
import java.math.BigDecimal;
public abstract class PizzaIngredient extends Pizza {
public abstract String getDescription();
}
| 22.333333 | 88 | 0.772388 |
a5c98f839062b245a9f612408609cf514c10d0b5 | 6,302 | package com.dchip.door.smartdoorsdk.http;
import com.dchip.door.smartdoorsdk.Bean.ApiGetAdvertisement;
import com.dchip.door.smartdoorsdk.Bean.ApiGetCardListModel;
import com.dchip.door.smartdoorsdk.Bean.ApiGetDeviceConfigModel;
import com.dchip.door.smartdoorsdk.Bean.ApiGetPropManagement;
import com.dchip.door.smartd... | 25.722449 | 142 | 0.617582 |
74ffd73ad46328bfd52888edf232b072d9805f22 | 1,892 | /**
* 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.rest.filter;
import java.io.IOException;
import java.util.Locale;
import javax.... | 32.067797 | 93 | 0.727801 |
2f7afb8d6b2c21bb5297cc9af141922cc5fdee82 | 1,287 | /*
* Copyright 2017 Jan Sykora
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 30.642857 | 93 | 0.696193 |
d8e473190dfe2fe5334d50b05430cde80a32d618 | 963 | package org.jeecg.modules.walladvertisers.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.walladvertisers.entity.WallAdvertisers;
import com.baomidou.myb... | 30.09375 | 114 | 0.750779 |
6c75eb39885362c6c79d88c305487dcad8b1287c | 5,920 | package de.imi.odmtoolbox.library;
import de.imi.odmtoolbox.model.ODMCompareType;
import de.imi.odmtoolbox.model.ODMComparedItem;
import de.imi.odmtoolbox.model.ODMForm;
import de.imi.odmtoolbox.model.ODMItem;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import ... | 43.529412 | 132 | 0.637331 |
3418608c78e30cc3e84e975649ce514d7fe50c43 | 1,314 | package GoogleMaps;
import com.google.maps.model.PlacesSearchResult;
/**
* Created by spyridons on 4/10/2017.
*/
public class GooglePlacesResultObject {
private PlacesSearchResult result;
private String url;
private double lat;
private double lng;
public PlacesSearchResult getResult() {
... | 24.333333 | 69 | 0.604262 |
72ff10cfdf600fd3d3e9486faefba249cb5dd7af | 310 | // Generated automatically from org.json.CookieList for testing purposes
package org.json;
import org.json.JSONObject;
public class CookieList
{
public CookieList(){}
public static JSONObject toJSONObject(String p0){ return null; }
public static String toString(JSONObject p0){ return null; }
}
| 23.846154 | 72 | 0.758065 |
d76f5a547b144c819ee7d7efe0db7bc47d44286b | 598 | package cn.gridlife.bzblibrary.b_viewpager.bean;
import android.graphics.Bitmap;
/**
* Created by BZB on 2017/9/14.
*/
public class ViewPagerDataBean {
int id;
String title;
Bitmap bitmap;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
... | 15.736842 | 48 | 0.585284 |
c07af2f648bfdbb86169d11097824cfd72590a71 | 475 | package kh75.day190801.class_core.entity;
public class Car {
public static void main(String[] args) {
Bus bus = new Bus(20);
bus.print();
}
private int site = 4; // 座位数
Car() {
System.out.println("载客量是" + site + "人");
}
public void setSite(int site) {
this.site = site;
}
public vo... | 15.322581 | 43 | 0.568421 |
71a72dc3c8b1adc4916eb28d57159c16984a5c6d | 7,583 | package mogp;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collections;
/**
* StandardMaintence class is a vanilla implementation of the
* GPMaintance interface, where fitness used in tournament selection
* is the aggr... | 36.109524 | 125 | 0.620994 |
5e0b04707848c1071c4c5ebcf2fd0b906656d90c | 881 | package com.michaelhradek.aurkitu.test.service.payloads;
import com.michaelhradek.aurkitu.annotations.FlatBufferFieldOptions;
import com.michaelhradek.aurkitu.annotations.FlatBufferTable;
import com.michaelhradek.aurkitu.annotations.types.FieldType;
import com.michaelhradek.aurkitu.test.dependency.LookupError;
import ... | 28.419355 | 69 | 0.788876 |
3debec81d14ba2a81f11af2a9eb83a8e55b34eb6 | 10,979 | /*******************************************************************************
* Copyright (c) 2013-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* All rights reserved. This program and the accompan... | 26.583535 | 107 | 0.697696 |
0382921d418b241b9980900c333b2b175e38b04f | 1,406 | package exercises.dependencyinjection;
import com.commercetools.sunrise.framework.controllers.SunriseContentController;
import com.commercetools.sunrise.framework.controllers.WithContent;
import com.commercetools.sunrise.framework.template.engine.ContentRenderer;
import common.BlankPageContent;
import play.mvc.Result;... | 33.47619 | 106 | 0.721906 |
6bdbe9a0952ad2e3a83866040367dc45485bda41 | 2,074 | package scratch.kevin.ucerf3;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.opensha.commons.data.CSVFile;
import org.opensha.commons.geo.Location;
import org.opensha.commons.util.FaultUtils;
import org.opensha.refFaultParamDb.vo.FaultSectionPr... | 37.035714 | 99 | 0.728544 |
b6caac7df0fb5a3a6b18acea3e5b7d746ded34e1 | 1,359 | package ca.gc.aafc.dina.search.messaging.producer;
import ca.gc.aafc.dina.search.common.config.YAMLConfigProperties;
import ca.gc.aafc.dina.search.messaging.types.DocumentOperationNotification;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
im... | 36.72973 | 103 | 0.816041 |
cce6a05d7a0ad567548f800999319f6b85b47997 | 1,771 | package io.chengine.pipeline.action;
import io.chengine.message.ActionResponse;
import java.util.function.Consumer;
import java.util.function.Supplier;
/**
*
* @param <T> - a context object for passing data between chain methods
*/
public interface StageAction<T> extends ActionResponse {
// =================... | 34.72549 | 117 | 0.511575 |
a2efbd38c89d535f31fbfa4927449daaddb69f38 | 259 | package top.yang.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @author pride
* @description 针对表【sys_user(用户信息表)】的数据库操作Mapper
* @createDate 2022-01-10 21:07:29
* @Entity generator.domain.SysUser
*/@Mapper
public interface SysUserMapper {
}
| 14.388889 | 47 | 0.749035 |
3b3bd9b2de98f9bd2715ab38690bf8a2c6e9a016 | 1,053 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.freebasicacc.services;
import java.sql.Connection;
import com.freebasicacc.dao.SequenceDAOImpl;
/**
*
* @author benzyaa
*/
public class SequenceService {
private static final SequenceService sequence... | 32.90625 | 99 | 0.734093 |
e85bbb29183731f715276ef5ce458c7f94c51572 | 22,807 | package util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.securit... | 43.524809 | 177 | 0.64353 |
22216b9c3718b6e3607a83289088c2a14fe26b6f | 6,540 | /*
* SOL005 - NS Lifecycle Management Interface
* SOL005 - NS Lifecycle Management Interface IMPORTANT: Please note that this file might be not aligned to the current version of the ETSI Group Specification it refers to and has not been approved by the ETSI NFV ISG. In case of discrepancies the published ETSI Group S... | 34.603175 | 444 | 0.720336 |
49848334bb4776f2e139fe8a584891ad67b53451 | 502 | package com.rainbowcard.client.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by gc on 2017-1-6.
*/
public class ProvinceEntity {
@Expose
@SerializedName("province_name")
public String name;
... | 22.818182 | 51 | 0.703187 |
f948516198de71e709de2ef9c2d2e7b08fe11096 | 1,951 | package cn.org.hentai.dns.protocol.entity;
import cn.org.hentai.dns.util.ByteUtils;
import cn.org.hentai.dns.util.IPUtils;
import java.net.Inet6Address;
/**
* Created by matrixy on 2019/4/23.
* 响应消息的资源记录,一般为域名所对应的IP或CNAME等
*/
public class ResourceRecord
{
public String name;
public int type;
// public... | 25.337662 | 86 | 0.520759 |
9fde11e404a230a527ad7b71fd40eb5b3b15f0eb | 433 | package uk.ac.ebi.spot.goci;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class SearchApplication extends SpringBootServletInitializer {
... | 33.307692 | 73 | 0.819861 |
6bba2ea8bbbea0cab08964d18f0a0753c5441827 | 7,456 | /*
* 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.28 | 109 | 0.760864 |
ef532afb346721018eac824ba845b6006c1a3cc4 | 2,774 | /*
This file is actually about lambdas, the first step to functional programming.
The one important sentence for lambdas is:
***Lambdas work with interfaces that have *only one* abstract method.***
Such interfaces are called "functional interface".
Lambdas (anonymous functions) are usually passed around like objec... | 33.829268 | 78 | 0.664384 |
747f2340ee9f43eaa83fc028e98356a2d184ef36 | 652 | package InheritanceTest;
public class Accessor {
public static AA getWbyA() {return new WW();}
public static BB getWbyB() {return new WW();}
public static AA getXbyA() {return new XX();}
public static BB getXbyB() {return new XX();}
public static XX getX() {return new XX();}
public static AA... | 38.352941 | 49 | 0.642638 |
619a5c59cbb81395565436b19c396639d6ac530f | 2,210 | package com.epicodus.weather.adapters;
import android.content.Context;
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;
import com.epicodus.weather.R;
import com.... | 31.571429 | 109 | 0.692308 |
e5e76a1692790c903dc92bf37ef7014448786e52 | 1,040 | package datastructure.exercise.leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 024 2017/5/24.
*/
public class GenerizeAbbreviations {
public List<String> generateAbbreviations(String word) {
List<String> result = new ArrayList<String>();
backtra... | 21.22449 | 113 | 0.586538 |
a6dd0793ee98fd42f04274c2c28bbfa2d8705338 | 584 | package com.meijie.net;
import com.meijie.ImClient;
import com.meijie.proto.ImRequestProtos;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
public class ImRpcClientHandler extends SimpleChannelInboundHandler<ImRequestProtos.ImResponse> {
private ImClient imCli... | 27.809524 | 109 | 0.782534 |
e69f8c626033952a8c92b34d46cab9e21cf24a6a | 3,259 | package com.cloud.api.command.admin.vm;
import com.cloud.api.APICommand;
import com.cloud.api.APICommandGroup;
import com.cloud.api.ApiErrorCode;
import com.cloud.api.ResponseObject.ResponseView;
import com.cloud.api.ServerApiException;
import com.cloud.api.command.user.vm.DeployVMCmd;
import com.cloud.api.response.Us... | 49.378788 | 193 | 0.695612 |
42f7342ad1be542f428f8cd62b5442e7b5fa94bd | 1,495 | package com.ge.verdict.gsn;
import java.io.*;
import javax.xml.parsers.*;
import org.xml.sax.SAXException;
/** @author Saswata Paul */
public class App {
/**
* This main method can be used for independently using the security gsn interface
*
* @param args
* @throws IOException
* @throws ... | 30.510204 | 88 | 0.577258 |
0c2b8617fc18f59cbf0b41e946708a769e144e2d | 919 | package uk.gov.hmcts.reform.finrem.caseorchestration.model.document;
import com.google.common.collect.ImmutableMap;
import org.junit.Test;
import java.util.Map;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class DocumentGenera... | 30.633333 | 80 | 0.717084 |
91612b118dc223b228009bcbca7e85d71f5db892 | 2,841 | package com.jakewharton.madge;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import static android.os.Build.VERSION_CODES.HONEYCOMB;
public fi... | 28.128713 | 86 | 0.706793 |
6392a3927a116d3a401a8b78355e6c163b155a6d | 8,999 | package com.hnust.wxsell.service.impl;
import com.hnust.wxsell.converter.ReplenishMaster2ReplenishDTOConverter;
import com.hnust.wxsell.dataobject.ReplenishDetail;
import com.hnust.wxsell.dataobject.ReplenishMaster;
import com.hnust.wxsell.dto.ProductDTO;
import com.hnust.wxsell.dto.ReplenishDTO;
import com.hnu... | 40.719457 | 144 | 0.714302 |
d25e6bec0d78587371b755df8c21067129ac5f78 | 5,570 | package blog.raubach.utils.task;
import blog.raubach.database.Database;
import blog.raubach.database.codegen.tables.records.HikestatsRecord;
import blog.raubach.utils.*;
import com.google.maps.*;
import com.google.maps.errors.ApiException;
import com.google.maps.model.*;
import io.jenetics.jpx.*;
import org.jooq.*;
i... | 29.162304 | 213 | 0.639497 |
759daf4393b6c816bc3455b52f207c18b82a2719 | 7,353 | /*
Copyright (c) 2016, BogDan Vatra <bogdan@kde.org>
Contact: http://www.qt-project.org/legal
Commercial License Usage
Licensees holding valid commercial Qt licenses may use this file in
accordance with the commercial license agreement provided with the
Software or, alternatively, in accordance... | 39.320856 | 136 | 0.658643 |
081669e349457381706bfe5a1c1323d331960865 | 1,248 | package fr.bastoup.bperipherals;
import fr.bastoup.bperipherals.database.DBFactory;
import fr.bastoup.bperipherals.registry.ClientRegistry;
import fr.bastoup.bperipherals.registry.SharedRegistry;
import fr.bastoup.bperipherals.util.BPeripheralsProperties;
import fr.bastoup.bperipherals.util.Config;
import net.minecraf... | 29.714286 | 72 | 0.762019 |
c94ca009e3fbc60da071f2f4ec44977a80035d16 | 1,820 | package echowand.net;
import java.net.InetAddress;
/**
* IPv4ネットワークのサブネットに存在するノード
* @author Yoshiki Makino
*/
public class InetNode implements Node {
private InetSubnet subnet;
private InetNodeInfo nodeInfo;
/**
* InetNodeを生成する。
* 直接生成は行わずにInetSubnetのgetRemoteNodeメソッドの利用を推奨する。
*... | 22.469136 | 88 | 0.591209 |
62053ff30bd8d3b50d7153c24196c8ec4129fbc9 | 955 | package dev.patika.project01.entity;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import lombok.*;
import javax.persistence.*;
import java.util.Set;
@Data //-> @RequiredArgsConstructor, @Gette... | 29.84375 | 92 | 0.773822 |
5b211f8127258cfeca1198388cf8964e0fa5351b | 5,195 | package org.cacert.gigi.output.template;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.Reader;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.LinkedLis... | 25.717822 | 75 | 0.629259 |
2814ce51f2012ac8b6c9a68e9ced17445b3f47fe | 3,274 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 25.578125 | 83 | 0.679597 |
539b27448492699d35f6299bd6f5ac5a60a9ff5d | 5,788 | package pl.edu.mimuw.dbaugmentor.copier;
import pl.edu.mimuw.dbaugmentor.config.ApplicationProperties;
import pl.edu.mimuw.dbaugmentor.database.*;
import java.util.*;
import java.util.logging.Logger;
public class EntityCopier {
private final Database database;
private final Set<EntityCopy> copiedEntitiesToOr... | 42.248175 | 117 | 0.618348 |
27a7b4d09b48695ad6bceb56455f06e9aa1ab9f0 | 5,288 | package com.android.org.bouncycastle.jce.provider;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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 ... | 30.923977 | 234 | 0.727685 |
4db63c440155dec825c847479f190bda5a7da8a1 | 64 | package com.example.lifting;
public class WorkoutActivity {
}
| 10.666667 | 30 | 0.78125 |
a48537c0cc99b95494fb6a93946d81294a6f9745 | 3,347 | package com.leboro.service;
import com.leboro.service.game.GameService;
import com.leboro.service.game.impl.GameServiceImpl;
import com.leboro.service.live.LiveService;
import com.leboro.service.live.impl.LiveServiceImpl;
import com.leboro.service.news.NewsService;
import com.leboro.service.news.impl.NewsServiceImpl;
... | 28.853448 | 76 | 0.713475 |
0a3f92d502914aab5b2779df6268749a05868945 | 2,291 | package rsb.wrappers.subwrap;
import rsb.methods.Menu;
import rsb.wrappers.common.Clickable;
import java.awt.*;
public class RSMenuNode {
private int index;
private Rectangle area;
private String action;
private String target;
private int type;
private int data1;
private int data2;
... | 21.212963 | 115 | 0.562636 |
578d88b94549a8842f469b463ed0425516ce768d | 536 | package util.rocket_league.controllers.ground.dribble.strong;
import util.math.vector.Vector3;
import java.util.function.Supplier;
public class StrongDribbleProfile {
public final Supplier<Vector3> offsetFunction;
public final Supplier<Double> minimumBoostAmount;
StrongDribbleProfile(
... | 29.777778 | 62 | 0.723881 |
974f185f0c8dc90762323ee076a11ae5dfe6f750 | 3,903 | package org.batfish.representation.palo_alto;
import java.io.Serializable;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation... | 22.176136 | 81 | 0.714835 |
84ba4406c2d420b5db3b5e55dc782c50533b74d6 | 70,522 | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
*... | 40.834974 | 119 | 0.57877 |
83f15aa7e9d1222d01afba287a1e2fde340e6b65 | 904 | package cn.easyproject.easyee.ssh.sys.service;
import java.util.List;
import java.util.Map;
import cn.easyproject.easyee.ssh.sys.entity.SysOperationPermission;
/**
*
* @author easyproject.cn
* @version 1.0
*
*/
public interface SysOperationPermissionService{
public void add(SysOperationPermission sysOperation... | 25.828571 | 67 | 0.776549 |
c006ffdf8bf323decf02bf4036920131160bf649 | 16,037 | package top.yokey.shopwt.activity.main;
import android.text.TextUtils;
import android.view.View;
import android.widget.RelativeLayout;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.LinearLayoutCompat;
import org.json.JSONExce... | 41.332474 | 156 | 0.655609 |
9f6472c40a90c2d5f8a85748f8be08e9c2829cd0 | 1,661 | package examples;
import io.vertx.core.Vertx;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.eventbus.Message;
import io.vertx.ext.sync.HandlerReceiverAdaptor;
import static io.vertx.ext.sync.Sync.*;
/**
* @author <a href="http://tfox.org">Tim Fox</a>
*/
public class Examples {
public void syncRes... | 22.753425 | 86 | 0.660446 |
854f85b64e173761ff3dddd0ca604116983bf52b | 1,567 | /*
* $Id$
*
* 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
* "Lice... | 32.645833 | 101 | 0.736439 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.