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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8851b5501dd3da3b15575fb213ecbb3ab71ab0b2 | Java | creativitRy/CloudCanards | /core/src/com/cloudcanards/util/VectorUtil.java | UTF-8 | 373 | 2.53125 | 3 | [] | no_license | package com.cloudcanards.util;
import com.badlogic.gdx.math.Vector2;
/**
* VectorUtil
*
* @author creativitRy
*/
public class VectorUtil
{
private VectorUtil() {}
private static Vector2 temp = new Vector2();
/**
* Add without affecting the vector
*/
public static Vector2 add(Vector2 vector, float x, f... | true |
1b2db7911b6b0a844939bf7931f862525016cc83 | Java | WillowSprig/BouncingSounds | /src/musicPars/Rhythm.java | UTF-8 | 2,942 | 3.015625 | 3 | [] | no_license | package musicPars;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
public class Rhythm {
private List<Bar> bars;
private int numOfBars;
private TimeSign currTimeSign;
private int tempo;
private Vector<Integer> rhythmSequence;
private int baseUnit;
private int n... | true |
1d48b4ebb28101b5a6a664f43ab35c3ad46bb16b | Java | Chennyh/bbgu-news-server | /src/main/java/com/chennyh/bbgunews/exception/RestAuthenticationEntryPoint.java | UTF-8 | 1,230 | 2.21875 | 2 | [] | no_license | package com.chennyh.bbgunews.exception;
import cn.hutool.json.JSONUtil;
import com.chennyh.bbgunews.common.CommonResult;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import javax.servlet.ServletException;
import javax.servlet.http.... | true |
4d63403b234e6495b7fbc29ae57b62efd4f080b1 | Java | jessicajorge/Projeto-Desenvolvedor-Jr. | /server/src/main/java/com/mv/meuprojeto/resource/PessoaResource.java | UTF-8 | 2,407 | 2.1875 | 2 | [] | no_license | package com.mv.meuprojeto.resource;
import java.util.List;
import javax.ws.rs.WebApplicationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotat... | true |
150fee339e3b6a51615fa7408663e80937fe65a0 | Java | congximing/webproject | /src/service/impl/UsersServiceImpl.java | UTF-8 | 12,864 | 2.515625 | 3 | [] | no_license | package service.impl;
import dao.UserDao;
import dao.impl.UsersDaoImpl;
import domain.*;
import service.UserService;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
public class UsersServiceImpl implements UserService {
private UsersDaoImpl dao = new UsersDaoImpl();
@Override
p... | true |
0c8c4c70c26a3d365edff6c7fabf900cacd730f1 | Java | MightyCode/BoxOverflow | /src/box_overflow/screen/render/Render.java | UTF-8 | 1,294 | 2.671875 | 3 | [] | no_license | package box_overflow.screen.render;
import box_overflow.util.math.Color4;
import static org.lwjgl.opengl.GL11.*;
/**
* Class with utility.
* @author MightyCode
* @version 1.1
*/
public abstract class Render {
public static Color4 c;
/**
* Set the 2D view.
*/
public static void glEnable2D() {
int[] vPo... | true |
e49805cf89ac4d29296f202397749c1003e0ca52 | Java | haotingting/kiss | /kiss-netty/src/main/java/com/zjtachao/fish/kiss/netty/bean/KissStopRequest.java | UTF-8 | 1,089 | 1.710938 | 2 | [] | no_license | /**************************************************************************
* Copyright (c) 2016-2017 Zhejiang TaChao Network Technology Co.,Ltd.
* All rights reserved.
*
* 项目名称:浙江踏潮-基础架构
* 版权说明:本软件属浙江踏潮网络科技有限公司所有,在未获得浙江踏潮网络科技有限公司正式授权
* 情况下,任何企业和个人,不能获取、阅读、安装、传播本软件涉及的任何受知
* 识产权保护的内容。 ... | true |
38a68a40a37dfa9559e2f94530f64ec75fb21bbd | Java | dustyewer/my-spring-boot | /spring-boot-mybatis-plus-mulidatasource/src/main/java/yewer/springbootmybatisplusmulidatasource/controller/UserController.java | UTF-8 | 1,115 | 1.929688 | 2 | [] | no_license | package yewer.springbootmybatisplusmulidatasource.controller;
import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import yewer.springbootmybatisplusmulidatasource.mapper.Use... | true |
8b0c6b4a6bcc4702321286d52b25ec3c843683cc | Java | magelion/gameProject-PROG6 | /PROJET/src/Sauvegarde.java | UTF-8 | 240 | 2.6875 | 3 | [] | no_license | import java.io.Serializable;
public class Sauvegarde implements Serializable {
Terrain plateau;
Boolean joueur;
Historique histo;
Sauvegarde(Terrain t, Boolean j, Historique h){
plateau=t.copie();
joueur = j;
histo=h;
}
}
| true |
be12220c49a24aaa4dc026bbb9a444c82794f6be | Java | JiminiDaddy/inflearn-springboot-jpa2 | /src/main/java/jpabook/shop/InitDb.java | UTF-8 | 2,552 | 2.734375 | 3 | [] | no_license | package jpabook.shop;
import jpabook.shop.domain.*;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.persistence.EntityManager;
@Component
@RequiredArgsConstruct... | true |
68884180348ea59d757f53836963fb76caa9b909 | Java | BBN-E/bbn-transliterator | /transliteration-core/src/main/java/com/bbn/serif/transliteration/package-info.java | UTF-8 | 173 | 1.671875 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /**
* Code for transliterating from one writing system to another.
* See {@link com.bbn.serif.transliteration.Transliterator}.
*/
package com.bbn.serif.transliteration;
| true |
37b6755866a4d97527d5a9d12f2df375cc1a09e5 | Java | imdineshsingh/QuesAn | /app/src/main/java/com/quesan/app/model/Question.java | UTF-8 | 949 | 2 | 2 | [] | no_license | package com.quesan.app.model;
/**
* Created by Dinesh Singh on 8/7/2017.
*/
public class Question
{
private String questionId,description,title,userId;
private long postDate;
public String getQuestionId() {
return questionId;
}
public void setQuestionId(String questionId) {
thi... | true |
85ffd126c82599ddca6ae474ef9670b97b6b68fa | Java | antkorwin/junit5-integration-test-utils | /src/main/java/com/antkorwin/junit5integrationtestutils/test/runners/EnablePostgresTestContainers.java | UTF-8 | 1,048 | 1.734375 | 2 | [] | no_license | package com.antkorwin.junit5integrationtestutils.test.runners;
import com.antkorwin.junit5integrationtestutils.test.extensions.PostgresTcExtension;
import com.antkorwin.junit5integrationtestutils.test.extensions.TraceSqlExtension;
import com.antkorwin.junit5integrationtestutils.test.runners.meta.annotation.EnableTrace... | true |
3e29a7c00be3ac5e928768e1f0642a736e0e3156 | Java | 1139195320/leetcode-study | /src/com/jack/algorithm/problem/pre/Easy1370.java | UTF-8 | 1,370 | 3.453125 | 3 | [] | no_license | package com.jack.algorithm.problem.pre;
/**
* @author jack
*/
public class Easy1370 {
public String sortString(String s) {
int[] arr = new int[26];
for (char c : s.toCharArray()) {
arr[c - 'a'] ++;
}
int n = s.length();
StringBuilder sb = new StringBuilder(n);... | true |
115b61a539ec95e80e659366242c4f3e183f907b | Java | trdmm/MobileSafe | /src/main/java/com/sat/mobilesafe/Engine/AddressDao.java | UTF-8 | 3,379 | 2.765625 | 3 | [] | no_license | package com.sat.mobilesafe.Engine;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Project:Working
* Package:com.sat.mobilesafe.Engine
* Created by 乳龙帝 on 2017/5/18.
*/
public class AddressDao {
//1.指定访问数据库的路径
public static String path = "/dat... | true |
ed1608076e08804cd3aec72297d684c9abfc5826 | Java | karstengresch/playing-with-reactive-spring-boot | /src/main/java/com/targa/labs/dev/myreactiveapp/data/Book.java | UTF-8 | 620 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.targa.labs.dev.myreactiveapp.data;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;
import java.math.BigDecimal;
@Data
@Table("book")
public class Book {
@Id
private Long id;
pri... | true |
49b0e3810117f0f48d99771560a1d95fd1f1024f | Java | NicholasBlackburn1/Blackburn-1.17 | /src/main/java/net/minecraft/world/level/chunk/ChunkBiomeContainer.java | UTF-8 | 4,091 | 2.109375 | 2 | [] | no_license | package net.minecraft.world.level.chunk;
import java.util.Arrays;
import javax.annotation.Nullable;
import net.minecraft.core.IdMap;
import net.minecraft.core.QuartPos;
import net.minecraft.util.Mth;
import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.LevelHeightAccessor;
import net.minecraft.w... | true |
e40fcb967f8881be10b645442fefe7a0804949fd | Java | MDMoll/Maven.Casino | /src/test/java/io/zipcoder/casino/casino/GameTest/BlackJackTest.java | UTF-8 | 23,544 | 2.828125 | 3 | [] | no_license | package io.zipcoder.casino.casino.GameTest;
import io.zipcoder.casino.casino.games.cardgames.cardutilities.Card;
import io.zipcoder.casino.casino.games.cardgames.BlackJack;
import io.zipcoder.casino.casino.games.cardgames.cardutilities.Rank;
import io.zipcoder.casino.casino.games.cardgames.cardutilities.Suit;
import i... | true |
2eb7836b27bd369d2a37e17b281090bc774fbfcd | Java | imub33n/PizzaKing-Delivey | /FastFood/FastFood/app/src/main/java/com/example/fastfood/MainActivity.java | UTF-8 | 836 | 2.140625 | 2 | [] | no_license | package com.example.fastfood;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.content.Intent;
import android.os.Looper;
public class MainActivity extends AppCompatActivity {
//Splash Screen
@Override
protected void onCreate(Bundle save... | true |
05f0e941cfb11bae19e1fdd51252b3072920d72a | Java | mjsamet/Knight-Online-Java-Server | /Server/knight-online/shared/src/main/java/com/knightonline/shared/network/pipelinefactory/PipelineFactoryBuilder.java | UTF-8 | 666 | 2.453125 | 2 | [] | no_license | package com.knightonline.shared.network.pipelinefactory;
import com.knightonline.shared.exception.ConnectivityException;
import com.knightonline.shared.network.common.HandlerTypeEnum;
/**
* @author Mamaorha
*
*/
public class PipelineFactoryBuilder
{
private static final String UNSUPPORTED_HANDLER_TYPE = "Unsuppor... | true |
44df35f5bb9bdd1a05b6fc03d4efda774e8bdba9 | Java | OlyaChuryk/Diplom5 | /src/main/java/com/diplom5/service/ProjectRiskService.java | UTF-8 | 259 | 1.929688 | 2 | [] | no_license | package com.diplom5.service;
import com.diplom5.entity.ProjectRisk;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface ProjectRiskService {
ProjectRisk findOne(int id);
List<ProjectRisk> findAll();
}
| true |
e2d8e20ca44651f3639752ff9d8d1ce226b4e981 | Java | kingofmorning/springMVC | /springmvc_validator/src/main/java/com/itheima/controller/groups/GroupA.java | UTF-8 | 154 | 1.546875 | 2 | [] | no_license | package com.itheima.controller.groups;
//用于设定分组校验中的组名,当前接口仅提供字节码,用于识别
public interface GroupA {
}
| true |
6b5c064f66911c21daa6ec001fd29137059108a2 | Java | zkzqzzz/IMService | /NettyService/src/org/diqurly/connect/ConnectManage.java | GB18030 | 4,176 | 2.875 | 3 | [] | no_license | package org.diqurly.connect;
import io.netty.channel.Channel;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;
/**
* ӹ Ⱥֲʽ
*
* @author diqurly
* @param <E>
*
*/
public class ConnectManage<E extends Channel> {
// private BlockingQueue<ChannelHandlerContext> cac... | true |
79e816eeaea84c8ca72f9e7bd84a8528fce3fd85 | Java | vaginessa/UploadR | /client/core/org/jnativehook/NativeInputEvent.java | UTF-8 | 6,333 | 2.5 | 2 | [
"MIT"
] | permissive | /* JNativeHook: Global keyboard and mouse hooking for Java.
* Copyright (C) 2006-2013 Alexander Barker. All Rights Received.
* http://code.google.com/p/jnativehook/
*
* JNativeHook is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | true |
739142b0f7cf23340843209dff9c6c817abdfa92 | Java | darkin-blade/Music_redo | /app/src/main/java/com/example/music_redo/player/ListManager.java | UTF-8 | 9,567 | 2.25 | 2 | [] | no_license | package com.example.music_redo.player;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.view.Gravity;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.Re... | true |
f1197318717bd6e240a173b76fd9332fe530b846 | Java | silvergate/SimpleFunctions | /src/main/java/com/simplefunctions/tests/cases/SplitString.java | UTF-8 | 967 | 2.875 | 3 | [] | no_license | package com.simplefunctions.tests.cases;
import com.simplefunctions.base.IFunction;
import com.simplefunctions.functions.literals.FunString;
import com.simplefunctions.functions.string.FunStrSplit;
import com.simplefunctions.tests.TestCase;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
/**
*... | true |
7218ffd291d3f971e560eb9520343f02cab7db4a | Java | ag-629/Dijkstra | /Heap.java | UTF-8 | 2,432 | 3.578125 | 4 | [] | no_license | public class Heap {
Node[] my_heap;
int count = 0;
public boolean isEmpty() {
return (count == 0);
}
public void add(Node value) {
if(count == my_heap.length - 1) resize();
count++;
my_heap[count] = value;
siftUp(count);
}
public... | true |
dad4ff65520d9f186a01ea971a39e93135c5c4f9 | Java | mahajanshrikant/coursecrudrepository | /Course-Crud/src/main/java/com/example/CourseCrud/controller/CourseController.java | UTF-8 | 1,795 | 2.359375 | 2 | [] | no_license | package com.example.CourseCrud.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annot... | true |
e45bb4c5763c78ce7ac1057b8c5fea944a018e27 | Java | wangjfNB/wjf | /jwt/src/test/java/com/atguigu/jwt/JwtTests.java | UTF-8 | 2,062 | 2.609375 | 3 | [] | no_license | package com.atguigu.jwt;
import io.jsonwebtoken.*;
import org.junit.Test;
import java.util.Date;
import java.util.Set;
import java.util.UUID;
public class JwtTests {
//过期时间,毫秒,24小时
private static long tokenExpiration = 24*60*60*1000;
//秘钥
private static String tokenSignKey = "atguigu123";
@Test... | true |
f32eadf4276e889cd173e4b5940b0a0225dc2eb5 | Java | snaphy/generator-snaphy | /generators/androidSdk/templates/snaphyandroidsdk/src/main/java/com/androidsdk/snaphy/snaphyandroidsdk/repository/CustomerRepository.java | UTF-8 | 238,037 | 1.859375 | 2 | [
"MIT"
] | permissive | package com.androidsdk.snaphy.snaphyandroidsdk.repository;
import com.google.common.collect.ImmutableMap;
/*
Replacing with custom Snaphy callback methods
import com.strongloop.android.loopback.callbacks.ListCallback;
import com.strongloop.android.loopback.callbacks.ObjectCallback;
import com.strongloop.android.loop... | true |
0c3658b36ef4c13d3cd934d36f8565cc1e899e6f | Java | yinian3199/JavaNote | /src/main/java/com/example/proxy/dynamic/jdkProxy/JDKProxyFactory.java | UTF-8 | 360 | 2.25 | 2 | [] | no_license | package com.example.proxy.dynamic.jdkProxy;
import java.lang.reflect.Proxy;
/**
* @author lixiang
* @date 2021/4/13 22:04
*/
public class JDKProxyFactory {
public static Object getProxy(Object target){
return Proxy.newProxyInstance(target.getClass().getClassLoader(),target.getClass().getInterfaces(),ne... | true |
4c4957e77ebee69ce984d23c8313c2d1236b47ea | Java | Hardy-Hang/rest-webservice | /src/main/java/cn/fu/testcxf/rest/client/CategoryServiceClient.java | UTF-8 | 1,569 | 2.640625 | 3 | [] | no_license | package cn.fu.testcxf.rest.client;
import java.util.Iterator;
import org.apache.cxf.jaxrs.client.WebClient;
import cn.fu.testcxf.rest.Book;
import cn.fu.testcxf.rest.Category;
public class CategoryServiceClient {
public static void main(String[] args) {
try {
String domainAddress = "http://localhost:8081/spri... | true |
6c6864f9f54d63b3f664ab78a71bc8eb06f194d5 | Java | babu175/addactin | /src/main/java/com/adactin/baseclass/BaseClassAutomation.java | UTF-8 | 5,411 | 2.328125 | 2 | [] | no_license | package com.adactin.baseclass;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.Alert;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
impor... | true |
dd467957b27714d9ab7de81dc006fa81e2d83118 | Java | vanehu/4G | /ecsp-core/src/main/java/com/ailk/ecsp/security/Permission.java | UTF-8 | 717 | 1.703125 | 2 | [] | no_license | package com.ailk.ecsp.security;
import com.ailk.ecsp.exception.BaseSecurityException;
import com.al.ec.serviceplatform.client.DataMap;
/**
* =========================================================
* 亚信联创 电信CRM研发部
* @author CancerJun
* @date 2011-4-22 下午04:40:37
* @Description: TODO(安全校验管理接口,所有安全校验类需实... | true |
10667e4d41518e4d42ec96d0efde34e0baa600dd | Java | kubastepaniak/Java2048 | /application/Main.java | UTF-8 | 995 | 2.5 | 2 | [] | no_license | package application;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
public static final int interfaceMargin = 300;
public static final int margin = 75;
public static final int cols = 4;
public static... | true |
12adf0b7ee10b7b96a88793102f5aa20a550ea5a | Java | lzyadmin/swop | /src/com/swop/service/UserService.java | UTF-8 | 946 | 2.4375 | 2 | [] | no_license | package com.swop.service;
import java.sql.SQLException;
import com.swop.dao.UserDao;
import com.swop.domain.User;
public class UserService {
UserDao UserDao = new UserDao();
//注册
public boolean register(User user) {
//调用dao层操作数据库
int register = 0;
try {
register = UserDao.register(user);
} catch (SQLE... | true |
22df6b9b83d2d0375f0143de59ca99df0a977e1d | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/MeshBuilder_getNumVertices.java | UTF-8 | 182 | 2.5 | 2 | [] | no_license | /**
* @return The number of vertices built up until now, only valid in between the call to begin() and end().
*/
public int getNumVertices() {
return vertices.size / stride;
}
| true |
b3f79dedaa93bd990f09dfedc8d49fbd8cf6b6ee | Java | vivekphull/MyAustraliaLogin | /app/src/main/java/com/pavi_developing/myaustralialogin/PrepareReport.java | UTF-8 | 17,621 | 1.585938 | 2 | [] | no_license | package com.pavi_developing.myaustralialogin;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import and... | true |
2b161d051d0778bbca3e085ff4a01b56fe0176ad | Java | Major-Lee/my-first-company | /msip-bhu-unit/msip_bhu_unit_daemon_processor/src/main/java/com/bhu/vas/daemon/DaemonCheckSerialTask.java | UTF-8 | 1,834 | 2.484375 | 2 | [] | no_license | package com.bhu.vas.daemon;
import java.util.Iterator;
import java.util.Map;
import java.util.TimerTask;
import org.apache.commons.lang.StringUtils;
import com.bhu.vas.api.helper.CMDBuilder;
import com.bhu.vas.daemon.observer.DaemonObserverManager;
import com.smartwork.msip.cores.helper.StringHelper;
public class D... | true |
fc8c213e4818e7aa256306ff6eb3298f92ec722f | Java | antonyphp/DnBWeather | /app/src/main/java/no/dnb/toolbartest/activity/BaseFragment.java | UTF-8 | 508 | 2.03125 | 2 | [] | no_license | package no.dnb.toolbartest.activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import no.dnb.toolbartest.application.WeatherApplication;
/**
* Created by 778363aypp on 9/4/2016.
*/
public class BaseFragment extends Fragment {
public Context getContext(){
return ((WeatherA... | true |
d52bb413f374c7659729019ab9475ace3bfa22dd | Java | hualuoliushui/datavisualization | /src/main/java/com/gss/datavisualization/webservice/GoodTypeDetail.java | UTF-8 | 5,137 | 1.960938 | 2 | [] | no_license |
package com.gss.datavisualization.webservice;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>good_type_detail complex... | true |
449e8ba75cd489f28152e02efdf9c6eb0d764562 | Java | dianagvoicu/POO2019-30223 | /Students/Voicu Diana - Georgiana/Assignments/Tema5/Zoowsome/src/javasmmr/zoowsome/repositories/AnimalRepository.java | UTF-8 | 7,061 | 2.453125 | 2 | [] | no_license | package javasmmr.zoowsome.repositories;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigur... | true |
44748214f8ec717e2f6cc313be3d8df23d4c9f26 | Java | ndobson1995/CS351-battleship | /src/Captain.java | UTF-8 | 6,662 | 2.921875 | 3 | [] | no_license | import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Scanner;
/**
* This is the captain controlling the main game. It's called as a thread by main.
* This holds the call to the s... | true |
1b219aca0e1e4dce47335080f4865bb4d11ec78b | Java | danielvazdesouza/ADS3N14_1A | /TreeNode/src/com/senac/apps/estruturas/Tree.java | ISO-8859-1 | 1,213 | 3.65625 | 4 | [] | no_license | package com.senac.apps.estruturas;
import com.senac.apps.TreeNode;
public class Tree<T extends Comparable<T>> {
private TreeNode<T> root;
public Tree() {
root = null;
}
public void insertNode(T insertValue) {
if (root == null) {
root = new TreeNode<T>(insertValue);// Cria n raiz
} else {
root.insert... | true |
9a02ff834a8f3631555c1fb9c7b6a9974b6cfe53 | Java | koomasha/marketroll | /src/main/java/DataService/mrktr/bl/BaseBL.java | UTF-8 | 695 | 2.015625 | 2 | [] | no_license | /*
* 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 DataService.mrktr.bl;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
im... | true |
8e5f97f9c301f5016fc9de3b11a5e6b0381c48b3 | Java | TunerRed/shell-service | /src/main/java/org/shelltest/service/entity/History.java | UTF-8 | 1,892 | 2.140625 | 2 | [] | no_license | package org.shelltest.service.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
public class History implements Serializable {
private Integer messageId;
private String user;
private String ip;
private String target;
@JsonFormat(ti... | true |
28e05d2890a4c10ed672b8e355eee63bd1903f0d | Java | lhs92/ChinaAPP | /service/src/main/java/com/supermap/user/service/impl/RoleServiceImpl.java | UTF-8 | 1,593 | 2.453125 | 2 | [] | no_license | package com.supermap.user.service.impl;
import com.supermap.common.JSONUtil;
import com.supermap.user.dao.RoleDao;
import com.supermap.user.entity.Role;
import com.supermap.user.entity.User;
import com.supermap.user.service.RoleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewor... | true |
3bca7f6c28fcb3cf680188efd6151b2aa42f762a | Java | huxiaoning/verification-code | /src/main/java/org/aidan/verificationcode/entity/SysVerificationCode.java | UTF-8 | 1,056 | 2.109375 | 2 | [] | no_license | package org.aidan.verificationcode.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
/**
* <p>
* 发送短信验证码记录
* </p>
*
... | true |
25d68274eeef7c39cf3c06051bc52133f7d5be20 | Java | yongxiang1095/main | /src/main/java/seedu/address/logic/parser/AddressBookParser.java | UTF-8 | 6,178 | 2.828125 | 3 | [
"MIT"
] | permissive | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.StringTokenizer;
import java... | true |
7601ae0dc8d968fa0437d3bf2d4b143dd180e2de | Java | Debri/DataDecision | /src/main/java/com/geek/controller/UserController.java | UTF-8 | 1,188 | 2.1875 | 2 | [] | no_license | package com.geek.controller;
import com.geek.model.User;
import com.geek.service.UserService;
import com.geek.util.JSONUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import javax.annotation.Re... | true |
b48ebaf0121200022955c181493f96bd93058bb2 | Java | hmart027/Plotter | /src/main/SolarSystem.java | UTF-8 | 1,551 | 2.625 | 3 | [
"MIT"
] | permissive | package main;
import plotter.d3.CartesianVector;
import plotter.d3.LineVector;
import plotter.d3.SphericalVector;
import plotter.d3.Vector3D;
import tools.VectorConversions;
@SuppressWarnings("unused")
public class SolarSystem {
double scale = 3.0E11; //7009100d
public SolarSystem(){
new Oc... | true |
2a0eb8d8ded1687b5621d955022aa5492d7bb5d7 | Java | latentdev/D-Check | /app/src/main/java/com/latentdev/d_check/FastPass.java | UTF-8 | 630 | 2.4375 | 2 | [] | no_license | package com.latentdev.d_check;
import java.util.Date;
/**
* Created by Laten on 7/26/2017.
*/
public class FastPass {
private Date start;
private Date end;
private boolean available;
public Date getStart()
{
return this.start;
}
public void setStart(Date start)
{
... | true |
d5af048529aecdde241b36966e8a86c0d0792ef1 | Java | bobbyb815/ilpv4-connector | /connector-service-impl/src/main/java/org/interledger/connector/packetswitch/filters/StreamPaymentIlpPacketFilter.java | UTF-8 | 2,652 | 1.984375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package org.interledger.connector.packetswitch.filters;
import org.interledger.connector.accounts.AccountSettings;
import org.interledger.connector.events.FulfillmentGeneratedEvent;
import org.interledger.connector.payments.FulfillmentGeneratedEventAggregator;
import org.interledger.connector.payments.StreamPaymentTyp... | true |
a90dc70973f1ea82fc2ee9f6f9c580650f5f491e | Java | Phlank/MusicPlayer | /test/com/github/phlank/musicplayer/model/AlbumTest.java | UTF-8 | 4,460 | 2.984375 | 3 | [] | no_license | package com.github.phlank.musicplayer.model;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.github.phlank.musicplayer.model.exceptions.UninteractableSongException;
public class AlbumTest {
Album album;
Song firstSong;
Song lastSong;
@Before
public void loadSongsIntoAlbum()... | true |
15d38d12b5b05a0c028de40a114692aa40d901e3 | Java | dajjans4/Days-Until-Lindsay | /lindsay_countdown_emailer/src/emailer/Main.java | UTF-8 | 958 | 3.015625 | 3 | [] | no_license | package emailer;
public class Main {
public static void main(String args[]){
boolean sendEmail = true;
boolean sendLessThan12 = true;
int tmpSecs = 0;
System.out.println("Time until Winnipeg:");
while(DateCalculations.getDateDiff() > 0){
int secsToWinnipeg = DateCalculations.getDateDiff();
if(tmpS... | true |
f444d28cba23a79b5393a7d97c13d793390cd0e9 | Java | dpknegi/learning_java | /Euler6.java | UTF-8 | 449 | 3.34375 | 3 | [] | no_license | public class Euler6{
public static void main(String args[]){
int limit=100;
long sum_of_squares,square_of_sum,difference;
sum_of_squares=(limit*((2*limit) + 1))* (limit + 1) / 6;
square_of_sum=limit * limit* (limit+1)*(limit+1)/4;
difference=square_of_sum - sum_of_squares;
System.out.println("The differenc... | true |
f9566f0d1961c083cc02858038c828f9d2561d5d | Java | alexvmhsr/Catering_JEE | /Catering_JEE-ejb/src/main/java/com/espe/distribuidas/catering/servicio/AlimentacionServicio.java | UTF-8 | 3,082 | 2.15625 | 2 | [] | no_license | /*
* 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 com.espe.distribuidas.catering.servicio;
import com.espe.distribuidas.catering.dao.AlimentacionDAO;
import com.espe.di... | true |
dbc03fd4bbe85590d4358690dffa1299cccdc51e | Java | AschPlatform/asch-android | /app/src/main/java/asch/io/wallet/activity/AccountDeleteActivity.java | UTF-8 | 661 | 1.992188 | 2 | [
"MIT"
] | permissive | package asch.io.wallet.activity;
import android.os.Bundle;
import asch.io.base.util.ActivityUtils;
import asch.io.wallet.R;
import asch.io.wallet.view.fragment.AccountDeleteFragment;
public class AccountDeleteActivity extends TitleToolbarActivity {
@Override
protected void onCreate(Bundle savedInstanceSt... | true |
23c030a07ef3373bd94646dbf63fbd32b369064a | Java | geowarin/code-golf | /common/src/main/java/org/jetbrains/codeGolf/plugin/GolfTask.java | UTF-8 | 1,953 | 2.265625 | 2 | [] | no_license | package org.jetbrains.codeGolf.plugin;
public final class GolfTask {
private String authorLogin;
private String taskId;
private String taskName;
private String initialCode;
private int initialOffset;
private String targetCode;
private String hint;
public GolfTask() {
}
public ... | true |
03821f307370cf5046a0fb01dcbc7a5718a73b54 | Java | shreyadhar/JavaCodes | /CollectionCodes2/src/Sorting/TestSortEx2.java | UTF-8 | 1,100 | 3.4375 | 3 | [] | no_license | package Sorting;
import java.util.*;
public class TestSortEx2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
ArrayList<Student> al=new ArrayList<Student>();
al.add(new Student("Viru"));
al.add(new Student("Saurav"));
al.add(new Student("Mukesh"))... | true |
dde1f2d3d2e57a872997ba1329d04ccb682b43fd | Java | KavithaJawaharlal97/Microservice | /1-product-catalog-service/src/main/java/com/cts/brownfield/pss/service/ProductCatalogService.java | UTF-8 | 716 | 1.867188 | 2 | [] | no_license | package com.cts.brownfield.pss.service;
import java.util.List;
import org.springframework.data.repository.query.Param;
import com.cts.brownfield.pss.entity.Product;
import com.cts.brownfield.pss.entity.Review;
public interface ProductCatalogService {
List<Product> findAll();
List<Product> findById(Long id);
vo... | true |
25a14de33ba5a2d511f6ea3c8a740242a78895f7 | Java | TriPham259/Java-Praktikum | /A1-WS1718/src/a1/test/AdditiveListeTest.java | UTF-8 | 754 | 2.703125 | 3 | [] | no_license | package a1.test;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import a1.AdditiveIntListe;
public class AdditiveListeTest {
private AdditiveIntListe al;
@Before
public void data(){
al = new AdditiveIntListe();
}
@Test
public void testAddAndSize(){
as... | true |
72507a86b80f2776f34ce9a2de55609effb6232e | Java | zhaolongs/JavaWeb_BookStore | /src/com/androidlongs/book/common/model/user/UserTest.java | UTF-8 | 537 | 1.960938 | 2 | [] | no_license | package com.androidlongs.book.common.model.user;
import static org.junit.Assert.*;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.Test;
import com.androidlongs.book.utils.HBUtils;
public class UserTest {
@Test
public void test() {
Session session = HBUtils.openSession();
Tra... | true |
bb6d2a1fe8aac491e71a0752a38db0cfb3c49441 | Java | vpejovic/NotificationSimulator | /src/com/ubhave/notificationsim/utils/SimulatorException.java | UTF-8 | 355 | 2.203125 | 2 | [] | no_license | package com.ubhave.notificationsim.utils;
public class SimulatorException extends Exception {
private static final long serialVersionUID = 1L;
public static final int TIMESTAMP_ATTRIBUTE_MISSING = 1;
private final int errorCode;
public SimulatorException(int code){
errorCode = code;
}
public int getErro... | true |
08e98a306eb0dd995a3a7c7995f6e0360a9808f0 | Java | hondorchen/MvpApp | /app/src/main/java/com/hondorchen/mvpapp/module/news/main/NewsMainPresenter.java | UTF-8 | 857 | 1.976563 | 2 | [] | no_license | package com.hondorchen.mvpapp.module.news.main;
import com.hondorchen.mvpapp.db.dao.NewsTypeDao;
import com.hondorchen.mvpapp.module.base.IBasePresenter;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
/**
* Created by hondor on 2019/6/5
*/
public class NewsMain... | true |
42fc4166be10b97aeaad53c0d1461c90aa5e4a74 | Java | Mustafizur-RU-ICE/Java_Programming | /Assignment_01/Assignment_01_P_10/Main.java | UTF-8 | 470 | 3.03125 | 3 | [] | no_license | package Assignment_01_P_10;
public class Main {
public static void main(String[] args) {
Complex comp1 = new Complex(5.5F,4.5F);
Complex comp2 = new Complex(3.2F,1.5F);
Complex results = new Complex();
comp1.display();
comp2.display();
results = comp1.add(co... | true |
5878a3797e7b7585f2b2fdfdbe7a97ca9927f23d | Java | davidjaron/NFLstats | /cs5200_fall2018_coding_cranberry/src/main/java/edu/northeastern/cs5200/models/TeamManagerUser.java | UTF-8 | 1,192 | 2.4375 | 2 | [] | no_license | package edu.northeastern.cs5200.models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
public class TeamManagerUser extends User{
private String teamName;
/*
@JsonIgnore
@OneToMany(mappedBy = "manager")
private Lis... | true |
f65541adbeb3f27598aba60bcadafa5692a8a247 | Java | MSalah73/PhoneBillApplication | /phonebill/src/main/java/edu/pdx/cs410J/ms24/Project4.java | UTF-8 | 7,183 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package edu.pdx.cs410J.ms24;
import edu.pdx.cs410J.web.HttpRequestHelper;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.ConnectException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import... | true |
dc4f0effdebb73a7c2c741912d9893f63c1d4246 | Java | dagistankaradeniz/springbootredis | /src/main/java/io/dagistan/model/MessageModel.java | UTF-8 | 217 | 1.703125 | 2 | [
"BSD-3-Clause"
] | permissive | package io.dagistan.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
public class MessageModel {
private String id;
private String detail;
}
| true |
f49172c4f1e84f7021aecc5f1719b74c6636f6fd | Java | CloudNetService/CloudNet-v3 | /modules/database-mysql/src/main/java/eu/cloudnetservice/modules/mysql/config/MySQLConfiguration.java | UTF-8 | 1,309 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-2023 CloudNetService team & 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | true |
40849b99ade87abfc19253f662a8966b4ead9261 | Java | Adyen/adyen-java-api-library | /src/main/java/com/adyen/model/nexo/TransactionToPerform.java | UTF-8 | 3,355 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.adyen.model.nexo;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Definition: Data related to the batch of tr... | true |
f8fd694eeddaeab16cdb284e0f932178b14133a0 | Java | tonymacom/app-base | /src/main/java/com/tony/unit/appbase/controller/BaseController.java | UTF-8 | 1,277 | 2.390625 | 2 | [] | no_license | package com.tony.unit.appbase.controller;
import com.tony.unit.appbase.prop.ThridProps;
import com.tony.unit.base.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/... | true |
d24538bc39d97b35bebd4d2557a5a7e67e1d63a7 | Java | avvarus/core_examples | /src/com/company/training/Sample2.java | UTF-8 | 334 | 2.953125 | 3 | [] | no_license | package com.company.training;
public class Sample2 {
int a = 10;
int b = 20;
public static void main(String args[]) {
Sample2 s = new Sample2();
System.out.println(" a value :" + s.a);
System.out.println(" b value :" + s.b);
System.out.println(" sum value :" + (s.a + s.b));... | true |
9c729fec25265635cb47248d3a51752850f31781 | Java | jo-source/jo-client-platform | /modules/core/org.jowidgets.cap.common/src/main/java/org/jowidgets/cap/common/impl/BeanPropertyValidatorAdapter.java | UTF-8 | 3,808 | 1.90625 | 2 | [] | no_license | /*
* Copyright (c) 2011, grossmann
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condit... | true |
4393ba7459c9b73a81555fed3d761913d2d04dd1 | Java | dockermgeo/k8s-conretcreator | /src/main/java/de/mgeo/cose/lib/Logging.java | UTF-8 | 1,619 | 2.515625 | 3 | [] | no_license | package de.mgeo.cose.lib;
import ch.qos.logback.classic.Level;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Logging {
String classname;
ch.qos.logback.classic.Logger logger;
public Logging (String classname){
this.classname=classname;
logger = (ch.qos.logback.class... | true |
e450be531b1dc1654ce32501271a881b49c947e6 | Java | Ernestooo/workspace | /REBELWARS_ANDRE/src/Character/RebelClass.java | UTF-8 | 2,657 | 3.171875 | 3 | [] | no_license | package Character;
/**
* @author Andre Real - 49831 || Miguel Moreira 50170
*
*/
import Iterator.PathIteratorClass;
import Map.Cell;
import Map.EmptyClass;
public class RebelClass implements Rebel {
private String name; //rebel name
private int row; //row of the rebel position
private int column; //col of t... | true |
686cf23282ad182c27025f19071c5aa27e39d7fc | Java | zihanbobo/WebRTC | /common/src/main/java/com/free4lab/account/manager/EnterfrienduserManager.java | UTF-8 | 362 | 1.585938 | 2 | [
"MIT"
] | permissive | package com.free4lab.account.manager;
import org.apache.log4j.Logger;
import com.free4lab.account.model.EnterfrienduserDAO;
public class EnterfrienduserManager {
private static EnterfrienduserDAO enterfrienduserDAO = new EnterfrienduserDAO();
private static final Logger LOGGER = Logger.getLogger(Enterfrien... | true |
fc7650123fe5c353ed37a4a703484045797ae6e3 | Java | greeneries/spring-lecture | /work/spring-proxy-aop/src/main/java/com/example/demo/proxy/step2/Proxy.java | UTF-8 | 580 | 3.265625 | 3 | [] | no_license | package com.example.demo.proxy.step2;
public class Proxy implements Hello {
private Hello hello;
public Proxy(Hello hello) {
this.hello = hello;
}
@Override
public void say() {
System.out.println("-------------------"); // 때때로 수행하는 부가로직
// 로직을 중복으로 갖고 있는 것은 관리적으로 비효율적이므로 여기서 타겟 객체의 메소드를
// 호출하... | true |
18e66c4d21f336ce2f9f55c3d6e7686cc9962f33 | Java | jbeecham/ovirt-engine | /backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/FenceSpmStorageVDSCommandParameters.java | UTF-8 | 1,027 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.ovirt.engine.core.common.vdscommands;
import org.ovirt.engine.core.compat.Guid;
public class FenceSpmStorageVDSCommandParameters extends GetStorageConnectionsListVDSCommandParameters {
public FenceSpmStorageVDSCommandParameters(Guid vdsId, Guid storagePoolId, int prevID, String prevLVER) {
sup... | true |
e26e554d952af6d106d7a66be7e44dc3d1ac8580 | Java | Annusza/TimeZoneApp | /Czas/src/App.java | WINDOWS-1250 | 5,340 | 2.546875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.DateFormat;
import java.time.format.DateTimeFormatter;
import java.util.Locale... | true |
c7871c8bded8aa64d67aa93f713244f3ad09bdc4 | Java | moon-util/moon-util | /src/test/java/com/moon/core/util/IteratorUtilTestTest.java | UTF-8 | 879 | 3.1875 | 3 | [
"MIT"
] | permissive | package com.moon.core.util;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
/**
* @author moonsky
*/
class IteratorUtilTestTest {
@Test
void testForEach() {
IteratorUtil.forEach(20, System.out::println);
int[] ints = {1, 2, 3, 4, 5, 6, 7, 8, 9};
... | true |
75c68d99744f2a526103a62ab65de7c2b4a6f3ae | Java | AntonioGE/JModelling | /src/jmodelling/engine/object/bounds/BoundingBox.java | UTF-8 | 3,154 | 2.59375 | 3 | [] | no_license | /*
* MIT License
*
* Copyright (c) 2021 Antonio GE
*
* 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... | true |
5dab7629f83d78f5680d8cd75d22d2fb98643ce1 | Java | Zid4Bit/ZID | /bomc-hrm/src/main/java/de/bomc/poc/hrm/application/CustomerService.java | UTF-8 | 5,849 | 2.40625 | 2 | [] | no_license | /**
* Project: POC PaaS
* <pre>
*
* Last change:
*
* by: $Author: bomc $
*
* date: $Date: $
*
* revision: $Revision: $
*
* </pre>
*/
package de.bomc.poc.hrm.application;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.uti... | true |
fb1c9bce83dcb94745ccad6d3aecc25069323596 | Java | stolorz/RankPL-EclipsePlugin | /pl.stolorz.dsl.rankpl.ide/src-gen/pl/stolorz/dsl/rankpl/ide/contentassist/antlr/internal/InternalRankPLParser.java | UTF-8 | 125,798 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package pl.stolorz.dsl.rankpl.ide.contentassist.antlr.internal;
import java.io.InputStream;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.*;
import org.eclipse.xtext.parser.impl.*;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.parser.antlr.Xte... | true |
0f5b8ec0c7220fdc662c252d48da73e67fca4091 | Java | VadymMoiseyenko-zz/ImplementFSM | /app/src/main/java/com/example/redcross/implementfsm/controller/FiniteStateMachine.java | UTF-8 | 3,520 | 2.734375 | 3 | [] | no_license | package com.example.redcross.implementfsm.controller;
import android.content.res.Resources;
import com.example.redcross.implementfsm.R;
import com.example.redcross.implementfsm.model.Config;
import com.example.redcross.implementfsm.model.StateTransition;
import com.google.gson.Gson;
import java.io.BufferedReader;
imp... | true |
20b258e7ed8fe1e7c2ac7004598779d61bf5cfb1 | Java | EricGerry/Code | /牛客/ResultsSort.java | UTF-8 | 2,222 | 4.03125 | 4 | [] | no_license | import java.util.*;
/**
* @Author:Eric
* @Date:2020/3/24 20:35
*/
/*
* 成绩排序
* 题目:输入任意(用户,成绩)序列,可以获得成绩从高到低或从低到高的排列,相同成绩
* 都按先录入排列在前的规则处理。
* 示例:
* jack 70
* peter 96
* Tom 70
* smith 67
* 从高到低 成绩
* peter 96
* jack 70
* Tom 70
* smith 67
* 从低到高
* smith 67
* jack 70
* To... | true |
3c34be822de55f5060413617cd388c75db31fd1d | Java | SCSIQ/MonopolyGenetique | /MonopolyGenetiqueJava/src/Metier/Cartes/CartesChances/Chance.java | UTF-8 | 257 | 1.921875 | 2 | [] | no_license | package Metier.Cartes.CartesChances;
import Metier.Automate.Automate;
import Metier.Cartes.Cartes;
import java.util.Random;
public abstract class Chance extends Cartes {
public Chance() {
}
public abstract void agir(Automate automate);
}
| true |
c9ebbf3beb6b4790237ca12a23232e9b50bd5dd6 | Java | francoisBdh/ChampionsProject | /championsProject.XText/xtend-gen/championsProject/scoping/XTextScopeProvider.java | UTF-8 | 407 | 1.570313 | 2 | [] | no_license | /**
* generated by Xtext 2.12.0
*/
package championsProject.scoping;
import championsProject.scoping.AbstractXTextScopeProvider;
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@Suppress... | true |
6a15b525b581e7c1b5e3a0982b6bd8b7061d44c8 | Java | saurabhkumarsinghh/Algorithm | /DynamicProgramming/src/binomialCoef/BinomialCoefficient.java | UTF-8 | 1,499 | 3.4375 | 3 | [] | no_license | package binomialCoef;
import java.util.Arrays;
public class BinomialCoefficient {
// Not scalable
public int binomialCoef1(int n, int k) {
if(n < 0 || k > n)
return -1;
int[] fact = new int[n + 1];
fact[0] = 1;
getFactorials(n, fact);
return fact[n] / (fact[k] * fact[n - k]);
}
p... | true |
0077c1a0e70ce6af7545b38027195dc209c73787 | Java | liquibase/liquibase | /liquibase-extension-testing/src/main/java/liquibase/extension/testing/testsystem/wrapper/UnimplementedWrapper.java | UTF-8 | 913 | 2.28125 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | package liquibase.extension.testing.testsystem.wrapper;
import liquibase.exception.UnexpectedLiquibaseException;
/**
* Wrapper for databases that are not yet implemented.
*
* @deprecated will remove when all TestSystems are created.
*/
public class UnimplementedWrapper extends DatabaseWrapper {
@Override
... | true |
61ded04e18ce6983806c994642969263610b9c51 | Java | Semyonic/CourseCodes | /COMP-232/Project02/src/project02/BinaryHeapPriorityQueue.java | UTF-8 | 3,460 | 3.25 | 3 | [] | no_license | /*
* The MIT License
* Copyright 2014 Semih Onay <semih.onay@bilgiedu.net>.
*
* 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 right... | true |
8839a2ee3a10c06828e8163021fed87b1c3a8d8e | Java | theGPGM/privilege-management-backend | /pm-server/pm-service/src/main/java/org/george/pm/service/JobLevelService.java | UTF-8 | 1,006 | 2.125 | 2 | [] | no_license | package org.george.pm.service;
import org.george.pm.mapper.JobLevelMapper;
import org.george.pm.model.JobLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
@Service
public class JobLevelService {
@Auto... | true |
8af511978d59375b1f12ec5d48e0359f52cbd06f | Java | bmviniciuss/projeto-final-lp1 | /src/gui/PhotoPostView.java | UTF-8 | 9,703 | 2.171875 | 2 | [] | no_license | /*
* 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 gui;
import Listeners.DeletePostListener;
import social.Comment;
import social.Group;
import social.PhotoPost;
import social.P... | true |
bac6207cd50146f602664ac06bea612f3f373d79 | Java | Dwikys1996/SPK-Transportasi | /app/src/main/java/com/example/bahroel/spk/adapters/CostAdapter.java | UTF-8 | 4,749 | 2.171875 | 2 | [] | no_license | package com.example.bahroel.spk.adapters;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import and... | true |
f18ee86b318ac9a7e3e46a14d2e82acaad06d47f | Java | YGragon/wanandroid | /app/src/main/java/com/dong/wanandroid/home/HomeFragment.java | UTF-8 | 6,589 | 1.882813 | 2 | [] | no_license | package com.dong.wanandroid.home;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.vi... | true |
22c16fcb1157bb692a2225eab01d73b717f638bb | Java | cckmit/health | /health-service-pack/src/main/pay/com/tencent/business/AsyNotifyPayBusiness.java | UTF-8 | 14,143 | 2.328125 | 2 | [] | no_license | package com.tencent.business;
import static java.lang.Thread.sleep;
import org.slf4j.LoggerFactory;
import com.dachen.commons.exception.ServiceException;
import com.dachen.commons.logger.LoggerUtils;
import com.tencent.common.Log;
import com.tencent.common.Signature;
import com.tencent.common.Util;
import com.tencen... | true |
8eef9ce9dc76d301a7ee7f6c9965005d3ec801fa | Java | pangqiyou/gmall0624 | /gmall-manage-service/src/main/java/com/atguigu/gmall0624/manage/mapper/BaseAttrInfoMapper.java | UTF-8 | 366 | 1.742188 | 2 | [] | no_license | package com.atguigu.gmall0624.manage.mapper;
import com.atguigu.gmall0624.bean.BaseAttrInfo;
import tk.mybatis.mapper.common.BaseMapper;
import java.util.List;
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {
//根据三级分类id查询平台属性数据
List<BaseAttrInfo> selectBaseAttrInfoListByCatalog3Id(Stri... | true |
55d0bab0dca38a737965080ff0472ca244b54a74 | Java | c0Alan/Repo-IDEA | /java-demo/java-1-8/web-demo/web/src/main/java/com/web/servlet/CancelAutoLoginServlet.java | UTF-8 | 1,947 | 2.90625 | 3 | [] | no_license | package com.web.servlet;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 如果想取消自动登录,那么可以在用户注销时删除自动登录cookie
*
* @author liuxl... | true |
6588a5c4866c3220ca3824ae5174547b4bfdbdca | Java | stonehm/stone-demo | /box/src/test/java/com/stone/box/BoxApplicationTests.java | UTF-8 | 560 | 1.734375 | 2 | [] | no_license | package com.stone.box;
import org.apache.http.impl.client.CloseableHttpClient;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;... | true |
fb84b6db6f333ae045d18714ab4896900b0b1c77 | Java | busraceylaann/MyPhoneBook | /src/UpdateData.java | UTF-8 | 3,483 | 3.25 | 3 | [] | no_license | import java.io.*;
import java.util.Scanner;
public class UpdateData {
public void update() throws IOException {
String yeni_ad = null ;
String yeni_soyad = null;
String yeni_numara = null;
boolean flag = true;
Scanner console = new Scanner(System.in);
System.out.p... | true |