blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
db073fb529f48b4e97bf1f3a3e5a0e0c9f0d91dd | Java | AndreJohannes/MonsterTruck | /MonsterTruckBase/src/CollisionHandling/PreCollisionHandler.java | UTF-8 | 8,823 | 2.640625 | 3 | [] | no_license | package CollisionHandling;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.atomic.AtomicReference;
import Auxiliary.EWorldObjects.DynamicTypes;
import Auxiliary.Graph;
import Auxiliary.IVehicleObject;
import A... | true |
fb0015e633ba16c112907fcc9bf068e1ba2beff6 | Java | kim-cv/KitchenTimer-Android | /app/src/main/java/com/funkyqubits/kitchentimer/ui/timers/TimersFragment.java | UTF-8 | 6,900 | 1.828125 | 2 | [] | no_license | package com.funkyqubits.kitchentimer.ui.timers;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androi... | true |
3c35f715ff5e72f9b87ee3cdec7aa9f015782239 | Java | KxmischesDomi/CloudNet-v3-Legacy | /cloudnet-modules/cloudnet-bridge/src/main/java/de/dytanic/cloudnet/ext/bridge/nukkit/listener/NukkitPlayerListener.java | UTF-8 | 3,253 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package de.dytanic.cloudnet.ext.bridge.nukkit.listener;
import cn.nukkit.Player;
import cn.nukkit.Server;
import cn.nukkit.event.EventHandler;
import cn.nukkit.event.EventPriority;
import cn.nukkit.event.Listener;
import cn.nukkit.event.player.PlayerJoinEvent;
import cn.nukkit.event.player.PlayerLoginEvent;
import cn.... | true |
984a1e911b4856404c04fecdd4e11ffd5271a3b1 | Java | davidfeust/Algorithms1 | /MaxSquare/MaxSquare.java | UTF-8 | 1,773 | 3.4375 | 3 | [] | no_license | public class MaxSquare {
public static int maxSquare(int[][] mat) {
int n = mat.length, m = mat[0].length;
int[][] help = new int[n][m];
for (int i = 0; i < m; i++) help[0][i] = mat[0][i];
for (int i = 0; i < n; i++) help[i][0] = mat[i][0];
int max = 0;
for (int i =... | true |
e829b3f797b5f9ee34b068570f2ea10e2546799f | Java | ccw924263/ccwproject | /ccw.component/ccw.component.redis/src/main/java/com/ccw/impl/RedisServiceImpl.java | UTF-8 | 637 | 2.34375 | 2 | [] | no_license | package com.ccw.impl;
import com.ccw.IRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
@Service("redisService")
public class RedisServiceImpl implements IRedisService {
@Auto... | true |
a08c160c3359e69fd31061ded2bf1fc6ff41d5d8 | Java | pandres95/arduino-a-mole | /app/src/main/java/me/pandres95/arduinoamole/bluetooth/BluetoothHandler.java | UTF-8 | 3,413 | 2.109375 | 2 | [] | no_license | package me.pandres95.arduinoamole.bluetooth;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivit... | true |
f7e9a07b8832b036180368326a444a808bcb70a1 | Java | goodev/liudongbaoproject | /com.mymoney/src/vv.java | UTF-8 | 1,175 | 2.28125 | 2 | [] | no_license | import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class vv
implements Serializable
{
private String a;
private List b;
private List c;
public vv(String paramString)
{
ArrayList localArrayList1 = new ArrayList();
this.b = localArrayList1;
Arra... | true |
f37683824e2b173103e6ed2e18c145ae25ecaed3 | Java | choijinsil/SeatLayout | /SeatLayout/src/main/java/com/myway/seat/api/service/SaveService.java | UTF-8 | 643 | 1.992188 | 2 | [
"MIT"
] | permissive | package com.myway.seat.api.service;
import java.util.List;
import com.myway.seat.api.model.entity.Save;
/**
* 클래스에 대한 설명을 여기에 쓴다.
*
* @author js
* @since 2018. 12. 2.
* @version 1.0
* @see <pre>
* == 개정이력(Modification Information) ==
*
* 수정일 수정자 수정내용
* -----------------------... | true |
2172481b65b364e3a47ada3634412eb19cc485a2 | Java | chaimabr/TopicViewerWeb | /src/com/twitter/HashtagElement.java | UTF-8 | 480 | 2.1875 | 2 | [] | no_license | /* Generated by JavaFromJSON */
/*http://javafromjson.dashingrocket.com*/
package com.twitter;
public class HashtagElement {
private java.lang.Integer[] indices;
public void setIndices(java.lang.Integer[] indices) {
this.indices = indices;
}
public java.lang.Integer[] getIndices() {
return indices;
}
... | true |
c49c1eacd0cf118c01fb2868cead0de2a5ae530e | Java | joaoo-vittor/estudo-java | /DesktopComSwing/Calculadora/cursojava/calc/visao/Display.java | UTF-8 | 743 | 2.984375 | 3 | [] | no_license | package cursojava.calc.visao;
import java.awt.*;
import javax.swing.JLabel;
import javax.swing.JPanel;
import cursojava.calc.modelo.Memoria;
import cursojava.calc.modelo.MemoriaObservador;
public class Display extends JPanel implements MemoriaObservador {
private final JLabel label;
public Display() {
Mem... | true |
2d349501ac0e7101aa8cbe997bd9aa28296932a6 | Java | CodecoolMSC2017/ip-apache | /src/main/java/com/codecool/lms/model/GradeStatisticsChart.java | UTF-8 | 1,742 | 2.78125 | 3 | [] | no_license | package com.codecool.lms.model;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;
import java.awt.*;
import java.util.List;
public class GradeStatisticsC... | true |
c61733202ab3d75346a212465526f24d2f7b27fc | Java | anterostecnologia/anterosintegracaobancaria | /src/main/java/br/com/anteros/integracao/bancaria/banco/Pessoa.java | UTF-8 | 5,933 | 2.203125 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2016 Anteros Tecnologia
*
* 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.ap... | true |
2efd00b64479d7106f07fe9ffa9e6c28b0c840a5 | Java | lxchinesszz/webspider | /src/test/java/org/spider/boot/weibo/WbUser.java | UTF-8 | 272 | 1.5625 | 2 | [] | no_license | package org.spider.boot.weibo;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* @author liuxin
* @version Id: WbUser.java, v 0.1 2018/7/30 下午2:07
*/
@Data
@AllArgsConstructor
public class WbUser {
private String userName;
private String src;
}
| true |
909b950d064dc5b6729c6525d028f1bfb1934848 | Java | kchettiyar/java_practice | /OppsCon/src/main/java/CheckInstanceOf/shortcircutOpes.java | UTF-8 | 622 | 3.453125 | 3 | [] | no_license | package CheckInstanceOf;
public class shortcircutOpes {
public static void main(String[] args) {
if (m1() || m2()) {
System.out.println("condition satisfied");
} else
System.out.println("condition not satisfied");
System.out.println((m3() & m4()) + " num condition satisfied");
}
public static boolea... | true |
883c99b7d40ea7d71c852a86cb5271a3f3f3ee4a | Java | hcysct/ImageEditor | /app/src/main/java/com/createchance/imageeditordemo/model/SimpleModel.java | UTF-8 | 664 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.createchance.imageeditordemo.model;
import android.graphics.Bitmap;
/**
* ${DESC}
*
* @author createchance
* @date 2018/11/3
*/
public class SimpleModel {
private static SimpleModel sInstance;
private Bitmap mImage;
private SimpleModel() {
}
public static synchronized SimpleMo... | true |
7383a5872f9b96ec0bd3ef749cb7b405fbb4d221 | Java | gsool/mqtt-broker | /broker-core/src/main/java/com/yao/broker/core/handler/TcpIdleTimeoutHandler.java | UTF-8 | 1,193 | 2.265625 | 2 | [] | no_license | package com.yao.broker.core.handler;
import com.yao.broker.core.utils.NettyUtils;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import lombok... | true |
b4766988d8530a159e78aa7dd79ae9dc92f199a9 | Java | drerek/microservice_application | /third-service/src/main/java/com/kpi/project/third/service/service/JwtService.java | UTF-8 | 2,774 | 2.296875 | 2 | [] | no_license | package com.kpi.project.third.service.service;
import com.kpi.project.third.service.entity.User;
import com.kpi.project.third.service.security.jwt.SecretKeyProvider;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jws;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.slf4j.Logge... | true |
bcd316918444904d4ed7ba986153aa66d9b7e0e8 | Java | shao139772/springboot2WithSecurity | /src/main/java/com/ubisys/drone/config/exception/DroneException.java | UTF-8 | 274 | 2.171875 | 2 | [] | no_license | package com.ubisys.drone.config.exception;
import lombok.Data;
/**
* 自定义异常类
*/
@Data
public class DroneException extends RuntimeException {
private String msg;
public DroneException(String msg) {
super(msg);
this.msg = msg;
}
}
| true |
83f7d551fbe62f44978548b109f05bbad9012fad | Java | hutomadotAI/web-api | /service/core-service/src/main/java/com/hutoma/api/connectors/aiservices/ControllerConnector.java | UTF-8 | 13,382 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.hutoma.api.connectors.aiservices;
import com.google.common.collect.ImmutableMap;
import com.hutoma.api.common.Config;
import com.hutoma.api.common.JsonSerializer;
import com.hutoma.api.common.SupportedLanguage;
import com.hutoma.api.common.Tools;
import com.hutoma.api.connectors.*;
import com.hutoma.api.co... | true |
093dadcd28264ac258e7c1c0b206e573733eada0 | Java | punitmantree/LcoAndroidProjects | /FactorialApp/app/src/main/java/com/example/punnit/factorialapp/MainActivity.java | UTF-8 | 960 | 2.328125 | 2 | [] | no_license | package com.example.punnit.factorialapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
Button b;
EditText e... | true |
6d3cbcdb72b79a78d4f551a0e332dd0d4a33f9d3 | Java | wozhaosini/ucloud | /ucloud-all/ucloud-usermanage/src/main/java/org/dlut/ucloud/usermanage/service/impl/UserManageService.java | UTF-8 | 2,874 | 2.15625 | 2 | [] | no_license | /*
* Copyright 2014 etao.com All right reserved. This software is the
* confidential and proprietary information of etao.com ("Confidential
* Information"). You shall not disclose such Confidential Information and shall
* use it only in accordance with the terms of the license agreement you entered
* into with eta... | true |
42cebec32099355e48c284be72bb796ad7ecd1e1 | Java | 18965050/oasis | /support/archetype/src/main/resources/archetype-resources/src/main/java/authc/DemoRealm.java | UTF-8 | 1,791 | 2.1875 | 2 | [] | no_license | #set($symbol_pound='#')#set($symbol_dollar='$')#set($symbol_escape='\')package ${package}.authc;
import ${package}.authc.entity.AccInfo;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.au... | true |
7e54de9eba01a002e64cefb03553b6b909a5f45f | Java | dys1715/CLMS | /app/src/main/java/dys/clms/bean/Config.java | UTF-8 | 681 | 2.328125 | 2 | [] | no_license | package dys.clms.bean;
import java.util.ArrayList;
/**
* Created by Administrator on 2016/6/26 0026.
*/
public class Config {
private String configTitle;
private ArrayList<String> config;
public Config(String configTitle, ArrayList<String> config) {
this.configTitle = configTitle;
this.... | true |
98d6e9e5cb7b1d7e7e7115aa2ac56eec9061f391 | Java | erikarzumanyan/TravelManager | /app/src/main/java/com/uniquemiban/travelmanager/filter/MoneyFilterFragment.java | UTF-8 | 3,710 | 2.078125 | 2 | [] | no_license | package com.uniquemiban.travelmanager.filter;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.D... | true |
e55e7562a0e80e25ab4d85cdf9447f01f762ca3a | Java | patiuma666/core-java-session9assignment3 | /Employee.java | UTF-8 | 3,907 | 3.71875 | 4 | [] | no_license | package employeeExample;
public class Employee { //here we creating a class
int empId;
String empName;
int Total_Leaves;
double TotalSalary;
// here we are Creating the constructor of the Employee class
public Employee(int empId, String empName, int totalLeaves, double tot... | true |
b470146b8c40d1547cc074d3c7b69193ce716d93 | Java | wanderson100v/Locadora-veiculos-pajeu | /src/model/business/IBoEndereco.java | UTF-8 | 286 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package model.business;
import model.excecoes.BoException;
import model.vo.Endereco;
public interface IBoEndereco extends IBussines<Endereco>{
public Endereco gerarEndereco(String cep) throws BoException;
public void validarEndereco(Endereco endereco) throws BoException;
}
| true |
8b32d3b54c7bdf80385b0a0144a93c901f23a651 | Java | Rardian/telegram-bots | /src/main/java/de/rardian/telegram/bot/castle/commands/actions/CastleStatusAction.java | UTF-8 | 675 | 2.3125 | 2 | [] | no_license | package de.rardian.telegram.bot.castle.commands.actions;
import de.rardian.telegram.bot.castle.model.Castle;
import de.rardian.telegram.bot.command.action.Action;
import de.rardian.telegram.bot.command.action.SendsAnswer;
import de.rardian.telegram.bot.communication.MessageReply;
public class CastleStatusAction imple... | true |
ef600b2f4875258b758a3aa1230d108b5dac2f39 | Java | kasatkasss/TeachMeSkills | /Unit1Task2.java | UTF-8 | 441 | 3.3125 | 3 | [] | no_license | public class Unit1Task2 {
public static void main(String[] args) {
int a = 3;
int b = 9;
int c = 5;
if(((a+b) > c) && ((a + c) > b) && ((b+c) > a))
System.out.println("Треугольник с такими сторонами существует");
else
System.out.println("Треугольника с... | true |
2dd5742a948867edeb1d316d434824b2e8680987 | Java | Ekaterina5885/DZ-3.4.-MovieManager | /src/main/java/ru/netology/manager/MovieManager.java | UTF-8 | 1,366 | 2.8125 | 3 | [] | no_license | package ru.netology.manager;
import lombok.Data;
import lombok.NoArgsConstructor;
import ru.netology.domain.MovieList;
@Data
@NoArgsConstructor
public class MovieManager {
int quantityMovies = 10;
private MovieList[] movies = new MovieList[0];
public MovieManager(int quantityMovies) {
this.quanti... | true |
43aec4a69847d86b0ac63d182b6e9caf2ba0108c | Java | GDayan/Shape | /src/main/java/dataparser/DataParser.java | UTF-8 | 1,441 | 3.03125 | 3 | [] | no_license | package dataparser;
import entity.Point;
import entity.Rectangle;
import validator.RectangleValidator;
import validator.ValueValidator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class DataParser {
private static final String REGEX_DELIMITER = "\\s++";
public List<Rec... | true |
14ca3aadbfeba4f151c3ad896d0ae3ef9ed3a852 | Java | No-Q/core | /src/main/java/com/noq/dependencies/db/dao/UserDao.java | UTF-8 | 314 | 2.15625 | 2 | [] | no_license | package com.noq.dependencies.db.dao;
import org.springframework.data.repository.CrudRepository;
import com.noq.dependencies.db.model.User;
public interface UserDao extends CrudRepository<User, Long>{
User findByName(String name);
User findByEmail(String email);
User findByPhone(String phone);
}
| true |
bab1b91fdfcb29da91ca88456edc5a65a0c532f4 | Java | kotelkonrad/I-Like-Wood | /src/main/java/yamahari/ilikewood/items/WoodenChestItem.java | UTF-8 | 1,105 | 2.1875 | 2 | [
"MIT"
] | permissive | package yamahari.ilikewood.items;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import yamahari.ilikewood.blocks.WoodenChestBlock;
import yamahari.ilikewood.tilenentities.renderer.WoodenChestItemStackTileEntityRenderer;
im... | true |
564d464801b0a866ad03a8ef55587b7706f6e72c | Java | HongJungWan/kau-life | /app/src/main/java/com/lifekau/android/lifekau/activity/LibraryListActivity.java | UTF-8 | 10,970 | 2.125 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.lifekau.android.lifekau.activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.AsyncTask;
import android.support.v4.graphics.ColorUtils;
import android.support.v7.app.App... | true |
dd0f52a579b78e069c555161f27792ebd8b1cd43 | Java | Kahzerx/RiftedCarpet | /src/main/java/carpet/mixins/rule/shulkerSpawningInEndCities/ChunkGeneratorEndMixin.java | UTF-8 | 1,282 | 1.890625 | 2 | [] | no_license | package carpet.mixins.rule.shulkerSpawningInEndCities;
import carpet.CarpetSettings;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorld;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.provider.BiomeProvider;
import net.mine... | true |
52cd03004c06300fb85b7f4966fd831c87e14ba6 | Java | gaur-shubham/StimOpti | /Stimopti/src/main/java/com/petroleumsoft/stimopti/services/ChartsService.java | UTF-8 | 489 | 1.820313 | 2 | [] | no_license | package com.petroleumsoft.stimopti.services;
import java.util.List;
import com.petroleumsoft.stimopti.modal.Penetration;
import com.petroleumsoft.stimopti.modal.Placement;
import com.petroleumsoft.stimopti.modal.Productivity;
import com.petroleumsoft.stimopti.modal.Skin;
public interface ChartsService {
public List<... | true |
ae4594053a44a0a67660c21290df74b43fc58261 | Java | lanhoter/Leet-Code-Youtube | /Java/Google/23 - Merge k Sorted Lists/MergeKSortedList.java | UTF-8 | 797 | 3.671875 | 4 | [] | no_license | public class MergeKSortedList {
public ListNode mergeKLists(ListNode[] lists) {
PriorityQueue<ListNode> minHeap = createMinHeap(lists);
ListNode head = new ListNode(), tail = head;
while (!minHeap.isEmpty()) {
ListNode node = minHeap.poll();
tail.next = node;
... | true |
00d11712535d49382d943e94667c39f9dbf719c2 | Java | slapa97/db-service | /src/main/java/com/piotrek/stock/dbservice/configuration/HibernateConfiguration.java | UTF-8 | 908 | 2.078125 | 2 | [] | no_license | package com.piotrek.stock.dbservice.configuration;
import org.apache.tomcat.dbcp.dbcp2.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import javax.sql.DataS... | true |
c23fa0aeb3ae05329b07a2dda13c033a853c5f45 | Java | kt-shashi/DsAlgo.Java | /searchingandsorting/IndexOfFirst1InBinarySortedInfiniteArray.java | UTF-8 | 1,808 | 4.28125 | 4 | [] | no_license | package com.shashi.dsalgo.searchingandsorting;
//Given an infinite sorted array consisting 0s and 1s.
// The problem is to find the index of first ‘1’ in
// that array. As the array is infinite, therefore
// it is guaranteed that number ‘1’ will be
// present in the array.
//Approach
//Find the bound in which 1 lies... | true |
73784211d6c1bfc8390ec204e693f3e4f8a8260f | Java | jacksonrick/JFrameBoot | /jframe-core/src/main/java/com/jf/system/conf/FdfsConfig.java | UTF-8 | 3,281 | 1.953125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.jf.system.conf;
import com.jf.sdk.fdfs.conn.*;
import com.jf.sdk.fdfs.service.*;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springfr... | true |
e0b473b91ec58907c450102a4d39927152a5320a | Java | lucascalsilva/camunda-custom-rest-controller-demo | /src/main/java/com/camunda/consulting/dto/CustomCompleteTaskDto.java | UTF-8 | 652 | 1.898438 | 2 | [] | no_license | package com.camunda.consulting.dto;
import org.camunda.bpm.engine.rest.dto.task.CompleteTaskDto;
import org.camunda.bpm.engine.rest.dto.task.UserIdDto;
public class CustomCompleteTaskDto {
private UserIdDto userIdDto;
private CompleteTaskDto completeTaskDto;
public UserIdDto getUserIdDto() {
ret... | true |
04132f9e53763835f8579e49959293fb4cb66069 | Java | clarck/leetcode-1 | /src/main/java/com/example/leetcode/binarytree/LeetCode617_MergeTwoBinaryTrees.java | UTF-8 | 2,188 | 3.90625 | 4 | [] | no_license | package com.example.leetcode.binarytree;
import com.example.leetcode.linkedlist.pojo.TreeNode;
import java.util.Stack;
/**
* @description: 合并二叉树
* 给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。
*
* 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,否则不为 NULL 的节点将直接作为新二叉树的节点。
*
* 示例 1:
*
* 输入:
* Tree 1 ... | true |
1ef3a743df6f7e0b3a78a5dcf3b0b660f892aefe | Java | zhanght86/medical | /education/projects/ThunderReportEZ/src/com/teamsun/thunderreport/thread/support/ConfigurationFileService.java | UTF-8 | 1,028 | 2.140625 | 2 | [] | no_license | package com.teamsun.thunderreport.thread.support;
import java.io.File;
import java.io.FilenameFilter;
public interface ConfigurationFileService {
/**
* 获取配置文件信息
*
* @return
*/
public File[] listAllConfigurationFiles(FilenameFilter filter);
/**
* 获取全部配置文件信息
*
* @return
*/
pub... | true |
19d0591dad54ebe8bb096855185a0cea47637d4c | Java | dbeaver/dbeaver | /plugins/org.jkiss.dbeaver.ext.generic/src/org/jkiss/dbeaver/ext/generic/edit/GenericTableManager.java | UTF-8 | 6,043 | 1.507813 | 2 | [
"Apache-2.0",
"EPL-1.0",
"LGPL-2.0-or-later"
] | permissive | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2023 DBeaver Corp and others
*
* 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/LICE... | true |
0b956bad431f8d956bb757399f4510371c5cebe3 | Java | dmnm/booleanDocValues-jmh-tests | /src/main/java/org/apache/lucene/codec/IndexingBooleanDocValuesBench.java | UTF-8 | 4,897 | 2.140625 | 2 | [] | no_license | package org.apache.lucene.codec;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import org.apache.lucene.codecs.DocValuesFormat;
import org.apache.lucene.codecs.bool.BooleanDocValuesFormat;
import org.apache.lucene.codecs.lucene80.Lucene80Codec;
import ... | true |
e265546d653126a3efac2bc098888772003dd392 | Java | YangLiuSong/Java-lgta | /lgta/src/lgta.java | UTF-8 | 21,792 | 2.46875 | 2 | [] | no_license | import java.io.*;
import java.util.*;
import Jama.Matrix;
public class lgta {
// 声明所有的参数
// 词语words的集合
private HashSet<String> words = new HashSet<String>();
// 单词w在文档d中出现的频数,c(w,d)
private List<Map<String,Double>> c_w_d = new ArrayList<>();
// 文档总数
private int doc_num;
... | true |
e9dea1b77b308b6e48e22072e8818bae4099c70a | Java | Aosamesan/boolean-calculator | /src/main/java/com/aosamesan/model/operator/Operator.java | UTF-8 | 341 | 2.328125 | 2 | [] | no_license | package com.aosamesan.model.operator;
import com.aosamesan.model.ExpressionToken;
import com.aosamesan.model.ExpressionTokenType;
public interface Operator<T> extends ExpressionToken {
T getOperator();
OperatorType getOperatorType();
default ExpressionTokenType getType() {
return ExpressionTokenTy... | true |
7b0606887e0a1ae4c848c6175b52586054cc98ae | Java | srayas/NGPTrackerBE | /src/main/java/net/javaguides/NGPTracker/controller/EmployeeController.java | UTF-8 | 3,935 | 2.375 | 2 | [] | no_license | package net.javaguides.NGPTracker.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.we... | true |
137bb521ea6bead83f3cd11d1e4deecfbb559880 | Java | kaizhangzhang/spring-boot-demo | /akka/Greeter.java | UTF-8 | 685 | 2.90625 | 3 | [] | no_license | package com.example.springbootdemo.akka;
import akka.actor.UntypedAbstractActor;
/**
* @author kai.zhang
* @description 打招呼的actor
* @since 2018/10/23
*/
public class Greeter extends UntypedAbstractActor {
String greeting = "";
@Override
public void onReceive(Object message) throws Throwabl... | true |
58d07b27f38baf94ee2d67cf6b0f1267c937e811 | Java | kimngan120697/POM_NGANVTK_BANKGURU | /actions/pageObjects/EditAccountPageObject.java | UTF-8 | 262 | 1.914063 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.WebDriver;
import commons.AbstractPage;
public class EditAccountPageObject extends AbstractPage {
WebDriver driver;
public EditAccountPageObject(WebDriver _driver) {
this.driver= _driver;
}
}
| true |
6d73962b3d2aec281a782a6fd861d46de078f447 | Java | Zpure/foreign-trade | /foreign-trade-user-acc/src/main/java/com/zcpure/foreign/trade/feign/user/CustomerMsgFeign.java | UTF-8 | 961 | 1.71875 | 2 | [] | no_license | package com.zcpure.foreign.trade.feign.user;
import com.zcpure.foreign.trade.WebJsonBean;
import com.zcpure.foreign.trade.command.user.CustomerMsgAddCommand;
import com.zcpure.foreign.trade.command.user.CustomerMsgQueryCommand;
import com.zcpure.foreign.trade.dto.goods.GoodsDTO;
import com.zcpure.foreign.trade.dto.use... | true |
36d8699f19263a6592cf8c11e91720b3bc11208c | Java | windyer39/postermaker-1 | /app/src/main/java/com/ashu/postermaker/adapters/UsersAdapter.java | UTF-8 | 3,499 | 1.992188 | 2 | [] | no_license | package com.ashu.postermaker.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.... | true |
0f72c8d664899082212b2612690184086e905f28 | Java | codimiracle/user-middleware | /src/main/java/com/codimiracle/web/middleware/user/service/UserService.java | UTF-8 | 505 | 1.8125 | 2 | [] | no_license | package com.codimiracle.web.middleware.user.service;
import com.codimiracle.web.middleware.user.pojo.po.UserMetadata;
import com.codimiracle.web.middleware.user.pojo.vo.SocialUserVO;
import com.codimiracle.web.middleware.user.pojo.vo.UserMetadataVO;
import com.codimiracle.web.mybatis.contract.support.vo.Service;
publ... | true |
63a6fed44f2626fbcfeaeb73a0b5c7ce24616eb3 | Java | moutainhigh/xmas | /xmassystem/src/main/java/com/srnpr/xmassystem/plusconfig/PlusConfigBlactList.java | UTF-8 | 341 | 1.742188 | 2 | [] | no_license | package com.srnpr.xmassystem.plusconfig;
import com.srnpr.xmassystem.enumer.EKvSchema;
import com.srnpr.xmassystem.modelproduct.PlusModelBlackList;
public class PlusConfigBlactList extends ConfigTop {
public EKvSchema getSchema() {
return EKvSchema.Black;
}
public Class<?> getPlusClass() {
return PlusModelBl... | true |
74a8350ebb341c6b07dc311c9da7f8b9001437eb | Java | markkim976/ticket_test | /test_ticket/src/main/java/com/example/ticket_test/service/member/MemberServiceImpl.java | UTF-8 | 1,459 | 2.265625 | 2 | [] | no_license | package com.example.ticket_test.service.member;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Service;
import com.example.ticket_test.model.member.dao.MemberDAO;
import com.example.ticket_test.model.member.dto.MemberDTO;
@Service
pub... | true |
51eef39a25b46b3fbfcda48cf8f9c41b462ed1b0 | Java | jtap60/com.estr | /src/com/estrongs/fs/impl/l/b.java | UTF-8 | 1,617 | 1.960938 | 2 | [] | no_license | package com.estrongs.fs.impl.l;
import com.estrongs.fs.a;
import com.estrongs.fs.w;
import java.io.File;
public class b
extends a
{
protected String a;
private File b;
private long c;
private int d;
private int e;
public b(String paramString1, String paramString2, String paramString3, String paramStr... | true |
e0e15a3e47411a718fa58fa75fe45e3090de3cca | Java | soooban/RestDoc | /RestDocBeanValidation/src/main/java/cn/willingxyz/restdoc/beanvalidation/NegativeOrZeroPostProcessor.java | UTF-8 | 981 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package cn.willingxyz.restdoc.beanvalidation;
import cn.willingxyz.restdoc.core.models.PropertyModel;
import cn.willingxyz.restdoc.core.parse.postprocessor.IPropertyPostProcessor;
import cn.willingxyz.restdoc.core.parse.utils.TextUtils;
import com.google.auto.service.AutoService;
import javax.validation.constraints.N... | true |
4f580676cc223f561a93a9aa8e741deb3fa5f49d | Java | flyJenkins/RepoAnalysis | /RepoAnalysisLib/src/main/java/org/flyJenkins/analysis/strategy/JAVASCRIPTAnalysisStrategy.java | UTF-8 | 948 | 2.015625 | 2 | [] | no_license | package org.flyJenkins.analysis.strategy;
import org.flyJenkins.analysis.model.GitHubRepoCmd;
import org.flyJenkins.analysis.model.ProjectDto;
import org.flyJenkins.analysis.model.SearchCodeDto;
import org.flyJenkins.analysis.service.GitHubApiManager;
public class JAVASCRIPTAnalysisStrategy implements Langua... | true |
262d7fd12bbaee552cf68709041db1e085d7d0da | Java | namphho/AndroidDagger | /app/src/main/java/com/hnam/androiddagger/di/ChatComponent/ChatModule.java | UTF-8 | 453 | 1.78125 | 2 | [] | no_license | package com.hnam.androiddagger.di.ChatComponent;
import android.content.Context;
import com.hnam.androiddagger.database.ChatService;
import com.hnam.androiddagger.database.DBService;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
/**
* Created by nampham on 12/25/18.
*/
@Module
publ... | true |
e201a77647103f77656dd05bb7531785436f2a22 | Java | ChaiYe/oaManagerwed | /src/main/java/com/officeAuto/ssm/service/impl/ActMarkerServiceImpl.java | UTF-8 | 997 | 2.078125 | 2 | [] | no_license | package com.officeAuto.ssm.service.impl;
import com.officeAuto.ssm.dao.system.ActMarkerDao;
import com.officeAuto.ssm.model.Actmarker;
import com.officeAuto.ssm.service.ActMarkerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframe... | true |
6be7eade7077d3038f8e33f963cb66333edf9880 | Java | manzanf/qa-automation-hws | /src/main/java/com/playtika/automation/clothes/Coat.java | UTF-8 | 1,298 | 3 | 3 | [] | no_license | package com.playtika.automation.clothes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal;
class Coat extends Clothes {
private Tissue cover;
private Tissue lining;
private double coverQuantity;
private double liningQuantity;
private static final Logger logger... | true |
39392c5e289ca0666819424eb4120956feb35060 | Java | mitp0sh/libjaclaff | /src/com/mitp0sh/jaclaff/attributes/stackmaptable/IntegerVariableInfo.java | UTF-8 | 863 | 2.1875 | 2 | [] | no_license | package com.mitp0sh.jaclaff.attributes.stackmaptable;
import java.io.DataInputStream;
import java.io.IOException;
import com.mitp0sh.jaclaff.serialization.SerCtx;
public class IntegerVariableInfo extends AbstractVariableInfo
{
public IntegerVariableInfo()
{
setVariable_info_tag(AbstractVariableInfo.VERIFICATION_... | true |
d746d11e796fa02d270a672d13bda96046635371 | Java | ang00/spring-all | /spring-elasticsearch/src/main/java/com/em/springelasticsearch/entity/User.java | UTF-8 | 480 | 1.796875 | 2 | [] | no_license | package com.em.springelasticsearch.entity;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import java.io.Serializable;
/**
* @Author: zhangyy
* @Email: zhang10092009@hotmail.com
* @Date: 2021/10/11 15:23:19
* @Version: v1.0
* @Modified:
* @Description:
*/
@Data
@Docume... | true |
cd956c3061f9921445ffe1b32c3767c3dde25e17 | Java | psyche1981/BreakbackMonkey | /core/src/psyche/breakbackmonkey/input/GameInputProcessor.java | UTF-8 | 2,157 | 2.40625 | 2 | [] | no_license | package psyche.breakbackmonkey.input;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputAdapter;
public class GameInputProcessor extends InputAdapter
{
public boolean keyDown(int k)
{
if(k == Keys.W)
GameKeys.setKey(GameKeys.W, true);
if(k == Keys.A)
GameKeys.setKey(GameKeys.... | true |
ddfefca24f75fb63da613be46e05eb415d60f633 | Java | ssalihi/JavaClass | /src/com/Class9/NestedLoop.java | UTF-8 | 730 | 3.375 | 3 | [] | no_license | package com.Class9;
public class NestedLoop {
public static void main (String[] args ) {
// for (initialization; condition; increment/decrement) {
// for nested loop for(initialization; condition; increment/decrement){}
//}
for (int i=0; i<3; i++) {
System.out.println("-----I am outer loop----- " +i);// outer l... | true |
9f68111d68d89d28b6f7a7d6927c8156a077a89a | Java | IN4QA/IN4_Testing_FRameWork | /IN4RE/src/test/java/baseClasses/LandSubMenu.java | UTF-8 | 3,348 | 1.960938 | 2 | [] | no_license | package baseClasses;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import driver.DriverScript;
import methods.Frames;
public class LandSubMenu extends DriverScript {
WebDriver iDriver;
pu... | true |
f0e6b72a2157c4084545496db941dffb5c0fc03b | Java | andrewexton373/csc-349-project-1 | /Sorts.java | UTF-8 | 4,524 | 3.625 | 4 | [] | no_license | /*
Andrew Exton - aexton
Jett Moy - jlmoy
October 1st, 2018
ALGORITHMS - Project 1
*/
public class Sorts {
//Sorts the list of N elements contained in arr[0..N-1] using the selection sort algorithm.
public static void selectionSort(int[] arr, int N) {
// FOR every i starting with first and ending ... | true |
2a9de5a4c2215888a35de1d76f4ec431098bf520 | Java | kinnikuren/maze | /maze/src/tests/ExceptionTest.java | UTF-8 | 1,211 | 3.171875 | 3 | [] | no_license | package tests;
import game.core.positional.Coordinate;
import game.core.positional.Node;
import java.util.*;
import util.ReadOnlyFlatIterator;
import util.View;
import static util.Print.*;
public class ExceptionTest {
public static void main(String[] args) {
Set<Node> nodeSet = new HashSet<Node>();
... | true |
22f784ca3fbd497af82ecf25ee2e04761e2ba91a | Java | roosteracham/quandansb | /src/main/java/数据结构/zsf/linkedlist/oneway/Test.java | UTF-8 | 795 | 2.78125 | 3 | [] | no_license | package 数据结构.zsf.linkedlist.oneway;
public class Test {
public static void main(String[] args) {
LinkedList linkedList = new LinkedList();
linkedList.add(2);
linkedList.add(5);
linkedList.add(4);
linkedList.add(6);
System.out.println("����ij����ǣ�" + linkedList.length());
System.out.println("huoqu �ڼ������� " + ... | true |
3769e0c79fecec4d425c38b80b885b78ff7d031f | Java | necrotigr/currencyconverter | /src/main/java/nl/necrotigr/converter/service/FixedIoSimpleRetriever.java | UTF-8 | 1,859 | 2.390625 | 2 | [] | no_license | package nl.necrotigr.converter.service;
import com.google.api.client.http.*;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.JsonObjectParser;
import com.google.api.client.json.jackson2.JacksonFactory;
import nl.necrotigr.conv... | true |
72e54cbd935030996488567f7becb8c282f1fe73 | Java | rosoareslv/SED99 | /java/neo4j/2019/12/BlockEntry.java | UTF-8 | 4,225 | 2.5 | 2 | [] | no_license | /*
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 3 of the License, or
... | true |
0b637bc23327db101bc93d13f2183488ed7ade84 | Java | scorsi/epitech-jcoinche | /client/src/main/java/client/Client.java | UTF-8 | 3,025 | 2.65625 | 3 | [
"Unlicense"
] | permissive | package client;
import client.command.Commands;
import client.command.ICommand;
import client.net.ClientInitializer;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.N... | true |
7cc98a9fc8a8cd8279d1847b6e8c799e3273f2fb | Java | oleksiy-sayankin/code-challenges | /algorithms/moderate/number-operations/src/main/java/net/javacogito/numberoperations/Main.java | UTF-8 | 3,747 | 3.234375 | 3 | [] | no_license | package net.javacogito.numberoperations;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.Iterator;
public class Main {
private static final int PLUS = 0;
private static final int MINUS = 1;
private static fina... | true |
d7d9ba3b33097d6f63bbe66047b193b8aff53bfd | Java | itsbalamurali/test_build | /chatak-pay/src/main/java/com/chatak/pay/constants/ChatakPayErrorCode.java | UTF-8 | 3,399 | 2.390625 | 2 | [] | no_license | /**
*
*/
package com.chatak.pay.constants;
/**
* << Add Comments Here >>
*
* @author Girmiti Software
* @date 23-Feb-2015 6:01:59 PM
* @version 1.0
*/
public enum ChatakPayErrorCode {
TXN_0999("Unable to process your request at this moment. Please try again."),
TXN_0998("System is in unde... | true |
daed487e5e6567d5624964070dd22268ea141c82 | Java | mmomtchev/node-gdal-async | /deps/libhdf5/hdf5/java/src/hdf/hdf5lib/exceptions/HDF5LowLevelIOException.java | UTF-8 | 1,628 | 2.203125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-llnl",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | true |
d0ec2b33d4ef2cde9e51b8fb0f5cf3773d2dbd4c | Java | jgmatos/ReSPA | /ReSPA/src/respa/leak/string/exclude/Exclude.java | UTF-8 | 466 | 2.1875 | 2 | [] | no_license | package respa.leak.string.exclude;
import java.math.BigDecimal;
public abstract class Exclude implements Cloneable{
public abstract double getAlphaValue();
public abstract BigDecimal getPreciseAlphaValue();
public abstract boolean valid(String concrete);
public abstract double getLogAlpha();
public abst... | true |
6aaa2a0e06af85c3980813642e4553db425f8bfa | Java | yushouling/design-patterns | /bridge/src/main/java/com/ysl/design/bridge/BridgeFrom.java | UTF-8 | 185 | 2.15625 | 2 | [] | no_license | package com.ysl.design.bridge;
/**
* 桥接模式关键代码
*/
public abstract class BridgeFrom {
public BridgeTarget bridgeTarget;
public abstract void from();
}
| true |
5394ea6b90ff51d34f8f7d9147084047f20b50fc | Java | kxp128/ydjw | /ydjw-modules/ydjw-police/src/main/java/com/ehootu/park/service/ChemicalsInspectionService.java | UTF-8 | 1,056 | 1.875 | 2 | [] | no_license | package com.ehootu.park.service;
import com.ehootu.park.model.ChemicalsInspectionEntity;
import com.ehootu.park.model.PublicInformationEntity;
import java.util.List;
import java.util.Map;
/**
* 易制毒化学品检验表
* 剧毒、易制毒化学品 专项检查
* @author yinyujun
* @email
* @date 2017-09-26 16:27:31
*/
public interface ChemicalsIns... | true |
66c623d6cdc4fc4ca2a465e9704a8ad7045127df | Java | tactusoft/anexa | /hiz/JavaSource/co/com/tactusoft/crm/controller/bo/BillingBO.java | UTF-8 | 2,824 | 2.28125 | 2 | [] | no_license | package co.com.tactusoft.crm.controller.bo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import co.com.tactusoft.crm.model.dao.CustomHibernate... | true |
c03ae392c311e7a9c4dfa031a6e0ad29661e75c2 | Java | AnaisLeseur/projet_app_voyage | /02_App_voyage_jsf/src/com/intiformation/DAO/LigneCommandeDAOImpl.java | UTF-8 | 9,752 | 2.875 | 3 | [] | no_license | package com.intiformation.DAO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.intiformation.modeles.LigneCommande;
/**
* Implémentation concrète de la DAO pour 'lignes_commandes'.
* 'lignes_commandes' : table... | true |
bd8243f7dd664dd2f028bc7d9a134ed972850fc0 | Java | xeostream/Coursea | /Application of Binary Tree/HeapImpl.java | UTF-8 | 1,588 | 3.3125 | 3 | [
"MIT"
] | permissive | /*
* 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 ApplicationofBinaryTree;
import java.util.Scanner;
/**
*
* @author Arthur
*/
public class HeapImpl {
public stat... | true |
dc0b217bbdb501e18afff83f09b603f85350b7fc | Java | dffan0829/classnet_test | /src/com/classnet/util/upload/UploadException.java | UTF-8 | 477 | 2.171875 | 2 | [] | no_license | package com.classnet.util.upload;
@SuppressWarnings("serial")
public class UploadException extends Exception {
public UploadException(String message, Throwable cause) {
super(message, cause);
// TODO Auto-generated constructor stub
}
public UploadException(String message) {
super(message);
// ... | true |
4681398cfff0b1accd4591068adf470c3a14bcc2 | Java | Alexander12827/iCatch | /app/src/main/java/com/icatch/ismartdv2016/View/Fragment/MultiPbPhotoFragment.java | UTF-8 | 10,593 | 2 | 2 | [] | no_license | package com.icatch.ismartdv2016.View.Fragment;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | true |
a454c801b2d636cd0e46dddb5d1e5c9b3c1a95db | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_825aa447df31b37d15c0c330db40a61f2085ecf4/DsParserForAllowMultipleUsersTestCase/16_825aa447df31b37d15c0c330db40a61f2085ecf4_DsParserForAllowMultipleUsersTestCase_t.java | UTF-8 | 3,665 | 1.695313 | 2 | [] | no_license | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or m... | true |
c35be95314180803282362a6afc08c21d716d985 | Java | xueliangli/today-algs | /algs-noob/src/algs/search/TreeSearch.java | UTF-8 | 4,079 | 4.03125 | 4 | [] | no_license | package algs.search;
import java.util.Stack;
/**
* @program: algs-noob
* @description: 二叉排序树(BST树)
* @author: 李学亮
* @create: 2019-01-07 10:00
**/
public class TreeSearch {
public TreeNode root;
private int size;
/**
* @Description:内部类,树的节点
* @Author: 李学亮
* @Date: 2019/1/7
*/
... | true |
f41bf65eb5a8e3a8cc3e41c6051cc683163fa6eb | Java | richyyjd/nova | /app/src/main/java/com/lopez/richard/nova_v6_en2/MainActivity.java | UTF-8 | 35,588 | 1.507813 | 2 | [] | no_license | package com.lopez.richard.nova_v6_en2;
/**
* Created by Richard on 31-March-2018
*/
import android.content.Intent;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Environment;
... | true |
5b370453d7a0879c5f2aa2b0cc5deb28d5c444c0 | Java | GeorgeConIV/MIPS | /src/Main.java | UTF-8 | 663 | 2.703125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
public class Main {
public static void main(String[] args)
{
FileManipulator fileMan = new FileManipulator();
fileMan.initFileScanner("Test.txt");
AsmScanner scan = new AsmScanner(fileMan.getListOfTokensWhit... | true |
6a32c558a4a6ea5506406fd9994206f428dcbc48 | Java | Motiveko/design-patterns | /src/com/motiveko/designpatterns/creational/prototype/game/HeroFactory.java | UTF-8 | 172 | 2.359375 | 2 | [] | no_license | package com.motiveko.designpatterns.creational.prototype.game;
public interface HeroFactory {
Mage createMage();
Beast createBeast();
Warlord createWarlord();
}
| true |
7c6c208403ff760cc23f2d6e98080b625af58005 | Java | hsutimes/bridge | /src/org/bridge/basic/Test5.java | UTF-8 | 1,215 | 3.734375 | 4 | [] | no_license | package org.bridge.basic;
import java.util.*;
/**
* 问题描述
* 给出一个包含n个整数的数列,问整数a在数列中的第一次出现是第几个。
* <p>
* 输入格式
* 第一行包含一个整数n。
* <p>
* 第二行包含n个非负整数,为给定的数列,数列中的每个数都不大于10000。
* <p>
* 第三行包含一个整数a,为待查找的数。
* <p>
* 输出格式
* 如果a在数列中出现了,输出它第一次出现的位置(位置从1开始编号),否则输出-1。
* 样例输入
* 6
* 1 9 4 8 3 9
* 9
* 样例输出
* 2
* 数据规模与约定
... | true |
a694c6a73ee188ecd0627c23d05b6dc88c07ee5c | Java | MichaelSp/Sitzplaner | /src/src/main/java/net/sprauer/sitzplaner/view/Blackboard.java | UTF-8 | 704 | 2.359375 | 2 | [] | no_license | package net.sprauer.sitzplaner.view;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JPanel;
import net.sprauer.sitzplaner.view.helper.Parameter;
public class Blackboard extends JPanel {
public static final Color DEFAULT_BLACKBOARD_COLOR = new Color(0, 60, 0);
private static final long seria... | true |
e9248e57d7039e61db2670526460441d0fdc83d4 | Java | eomcs/eomcs-java-project | /mini-pms-v1/app-14-a/src/main/java/com/eomcs/pms/handler/ProjectHandler.java | UTF-8 | 6,656 | 2.875 | 3 | [] | no_license | package com.eomcs.pms.handler;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
import com.eomcs.pms.domain.Member;
import com.eomcs.pms.domain.Project;
import com.eomcs.util.Prompt;
public class ProjectHandler {
List<Project> projectList;
MemberHandler memberHandler;
public ProjectHan... | true |
242814c007899b2b765b5a5ec7feff207518ece4 | Java | AlvaCorp/AndroPulsa | /AndroPulsa/src/id/aditya/andropulsa/database/DsPembeli.java | UTF-8 | 7,900 | 2.265625 | 2 | [] | no_license | package id.aditya.andropulsa.database;
import java.util.ArrayList;
import java.util.List;
import id.aditya.andropulsa.kelas.AutoObject;
import id.aditya.andropulsa.kelas.ClassPembeli;
import id.aditya.andropulsa.kelas.DataObject;
import android.content.ContentValues;
import android.content.Context;
import android.dat... | true |
055a931dc19e15b31051c2d793bafba96d798030 | Java | mydai/painter | /src/com/painter/biz/IUsersBiz.java | UTF-8 | 1,476 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.painter.biz;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.painter.entity.Users;
import com.painter.util.Condition;
public interface IUsersBiz {
/**
* 通过condition传入条件实例,获取用户信息列表
* @param condition
* @return List<Users>
*/
public abstract List<Users> getUsersL... | true |
4deb098e8f677b53281cc7c767dc5f6b01513181 | Java | Tanneguy/JooN | /src/main/java/net/nooj4nlp/controller/CorpusEditorShell/ExportXmlDialog/XmlAnnotationsTextPaneResources.java | UTF-8 | 2,804 | 2.875 | 3 | [] | no_license | package net.nooj4nlp.controller.CorpusEditorShell.ExportXmlDialog;
/**
* Helper class, used for imitating ComponentResourceManager for text pane.
*
*/
public class XmlAnnotationsTextPaneResources
{
private final StringBuilder text;
public XmlAnnotationsTextPaneResources()
{
text = new StringBuilder();
text... | true |
31d926411a722bfe3d921951af166ef14a148c8f | Java | apache/iceberg | /spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/data/vectorized/ArrowVectorAccessors.java | UTF-8 | 1,537 | 1.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 ... | true |
c835ee07d0680f499a392eeb80fcb00e6bfd527f | Java | robbiedaves/liftsim | /src/main/java/com/robbiedaves/samples/liftsim/FloorUI.java | UTF-8 | 624 | 2.921875 | 3 | [] | no_license | package com.robbiedaves.samples.liftsim;
import java.awt.*;
/**
* Author: Robin Davies
* Date : 11/09/2016
*/
public class FloorUI {
private Floor _floor;
private int _height;
private int _width;
public FloorUI(Floor floor, int height, int width) {
_floor = floor;
_height = heigh... | true |
0aa6eb0783f613fb38be41d8003776c2a35985a0 | Java | jabagdoshvili/Java-Exam | /Jaba-Bagdoshvili-V2/test/StationSquareTest.java | UTF-8 | 631 | 2.90625 | 3 | [] | no_license | import ge.edu.btu.Passenger;
import ge.edu.btu.Train;
import static org.junit.Assert.*;
public class StationSquareTest {
@org.junit.Test
public void main() {
Passenger gio=new Passenger("Gio",true);
Passenger nika=new Passenger("Nika",false);
Passenger jaba=new Passenger("Jaba",true);... | true |
192e585b73cd7a224e812180f34a38ef4aeb0385 | Java | aby113/easy-java | /src/ex06/Student.java | UTF-8 | 966 | 3.359375 | 3 | [] | no_license | package ex06;
public class Student {
public String name;
public int ban;
public int no;
public int kor;
public int eng;
public int math;
public Student(String name, int ban, int no, int kor, int eng, int math) {
super();
this.name = name;
this.ban = ban;
this.no = no;
this.kor = kor;
this.eng... | true |
3d1d3e0b9e9935001c1e55d1c060b43330e01ecf | Java | Guillhermegpp/POO | /2 bimestre/workspace/Lista12-POO/src/Teste/ServerChat.java | ISO-8859-1 | 3,902 | 3.859375 | 4 | [] | no_license | package Teste;
import java.io.*;
import java.net.*;
import java.util.*;
/**
*
* @author wolmir
*/
public class ServerChat extends Thread {
public static void main(String args[]) {
// instancia o vetor de clientes conectados
clientes = new Vector();
try {
// criando um socket que fica escut... | true |
885af123c4bfb2a8f740a9f1b8d8876ffc2be27b | Java | Sammy30/Codingbat-Java | /Array1/maxTriple.java | UTF-8 | 375 | 2.765625 | 3 | [] | no_license | package Array1;
/**
* Created by IntelliJ IDEA.
* User: Matthew M Jenkins
* Date: 2/9/12
* Time: 4:57 AM
*/
public class maxTriple {
public int maxTriple(int[] nums){
int largest = nums[0];
if(nums[nums.length/2] > largest) largest = nums[nums.length/2];
if(nums[nums.length-1] > larges... | true |
a1169ad5abfc567d66d9a0db634a7ab2e25dd845 | Java | priyashanmu/project-2 | /src/main/java/com/chat/dao/UserBeanDAOImbl.java | UTF-8 | 2,440 | 2.171875 | 2 | [] | no_license | package com.chat.dao;
import java.io.Serializable;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |