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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a847fc766718b7e20bc1dd9b2c5ca74cc3752918 | Java | srinisubra/testability-metrics | /src-test/com/google/test/metric/report/HistogramTest.java | UTF-8 | 2,086 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
080235dda28dcf5833c5eb1d66a4fa63ba48387f | Java | dyps/Projeto-Dac-2019.2 | /src/main/java/br/edu/ifpb/mt/dac/yaggo/services/impl/ClienteServiceImpl.java | UTF-8 | 2,973 | 2.3125 | 2 | [] | no_license | package br.edu.ifpb.mt.dac.yaggo.services.impl;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import br.com.caelum.stella.ValidationMessage;
import br.com.caelum.stella.validation.CPFValidator;
import br.edu.ifpb.mt.dac.yaggo.dao.ClienteDAO;
import br.edu.ifpb.mt.dac.yaggo.dao.Persi... | true |
3add8f55f5c0f498e492ab5c714f3a170449fd5f | Java | Sealdolphin/AlphaComplexSimulator | /src/main/java/alphaComplex/visuals/ServerFrame.java | UTF-8 | 5,574 | 2.359375 | 2 | [
"CC0-1.0"
] | permissive | package alphaComplex.visuals;
import alphaComplex.core.gameplay.ParanoiaLobby;
import alphaComplex.core.gameplay.ParanoiaLobbyListener;
import alphaComplex.core.gameplay.ParanoiaPlayer;
import daiv.networking.command.ParanoiaCommand;
import daiv.ui.AssetManager;
import daiv.ui.custom.ParanoiaMessage;
import daiv.ui.vi... | true |
3f858607b352f624297a9047ad82d918bbc4c011 | Java | baptistemeunier/JBomberman | /src/Animation/BombAnimation.java | UTF-8 | 1,623 | 2.84375 | 3 | [] | no_license | package Animation;
import java.awt.image.BufferedImage;
import App.GamePanel;
import Sprite.*;
public class BombAnimation implements Animation {
public static final int NORMAL = 0;
public static final int CLOSE_TO_EXPLOSE = 1;
private BufferedImage anim1, anim2, anim3, anim4, current;
public int state = BombAn... | true |
610ccaf07952bed69f4947b55da193204deb4896 | Java | zr-faisal/Know---Tasks | /app/src/main/java/com/know/know_tasks/ui/MainActivity.java | UTF-8 | 2,095 | 2.109375 | 2 | [] | no_license | package com.know.know_tasks.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.constraint.ConstraintLayout;
import android.support.v7.app.AppCompatActivity;
import com.firebase.ui.auth.IdpResponse;
import com.firebase.ui.auth.ResultCodes;
import com.know.know_tasks.R;
import com.know.... | true |
f58303a6c467ebe6577d7052e49cceaf6ca0423a | Java | Ardreon/Project1 | /src/main/java/model/ComparatorByRange.java | UTF-8 | 450 | 2.8125 | 3 | [] | no_license | package model;
import model.entity.AirplaneAbstract;
import java.util.Comparator;
public class ComparatorByRange implements Comparator {
public int compare(Object o1, Object o2){
AirplaneAbstract sh1 = (AirplaneAbstract) o1;
AirplaneAbstract sh2 = (AirplaneAbstract) o2;
if (sh1.getFly_ra... | true |
2847f76bfaa81e98c89b72db68529718e5d485f4 | Java | abhitrip/RMI-Java | /src/PingPong/PingPongClient.java | UTF-8 | 2,165 | 2.78125 | 3 | [] | no_license | /*
@ This is the file for ping-pong client.
Author : Abhijit
*/
package PingPong;
import rmi.PingPongRemoteInterface;
import rmi.PingPongFactoryInterface;
import rmi.Stub;
import rmi.RMIException;
import java.net.InetSocketAddress;
public class PingPongClient{
public static void main(String[] args)
{
// ... | true |
5e3a50dd0a1d1759ef3ed5d4429b00b3a6d6ea2e | Java | drishtihrao/Aug-16-BankSpringMVC- | /src/com/moneymoney/app/model/dao/DAOImpl.java | UTF-8 | 2,232 | 2.65625 | 3 | [] | no_license | package com.moneymoney.app.model.dao;
import java.util.ArrayList;
import com.moneymoney.app.model.pojo.MMCurrentAccount;
import com.moneymoney.app.model.pojo.MMCustomer;
import com.moneymoney.app.model.pojo.MMSavingAccount;
import com.moneymoney.framework.account.dao.DAO;
import com.moneymoney.framework.accou... | true |
0534a2a427df43c07584f36a2596d8e198ec5308 | Java | seyijava/microservices-event-orchestration-amqp-master | /loanProcessorService/src/main/java/com/bigdataconcept/microservice/event/loan/processor/payload/LoanApplicationMessageBuilder.java | UTF-8 | 1,629 | 2.25 | 2 | [] | no_license | package com.bigdataconcept.microservice.event.loan.processor.payload;
import com.bigdataconcept.microservice.event.loan.processor.model.LoanApplication;
public class LoanApplicationMessageBuilder {
private LoanApplicationMessageBuilder()
{
}
public static class Builder
{
public Builde... | true |
ea906e60b3e385b356f595ac9c53f8a8bf7f1c69 | Java | card4422/JavaCourse | /src/question_1/TxtReader.java | UTF-8 | 1,328 | 2.953125 | 3 | [] | no_license | package question_1;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class TxtReader
{
public static void main(String [] args) throws IOException{
try
... | true |
0c20cce954f2ca761a1789d87bddb059bf905768 | Java | wallisnow/jenkinsDemo | /src/main/java/rest/service/DemoService.java | UTF-8 | 166 | 1.804688 | 2 | [] | no_license | package rest.service;
import org.springframework.stereotype.Service;
@Service
public class DemoService {
public String saySomething() {
return "hi there!";
}
}
| true |
d5318e125a82375247de5da82354888d1f2bef12 | Java | jhanu773/WTN_559 | /mileStone1/src/com/wipro/languagebasics/twelfthLoop.java | UTF-8 | 392 | 3.265625 | 3 | [] | no_license | package com.wipro.languagebasics;
import java.util.Scanner;
public class twelfthLoop {
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int flag=0;
for(int i=1;i<=Math.sqrt(n);i++)
{
if(n%i==0)
{
flag++;
}
}
if(flag==1)
{
System.out.println(... | true |
1cd37447bd068d7b354897f75c822684ba81bf3c | Java | leviatansoul/androidProject | /app/src/main/java/leviatansoul/finalproject/FavStorage.java | UTF-8 | 2,705 | 2.40625 | 2 | [] | no_license | package leviatansoul.finalproject;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class FavStorage {
public static List<String> favList = new ArrayList<>();
public stat... | true |
7bf578cf7e8e1f0714092e226a0f0308e88d39ae | Java | HeimlichLin/TableSchema | /java/dao/impl/EHU_SACT/GcosumtempDAOImpl.java | UTF-8 | 3,459 | 2.25 | 2 | [] | no_license | package com.doc.common.dao.impl;
public class GcosumtempDAOImpl extends GeneralDAOImpl<GcosumtempPo> implements GcosumtempDAO {
public static final GcosumtempDAOImpl INSTANCE = new GcosumtempDAOImpl();
public static final String TABLENAME = "GCOSUMTEMP";
public GcosumtempDAOImpl() {
super(TABLENAME);
}
... | true |
8b11d52f912ff74a794f00c760c957f845fb65f4 | Java | beingkarnage/CollegePortal | /src/collegeportal/faculty/fac_delete_academics_.java | UTF-8 | 944 | 2.203125 | 2 | [] | no_license | package collegeportal.faculty;
import java.io.IOException;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class fac_delete_academics_ extends HttpServlet {
pri... | true |
d88e3f5c88ed924720f6721604d06c9bd365c16b | Java | laurore/Gravitripsss | /Game.java | UTF-8 | 1,027 | 3.65625 | 4 | [] | no_license | package test;
public class Game {
private Player player1;
private Player player2;
private Player currentPlayer;
private Board board = new Board();
public Game(Player player1, Player player2) {
this.player1 = player1;
this.player2 = player2;
}
public void playGame() {
currentPlayer = player1;
while... | true |
c3f51b8afd9d3531eb10c7130e4d3aa8be2be344 | Java | sunnyreddyt/SarveshwarServices | /app/src/main/java/com/services/sarveshwarservices/model/UsersResponse.java | UTF-8 | 1,607 | 2.03125 | 2 | [] | no_license | package com.services.sarveshwarservices.model;
import java.util.ArrayList;
public class UsersResponse {
private String error;
private ArrayList<UsersResponse> users;
private UsersResponse usersResponse;
private String id;
private String admin_name;
private String pin;
private String creat... | true |
00a864f4c953bbb64ff06685c78d2653e4e9f48a | Java | lindsayortiz/School-Projects | /Soft Design/Assign4 - Input Converter/src/converters/LetterBlocker.java | UTF-8 | 308 | 3.171875 | 3 | [] | no_license | package converters;
public class LetterBlocker implements Converter {
private final String letterToBlock;
public LetterBlocker(String letter) {
letterToBlock = letter;
}
public String convert(String text) {
return text.replaceAll(letterToBlock, "");
}
}
| true |
6fa57ed0434577178e2afd9b77a9329d1a1e2d3e | Java | blackboxsol/springdemo | /spring-crm-web-app-rest-client-demo/src/main/java/com/blackbox/springdemo/config/MySpringMvcDispatcherServletInitializer.java | UTF-8 | 1,110 | 2.046875 | 2 | [] | no_license | package com.blackbox.springdemo.config;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
/**
* web.xml configuration
* Servlet
* <servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
* @auth... | true |
72f480de7f5b18cc4317d46ec64c34a9771fe9e9 | Java | zhiji6/xunxin | /xunxin/.svn/pristine/c6/c6c8ea3a375d74ccbf010f27ae4fc13408542ac5.svn-base | UTF-8 | 908 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.xunxin.vo.qa;
import java.util.Date;
public class AccusationRecordVO {
/*
* 用户id
*/
private String id;
/*
* 问题id
*/
private String questionID;
/*
* 举报内容
*/
private String content;
/*
* 举报时间
*/
private Date accusationTime;
public String getId() {
return id;
}
public void setI... | true |
562b2e46be610b53af8bb16f572550f3bae7e2a8 | Java | niranjan-akotkar/projects | /algo-pratice/src/bst/BST.java | UTF-8 | 596 | 3.484375 | 3 | [] | no_license | package bst;
class BST {
static BSTNode root;
/**
* @author niranjanakotkar
* @param val
* @
*/
void Insert(int val) {
if (root == null)
root = new BSTNode(val);
else
Insert(root, val);
}
BSTNode Insert(BSTNode root, int value) {
if (root == null) {
root = new BSTNode(value);
} else i... | true |
cf86c4538a16232d91a775e0b1a756c608bdd740 | Java | UmbertoFi/Laboratori-ApplicazioniInternet | /Lab3/src/main/java/com/example/demo/Service/LineaService.java | UTF-8 | 263 | 1.898438 | 2 | [] | no_license | package com.example.demo.Service;
import com.example.demo.DTO.LineaDTO;
import com.example.demo.Entity.Linea;
public interface LineaService {
public void save(LineaDTO l);
public Iterable<Linea> getLines();
public Linea getLinea(String line);
} | true |
10f7fd603419fee5fd876285ae7c57db2e53dff0 | Java | cm4j/vivoo-web | /src/test/java/cc/vivoo/WebTester.java | UTF-8 | 3,548 | 2.125 | 2 | [] | no_license | package cc.vivoo;
import cc.vivoo.model.Constants;
import cc.vivoo.model.ErrorVO;
import cc.vivoo.model.SessionVO;
import cc.vivoo.service.utils.JSONUtil;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Assert;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.be... | true |
81c3b95acaaf47a686a616819f7eb48dd678f3e6 | Java | LWJGL/lwjgl3 | /modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkAccelerationStructureTrianglesDisplacementMicromapNV.java | UTF-8 | 52,894 | 2.125 | 2 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-khronos"
] | permissive | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org... | true |
1ada26de9991534b5b1808a34b0d5e73db93c91e | Java | sinaisix/errai | /errai-reflections/reflections/src/test/java/org/jboss/errai/reflections/ReflectionsParallelTest.java | UTF-8 | 1,369 | 1.992188 | 2 | [
"WTFPL"
] | permissive | package org.jboss.errai.reflections;
import com.google.common.base.Predicate;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.jboss.errai.reflections.scanners.*;
import org.jboss.errai.reflections.util.ConfigurationBuilder;
import org.jboss.errai.reflections.util.ClasspathHelpe... | true |
5de1a837da101e6640e3a251bd2bafa19f06e9ac | Java | henmerlin/queueAPI | /queueAPI/src/java/dao/queue/QueueTaskDAO.java | UTF-8 | 505 | 1.835938 | 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 dao.queue;
import dao.GenericDAO;
import java.util.List;
import model.entity.QueueTask;
import model.enuns.TaskState... | true |
b3e995669eff27472795559dbe71d5fabf120976 | Java | ryanjackman/Attendance | /src/com/ryanjackman/attendance/AddActivity.java | UTF-8 | 2,078 | 2.671875 | 3 | [] | no_license | package com.ryanjackman.attendance;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class AddActivity extends Activity {
private int position;
... | true |
34b1f8950d95c9e8bc368d74e473561c8ecfaf28 | Java | DigitalOnion/luis_viruena_pm | /app/src/main/java/com/outerspace/movies/view/MovieDetailPresenter.java | UTF-8 | 5,953 | 2.09375 | 2 | [] | no_license | package com.outerspace.movies.view;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.os.Build;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.Styl... | true |
0c711caf9447853df18da20048ba53ddedc9bed8 | Java | dipsscor/Log-Aggregation-ELK-Stack | /src/main/java/domain/User.java | UTF-8 | 841 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package domain;
import java.util.Calendar;
import com.fasterxml.jackson.annotation.JsonFormat;
public class User {
private final Long id;
private final String firstname;
private final String surname;
private final Calendar dateOfBirth;
public User(final Long id, final String firstname, final Str... | true |
fee4defdfd0cae84fe85ce18b3e953b57a47a286 | Java | victorcalabuig/Contactus-GUI-Client | /src/client/UserHomeController.java | UTF-8 | 9,791 | 2.703125 | 3 | [] | no_license | package client;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx... | true |
2a4f76447c6690203bb8105b6e326830398f345b | Java | zhoushichun/integration-tourism | /integration-tourism-system/src/main/java/com/ifm/modules/security/service/UserDetailsServiceImpl.java | UTF-8 | 3,156 | 2.25 | 2 | [] | no_license | package com.ifm.modules.security.service;
import com.ifm.comment.config.LoginProperties;
import com.ifm.comment.exception.EntityNotFoundException;
import com.ifm.modules.security.service.dto.JwtUserDto;
import com.ifm.modules.system.entity.SysUser;
import com.ifm.modules.system.service.ISysUserService;
import org.asse... | true |
6ff9b34b227b502a04cac1def380d02afa2d50a1 | Java | T4ran/basicJava | /workspace/JavaBasic/src/a_variable/ABC.java | UTF-8 | 2,244 | 4.4375 | 4 | [] | no_license | package a_variable;
// 주석 : 프로그램 코드로 인식하지 않는 문장(주로 코드를 설명하는데 사용함. C와 같음)
// 한줄 주석 : Ctrl + Shift + c
/* 범위 주석 : Ctrl + Shift + /(해제 : \) */
// 프로그램 이란? 어떠한 데이터를 목적에 따라 처리하는 것이다.
// 프로그램은 데이터와 처리로 구성되어 있다.
//자바 프로그램은 하나 이상의 클래스로 구성되어 있고 클래스 안에
//데이터와 처리내용을 작성한다.
//클래스(class) : 데이터와처리내용의 집합
//사용하고 싶은 클래스, 데이터, 처리내용 등이... | true |
a264fa5d127e12ef021579d3c4e174cfe6844551 | Java | BBBBBwen/RunLikeHell | /OOGame/src/Grid.java | UTF-8 | 5,210 | 3.5 | 4 | [] | no_license | /* This class uses a partially hollow 2D array to represent the games grid.
* Row and column corresponds to the 2D array row and column respectively.
* Hence, for the standard grid both row and column must be in the range
* 0 to 10. Furthermore, either row or column must be 0, 5 or 10.
*/
public class Grid {
priva... | true |
ae5cefdf55227758f4c28612526adb6ef15fe26e | Java | gangix/cross-ride-master-java | /src/main/java/com/crossover/techtrial/dto/TopDriverDTO.java | UTF-8 | 1,795 | 2.546875 | 3 | [] | no_license | /**
*
*/
package com.crossover.techtrial.dto;
import java.math.BigDecimal;
/**
* @author crossover
*
*/
public class TopDriverDTO {
/**
* Constructor for TopDriverDTO
*
* @param name
* @param email
* @param totalRideDurationInMinutes
* @param maxRideDurationInMinutes
* @param averageDistance
... | true |
0bfd200a8b2440db170e23433ebea2c944478791 | Java | langrs/bcgame | /src/main/java/com/wm/bcgame/dto/integral/IntegralTaskDto.java | UTF-8 | 1,076 | 1.8125 | 2 | [] | no_license | package com.wm.bcgame.dto.integral;
import com.wm.bcgame.base.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
/**
* @author LZM
* @description
* @date 13:45 2018/9/21
* @mondified
**/
public class IntegralTaskDto extends BaseDto {
private static final long serialVersionUID = 1L;... | true |
5556e8a226bbcd2db8647a84d7c29e361b0eebd1 | Java | bugakov-sa/leetcode | /src/main/java/RemoveNthFromEnd.java | UTF-8 | 533 | 3.15625 | 3 | [] | no_license | public class RemoveNthFromEnd {
class Solution {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode p1 = head, p2 = head;
int i = 0;
while(p1.next != null) {
if( i >= n) {
p2 = p2.next;
}
p... | true |
5a5957bb89ec2286a87578ade6c185ec00002868 | Java | jotakbm/Somativa02 | /app/src/main/java/com/example/somativa02/Adapter.java | UTF-8 | 2,401 | 2.203125 | 2 | [] | no_license | package com.example.somativa02;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annota... | true |
21fb3885938a11af640e715b29732bb28e0b8765 | Java | saima-tithi/AlignersModule | /src/alignersmodule/RunAligners.java | UTF-8 | 2,127 | 2.625 | 3 | [] | 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 alignersmodule;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;
import java.io.InputStreamReade... | true |
7effc4385024f43e9471fe6db7fb16f372e209fb | Java | qingfengyijiu/really-server | /really-server/src/main/java/com/really/comment/hotspot/dao/impl/CommentHotspotDaoImpl.java | UTF-8 | 704 | 2.015625 | 2 | [] | no_license | /**
* @author zhangjx
* @time 2014年9月3日 上午5:47:20
* @description:
*/
package com.really.comment.hotspot.dao.impl;
import org.springframework.stereotype.Repository;
import com.really.comment.hotspot.dao.CommentHotspotDao;
import com.really.comment.hotspot.domain.CommentHotspot;
import com.zhangjx.wx.per... | true |
542bc1df000d40fec6a4bfb89988c06dc47f299c | Java | rovger/Springmvc | /src/main/java/com/rovger/threads/ThreadException.java | UTF-8 | 739 | 2.828125 | 3 | [] | no_license | package com.rovger.threads;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @Description: 测试InterruptedException
* @author: weijie.lu
* @version: 1.0.0
* @createTime: 2021年01月11日 18:21
*/
public class ThreadException {
static Logger log = LoggerFactory.getLogger(ThreadException.class);
p... | true |
50fdc7ee0eb00d470785eb8d556ccbdbb09c4718 | Java | EISNttdata/EIS-Direct-Code | /EIS_Demo_Merge/src/main/java/com/dell/dims/Model/JMSQueueEventSourceActivity.java | UTF-8 | 7,261 | 2.125 | 2 | [] | no_license | package com.dell.dims.Model;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Manoj_Mehta on 5/29/2017.
*/
public class JMSQueueEventSourceActivity extends Activity {
public JMSQueueEventSourceActivity(String name, ActivityType type) {
super(name, type);
}
public JMSQueueEven... | true |
1ef284d70a1fe52cd65d72129c04694cfcea54c6 | Java | XClouded/avp | /agp-core/src/test/java/com/lvsint/abp/fdj/retail/beans/MarketTest.java | UTF-8 | 1,705 | 2.671875 | 3 | [] | no_license | package com.lvsint.abp.fdj.retail.beans;
import static junit.framework.Assert.assertEquals;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import com.lvsint.abp.retail.beans.Market;
import com.lvsint.abp.retail.beans.Outc... | true |
7a456383095a7d734f22949ed099b0daa2a0ea85 | Java | KevinSaulOrtizVarela/EVA1_4_COPIA_OBJETOS | /src/eva1_4_copia_objetos/EVA1_4_COPIA_OBJETOS.java | UTF-8 | 1,671 | 3.46875 | 3 | [] | no_license | package eva1_4_copia_objetos;
//PROJECTO PARA DIFERENCIAR LAS REFERENCIAS DE MEMORIAS
/**
* @author 16550549
*/
public class EVA1_4_COPIA_OBJETOS {
public static void main(String[] args) {
// TODO code application logic here
int i = 5;
System.out.println(" i = " + 5);
//CREAR UN... | true |
9a53c4c7d4980b25d52623805832d1ac2f4fefac | Java | xim3739/Android | /InnerFileTest/app/src/main/java/com/example/innerfiletest/MainActivity.java | UTF-8 | 2,503 | 2.65625 | 3 | [] | no_license | package com.example.innerfiletest;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;... | true |
7684c0a8a340a0d077ed3691ffcfd4802f60b30b | Java | g1310805918/hailiang | /common-service/src/main/java/com/yunduan/serviceimpl/CollectionAccountServiceImpl.java | UTF-8 | 1,555 | 2.03125 | 2 | [] | no_license | package com.yunduan.serviceimpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunduan.entity.CollectionAccount;
import com.yunduan.mapper.CollectionAccountMapper;
import com.yunduan.service.CollectionAccountService;
i... | true |
5eae3fb3509ab542b6315bb1d82045775a80be63 | Java | dvorig3/Java-EE | /DI_DvIg_Anotation/src/main/java/com/mycompany/app/Melon.java | UTF-8 | 261 | 2.25 | 2 | [] | no_license | package com.mycompany.app;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component("melon")
@Scope("prototype")
public class Melon implements IFruit{
public String getName() {
return "melon";
}
}
| true |
6210b4088f1e1cb516bd4b6e6ea18e8592c179e3 | Java | longhao1213/lh-1024-shop | /order-service/src/test/java/biz/MQTest.java | UTF-8 | 1,224 | 1.84375 | 2 | [] | no_license | package biz;
import com.lh.model.OrderMessage;
import com.order.OrderApplication;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | true |
0d8240b89e84eb875dc55eedd0d06559251230e7 | Java | Bendzsike/OOP_Repo | /Labor_6/src/labor6_1/SavingsAccount.java | UTF-8 | 660 | 2.890625 | 3 | [] | no_license | package labor6_1;
/**
* takarékszámla
*/
public class SavingsAccount extends BankAccount {
private double interestRate; //kamatláb
public SavingsAccount(double interestRate) {
// az ősosztály construktora automatikusan hívódik
this.interestRate = interestRate;
}
public void addInter... | true |
094af3a30fa3d0fda2ad1a909828bbcc7e77e87e | Java | SergeyZes/Lesson6Andr3 | /app/src/main/java/lesson5/rumpilstilstkin/ru/databaseex/OneUser.java | UTF-8 | 763 | 2.4375 | 2 | [] | no_license | package lesson5.rumpilstilstkin.ru.databaseex;
public class OneUser {
private String userId;
private String login;
private String avatarUrl;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getLo... | true |
be84e1a388deea0a6dc666cd45c704cefb0d11f8 | Java | SujayAlavala/CSE2102_Planner | /TestingGUI/src/DeadlineJFrame.java | UTF-8 | 4,424 | 2.53125 | 3 | [] | no_license | import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.... | true |
aebac84b73f2bc747212706278f72e09aeeaafe3 | Java | Ay615/EuropeProgram | /src/main/java/com/unitedcoder/datatypes/ComparisonOperators.java | UTF-8 | 1,264 | 3.78125 | 4 | [] | no_license | package com.unitedcoder.datatypes;
public class ComparisonOperators {
public static void main(String[] args) {
int i1=100;
int i2=200;
System.out.println(i1==i2);//false
System.out.println(i1!=i2);//true
System.out.println(i1>i2);//flase
System.out.println(i1<i2);//t... | true |
2ab6f7672a6f1bc403b0c74f4c0a261ca94190aa | Java | flyhard/membershipManager | /src/main/java/com/abich/MembershipManagerApplication.java | UTF-8 | 1,772 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.abich;
import com.abich.config.DbConfigurationService;
import com.abich.config.MembershipManagerConfiguration;
import com.abich.db.MemberRepository;
import io.dropwizard.Application;
import io.dropwizard.assets.AssetsBundle;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environme... | true |
19e274d08777d2a918b4c1fbcd0939c76ad87a7d | Java | tedydarmawan/posque-monolith | /src/main/java/com/project/posque/service/impl/OrderServiceImpl.java | UTF-8 | 1,663 | 2.078125 | 2 | [] | no_license | package com.project.posque.service.impl;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.project.posque.entity.Item;
import com.project.posque.entity.OrderD;
import com.project.posque.entity.OrderDId;
imp... | true |
5d52062e5e2e1eaa20d8cdf40b7ecb05efc9c6a8 | Java | hanhb1011/BaekJoon | /BOJ/10026 적록색약/Main.java | UTF-8 | 907 | 2.84375 | 3 | [] | no_license | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int N=sc.nextInt(), va[][]=new int[N][N], vb[][]=new int[N][N], ra=0,rb=0; char[][] c = new char[N][N];
for(int i=0;i<N;i++)
c[i] = sc.next().toCharArray();
for(int t=0;t<2;t++)
for(int i=0... | true |
3fca94bf2db9c534a8da74bcdbe54b089a3bfd2b | Java | andresort28/google-code-jam | /2017/Testing.java | UTF-8 | 264 | 2.5 | 2 | [
"MIT"
] | permissive | package googlecodejam.c2017;
public class Testing {
public static void main(String[] args)
{
System.out.println(Math.pow(10, 18));
System.out.println(Math.pow(10, 18) >= Double.MAX_VALUE);
System.out.println(Double.parseDouble("0000999"));
}
}
| true |
ef953b408563a26c341cf9f16d6e16b2b44b227e | Java | canberry/MeetingSystem | /MeetingSystem/src/com/lxm/dao/MessageMapper.java | UTF-8 | 404 | 1.875 | 2 | [] | no_license | package com.lxm.dao;
import java.util.List;
import com.lxm.bean.Message;
public interface MessageMapper {
public List<Message> queryUnReadMsgByRcvUserId(int userId);
public void add(Message message);
public List<Message> queryByExample(Message message);
public List<Message> queryFromMwByExample(Message messag... | true |
e38404016c3aa3c9368fb3c732536f3375fc17bc | Java | n1kso/ShowCase | /src/com/obit/emc/UpsdEmc.java | WINDOWS-1251 | 1,584 | 1.953125 | 2 | [] | no_license | package com.obit.emc;
import com.bssys.server.Context;
import com.bssys.server.UserException;
import com.bssys.server.processor.CustomControl;
import com.obit.emc.docs.Rvdp;
import com.obit.emc.exception.EmcUserException;
import com.obit.emc.func.func;
import org.w3c.dom.Element;
import java.sql.SQLExceptio... | true |
67c68bdf77750e6ef5ccd7279bb007b8757ef33b | Java | googleapis/google-cloud-java | /google-cloud-examples/src/main/java/com/google/cloud/examples/language/snippets/AnalyzeSentiment.java | UTF-8 | 1,817 | 2.921875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
096b0f0d4d53ea46ae067f3a8f2cf66f7a142d39 | Java | omibo/ut-se-online-laboratory | /src/Phlebotomist.java | UTF-8 | 1,181 | 2.921875 | 3 | [] | no_license | import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
public class Phlebotomist extends User {
private String phID;
private ArrayList<LocalDateTime> submittedTimeSlots;
public Phlebotomist(String _phID, String _firstName, String _lastName,
String _user... | true |
a10b203543c810b115f9140e677b54d9b8775e72 | Java | oxodi/SIW_INGSW | /SIW/src/main/java/entita/ortaggio/Ortaggio.java | UTF-8 | 1,689 | 2.828125 | 3 | [] | no_license | package entita.ortaggio;
public abstract class Ortaggio {
private int id;
private String nome;
private double prezzo;
private int tempoColtivazione;
private String periodoColtivazione;
private double resa;
private int id_terreno;
public Ortaggio() {
}
public Ortaggio(double prezzo, int id_ter... | true |
dc2dd398e35a3fb8a1e1c9a54496afba0bbfdbd0 | Java | AmirAfsharrad/Hearthstone | /src/main/java/GUI/Utils/BackgroundedPanel.java | UTF-8 | 2,234 | 2.96875 | 3 | [] | no_license | package GUI.Utils;
import Places.Playground;
import Utilities.ImageLoader;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
public class BackgroundedPanel extends JPanel {
private String backgroundImagePath;
private double scaleFactorX = 1;
private double scaleFactorY = 1;
... | true |
2f1e8194afe536c493e109d63eb7db65b7a912cf | Java | Catnip4242/SENG440 | /app/src/main/java/com/example/negar/snakesladders/model/Type.java | UTF-8 | 714 | 2.71875 | 3 | [] | no_license | package com.example.negar.snakesladders.model;
public class Type {
String movementType="standard";
String movementStrategy = "standard";
Board board;
public Type(Board board){
this.board=board;
this.movementStrategy=movementStrategy;
this.movementType=movementType;
}
p... | true |
9e39aba82d93221b15395b371c24c50b8c253b4f | Java | Mukes/coffee-shop | /src/main/java/com/coffeeshop/service/OrderService.java | UTF-8 | 766 | 2.171875 | 2 | [] | no_license | package com.coffeeshop.service;
import com.coffeeshop.dao.OrderDao;
import com.coffeeshop.model.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Crawlers on 5/25/2017.
*/
@Service
public class OrderService {... | true |
967bb83b8e5f32e48185018ef719233c788883c4 | Java | xruiz81/spirit-creacional | /middleware/src/main/java/com/spirit/medios/entity/PrensaUbicacionEJB.java | UTF-8 | 2,426 | 2.34375 | 2 | [] | no_license | package com.spirit.medios.entity;
import java.io.Serializable;
import javax.persistence.*;
import com.spirit.comun.util.ToStringer;
import com.spirit.util.HibernateSequenceAllocationSize;
/**
*
* @author www.versality.com.ec
*
*/
@Table(name = "PRENSA_UBICACION")
@Entity
public class PrensaUb... | true |
5865466c9b28a72cbbb24c3e596a1fe833bc07aa | Java | littlebylittle/spring4pro | /src/main/java/domain/PlainJDBCSample.java | UTF-8 | 977 | 3.140625 | 3 | [] | no_license | package domain;
import java.sql.Date;
import java.text.ParseException;
import java.util.List;
public class PlainJDBCSample {
private static final ContactDAO contactDao = new PlainContactDao();
public static void main(String[] args) throws ParseException {
System.out.println("Listing initial contact data:");
li... | true |
a2cbf6932fb9b58961d1d1d179da95a07c46f19f | Java | Criss-zhang/JavaStudy | /src/chapter14/AnnotationTest07.java | UTF-8 | 1,816 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | package chapter14;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
public class AnnotationTest07 {
private... | true |
317e9f6f2d22470af6de50cacdec82bbc811d150 | Java | xruiz81/spirit-creacional | /middleware/src/main/java/com/spirit/compras/session/SolicitudCompraArchivoSessionService.java | UTF-8 | 640 | 1.875 | 2 | [] | no_license | package com.spirit.compras.session;
import com.spirit.compras.entity.SolicitudCompraArchivoEJB;
import com.spirit.compras.entity.SolicitudCompraArchivoIf;
import com.spirit.compras.session.generated._SolicitudCompraArchivoSessionService;
import com.spirit.exception.GenericBusinessException;
/**
*
* @author... | true |
1ed24978d465fd1f03b7341dca2127959dc9a9ee | Java | syong9233/MiniProject | /src/view/jbutton/StoreJButton.java | UTF-8 | 337 | 2.25 | 2 | [] | no_license | package view.jbutton;
import javax.swing.ImageIcon;
import javax.swing.JButton;
public class StoreJButton extends JButton{
public StoreJButton(ImageIcon imageicon){
super(imageicon);
setSize(80, 70);
setLocation(173, 70);
setBorderPainted(false);
setContentAreaFilled(false);
setFocusPainted... | true |
445e71f24fe887d5ac56e73c7c03685d1c83cc3f | Java | dshatagopam/library-rest-service | /library-rest-service/src/test/java/com/library/rest/controller/CheckoutControllerWebMvcTest.java | UTF-8 | 6,075 | 2.203125 | 2 | [] | no_license | package com.library.rest.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentMatchers;
import org.mockito.Mockito;
import org.apache.commons.lang3.RandomStringUtils;
import org.hamcrest.CoreMatchers;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
1939afdbdfc7443c48585f5c796284d6f21223d3 | Java | ediolteanu/University | /2nd Year/POO/Homework/Project-POO-Etapa2/Project/src/utilities/GameInput.java | UTF-8 | 2,088 | 3.125 | 3 | [] | no_license | package utilities;
import angels.Angel;
import angels.AngelFactory;
import fileio.implementations.FileReader;
import heroes.Hero;
import heroes.HeroFactory;
import java.io.IOException;
import java.util.ArrayList;
public final class GameInput {
private ArrayList<String> terrainMap = new ArrayList<>();
private... | true |
6a79077c08c91f7aba9f3901ad59b2b115e57a80 | Java | nognight/ahqy | /src/main/java/com/njhh/ahqy/dao/impl/mapper/CheckInMapper.java | UTF-8 | 437 | 1.835938 | 2 | [] | no_license | package com.njhh.ahqy.dao.impl.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.njhh.ahqy.entity.CheckIn;
@Mapper
public interface CheckInMapper {
int insert(@Param("pojo") CheckIn pojo);
int insertSelective(@Param("pojo") Che... | true |
9e7ee87b804d85094c77080b1dc712dcdffc5df1 | Java | githanjalli/HackerRankFunProjects | /30DaysOfCode/hackerrank/thirtydaysofcode/Day25.java | UTF-8 | 629 | 3.46875 | 3 | [] | no_license | package hackerrank.thirtydaysofcode;
import java.util.Scanner;
public class Day25 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scan.nextInt();
}
scan.close();
... | true |
bbb5457ecb2f1706424ca99fdffc79a2c8aa914f | Java | luizrobertofreitas/MarketApp-BackEnd | /src/com/marketbe/business/delegate/CategoryBusinessDelegate.java | UTF-8 | 575 | 2.15625 | 2 | [] | no_license | package com.marketbe.business.delegate;
import java.util.List;
import com.marketbe.model.dao.CategoryDao;
import com.marketbe.model.entity.Category;
public final class CategoryBusinessDelegate
{
private static CategoryDao categoryDao;
private CategoryBusinessDelegate(){};
public static List<Category> getAllCa... | true |
8a1a7dcc6633b043d79cacc8a14729726dc8800f | Java | BaseMax/PopularAndroidSource | /bazaar8.apk-decompiled/sources/j/C.java | UTF-8 | 6,718 | 2.46875 | 2 | [] | no_license | package j;
import j.a.e;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/* compiled from: Headers */
public final class C {
/* renamed from: a reason: collision with root package name */
public final String[] f15116a;
/* compiled from: Headers ... | true |
c3635fea4578925ef108888f8d752519d84ae449 | Java | SkytAsul/NoesisEasyExport | /src/main/java/fr/skytasul/noesiseasyexport/Main.java | UTF-8 | 1,859 | 2.4375 | 2 | [] | no_license | package fr.skytasul.noesiseasyexport;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class Main extends Application {
... | true |
4bde13001a5c62cf8b42305dc5976864da4e0fdd | Java | zkywalker/zky | /app/src/main/java/org/zky/zky/SettingsActivity.java | UTF-8 | 3,822 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.zky.zky;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.support.annotation.Nullable;
import android.support.v4.content... | true |
b8cca1ff4fcf0f7454000107a315d9695e18ef88 | Java | sumit-kul/cera | /src/com/era/community/admin/ui/action/UnvalidatedUserListExportAction.java | UTF-8 | 6,538 | 2.09375 | 2 | [] | no_license | package com.era.community.admin.ui.action;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.Model... | true |
49c74fbcfe1c43607700e18dcd3a5311d85043ac | Java | codegas/codegas-commons | /domain/src/main/java/org/codegas/commons/domain/exception/DomainEntityConflictException.java | UTF-8 | 209 | 1.90625 | 2 | [] | no_license | package org.codegas.commons.domain.exception;
public class DomainEntityConflictException extends RuntimeException {
public DomainEntityConflictException(String message) {
super(message);
}
}
| true |
c65ffd04a56ba64af1f233db478f43a30b8fcb7a | Java | LPJXLOVE/Bfans | /app/src/main/java/com/technology/lpjxlove/bfans/Bean/Likes.java | UTF-8 | 601 | 1.976563 | 2 | [] | no_license | package com.technology.lpjxlove.bfans.Bean;
/**
* Created by LPJXLOVE on 2016/10/29.
*/
public class Likes {
private String userId;
private String postId;
private String way;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = u... | true |
df004aa0551aafc9d3cc08dc693e4a42c2047810 | Java | objectledge/cyklotron | /cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/accesslimits/Default.java | UTF-8 | 1,425 | 1.75 | 2 | [] | no_license | package net.cyklotron.cms.modules.views.accesslimits;
import net.cyklotron.cms.CmsDataFactory;
import net.cyklotron.cms.modules.views.BaseCMSScreen;
import net.cyklotron.cms.preferences.PreferencesService;
import org.jcontainer.dna.Logger;
import org.objectledge.context.Context;
import org.objectledge.coral.session.C... | true |
d9255252407cd11fdab6327b08aa52192fde528b | Java | Hobajt/pj1_projekt | /ASD1/src/gameobject/ObjectFactory.java | UTF-8 | 1,828 | 3.015625 | 3 | [] | 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 gameobject;
import util.Transform;
import gameobject.data.CreatureData;
import gameobject.data.GameObjectData;
import gameobje... | true |
ae44700061c38809e361499d5dad2dea60b139c4 | Java | PaulDePrima/all | /APCS PJD/FibCalc.java | UTF-8 | 805 | 4.1875 | 4 | [] | no_license | //Program to calculate and print the nth number of the Fibonacci Sequence: 1, 1, 2, 3, etc.
public class FibCalc
{
public static void main(String[] args)
{
if(args.length < 1)
{
System.out.println("Please include a number as a runtime parameter.");
return;
}
int n = Integer.parseInt(args[0]);
... | true |
ad7340a1d0aac3eabc1379f6cad9603ea976af5b | Java | xzyeah/micro-common | /src/main/java/info/yywang/micro/common/utils/StringUtils.java | UTF-8 | 2,572 | 3.1875 | 3 | [] | no_license | package info.yywang.micro.common.utils;
import org.springframework.util.Assert;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author wangyan
* @date 2014-11-02 16:47
*/
public final class StringUtils{
/**
* 私有构造器
*/
private StringUtils() {
}
public static bool... | true |
5f59d377998d1c21bbfb725e298ec364600a253d | Java | Andrey-V-Georgiev/SpringMVC | /_08_ExThymeleaf/src/main/java/org/softuni/residentevil/utils/ListMapperImpl.java | UTF-8 | 1,655 | 2.390625 | 2 | [
"MIT"
] | permissive | package org.softuni.residentevil.utils;
import org.modelmapper.ModelMapper;
import org.softuni.residentevil.domain.models.service_models.CapitalServiceModel;
import org.softuni.residentevil.domain.models.service_models.UserServiceModel;
import org.softuni.residentevil.domain.models.service_models.VirusServiceModel;
im... | true |
2502efa86c165e52348cc0a7394decdf2a2efc0f | Java | h-wb/s7-dp | /Composite/src/expression/OperationBinaire.java | UTF-8 | 449 | 3.109375 | 3 | [] | no_license | package expression;
public abstract class OperationBinaire implements Expression {
protected Expression gauche;
protected Expression droite;
protected String operateur;
public OperationBinaire(Expression gauche, Expression droite){
this.gauche = gauche;
this.droite = droite;
}
... | true |
bb7d279afef0fb94241a0261d70196889e7411e4 | Java | VladLshnk0/carsAndRoad | /RoadAndCars/src/sample/TrafficLights.java | UTF-8 | 378 | 2.265625 | 2 | [] | no_license | package sample;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
public class TrafficLights {
public int lengthSettings(){
Controller controller = new Controller();
return (1000 * controller.getRedLightLength());
}
public boolean lightSettings(){
bo... | true |
233927fb50ba54690c001b33ef1deedd4f923b4b | Java | hieuthch/androidShopTMDT | /app/src/main/java/com/example/hshop/Activity/MainActivity.java | UTF-8 | 12,011 | 1.710938 | 2 | [] | no_license | package com.example.hshop.Activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.recyclerview.widget.GridLayoutManager;
import andr... | true |
9137c5b045e04bce615e0d01562e12dab12e5957 | Java | Sl0thking/SlothEngine | /src/de/sloth/core/main/loader/SystemLoaderTest.java | UTF-8 | 1,142 | 2.28125 | 2 | [] | no_license | package de.sloth.core.main.loader;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import de.sloth.core.main.event.GameEvent;
import de.sloth.core.main.system.DefaultEntityManager;
i... | true |
85064c0e7a1833f4ae9da092356d7cdb5781ad01 | Java | tallycheck/general | /general-solution/src/main/java/com/taoswork/tallycheck/general/solution/autotree/AddResult.java | UTF-8 | 433 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package com.taoswork.tallycheck.general.solution.autotree;
/**
* Created by Gao Yuan on 2015/7/3.
*/
class AddResult<N extends AutoTree> {
public enum Type{
Fail,
Exist,
Success,
}
public Type type;
public N node;
public AddResult(Type type, N node) {
this.type =... | true |
0e004ae6ff00d8f8e3282c60010fa05ae78c7662 | Java | prashant-kushwaha/alcopa | /alcopafacades/src/com/alcopa/facades/populators/AlcopaProductPopulator.java | UTF-8 | 1,017 | 2.328125 | 2 | [] | no_license | /**
*
*/
package com.alcopa.facades.populators;
import de.hybris.platform.commercefacades.product.data.ProductData;
import de.hybris.platform.converters.Populator;
import de.hybris.platform.core.model.product.ProductModel;
import de.hybris.platform.servicelayer.dto.converter.ConversionException;
import com.alcopa.c... | true |
c35e17639084ffb6f8d478b4369e62645ec8dbfa | Java | BrunoPicolo/NeoCampus | /project/src/donnees/Capteur.java | ISO-8859-1 | 2,629 | 2.984375 | 3 | [] | no_license | /*
* Projet S5 - NeoCampus
* OLLIVIER Denis, PICOLO-ORTIZ Bruno, POUJOL Elyan
*/
package donnees;
import ihm.CapteursTableModel;
/**
* Reprsente un capteurs en BD ou connect l'application
*/
public class Capteur implements Comparable<Capteur> {
/** Modle personnalis de JTable */
private Capteur... | true |
1e9390df1af4674d9ee18ebe05039e84ec221ca1 | Java | eugenetaranov-opsfleet/wlan-cloud-services | /equipment-gateway-models/src/main/java/com/telecominfraproject/wlan/equipmentgateway/models/CEGWCloseSessionRequest.java | UTF-8 | 634 | 2.109375 | 2 | [] | no_license | package com.telecominfraproject.wlan.equipmentgateway.models;
public class CEGWCloseSessionRequest extends CEGatewayCommand {
private static final long serialVersionUID = -263965970528271895L;
public CEGWCloseSessionRequest(String inventoryId, long equipmentId) {
super(CEGWCommandType.CloseSessionRequest,... | true |
4d7d799ac98b354f7db5265317cc4b6e974560ab | Java | google-code/airforce2 | /src/AForceMenu.java | UTF-8 | 20,818 | 2.578125 | 3 | [] | no_license | // AForceMenu.java
// Jim Sproch
// Created: April 29, 2006
// Modified: March 30, 2008
// Part of the Aforce Port
// Mac < Windows < Linux
/**
AForceMenu is the top menu bar at the top of the AForce window!
@author Jim Sproch
@version 0.1a beta
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;... | true |
ead9372aff3d899ae5b2af0c596e5c38ddfa58b3 | Java | jhass/programmieren-2 | /de/fhh/pr2/rpump/u/a1/Point.java | UTF-8 | 884 | 3.140625 | 3 | [] | no_license | package de.fhh.pr2.rpump.u.a1;
public class Point {
private int x;
private int y;
public Point(int initialX, int initialY) {
x = initialX;
y = initialY;
}
public Point() {
x = 0; y= 0;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public voi... | true |
32c899a80ac795f20c107172f382667253c11fb6 | Java | Israelroze/TexasHoldem | /GUI/src/GameScene/WinnersTable/TableViewController.java | UTF-8 | 1,487 | 2.34375 | 2 | [] | no_license | package GameScene.WinnersTable;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.HBox;
import java.net.URL;
import java.util.ResourceBundle;
publ... | true |
72e6004f42e5a3b3ca537a18d57e3392ce5fd696 | Java | karp1k/spring-reactive-stock-quote-service | /src/test/java/guru/springframework/springreactivestockquoteservice/services/QuoteGeneratorServiceImplTest.java | UTF-8 | 968 | 2.34375 | 2 | [] | no_license | package guru.springframework.springreactivestockquoteservice.services;
import guru.springframework.springreactivestockquoteservice.domain.Quote;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import java.time.Duration;
import java.util.concurrent.CountDownLatc... | true |
4d6744f170c17e62a35c59e335705f5e54ddb35b | Java | saga-project/saga-cpp-legacy-adaptors | /ninfg/trunk/external/ng-4.2.4/java/org/apgrid/grpc/ng/NgGrpcExecInfo.java | UTF-8 | 23,807 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* $AIST_Release: 4.2.4 $
* $AIST_Copyright:
* Copyright 2003, 2004, 2005, 2006 Grid Technology Research Center,
* National Institute of Advanced Industrial Science and Technology
* Copyright 2003, 2004, 2005, 2006 National Institute of Informatics
*
* Licensed under the Apache License, Version 2.0 (the ... | true |
8323bfe5729741ce6ad443de0f30bf4315fbd015 | Java | MichalStygar/BeautyStudioJavaSpring | /src/main/java/com/stygar/salon/entities/Zabieg.java | UTF-8 | 1,562 | 2.46875 | 2 | [] | no_license | package com.stygar.salon.entities;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Zabieg {
@Id
@Colu... | true |
93d8a5a8d1c96b32249b266aa32c0213b3c8a9b0 | Java | shulieTech/Takin-web | /takin-web-common/src/main/java/io/shulie/takin/web/common/util/verify/VerifyTaskUtils.java | UTF-8 | 1,468 | 2.09375 | 2 | [] | no_license | package io.shulie.takin.web.common.util.verify;
import io.shulie.takin.web.ext.entity.tenant.TenantCommonExt;
import io.shulie.takin.web.ext.util.WebPluginUtils;
/**
* @author by: hezhongqi
* @Package io.shulie.takin.web.common.util.verify
* @ClassName: VerifyTaskUtils
* @Description: 漏数验证数据
* @Date: 2022/1/18 1... | true |
ce25059a509096928a6eaa36bd949c5de89a1bb0 | Java | linkedin/rest.li | /restli-server/src/main/java/com/linkedin/restli/server/RestLiRequestDataImpl.java | UTF-8 | 3,921 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright (c) 2014 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | true |