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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e3b6130cf2b730ac4edfa6f2f06e52e8bef891a0 | Java | shoooooman/pickup-and-delivery-simulation | /src/Main.java | UTF-8 | 869 | 2.03125 | 2 | [] | no_license | import jbotsim.Point;
import jbotsimx.ui.JViewer;
import jbotsimx.ui.JTopology;
import static constant.ConstEnvironment.*;
import static constant.ConstUser.*;
public class Main {
public static void main(String[] args) {
MyTopology tp = new MyTopology(GRID_SIZE_X*CELL_SIZE_X, GRID_SIZE_Y*CELL_SIZE_Y);
... | true |
c188d10eafb494d5582a141e8e9be46bf865ddd7 | Java | EggUncle/HwFrameWorkSource | /P9_8_0_0/src/main/java/com/android/internal/telephony/HwCustRILReference.java | UTF-8 | 337 | 1.820313 | 2 | [] | no_license | package com.android.internal.telephony;
import java.util.HashMap;
import java.util.Map;
public class HwCustRILReference {
public boolean isCustCorrectApnAuthOn() {
return false;
}
public Map<String, String> custCorrectApnAuth(String userName, int authType, String password) {
return new Ha... | true |
865d1a06d68bfcb9bcc61fbfe3a956a6593ae3be | Java | luisamesty/orangebanktest | /OrangeBookApp/src/main/java/com/orange/spring/dao/AccountTransactionDaoImpl.java | UTF-8 | 10,600 | 2.328125 | 2 | [] | no_license | package com.orange.spring.dao;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import org.hibernate.NonUniqueResultException;
imp... | true |
318faa6b89317173711fe9a4754e3193edb3a744 | Java | syahrullah123/bonita | /bpm/bonita-core/bonita-process-engine/src/test/java/org/bonitasoft/engine/execution/work/LockProcessInstanceWorkTest.java | UTF-8 | 5,251 | 1.960938 | 2 | [] | no_license | /**
* Copyright (C) 2015 BonitaSoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation
* version 2.1 of the License.
* This libra... | true |
0169e398bd66b1d0e86f580900fe93235efadd7f | Java | xujie0909/se-mysecret | /src/main/java/com/xujie/mysecret/web/wechat/WcBaseController.java | UTF-8 | 3,668 | 2.375 | 2 | [] | no_license | package com.xujie.mysecret.web.wechat;
import com.xujie.mysecret.service.WeChatService;
import com.xujie.mysecret.service.impl.WeChatServiceImpl;
import com.xujie.mysecret.utils.CheckUtil;
import com.xujie.mysecret.utils.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import ... | true |
b419c89b598270188ebb761d6f9809568b58875e | Java | bhaktik26/springbootassignment | /src/main/java/com/online/training/service/EnrollmentService.java | UTF-8 | 2,035 | 2.390625 | 2 | [] | no_license | package com.online.training.service;
import com.online.training.repository.CourseRepository;
import com.online.training.repository.EnrollmentRepository;
import com.online.training.table.model.Course;
import com.online.training.table.model.Enrollment;
import com.online.training.table.model.User;
import org.slf4j.Logger... | true |
6cfc307a9502b7732d88116b7a1b0148b449fe3a | Java | huynguyen0257/XML | /PRXProject/src/huyng/crawler/MainThread.java | UTF-8 | 1,519 | 2.8125 | 3 | [] | no_license | package huyng.crawler;
import java.util.logging.Level;
import java.util.logging.Logger;
public class MainThread implements Runnable {
private static String realPath;
public MainThread(String realPath) {
this.realPath = realPath;
}
@Override
public void run() {
Thread phucAnhThread... | true |
104b1996cd0265e6634540793f6ec8bf2ce8e19e | Java | MarcosPaulodealcantaracn/APP_LOCACAO | /appAluguelEmbarcacoes/src/main/java/br/edu/infnet/appAluguelEmbarcacoes/model/negocio/Embarcacao.java | UTF-8 | 1,025 | 3.03125 | 3 | [] | no_license | package br.edu.infnet.appAluguelEmbarcacoes.model.negocio;
public abstract class Embarcacao {
private String descricao;
private double valor;
private boolean disponivel;
public Embarcacao(String descricao, double valor, boolean disponivel) {
this.descricao = descricao;
this.valor = valor;
this.disponivel ... | true |
fb7654c670d2c649b3f31a2e30559923bf30644a | Java | imgrowing/design-patterns | /src/main/java/ch07_adapter/enumadapter/LongEnumerationTest.java | UTF-8 | 471 | 3.328125 | 3 | [] | no_license | package ch07_adapter.enumadapter;
import java.util.ArrayList;
import java.util.List;
public class LongEnumerationTest {
public static void main(String[] args) {
List<Long> nums = new ArrayList<>();
nums.add(1L);
nums.add(2L);
nums.add(3L);
LongsEnumeration enumeration = new... | true |
5d55eeda9384c88118fa87b731803788e3c4d9ef | Java | emanuel0101/lleme | /TIC10002/src/main/java/uff/ic/lleme/tic10002/provas/s20171/FilaEstaticaDeInt.java | UTF-8 | 349 | 2.609375 | 3 | [] | no_license | package uff.ic.lleme.tic10002.provas.s20171;
public class FilaEstaticaDeInt extends ListaEstatica {
public FilaEstaticaDeInt(int tamanho) {
super(tamanho);
}
public Integer enfileirar(int elemento) {
return super.incluir(elemento);
}
public Integer desenfileirar() {
retur... | true |
8515b884402cb323bfb84606b99c3b4e874d5232 | Java | jaav/vad_factuur_javafx | /Dorse/src/main/java/be/virtualsushi/jfx/dorse/control/ControlsButtonsBar.java | UTF-8 | 1,844 | 2.421875 | 2 | [] | no_license | package be.virtualsushi.jfx.dorse.control;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.StringProperty;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
public class ControlsButtonsBar extends ... | true |
5a9e158e7a84aaf6dab594364b3171f822d3f68c | Java | vinod88paliwal/temp | /JavaBasics/JavaBasics/Labs/src/com/collectios/basics/VectorClass.java | UTF-8 | 329 | 2.8125 | 3 | [] | no_license | package com.collectios.basics;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Vector;
public class VectorClass {
public static void main(String[] args) {
Vector<String> v = new Vector<String>();
Iterator<String> it = v.iterator();
Enumeration<String> en = v.elements... | true |
a3df1e4c693ec2a065ea8d14810a42c7000bb23b | Java | vokolitiy/RxMarkdown | /rxmarkdown/src/androidTest/java/com/yydcdut/rxmarkdown/AndroidGrammarTest4App.java | UTF-8 | 15,414 | 2.265625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package com.yydcdut.rxmarkdown;
import android.test.InstrumentationTestCase;
/**
* Created by yuyidong on 16/5/14.
*/
public class AndroidGrammarTest4App extends InstrumentationTestCase {
// private RxMDConfiguration mRxMDConfiguration;
@Override
protected void setUp() throws Exception {
super.s... | true |
facadfd93d4af7ee1e5c66c17df2ac6451e44712 | Java | gunner14/old_rr_code | /java_workplace/renren_web_framework/xoa2/tags/release-1.0-disable-fix/xoa2-serverlib/src/main/java/com/renren/xoa2/server/impl/AbstractServiceBuilder.java | UTF-8 | 2,962 | 2.15625 | 2 | [] | no_license | /**
*
*/
package com.renren.xoa2.server.impl;
import org.apache.thrift.TProcessor;
import org.apache.thrift.server.TServer;
import org.apache.thrift.transport.TServerTransport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.renren.xoa2.server.IInitListener;
import com.renren.xoa2.server.IServ... | true |
abbc85a1d075028311e040b872daddac89de4d59 | Java | Banner-Keith/CIT360Sandbox | /Hibernate/src/hibernate/proxy/ProxyDemo.java | UTF-8 | 781 | 3.03125 | 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 hibernate.proxy;
/**
*
* @author Keith
*/
public class ProxyDemo {
public void runProxyDemo() {
//... | true |
9d54edc0b38f451ce20530848082bd97f00b0db5 | Java | jianhunqianmeng/FirstJSFProject | /src/main/java/com/dnc/common/HelloBeanForRequestScoped.java | UTF-8 | 683 | 2.3125 | 2 | [] | no_license | package com.dnc.common;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import java.io.Serializable;
@ManagedBean
@RequestScoped
public class HelloBeanForRequestScoped implements Serializable {
public int commitTimes =0;
private String name;
public String doSomething(){
... | true |
610a6f20c626e86cece5c8579a608e3b10ec4d9c | Java | RaoKolate/APITestApplication | /src/test/java/com/qa/apitest/testcases/GetAPITest.java | UTF-8 | 2,840 | 2.40625 | 2 | [] | no_license | package com.qa.apitest.testcases;
import java.io.IOException;
import java.util.HashMap;
import org.apache.http.Header;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.util.EntityUtils;
import org.json.JSONObject;
impo... | true |
cfc1265feef768c6138dc324a4bd94cd8e397ce1 | Java | se4/SE4-Backend-Formal-Demo | /src/main/java/nju/se4/demo/security/UserDetailsServiceImpl.java | UTF-8 | 3,192 | 2.359375 | 2 | [
"MIT"
] | permissive | package nju.se4.demo.security;
import lombok.Data;
import nju.se4.demo.common.UserIdentity;
import nju.se4.demo.data.dao.UserDAO;
import nju.se4.demo.data.entity.User;
import nju.se4.demo.security.exception.InvalidOperationException;
import nju.se4.demo.security.exception.NotFoundException;
import nju.se4.demo.securit... | true |
f8eadd01a623bfc171a24599548faddce7912e04 | Java | sepulzera/notes | /app/src/test/java/de/sepulzera/notes/bf/helper/JsonUtilTest.java | UTF-8 | 2,912 | 2.484375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | package de.sepulzera.notes.bf.helper;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import java.util.Date;
import java.util.GregorianCalendar;
import static org.junit.Assert.assertFalse;
import static o... | true |
f2c6decd2c5ce46ceb5918e79ca9d38602f05d34 | Java | pyf811010/SDDB4.0 | /src/main/java/edu/usts/sddb/entity/pack/StudentQuery.java | UTF-8 | 1,052 | 2.75 | 3 | [] | no_license | package edu.usts.sddb.entity.pack;
import java.util.List;
import edu.usts.sddb.entity.Student;
/**
* @author sun 每一个需要分页显示的对象,都需要转化成这样的格式,变量名page,total,records,rows不可变
*/
public class StudentQuery {
// 当前所处页数
private int page;
// 总共页数
private int total;
// 总记录数
private int records;
// 模型对象
private List<Stu... | true |
bc259fef06a1d6981efd585a70cc37b8acc44b59 | Java | uanave/java-module | /src/academy/everyonecodes/java/week3/set2/exercise4/KilometerToMileConverter.java | UTF-8 | 172 | 2.671875 | 3 | [] | no_license | package academy.everyonecodes.java.week3.set2.exercise4;
public class KilometerToMileConverter {
public double convert(double km) {
return km * 0.621;
}
}
| true |
8025fa0e45043f24bb3a39e576686deb8b6e8af6 | Java | gouthi14/Basic-java-and-selenium-programs | /jdbc_database/src/jdbc_database/Insert_by_prepared.java | UTF-8 | 628 | 2.515625 | 3 | [] | no_license | package jdbc_database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
public class Insert_by_prepared {
public static void main(String args[])
{
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:th... | true |
3ccc038b35dcce8d786f97129518a7c110288ab1 | Java | BlueObelisk/jumbo6 | /src/main/java/org/xmlcml/cml/tools/AbstractDisplay.java | UTF-8 | 6,355 | 2.203125 | 2 | [] | no_license | /**
* Copyright 2011 Peter Murray-Rust et. al.
*
* 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
*
* Unles... | true |
d4e9c07d951f666ea3749956ae8fab49cf2f281d | Java | emaycn/emay-service | /src/main/java/cn/emay/core/base/dao/impl/SectionNumberDaoImpl.java | UTF-8 | 2,069 | 2.046875 | 2 | [] | no_license | package cn.emay.core.base.dao.impl;
import cn.emay.configuration.db.BasePojoSuperDaoImpl;
import cn.emay.core.base.dao.SectionNumberDao;
import cn.emay.core.base.pojo.SectionNumber;
import cn.emay.utils.db.common.Page;
import cn.emay.utils.string.StringUtils;
import org.springframework.stereotype.Repository;
import j... | true |
957a13c11e86937e3b7d72ca80500cc390a71d74 | Java | marcomarasca/Synapse-Repository-Services | /lib/jdomodels/src/test/java/org/sagebionetworks/repo/model/dbo/dao/DBOAccessApprovalDAOImplTest.java | UTF-8 | 45,300 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package org.sagebionetworks.repo.model.dbo.dao;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.... | true |
0d92c39399b906d0cd6e1fc39577f0d1bd6b2084 | Java | fersal/data-validation-and-send-to-printer | /src/main/java/com/cell/report/model/Cellphone.java | UTF-8 | 330 | 1.992188 | 2 | [] | no_license | package com.cell.report.model;
/*
Coded by fernando.salazar on 12/18/19
*/
import lombok.Builder;
import lombok.Getter;
import java.time.LocalDate;
@Builder
@Getter
public class Cellphone {
private long employeeId;
private String employeeName;
private LocalDate purchaseDate;
private String phon... | true |
cbedc9f937d50e3c731f897c69afc9bf11df7474 | Java | osuisumi/ss | /sip-evaluate/sip-evaluate-core/src/main/java/com/haoyu/sip/evaluate/service/IEvaluateRelationService.java | UTF-8 | 702 | 1.648438 | 2 | [] | no_license | package com.haoyu.sip.evaluate.service;
import java.util.List;
import java.util.Map;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.haoyu.sip.core.service.Response;
import com.haoyu.sip.evaluate.entity.EvaluateRelation;
public interface IEvaluateRelationService {
EvaluateRelation getE... | true |
0990c4f316c297b8d4ef1a6d971a4bc025c2348f | Java | cumbari/LBA_Client_Android | /app/src/main/java/com/moblyo/market/sync/JsonMethods.java | UTF-8 | 5,255 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.moblyo.market.sync;
import com.moblyo.market.model.CouponViewStatistic;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
/**
* Created by Rohit on 4/25/16.
*/
public class JsonMethods
{
public String getHostURL(float longitude,float latitude)
{
JSONParser parser... | true |
e105a48ff4ffc5b66aac9dcfb2f2d99346029020 | Java | Dryunkaaa/Module3_Hibernate | /src/main/java/CommandHandler/Customer/GetCustomerList.java | UTF-8 | 792 | 2.859375 | 3 | [] | no_license | package Hibernate.CommandHandler.Customer;
import Hibernate.CommandHandler.CommandHandler;
import Hibernate.Entity.Customer;
import Hibernate.Storage.AbstractDao;
import java.util.List;
public class GetCustomerList implements CommandHandler {
@Override
public void handleCommand(String[] parameters) {
... | true |
0ab468ee5dd269f196887b883c3cad6a5d4c6187 | Java | theelk801/mage | /Mage.Sets/src/mage/cards/o/OathOfNissa.java | UTF-8 | 7,321 | 2.015625 | 2 | [] | no_license | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this lis... | true |
26c3664ac83f7076c3760083b4f807844383dc5a | Java | moutainhigh/lnmj-devp | /parent/product/src/main/java/com/lnmj/product/entity/InstoragePreAuditProduct.java | UTF-8 | 648 | 1.703125 | 2 | [] | no_license | package com.lnmj.product.entity;
import com.lnmj.product.entity.base.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class InstoragePreAuditProduct extends BaseEntity {
private Long id;
private Long instoragePreAuditId;
private BigDecimal unitPrice;
... | true |
2bb9feb260fbfb1ae5a87689cea58cb2393c0db3 | Java | chawki27000/pfe-mobile-app | /app/src/main/java/com/dev/chawki/alpha/fragments/InstableFragment.java | UTF-8 | 1,315 | 2.21875 | 2 | [] | no_license | package com.dev.chawki.alpha.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.dev.chawki.alpha.R;
/**
... | true |
e658d40d833fe32c1799eab9a982e6dfa3dbe21c | Java | HengYi-JAPP/HY_TMS | /code/htms/htms/com/zzy/htms/mobile/ShipBusiness.java | UTF-8 | 18,889 | 2.015625 | 2 | [] | no_license | package com.zzy.htms.mobile;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
i... | true |
8adc4ee769e8aa48deb76f42ce486b8ddb9a7f9d | Java | yinlingchaoliu/Component | /ComponentImpl/src/main/java/com/xiaojinzi/component/application/IComponentHostApplication.java | UTF-8 | 319 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.xiaojinzi.component.application;
import android.support.annotation.NonNull;
/**
* 每一个实现类都必须返回对应的 Host
*/
public interface IComponentHostApplication extends IComponentApplication {
/**
* 获取host
*
* @return
*/
@NonNull
String getHost();
}
| true |
5183fb16fff72b91d2cba7d4345c19cdb7327557 | Java | guozhihua/Wechat1.0 | /chat-utils/src/main/java/com/weixin/utils/jdbc/CommonDataBase.java | UTF-8 | 561 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.weixin.utils.jdbc;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by :Guozhihua
* Date: 2017/4/12.
*/
public class CommonDataBase implements Serializable {
//所有落地数据库名称,判断的时候都采用小写,自动适配xxTimely
public final static List<String> LOCAL_APP_DATABSENAMES ... | true |
4955a648c4fbacfdba6eeeb8251040aefe18e6df | Java | hangorn/myLibrary | /myLibraryWeb/src/main/java/es/magDevs/myLibrary/web/controllers/main/ControllerFactory.java | UTF-8 | 3,114 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2014-2015, Javier Vaquero
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* required by applicable law or agreed ... | true |
71ac93a3f245204724a18846ad295f2ffdc8b736 | Java | DazSanchez/estructura-de-datos | /src/main/java/me/hugosv/olympic_administrator/MainWindow.java | UTF-8 | 29,502 | 1.8125 | 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 me.hugosv.olympic_administrator;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JList;
import javax.swi... | true |
e31ceb754f8ae7ffa23cba9c1f84f4901449cd11 | Java | HalomkoDmytro/ExhibitionCalendar | /src/main/java/controller/command/util/ErrorHandler.java | UTF-8 | 808 | 2.171875 | 2 | [] | no_license | package controller.command.util;
import org.apache.log4j.Logger;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse... | true |
b3e2bb515b6e6a53e782f9863946f2a17d3631cd | Java | rakeshkumargupt/CompleteCoreJavaNotes | /Function/func06.java | UTF-8 | 552 | 4.0625 | 4 | [] | no_license | // Objects are passed by reference.
class Test //user defined type
{ //begining of class
int a, b;
Test(int i, int j) //constructor
{
a = i;
b = j;
}
// pass an object
void meth(Test obj)
{
obj.a = 25;
obj.b = 50;
}
} //end of class
class func06
{
public static v... | true |
3cc48ef4687ecf95c92bd6f2e3f4756f5ae724f3 | Java | anderfernandes/JavaSpring14 | /mackor1/class-2/Average3Numbers.java | UTF-8 | 961 | 4.125 | 4 | [] | no_license | import java.util.Scanner; // Scanner is in the java.util package
public class Average3Numbers {
public static void main (String[] args) {
// Create a Scanner object
@SuppressWarnings("resource")
Scanner input = new Scanner (System.in);
//Prompt the user to enter 1st number
System.out.print("Enter th... | true |
1332f36032daf29898483021ce86160c9ae6c395 | Java | yoseftanaka/training | /src/composite/TodoPanel.java | UTF-8 | 2,212 | 2.921875 | 3 | [] | no_license | package composite;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
public class TodoPanel extends JPanel {
private JTextField textInput;
private JButton addButton, startButton, doneButton, removeButton, stopButton;
private JPanel buttonPanel;
private JLabel timerLabel;
private boolean... | true |
409472da09e2e177b24491d43db36190d621b2ee | Java | idlirislamaj/Java-Class-Exercises | /redischool/Lesson16/MainProgram.java | UTF-8 | 2,355 | 3.4375 | 3 | [] | no_license | /*
package redischool.Lesson16;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class MainProgram {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Set<Registration> registrationSet = new HashSet<>();
*/
/* ... | true |
d80063045aacf632e6bbeff4292ea42ef7581dca | Java | yogeshirale/Implementation-of-UI-for-LL-k-Parser-Generator. | /MyPro/src/net/java/vll/vll4j/gui/VisitorRuleSearch.java | UTF-8 | 2,779 | 2.078125 | 2 | [] | no_license | /* */ package net.java.vll.vll4j.gui;
/* */
/* */ import java.util.TreeSet;
/* */ import net.java.vll.vll4j.api.NodeBase;
/* */ import net.java.vll.vll4j.api.NodeChoice;
/* */ import net.java.vll.vll4j.api.NodeLiteral;
/* */ import net.java.vll.vll4j.api.NodeReference;
/* */ import net.java.vll... | true |
5edf28a9df8069446fcb4999439b077ce4fdf292 | Java | uzi-awsm-codes/Java | /src/Str15.java | UTF-8 | 1,189 | 4.15625 | 4 | [] | no_license | /*15. Write a program to read a string and an integer and return a string based on the below rules.
If input2 is equal or greater than 3 then repeat the first three character of the String by given input2 times, separated by a space.
If input2 is 2 then repeat the first two character of String two times separated by ... | true |
6cf41dc158978d5675f4f55a9c44fc581f91eabf | Java | ghost461/AndroidMisc | /AndroidJniGenerate/GetJniCode/xwebruntime_javacode/org/chromium/payments/mojom/PaymentRequest_Internal.java | UTF-8 | 23,477 | 1.851563 | 2 | [] | no_license | package org.chromium.payments.mojom;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import org.chromium.mojo.bindings.DataHeader;
import org.chromium.mojo.bindings.Decoder;
import org.chromium.mojo.bindings.DeserializationException;
import org.chromium.mojo.bindings.Encoder;
import org.chromium.mojo.bindings.... | true |
a7e7b20b4d587b1c88fbedd05aca1bf0c7aa8dca | Java | icyerasor/svnl | /test/SSLHttpClientTest.java | UTF-8 | 7,424 | 2.15625 | 2 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.zip.GZIPInputStream;
import javax.net.ssl.SSLContext;
import javax.ne... | true |
3e4edbcfe9b51fad754fbed10718112bbd175b29 | Java | 0jinxing/wechat-apk-source | /com/tencent/mm/plugin/appbrand/jsapi/p.java | UTF-8 | 711 | 1.773438 | 2 | [] | no_license | package com.tencent.mm.plugin.appbrand.jsapi;
import java.util.Map;
public abstract class p extends ah
{
public final p AL(String paramString)
{
super.AM(paramString);
return this;
}
public final p a(c paramc, int paramInt)
{
super.b(paramc, paramInt);
return this;
}
... | true |
11b308bc7b720f68ab7b14a62d4e45dda357eba0 | Java | nibbleshift/skylight-uas | /src/skylight-cucs/src/main/java/br/skylight/cucs/plugins/missionplan/MissionPlanTreeModelListener.java | UTF-8 | 469 | 1.78125 | 2 | [
"MIT"
] | permissive | package br.skylight.cucs.plugins.missionplan;
import br.skylight.commons.Mission;
import br.skylight.commons.dli.mission.AVPositionWaypoint;
import br.skylight.commons.dli.mission.AVRoute;
public interface MissionPlanTreeModelListener {
public void onPositionWaypointUpdated(AVPositionWaypoint pw, Object new... | true |
8c7bb05e358bbc2bc27beba065add9a7df449d93 | Java | RuochenLI/Leetcode | /src/main/java/exercises/leetcode801_1000/TimeMap.java | UTF-8 | 912 | 3.03125 | 3 | [] | no_license | package exercises.leetcode801_1000;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import com.google.common.base.Strings;
public class TimeMap {
private final Map<String, TreeMap<Integer, String>> store;
public TimeMap() {
this.store = new HashMap<>();
}
public vo... | true |
89ba363546951d0c30551163fcf896989685a2c9 | Java | chakas/reactor-samples | /src/main/java/com/chakas/flux/FluxFirstWithSignal.java | UTF-8 | 1,098 | 3.109375 | 3 | [] | no_license | package com.chakas.flux;
import reactor.core.publisher.Flux;
import java.time.Duration;
public class FluxFirstWithSignal {
public static void main(String[] args) throws InterruptedException {
Flux<Integer> firstPublisher =
Flux.just(1, 2, 3)
.doOnSubscribe(subscrip... | true |
74dfc49ad25f80e6235fc8459b8cd7017c69411a | Java | mevroy/WIR-JDK1.7 | /app/src/main/java/com/mrd/yourwebproject/model/entity/GroupEvents.java | UTF-8 | 12,607 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.mrd.yourwebproject.model.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import ja... | true |
0573463e97d2f9c09797fef26c6ce5c77ca654db | Java | tsungweiwu/csce247project | /csce247FinalProject/src/test/java/project/objects/UserTest.java | UTF-8 | 898 | 2.484375 | 2 | [] | no_license | package project.objects;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class UserTest {
User user;
... | true |
806fab286fb0933924afc51991aa55c59e6dfc45 | Java | demian054/CallCenter | /src/main/java/com/callcenter/factory/TrabajdoresFactory.java | UTF-8 | 1,134 | 2.734375 | 3 | [] | no_license | package com.callcenter.factory;
import java.util.ArrayList;
import java.util.List;
import com.callcenter.bean.Trabajador;
import com.callcenter.dispatcher.Dispatcher;
import com.callcenter.enums.Configuracion;
import com.callcenter.enums.TipoCargo;
public class TrabajdoresFactory {
public static void generateTraba... | true |
4b9c31018da21998afa0f87ed70c0901330ebe74 | Java | bohdanvan/javastart-group49 | /src/com/bvan/javastart/lesson6/array/SumCalculator.java | UTF-8 | 354 | 3.734375 | 4 | [] | no_license | package com.bvan.javastart.lesson6.array;
/**
* @author bvanchuhov
*/
public class SumCalculator {
public static void main(String[] args) {
int[] array = {10, 30, 20, 25};
int sum = 0;
for (int elem : array) { // for-each, read only
sum += elem;
}
System.out... | true |
84f3bb5e732b4ed9540bafc72724c043d9bf7d0e | Java | supersnow0622/leetcode | /src/list/reorder_list.java | WINDOWS-1252 | 1,807 | 3.375 | 3 | [] | no_license | package list;
/**
* @Description:Given a singly linked list L: L 0L 1L n-1L n,
reorder it to: L 0L n L 1L n-1L 2L n-2
You must do this in-place without altering the nodes' values.
For example,
Given{1,2,3,4}, reorder it to{1,4,2,3}.
* @author:王丽?-Dosgi.requiredJavaVersion=1.6
* @time:20176299:27:23
*/
public clas... | true |
0c390bbae44e101389b4737837d8a890feeb53b7 | Java | javaobjects/ipm_boot | /.svn/pristine/0c/0c390bbae44e101389b4737837d8a890feeb53b7.svn-base | UTF-8 | 4,345 | 2.171875 | 2 | [
"MulanPSL-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
*<p>Copyright © 北京协软科技有限公司版权所有。</p>
*类名: AlarmRrdService.java
*创建人: www 创建时间: 2018年5月18日
*/
package com.protocolsoft.kpi.service;
import java.io.File;
import java.util.List;
import java.util.AbstractMap.SimpleEntry;
import com.protocolsoft.kpi.bean.RetainTimeBean;
import com.protocolsoft.kpi.en... | true |
e0353ecf41d162350f7fd246ae378958b77ae542 | Java | fatihdagdeviren/SpringBootRepo | /hk-hello-world/spring-examples/spring-datajpa-postgresql/src/main/java/com/haydikodlayalim/entity/Kisi.java | UTF-8 | 670 | 1.921875 | 2 | [] | no_license | package com.haydikodlayalim.entity;
import lombok.*;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "kisi")
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode( of = {"id"})
@ToString()
public class Kisi {
@Id
@SequenceGenerator(name = "seq_kisi_adres",allocat... | true |
9ed12e59b76f560c031284f21ebb010cb6dd3494 | Java | xl8or/- | /projs./apk/com.android.vending-3.1.5/src/android/support/v4/app/LoaderManagerImpl.java | UTF-8 | 26,327 | 1.90625 | 2 | [] | no_license | package android.support.v4.app;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.HCSparseArray;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v4.util.DebugUtils;
import android.util.Log;
import java.i... | true |
10db1bfa0874411fab5010eee1035babd677d143 | Java | superkulpa/jcpc | /jcpc/src/ru/autogenmash/core/CpParameters.java | UTF-8 | 4,502 | 2.828125 | 3 | [] | no_license | package ru.autogenmash.core;
import java.util.Vector;
import ru.autogenmash.core.utils.compiler.Compiler;
/**
* Набор параметров.
*
* @author Dymarchuk Dmitry
* @version unknown
* <p>
* refactor 06.07.2007 10:09:17
*/
public class CpParameters extends Vector {
// protected... | true |
79f5e9c53a66c01349de3e56a26ccdb4c481523f | Java | soulcure/airplay | /SmartLife-webrtc/TvpiLib/src/main/java/com/coocaa/tvpi/module/local/utils/SkyBroadcast.java | UTF-8 | 2,301 | 2.21875 | 2 | [] | no_license | package com.coocaa.tvpi.module.local.utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
/**
* Created by dvlee1 on 11/19/15.... | true |
14893ad5381268859b367e5e628c3fa7a81ed9b8 | Java | udayabaski/mailer24x7 | /mailer24x7-Beta/src/com/nervytech/mailer24x7/spring/controller/SubscriberController.java | UTF-8 | 19,455 | 1.695313 | 2 | [] | no_license | package com.nervytech.mailer24x7.spring.controller;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.io.IOUtils;
import org.sl... | true |
5fa6fcc794a21f29b5ba0c02164bed43a9bd97f1 | Java | leonardogc/Pong | /Pong/src/logic/Obstacle.java | UTF-8 | 593 | 3.328125 | 3 | [] | no_license | package logic;
import java.util.Vector;
public class Obstacle {
public Vector<double[]> points;
public double[] point_of_rotation;
public Obstacle(Vector<double[]> points) {
this.points=points;
double point_of_rotation_x=0;
double point_of_rotation_y=0;
for(int i=0; i < points.size();... | true |
223132f83aa33eb730ae213aedba5be9d99f64b0 | Java | cqucuimao/SSH-Project | /src/main/java/com/yuqincar/dao/car/TollChargeDao.java | UTF-8 | 272 | 1.859375 | 2 | [] | no_license | package com.yuqincar.dao.car;
import com.yuqincar.dao.common.BaseDao;
import com.yuqincar.domain.car.Car;
import com.yuqincar.domain.car.TollCharge;
public interface TollChargeDao extends BaseDao<TollCharge> {
public TollCharge getRecentTollCharge(Car car);
}
| true |
1dee5e68cb665db42a8ffaa6c2182886204e4411 | Java | lxk1080/java-review | /projects/JavaLoad/src/com/etc/io_others/System_out.java | UTF-8 | 1,055 | 3.484375 | 3 | [] | no_license | package com.etc.io_others;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
/*
* 标准输入输出流
* System类中的两个成员变量:
* public static final InputStream in “标准”输入流。
* public static final PrintStream out “标准”输出流。
*
* InputStream is = System.in;
* PrintStream ps = System... | true |
87a630aa509fb6b273f37ae75831afc627489949 | Java | devlopper/org.cyk.utility | /common/src/main/java/org/cyk/utility/common/userinterface/Request.java | UTF-8 | 562 | 1.859375 | 2 | [] | no_license | package org.cyk.utility.common.userinterface;
import java.io.Serializable;
import org.cyk.utility.common.userinterface.panel.Dialog;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter @Setter @Accessors(chain=true)
public class Request extends Component.Invisible implements Se... | true |
dfc1b3ffd2b46751451565c00f00f17435df6c33 | Java | Kanada3000/on-equals-project | /src/main/java/org/onequals/repo/VacancyRepo.java | UTF-8 | 4,333 | 2 | 2 | [] | no_license | package org.onequals.repo;
import org.onequals.domain.User;
import org.onequals.domain.Vacancy;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
import java.util.Set;
public interfac... | true |
a99b82d48d9250ee8b35aa46fd0cb89d0afb7f2b | Java | moushao/Langxun | /app/src/main/java/com/langbai/tdhd/activity/GroupDetailsActivity.java | UTF-8 | 16,309 | 1.609375 | 2 | [] | no_license | package com.langbai.tdhd.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import a... | true |
a80808000606d78eda09c61cffafbe7b88b27d8e | Java | diegoneuralo/impressonhos | /src/main/java/br/com/impressonhos/enums/TipoTelefone.java | UTF-8 | 1,076 | 3.34375 | 3 | [] | no_license | package br.com.impressonhos.enums;
/**
* Enum responsável pelos tipos de telefone. Opções:
* <li>RESIDENCIAL</li>
* <li>CELULAR</li>
* <li>COMERCIAL</li>
* <li>RECADOS</li>
* </ul>
* @author riccardof
*
*/
public enum TipoTelefone {
RESIDENCIAL(0, "residencial"),
CELULAR(1, "celular"),
COMERCIAL(2, "co... | true |
085c34a776aed090e00d966609800a37ea0b1d5c | Java | 2040602490/springcloud-phone | /feign/src/main/java/com/jk/service/PhoneService.java | UTF-8 | 694 | 1.804688 | 2 | [] | no_license | package com.jk.service;
import com.jk.entity.Phone;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@FeignClient(value = "provider")
public interface PhoneService {
@RequestMapping("phone/queryAll")
Map queryAll(@RequestParam In... | true |
6974ec4b15fb0ca617bb925cc62ec7f5de1c22c7 | Java | maviswongkl/NDPSongs | /app/src/main/java/com/example/p05_ndpsongsinsertsongs/DBHelper.java | UTF-8 | 4,456 | 2.953125 | 3 | [] | no_license | package com.example.p05_ndpsongsinsertsongs;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.util.ArrayList;
public class DBHelper... | true |
9c97a983edfd6b3c5e02f53607c7a345b738b47f | Java | dlvkin/chaincode-optic | /axis-chain-support/src/main/java/com/utsoft/blockchain/support/vo/PersonalAssetVo.java | UTF-8 | 1,032 | 2.265625 | 2 | [] | no_license | package com.utsoft.blockchain.support.vo;
import java.io.Serializable;
/**
* 个人资产
* @author hunterfox
* @date 2017年7月18日
*/
public class PersonalAssetVo implements Serializable {
private static final long serialVersionUID = -6217395086060284504L;
/**
* 总资产
*/
private double total;
/**
* 可用人民币
*/
p... | true |
f85fa6b1bcac2b16ef25a3f655eafeb873412708 | Java | jbrmmg/Backup | /src/main/java/com/jbr/middletier/backup/data/FileSystemObject.java | UTF-8 | 2,042 | 2.578125 | 3 | [] | no_license | package com.jbr.middletier.backup.data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Optional;
@SuppressWarnings({"unused", "WeakerAccess"})
@Entity
@Table(name="file_system_object")
@Inheritance(strategy = InheritanceType.JOINED)
public class FileSystemObject {
@Id
... | true |
220cde915579a4ff2b5af80e5a3cd1e10862f3c2 | Java | yaegorko/Egor-Kuznetcov | /chapter_001/src/main/java/ru/job4j/max/Max.java | UTF-8 | 820 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | package ru.job4j.max;
/**
* Класс на определение максимума из 2х чисел.
* @author - Egor K.
* @since - 15.08.17
*/
public class Max {
/**
* Метод максимума двух чисел.
* @param first первое число
* @param second второе число
* @return максимум
*/
public int max(int first, int seco... | true |
4f8d4458a035610ec92d00da7ab5420ab79c1102 | Java | GeekOliver/LeetCode | /LeetCode_693_BinaryNumberwithAlternatingBits.java | UTF-8 | 290 | 2.46875 | 2 | [] | no_license | /**
* Created by oliverwang on 2018/3/2.
*/
public class LeetCode_693_BinaryNumberwithAlternatingBits {
public boolean hasAlternatingBits(int n) {
int d = n & 1;
while ((n & 1) == d){
d ^= 1;
n >>= 1;
}
return n == 0;
}
}
| true |
981831576440f22e5526e9c939a01b168491e921 | Java | vwilmet/othello_pdp | /OthelloKernel/src/com/view/ChoosePositionViewImpl.java | UTF-8 | 5,830 | 2.90625 | 3 | [] | no_license | package com.view;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.event.ChangeE... | true |
a89215dba242c4a253789e660a659cb009b74e94 | Java | jolly001/ThankyouJT | /src/test/java/com/ThankYouProject/testCases/homeCases/TC_018_Home_5.java | UTF-8 | 663 | 2.03125 | 2 | [] | no_license | package com.ThankYouProject.testCases.homeCases;
import java.io.IOException;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import com.ThankYouProject.pages.HomePage;
import com.ThankYouProject.testBase.BaseClass;
public class TC_018_Home_5 ext... | true |
895f635b035894d12e53e41f65b17ed78c60398c | Java | acrose99/Comp333Project3V2 | /src/main/java/com/hr/service/ProductResource.java | UTF-8 | 2,297 | 2.40625 | 2 | [] | no_license | package com.hr.service;
import java.util.Set;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import com.hr.service.representati... | true |
50818e22a570860e4bb21708d691fdc5bd0883e9 | Java | jjlharrison/jb-tree | /src/main/java/de/rwhq/io/rm/WrongPageSizeException.java | UTF-8 | 550 | 2.015625 | 2 | [
"CC-BY-4.0"
] | permissive | /*
* This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License:
*
* http://creativecommons.org/licenses/by-nc/3.0/
*
* For alternative conditions contact the author.
*
* Copyright (c) 2011 "Robin Wenglewski <robin@wenglewski.de>"
*/
package de.rwhq.io.rm;
public class WrongP... | true |
eae0e74af7119771a27e4bb1e798419b6bf6a474 | Java | ethanp/three-phase-commit | /src/main/java/messages/InRecoveryResponse.java | UTF-8 | 584 | 2.296875 | 2 | [] | no_license | package messages;
import java.util.Collection;
public class InRecoveryResponse extends Message {
private Collection<Integer> lastUpSet;
public InRecoveryResponse(int transactionID, Collection<Integer> lastUpSet) {
super(Command.IN_RECOVERY, transactionID);
this.lastUpSet = lastUpSet;
}
public Collection<... | true |
176530d292730ac8fc6498d7a981562ed4d48184 | Java | nikolaynest/4course | /src/main/java/qa_1/lab6/Student.java | UTF-8 | 1,519 | 2.6875 | 3 | [] | no_license | package qa_1.lab6;
/**
* Created by nikolay on 02.06.14.
*/
public class Student {
private int id;
private String firstName;
private String lastName;
private int averageAssessment;
private String address;
private String faculty;
public Student(String firstName, String lastName, int aver... | true |
aecdd028bef1b3fefaea3b0400369ccd2fc7fcd2 | Java | hejiangping2022/AionEmu | /al-game/quest/beluslan/_2654SpyTheLastPersuasion.java | UTF-8 | 2,251 | 2.15625 | 2 | [] | no_license | package quest.beluslan;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestSta... | true |
2ad7604400be3418c70fa8272d7ca2c147237caa | Java | xagpx/springbootGateway | /src/main/java/com/example/demo/controller/UserService.java | UTF-8 | 1,807 | 2.390625 | 2 | [] | no_license | package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.core.ParameterizedTypeReference;
import org.springframew... | true |
8b38985ce74fce6306accd05594ecbe3d7af7484 | Java | ysabi/sgtest | /example-project/src/main/java/example_project/example_project/BankAccount.java | UTF-8 | 2,018 | 3.375 | 3 | [] | no_license | package example_project.example_project;
import java.util.ArrayList;
import java.util.Date;
public class BankAccount {
private String accountNumber;
private Double balance;
private ArrayList<Operation> operations = new ArrayList<Operation>();
public BankAccount(String accountNumber, Double balance) {... | true |
6d73bf78c9692e449c01b6393892c96b21643eab | Java | RoleplayTalkPlatform/Java-Library | /src/main/java/de/canicsmotion/java/rtp/lib/utils/Linker.java | UTF-8 | 3,720 | 3.15625 | 3 | [] | no_license | package de.canicsmotion.java.rtp.lib.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
/**
* The Linker updates all players and sends them to the Backend of RTP
*/
public class Linker {
private Timer updateTimer = new Timer();
private UpdateTask up... | true |
50806b72c58c09d6df6ea3df1e46abe0fa9aa561 | Java | badapplewj/ExcelPictureExporter | /src/sample/Main.java | UTF-8 | 915 | 2.53125 | 3 | [] | no_license | package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {
// Read file fxml and dra... | true |
3871720797bba63371fb6bd8088673d3792525ef | Java | frksptr/javahazi | /torpedo_ari/szoftechtutor/GUI.java | UTF-8 | 3,713 | 2.765625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package szoftechtutor;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt... | true |
779dd35cc012cdc9a9d22465a662f81481249688 | Java | PritiGGaikar/Tide1 | /src/main/java/com/tide/qa/utility/Configuration.java | UTF-8 | 1,625 | 2.1875 | 2 | [] | no_license | package com.tide.qa.utility;
import java.util.HashMap;
import com.tide.qa.common.GlobalVariables;
public class Configuration {
private static Utilities util = new Utilities();
public static String URL_INFO = null;
// public static String PASSWORD= properties.getProperty("password");
private... | true |
b01db0365d9649c5fb590b9535b0c56056bb3fe1 | Java | Powisis/University-projects | /Polymorphism/Main.java | UTF-8 | 1,155 | 3.046875 | 3 | [] | no_license | public class Main {
static void zrobTo (Pojazdy p) {
// String typ = ((Pojazdy) p).zwrocTyp();
// System.out.println ("\nTyp pojazdu " + typ);
// int kolo = ((Pojazdy) p).zwrocLiczbeKol();
// System.out.println ("Liczba kol w pojezdzie " + kolo);
// String Marka = ((Pojazdy) p).zwrocMarke();
// Syst... | true |
9735def3092acb1e43749e5330370655610caaa5 | Java | schusterjd/SpringLegoList | /SpringLegoList/src/main/java/dmacc/repository/LegoRepository.java | UTF-8 | 274 | 1.507813 | 2 | [] | no_license | /**
* @author Jaden Schuster - jdschuster
* CIS175 - Spring 2021
* Mar 18, 2021
*/
package dmacc.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import dmacc.beans.LegoSets;
public interface LegoRepository extends JpaRepository<LegoSets, Long> {
}
| true |
201c608ecfd05af986a7238f82350e57f13a4136 | Java | benschulz/cofi | /cofi-binary-model-deserialization-commons/src/main/java/de/benshu/cofi/binary/deserialization/internal/TypeParser.java | UTF-8 | 12,964 | 1.890625 | 2 | [] | no_license | package de.benshu.cofi.binary.deserialization.internal;
import com.google.common.collect.ImmutableList;
import de.benshu.cofi.common.Fqn;
import de.benshu.cofi.types.Variance;
import de.benshu.cofi.types.impl.ProperTypeMixin;
import de.benshu.cofi.types.impl.TypeConstructorMixin;
import de.benshu.cofi.types.impl.TypeM... | true |
2f1d8d030e09432e35f8952944e26db25d00165e | Java | chenyu429309/cxf | /RetestSystem/src/com/pegatron/pojo/RateData.java | UTF-8 | 2,388 | 2.328125 | 2 | [] | no_license | package com.pegatron.pojo;
import java.io.Serializable;
import java.util.Date;
public class RateData implements Serializable{
public final static String SHIFT_D="D";
public final static String SHIFT_N="N";
public final static String SHIFT_HOUR="HOUR";
private static final long serialVersionUID = 45193556384548699... | true |
e5271bf0ec2aadf097a8cae3f6a1dbe0c937dd4b | Java | wangxy1994/mydevkit | /exoskeleton/src/main/java/com/wangxy/exoskeleton/risk/calvar/HistoricalCalVaR.java | UTF-8 | 1,899 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /********************************************
* 文件名称: HistoricalCalVaR.java
* 系统名称: 外汇资金风险管理
* 模块名称: var计算
* 软件版权:
* 功能说明: 历史模拟法var计算处理类
* 系统版本: 2.0.0.1
* 开发人员: daijy
* 开发时间:
* 审核人员:
* 相关文档:
* 修改记录: 修改日期 修改人员 修改说明
* 20190125 daijy 使用历史法的mVaR计算
* 20190314 daijy 金额按目标币种进行四舍... | true |
fab971f86166598e713ef809338f94aff03f666b | Java | ctabeckey/pricingcalculator | /src/main/java/org/nanocontext/pricingcalculator/model/StockKeepingUnit.java | UTF-8 | 2,893 | 3.203125 | 3 | [
"MIT"
] | permissive | package org.nanocontext.pricingcalculator.model;
import java.math.BigDecimal;
import java.util.Objects;
/**
*
*/
public class StockKeepingUnit implements Comparable<StockKeepingUnit> {
/** the identifier is the SKU number */
private final String identifier;
/** description is a human readable descriptio... | true |
e28853702663fc0add3612fc130e83bf8bdac407 | Java | GleidsonFerSanP/dbc-1 | /api/src/main/java/br/com/dbccompany/api/resource/response/v1/ScheduleResponse.java | UTF-8 | 623 | 1.914063 | 2 | [] | no_license | package br.com.dbccompany.api.resource.response.v1;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.hateoas.RepresentationModel;
import java.util.Date;
@Data
@AllArg... | true |
869c62936417eb7a4a979a42ca8eb63768d386ad | Java | avincze73/its-medhub-server | /ITSServiceInterface/src/main/java/casemodule/dto/CaseDataDTO.java | UTF-8 | 6,680 | 2.078125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package casemodule.dto;
import base.BaseDTO;
import common.exception.ConstraintException;
import java.util.HashSet;
import java.util.List;
/**
*
* @author vincze.attila
*/
public class CaseDataDTO extends BaseDTO {
... | true |
63195684977cb06585798ba9119c0ca459243b03 | Java | alexandr-suslenko/kitchen-staff | /components/Heater.java | UTF-8 | 359 | 3.25 | 3 | [] | no_license | package components;
public class Heater {
private int power = 0;
private boolean isOn = false;
public Heater(int power){
this.power = power;
isOn = false;
}
public int powerToHeatTransform(Power power){
isOn = true;
return power.getPower() < this.power ? power.getPower() : this.power;
}
public b... | true |
eb3e46431bb02f1197231667ad774360f8949d94 | Java | Ermintar/iconcerto | /integration-tests/tests/src/test/java/iconcerto/integration/tests/AbstractIConcertoIntegrationTest.java | UTF-8 | 2,789 | 2.03125 | 2 | [] | no_license | package iconcerto.integration.tests;
import java.util.ResourceBundle;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
import org.osgi.framework.Constants;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.Resource;
import org.springframework.osgi.test.AbstractC... | true |
c5b382c1d1808558f8372640872a19c828662e9c | Java | berlinbrown/ainotebook | /ainotebook/pinobot_test/src/org/berlin/pino/test/functional/teeter/TeeterWindowTest.java | UTF-8 | 1,362 | 2.734375 | 3 | [] | no_license | package org.berlin.pino.test.functional.teeter;
import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.Date;
import javax.swing.JFrame;
import org.berlin.pino.win.PinoWindowBuilder;
import org.berlin.pino.win.base.AbstractWindowBuilder;
import org.b... | true |
4d9c0dc73ff47e68ae769b27b4f91bef3c97b360 | Java | a569329637/java-web-integration | /aop-test/src/main/java/com/souche/aop/advice/GreetAfterAdvice.java | UTF-8 | 966 | 2.78125 | 3 | [] | no_license | package com.souche.aop.advice;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.framework.ProxyFactory;
import java.lang.reflect.Method;
/**
* @author guishangquan
* @Description
* @Package com.souche.aop.advice
* @date 17/4/14
**/
public class GreetAfterAdvice implements Afte... | true |
03b43911f2710a48789b281696508d0fe7571898 | Java | nanodev15/managmut | /src/nehemie_mutuelle/db2sql.java | UTF-8 | 14,512 | 2.4375 | 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 nehemie_mutuelle;
/**
*
* @author arnowod
*/
/**
* Copyright Isocra Ltd 2004
* You can use, modify and freely distribute ... | true |