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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
30c656a75061c6fdc395cc9bfd1dbf0b97356be4 | Java | vinod88paliwal/temp | /BasicOfJava/BasicOfJava/Basics/src/com/vinod/singleton/Account.java | UTF-8 | 283 | 2.390625 | 2 | [] | no_license | package com.vinod.singleton;
public class Account
{
private Account(){}
@Deprecated
public String getMessageOne(String msg)
{
return msg+" Welcome to world of reflection";
}
public String getMessageTwo(String msg)
{
return msg+" Welcome to world of reflection";
}
}
| true |
78c3bb179ab642f95a08160fe9a46864b168bffc | Java | soondh/asset | /app/src/main/java/youkagames/com/yokaasset/utils/GlideImageLoader.java | UTF-8 | 1,239 | 2.15625 | 2 | [] | no_license | package youkagames.com.yokaasset.utils;
import android.app.Activity;
import android.widget.ImageView;
import com.lzy.imagepicker.loader.ImageLoader;
import youkagames.com.yokaasset.R;
import yokastore.youkagames.com.support.image.MyImageLoaderHelper;
/**
* Created by songdehua on 2018/11/23.
* Glide加载图片方式
*/
pu... | true |
e6a1be5c09f766b08d87d9855e1cb7b4bf69e6db | Java | no1gwanho/allhomes2 | /AllHomesTest/src/main/java/com/allhomes/myapp/admin/AdminMemberDaoImp.java | UTF-8 | 2,085 | 1.84375 | 2 | [] | no_license | package com.allhomes.myapp.admin;
import java.util.HashMap;
import java.util.List;
import com.allhomes.myapp.homeboard.HomeboardVO;
import com.allhomes.myapp.qna.QnaVO;
import com.allhomes.myapp.register.RegisterVO;
public interface AdminMemberDaoImp {
//전체 회원 조회(페이징)
public List<RegisterVO> memberAllSelect(Admin... | true |
7b5d6cdecce5b7dcadbd85b06b30ade3ed1d4cd7 | Java | jaivox/speech | /archive/jaivox_0.3/src/com/jaivox/interpreter/InterResponder.java | UTF-8 | 4,179 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
Jaivox version 0.3 December 2012
Copyright 2010-2012 by Bits and Pixels, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | true |
961d4b7eecf4d0875a5e25bcd512261f963ea58b | Java | lele94218/leetcode_java | /src/com/terryx/leecode/weeklycontest/contest69/Solution771.java | UTF-8 | 762 | 3.28125 | 3 | [] | no_license | package com.terryx.leecode.weeklycontest.contest69;
import java.util.*;
/**
* @author taoranxue on 1/27/18 9:45 PM.
*/
public class Solution771 {
public int numJewelsInStones(String J, String S) {
Set<Integer> set = new HashSet<>();
for (int i = 0; i < J.length(); ++i) {
set.add((int... | true |
ad1c65d76d2094d3985ef50bbe02f4b9cd598804 | Java | joakimbits/Quflow-and-Perfeco-tools | /sim/EJS/OSP_core/src/org/opensourcephysics/display/DataFile.java | UTF-8 | 14,131 | 2.53125 | 3 | [
"MIT"
] | permissive | /*
* Open Source Physics software is free software as described near the bottom of this code file.
*
* For additional information and documentation on Open Source Physics please see:
* <http://www.opensourcephysics.org/>
*/
package org.opensourcephysics.display;
import java.io.BufferedReader;
import java.io.IOExc... | true |
e1ff8cdd856ea49a8a16f14dc46b47aceb36c418 | Java | taink3107/capstonev6 | /src/main/java/com/cmms/demo/dto/DeductionDTO.java | UTF-8 | 605 | 2.265625 | 2 | [] | no_license | package com.cmms.demo.dto;
import com.cmms.demo.domain.DeductionPOJO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeductionDTO {
private Long id;
private String name;
private Long value;
private String... | true |
6f8256b5416ef490f4d2ef2207421370c83834ca | Java | Vishu-Prajapati/corejava | /FindIndexOfArray.java | UTF-8 | 884 | 4 | 4 | [] | no_license | /*Program to find index of an array element*/
import java.util.Scanner;
public class FindIndexOfArray
{
public static void main(String args[])
{
int[] array = new int[10];
Scanner scanner = new Scanner(System.in);
System.out.print("Enter how many elements you want : ");
int number = scann... | true |
fd971092c345d8d8b56f9a44d88af068247aeebe | Java | shulieTech/Takin-web | /takin-web-common/src/main/java/io/shulie/takin/cloud/common/serialize/BigDecimalSerialize.java | UTF-8 | 768 | 2.4375 | 2 | [] | no_license | package io.shulie.takin.cloud.common.serialize;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
/**
* @author 何仲奇
... | true |
de13e2d0c933d94874368983c694569278629b2d | Java | FunnyJ2/j2mc-core | /src/to/joe/j2mc/core/log/CommandLogger.java | UTF-8 | 904 | 2.4375 | 2 | [] | no_license | package to.joe.j2mc.core.log;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import to.joe.j2mc.core.J2MC_Core;
/**
* @deprecated
* @author Admin
*
*/
public class CommandLogger implements... | true |
447a5712bb3e28b3074557dd295e13fb7717b41b | Java | ZackC/The_Decline | /the_decline-main/src/com/gamedev/decline/Unit.java | UTF-8 | 4,542 | 3.1875 | 3 | [] | no_license | // Package Declaration //
package com.gamedev.decline;
// Java Package Support //
// { Not Applicable }
// Badlogic Package Support //
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
/**
* com/gamedev/decline/Unit.java
*
* @author(s) : Ian Middleton, Zach Coker, Zach Ogle
*... | true |
e56ba2a110f3eec9a338b263816d50b2ac703d5e | Java | glowkeeper/Minima | /test/org/minima/tests/utils/SuperBlocklevelsTests.java | UTF-8 | 1,893 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package org.minima.tests.utils;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.minima.objects.base.MiniData;
import org.minima.utils.SuperBlockLevels;
public class SuperBlocklevelsTests {
@Test
public void testSuperBlockLevels() {
... | true |
ff022a152d3b412a419486ef33ed34c3feb99a36 | Java | olivier741/services | /GATEWAY_API/src/main/java/com/viettel/mmserver/log/appender/RegisterHostHandler.java | UTF-8 | 3,851 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 olivier.tatsinkou.
*
* 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 ag... | true |
2b5c2173058c0350d5f53a0759d9c36e08ac492b | Java | RutgerMoons/Swop | /SWOP/src/domain/observer/observes/ObservesAssemblyLineState.java | UTF-8 | 667 | 2.796875 | 3 | [] | no_license | package domain.observer.observes;
import domain.assembly.assemblyLine.AssemblyLineState;
/**
* An interface used as a gateway for addressing complex objects and notifying
* them in case of the state of an AssemblyLine changes.
*/
public interface ObservesAssemblyLineState {
/**
* Receives the previ... | true |
0440b2e0aa0cc2fdbb787fefd4b105f0a9f69b49 | Java | KiranHole91/SeleniumHybrid | /E2Eproject/src/main/java/pageObjects/LoginPage.java | UTF-8 | 962 | 2.09375 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class LoginPage {
public WebDriver driver;
public LoginPage(WebDriver driver)
{
this.driver=driver;
PageFacto... | true |
b256d836b79014948d9db241e062d141143f215f | Java | JingtianJia/project | /repast-app-management/repast-app-management-service/src/main/java/com/aaa/lee/repast/service/CouponService.java | UTF-8 | 1,645 | 2.234375 | 2 | [] | no_license | package com.aaa.lee.repast.service;
import com.aaa.lee.repast.base.BaseService;
import com.aaa.lee.repast.mapper.CouponMapper;
import com.aaa.lee.repast.model.Coupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public c... | true |
a12a0ebda5c8e3057390983d9f1c8c0630da8a73 | Java | ehdrn3020/Java_Ref | /arrHistogram.java | UTF-8 | 708 | 3.390625 | 3 | [] | no_license | package grammer;
import java.util.*;
public class arrHistogram {
public static void main(String args[]) {
String[] arr = new String[10];
int[] num = new int[10];
Scanner scan = new Scanner(System.in);
for (int i = 0; i < 10; i++) {
System.out.println((i + 1) + "th value input");
num[i] = sca... | true |
6ea85f3e32829607b16e115bddbaa4db5acee03d | Java | potionk/baekjoon | /src/bj1864/Main.java | UTF-8 | 1,217 | 3.359375 | 3 | [] | no_license | package bj1864;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String i... | true |
336f8a540c9d801e01add46a6c2ea02be3a59186 | Java | jaeehooon/java_programming | /src/ch08/example/ex_8_2/FileReadHangulSuccess.java | UTF-8 | 1,069 | 3.609375 | 4 | [] | no_license | package ch08.example.ex_8_2;
import java.io.*;
import java.nio.charset.StandardCharsets;
/**
* 예제 8-2 | InputStreamReader로 한글 텍스트 파일 읽기
*
* 현재 "java_programming"으로 work space가 지정되어 있기 때문에
* 텍스트 파일의 위치를 java_programming 아래로 지정
*/
public class FileReadHangulSuccess {
public static void main(String[] args) {
... | true |
27aef77acd8605922b447d309f4f5a0c225d0ed0 | Java | borisosetinskiy/multi-provider-event-service | /src/main/java/com/ob/event/Releasable.java | UTF-8 | 126 | 1.734375 | 2 | [] | no_license | package com.ob.event;
/**
* Created by boris on 1/30/2017.
*/
public interface Releasable {
default void release(){}
}
| true |
f4692a5a2606f32fb7d3b1cc3d09aa0a9d0cb954 | Java | rberral/app_gruppy | /src/controller/ControllerProfile.java | UTF-8 | 3,365 | 2.171875 | 2 | [] | no_license | package controller;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Formatter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpSe... | true |
7108ed582fe650a26867e9b70eacdee6cfc7ee64 | Java | iritgo/iritgo-aktera | /aktera-persist-default/src/main/java/de/iritgo/aktera/persist/defaultpersist/DefaultTransaction.java | UTF-8 | 3,413 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /**
* This file is part of the Iritgo/Aktera Framework.
*
* Copyright (C) 2005-2011 Iritgo Technologies.
* Copyright (C) 2003-2005 BueroByte GbR.
*
* Iritgo licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You m... | true |
ca2e5981e3e4f4d7bdf2ae2c1d7d3d6aea6fb7ed | Java | cksharma/coding | /leetcode/src/hard/MaxPointOnLine.java | UTF-8 | 1,965 | 3.390625 | 3 | [] | no_license | package hard;
import java.util.HashMap;
import java.util.Map;
/**
* Created by cksharma on 11/28/15.
*/
public class MaxPointOnLine {
class Point {
int x;
int y;
Point(int a, int b) { x = a; y = b; }
}
class Slope {
int xIntercept;
int yIntercept;
Slo... | true |
946f4457e149ea5044523458746b97feb45b8a7c | Java | Gopinathp/androidsmstohttp | /src/com/vivaldi/smsreceiver/IncomingSmsReceiver.java | UTF-8 | 765 | 2.53125 | 3 | [] | no_license | package com.vivaldi.smsreceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
/**
* This is where we get a call. Just delegate the event to the IntentService to process this intent.
* @author gopinath
*
*/
public class IncomingSms... | true |
746ab68175cb8039d4cd119e978b0b51b013e63f | Java | aminimilad/EDAA30 | /DT2/src/QCompare.java | UTF-8 | 234 | 2.3125 | 2 | [] | no_license | import java.util.Comparator;
public class QCompare implements Comparator<QS>{
@Override
public int compare(QS o1, QS o2) {
// TODO Auto-generated method stub
return o1.numberInQueue - o2.numberInQueue;
}
}
| true |
67bf913fea812675797fcb20bbab53755fc1f17e | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/masterData/fileDocTypeSearch/info/FidocarchInfo.java | UTF-8 | 1,223 | 2.625 | 3 | [] | no_license | package br.com.mind5.masterData.fileDocTypeSearch.info;
import java.util.List;
import br.com.mind5.info.InfoRecord;
public final class FidocarchInfo extends InfoRecord implements Cloneable {
public String codFileDocType;
public String txtFileDocType;
public FidocarchInfo() {
super();
}
... | true |
a2f859e00b606dba28ae82c0a63e3181474ca468 | Java | HelpLei/speedy-massage | /src/main/java/com/bootdo/phry/domain/WorkHistoryDO.java | UTF-8 | 4,537 | 2.3125 | 2 | [] | no_license | package com.bootdo.phry.domain;
import java.io.Serializable;
import java.util.Date;
/**
* 家庭成员表
*
* @author zplxshb
* @email 123456789@qq.com
* @date 2019-05-29 09:44:20
*/
public class WorkHistoryDO implements Serializable {
private static final long serialVersionUID = 1L;
//主键Id
private Long workId;
... | true |
90fd862b7b79f4ad040a9c44b838b5f1c202b0d5 | Java | iunsuccessful/demo-spring-mvc | /demo-java/src/main/java/iunsuccessful/demo/base/list/ListDemo.java | UTF-8 | 788 | 3.1875 | 3 | [] | no_license | package iunsuccessful.demo.base.list;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
/**
* List 扩容,被始为 2 的话,下次是 4, 8, 16 以初始大小成倍扩容
* Created by LiQZ on 2018/1/16.
*/
public class ListDemo {
public static void main(String[] args) {
List<Integer> ids = new ArrayL... | true |
483521802381b8014327fc04a796acf557694fd5 | Java | wberhe/Online-Shopping-System-J2EE- | /myCompanyOnlineShopping-ejb/src/java/com/mycompany/services/ShoppingCartService.java | UTF-8 | 1,478 | 2.703125 | 3 | [] | no_license | package com.mycompany.services;
import com.mycompany.interfaces.ShoppingCartServicesLocal;
import com.mycompany.models.ShoppingCart;
import com.mycompany.models.ShoppingCartItem;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* Shopping ... | true |
a3b5990049ccd233bbcaea48be4f3fe3391f2c7a | Java | aby113/everyday-coding | /src/main/java/org/moneybook/service/TranHistoryService.java | UTF-8 | 1,023 | 2.046875 | 2 | [] | no_license | package org.moneybook.service;
import java.util.List;
import java.util.Map;
import org.moneybook.domain.Criteria;
import org.moneybook.domain.SearchCriteria;
import org.moneybook.domain.dto.TranHistoryDTO;
public interface TranHistoryService {
// 수익 + 비용 리스트 페이징 쿼리
public List<TranHistoryDTO> getTranHistory(Map<S... | true |
c595a3933f60f82a7f03f9a6f2a415cd6bc8c7c7 | Java | CoreFiling/reviki | /wiki-src/net/hillsdon/reviki/vc/TestAttachmentHistory.java | UTF-8 | 1,427 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2008 Matthew Hillsdon
*
* 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 agre... | true |
074ffa84a98cd0bb59c1c74790069608e01a37a6 | Java | shawnlauzon/AOTW-ThemeBuilder | /src/com/confidentsoftware/themebuilder/JsonParser.java | UTF-8 | 1,068 | 2.828125 | 3 | [] | no_license | package com.confidentsoftware.themebuilder;
import java.io.IOException;
import org.json.JSONException;
import org.json.JSONObject;
public class JsonParser {
public static JSONObject getJsonFromUrl(String url) throws JSONException {
String rawData = null;
try {
rawData = NetworkClient.downloadString(url);
... | true |
35910a4c341718da08897e8e2690552edf7617a1 | Java | panoslep/java_fundamentals | /src/mysql/labs/Exercise_04.java | UTF-8 | 3,886 | 3.515625 | 4 | [] | no_license | package mysql.labs;
import java.sql.*;
/*
* MySQL Exercise 4:
*
* Now that you have mastered your air travel database, it's time to connect this DB to a Java application
* using JDBC. You can start simple here and build your way up. Within a Java application, using JDBC, please
* demonstrate how to:
*
* Note:... | true |
ead881377a3de0cbd942a1e30d3cc0bd2f3e3cd7 | Java | Athar1988/ApplicationJEE | /ApplicationSimilateur/src/main/java/org/calcule/similateur/servlet/ServletApp.java | UTF-8 | 1,245 | 2.375 | 2 | [] | no_license | package org.calcule.similateur.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.calcule.similateur.ApplicationSimilateur.Credit;
import org.calcule... | true |
51aba00eec280aec4bb63519017937ca32399ce4 | Java | homepy/whale-calcite | /src/main/java/io/github/homepy/whale/calcite/cs/po/pbc/CspPbcCycLimitLoanSum.java | UTF-8 | 489 | 1.78125 | 2 | [] | no_license | package io.github.homepy.whale.calcite.cs.po.pbc;
/** 循环额度下分账户汇总信息(CSP_PBC_CYCLIMITLOANSUM) */
public class CspPbcCycLimitLoanSum {
/** 报告编号 */
public String reportid;
/** 管理机构(法人)数 */
public String financeorgcount;
/** 账户数 */
public String accountcount;
/** 授信总额 */
public String creditlimit;
/** 余额 */
publ... | true |
08be522e25d8c8d8284de20c24f33d41ff856163 | Java | fuqua2/bromium | /bromium-cli/src/main/java/com/hribol/bromium/cli/MainMenuChoice.java | UTF-8 | 187 | 1.546875 | 2 | [
"MIT"
] | permissive | package com.hribol.bromium.cli;
/**
* Represents a choice that the user can select when adding an action
*/
public enum MainMenuChoice {
ASSERTION,
ACTION,
SAVE_AND_EXIT
}
| true |
45b7bed7a40f2669d972e1beeca726a0e604c875 | Java | yllcc/zzsd | /src/main/java/cn/com/fotic/eimp/model/CustomerScoreReturnModel.java | UTF-8 | 643 | 1.796875 | 2 | [] | no_license | package cn.com.fotic.eimp.model;
import java.io.Serializable;
/**
* 信贷调用客户评分 返回响应model
*
* @author liugj
*
*/
public class CustomerScoreReturnModel implements Serializable {
private static final long serialVersionUID = 1221024932905963095L;
private String businessNo;
private String fraudScore;
... | true |
a25d5818ffc7422955443ae8a3ae1c0fa4cde378 | Java | warhog/fpvlaptracker | /web/src/main/java/de/warhog/fpvlaptracker/db/JooqPersistentTokenRepositoryImpl.java | UTF-8 | 4,383 | 2.4375 | 2 | [
"MIT"
] | permissive | package de.warhog.fpvlaptracker.db;
import de.warhog.fpvlaptracker.jooq.Tables;
import de.warhog.fpvlaptracker.jooq.tables.records.PersistentLoginsRecord;
import java.sql.Timestamp;
import java.util.Date;
import org.slf4j.Logger;
import org.jooq.DSLContext;
import org.slf4j.LoggerFactory;
import org.springframework.be... | true |
e791bc0ae3872f54003314023c0980b81c45dc47 | Java | sherylj/data-explorer | /src/main/java/edu/usc/chla/vpicu/explorer/BaseProvider.java | UTF-8 | 10,678 | 2.40625 | 2 | [] | no_license | package edu.usc.chla.vpicu.explorer;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
im... | true |
79cdd265001e98236a040bd454f438afed8e049b | Java | Medivka/HotelSenla | /Server/src/main/java/com/senla/dto/dtoService/OrderDtoServiceImpl.java | UTF-8 | 1,655 | 2.234375 | 2 | [] | no_license | package com.senla.dto.dtoService;
import com.senla.api.fasad.IFasadOrder;
import com.senla.dto.apiDTO.MappingDTO;
import com.senla.dto.apiDTO.OrderDtoService;
import com.senla.dto.modelDTO.OrderDTO;
import com.senla.model.Order;
import org.springframework.stereotype.Component;
import java.util.LinkedList;
import ja... | true |
3225445dbd5a20ec3660a7384424849ae07017c3 | Java | yshwnt1502/SpringUdemy | /hibernate-tutorial/src/com/luv2code/hibernate/demo/ReadStudentDemo.java | UTF-8 | 1,707 | 2.75 | 3 | [] | no_license | package com.luv2code.hibernate.demo;
import java.util.Date;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.luv2code.hibernate.demo.entity.Student;
public class ReadStudentDemo {
public static void main(String[] args) {
// TODO Auto-generated... | true |
e7d4b63d06335503c63fd4eae6575359a047bc9a | Java | lennindavila/aso-client-services | /paas_listcards/src/main/java/pe/bbva/aso/servicios/listcards/dto/ActivationsDTO.java | UTF-8 | 733 | 2.015625 | 2 | [] | no_license | package pe.bbva.aso.servicios.listcards.dto;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ActivationsDTO implements Serializable {
private static final long serialVersio... | true |
5c6ff87b4e511fc687319b93266bfb81c5b4879f | Java | Cognizant-Training-Coimbatore/Lab-Excercise-Batch-2 | /JESTIN COLIN CORREYA/22-01-2020/activity8_sumofdigit.java | UTF-8 | 418 | 3.390625 | 3 | [] | no_license | package demo;
import java.util.Scanner;
public class activity8_sumofdigit {
public static void main(String[] args) {
int sum=0,a,b;
// TODO Auto-generated method stub
System.out.print("enter any number:");
Scanner s=new Scanner(System.in);
a=s.nextInt();
while(a!=0)
{
b=a%10;
sum=... | true |
f0e906e5270af03057c601c4bfe6b5c441331733 | Java | Skyrev/Android-Mobile-Application-Development | /CircollisionCourse/app/src/main/java/com/cs646/skyrev/bounceoff/CollisionGroundView.java | UTF-8 | 7,571 | 2.609375 | 3 | [] | no_license | package com.cs646.skyrev.bounceoff;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import a... | true |
72e7538a5e4bf5b10f5117d87d74a0c2f2cfe6f4 | Java | diplav/DataImport | /DataImport/src/graph/analysis/PartitionAnalysis.java | UTF-8 | 11,156 | 3.03125 | 3 | [] | no_license | package graph.analysis;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
public class PartitionAnalysis {
//this collection will ... | true |
765ca1ecf0811515f1374e1a974d59b97f63db4b | Java | vostapets/simple-search-engine | /simple-search-server/src/main/java/org/osv/sse/server/resources/SearchResource.java | UTF-8 | 1,014 | 2.078125 | 2 | [] | no_license | package org.osv.sse.server.resources;
import java.util.List;
import org.osv.sse.server.service.SearchService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.we... | true |
45157c7e47eeaaae03a2e6c143c031cb6f53a0f8 | Java | RobertYYF/VendingMachine | /src/test/java/VendingMachine/AccountJsonHandlerTest.java | UTF-8 | 5,420 | 2.796875 | 3 | [] | no_license | package VendingMachine;
import org.junit.*;
import org.junit.jupiter.api.AfterAll;
import static org.junit.Assert.*;
import VendingMachine.AccountJsonHandler;
import VendingMachine.User;
import VendingMachine.Customer;
import java.util.*;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import or... | true |
0bfbc93c31c28427a1b222f6067f202f15fc7658 | Java | hayahyts/NewSearchView | /searchview/src/main/java/com/nfortics/searchview/SuggestionsAdapter.java | UTF-8 | 3,705 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.nfortics.searchview;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
class ... | true |
fd0f0cf76cb4bfa8a09bbf9d3d757e5049b95af1 | Java | doruk-can/social-media-backend | /src/main/java/com/group308/socialmedia/core/model/domain/AbstractEntity.java | UTF-8 | 2,360 | 2.125 | 2 | [] | no_license | package com.group308.socialmedia.core.model.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.id.enhanced.SequenceStyleGenerator;
import org.springframework.security.core.context.SecurityContextHolder;
... | true |
852b7a284be2bab8c6aaa7a7598f34a7127598e9 | Java | gabrielbsouz/restaurante-delivery-api | /src/main/java/br/com/restaurantedeliveryapi/exceptions/EntidadeEmUsoException.java | UTF-8 | 203 | 1.984375 | 2 | [] | no_license | package br.com.restaurantedeliveryapi.exceptions;
public class EntidadeEmUsoException extends RuntimeException {
public EntidadeEmUsoException(String exception) {
super(exception);
}
}
| true |
408ae065edb4374194d3393e865c79f5e24ba0dd | Java | istomann/drools-spike | /src/main/java/fi/ima/drools_spike/dto/Permission.java | UTF-8 | 1,011 | 2.1875 | 2 | [] | no_license | package fi.ima.drools_spike.dto;
import java.io.Serializable;
public class Permission implements Serializable {
private static final long serialVersionUID = 1L;
private String permissionClass;
private String permissionCountry;
private Customer customer;
public Permission() {
super();
// TODO Auto-genera... | true |
8dcfd103279cbc00fefb5549f755d48768647723 | Java | 18700449940/elasticsearch | /src/main/java/com/sang/elasticsearch/util/EsUtil.java | UTF-8 | 4,460 | 2.453125 | 2 | [] | no_license | package com.sang.elasticsearch.util;
import com.sang.elasticsearch.conf.ESClientSpringFactory;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequest;
import org.elasticsearch.action.a... | true |
9ac7327604bec55179c930bd72b3285039dfbcb8 | Java | hendisantika/spring-boot-mongodb-sample | /src/main/java/com/hendisantika/springbootmongodbsample/model/User.java | UTF-8 | 1,337 | 2.171875 | 2 | [] | no_license | package com.hendisantika.springbootmongodbsample.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* Created by IntelliJ IDEA.
* Project : spring-boot-mongodb-sample
* User... | true |
34eb7c85fc7bcd6b38d08ba8a45a118e2767e995 | Java | Allen5413/tm | /teach_materials/src/com/zs/service/basic/resource/impl/FindResourceForMenuServiceImpl.java | UTF-8 | 1,448 | 2 | 2 | [] | no_license | package com.zs.service.basic.resource.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.feinno.framework.common.service.EntityServiceImpl;
import com.zs.dao.basic.resource.FindResourceForMenuDAO;
import com.zs.domain.basic.Resource;
import com.zs.service.basic.resource.Fin... | true |
58ff8731b7b182050c3c5f0d41b1004200c628e4 | Java | sturner1805/SamTurner | /GarageEX/Car.java | UTF-8 | 508 | 3.09375 | 3 | [] | no_license |
public class Car extends Vehicle {
int wheelCount;
public Car(int id, int seatCount, String color, int wheelCount) {
super(id, seatCount, color);
this.wheelCount = wheelCount;
}
public int getWheelCount() {
return wheelCount;
}
public void setWheelCount(int wheelCount) {
this.wheelCount ... | true |
a23911516bc2f725f4f685da172e805e08cc67eb | Java | joergreichert/spray | /examples/mindmap/org.eclipselabs.spray.examples.mindmap.domain/src/MindmapDSL/impl/ElementImpl.java | UTF-8 | 3,500 | 1.867188 | 2 | [] | no_license | /**
*/
package MindmapDSL.impl;
import MindmapDSL.Element;
import MindmapDSL.MapElements;
import MindmapDSL.MindmapPackage;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.In... | true |
53b99fc501d8871d18990b1d73ace87351379a46 | Java | HeimlichLin/TableSchema | /java/po/FTZC_AP/IInvtryremarkPo.java | UTF-8 | 333 | 1.539063 | 2 | [] | no_license | package com.doc.common.po;
public interface IInvtryremarkPo {
String getBfNo();
void setBfNo(final String bfNo);
String getInvYear();
void setInvYear(final String invYear);
String getCommodityNo();
void setCommodityNo(final String commodityNo);
String getRemark();
void setRemark(final String ... | true |
571d9cc8747b754bad288e83bd8c210d89417cf4 | Java | poonjampark/demo | /src/main/java/com/pzp/service/user/Impl/UserServiceImpl.java | UTF-8 | 2,988 | 2.34375 | 2 | [] | no_license | /**
*
*/
package com.pzp.service.user.Impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import com.github.page... | true |
f96f64d351934e5c8ca137c5b21e1fa4ca003919 | Java | somendu/vue | /price-change/src/main/java/com/partspointgroup/priceapproval/auth/AuthConfig.java | UTF-8 | 302 | 1.867188 | 2 | [] | no_license | package com.partspointgroup.priceapproval.auth;
import javax.servlet.Filter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AuthConfig {
@Bean
public Filter authFilter() {
return new AuthFilter();
}
}
| true |
cf48b612e47177e7a90b370c97af71c11a54a3cf | Java | galomaniak/eVoting | /src/main/java/edu/biniek/evoting/voting/tables/TableP.java | UTF-8 | 517 | 2.390625 | 2 | [] | no_license | package edu.biniek.evoting.voting.tables;
import edu.biniek.evoting.voting.Ballot;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
public class TableP {
private List<TableRowP> rows;
public TableP(Collection<Ballot> ballots) {
rows = new LinkedList<>();
for (... | true |
529b2e334b26b0e9e9aa8b923c41033905db85eb | Java | repetition/Examples | /src/main/java/MainTest/client/MinaClient.java | UTF-8 | 2,737 | 2.15625 | 2 | [] | no_license | package MainTest.client;
import org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder;
import org.apache.mina.core.future.ConnectFuture;
import org.apache.mina.core.service.IoService;
import org.apache.mina.core.service.IoServiceListener;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.co... | true |
61dfca861d4df09f3fe744169a2678a731e98f78 | Java | liangjianweiLJW/mes-services | /mes-basic-api/src/main/java/com/unilever/hefei/mes/basic/model/EquipmentInfoExample.java | UTF-8 | 122,064 | 2.34375 | 2 | [] | no_license | package com.unilever.hefei.mes.basic.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class EquipmentInfoExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public EquipmentInf... | true |
8721c5d460ee70d972601b7992c5d4ef9a5e67f8 | Java | ShiboTanany/LoggingService | /ClientSystem/src/main/java/com/mycompany/clientsystem/implementation/SingletonObject.java | UTF-8 | 699 | 2.5 | 2 | [] | no_license | package com.mycompany.clientsystem.implementation;
import com.mycompany.clientsystem.intefaces.LogServiceInterface;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
/**
*
* @author shibo
*/
public class SingletonObject {
private SingletonObject() {
}
public static LogServic... | true |
7b8b79bc281ee1b2e77d9ddf367d99d788733b9d | Java | DiegoHDMGZ/OS-simulation | /src/ui/backup/PanelEstadisticasResumenBackUp.java | UTF-8 | 6,123 | 2.53125 | 3 | [] | no_license | package ui.backup;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import j... | true |
8c447a2fd9ade7e9cbb651c69d6ba4fe2e4bc13b | Java | SinduKandula/IMDB-Application | /src/imdb/populate.java | UTF-8 | 17,071 | 2.90625 | 3 | [] | no_license | package imdb;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.*;
public class populate {
public static void main(String args[]) {
populate example = new populate();
example.run();
}
private void run() {
Connec... | true |
a8f4f6c4d86631b509b50f9657a5803fc89f1df1 | Java | ChangeTheWeapon/Market | /src/SectiaCarne.java | UTF-8 | 729 | 2.578125 | 3 | [] | no_license | package com.company;
//incapsularea.
public class SectiaCarne {
public int kgCarne;
public String tipul;
public int anulProducerii;
SectiaCarne(int kgCarne,String tipul,int anulProducerii) {
this.kgCarne=kgCarne;
this.tipul=tipul;
this.anulProducerii=anulProducerii;
}
public int get... | true |
b4cee45558c8a207728e521ab21d26747a860c2e | Java | MustafaTeba/IMBera-UI-Builder | /IMBera-UI-Builder/src/main/java/io/imbera/ui/core/generators/TextFieldGenerator.java | UTF-8 | 1,718 | 2.203125 | 2 | [] | no_license | package io.imbera.ui.core.generators;
import java.lang.reflect.Field;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.imbera.demo.screen.UIContainer;
import io.imbera.ui.core.form.TextField;
public class TextFieldGenerator extends FormDefinitionG... | true |
7561c8aed91eb9b0f63a9c7f88405ed5610bd8fa | Java | gitter-badger/dynamic-cdi | /src/main/java/org/rapidpm/ddi/implresolver/ImplementingClassResolver.java | UTF-8 | 1,395 | 2.578125 | 3 | [] | no_license | package org.rapidpm.ddi.implresolver;
import org.rapidpm.ddi.ReflectionsSingleton;
import java.util.Set;
/**
* Created by svenruppert on 23.07.15.
*/
public class ImplementingClassResolver {
public <I> Class<I> resolve(Class<I> interf) {
if (interf.isInterface()) {
final Set<Class<? extends I>> subTyp... | true |
992ac0663e66d10aba609d208767478a365669e6 | Java | altrk19/Order_Payment_Stock_Saga_Pattern | /payment/src/main/java/com/saga/pattern/repository/PaymentRepository.java | UTF-8 | 312 | 1.921875 | 2 | [] | no_license | package com.saga.pattern.repository;
import com.saga.pattern.entity.Payment;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface PaymentRepository extends JpaRepository<Payment, String> {
Optional<Payment> findByTransactionId(String transactionId);
}
| true |
c6a1d40a7a640ccbc0904212e755a4f6c2cc79f3 | Java | mvelasquez-clife/LifeApp | /app/src/main/java/com/mvelasquezp/clife/clientes/activities/Prueba.java | UTF-8 | 746 | 2.078125 | 2 | [] | no_license | package com.mvelasquezp.clife.clientes.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.mvelasquezp.clife.clientes.R;
import com.mvelasquezp.clife.clientes.controls.Circle;
import com.mvelasquezp.clife.clientes.controls.CircleAngleAnimation;
public class Prueba extend... | true |
cd6511bc9d4b010c03202e4bc4f4f99146421297 | Java | Renas63/renas63-javacodes | /src/test/java/Homework/Homework3/Homework3Task4.java | UTF-8 | 614 | 3.703125 | 4 | [] | no_license | package Homework.Homework3;
public class Homework3Task4 {
public static void main(String[] args) {
/*
Write the application that prints true if the number is odd number
Example:
Given number is 9 Output:
"9 is odd number true"
Example:
Given number is 10 Output:
"10 is odd number false"
*... | true |
9bc62c7b31e2fae7a0da219b98a184aaa80e42d7 | Java | imihnea/kdg-programming | /Java/M3/src/a02/Scrabble.java | UTF-8 | 1,286 | 3.765625 | 4 | [] | no_license | package a02;
import java.util.Scanner;
public class Scrabble {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("Please input a letter ");
char UserInput = keyboard.next().charAt(0);
char Letter = Character.toUpperCase(... | true |
e79c5b9b145f6dca92674f2c9110f38facc1143c | Java | remitruong/BreakingBad | /app/src/main/java/com/example/breakingbad/view/MyAdapter.java | UTF-8 | 2,677 | 2.90625 | 3 | [] | no_license | package com.example.breakingbad.view;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.breakingbad.R;
import com.example.breakingbad.model.BreakingBadCharacter;
import com.square... | true |
452192b71281a73b99c4ebb7425bae24f3dac54e | Java | enyeama/jnc-marketing | /com.sap.jnc.marketing.clustering/src/main/java/com/sap/jnc/marketing/cluster/util/Expression.java | UTF-8 | 2,211 | 2.828125 | 3 | [] | no_license | package com.sap.jnc.marketing.cluster.util;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.StringTokenizer;
public class Expression {
public static Object eval(Object target, String expr)
{
if ((expr == null) || (!expr.st... | true |
bdbd6d179044ffb85c6a08c0e5aa611165a88d6e | Java | Juliardi16/STUDI-INDEPENDENT_TUGAS9 | /app/src/main/java/com/example/produkapp/model/HomeModel.java | UTF-8 | 710 | 2.4375 | 2 | [] | no_license | package com.example.produkapp.model;
public class HomeModel {
private String nama;
private String warna;
private String img;
public HomeModel(String nama, String warna, String img) {
this.nama = nama;
this.warna = warna;
this.img = img;
}
public HomeModel() {
}
... | true |
cae25fdb931610158bedbdd55a31073224057f20 | Java | takayukioda/flectCommon | /src/main/java/jp/co/flect/net/OAuth2.java | UTF-8 | 5,276 | 2.359375 | 2 | [
"MIT"
] | permissive | package jp.co.flect.net;
import java.io.IOException;
import java.io.ByteArrayOutputStream;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.client.HttpClient;
import org.apache.htt... | true |
8060314ca79c30b4a6ff06bd9cf040d569ae40ff | Java | life8899/Computer_Science | /110/Homework/HW 4 - String and Math/Line.java | UTF-8 | 1,380 | 4.15625 | 4 | [] | no_license |
/**
* Calculates slope and length of a line
*
* @author Nick Alexander
* @version 2/23/13
*/
import java.util.Scanner;
public class Line
{
public static double Slope(int x1, int y1, int x2, int y2)
{
double dx2 = (double)x2;
double lineSlope = (y2 - y1)/(x2 - x1);
return lineSlo... | true |
c1d90d7ac416422346d2823fa82dec17447b0432 | Java | cpazstido/sharingsessiontest | /src/main/java/com/cf/sessiontest/rfid/test.java | UTF-8 | 3,519 | 2.390625 | 2 | [] | no_license | package com.cf.sessiontest.rfid;
import com.sun.jna.*;
interface CLibrary extends Library {
CLibrary sdtapi = (CLibrary)
Native.loadLibrary((Platform.isWindows() ? "D:\\project\\idea\\test\\src\\main\\resources\\dll\\sdtapi" : "c"), CLibrary.class);
int InitComm(int port);
int CloseComm();
... | true |
f546696ea547b7b556f9d68cb337598f4591bce0 | Java | chenshun00/winter | /src/test/java/io/github/chenshun00/web/support/http/HttpRouteBuilderTest.java | UTF-8 | 3,074 | 2.3125 | 2 | [
"MIT"
] | permissive | package io.github.chenshun00.web.support.http;
import com.alibaba.fastjson.JSONObject;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
import org.junit.Before;
import org.junit.Test;
import org.objectweb.asm.ClassWriter;
import org.slf4j.LoggerFactory;
import io.github.chenshun00.web.support.route.HttpRouteBuild... | true |
d51dfeb346385c42c866d9e4307c434432e38511 | Java | moutainhigh/TF-master | /common-service/src/main/java/com/lkkhpg/dsis/common/system/mapper/SysTemplateAssignMapper.java | UTF-8 | 639 | 1.84375 | 2 | [] | no_license | /*
*
*/
package com.lkkhpg.dsis.common.system.mapper;
import java.util.List;
import com.lkkhpg.dsis.common.system.dto.SysTemplateAssign;
/**
* 模板分配市场Mapper.
*
* @author hanrui.huang
*
*/
public interface SysTemplateAssignMapper {
int deleteByPrimaryKey(Long assignId);
int insert(SysTemplateAssign re... | true |
afab059f40a97b3b0cc66cf765fd3f15b79e2909 | Java | SENG2050-2018/A3 | /WEB-INF/classes/FrontController.java | UTF-8 | 8,728 | 2.28125 | 2 | [] | no_license | /**
* @FILE_NAME: FrontController.java
* @DEVELOPERS: Brad Turner, Dean Morton
* @BRIEF_DESCRIPTION: Front controller, provides pathing to various jsps and relative data
*/
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import javax.sql.*;
import java.util.*;
import ... | true |
eedb07ffe36b4bec3103c9b825f0c56a0f52b330 | Java | wuqiuyun/ccq_user | /NewCCQuser/src/main/java/ccj/yun28/com/view/star/drawable/DrawableAttrs.java | UTF-8 | 2,191 | 2.28125 | 2 | [] | no_license | package ccj.yun28.com.view.star.drawable;
import android.graphics.drawable.Drawable;
/**
* 图片pressed、normal等集合样式属性
* @author thduan
* 2015-12-29 14:33:41
*/
public class DrawableAttrs extends BaseAttrs{
private Drawable normalDrawable;
private Drawable pressedDrawable;
private Drawable disableDrawable;
privat... | true |
269cb16124a942e5003bb7a8ffae58338f134d21 | Java | Super-Saiyans/android1 | /app/src/main/java/minor/hackathon123/MainActivity.java | UTF-8 | 7,791 | 2.3125 | 2 | [] | no_license | package minor.hackathon123;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Path;
import android.os.AsyncTask;
import android.preference.Pr... | true |
139cb5c26733beb85217fb5df8d30b9beb48ec8c | Java | pritansh/CompilerInJava | /Compiler/src/pc/compiler/Compiler.java | UTF-8 | 18,416 | 2.421875 | 2 | [] | no_license | package pc.compiler;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import pc.compiler.errors.VariableNotDefined;
import pc.compiler.helper.Helper;
import pc.compiler.symbolTable.SymbolTableNode;
import pc.parser.PCBaseVisitor;
import pc.parser.PCParser.AddContex... | true |
33b9e3cdf525553fe5468368b715559e472af9eb | Java | clearriver/lazycat | /src/com/stooges/platform/common/dynadatasource/DataSource.java | UTF-8 | 563 | 1.78125 | 2 | [] | no_license | /*
* Copyright (c) 2005, 2018, STOOGES Technology Co.,Ltd. All rights reserved.
* STOOGES PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*/
package com.stooges.platform.common.dynadatasource;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotati... | true |
19687e7e480cf8b1219c99a916fb4f59864fb233 | Java | oyushche/luxoft-jva-032-spring-batch | /src/main/java/com/luxoft/p6listeners/ListenersJobConf.java | UTF-8 | 1,687 | 2.25 | 2 | [] | no_license | package com.luxoft.p6listeners;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.batch.it... | true |
899ec055dd6e219e40014501ad1173a88f29a756 | Java | clyhs/okaysoft | /core/src/main/java/org/okaysoft/core/service/ExcelService.java | UTF-8 | 2,672 | 2.65625 | 3 | [] | no_license | package org.okaysoft.core.service;
import java.io.File;
import java.io.FileOutputStream;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
im... | true |
b0b7f6e7a5abd964378088159aabb55b4ff54a69 | Java | esersuleyman/ecommerce | /ecommerce/src/test/java/com/trendyol/ecommerce/service/ShoppingCartServiceTest.java | UTF-8 | 1,296 | 2.53125 | 3 | [] | no_license | package com.trendyol.ecommerce.service;
import com.trendyol.ecommerce.dao.*;
import com.trendyol.ecommerce.util.DeliveryCostCalculator;
import org.junit.Test;
public class ShoppingCartServiceTest {
@Test
public void testModel() {
Category category = new Category("food");
Prod... | true |
768b5cc4e14bfade648918e2089d7c47d629dc97 | Java | magicus/phoneME | /cdc/src/share/classes/sun/misc/MIDPInternalConnectorImpl.java | UTF-8 | 2,281 | 1.609375 | 2 | [] | no_license | /*
* Copyright 1990-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 only, as published by the Free... | true |
fccc976c90a5a73a60888c5287a30b5bfac6d066 | Java | kaajalsharma/INFS_App | /app/src/main/java/com/example/infs3634_appdev/ui/home/HomeFragment.java | UTF-8 | 1,021 | 1.757813 | 2 | [] | no_license | package com.example.infs3634_appdev.ui.home;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.exampl... | true |
055d9a10fb01e8630dd1f249fb5eca28d7da749d | Java | gege83/superSimpleStock | /DataProvider/src/main/java/com/gergo/takacs/stock/dataprovider/CommonStockEntity.java | UTF-8 | 1,143 | 2.484375 | 2 | [] | no_license | package com.gergo.takacs.stock.dataprovider;
import javax.persistence.Entity;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@Enti... | true |
aa0f46070c08381c4f6fc2b36c03370b0b83691d | Java | alexandar004/java19 | /Object-Communication/src/com/vsc/oop/composition/lottery/Lottery.java | UTF-8 | 453 | 3.15625 | 3 | [] | no_license | package com.vsc.oop.composition.lottery;
import java.util.Random;
public class Lottery {
private Random random;
public Lottery(Random random) {
this.random = random;
}
public void drawWinner(Participant[] participants, LotteryCallback callback) {
int winnerIndex = this.random.nextIn... | true |
11bb5fb4ad51773edc330cbcbab04ed2b05af991 | Java | chentl666/plugin | /app/src/main/java/com/ctl/plugintest/MainActivity.java | UTF-8 | 5,301 | 2.125 | 2 | [] | no_license | package com.ctl.plugintest;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.ctl.plugin.lib.PluginMan... | true |
404fff5d3749ec68efa45bd947305972c883ffe2 | Java | TimJFY/Codes | /Data_Structures/elementary_Data_Structures_Graphs/ShortestAdjacentSequence.java | UTF-8 | 1,770 | 3.515625 | 4 | [] | no_license | package elementary_Data_Structures_Graphs;
import java.util.*;
public class ShortestAdjacentSequence {
public int solution(int[] A) {
if (A.length <= 2) {
return A.length;
}
HashSet<Integer> visitedNodes = new HashSet<Integer>();
Queue<Integer> queue = new LinkedList<Integer>();
int minDepth = 2;
bo... | true |
41b41f97062d6f8d08fe9cdc11d6dbdac18d02a2 | Java | mukesh89m/automation | /src/test/java/com/snapwiz/selenium/tests/staf/edulastic/apphelpers/Calender.java | UTF-8 | 1,025 | 2.671875 | 3 | [] | no_license | package com.snapwiz.selenium.tests.staf.edulastic.apphelpers;
import org.testng.Assert;
import java.util.Calendar;
/**
* Created by root on 2/10/15.
*/
public class Calender {
public static String getCurrentMonthName(int index){
String[] monthNames ={"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "A... | true |
5cf0bf3227eb460aab3fbed67c504a23dc20308c | Java | Jstarfish/starfish | /starfish-mall/starfish-mall-web-common/src/main/java/priv/starfish/mall/web/jms/DefaultMessageHandler.java | UTF-8 | 1,280 | 2.609375 | 3 | [] | no_license | package priv.starfish.mall.web.jms;
import priv.starfish.common.jms.MessageHandlerAdapter;
import priv.starfish.common.jms.SimpleMessage;
import java.io.Serializable;
/**
* 默认消息处理器
*
* @author koqiui
* @date 2015年6月27日 下午11:00:07
*
*/
public class DefaultMessageHandler extends MessageHandlerAdapter {
@Overri... | true |
8a115921c264301e18f29da75483857d5902e94d | Java | veitsi/ipdepbackup | /src/lab02/BinaryTree.java | UTF-8 | 188 | 2.359375 | 2 | [] | no_license | package lab02;
public class BinaryTree {
Node root;
BinaryTree(int mask){
root = new Node(32-mask);
root.networkAdress = 0;
root.broadcastAdress = (1<<root.bits)-1;
}
} | true |
d56367a045b6d67219902bdb68be3276bb8b56fa | Java | rmak1981/Week-Eleven-01 | /src/march21homework/BookTab.java | UTF-8 | 5,846 | 2.296875 | 2 | [] | no_license | package march21homework;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDr... | true |
7b09109b3c78b2c9c21394435c830c49a98dcf1c | Java | WKSefton/Java | /Assignment 7/Deck.java | UTF-8 | 2,995 | 4.15625 | 4 | [] | no_license | /**
* Name: William Sefton
* Instructor: Laurie Werner
* Partner: None
* CSE 271 HA
* Deck class creates a deck of cards and
* has public methods to shuffle the deck
* reset it, return the number of cards dealt
* take one card from the top of the deck
* and return booleans if the deck is empty
* or f... | true |
92efd68645e65c381c17b3044d1e5dc4e9555cc6 | Java | Q11Maristenkolleg/Mamong-us-java | /Mamong Us/src/main/java/tk/mamong_us/net/handlers/ColorHandler.java | UTF-8 | 442 | 2.4375 | 2 | [
"MIT"
] | permissive | package tk.mamong_us.net.handlers;
import tk.mamong_us.PlayerSprite;
import tk.mamong_us.net.Multiplayer;
public class ColorHandler implements Handler {
@Override
public void handle(String ip, String[] msg) {
if (Multiplayer.ip!=null && !Multiplayer.ip.equals(ip) && msg.length >= 3 && Multiplayer.play... | true |