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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e3666dd6141b428555c12334145efc0831e28995 | Java | ma1uta/jeon | /client-api/src/main/java/io/github/ma1uta/matrix/client/model/auth/ThirdpartyIdentifier.java | UTF-8 | 1,761 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright Anatoliy Sablin tolya@sablin.xyz
*
* 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 l... | true |
68e3449ba85d8349287e5a866fc89bdddb3abda1 | Java | sunseter/material-components-android | /lib/java/com/google/android/material/transition/MaterialTransitionSet.java | UTF-8 | 2,295 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 The Android Open Source Project
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
142f0a201bb93b36abab5f953d291b1dd62aa2fd | Java | rmahesuni123/ConnsAutomation | /test-automation-library/src/main/java/com/etouch/taf/core/config/CurrentDrivers.java | UTF-8 | 5,637 | 2.96875 | 3 | [] | no_license | package com.etouch.taf.core.config;
import java.util.ArrayList;
import java.util.HashMap;
import org.apache.commons.logging.Log;
import com.etouch.taf.util.LogUtil;
/**
* Will maintain a list of active and not closed browsers for each test bed.
* In case, if a test case didn't pass, this list of browser will be c... | true |
d3dee82c912f95f6b8221b07eb2da7ecdf61db6d | Java | Shahid-Eqamuddin/java-graphql-demo-app | /src/main/java/org/demo/graphql/vakgroepapi/repository/SessieVakgroepRepository.java | UTF-8 | 467 | 1.859375 | 2 | [] | no_license | package org.demo.graphql.vakgroepapi.repository;
import java.util.List;
import org.demo.graphql.vakgroepapi.model.SessieVakgroep;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface SessieVakgroepRepository extends JpaRepository... | true |
0ab42751cf53c0d37a6c86d1fe6c3bc206880038 | Java | mcarov/plane-spotting | /src/main/java/ru/itpark/planespotting/controller/ErrorController.java | UTF-8 | 5,754 | 2.03125 | 2 | [] | no_license | package ru.itpark.planespotting.controller;
import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import o... | true |
c362f36153960a48289cf75c0befbc17f9428914 | Java | immregistries/mqe-validator | /src/main/java/org/immregistries/mqe/validator/engine/rules/patient/PatientEthnicityIsValid.java | UTF-8 | 1,942 | 2.015625 | 2 | [] | no_license | package org.immregistries.mqe.validator.engine.rules.patient;
import java.util.ArrayList;
import java.util.List;
import org.immregistries.mqe.validator.detection.Detection;
import org.immregistries.mqe.validator.detection.ImplementationDetail;
import org.immregistries.mqe.validator.detection.ValidationReport;
import o... | true |
2df2d5b3936b14760c101bc53c95d79b8a195425 | Java | shanfeng929/oim-qq | /oim-fx/oim-fx/src/test/java/com/oim/test/ui/UserHeadUploadFrameTest.java | UTF-8 | 1,232 | 2.296875 | 2 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.oim.test.ui;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import com.oim.ui.fx.classic... | true |
2e475ef9913c8678ec551e62339300bcfa28d1ed | Java | DKuperN/springStudy | /src/main/java/den/teststudy/junit/Calc.java | UTF-8 | 223 | 2.546875 | 3 | [] | no_license | package den.teststudy.junit;
/**
* Created by Dzianis_Kupryianchyk on 23-Mar-16.
*/
class Calc {
int getSum(int x, int y){
return x+y;
}
int getSubtraction(int x, int y){
return x-y;
}
}
| true |
5ffe83b9803b416669e2fa08e00877da6ce0bc25 | Java | Jimut123/code-backup | /java_backup/my java/purna/ins.java | UTF-8 | 401 | 2.953125 | 3 | [
"MIT"
] | permissive |
import java.io.*;
class ins
{
public static void main(String args[])throws IOException
{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
String s,w="";
char c;
int l=0,i;
System.out.println("enter name");
s=br.readLine();
l=s.length();
for(i=0;i<l;i++)
{
c=s.charAt(i)... | true |
2be2f85242f0f99fc8eae8911cc5bf1e6ee352fa | Java | mariusmaxetselina/L3SPIGameProject | /DungeonRPG/src/rpg/Modele/Combat/HeroFactory.java | UTF-8 | 461 | 2.34375 | 2 | [] | no_license | package rpg.Modele.Combat;
import rpg.Modele.Stats;
public class HeroFactory {
public static Hero createHero1(String name){
return new Hero(name, new Stats(0, 0, 0, 0, 0, 0, 0, 0, 0));
}
public static Hero createHero2(String name){
return new Hero(name, new Stats(0, 0, 0, 0, 0, 0, 0, 0,... | true |
152c547c66970ba0b4cbefdec42e0b41a19ef660 | Java | mbero/kafka_rest_consumer_service | /src/main/java/com/webservice/database/TweetsDBService.java | UTF-8 | 3,856 | 3.234375 | 3 | [] | no_license | package com.webservice.database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.webservice.model.Tweet;
/**
* Class which provides methods which ... | true |
05f1eb6743da74a2a14b35af025cbaa2bf089371 | Java | WangYouzheng1994/hyjf | /hyjf-app/src/main/java/com/hyjf/api/operationaldata/InvestorSexAgeDataVO.java | UTF-8 | 1,563 | 2.21875 | 2 | [] | no_license | package com.hyjf.api.operationaldata;
import java.util.ArrayList;
import java.util.List;
/**
* @author xiasq
* @version InvestorSexAgeDataVO, v0.1 2018/1/16 17:55
*/
public class InvestorSexAgeDataVO {
// 出借人男人占比(小数点后两位)
private String investorRegionMenRate;
// 出借人女人占比(小数点后两位)
private String investorRegionWoM... | true |
2c2f31e042fa559684d0ab07d3735c8a3d407dfe | Java | marinelpuia/Management-And-Accounting | /src/com/marinel/ProductDialogBulgarianController.java | UTF-8 | 16,923 | 2.8125 | 3 | [] | no_license | package com.marinel;
import com.marinel.datamodel.Product;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.DatePicker;
import javafx.scene.control.TextField;
import java.text.DecimalFormat;
import java.time.format.DateTimeFormatter;
public class ProductDialogBulgarianControlle... | true |
95001a0d414bcd838a51efb65b1affe9b9e7d379 | Java | i-boy/YTDT_BD | /BinhDuong/YTDTWeb_O/src/com/iesvn/yte/dieutri/duocpham/action/CapNhatSoLieuKiemKeThucTeAction.java | UTF-8 | 7,470 | 1.65625 | 2 | [] | no_license | package com.iesvn.yte.dieutri.duocpham.action;
import static org.jboss.seam.ScopeType.CONVERSATION;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;
import org.apache.poi.hssf.usermo... | true |
ec1a815791f009c670c220f64a00704148b33052 | Java | greedyRoach/StrategyPattern | /src/MicroDuckSimulator.java | UTF-8 | 480 | 2.609375 | 3 | [] | no_license | import ducks.Duck;
import ducks.RubberDuck;
import ducks.behaviors.MallardDuck;
import ducks.behaviors.Quack;
public class MicroDuckSimulator {
public static void main(String ... args) {
Duck mallardDuck = new MallardDuck();
mallardDuck.fly();
mallardDuck.quack();
Duck rubberDuck =... | true |
576889a3b40ccc99c04db441c3bd6f214d88d088 | Java | fidusio/zoxweb-core | /src/test/java/org/zoxweb/server/security/SecureRandomTest.java | UTF-8 | 1,216 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012-2017 ZoxWeb.com 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 a... | true |
a7b29e0976208ad693d164e6df79cbe3c1adec05 | Java | IESMontecillosMarcos/DI_Tema1 | /DI_432_AnonymousInnerClass/src/di_432_anonymousinnerclass/DI_432_AnonymousInnerClass.java | UTF-8 | 3,063 | 3.328125 | 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.
Autor: Marcos Gonzalez Leon
*/
package di_432_anonymousinnerclass;
import javafx.application.Application;
import javafx.event.... | true |
d4eb989f8348f1a545fb3b04a627b5e7601efd86 | Java | tachikawaYutaka/simple-wiki | /src/test/java/com/wakabatimes/simplewiki/view/start/StartControllerTest.java | UTF-8 | 7,069 | 1.609375 | 2 | [] | no_license | package com.wakabatimes.simplewiki.view.start;
import com.wakabatimes.simplewiki.SimpleWikiApplication;
import com.wakabatimes.simplewiki.WithMockCustomUser;
import com.wakabatimes.simplewiki.app.domain.model.body.Body;
import com.wakabatimes.simplewiki.app.domain.model.body.BodyFactory;
import com.wakabatimes.simplew... | true |
05a938948b2223db02d3507b67ce36e95596d2b7 | Java | douglashu/hq-forecast | /diego/gateway/src/main/java/com/hq/diego/gateway/service/core/route/chain/AppointChannelRouteChain.java | UTF-8 | 1,060 | 2.234375 | 2 | [] | no_license | package com.hq.diego.gateway.service.core.route.chain;
import com.hq.diego.model.req.OrderTradeReq;
import com.hq.diego.repository.model.generate.TRudyChannelRoute;
import com.hq.diego.repository.model.generate.TRudyMchChannel;
import org.springframework.util.StringUtils;
import java.util.ArrayList;
import java.util.L... | true |
a6293ea7881826d715f8a7a49e791e82300e18d0 | Java | lyx5216288/AGI_master | /LTETest/app/src/main/java/sino/com/ltetest/Constant/constant.java | UTF-8 | 514 | 1.703125 | 2 | [] | no_license | package sino.com.ltetest.Constant;
import sino.com.ltetest.A2P_MSG.MSG.MSG_SYS_PARA;
import sino.com.ltetest.A2P_MSG.MSG.RECV_REDIRECT_R9;
import sino.com.ltetest.A2P_MSG.MSG.RECV_RF_PARA;
import sino.com.ltetest.A2P_MSG.MSG.RECV_SYS_OPTION;
/**
* Created by 刘洋旭 on 2016/8/8.
*/
public class constant {
public s... | true |
90abda073a74792068f6e8aefb2cf0329fef57a3 | Java | darwinCarrillo/SchoolWork | /CS2710/lab5/ZipsReader.java | UTF-8 | 1,011 | 3.015625 | 3 | [] | no_license | import java.io.File;
import java.io.PrintWriter;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class ZipsReader
{
public static void main(String[] args)throws FileNotFoundException
{
File inFile = new File("ziptable.txt");
File outFile = new File("ziptablemod.txt");
Pri... | true |
bb9c94466fabce479e0ed612bd7de886133e8c65 | Java | shufengwu/CodeStyleTest | /src/com/delta/data_structure/sort/SortTest.java | UTF-8 | 3,020 | 3.734375 | 4 | [] | no_license | package com.delta.data_structure.sort;
public class SortTest {
static int[] oldArr = new int[]{2, 8, 4, 6, 0, 3, 9, 1, 5, 7};
public static void main(String[] args) {
quickSort(oldArr);
for (int i = 0; i < oldArr.length; i++) {
System.out.println(oldArr[i]);
}
}
/... | true |
5a1093ac7d6d76b8c8ce337b11d7f0aa7e0e8336 | Java | QuincySx/CustomView | /app/src/main/java/com/a21vianet/sample/customview/scoreview/ScoreViewActivity.java | UTF-8 | 743 | 1.96875 | 2 | [] | no_license | package com.a21vianet.sample.customview.scoreview;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import com.a21vianet.sample.customview.R;
public class ScoreViewActivity extends AppCompatActivity {
private ScoreView mScoreView;
@Override
protected v... | true |
171e9f9338108a061eb29570c324ab2d6bf07f9e | Java | Myk18/Wv2app01 | /app/src/main/java/ua/cn/sandi/wv2app01/MainActivity.java | UTF-8 | 4,368 | 2.234375 | 2 | [] | no_license | package ua.cn.sandi.wv2app01;
import android.app.Activity;
import android.app.Instrumentation;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.EditText;
import java.io.File;
i... | true |
b571af53f047cfc893d402064306769127df03a0 | Java | wasartin/Scheduley_COMS319 | /MavenProject/scheduleyTest/src/main/java/main/TreeController.java | UTF-8 | 4,774 | 2.75 | 3 | [] | no_license | package main;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.ResourceBundle;
import javafx.collections.ListChangeListener;
import javafx.collections.MapChangeListener;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
... | true |
a315abd04230a1db1a27d879096768b1e905b37a | Java | jitzerttok51/chip8-emu | /src/test/java/TestCPU.java | UTF-8 | 12,995 | 2.515625 | 3 | [] | no_license | import org.example.core.*;
import org.example.core.CPUBuilder;
import org.example.core.CPUv2;
import org.junit.jupiter.api.Test;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Function;
import static org.junit.jupiter.api.Assertions.*;
public class TestCPU {
... | true |
20122345ed5235442fedb8b38c7dc6a21696c119 | Java | gpte-cloud-native-advanced/incident-finder-service-reactive | /src/test/java/com/redhat/emergency/response/incident/finder/IncidentResourceTest.java | UTF-8 | 5,860 | 1.960938 | 2 | [] | no_license | package com.redhat.emergency.response.incident.finder;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Moc... | true |
faf00c266c94f8c5bb7f1887ae879285c8eb8b11 | Java | xw1900/study | /summary/src/main/java/com/xw/study/thread/multi005/_002/UseThreadPoolExecutor2.java | UTF-8 | 1,922 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | package com.xw.study.thread.multi005._002;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* 含拒绝策略的队列
* @author TTX034
... | true |
151cb3ef94d05c162ebeb87fbeef5a3a38668614 | Java | Hongzhe/DBaseReader | /src/main/java/reader/DBaseResultSetMetaData.java | UTF-8 | 1,672 | 2.578125 | 3 | [] | no_license | package reader;
import bean.DBaseHeader;
import java.io.Reader;
/**
* Created by Hongzhe on 3/29/2017.
*/
public class DBaseResultSetMetaData {
private DBaseHeader header;
public DBaseResultSetMetaData(DBaseHeader headaer) {
this.header = header;
}
public int getColumnCount() {
r... | true |
f6c865251a5293de1ffd72fbbc7509629ee2f8d9 | Java | adsw-upm/ProblemasConcurrencia | /src/es/upm/dit/adsw/GestorMagnitudFisica/enteroAleatorio.java | UTF-8 | 320 | 2.1875 | 2 | [] | no_license | package es.upm.dit.adsw.GestorMagnitudFisica;
/**
* @author Alejandro Alonso
* @since 20100628
* Recopilado de solución de examen.
*/
public class enteroAleatorio {
private java.util.Random generador = new java.util.Random(System.currentTimeMillis());
public int otroEntero() {
return generador.nextInt()... | true |
bbdaf4e43b797ec3a5eb3afca35e224ff578bd8c | Java | TRZ-EI/serial | /src/main/java/trzpoc/comunication/SerialCommunicatorLocalClientForTest.java | UTF-8 | 13,858 | 2.625 | 3 | [] | no_license | package trzpoc.comunication;
import com.fazecast.jSerialComm.SerialPort;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import trzpoc.crc.CRC16CCITT;
import trzpoc.crc.CRC32Calculator;
import trzpoc.crc.CRCCalculator;
import trzpoc.crc.Crc16CcittKermit;
import trzpoc.u... | true |
b3ee0edb6359d2c60a6b655f3dc2f390aacb3ea9 | Java | emcry666/project-scape | /rs3 files/Server/src/com/rs/tools/Test.java | WINDOWS-1252 | 17,102 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.rs.tools;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.rs.cache.Cache;
import com.rs.cache.loaders.ClientScr... | true |
1e9f7d0b5d7d256bb4dbc8ea37c48eda0d5987ee | Java | KobeSpiral/ToDoTeamB | /src/main/java/jp/kobespiral/todo/dto/UserDto.java | UTF-8 | 645 | 2.359375 | 2 | [] | no_license | package jp.kobespiral.todo.dto;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import jp.kobespiral.todo.entitiy.User;
import lombok.Data;
@Data
public class UserDto {
private Long id; // key
@Pattern(regexp = "[0-9a-zA-Z]+")
private Stri... | true |
305d00319d17ebb9f7e894ade5e7c9bee88d4726 | Java | Desto333/FreeIT | /lesson_09/Task28_met/Arr.java | UTF-8 | 285 | 2.71875 | 3 | [] | no_license | package lesson_09.Task28_met;
import java.util.ArrayList;
public class Arr<T> {
private ArrayList<T> arr = new ArrayList<>();
public T getElement(int index) {
return arr.get(index);
}
public void addElement(T element) {
arr.add(element);
}
}
| true |
931cfa445cdfec6e09130cf5eae665f067c6f755 | Java | SEnikeeva/pongclient | /pongclient/src/main/java/helper/Constants.java | UTF-8 | 265 | 1.640625 | 2 | [] | no_license | package helper;
public class Constants {
public static final int WIDTH = 800;
public static final int HEIGHT = 600;
public static final int PLAYER_WIDTH = 15;
public static final int PLAYER_HEIGHT = 100;
public static final int BALL_R = 15;
}
| true |
30befcbde4b2ec19115a3f708816f5fc77481277 | Java | boudake/ForeachFunction | /src/main/java/Accumulators.java | UTF-8 | 1,418 | 2.734375 | 3 | [] | no_license | import org.apache.log4j.Logger;
import org.apache.spark.api.java.function.ForeachFunction;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SparkSession;
import org.apache.spark.util.LongAccumulator;
import java.io.Serializable;
class Accumulators implements Serializab... | true |
c7e0af1e56f0843cb5883c275a7517bf4a257422 | Java | zhouyulei/SpringBootRedis | /server/src/main/java/com/boot/debug/redis/server/service/StringService.java | UTF-8 | 2,477 | 2.40625 | 2 | [] | no_license | package com.boot.debug.redis.server.service;/**
* Created by Administrator on 2019/10/29.
*/
import cn.hutool.core.util.StrUtil;
import com.boot.debug.redis.model.entity.Item;
import com.boot.debug.redis.model.mapper.ItemMapper;
import com.boot.debug.redis.server.redis.StringRedisService;
import com.fasterxm... | true |
3fca9b8ac1598202976ee5a1c42bc77979410482 | Java | tintinap/MacWarGame | /src/com/macwargame/HitAnim.java | UTF-8 | 1,900 | 2.609375 | 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 com.macwargame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
*
* @author User
*/
public cl... | true |
d4a7110fbf02fcf0a0f1dccc436c767de0fb9f79 | Java | wssongwenming/TargetScoreDisplay-master | /display/src/main/java/com/huasun/display/launcher/LauncherScrollDelegate.java | UTF-8 | 4,454 | 1.945313 | 2 | [] | no_license | package com.huasun.display.launcher;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.View;
import com.bigkoo.convenientbanner.ConvenientBanner;
imp... | true |
43d3f9beb21c3ea1e8c83d181b3c8e05c1348e4d | Java | ulysseElise/TP_WE17-08 | /TP_commerce/src/com/intiformation/dao/BoutiqueDAOImpl.java | ISO-8859-1 | 2,622 | 2.546875 | 3 | [] | no_license | package com.intiformation.dao;
import java.util.List;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.int... | true |
6de15f044bc627bb7f5c316dd17eb5e79bc73c7b | Java | VB6Hobbyst7/vrcg | /v2429/Objects/shell/src/xevolution/vrcg/devdemov2400/structchecklistitems_subs_0.java | UTF-8 | 63,544 | 1.625 | 2 | [] | no_license | package xevolution.vrcg.devdemov2400;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;
public class structchecklistitems_subs_0 {
public static RemoteObject _butactions_click(RemoteObject __ref) throws Exception{
try {
Debug.PushSubsStack("butActions_Click (structchecklistitems) ","structcheckli... | true |
50c6074117d627fa033e574927d6d55e78599d4d | Java | ShakhSaidov/Coffee-Shop-Simulator | /Code/CustomerQueue.java | UTF-8 | 1,665 | 4.1875 | 4 | [] | no_license | /**
* CustomerQueue class that makes the queue using nodes and handles it in a FIFO basis.
* @author Shakh Saidov
*/
public class CustomerQueue <T> implements Queue <T>{
private Node <T> front;
private Node <T> back;
private int count;
public CustomerQueue() {
front = null;
back = nu... | true |
57aeed57cf21609ec559c634e0fe7477bba988d4 | Java | zhongxingyu/Seer | /Diff-Raw-Data/24/24_4195c73c7b28986924a736d9ac6946b4bf96f20a/Config/24_4195c73c7b28986924a736d9ac6946b4bf96f20a_Config_t.java | UTF-8 | 5,281 | 2.21875 | 2 | [] | no_license | package tachyon;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.log4j.Logger;
/**
* All constants in the system. This should only be visible to the System. Should not be visible to
* user code.
*
* @author haoyuan
*/
public class Config {
public static final boolean IS... | true |
d77a34c1fc09a6f9eb4165345e2d1fa40727acc0 | Java | c-hydrion/Life_Game | /src/com/peng/MyThread.java | UTF-8 | 706 | 2.53125 | 3 | [] | no_license | package com.peng;
public class MyThread extends Thread {
// MainFrame m=new MainFrame();
MyPanel panel_map;
boolean running=false;
float time=200;
public MyThread(MyPanel panel) {
panel_map = panel;
}
@Override
public void run(){
Logic logic = new Logic();
wh... | true |
be3a0eadf13074b2acd977a9aa69d5da366fed48 | Java | Seehea16/Q4_Programm | /src/model/PersonEnum.java | UTF-8 | 359 | 2.96875 | 3 | [] | no_license | package model;
/**
* ENUM PersonEnum.
*
* @author Herbert Seewann
* @version 3.0
*/
public enum PersonEnum {
VORNAME("Vorname"),
NACHNAME("Nachname"),
ALTER("Alter");
private String name;
private PersonEnum(String name) {
this.name = name;
}
public St... | true |
f62cdf73d9d08e9c8e8a42a2110241587a39cd77 | Java | Imred/elasticsearch | /core/src/main/java/org/elasticsearch/index/mapper/Uid.java | UTF-8 | 5,377 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | true |
4fe7b8891e6d6e1bccb09a06cd77925d0664c5bc | Java | cseini/BankDB | /src/domain/MinusAccountBean.java | UTF-8 | 383 | 2.3125 | 2 | [] | no_license | package domain;
public class MinusAccountBean extends AccountBean{
public final static String ACCOUNT_TYPE = "마이너스통장";
public int limit;
public void setAccountType() {
this.accountType=ACCOUNT_TYPE;
}
public void setLimit(int limit) {
this.limit=limit;
}
public String getAccoutType() {
return accountType;... | true |
c4ff9d8abaa810ade1be93f784942e4b34e3c945 | Java | FreeSivan/Rorschach | /src/main/java/sivan/yue/nlp/parse/BaseParse.java | GB18030 | 1,140 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package sivan.yue.nlp.parse;
import sivan.yue.nlp.common.tools.CConst;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
* Created by xiwen.yxw on 2017/4/10.
*/
public abstract class BaseParse implements IParse{
protected int stateNum;
... | true |
43481fe0c9452e43b010a8c46a0fe8f1596bffcf | Java | daniel-gc/Proyecto_comunication | /src/main/java/mx/pliis/comunicaciones/persistencia/hibernate/entity/PeticionDelegadoEntity.java | UTF-8 | 2,180 | 2.140625 | 2 | [] | no_license | package mx.pliis.comunicaciones.persistencia.hibernate.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* The persistent class for the peticion_delegado database table.
*
*/
@Entity
@Table(name="peticion_delegado")
@NamedQuery(name="PeticionDelegadoEntity.findAll", ... | true |
df65bd1aeb1b94063e9376bfa096a464fb0cc341 | Java | genepi/genepi-libs | /genepi-hadoop/src/genepi/hadoop/log/LogCollector.java | UTF-8 | 711 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package genepi.hadoop.log;
import genepi.hadoop.HdfsUtil;
import java.io.IOException;
import java.util.List;
import java.util.Vector;
import org.apache.hadoop.mapreduce.Job;
public class LogCollector {
private Job job;
private String folder;
public static String LOG_DIRECTORY = "mylogs";
public LogCollector(... | true |
5a0741d0c0d5fee5fa795457b88b46600e42be3f | Java | frle10/java-course-homeworks | /hw08-0036506288/src/main/java/searching/demo/SlagalicaDemo.java | UTF-8 | 1,529 | 3.390625 | 3 | [] | no_license | package searching.demo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import searching.algorithms.Node;
import searching.algorithms.SearchUtil;
import searching.slagalica.KonfiguracijaSlagalice;
import searching.slagalica.Slagalica;
/**
* A simple demo program that show-cases the u... | true |
08a4e93dc05fa083889894569ff218f9881f4bc1 | Java | ksingha161/selenium-project | /src/main/java/utils/BrowserUtils.java | UTF-8 | 1,826 | 2.328125 | 2 | [] | no_license | package utils;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.se... | true |
df49816f9bb11879b2351dc3f43d2013c385ab6f | Java | fatihsolakoglu/Gr1TahsilatUyg | /src/main/java/tr/gov/ptt/gr1tahsilatuyg/service/TahsilatBorcService.java | UTF-8 | 5,429 | 1.773438 | 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 tr.gov.ptt.gr1tahsilatuyg.service;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;... | true |
f34fb21743b7c200d761ee739cb12ef5e34046b8 | Java | Kerbz-dev/FLS-Individuel2 | /src/logic/opretLaan.java | UTF-8 | 723 | 1.976563 | 2 | [] | no_license | package logic;
import db.OpretLaanDB;
public class opretLaan {
OpretLaanDB oprLaanDB = new OpretLaanDB();
public void CreateLaan(long tlf, int bilid, int saelgerID, int udbetaling, int laanleangde, boolean overstigergraense, double rente, double mdlYdelse, double samletPris, int bilinventar) {
oprLaanDB... | true |
c347f07663fc1c45ad9805224331f4bc7a5f24f3 | Java | mjgordon/fluxcadd | /src/render_sdf/sdf/SDFBoolDifference.java | UTF-8 | 1,152 | 2.328125 | 2 | [] | no_license | package render_sdf.sdf;
import org.joml.Vector3d;
import geometry.GeometryDatabase;
import render_sdf.animation.Animated;
import render_sdf.material.Material;
public class SDFBoolDifference extends SDF {
public SDFBoolDifference(SDF a, SDF b) {
this.childA = a;
this.childB = b;
displayName = "BoolDiffer... | true |
0ee4679288004df7f29049dabd9af5ab515fcf23 | Java | poshjosh/bcbase | /src/main/java/com/bc/html/HtmlPageGen.java | UTF-8 | 2,447 | 2.8125 | 3 | [] | no_license | package com.bc.html;
public class HtmlPageGen extends HtmlGen {
private String doctype = null;
private String contenttype = null;
public HtmlPageGen() {
this(null, null);
}
private HtmlPageGen(String docType, String contentType) {
if(docType == null) {
... | true |
1f4245097affe0d30a835a034085d78169fa2025 | Java | umjammer/vavi-apps-mona-bdj | /src/main/java/vavi/util/bdj/Util.java | UTF-8 | 2,279 | 2.203125 | 2 | [] | no_license | /*
* Copyright (c) 2008 by Naohide Sano, All rights reserved.
*
* Programmed by Naohide Sano
*/
package vavi.util.bdj;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util... | true |
42048952b58c9215bf59d2049da83f03050c5381 | Java | Manikanta451/Extended-Learning-Opportunities-and-Programs | /src/test/java/com/ep/pageobjects/StudentFormPageObjects.java | UTF-8 | 14,498 | 1.867188 | 2 | [] | no_license | package com.ep.pageobjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import com.ep.pagefactory.CommonBase;
public class StudentFormPageObjects extends CommonBase{
protected StudentFormP... | true |
2f47ef3ca091b1ed18eb857618a5e4bb1eb4d09f | Java | KirillShakhov/WebLab4_91238 | /Spring(BackEnd)/src/main/java/app/controller/UserController.java | UTF-8 | 3,581 | 2.453125 | 2 | [] | no_license | package app.controller;
import app.auth.TokenProvider;
import app.data.ResponseMessage;
import app.data.UserCredentials;
import app.entities.User;
import app.services.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.Respon... | true |
cc953f5a7fac1ec5c3f46ee7eaca1b8785bd8902 | Java | GuoGuang/sonarqube_java_rule_custom | /src/main/java/com/madaoo/sonarqube/checks/flowcontrol/MultilineBlocksCurlyCheck.java | UTF-8 | 2,985 | 2.75 | 3 | [
"MIT"
] | permissive | package com.madaoo.sonarqube.checks.flowcontrol;
import org.sonar.check.Rule;
import org.sonar.plugins.java.api.JavaFileScanner;
import org.sonar.plugins.java.api.JavaFileScannerContext;
import org.sonar.plugins.java.api.tree.*;
/**
* 在if/else/for/while/do语句中,代码块应该写在花括号里,否则可能会影响代码执行
*/
@Rule(key = "MultilineBlocksC... | true |
eb8d93757d675e44a2ec4dd27456585b4080965c | Java | dellmdq/javaFunctionalTuto | /src/main/java/imperative/Main.java | UTF-8 | 2,164 | 3.984375 | 4 | [] | no_license | package imperative;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
List<Person> personList = List.of(
new Person("Erik", Gender.MALE),
new Person("Pepe",Gender.MALE),
... | true |
e89e113a3c51095f1cfdec8d798223f4c5ea156d | Java | java-july-2021/CamarenG_Assignments | /02-java-oop/06-object-master-p2/objectMaster2/src/HumanTest.java | UTF-8 | 438 | 2.609375 | 3 | [] | no_license | public class HumanTest {
public static void main(String[] args) {
Human wiz = new Human();
Human ninja = new Human();
Samurai sm = new Samurai();
Samurai sm1 = new Samurai();
System.out.println(wiz.getHealth());
System.out.println(sm.attack(wiz));
... | true |
73271b0d7de4b664c43c164ab6f8791490628e1a | Java | krnets/codewars-practice | /7kyu/The PaperFold sequence/PaperFoldTest.java | UTF-8 | 438 | 2.546875 | 3 | [] | no_license | import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.runners.JUnit4;
public class PaperFoldTest {
@Test
public void testWithTwenty() {
PaperFold p = new PaperFold();
int testArray[] = {1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1};
for (in... | true |
dcd27dd1c01308d08a9d35034ac2ef622dc39367 | Java | pasenchenko/WeatherApp | /app/src/main/java/space/flogiston/weather/activities/MainActivity.java | UTF-8 | 4,388 | 2.1875 | 2 | [] | no_license | package space.flogiston.weather.activities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcomp... | true |
dd238a000c67556bc9a83062bcdeba5fbfc98a7b | Java | Calculus-Master/DevourGaming | /src/main/java/devourgaming/object/tool/ToolPick.java | UTF-8 | 545 | 2.109375 | 2 | [] | no_license | package devourgaming.object.tool;
import devourgaming.Main;
import devourgaming.init.MaterialInit;
import devourgaming.util.Interface.IModel;
import net.minecraft.item.ItemPickaxe;
public class ToolPick extends ItemPickaxe implements IModel {
public ToolPick(String name, ToolMaterial material) {
super(material);
... | true |
9f442a50a2c3a6bf4933d21715f8c2adbf1161c8 | Java | deesebc/PostExamples | /ApacheCamelExamples/ApacheCamelRestELK/src/main/java/com/example/home/ApacheCamelRestExample/router/BookSQLRouter.java | UTF-8 | 2,163 | 2.3125 | 2 | [] | no_license | package com.example.home.ApacheCamelRestExample.router;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.rest.RestBindingMode;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import com.example.home.ApacheCamelRe... | true |
35243d5f5e5817c8c98500ce60baf21857a76147 | Java | NCIP/digital-model-repository | /cmef-condor/test/org/cvit/cabig/dmr/cmef/condor/StateChangeTester.java | UTF-8 | 1,328 | 2.1875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | /*L
* Copyright The General Hospital Corporation d/b/a Massachusetts General Hospital
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/digital-model-repository/LICENSE.txt for details.
*/
package org.cvit.cabig.dmr.cmef.condor;
import org.cvit.cabig.dmr.cmef.CmefServiceEx... | true |
786b8681542bd790db4033dc07944ee75f7fcd8f | Java | Humbertzhang/TravelManager | /src/main/java/com/example/travelmanager/response/travel/DetailTravelApplication.java | UTF-8 | 1,454 | 1.890625 | 2 | [
"MIT"
] | permissive | package com.example.travelmanager.response.travel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
public class DetailTravelApplication {
@Getter @Setter
private String applicantName;
@Getter @Setter
private Integer id;
@Ge... | true |
6ad27d2a68818ac39c8fc4c5e9084b763e12a287 | Java | AgNO3/code | /fileshare/common/eu.agno3.fileshare.api/src/main/java/eu/agno3/fileshare/vfs/VFSContentHandle.java | UTF-8 | 1,272 | 2.359375 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* © 2017 AgNO3 Gmbh & Co. KG
* All right reserved.
*
* Created: Sep 27, 2017 by mbechler
*/
package eu.agno3.fileshare.vfs;
import java.io.IOException;
import java.io.OutputStream;
import eu.agno3.fileshare.exceptions.FileshareException;
/**
* @author mbechler
*
*/
public interface VFSContentHandle ex... | true |
2491a8d19aef560470563bd71d660781f285bbd5 | Java | McLeodMoores/starling | /projects/analytics/src/test/java/com/opengamma/analytics/financial/provider/calculator/blackstirfutures/UnderlyingMarketPriceSTIRFutureOptionCalculatorTest.java | UTF-8 | 4,496 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2019 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.analytics.financial.provider.calculator.blackstirfutures;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
import com.opengamma.analytics.financial.interestrate.dataset... | true |
13202763eed6c5157f96317351a123dd592bde1d | Java | ceebe5e3/Oleh_Chornyi_project_2 | /src/main/java/chornyi/conferences/web/command/moderator/DeleteConferenceCommand.java | UTF-8 | 1,537 | 2.09375 | 2 | [] | no_license | package chornyi.conferences.web.command.moderator;
import chornyi.conferences.web.Path;
import chornyi.conferences.web.command.Command;
import chornyi.conferences.web.service.ConferenceService;
import chornyi.conferences.web.utils.PaginationUtil;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
im... | true |
027aa66e327ab768467b53f650af80b9a896ea8f | Java | tigerliuwu/j2eeproject | /projectmanager/src/edu/pm/uc/risk/action/RiskDeleteAction.java | UTF-8 | 1,060 | 1.96875 | 2 | [] | no_license | /*
* Created on 2006-9-15
*
* Organization: BearingPoint Inc.
*/
package edu.pm.uc.risk.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.... | true |
428240b068fdc48032431dc4a3a7646b23d9e341 | Java | yastanotheruser/Ecosystem | /src/ecosystem/components/ToggleMenu.java | UTF-8 | 3,616 | 2.625 | 3 | [] | no_license | package ecosystem.components;
import ecosystem.event.MouseClickedListener;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import javax.swing.JPanel;
public class ToggleMenu {
private final TogglePanel[] menu;
private final JPanel[] views;
private final ArrayList<MenuListener>[] listeners;
... | true |
a411efec87ad41e8513532a82122f3638b24501c | Java | martineso/ReceiptGenerator | /src/store/tests/SellMethodTest.java | UTF-8 | 1,594 | 2.84375 | 3 | [
"CC0-1.0"
] | permissive | package store.tests;
import java.util.ArrayList;
import cashier.Cashier;
import receipt.product.Book;
import store.BookStore;
import store.exceptions.CashierNotFoundException;
import store.ui.main.ReceiptWindow;
public class SellMethodTest {
static Book b1 = new Book("Slaughterhouse 5", "Vonnegut", "Aurora", "20/07... | true |
8a50c89ac87f863d91038b60a81e000a2cb1b942 | Java | mylhyl/Android-CircleDialog | /circledialog/src/main/java/com/mylhyl/circledialog/view/AbsButton.java | UTF-8 | 10,959 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.mylhyl.circledialog.view;
import android.content.Context;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.mylhyl.circledialog.internal.CircleParams;
import co... | true |
74778a0ab8113884ba4e245c7b22c3aa3d4efe59 | Java | thiranja/ShowWiFiPassword | /WifiDetailMakerForO.java | UTF-8 | 6,195 | 2.5 | 2 | [] | no_license | package com.myapp.thiranja.showwifipassword;
import java.util.ArrayList;
class WifiDetailMakerForO {
private char[] fileChar;
private ArrayList<WifiDetail> data;
WifiDetailMakerForO(String fileStr, ArrayList<WifiDetail> data) {
this.data = data;
this.fileChar = fileStr.toCharArray();
... | true |
17d57822336545af8c14d8f07b29284c382ce035 | Java | arpangupta81/UCA | /BSTree.java | UTF-8 | 2,532 | 3.734375 | 4 | [] | no_license | package data_structures;
import java.util.Queue;
import java.util.LinkedList;
class NodeTree
{
int data;
NodeTree left;
NodeTree right;
NodeTree()
{
}
NodeTree(int a)
{
data = a;
left = null;
right = null;
}
}
class tree
{
//Queue a = new Queue();
NodeTree root;
tree(){
root = null;
}
void in... | true |
c0d05723cefb7b53b2458953930d8cd418baa746 | Java | chensanren/mobile-platform | /entry/src/main/java/org/shchen/mobileplatform/slice/HomeSlice.java | UTF-8 | 373 | 1.75 | 2 | [] | no_license | package org.shchen.mobileplatform.slice;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import org.shchen.mobileplatform.ResourceTable;
public class HomeSlice extends AbilitySlice {
@Override
protected void onStart(Intent intent) {
super.onStart(intent);
this.setUIC... | true |
8c6c3fa1fbe3ad973480ded025371710903c58b9 | Java | Singpa/ego_parent | /ego_commons/src/main/java/com/ego/commons/pojo/EgoResult.java | UTF-8 | 955 | 2.46875 | 2 | [] | no_license | package com.ego.commons.pojo;
import lombok.Data;
@Data
public class EgoResult {
// 页面200 成功,400、500 失败
private int status;
// 服务端向客户端发送的数据
private Object data;
// 服务端向客户端发送的消息
private String msg;
public static EgoResult ok(){
EgoResult er = new EgoResult();
er.setStatus(... | true |
d68fd2523c18e5182a7e6904740e8e2350ece96a | Java | nitin201187/amway | /custom/amway/amwaynotificationengine/src/org/amway/notification/engine/sns/SnsStringUtil.java | UTF-8 | 397 | 2.40625 | 2 | [] | no_license | package org.amway.notification.engine.sns;
public class SnsStringUtil
{
public static boolean isEmpty(final String s)
{
if (s == null)
{
return true;
}
if (s.length() < 1)
{
return true;
}
return false;
}
public static boolean isBlank(final String s)
{
if (isEmpty(s))
{
return true;... | true |
041ccf499d3090b5a3a824ff434d54693a2d4c30 | Java | lukebelieves/MyLeetCode-Java | /MergeIntervals.java | UTF-8 | 1,112 | 3.21875 | 3 | [] | no_license | /*class Interval{
int start;
int end;
Interval(){
start = 0; end = 0;
}
Interval(int s, int e){
start = s; end = e;
}
}*/
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.ArrayList;
public class MergeIntervals{
public List<Interval> merge(List<Interval> int... | true |
87b9e654fa506a8526b5ee5d5ef72aa8f9fc3583 | Java | yuanyuqiang1/learn_spring | /Test/src/com/yyq/dispatch/App1.java | UTF-8 | 465 | 1.90625 | 2 | [] | no_license | package com.yyq.dispatch;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App1 {
public static void main(String[] args) {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("com/yyq/dispatch/be... | true |
e8964e412b9d474943d23c0a8b0137c6629117e6 | Java | weihuanhuan/MiscellaneousTest | /springmvc/src/main/java/spring/jdbc/aop/realtime/config/AopRealtimeConfig.java | UTF-8 | 359 | 1.632813 | 2 | [] | no_license | package spring.jdbc.aop.realtime.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = {"spring.jdbc.aop.realtime.aspect", "spring.jdbc.aop.realtime.controller", "spring.jdbc.aop.realtime.service"}... | true |
cd8d7763384adb552ed29821b4acc2d07fb562d6 | Java | MAD-G/Organiser-M-Pro | /com/example/organiser_m/WidgetViewsFactory.java | UTF-8 | 2,942 | 1.921875 | 2 | [] | no_license | package com.example.organiser_m;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.RemoteViews;
import android.widget.RemoteViewsService.RemoteViewsFactory;
import java.util.Calendar;
import java.util.List;
public class WidgetViewsF... | true |
04e7584c24d9f72c0077c2668e127b049f672d1e | Java | sneha1234/Twitter-Sentiment-Analysis-with-Apache-Storm-and-Apache-Kafka | /stormFiles/JoinSentimentsBolt.java | UTF-8 | 2,959 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive |
import org.apache.log4j.Logger;
import java.util.HashMap;
import backtype.storm.topology.BasicOutputCollector;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseBasicBolt;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Tuple;
import backtype.storm.tuple.Valu... | true |
2e1182aba36e80c3a23484d5199f819b7ade7967 | Java | Blackwatch98/PetrolNavigatorApp | /app/src/main/java/com/example/petrolnavigatorapp/PetrolStationsListFragment.java | UTF-8 | 3,839 | 2.515625 | 3 | [] | no_license | package com.example.petrolnavigatorapp;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerv... | true |
dddb5746c4fff69dc8c775436f143c495711ae02 | Java | joelcn/uni | /ursuppe/src/ursuppe/FoodTest.java | UTF-8 | 807 | 2.9375 | 3 | [] | no_license | package ursuppe;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import ch.unibe.jexample.JExample;
@RunWith(JExample.class)
public class FoodTest {
@Test
public Food foodShouldHaveCorrectColor() {
Food food1 = new Food("green");
assertEquals("green", food... | true |
ad2cd6c9ded0f301cadc659413d4d56c1cff740b | Java | jbeckers/intellij-community | /plugins/performanceTesting/src/com/jetbrains/performancePlugin/CommandsRunner.java | UTF-8 | 1,625 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.jetbrains.performancePlugin;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.util.ActionCallback;
import org.jetbrains.annotations.NotNull;
import oshi.SystemInfo;
import oshi.software.os.OSProcess;
import oshi.software.os.OperatingSystem;
import static com.jetbrains.perfor... | true |
353e0d372d40d4b41cfed99897d2f837dc14d87c | Java | Huafeng2/Spring-Demo | /src/com/test2/testMain.java | UTF-8 | 838 | 2.96875 | 3 | [] | no_license | package com.test2;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 测试bean标签的scope属性的singleton单例模式
* 说明:Singleton: Spring容器只存在一个共享的bean实例
*/
public class testMain {
public static void main(String[] args) {
//创建Spring上下... | true |
d641aa63b5ce00862abfbf882cace48eadf9f580 | Java | mifu2012/jxemos | /src/com/hoson/RowCompare.java | UTF-8 | 640 | 2.6875 | 3 | [] | no_license | package com.hoson;
import java.util.*;
public class RowCompare implements Comparator{
String col = null;
public void setCompareCol(String col){
this.col = col;
}
public int compare(Object o1,Object o2){
if(f.empty(col)){return 0;}
Map r1,r2 = null;
Double v1,v2 = null;
r1 = (Map)o1;
r2=(Map)o... | true |
e062257b87d9f3c95d8ef0d45df56e025fa16ad5 | Java | satrioyudi/baseapp | /mbs-common/stereotype/src/main/java/test/baseapp/co/id/common/stereotype/exception/Log.java | UTF-8 | 896 | 1.953125 | 2 | [] | no_license | package test.baseapp.co.id.common.stereotype.exception;
import java.io.Serializable;
import java.util.Date;
import test.baseapp.co.id.common.stereotype.security.User;
public interface Log <ID extends Serializable, U extends User> {
public ID getId();
public void setExceptionClass(String exceptionClass);
publi... | true |
56d094996e6e0934f78010301cf79e3fa36a3b8d | Java | XealRedan/cos-sim | /modules/engine/src/main/java/ru/cos/sim/agents/tlns/data/ScheduleTableData.java | UTF-8 | 362 | 1.914063 | 2 | [] | no_license | /**
*
*/
package ru.cos.sim.agents.tlns.data;
import java.util.List;
/**
*
* @author zroslaw
*/
public class ScheduleTableData {
private List<TimePeriodData> timePeriods;
public void setTimePeriods(List<TimePeriodData> timePeriods) {
this.timePeriods = timePeriods;
}
public List<TimePeriodData> getTim... | true |
6939beeb3923af8cc18ac697ec67d9db59afd0a4 | Java | 01jorden01/AndroidDemos | /Productlijstje (RXAndroid, androidX)/app/src/main/java/com/j_productions/database/view/ProductFragment.java | UTF-8 | 9,650 | 2.09375 | 2 | [] | no_license | package com.j_productions.database.view;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextVie... | true |
09c0f311d5e8027dc1e679ce6b189b08b29c6ae9 | Java | yangtie34/projects | /jinghua/dmm/src/main/java/com/jhnu/product/manager/scientific/entity/TResThesis.java | UTF-8 | 3,878 | 2.234375 | 2 | [] | no_license | package com.jhnu.product.manager.scientific.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* TResThesis entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "T_RES_THESIS", schema = "DM_MOSDC_HTU")
public cla... | true |
b9cb4cf7f189f30316788391d5e2ff906a82ecb6 | Java | lithiumslave/Java_homework | /src/lesson11HomeWork/Instrument/Guitar.java | UTF-8 | 371 | 3.015625 | 3 | [] | no_license | package lesson11HomeWork.Instrument;
public class Guitar implements Instrument {
private int numberOfStrings;
public Guitar(int numberOfStrings) {
this.numberOfStrings = numberOfStrings;
}
@Override
public void play() {
System.out.println("Test guitar with " + numberOfStrings + " ... | true |
4b9157c4c98a79fd7c9d9b6fff2d36777e3afa81 | Java | lebrancconvas/Saladpuk-Design-Pattern | /Factory/FactoryWork.java | UTF-8 | 331 | 2.71875 | 3 | [] | no_license | package Factory;
public class FactoryWork {
public static void main(String[] args) {
CharacterFactory gamechar = new CharacterFactory();
GameCharacter Naduin = gamechar.getCharacter("WARRIOR");
Naduin.attack();
GameCharacter Manchury = gamechar.getCharacter("MAGE");
Manchury.attack();
Naduin.evad... | true |
5ff994826ecdf6942caca0b38ca742244ffc73e8 | Java | GuoshunWu/alcatel-lucent-dms | /src/main/java/com/alcatel_lucent/dms/model/Context.java | UTF-8 | 3,080 | 2.25 | 2 | [] | no_license | package com.alcatel_lucent.dms.model;
import com.google.common.base.Objects;
import org.apache.commons.lang3.ArrayUtils;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import javax.persistence.*;
import java.util.Arrays;
import java.util.Collection;
//@Entity... | true |
7d9316a90fab42380662e28d805f93ea1728ab36 | Java | flexyorigin/task | /src/main/java/inf101/rogue101/game/IMessageView.java | UTF-8 | 1,209 | 2.859375 | 3 | [
"MIT"
] | permissive | package inf101.rogue101.game;
public interface IMessageView {
/**
* Displays a message in the debug area on the screen (bottom line)
*
* @param s A message
*/
void displayDebug(String s);
/**
* Displays a message in the message area on the screen (below the map and the
* status line)
*
* @param s ... | true |
c7ad48f6a6b27be28a095e1cddb7ded62fd43152 | Java | greifentor/archimedes-legacy | /legacy-core/src/main/java/archimedes/legacy/gui/ExceptionDialog.java | UTF-8 | 6,200 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package archimedes.legacy.gui;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListen... | true |
0cbe4ee0c1db1043982b553507f295b478cc2141 | Java | clftjdanrhd/LMS | /LMS/src/com/lms/controller/action/BoardListAction.java | UTF-8 | 2,212 | 2.28125 | 2 | [] | no_license | package com.lms.controller.action;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.lms.dao.BoardDAO;
import com.lms... | true |