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 |
|---|---|---|---|---|---|
eb8767bb7c133cb6570c1ce5099599a3ec292929 | 1,073 |
package proteininference;
import Grouping.GroupArray;
import Peptide.PepArray;
import Protein.ProtArray;
public class ProteinInference {
public static void main(String[] args) {
String inputFile = "ExampleData.csv";
PepArray peptides = new PepArray();
peptides.readPeps(... | 28.236842 | 58 | 0.629077 |
7ba142e11ecb5513ac05d3b85c05fe043c4d27b5 | 222 | package com.lrtech.consensus.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.List;
@AllArgsConstructor
@Data
public class PageEntity {
private int pageNum;
private List contents;
} | 17.076923 | 36 | 0.783784 |
a6a6b35fcab0ae982a3b629baf3a366608d322a3 | 2,228 | package com.zyd.blog.business.aspect;
import com.zyd.blog.business.annotation.RedisCache;
import com.zyd.blog.business.service.RedisService;
import com.zyd.blog.util.AspectUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.... | 30.944444 | 86 | 0.652603 |
98fb7a8cb8c77eef70258af4ecfd562b675ceaf0 | 1,619 | /*
* Copyright 2014 Alexey Andreev.
*
* 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... | 37.651163 | 81 | 0.714639 |
6edaf988e986f5697c49f15a2535bfa185ba2851 | 581 | /**
* Copyright (c) 2015-present, Jim Kynde Meyer
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.ide.formatter;
import com.intellij.psi.codeStyle.CodeStyleSettings;
imp... | 34.176471 | 73 | 0.777969 |
b6c44c4605901d646b7db212a096dc251b9fad01 | 2,415 | /**
* Copyright 2013 Lukas Nalezenec
*
* 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... | 29.45122 | 100 | 0.732091 |
933301bb442ac464ace8cdf47c6bd60f0d4d12b2 | 190 | package SWProject.Model.authentication;
import SWProject.Model.users.UserInfo;
public interface IRegisterAuthenticator {
public boolean register(UserInfo userInfo) throws Exception;
}
| 23.75 | 64 | 0.826316 |
9ea016a3b8e907e9d5a6f7a624720ccb409b2652 | 4,821 | package de.terrestris.shoguncore.web;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.terrestris.shoguncore.service.GeoServerInterceptorService;
import de.terrestris.shoguncore.util.data.ResultSet;
import de.terrestris.shoguncore.util.interceptor.InterceptorException;
import de.terrestris.shoguncore.util... | 39.842975 | 127 | 0.744451 |
fb684d480bcd1e39023fcaf1a7ce08a17f67c29d | 1,111 | package com.itana.personalproject.resource;
public class GraduateResource {
private Long id;
private String year;
private String sex;
private String typeOfCourse;
private String noOfGraduates;
public Long getId() {
return id;
}
public GraduateResource setId(Long id) {
... | 20.2 | 68 | 0.622862 |
d593bf335d118bcb16abababcb0c521de28595a4 | 8,216 | /*
* 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
* distrib... | 38.037037 | 114 | 0.726388 |
a15a5386369334cc5dc28a5b5d776e169b2c6565 | 184 | public class Vote {
public String label = "";
public int votes = 0;
public Vote(String label, int votes) {
this.label = label;
this.votes = votes;
}
}
| 18.4 | 42 | 0.565217 |
84b2f092225588731b2e6ac19757d4d4be3e0034 | 646 | import org.assertj.core.api.Assertions;
import org.junit.Test;
public class SHKNUMTests {
@Test
public void test() {
int n = 15;
int actual = SHKNUM.solve(n);
int actualBinary = SHKNUM.solveBinarySeach(n);
Assertions.assertThat(actual).isEqualTo(2);
Assertions.... | 28.086957 | 58 | 0.614551 |
8f50b24a3d215e56b7731a5ee000c759ff240639 | 2,636 | package com.kh.semi.manager.user.model.dao;
import static com.kh.semi.common.JDBCTemplate.close;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Ar... | 25.104762 | 105 | 0.686646 |
7df00fc2332c389f4941df9e36a905f754fae814 | 17,808 | /*
* Copyright 2006 Webmedia Group Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 30.703448 | 153 | 0.668183 |
c0af5b5f89f36c8479360595f2e55d220e2a647d | 10,287 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ../wire-runtime/src/test/proto/custom_options.proto at 23:1
package com.squareup.wire.protos.custom_options;
import com.google.protobuf.EnumOptions;
import com.google.protobuf.FieldOptions;
import com.squareup.wire.ExtendableMessage;
impo... | 26.309463 | 124 | 0.632157 |
bf272429d34d8ff06c60fc14e55af89669768b2c | 1,900 | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved. - https://github.com/Jasonandy/Java-Core-Advanced </p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.component.xsd.student;
import java.util.List;
/**
* @Package:cn.ucaner.... | 18.627451 | 95 | 0.602105 |
dbeb38a32c1c3cfffdefed5d59e017426c88319e | 429 | /**
*
* Copyright 2017 Vlad Korolev
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
**/
package org.vlad.awsresourcemonitor.exception;
/**
* Generic exception related to XML parsing or generation problem.
*/
public class XmlExceptio... | 22.578947 | 66 | 0.727273 |
dd3d0bdbf27acea25e298c4549de58ec9e0bf175 | 12,016 | package com.kylin.electricassistsys.utility;
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.KeyFactory;
import java.security.KeyPairGenerator;
import java.security.Provider;
import java.security.PublicKey;
import java.security.PrivateKey;
import java.security.SecureRandom;
import java.... | 33.377778 | 122 | 0.623752 |
f72fd8c43c195b238c4bbdd6db62a7d657e2da8b | 720 | package org.hibernate.performance.search.elasticsearch;
import org.hibernate.performance.search.tck.AutomaticIndexingPerformanceTest;
import org.openjdk.jmh.annotations.Level;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openj... | 36 | 107 | 0.845833 |
1a79e6b0a12026091b06a84142715abf01d58528 | 15,907 | /*
* 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.079254 | 127 | 0.637078 |
3613faf522f40fb76a0688bf8e9690f7c4d3084e | 433 | //,temp,sample_1033.java,2,12,temp,sample_8266.java,2,12
//,3
public class xxx {
private COMMIT_STATUS handleSpecialWait(boolean fromRead, long commitOffset, Channel channel, int xid, Nfs3FileAttributes preOpAttr) {
if (!fromRead) {
CommitCtx commitCtx = new CommitCtx(commitOffset, channel, xid, preOpAttr);
pendingComm... | 27.0625 | 134 | 0.766744 |
d3e4fe4ffc6137ed374d86f8563e474948290440 | 1,141 | /*
Copyright 2009 Olaf Delgado-Friedrichs
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 agre... | 30.837838 | 75 | 0.727432 |
a28ea9f0fe5ca65928d9a5be0d5287177e0065b8 | 7,188 | package com.ez4us.shieldapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms... | 38.438503 | 167 | 0.573873 |
2d391f65795b415622f7dfe4a9a6f5e4596061e3 | 416 | package dev.bwt.libbwt.daemon;
public class NativeBwtDaemon {
static {
System.loadLibrary("bwt_jni");
}
// Start the bwt daemon with the configured server(s)
// Blocks the current thread until the daemon is stopped.
public static native long start(String jsonConfig, CallbackNotifier callba... | 29.714286 | 82 | 0.71875 |
3c71431aec86a8261695c5884052b73b1f97dd0a | 1,111 | package com.randolltest.facerecognition.data;
public class CompareResult {
private String userName;
private float similar;
private int trackId;
private String mErrorMsg;
private String mToken;
public CompareResult() {
}
public CompareResult(String userName, float similar) {
t... | 18.830508 | 58 | 0.613861 |
7f89647228bb480331d4e726909fe6af90be3be2 | 724 | package com.bindstone.kuljetus.domain;
import java.util.StringJoiner;
public class LibelleMarqueCount {
Long count;
private String libelleMarque;
public String getLibelleMarque() {
return libelleMarque;
}
public void setLibelleMarque(String libelleMarque) {
this.libelleMarque = ... | 21.294118 | 61 | 0.581492 |
7c0b714ea49c277931c3e6e841d1182b8790735f | 13,779 | /*
* Modifications Copyright (c) 2017-2020 Uber Technologies Inc.
* Portions of the Software are attributed to Copyright (c) 2020 Temporal Technologies Inc.
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may... | 40.646018 | 100 | 0.73583 |
f103b4d7176cdb78b3f4d9635951771d0fae74bc | 449 | package autoboxing_Enum;
import java.lang.reflect.*;
public class Single {
@MySingle(100)
public static void myMeth() {
Single ob= new Single();
try {
Method m= ob.getClass().getMethod("myMeth");
MySingle anno=m.getAnnotation(MySingle.class);
System.out.println(anno.value());
}
catch(Ex... | 17.96 | 49 | 0.652561 |
4dc6dc5eca1cb7a7f6bee06c7d6b80badb16be6a | 2,203 | package org.intellij.plugins.xsltDebugger.rt.engine.local.saxon9;
import net.sf.saxon.Controller;
import net.sf.saxon.TransformerFactoryImpl;
import net.sf.saxon.expr.instruct.Debugger;
import net.sf.saxon.expr.instruct.SlotManager;
import net.sf.saxon.lib.FeatureKeys;
import net.sf.saxon.lib.SerializerFactory;
import... | 37.982759 | 111 | 0.720835 |
c5af71c908eecd939ae966854993c069c3c05fe2 | 1,666 | /**
* Copyright 2009 Humboldt-Universität zu Berlin.
*
* 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... | 37.022222 | 120 | 0.737095 |
84bb94332c4dce613aa7f56b8032c6be350f95ee | 417 | package com.mirhoseini.fyber.di.component;
import com.mirhoseini.fyber.di.module.MainModule;
import com.mirhoseini.fyber.di.scope.MainScope;
import com.mirhoseini.fyber.view.activity.MainActivity;
import dagger.Subcomponent;
/**
* Created by Mohsen on 30/09/2016.
*/
@MainScope
@Subcomponent(modules = {
Mai... | 19.857143 | 55 | 0.764988 |
70702ea1e82192324846973d4c6fdbbfef833853 | 1,288 | package jp.ohtayo.mathopt.function;
import jp.ohtayo.commons.math.Vector;
/**
* 最適化アルゴリズムの目的関数であるSchwefel関数です。<br>
* 最適解が探索領域の境界付近にある多峰性関数で、設計変数間に依存関係はありません。<br>
* 速いうちに大域的最適解を求めないと局所最適解に収束します。
* Fschwefel(x) = sum{i=1~n}( -x_i * sin(sqrt(abs(x_i))) ) <br>
* (-512<= x_i <= 512) <br>
* min(Fschwefel(x)) = ... | 20.774194 | 66 | 0.629658 |
0671abefc31eda33f3b7b2882c3117fae91c1968 | 2,202 | package software.amazon.awssdk.core.async;
import java.io.IOException;
import java.io.OutputStream;
import java.io.UncheckedIOException;
import java.nio.ByteBuffer;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
import com.google.common.jimfs.Configuration;
import com.google.co... | 34.952381 | 99 | 0.686649 |
eaf93305dca3ee32909f423127eae701b6c40d06 | 6,792 | /**
* Copyright (C) 2013-2019 Helical IT Solutions (http://www.helicalinsight.com) - 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://... | 29.530435 | 119 | 0.594081 |
842e7a20a2b4a24c6db93f5c38c9ca927580f478 | 14,081 | package com.cs65.homie.ui.login.ui.login;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.view.animation.AlphaAnimation;
im... | 42.032836 | 129 | 0.579646 |
985c6349f63787bcce4be91b0c8a5c1c8408e68e | 4,282 | package com.mygdx.game.base;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.T... | 26.7625 | 104 | 0.660439 |
f87d4ea381f4af138cd841205fcdfcc7c2b8ed01 | 655 | package leetCode.day45;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author liqiqi_tql
* @date 2021/4/15 -11:08
*/
public class T229 {
public List<Integer> majorityElement(int[] nums){
List<Integer> list=new ArrayList<>();
Map<Integer... | 22.586207 | 59 | 0.580153 |
87a1ffc39e42aa97578f35e272fc7ab9796de04a | 2,592 | package io.thebitspud.astroenvoys.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.b... | 25.663366 | 124 | 0.732639 |
054c6a0285962e443cc522648fec2f5e29ab3cfc | 11,658 | package com.jstappdev.e4client;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Vi... | 41.635714 | 243 | 0.598816 |
1c743fe4539628031fcd99c84c4975d81941b06b | 2,027 | package com.civica.grads.boardgames.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annot... | 31.184615 | 91 | 0.672916 |
e8466f32d00b47eff7d645186198dc621a82bc18 | 759 | /* */ package org.apache.batik.transcoder.keys;
/* */
/* */ import org.apache.batik.transcoder.TranscodingHints;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* *... | 18.975 | 102 | 0.40448 |
3fe83e43af55b8b3921b0fd2b78422194ac95728 | 446 | package com.home.commonData.table.table;
import com.home.shineData.support.IndexKey;
import com.home.shineData.support.PrimaryKey;
/** 用户表 */
public class UserTO
{
/** 用户ID */
@PrimaryKey
long userID;
/** platform_uid */
@IndexKey("puid")
String puid;
/** 平台类型 */
String platform;
/** 是否成人 */
boolean isAdult... | 17.153846 | 45 | 0.674888 |
e95a90c29e9b39278618c1351d41335e3167d3e1 | 19,726 | package immutableexceptgas.occamsfuncer.v2.prototype.util;
import static immutableexceptgas.occamsfuncer.v2.prototype.util.ImportStatic.*;
import immutableexceptgas.occamsfuncer.v2.spec.fn;
import mutable.doubleAssemblyVM.DoubleAssemblyVM;
/** These are temporary cuz hopefully will eventually
make occamsfuncer advanc... | 43.738359 | 132 | 0.745666 |
50983c087e3b52a64c946787d51b9c15243f71ec | 1,372 | package org.jeecg.modules.smartEvaluateList.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.SmartPaper.vo.SmartMyExamVo;
import org.jeecg.modules.smartEv... | 27.44 | 78 | 0.746356 |
08470556af942528dca0195adc40a0710a4b0e96 | 1,336 | /*
* Copyright 2010 CodeGist.org
*
* 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 l... | 32.585366 | 102 | 0.654192 |
c42cac09aaf00f7813d681171ebb0080c394d7da | 324 | package com.hdekker.media.slideshows.deprecated;
public class MediaDisplayMetaData {
// final String displayName;
//
// public MediaDisplayMetaData(String displayName) {
// super();
// this.displayName = displayName;
// }
//
// public String getDisplayName() {
// return displayName;
// }
//
//
... | 17.052632 | 53 | 0.654321 |
243494a9072addf1fd5444b38fa65ef3244e3af5 | 727 |
public class FinallyBlock_with_Throw {
// throw used for throw exception in one place to other place
// finally : always execute block (Use for Closing file and Connection)
public static void main(String[] args) {
ThrowTest throwTest = new ThrowTest();
try {
throwTest.ArrayBounce();
} catch (ArrayI... | 13.980769 | 72 | 0.675378 |
725e0ee6220c4c06286d5530223c472c8adcf1d7 | 3,447 | package org.toilelibre.libe.curl;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import org.apache.commons.cli.CommandLine;
import org.apache.http.HttpResponse;
import static org.toilelibre.libe.curl.UglyVersionDisplay.stopAndDisplayVersionI... | 35.536082 | 156 | 0.656803 |
fced7c82c61dd97e79513d21f3f8edf4f16baf7d | 23,343 | /**
*/
package com.amazon.aws.workbench.model.awsworkbench.impl;
import com.amazon.aws.workbench.model.awsworkbench.AwsworkbenchPackage;
import com.amazon.aws.workbench.model.awsworkbench.CertificateBuilder_certificatemanager;
import com.amazon.aws.workbench.model.awsworkbench.ValidationMethod;
import org.eclipse.em... | 40.667247 | 298 | 0.786103 |
471b63a31e03ab24b7b99f1eb22813e74c29cb86 | 6,053 | package alcsoft.com.autobalance.features.quickinfo;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.Menu;
import android.v... | 37.364198 | 141 | 0.676689 |
d539c06dce9418b376e7d165ca895eb13633c1cb | 2,603 | package com.changfa.frame.service.mybatis.app.impl;
import com.changfa.frame.mapper.app.MbrRechargeOrderMapper;
import com.changfa.frame.mapper.app.MbrRechargeOrderRecordMapper;
import com.changfa.frame.model.app.MbrRechargeOrder;
import com.changfa.frame.model.app.MbrRechargeOrderRecord;
import com.changfa.frame.serv... | 40.671875 | 125 | 0.770649 |
217e49ae1111964bd7c816c60210abbc393c0563 | 356 | package sgf.view.map;
import sgf.controller.map.MapController;
import sgf.view.View;
/**
* Interface for the map's view.
*/
public interface MapView extends View<MapController> {
/**
* Simple getter for the matrix size field.
* @return an integer that is the matrix number of tiles per map dimension.
... | 19.777778 | 79 | 0.688202 |
d3649ceaf341fd964cd97f21d2da6ad990b99be3 | 259,271 | package us.kbase.test.groups.core;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.mock;
... | 39.992442 | 95 | 0.709019 |
6287c5603ddf9a8022629ff214fa698b97a5b758 | 2,073 | package com.mshams.cs.problems.leetcode;
import java.util.*;
/**
* https://leetcode.com/problems/shortest-bridge/
*/
public class ShortestBridge {
int[][] DIR = new int[][]{{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
public int shortestBridge(int[][] A) {
int m = A.length, n = A[0].length;
int[][] comps = getCo... | 23.033333 | 100 | 0.402315 |
7790c8909c3286a6329ecb84c588cdcae12008b5 | 697 | package com.touch.air.mall.search.feign;
import com.touch.air.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
imp... | 27.88 | 70 | 0.761836 |
c92cffe2edd68df545a1f902ea3075e0a3070871 | 10,830 | /***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
/*
* ported to v0.56
* using automatic conversion tool v0.01
*/
package WIP.mame056.vidh... | 30 | 175 | 0.597876 |
0128fae0e4828dabd42a12acf36e84b0e1f91820 | 1,472 | package com.hjq.base.action;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* author : Android 轮子哥
* github : https://github.com/getActivity/AndroidProject
* time : 2020/03/08
* desc : 软键盘相关意图
*/
public interface KeyboardAction {
... | 26.285714 | 103 | 0.58288 |
d73b9f11f439cd4a351677ba1b65b76a89d98b55 | 678 | package project2;
import java.util.ArrayList;
import java.util.Random;
public class Deck {
private ArrayList<Card> cards;
private Random random;
public Deck() {
cards = new ArrayList<Card>(52);
for ( Card.Face face : Card.Face.values() )
{
for ( Card.Suit... | 21.870968 | 55 | 0.541298 |
815e5cd245141a56b55d2c833f63cef6ce57f720 | 2,148 | package com.ruoyi.quartz.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.base.BaseEntity;
import com.ruoyi.common.constant.ScheduleConstants;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.quartz.util.CronUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotation... | 29.833333 | 107 | 0.706238 |
a326235885deac11e6f6589cc95c6a9b0f4b876c | 1,880 | package com.spring.controller;
import com.spring.exception.StudentNotFoundException;
import com.spring.model.Student;
import com.spring.repository.StudentRepository;
import com.spring.service.StudentService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 29.84127 | 81 | 0.730319 |
dbe65a7ae5a670b88860f27d7d0a7e2b9a82fc0a | 2,244 | /* Copyright 2020 Google LLC. 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
*
* Unless required by applicable ... | 32.521739 | 93 | 0.780749 |
d696c9aa412d4960c3c412a08286f43ed00e041f | 478 | package org.crazyit.ui;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layo... | 19.916667 | 53 | 0.736402 |
aac085177a9bc5536ac1da2e00ca98a8ef0613f0 | 921 | package stbi.common;
import stbi.common.term.Term;
import stbi.common.term.TermStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Store the frequency of each term.
*/
public class TermFrequency {
private Map<Term, Integer> wordFrequency = new HashMap<Term, Integer>();
publ... | 24.891892 | 76 | 0.631922 |
56f7bb20e2ae8da6b55d3718e4eb694ba31a866b | 5,132 | /*
* Copyright (c) 2006-2017 DMDirc Developers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge,... | 39.782946 | 119 | 0.700701 |
4e4dd3915cd1d7a329b85dd986f9611167c90fb3 | 1,116 | package com.almis.awe.model.entities.access;
import com.almis.awe.exception.AWException;
import com.almis.awe.model.entities.Copyable;
import com.almis.awe.model.util.data.ListUtil;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data... | 25.953488 | 69 | 0.776882 |
0e2366060156042d848d4d82cc80736d25ac8ef0 | 1,829 | /**
* Copyright 2008 biaoping.yin
*
* 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 ... | 24.386667 | 94 | 0.700383 |
a103c433f6e65e5b33495a2b748de52d8b6951b2 | 5,780 | package biblioteca;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
public class Livro {
//Atributos
private int codigo;
private ... | 29.191919 | 101 | 0.520242 |
d836fb53baf892443fc6b992cb99816c102da541 | 2,748 | /*
* The MIT License
*
* Copyright (c) 2017 CloudBees, Inc.
*
* 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, co... | 34.78481 | 107 | 0.692504 |
62295361315fc2395e42c9442edbd61382bfe413 | 531 | package com.jnape.palatable.shoki.api;
import com.jnape.palatable.shoki.testsupport.DefaultMethodsCollection;
import org.junit.Test;
import static com.jnape.palatable.shoki.impl.StrictStack.strictStack;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class CollectionTest... | 31.235294 | 81 | 0.779661 |
07a4a15711d6da34be0b4ea2e92974225a58ec9d | 1,779 | package net.landzero.xlog.utils;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import static org.junit.Assert.assertTrue;
public class FlattenTest {
@Test
public void flattenJSON() {
String json = "{\n" +
" \"key1\": \"value1... | 34.882353 | 66 | 0.517707 |
7bf35c33d069092d8089a83562ccd381854df5ae | 1,092 | /*
* Copyright © 2022 DATAMART LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 39 | 79 | 0.747253 |
98b001e58ebbf65fbead64aae92c4e49ce0cad45 | 6,470 | package com.withullc.app.withu.utils;
import android.graphics.Color;
import android.os.AsyncTask;
import android.util.Log;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.PolylineOptions;
import com.withullc.app.withu.model.utils.RouteDataParser;
import org.json.JSONObject;
... | 30.956938 | 102 | 0.555023 |
139d417edfeb1a5f77a8567688066b852f710d0e | 32,974 | package com.stormpath.sdk.impl.application;
import com.stormpath.sdk.account.Account;
import com.stormpath.sdk.account.AccountCriteria;
import com.stormpath.sdk.account.AccountLinkingPolicy;
import com.stormpath.sdk.account.AccountList;
import com.stormpath.sdk.account.AccountStatus;
import com.stormpath.sdk.account.C... | 39.16152 | 149 | 0.703312 |
a6accfff832786a45cd14b24533dc61de7825c1c | 24,282 | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.util;
import java.util.*;
import java.awt.*;
import java.awt.... | 32.637097 | 93 | 0.558603 |
489b85aadddb60ac410a6be2187d8646f92369eb | 426 | package main.utility.warframe.wfstatus;
public class WarframeDropInfoEntity {
private String place;
private String item;
private String rarity;
private float chance;
public String getPlace() {
return place;
}
public String getItem() {
return item;
}
public String ... | 17.04 | 39 | 0.619718 |
723cae6737151a374f008721cc5d41f7b10b98ec | 17,288 | package org.jetbrains.plugins.javaFX.fxml.descriptors;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.codeInsight.daemon.Validator;
import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import... | 42.372549 | 197 | 0.684405 |
e8016e63f40ac2a74e18832a685947792f15d458 | 3,790 | package com.nsoft.api.security.jwt.verifier.internal;
import static com.nsoft.api.security.jwt.verifier.internal.SigningAlgorithmTranslator.toNimbusAlgorithm;
import static java.util.Objects.requireNonNull;
import com.nimbusds.jose.JOSEException;
import com.nimbusds.jose.jwk.source.JWKSource;
import com.nimbusds.jose... | 38.673469 | 104 | 0.723483 |
6f05c3c8cdb5c1401488bcdd86f01ddaf6323bd0 | 952 | package com.galaxy.galaxyquests.commands.gqa.materialsub;
import me.hyfe.simplespigot.command.command.SubCommand;
import me.hyfe.simplespigot.plugin.SimplePlugin;
import me.hyfe.simplespigot.text.Text;
import me.hyfe.simplespigot.version.ServerVersion;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemS... | 36.615385 | 176 | 0.736345 |
f4b4c847a491a87a8dc86afa7d9e66409ba461b6 | 1,820 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2016-2018 AppyBuilder.com, All Rights Reserved - Info@AppyBuilder.com
// https://www.gnu.org/licenses/gpl-3.0.en.html
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2... | 35.686275 | 91 | 0.764286 |
6f7a37cfc2f312a74e6fcbfb3b2671e03c650417 | 408 | package main.java.test.testLucha;
import static main.java.test.testLucha.MainLucha1.tipoSoldadosTreeMap;
public class TipoSoldados {
private final int id;
private final String nombre;
public TipoSoldados(int id, String nombre) {
this.id = id;
this.nombre = nombre;
tipoSoldadosTree... | 21.473684 | 70 | 0.671569 |
f8408a5daed267554e4219eeee19b3f560313a9b | 205 | package net.unit8.spring.controller;
import org.springframework.stereotype.Controller;
@Controller("blog")
public class BlogController {
public String post() {
return "/view/posted";
}
}
| 18.636364 | 49 | 0.712195 |
39c6ac1c1583fe1277e2499915739f49567e677b | 551 | package com.home.commonBase.constlist.generate;
/** Buff次数消耗类型(generated by shine) */
public class BuffSubNumType
{
/** 无 */
public static final int None=0;
/** 使用指定组的技能(技能完成时或被中断时)(arg1:groupID) */
public static final int UseSkillFromGroup=1;
/** 使用指定组的attack时(完成时)(arg1:groupID) */
public static... | 22.04 | 48 | 0.662432 |
8eca019507d3a1af0c58148a7ff11f9046eaeac9 | 1,283 | package me.nithanim.cultures.lsp.processor.services;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.io.IOException;
import java.nio.ByteOrder;
import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
import me.nithanim.cultures.format.cif.CifFile;
import me.nithanim... | 37.735294 | 98 | 0.789556 |
b36a5efa777a92276e02054938ff5326b3638a91 | 645 | package com.changgou.logistics.pojo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
/**
* @Author: Haotian
* @Date: 2020/3/11 19:59
* @Description: 物流途径地址经度信息封装实体类
*/
@Data
@NoArgsConstructor
@AllAr... | 17.916667 | 71 | 0.693023 |
497649d772b16f97824918f72b1417f2075ce59f | 9,447 | /**
* Copyright 2018 Mystes Oy
*
* 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... | 44.772512 | 155 | 0.66836 |
b1d3ac3a5d03397dde6182eb0fbaa93481199c62 | 913 | package C18356933;
import processing.core.*;
public class BandFun {
MyVisual mv;
public BandFun(MyVisual mv)
{
this.mv = mv;
}
public void band1()
{
float gap = mv.width / (float) mv.getBands().length;
mv.strokeWeight(5);
for(int i = 0 ; i < mv.getBands().length... | 25.361111 | 73 | 0.466594 |
4084ccbeeb578560595ca24dd6455451e6da7168 | 180 | package AOP;
/**
* Created by quanchengyun on 2018/11/15.
*/
public class OriginService {
public void speak(int flags){
System.out.println("---speak---");
}
}
| 13.846154 | 42 | 0.605556 |
f18c5b57ef0c691d8d7b6d634723471e037f2013 | 9,319 | /* CrossoverPanel.java
* Shows the current solution, the donor solution and current cluster, and their result
* after crossover.
*/
package p3.views;
import java.awt.*;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
impor... | 32.245675 | 99 | 0.697607 |
553cf4bf10492e71588a5e893a3f9bef8c79f4e1 | 7,396 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/***************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this wor... | 17.526066 | 974 | 0.740806 |
3fa65632de60042592cbb760a45bb37549b4568c | 3,955 | /*
* MIT License
*
* Copyright (c) 2016 EPAM Systems
*
* 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, mod... | 25.849673 | 88 | 0.620986 |
e53c9a5b3eb1963690937f307ce40500319ec7a7 | 1,188 | package org.synyx.urlaubsverwaltung.application.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar... | 45.692308 | 175 | 0.851852 |
5084aff2fbdc4b8813acac3bc4201a62c82f2faf | 1,309 | /*
* This file is part of Baritone.
*
* Baritone 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 option) any later version.
*
* Baritone is distrib... | 25.666667 | 78 | 0.666921 |
b03c352d69188eb0bf2f889d8cb1abf269c6dbd4 | 1,089 | package com.sequenceiq.cloudbreak.api.endpoint.v4.blueprint.responses;
import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.sequenceiq.common.model.JsonEntity;
@JsonIg... | 24.2 | 78 | 0.726354 |
62184baadb449430b7b33c4dc7b7def67fa72dc3 | 3,994 | /*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* 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, an... | 34.431034 | 131 | 0.674762 |
c17ed2dd421f7390704140e6169d9e5514c94e12 | 174 | package com.skellas.dsa.graph;
public interface WeightedGraph extends Graph {
void addEdge(int v1, int v2, int weight);
Integer getWeightedEdge(int v1, int v2);
}
| 19.333333 | 46 | 0.729885 |
2a5a593dfc6aeb276f1cbddeb480d595334b94dc | 907 | package com.xbw.spring.boot.template;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.spri... | 33.592593 | 93 | 0.776185 |
198c20846a804c0289ba604b5444e166c51e111d | 12,942 | /*
* -----------------------------------------------------------------------\
* SilverWare
*
* Copyright (C) 2016 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 ... | 52.185484 | 159 | 0.781718 |
439a836ce46a743d6b183ca81e6c50ab37b650f2 | 1,290 | package com.app.notebook.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
i... | 23.035714 | 106 | 0.713178 |
86eee3fed918f82354186d4577584328cc65b6dd | 1,025 | package io.jktom.modules.cms.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.jktom.common.utils.PageUtils;
import io... | 34.166667 | 142 | 0.780488 |
ce1f38e6041467a4b829c4f886b49f65ca8d926d | 28,357 | package com.weather.sy.syweather.Activity;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.net.Connect... | 39.66014 | 147 | 0.627958 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.