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 |
|---|---|---|---|---|---|
26cc7eb55a3e59a39830e148ba2ab8a30965e25a | 7,175 | package ch.heigvd.amt.projectOne.presentation.admin;
import ch.heigvd.amt.projectOne.model.Character;
import ch.heigvd.amt.projectOne.model.Guild;
import ch.heigvd.amt.projectOne.model.Membership;
import ch.heigvd.amt.projectOne.services.dao.CharacterManagerLocal;
import ch.heigvd.amt.projectOne.services.dao.GuildMana... | 42.455621 | 190 | 0.629129 |
8cbf904106f4d52794e2957d8597f8dedf19e743 | 1,412 | package com.atschx.adnetwork.domain.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(name = "sober_token")
public class Toke... | 17.432099 | 68 | 0.72238 |
8f74ff27b1588489aabb06e12d93cebd6d563ac6 | 9,783 | /*
Copyright 2011-2016 Google Inc. 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 law or agreed t... | 29.116071 | 100 | 0.686804 |
813d93cc166c28da821451ada6c33ce4a611c223 | 4,494 | /*
* Copyright 2013-2019 Xia Jun(3979434@qq.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 28.807692 | 99 | 0.686693 |
89b4cc04956a96d61710ae8df50e5ee46e2863dd | 1,830 | package edu.uc.eh.service;
import edu.uc.eh.peptideMatch.Fasta;
import edu.uc.eh.utils.UtilsNetwork;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.swing.... | 31.016949 | 84 | 0.677049 |
2dbdefc3e865ca433de959026f762aff76e444bf | 3,955 | package com.jcmore2.testimageprocessinglibrary;
import java.util.ArrayList;
import android.content.Context;
import android.database.DataSetObserver;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;... | 24.565217 | 98 | 0.728698 |
7a3251f12e8e9ae1dc220254ec798b9dc5e62da9 | 6,017 | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2019 AT&T Intellectual Property. All rights reserved.
* Copyright © 2019 Amdocs
* ================================... | 45.240602 | 160 | 0.610271 |
f3860c28fd41e9450ad424b3cdd56a89751681e6 | 1,564 | /*
Copyright 2017, VIA Technologies, Inc. & OLAMI Team.
http://olami.ai
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 appli... | 24.061538 | 85 | 0.741049 |
0f7fb537a0c2e5026385d8b74ad56293a5afcb59 | 126 | package io.github.centrifugal.centrifuge;
public enum SubscriptionState {
UNSUBSCRIBED, SUBSCRIBING, SUBSCRIBED, ERROR
}
| 21 | 48 | 0.801587 |
0bd940ff2e95c5b73642c4b2902e920abe71b0c8 | 4,969 | /*
* XML Type: CT_VolTopicRef
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTVolTopicRef
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
import javax.xml.n... | 33.802721 | 171 | 0.618032 |
b55ba9f31e14747a6aa47d3d2a0a14fe7d432554 | 782 | package soot.jimple.infoflow.data.pathBuilders;
import java.util.Set;
import soot.jimple.infoflow.data.AbstractionAtSink;
import soot.jimple.infoflow.results.InfoflowResults;
/**
* Common interface for all path construction algorithms. These algorithms
* reconstruct the path from the sink to the source.
*
* @a... | 23 | 74 | 0.744246 |
3b8bccdefbdcfda6fe33aa257bce5bc74ca6e0fc | 590 | package com.lion.event.entity.vo;
import com.lion.common.enums.Type;
import com.lion.event.entity.HumitureRecord;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* @description:
* @author: Mr.Liu
* @time: 2021/6/9 下午4:54
*/
@Data
@Schema
public class ListHumitureRecordVo extends Humitu... | 18.4375 | 58 | 0.705085 |
8322026c92f9a48d51cfc43fe127ebb2b2bd7818 | 2,748 | package de.patrickmetz.clear_8.cli;
import de.patrickmetz.clear_8.globals.Text;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cl... | 29.548387 | 90 | 0.641194 |
c15f650bf7bc74f98521ec4033906b875896b29f | 2,670 | package src.games.Poker;
import java.util.ArrayList;
public class Pots {
private ArrayList<Pot> pots;
private Pot activePot;
Pots(){
pots = new ArrayList<Pot>();
pots.add(new Pot());
activePot = pots.get(0);
}
Pots(Pots copy){
p... | 26.176471 | 86 | 0.424719 |
bf229aef9b9184696d4f241829035cff47019f8f | 4,733 | package Servlets;
import Logica.*;
import Persistencia.ConexionDB;
import Persistencia.PersonaDao;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import java... | 44.233645 | 122 | 0.610395 |
dcced58aead13acba47cf98843147561a67f217b | 237 | package ThreadBasic2;
/**
* 继承Thread创建多线程
* */
public class Thread1 extends Thread{
public void run(){
System.out.println("hello");
}
public static void main(String args[]){
new Thread1().start();
}
}
| 15.8 | 43 | 0.599156 |
72c4b63989adaf15470b8887e3a1c603d587cd56 | 585 | package org.faudroids.mrhyde.jekyll;
import com.google.inject.Binder;
import com.google.inject.Module;
import com.google.inject.Provides;
import retrofit.RestAdapter;
public class JekyllModule implements Module {
@Override
public void configure(Binder binder) {
// nothing to do for now
}
@P... | 24.375 | 68 | 0.682051 |
d7616c942924a483eb1df6d26700f130da8c21a7 | 2,315 | package DataStructure.arrayANDlist.list.listRealize;
import DataStructure.arrayANDlist.list.Listlj;
import DataStructure.arrayANDlist.list.Nodelj;
/**
* @author liujun
* @version 1.0
* @date 2021/1/6
* @author—Email liujunfirst@outlook.com
* @blogURL https://blog.csdn.net/ljfirst
* @description 输出链表的倒数第K个元素
*/... | 26.609195 | 65 | 0.536501 |
b9db68c53e528d905c2fd58404297c1cae19324f | 873 | package com.github.isopropylcyanide.example.app;
import com.github.isopropylcyanide.jdbiunitofwork.core.JdbiHandleManager;
import com.github.isopropylcyanide.jdbiunitofwork.core.LinkedRequestScopedJdbiHandleManager;
import com.google.common.collect.Sets;
import com.google.inject.AbstractModule;
import org.skife.jdbi.v... | 31.178571 | 97 | 0.768614 |
e6aabf4c49fa0bf98fe2a4851d19b32cc3950a70 | 1,122 | package com.ldsmsoft.framework.dao.mybatis.model;
import java.util.Date;
public class SMSLogBean {
private Long smslogid;
private String phonenum;
private String log;
private Date datetime;
private String idencode;
public Long getSmslogid() {
return smslogid;
... | 20.4 | 67 | 0.582888 |
440c3ecf0210277b400d5b28a25e6eeb91d4d353 | 1,636 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.lu.entity;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntit... | 19.023256 | 108 | 0.701711 |
be57f75fe4e4e49198960f8c5fa43a22026328c1 | 1,038 | package javaTest;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Properties;
public class Main {
public static void main(String[] args) {
System.out.println("Start");
createFile();
System.out.print("End");
}
... | 21.625 | 88 | 0.651252 |
604bf05fafcd8ec14820399b929530e9bf185998 | 5,228 | /*==============================================================================
name: AbstractMobilePlatform.java
purpose: Mobile Platform.
history: Mon Aug 28, 2017 10:30:00 (Giavaneers - LBM) created
notes:
COPYRIGHT (c) BY GIAVANEERS, INC.
This source code is l... | 39.308271 | 80 | 0.388294 |
3a3a6b770724c2a0a87d2f8a0aa6785042ba1362 | 8,829 | /**
* Copyright (c) 2018-2028,
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in w... | 23.733871 | 136 | 0.624646 |
90f0957e68bd19d68f5b9f15b3e5e1bd1eb18ed0 | 6,138 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.mappingcontrol;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mapstruct.ap.testutil.IssueKey;
import org.mapstruct.ap.te... | 33.540984 | 109 | 0.644673 |
29c84bce724ba2ac48541510d411d974b5f1a7c6 | 5,065 | /*
* 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... | 34.691781 | 98 | 0.725568 |
e6f2452016554c85ffa4ee3c954e03474dc900d7 | 1,216 | package dev.cheerfun.pixivic.biz.notify.customer.impl;
import dev.cheerfun.pixivic.biz.event.constant.ObjectType;
import dev.cheerfun.pixivic.biz.event.domain.Event;
import dev.cheerfun.pixivic.biz.notify.customer.NotifyEventCustomer;
import dev.cheerfun.pixivic.biz.notify.po.NotifyRemind;
import org.springframework.a... | 27.636364 | 72 | 0.745888 |
ac0ac5d4e3dfa35d3be3d57cf313b825efc9da14 | 439 | package com.aronajones.sentinel.commands;
import com.aronajones.sentinel.Sentinel;
public class CommandFlip implements ICommand {
@Override
public EnumCommandType getCommandType() {
return EnumCommandType.STRING;
}
@Override
public int getNumberOfParameters() {
return 0;
}
@Override
public Object getCo... | 16.884615 | 54 | 0.747153 |
26fab4b05bb87886966fa9fa5d2e71a550be5b89 | 23,527 | // Copyright 2000-2018 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.codeInsight.daemon.impl;
import com.intellij.codeInsight.daemon.GutterMark;
import com.intellij.lang.annotation.HighlightSeverity;
import com.intellij.opena... | 49.014583 | 222 | 0.669529 |
3b3e6b092dffe9f9e0bcab39583bc4636291409c | 2,689 | package in.proudtobeanindian.yogaplus;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Created by G.BHARATHVAJ on 05-01-2017.
*/
public class Playlist {
public final int totalResults;
public final int resultsPe... | 27.438776 | 91 | 0.610264 |
0bf6db3122e93257e67a4bd34164ba9c70cd2bc1 | 853 | package cloud.simple.crawler.dao;
import java.io.DataInputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
public class UrlFile {
public static void main(String[] args) throws IOException {
try{
URL url = new URL("http://server.goteaming.com.cn//C... | 35.541667 | 129 | 0.662368 |
b20119dbe7bf599f62b354183582f06d903240e4 | 5,291 | package org.joshy.gfx.draw;
import org.joshy.gfx.Core;
import org.joshy.gfx.stage.jogl.JOGLFont;
import org.joshy.gfx.util.u;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
/**
* Created by IntelliJ ... | 33.27673 | 153 | 0.590059 |
0ea0db4b0f636d1a34529a006d763bb875970d7e | 12,697 | /**
* Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 requi... | 29.527907 | 163 | 0.669765 |
eb0865def30d7015e736a3e4d3d9a0d5710856a5 | 4,233 | package net.bagot.pgf.poi;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import com.google.android.gms.location.Geofence;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io... | 31.827068 | 94 | 0.49185 |
2bbc986456c2c586037397dbc3e18ceff5a3ac5b | 4,950 | /*
* MIT License
*
* Copyright (c) ReformCloud-Team
* Copyright (c) contributors
*
* 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 th... | 31.528662 | 127 | 0.639192 |
8f8030b193b9593172abffb093944385fae42ec5 | 10,086 | //Copyright (c) 2014 Sang Ki Kwon (Cranberrygame)
//Email: cranberrygame@yahoo.com
//Homepage: http://www.github.com/cranberrygame
//License: MIT (http://opensource.org/licenses/MIT)
package com.cranberrygame.cordova.plugin.ad.vungle;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.PluginResult;
imp... | 37.917293 | 290 | 0.631668 |
0213cb71d7b5a637615220e47d9ee1e46e1a771c | 967 | package solution.test;
import static org.junit.Assert.*;
import org.junit.Assert;
import org.junit.Test;
import solution.*;
public class QueenTest {
@Test
public void testKill() {
Queen queen = new Queen(1, 1);
Assert.assertTrue(queen.kill(0, 0));
Assert.assertTrue(queen.kill(0, 1)... | 26.135135 | 45 | 0.614271 |
ee3cf6520dbde090e507571c77e8b6c7a22ecbb9 | 11,777 | package com.ruoyi.web.controller.system;
import java.util.List;
import java.util.Map;
import com.ruoyi.common.core.domain.Ztree;
import com.ruoyi.framework.web.domain.server.Sys;
import com.ruoyi.system.domain.SysDept;
import com.ruoyi.system.service.*;
import com.ruoyi.sysusersystem.domain.JzSecurityTeamCorrelates;
... | 31.405333 | 115 | 0.625117 |
76b7e57f3572d51d750d72655ecc737dfcb1d0e3 | 2,186 | package com.winster.glmall.glmallorder.web;
import com.winster.glmall.glmallorder.service.OrderService;
import com.winster.glmall.glmallorder.vo.OrderConfirmVo;
import com.winster.glmall.glmallorder.vo.OrderSubmitResponseVo;
import com.winster.glmall.glmallorder.vo.OrderSubmitVo;
import org.apache.commons.lang.StringU... | 34.15625 | 152 | 0.686185 |
0d437e209649aba7d4cff58637cdffac985d6a5a | 1,923 | /*
* Copyright (c) Microsoft Corporation.
*
* 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... | 31.016129 | 124 | 0.698388 |
f806f7f86e43452e09cf8391744f0c5e5af463a3 | 2,956 | package com.example.lenovo.music.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.... | 34.372093 | 107 | 0.683018 |
447ffb7292c8fae022eb9f5958b2d66bd2e70a47 | 3,505 | package com.trigyn.jws.webstarter.utils;
public final class Constant {
private Constant() {
//
}
public enum TargetLookupId {
DASHBOARD(1), DYANMICFORM(2), DYNAMICREST(3), MODELANDVIEW(4), TEMPLATE(5);
final int lookupId;
TargetLookupId(int i) {
lookupId = i;
}
public int getTargetLookupId() {
... | 35.40404 | 113 | 0.760913 |
a2cdc956dc0ea8d9b864b115d9a92f48f5e593c8 | 690 | package ethos.model.players.combat.specials;
import ethos.model.entity.Entity;
import ethos.model.npcs.NPC;
import ethos.model.players.Player;
import ethos.model.players.combat.Damage;
import ethos.model.players.combat.Special;
public class AbyssalBludgeon extends Special {
public AbyssalBludgeon() {
super(5.0, 2... | 21.5625 | 68 | 0.723188 |
8d6661b82ee2174f37a6b4b0076d9c65364b6319 | 321 | package managedbean;
import enity.Product;
import java.util.List;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
/**
*
* @author Daomtthuan
*/
@Named(value = "productManagedBean")
@RequestScoped
public class ProductManagedBean {
public List<Product> getProducts() {
return
}
}
... | 14.590909 | 46 | 0.738318 |
efd64855f57de862fc5710e46863fc1c7ad3c22c | 6,265 | package com.swak.flux.verticle;
import java.io.Serializable;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import ... | 24.762846 | 113 | 0.715563 |
d8e46ee8c8f3af212968769e81ef2e1f70389697 | 11,002 | package uk.gov.hmcts.reform.wataskmanagementapi.services.taskmanagementservicetests;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentMatchers;
import org.mockito... | 42.809339 | 118 | 0.746228 |
c57c925cc8ee4c7ddefde7535e59c5616c444d2e | 4,254 | /* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.dao.jena;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.jena.graph.Graph;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.mod... | 33.761905 | 89 | 0.749177 |
53b995da9aa3317dfa4fc5358b6e0b709286fe9e | 648 | package com.piperstack.opensource.jeetcode.config;
import okhttp3.MediaType;
public class Constants {
public static class URL {
public static final String HOST = "leetcode-cn.com";
public static final String HOME = "https://leetcode-cn.com/";
public static final String QUERY = "https://lee... | 30.857143 | 85 | 0.675926 |
5a08e04573d35c3551217eed112b7ee9502d8fc2 | 2,886 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 32.795455 | 80 | 0.601525 |
068a56b0769dd7b1e8ce60486479246c0fc91df8 | 2,342 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 31.226667 | 113 | 0.724594 |
8f3e7e0c4447fe1ed4f9c279d9de93f0ca01641c | 951 | package com.waps.wanpay;
public class PayBean {
private String userid;
private float price;
private String notifyUrl;
private String goodsDesc;
private String goodsName;
private String orderId;
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
pu... | 20.234043 | 45 | 0.727655 |
046603e3b08fdc4b4f264fb54f3ed338ffc2793d | 1,482 | package com.alice.boot.entity;
import lombok.Data;
import org.hibernate.annotations.UpdateTimestamp;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* @au... | 26 | 124 | 0.679487 |
577a4d6bfcf6b3760475d6ae77887f0791aad87e | 2,510 | package com.example.suga.post_sample2;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.PieData;
import com.github.mike... | 31.772152 | 68 | 0.668127 |
508b29ca359e064737a03ffcbb1a60319de51589 | 570 | package com.bzgwl.mybatis_plus.sys.service;
import com.bzgwl.mybatis_plus.sys.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bzgwl.mybatis_plus.utils.JsonResponse;
/**
* 代码生成器
* service 接口
* @Author Professor_Kong
* @Date 2019-05-21
* @Email logwto@163.com
*/... | 22.8 | 86 | 0.757895 |
cf81c5d75970903f7b5ff3e40dc8e14f0e2afd7a | 289 | package com.mygdx.rope.objects.traps;
/**
* Created by Geoffrey on 18/10/2014.
*/
public interface Triggerable {
public void reset();
public boolean isActiveByDefault();
public void triggerONActions(HubInterface hub);
public void triggerOFFActions(HubInterface hub);
}
| 24.083333 | 52 | 0.733564 |
e8ebcfc4adfb209ee7c44413a7f5d79eaca570c2 | 866 | package com.jbooktrader.indicator.price;
import com.jbooktrader.platform.indicator.*;
/**
* Velocity of price
*
* @author Eugene Kononov
*/
public class PriceVelocity extends Indicator {
private final double fastMultiplier, slowMultiplier;
private double fast, slow;
public PriceVelocity(... | 26.242424 | 60 | 0.615473 |
569e409396bd80a66e5a0307f87d367fa7a1e97f | 4,337 | /**
* Leetcode - Algorithm - BattleshipsInABoard
*/
package com.ciaoshen.leetcode;
import java.util.*;
import com.ciaoshen.leetcode.myUtils.*;
/**
* Each problem is initialized with 3 solutions.
* You can expand more solutions.
* Before using your new solutions, don't forget to register them to the solution re... | 33.620155 | 114 | 0.508185 |
424c9f9d4cd91ab3380d252abed33399b5d5ab0f | 3,438 | /*
* 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... | 44.076923 | 110 | 0.639907 |
a7047a3a167a3eaf78777df0e81bec15e2d20463 | 1,013 | package easy;
import java.util.HashMap;
import java.util.Map;
/**
* Given an array of integers, return indices of the two numbers such that
* they add up to a specific target.
* You may assume that each input would have exactly one solution,
* and you may not use the same element twice.
*
* @author Renat Kaitma... | 28.138889 | 74 | 0.570582 |
134d0ca0f806140e9e04b8f72c6b0041fe6954de | 1,799 | public class AVL_BST{
public static boolean checkAVL(BST b){
return(b.isBalanced());
}
public static BST createBST(int[] a){
BST tree = new BST();
for (int i = 0; i < a.length; i++){
tree.insert(a[i]);
}
return tree;
}
public static void main(String[] args){
int[] A = {1,2,0,4,-1};
... | 19.988889 | 63 | 0.533074 |
fb0c7868c4e9c51bc47d3d7216f176c4821af0d7 | 181 | package hrv.band.app.ui.presenter;
/**
* Copyright (c) 2017
* Created by Thomas on 29.04.2017.
*/
public interface IDisclaimerDialogPresenter {
void agreeToDisclaimer();
}
| 16.454545 | 45 | 0.712707 |
1437773acc2435add6a5b03c4861c4d068788f23 | 1,726 | package io.zbus.spring.boot.util;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.Builder;
import io.zbus.mq.Message;
import io.zbus.spring.boot.exception.MessageBuildException;
import com.alibaba.fastjson.JSONObject;
public class MessageBuilder implements Builder<Mess... | 21.575 | 68 | 0.670915 |
71e49798adac9d6244bd9e6e714ff6a5866d014d | 493 | package org.apache.spark.io;
public class CompressionCodecSuite extends org.apache.spark.SparkFunSuite {
public CompressionCodecSuite () { throw new RuntimeException(); }
public org.apache.spark.SparkConf conf () { throw new RuntimeException(); }
public void testCodec (org.apache.spark.io.CompressionCodec co... | 61.625 | 131 | 0.780933 |
256a5a8c51479fbd264a61bf990610b7d0940f96 | 1,918 | package it.gis.egeosDCL.server.DAO;
import it.gis.egeosDCL.server.DAOUtility.DaoManager;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.log4j.Logger;
public class ParticelleGeomDAO extends DaoManager{
static p... | 27.014085 | 159 | 0.616267 |
864c1f2dc7bafbee726074990ee1a16f21e07a52 | 1,855 | package org.frameworkset.elasticsearch.entity.suggest;/*
* 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/LICEN... | 22.349398 | 76 | 0.724528 |
f0ee43f019330397ce0aeb3741d8f7d707d0ac92 | 3,339 | package uk.co.gresearch.siembol.configeditor.model;
public class ConfigStoreProperties {
private String githubUrl;
private String gitUserName;
private String gitPassword;
private String storeRepositoryName;
private String releaseRepositoryName;
private String adminConfigRepositoryName;
priv... | 27.368852 | 80 | 0.722671 |
70f65ab07f17ee91643d1bee18e290556e361cda | 766 | package com.google.code.japarser.dictionary;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class GoogleCodeHostingDictionary implements Dictionary {
private Pattern pattern = Pattern.compile("//code.google.com/p/(.*)/source/browse");
@Ove... | 28.37037 | 85 | 0.732376 |
8d5b9e03f3a792599ee37fe70f3659b7cd4c1fea | 7,181 | package eisenwave.torrens.stl;
import eisenwave.torrens.error.FileSyntaxException;
import eisenwave.torrens.io.Deserializer;
import eisenwave.torrens.io.LittleDataInputStream;
import eisenwave.torrens.object.Vertex3f;
import org.jetbrains.annotations.NotNull;
import java.io.BufferedReader;
import java.io.IOException;... | 37.015464 | 109 | 0.559114 |
5f9abfd9d2f7593e12459e1daa0fe0dd753ac654 | 127 | package function;
public class HelloWorld {
public String execute(Object context) {
return "Hello World!";
}
} | 18.142857 | 43 | 0.661417 |
f2a71a3887a3c46747347e8231946255d2ef55f8 | 509 | package cz.mg.vulkan;
public class VkCommandPoolCreateFlags extends VkFlags {
public VkCommandPoolCreateFlags() {
}
protected VkCommandPoolCreateFlags(VkMemory vkmemory) {
super(vkmemory);
}
protected VkCommandPoolCreateFlags(VkMemory vkmemory, long vkaddress) {
super(vkmemory, vk... | 20.36 | 75 | 0.689587 |
6116c8e803d7b325ffed5e1b7b946ceee9782b59 | 3,908 | package org.apache.maven.resolver.internal.ant.types;
/*
* 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 t... | 23.829268 | 98 | 0.599539 |
5e06b7687259582d1cdac3d50bbf701dd2337afe | 3,148 |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang... | 24.984127 | 95 | 0.646125 |
a53a5e134bdd11e370aabbbb71f6f87078b53bd8 | 1,411 | package gov.hhs.onc.sdcct.ws.metadata.impl;
import com.github.sebhoss.warnings.CompilerWarnings;
import gov.hhs.onc.sdcct.api.SpecificationType;
import gov.hhs.onc.sdcct.ws.metadata.InteractionWsMetadata;
import gov.hhs.onc.sdcct.ws.metadata.ResourceWsMetadata;
import gov.hhs.onc.sdcct.ws.metadata.WsMetadata;
import j... | 33.595238 | 148 | 0.742027 |
a71ea283aa8de7fb34170fef6df47ca1f95edc11 | 649 | package me.deepak.interview.tree.binary.search;
import me.deepak.interview.tree.binary.beans.Node;
public class InOrderPredecessor {
private InOrderPredecessor() {
}
public static Node inOrderPredecessor(Node root, Node node) {
if (root == null || node == null) {
return null;
}
if (node.getLeft() != nul... | 20.28125 | 62 | 0.636364 |
15e60f90e198a7f9c9a5af3c3b347466109933d4 | 1,504 | package xyz.the_dodo.bot.functions.utils;
import xyz.the_dodo.bot.anotations.BotService;
import xyz.the_dodo.bot.functions.IFunction;
import xyz.the_dodo.bot.types.message.CommandCategoryEnum;
import xyz.the_dodo.bot.types.message.MessageParams;
import xyz.the_dodo.bot.utils.AdminUtils;
import xyz.the_dodo.bot.utils.B... | 44.235294 | 222 | 0.750665 |
fa1f5a6def214e3f284d6290b6466e57e5901331 | 1,485 | package ca.jvsh.flute.designer;
import java.util.ArrayList;
import ca.jvsh.flute.designer.StylesFactory;
import android.graphics.Canvas;
import android.graphics.PointF;
import android.view.MotionEvent;
import android.view.View;
public class Controller implements View.OnTouchListener
{
private Style style;
priva... | 17.470588 | 61 | 0.673401 |
60e33363db00ca7d67d914c821d2549e997e4795 | 39,007 | // Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.commissioner.tasks;
import static com.yugabyte.yw.common.ModelFactory.createUniverse;
import static com.yugabyte.yw.common.ModelFactory.testCustomer;
import static com.yugabyte.yw.models.TaskInfo.State.Failure;
import static com.yugabyte.yw.models.TaskInfo.State... | 42.817783 | 100 | 0.756659 |
a6f002545a9d9d874707460442955fb6a5e5db9b | 5,224 | package br.com.marcosquirinogarcia.workout.activity;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.... | 37.582734 | 121 | 0.669793 |
2575a059550931838c902e3e71c5a0c8e1953c09 | 3,502 | /*******************************************************************************
* Copyright (c) 2004-2015 Gabor Bergmann and Daniel Varro
* 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,... | 34.673267 | 113 | 0.707881 |
6d18d77fdea9226809626b8c4f0ad46f565168a6 | 344 | package com.github.gnx.automate.common;
/**
* Created with IntelliJ IDEA.
* Description:
* @author genx
* @date 2020/4/4 20:14
*/
public interface IMsgListener {
IMsgListener append(CharSequence csq);
default IMsgListener appendLine(CharSequence csq) {
return this.append(csq).append(System.lin... | 18.105263 | 63 | 0.694767 |
0a69e29addd394d38da6bec4c0975b18ed6c1e0c | 897 |
package org.apache.ibatis.builder;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.TypeHandler;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class CustomStringTypeHandler implements TypeHandler<String> {
... | 25.628571 | 114 | 0.778149 |
1cd4eef7f4465031d69d707097a6cb62ede11a9f | 269 | package com.usable.spring.content.categoryUser.infrastructure.repository.port;
import com.usable.spring.content.categoryUser.domain.CategoryUser;
import java.util.List;
public interface FindCategoryUserPort {
List<CategoryUser> findAllByIdUser(String idUser);
}
| 26.9 | 78 | 0.828996 |
0360f1c04b32554538fae43e771cfcc3ea7612ec | 2,646 | /*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2016 Fabian Prasser, Florian Kohlmayer and contributors
*
* 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.apach... | 30.767442 | 102 | 0.647014 |
0c948d15739fea25f61accdd42ab5bfcf132472f | 774 | package com.example.zvt_110.vomusic.views;
import android.content.Context;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatImageView;
public class WEqualsHimageView extends AppCompatImageView {
public WEqualsHimageView(Context context) {
super(context);
}
public WEqu... | 25.8 | 85 | 0.739018 |
10d5008347af938e91d81571b589476c095d9f84 | 10,359 | // DateParser.java
// $Id: DateParser.java,v 1.5 2005/05/14 15:53:00 dbarashev Exp $
// (c) COPYRIGHT MIT, INRIA and Keio, 2000.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.util;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import ja... | 36.475352 | 80 | 0.4986 |
306b8af7cc98061a75f18ef79460fd84cf073a12 | 6,822 | package com.baidu.duer.dcs.chinatalk;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import com.baidu.duer.dcs.Fragment.ChinaTalkMyFragment... | 49.079137 | 98 | 0.594694 |
d1607a2e86b563401b0f858a4beafe5d7d35b74e | 724 | package io.renren.modules.dm.form;
import io.renren.modules.dm.entity.HydmEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class HydmForm implements Serializable {
private String title;
private Date dmTime;
private List<HydmEntity> data;
public String get... | 17.238095 | 48 | 0.638122 |
824932dc5319f0d4601bada31955c34f86082248 | 665 | package io.github.leetcode.tree;
import java.util.ArrayList;
import java.util.List;
public class IncreasingOrderSearchTree {
public TreeNode increasingBST(TreeNode root) {
List<Integer> val = new ArrayList<>();
inOrder(root, val);
TreeNode head = new TreeNode(0);
TreeNode cur = he... | 22.166667 | 59 | 0.581955 |
be2e40633f013c157fa4835a8c5f68e978ce60ee | 2,541 | /*
* 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 lab8;
import java.util.ArrayList;
/**
*
* @author erick
*/
public class actividades {
private String nombre;
priva... | 22.095652 | 115 | 0.632428 |
43ac3e29a7296875c1eebe856e5e81b491563ada | 920 | package com.harleyoconnor.casino.games;
import com.harleyoconnor.casino.Casino;
import com.harleyoconnor.casino.menus.MenuScreen;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
/**
* A super-class for game screens.
*
* @author Harley O'Connor
*/
public abstract class G... | 27.878788 | 148 | 0.711957 |
1b1ff696da09c12c7b3751b7051257ae9a04e876 | 10,645 | /*
* Copyright 2017 Atypon Systems, 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 agre... | 38.568841 | 163 | 0.569845 |
79b28bdc3aef8804553e97cf1414ed9cf874cee6 | 3,101 | //package org.hopto.mjancola.model;
//
//import org.junit.After;
//import org.junit.Before;
//import org.junit.Test;
//
//import static junit.framework.Assert.assertEquals;
//import static org.junit.Assert.*;
//
//
//public class WalkTest
//{
// private Walk testWalk;
// private Walk testStartedWalk;
// privat... | 30.106796 | 124 | 0.600451 |
4fe364e8b071a231510df4d29642f51830172055 | 48,343 | /*
* Copyright © 2018, 2020 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 54.074944 | 144 | 0.596757 |
a467df1d1cd540f03d929fa54c2c2460839793ff | 281 | package cn.com.bluemoon.handypoi.excel.function;
/**
* @author yudong
* @date 2019/6/9
*/
@FunctionalInterface
public interface TripleConsumer<T, R, K> {
/**
* 对传入的参数进行操作
*
* @param t
* @param r
* @param k
*/
void accept(T t, R r, K k);
}
| 15.611111 | 48 | 0.562278 |
d363008a4968ef53c7c61814d9801648c6c47c63 | 262 | package org.crl.utilities;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({ ChartCropperTest.class, ScaleRecognitionTest.class })
public class UtilityTests {
}
| 21.833333 | 69 | 0.805344 |
75d8f18c0fa443bd041ebbb110256e153ad8b37d | 1,191 | /**
* Copyright © 2015 - 2017 EntDIY JavaEE Development Framework
* 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 a... | 23.82 | 75 | 0.732997 |
5ab9ecc5dbf70d928074e23a3ce57e11244445eb | 3,898 | package me.kenzierocks.plugins.annointment.data;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.lang.reflect.Type;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import ... | 34.803571 | 80 | 0.640072 |
5d4ddbf16bdbb629b5ee436a27b9a66f3a19aeb8 | 796 | package de.hsmannheim.inf.pr2.ads;
/**
* Eine TreeNode-Klasse speziell für Suchbäume. Hier sind
* die Elemente sortierbar (Comparable).
*
* @author Markus Gumbel (m.gumbel@hs-mannheim.de)
*/
public class SearchTreeNode<E extends Comparable<E>>
extends TreeNode<E> {
/**
* Erzeuge einen neuen Binärbau... | 23.411765 | 71 | 0.66206 |
3dae533ee80f580965cd637bf36d731650bffd59 | 882 | package org.deftserver.util;
import java.net.MalformedURLException;
import java.net.URL;
public class UrlUtil {
/** Example:
* <pre>
* {@code
* url: http://tt.se/ Location: /start => http://tt.se/start
* url: http://localhost/moved_perm Location: / => htt... | 28.451613 | 99 | 0.617914 |
d34d42605967a0aae9e6611b61f06e1f34a5dd93 | 927 | package com.sayee.sxsy.api.officeapi.service;
import com.sayee.sxsy.api.officeapi.dao.OfficeApiDao;
import com.sayee.sxsy.api.officeapi.entity.OfficeApi;
import com.sayee.sxsy.api.officeapi.entity.OfficeApiEntity;
import com.sayee.sxsy.common.service.CrudService;
import com.sayee.sxsy.modules.sys.entity.Dict;
import o... | 30.9 | 82 | 0.771305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.