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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fb8c961304f4d1aa0c0ce33e15dccace78c7c542 | Java | DonJayamanne/vscode-javac | /src/test/java/org/javacs/ResponseCollector.java | UTF-8 | 421 | 2.203125 | 2 | [] | no_license | package org.javacs;
import org.javacs.message.Response;
import org.javacs.message.ResponseChannel;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class ResponseCollector implements ResponseChannel {
public final List<Response> responses = new ArrayList<>();
@Override
... | true |
e5c6fc5b8a9734b139bbf27379ee85be1ce2c59f | Java | dadaabcamps/Mrefugee2017 | /app/src/main/java/com/drcdadaab/mrefugee/NewsViewHolder.java | UTF-8 | 1,000 | 2.03125 | 2 | [] | no_license | package com.drcdadaab.mrefugee;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.github.curioustechizen.ago.RelativeTimeTextView;
/**
* Created by oriaso on 9/22/17.
*/
public class NewsViewHolder extends RecyclerV... | true |
a08c0c6308beb3f7ce655568bbde8d45f3112ea0 | Java | P79N6A/icse_20_user_study | /methods/Method_22146.java | UTF-8 | 482 | 2.921875 | 3 | [] | no_license | /**
* ???????????????.
* @param itemsString ??????
* @return ?????
*/
public static List<Integer> toItemList(final String itemsString){
if (Strings.isNullOrEmpty(itemsString)) {
return Collections.emptyList();
}
String[] items=itemsString.split(DELIMITER);
List<Integer> result=new ArrayList<>(items.len... | true |
99d6e98441661aefa420532accb5fa3740217a88 | Java | jingsan0801/ktanx-jdbc | /ktanx-jdbc/src/main/java/com/ktanx/jdbc/command/simple/ResultHandler.java | UTF-8 | 187 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.ktanx.jdbc.command.simple;
public interface ResultHandler<T> {
/**
* 处理结果
*
* @param object
* @return
*/
T handle(Object object);
}
| true |
f9c319e25253d5dfacae87b43e73a60a89bcfd39 | Java | RollingSoftware/L2J_HighFive_Hardcore | /l2j_server/src/main/java/com/l2jserver/gameserver/network/serverpackets/StaticObject.java | UTF-8 | 2,484 | 2.359375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (C) 2004-2016 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | true |
9fb27f928ab9d69ad97cc3c3cb9265ce557fbe8f | Java | xsa1994/hx | /src/main/java/com/hx/mapper/SeoConfigMapper.java | UTF-8 | 220 | 1.820313 | 2 | [] | no_license | package com.hx.mapper;
import com.hx.domain.SeoConfig;
public interface SeoConfigMapper {
int insertHxSeoConfig(SeoConfig object);
int updateHxSeoConfig(SeoConfig object);
SeoConfig selectSeoConfig();
} | true |
209d1915626cfccc7ede8deea255c502069a5126 | Java | nice79422/project | /project/nexacro/erpNexacroJava/57thERP/src/main/java/kr/co/seoulit/statement/financialStatement/applicationService/FinancialStatementApplicationServiceImpl.java | UTF-8 | 2,656 | 2.046875 | 2 | [] | no_license | package kr.co.seoulit.statement.financialStatement.applicationService;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import kr.co.seoulit.statement.financialStatement.dao.EarlyFinancialStatementsDAO;
im... | true |
3d0c2720be25d19ec0e002fc61ff7c39a5580a6b | Java | HardWareMall2016/AoYouStore | /app/src/main/java/com/zhan/aoyoustore/utils/Tools.java | UTF-8 | 19,519 | 1.828125 | 2 | [] | no_license | package com.zhan.aoyoustore.utils;
import android.app.Activity;
import android.app.Dialog;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
import android.gra... | true |
8d3aed6496795fa6e56aa7da6498770e36d2e399 | Java | jianghang/JavaAction | /SE/src/main/java/com/hangjiang/designmode/factory/SendMailFactory.java | UTF-8 | 227 | 2.0625 | 2 | [] | no_license | package com.hangjiang.designmode.factory;
/**
* Created by jianghang on 2017/4/29.
*/
public class SendMailFactory implements IProvider {
@Override
public ISender produce() {
return new MailSender();
}
}
| true |
c17935da2bc12736b2577646e2c7e54f6bb2600c | Java | harneet-9039/NotifyMe | /app/src/main/java/app/com/admin/Admin_ViewRequest.java | UTF-8 | 7,866 | 1.976563 | 2 | [] | no_license | package app.com.admin;
import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toolbar;
import androidx.appcompat.app.AppCompatActivity;... | true |
e1d0a5a2463cb15622d597155af9c8751787e942 | Java | zulkarnainfaizan/EduVisualize | /app/src/main/java/com/example/julqa_000/eduvisualize/StudentModule.java | UTF-8 | 7,860 | 2.171875 | 2 | [] | no_license | package com.example.julqa_000.eduvisualize;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.widget.AdapterView;
import android... | true |
0550dfcbc1973fd2b2972e34c4c29f654fe5a4d5 | Java | chpladmin/chpl-api | /chpl/chpl-service/src/main/java/gov/healthit/chpl/entity/statistics/CuresListingStatisticByAcbEntity.java | UTF-8 | 3,035 | 1.90625 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | package gov.healthit.chpl.entity.statistics;
import java.time.LocalDate;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import... | true |
6e426b9b22e6bd75fb399c3d77f97c879f916a6c | Java | jiujiujiujiujiuaia/SpringInAction | /spring/src/main/java/chapter4/AopTest.java | UTF-8 | 512 | 1.804688 | 2 | [] | no_license | package chapter4;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@Contex... | true |
aa55c6ac146939afe4a372f91dfad423619bf403 | Java | lilaoda/springcloundtest | /src/main/java/com/lhy/mybatis1/entity/User.java | UTF-8 | 506 | 2.015625 | 2 | [] | no_license | package com.lhy.mybatis1.entity;
import lombok.Data;
import javax.validation.constraints.Max;
import java.io.Serializable;
@Data
//@Table(name = "user")
public class User implements Serializable{
// @Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
@... | true |
d9d1fe40dabede049aaa3a53d74e722467ebe57c | Java | imjinghun/university | /sjms/Four/src/first/Women.java | UTF-8 | 65 | 2.0625 | 2 | [] | no_license | package first;
public interface Women {
public void play();
}
| true |
82b3daeb37c1b299de3c351e6f11f341e5be5241 | Java | diegojuarez6/Practice | /src/main/java/mx/utng/practice/controller/InstanceController.java | UTF-8 | 1,735 | 2.359375 | 2 | [] | no_license | package mx.utng.practice.controller;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
import javax.inject.Named;
import org.springframework.beans.factory.annotation.Autowired;
import mx.utng.practice.model.Instance;
import mx.utng.practice.repository.InstanceReposito... | true |
91eafdf66b591c11f593ec81097845134a931673 | Java | guoyongsheng/Zf_mobile | /app/src/main/java/com/zfsoftmh/entity/CanteenInfo.java | UTF-8 | 1,212 | 1.882813 | 2 | [] | no_license | package com.zfsoftmh.entity;
/**
* Created by li on 2017/8/3.
*/
public class CanteenInfo {
String canteenName;
String picPath;
String lunchBox;
String fullDiscount;
String description;
String isactive;
public String getCanteenName() {
return canteenName;
}
public void... | true |
ff406e12b282e0fc6a9b71233f1651e00741b526 | Java | Markmeimei/ZhiXin | /app/src/main/java/com/example/zhi/fragment/Fragment_Manage.java | UTF-8 | 2,141 | 1.914063 | 2 | [] | no_license | package com.example.zhi.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | true |
9a5e1ca6f4e4e7b20a93278e564113ac9b3c3509 | Java | 1742087/Android | /MusicForLife/app/src/main/java/com/example/musicforlife/SongModel.java | UTF-8 | 5,406 | 2.484375 | 2 | [] | no_license | package com.example.musicforlife;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.MediaMetadataRetriever;
import android.net.Uri;
import android.provider.MediaStore;
import android.util.Log;
import java.io.Byte... | true |
d98da441fe1e901e83c857e6294588b38a14cb4e | Java | naseermohammed23/DSLearning | /src/Trees/LeastCommonAcncestor.java | UTF-8 | 1,268 | 3.328125 | 3 | [] | no_license | package trees;
import trees.util.Node;
import trees.util.TreeUtil;
/**
* Tawheed TIPS Summer 2021
* Aug, 14, 2021 - Assignment
*
* Least Common Ancestor (LCA)
* https://classroom.google.com/c/MzcwMjU4Mzg4ODE0/a/Mzc1Njc3MjQ0Mjg1/details
*
* @author Naseer Mohammed Abdul
*/
public class LeastCommonAcncestor... | true |
e975f5c91b814957cf7cf66db2827e117aef25b4 | Java | Ayomilotunde/Toolbar_Practice | /app/src/main/java/com/ayomi/toolbarpractice/DataBaseHelper.java | UTF-8 | 2,646 | 2.5 | 2 | [] | no_license | package com.ayomi.toolbarpractice;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.widget.EditText;
import androidx.annotation.Nullable;
public class Da... | true |
f030775cce53d64d17d375dc301c0f27e6bce897 | Java | magic-coder/DaggerAndroid | /app/src/main/java/me/xiaobailong24/daggerandroid/di/component/MainActivitySubcomponent.java | UTF-8 | 723 | 1.953125 | 2 | [] | no_license | package me.xiaobailong24.daggerandroid.di.component;
import dagger.Subcomponent;
import dagger.android.AndroidInjector;
import me.xiaobailong24.daggerandroid.MainActivity;
import me.xiaobailong24.daggerandroid.di.module.KobeModule;
import me.xiaobailong24.daggerlibrary.di.scope.ActivityScope;
/**
* Created by xiaoba... | true |
d74195bff25c37cfb16e2a79a43213218edeb7f8 | Java | ryanrussell10/CSC-115-Programs | /StackNode.java | UTF-8 | 654 | 3.6875 | 4 | [] | no_license |
/*
* StackNode.java
*
* A plain-jane node for a ref-based Stack, assuming that the stack
* meant to contains nodes storing values of type T.
*
* UVic CSC 115, Spring 2017
*/
class StackNode<T> {
T data;
StackNode<T> next;
public StackNode(T data) {
this.data = data;
... | true |
fe330c623fdc1b81cf732cfbcf0a161407b10798 | Java | han-gyeol/Tdoo | /src/test/java/seedu/Tdoo/testutil/DeadlineListBuilder.java | UTF-8 | 707 | 2.875 | 3 | [
"MIT"
] | permissive | package seedu.Tdoo.testutil;
import seedu.Tdoo.model.TaskList;
import seedu.Tdoo.model.task.Task;
import seedu.Tdoo.model.task.UniqueTaskList;
/**
* A utility class to help with building TodoList objects. Example usage: <br>
* {@code TodoList ab = new DeadlineListBuilder().withTask("Assignment 1").build();}
*/
// ... | true |
fab31f0eedb1a91cac50f2854385c72c362f461f | Java | saketrule/Research_Project-HackerRank_CheckStyle | /Greedy/sherlock-and-minimax/java/rakshit_tanti.java | UTF-8 | 1,636 | 3.328125 | 3 | [] | no_license | import java.util.*;
class Solution {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] arr = new int[n];
for(int i = 0; i < n; i++) {
arr[i] = sc.nextInt();
}
Arrays.sort(arr);
... | true |
99370e952e5bbd1481d7557ca32b3fa9e961fbfe | Java | sarunassp/deleteLater2 | /src/main/java/lt/vu/rest/StudentRestService.java | UTF-8 | 1,409 | 2.5 | 2 | [] | no_license | package lt.vu.rest;
import lt.vu.asynchronous.CompA;
import lt.vu.entities.Student;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
@ApplicationScope... | true |
0574d1509f49b75e4cbe7cc336a7105d972bb84e | Java | zdx/recommendation-algorithms | /RSVD.java | GB18030 | 9,777 | 2.421875 | 2 | [] | no_license | package com.fangqiang.myutils;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Linked... | true |
a509ef43f32602b5e138e9cdc34f5c7ed7103f56 | Java | rockmeamadeus/cc | /callCenter/src/main/java/examen/callCenter/Director.java | UTF-8 | 154 | 1.921875 | 2 | [] | no_license | package examen.callCenter;
public class Director extends Empleado {
public Director() {
priority = 3;
queue.add(priority);
}
}
| true |
3c3e8455a04c8503056205f9f87fd6622252ef55 | Java | habeeb17/MasterKey | /src/main/java/com/makinus/masterkey/ChangeMasterPwdActivity.java | UTF-8 | 2,702 | 2.46875 | 2 | [] | no_license | package com.makinus.masterkey;
import com.makinus.masterkey.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditTe... | true |
add1a6365c63db231973dd9a1407ce3466c49cda | Java | t0HiiBwn/CoolapkRelease | /sources/com/amap/api/mapcore2d/dl.java | UTF-8 | 670 | 1.71875 | 2 | [] | no_license | package com.amap.api.mapcore2d;
import android.content.Context;
import java.lang.Thread;
/* compiled from: BasicLogHandler */
public class dl {
protected static dl a;
protected Thread.UncaughtExceptionHandler b;
protected boolean c = true;
protected void a() {
}
protected void a(Context cont... | true |
06fe2144a462aacf028f9bc6d2cf7c332e1801f6 | Java | WorldInEye/psp | /psp-web/src/main/java/com/psp/web/persist/impl/ServiceImpl.java | UTF-8 | 1,428 | 2.046875 | 2 | [] | no_license | package com.psp.web.persist.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.psp.web.model.CategoryBean;
import com.psp.web.persist.dao.ServiceDao;
@Repository
public class ServiceImpl extends BaseImpl implements ServiceDao {
... | true |
c0e3b046381d4c515826801f2331c5812e18649b | Java | JSansalone/GZMigration | /src/br/com/gz/migration/IDatabaseInfo.java | ISO-8859-1 | 572 | 2.09375 | 2 | [] | no_license | package br.com.gz.migration;
import org.database.connection.DatabaseConfigurations;
import br.com.gz.util.GZSoftwares;
/**
* Interface que fornece informaes sobre bancos de dados e o software utilizado
*
* @author Jonathan Sansalone
*
*/
public interface IDatabaseInfo {
/**
* Mtodo que retorna as configura... | true |
a52c40968dafd0927bc6f645627607fbc0564e96 | Java | yingCMU/Flight-Delay-Service | /app/models/YelpBiz.java | UTF-8 | 1,820 | 2.6875 | 3 | [] | no_license | package models;
public class YelpBiz {
protected double distance;
protected double rating;
protected String rating_img_url;
protected String image_url;
protected String name;
protected String categories;
protected String category;
protected String display_phone;
protected GeoLocation geoLocation;
protected S... | true |
ff77d4e524a8549c8eae373be0622d0456cb3893 | Java | treejames/workspace_e | /sea/src/model/com/nari/qrystat/colldataanalyse/LineEceltricQuantityDto.java | UTF-8 | 6,134 | 2.265625 | 2 | [] | no_license | package com.nari.qrystat.colldataanalyse;
import java.util.Date;
/**
*
* 线路电量查询DTO
* @author ChunMingLi
* @since 2010-6-23
*
*/
public class LineEceltricQuantityDto {
//供电单位编号
private String orgNo;
//供电单位
private String orgName;
//线路ID
private String lineId;
//线路名称
private String li... | true |
150092ffc5e7486cad55042dadad90854f6b8339 | Java | copperdale/CloudLadder | /CloudElevatorApp/app/src/main/java/com/studio/cloudelevator/task/Screenshot.java | UTF-8 | 5,544 | 2.140625 | 2 | [] | no_license | package com.studio.cloudelevator.task;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.mime.MultipartEnti... | true |
f0b3002bb506e60468ecc2d0851fbfee98562d2c | Java | MadMcFly/Some-LC | /Linked List/Demo234_Palindrome_Linked_List.java | UTF-8 | 1,059 | 3.484375 | 3 | [] | no_license | import java.util.ArrayList;
public class Demo234_Palindrome_Linked_List {
public static void main(String[] args) {
ListNode l1 = new ListNode(-129);
ListNode l2 = new ListNode(-129);
l1.next = l2;
System.out.println(new Solution_234().isPalindrome(l1));
}
}
class Solution_234 {
public boolea... | true |
533798a3242d42775c219126d74038625d3dbc3c | Java | mklump/CS_OIT2005Degree_Accademic_Work | /CST 407 Java J2EE/examples/chapters/DeitelBookstore/OrderProductEJB.java | UTF-8 | 4,485 | 2.421875 | 2 | [] | no_license | // OrderProductEJB.java
// Entity EJB OrderProductEJB represents the mapping between
// a Product and an Order, including the quantity of the
// Product in the Order.
package com.deitel.advjhtp1.bookstore.ejb;
// Java core packages
import java.rmi.RemoteException;
// Java extension packages
import javax.ejb.*;
impor... | true |
65612385ebb59dd399b76e634e841a29d5d540e3 | Java | Jonhcs/projeto-jdbc-servlet-jsp | /src/servlet/CadastroUsuario.java | ISO-8859-2 | 8,924 | 2.15625 | 2 | [] | no_license | package servlet;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import java... | true |
536aea56c5190042533ea3cb03208c09c91af10e | Java | sirinath/Terracotta | /dso/branches/2.4.1/code/base/common/src/com/tc/bundles/RequiredBundleSpec.java | UTF-8 | 5,274 | 2.1875 | 2 | [] | no_license | /*
* All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
*/
package com.tc.bundles;
import org.osgi.framework.BundleException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.M... | true |
3506717b9feb5d03aceefe57a5f3d90196d9e50f | Java | mwlevin/HeatedPavement | /src/heatedpavement/Gate.java | UTF-8 | 1,263 | 2.453125 | 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 heatedpavement;
import ilog.concert.IloException;
import ilog.cplex.IloCplex;
/**
* flow in = flow out
* @autho... | true |
67e09cf318c2b923c4ae696f19665c3eee8b4abf | Java | owenlejeune/IOU | /app/src/main/java/com/owenlejeune/iou/MyAppWidgetProvider.java | UTF-8 | 2,219 | 2.203125 | 2 | [] | no_license | package com.owenlejeune.iou;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.RemoteViews;
import android.widget.Toast;
import java.util.ArrayLis... | true |
d4fdf1bd05dd4750db5da296a20a1dc42773b6da | Java | Karuna595/HO-T2March2020 | /app01/src/main/java/com/mastek/app/App.java | UTF-8 | 899 | 2.421875 | 2 | [] | no_license | package com.mastek.app;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.mastek.app.config.AppConfig;
import com.mastek.app.service.CustomerService;
/**... | true |
9198e4c8e3af1ca82631431edd8dd089d1594706 | Java | grenouille82/etreegcs | /src/main/java/de/ovgu/dke/clustering/msctest/SampleDataset.java | UTF-8 | 2,048 | 2.609375 | 3 | [] | no_license | package de.ovgu.dke.clustering.msctest;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Random;
import de.ovgu.dke.util.ObjectSet;
import de.ovgu.dke.util.ObjectWrapper;
import de.ovgu.dke.util.SimpleObjectSet;
import de.ovgu.dke.util.SimpleObjectWrapper;
public class SampleDataset... | true |
53d9984db86cb7c43b68d152a6a4345bca16eeda | Java | nagaikenshin/schemaOrg | /schemaOrgDomaConv/src/org/kyojo/schemaOrg/m3n3/doma/core/container/ExifDataConverter.java | UTF-8 | 553 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package org.kyojo.schemaorg.m3n3.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n3.core.impl.EXIF_DATA;
import org.kyojo.schemaorg.m3n3.core.Container.ExifData;
@ExternalDomain
public class ExifDataConverter implements Doma... | true |
3731ec87a2f6bade72e15b692a27b0c1f7a28514 | Java | cbodi/ALC-4.0-Challenge-2 | /app/src/main/java/net/zealtechconsulting/travelmantics/TravelDeal.java | UTF-8 | 1,733 | 2.875 | 3 | [] | no_license | package net.zealtechconsulting.travelmantics;
import java.io.Serializable;
//The TravelDeal class implements the Serializable class so that the TravelDeal class can be passed in the putExtra
//method of an Intent. For performance reasons, it will be better to use the Parcelable interface
public class TravelDeal imple... | true |
8c79f00f865b9cdb74f5112e1696281f70d4b7f3 | Java | chanyaz/ewe-android-hack | /project/src/main/java/com/expedia/bookings/data/trips/CustomerSupport.java | UTF-8 | 2,452 | 2.25 | 2 | [] | no_license | package com.expedia.bookings.data.trips;
import org.json.JSONException;
import org.json.JSONObject;
import com.mobiata.android.Log;
import com.mobiata.android.json.JSONable;
public class CustomerSupport implements JSONable {
private static final String JSON_SUPPORT_URL = "customerSupportURL";
private static final... | true |
a354c224982ada0803f019cf5f3b066902a3deb3 | Java | AliakseiLasevich/ggau | /src/main/java/app/model/dto/request/BuildingRequest.java | UTF-8 | 322 | 1.835938 | 2 | [] | no_license | package app.model.dto.request;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BuildingRequest {
@NotEmpty
private String name;
... | true |
42dfaa48b3f588b70c6447eb3f40c3bab778deef | Java | myrddian/9X-Pasta | /ciotola/src/main/java/ciotola/implementation/DefaultCiotolaContainer.java | UTF-8 | 13,384 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2021. Enzo Reyes Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
264d11a51144426c5e0cd709753555b28fc942ea | Java | DarrickAZ/rsbi | /src/main/java/com/ruisi/ext/engine/view/rules/cross/TotalDsRule.java | UTF-8 | 815 | 1.648438 | 2 | [] | no_license | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.ruisi.ext.engine.view.rules.cross;
import com.ruisi.ext.engine.init.TemplateManager;
import com.ruisi.ext.engine.view.context.cross.CrossReportContext;
import org.apache.commons.digester.Rule;
public ... | true |
eebc4513bb0eeae85c31fe8caf1bfb4b81960718 | Java | bangjeongjin/flowstudent | /src/flowctrl/java/exam06/finalFieldsAndConstants/Person.java | UHC | 285 | 2.703125 | 3 | [] | no_license | package flowctrl.java.exam06.finalFieldsAndConstants;
public class Person { //finalʵ ʱȭ
final String nation = "Koera";
final String ssn;
String name;
public Person (String ssn, String name) {
this.ssn = ssn;
this.name = name;
}
}
| true |
d144e2c08004d05efb223ef324a0625f39c8bd6b | Java | DndyDev/JavaItis9 | /Projects/18. Recursion/src/ru/itis/MainRecursion.java | UTF-8 | 780 | 3.53125 | 4 | [] | no_license | package ru.itis;
/**
* 28.02.2019
* MainRecursion
*
* @author Sidikov Marsel (First Software Engineering Platform)
* @version v1.0
*/
public class MainRecursion {
public static int step = 0;
public static int fact(int n) {
System.out.println(">>> " + step + ", in fact(" + n + ")");
step... | true |
249eb4905575173235ae27e9df542922746b3d0a | Java | amkimian/OG-Platform | /projects/OG-Web/src/main/java/com/opengamma/web/analytics/AnalyticsViewClientConnection.java | UTF-8 | 9,976 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.web.analytics;
import java.util.List;
import com.google.common.collect.Lists;
import com.opengamma.OpenGammaRuntimeException;
import com.opengamma.engine.mark... | true |
12eabbb1ec53486da89211b28ce6f352f05f7d0f | Java | taidangit/springframework | /spring-webflow-demo/src/main/java/com/luv2code/dao/MessageDAO.java | UTF-8 | 259 | 1.914063 | 2 | [] | no_license | package com.luv2code.dao;
import java.util.List;
import com.luv2code.entity.Messages;
public interface MessageDAO {
List<Messages> getMessages();
Messages getMessageById(int id);
void saveMessage(Messages message);
void deleteMessage(int id);
}
| true |
19913a0224897d04923a01c983a2d743b42465b0 | Java | larzm42/dom3editor | /org.larz.dom3.dm/src-gen/org/larz/dom3/dm/dm/GeneralInst1.java | UTF-8 | 18,361 | 1.78125 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
*/
package org.larz.dom3.dm.dm;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>General Inst1</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.larz.dom3.dm.dm.GeneralInst1#getValue <... | true |
3035da51a613f7290f196d6f90e270f19eb66398 | Java | houzhanwu/ycej | /ycej-workflow/src/main/java/com/yicheejia/workflow/service/ActivitiBaseService.java | UTF-8 | 2,295 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.yicheejia.workflow.service;
import java.util.List;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
/**
* Activiti 常用service
* @author hunk
*
*/
public interface ActivitiBaseService {
/**
* 获取用户当前处于代办人的任务集合 只查user
*
* @param userId
... | true |
6d8e30c05a08720a36a4dd36b1577cca2e00a643 | Java | Kai2314/SL314 | /src/servlet_examples/MessageSource.java | UTF-8 | 479 | 2.40625 | 2 | [] | no_license | package servlet_examples;
import java.io.*;
import java.net.*;
import java.rmi.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.RemoteDaemonHttpServlet;
// MessageSource acts as the source for new messages.
// Clients interested in receiving new messages can
// o... | true |
04c1f426a65c312145371fd6540809b7812acba7 | Java | impuls93/Design-Patterns-Practice-Strategy | /src/com/impuls/designpatterns/practice/classimplementation/DecoyImp.java | UTF-8 | 450 | 2.671875 | 3 | [] | no_license | package com.impuls.designpatterns.practice.classimplementation;
import com.impuls.designpatterns.practice.abstractclasses.Decoy;
import com.impuls.designpatterns.practice.interfaceimplementation.NoQuacking;
public class DecoyImp extends Decoy{
public DecoyImp()
{
quackinterface = new NoQuacking();
}
... | true |
d658ff09ae8ecc75fc9f610506ec9d18e34028b6 | Java | mosamo/Image_Sharing_App_Android | /app/src/main/java/com/example/image_sharing_app/FriendsActivity.java | UTF-8 | 2,595 | 2.40625 | 2 | [] | no_license | package com.example.image_sharing_app;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.parse.Find... | true |
80f47a16fee2b96d72acb45fb2e5d1505869560f | Java | ReutAttar/Android-studio-app | /Android5778_0920_9377_01/app/src/main/java/com/example/inbal/android5778_0920_9377_01/model/entities/Client.java | UTF-8 | 1,483 | 2.6875 | 3 | [] | no_license | package com.example.inbal.android5778_0920_9377_01.model.entities;
/**
* Created by inbal on 19/11/2017.
*/
public class Client {
private String lastName;
private String firstName;
private String ID;
private String phoneNumber;
private String email;
private String creditCardNumber;
publ... | true |
7600470761eae4bed8dee8fbe1ed3e938d88e6e2 | Java | leinadlime/oulipo | /oulipo-streams/src/main/java/org/oulipo/streams/opcodes/SwapVariantOp.java | UTF-8 | 3,166 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* OulipoMachine 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 may obtain a copy of the License at
*
* http://ww... | true |
8f8e0238052a4781731b9d99504f348a51842e63 | Java | HowDeliveryWorks/Delivery | /Delivery/src/main/java/Delivery/enums/ConstructorCategory.java | UTF-8 | 568 | 2.78125 | 3 | [] | no_license | /**
* Created by Max on 02.05.2017.
*/
/**
* TODO: Do total ingredients review and refactor.
* TODO: Wire enums {@link BreadType} {@link MeatType} etc. to generic class/interface
*/
/**
package Delivery.model;
public class ConstructorCategory<T> {
private T category;
public ConstructorCategory(T arg) {... | true |
5612530e44705650e0ec03a7b6c42b39c98d860f | Java | Aarteksoftwaresolutions2013/Citibreak | /pocket-site/src/main/java/fr/littlereddot/pocket/site/dto/WeatherDataResponse.java | UTF-8 | 576 | 2.078125 | 2 | [] | no_license | package fr.littlereddot.pocket.site.dto;
import java.util.List;
/**
* @author Guillaume Le Biller (<i>guillaume.lebiller@gmail.com</i>)
* @version $Id$
*/
public class WeatherDataResponse {
private List<WeatherData> weather;
private MainData main;
public WeatherDataResponse() {
}
public List<... | true |
493ec0cb3f8065b48fa9b313b696bbb5fd2d78a1 | Java | lakhlifi-sdk/psycho_app_android | /app/src/main/java/com/lakhlifi/blog/Fragments/HomeFragment.java | UTF-8 | 5,278 | 2.03125 | 2 | [] | no_license | package com.lakhlifi.blog.Fragments;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import android.widget.Toolbar;
import androidx.annotation.No... | true |
b495234498e1beedd315718237fadce106c15c04 | Java | MrArliton/SOM | /core/src/com/arli/som/GameElement/GameClass.java | UTF-8 | 4,851 | 2.546875 | 3 | [] | no_license | package com.arli.som.GameElement;
import com.arli.som.Constants;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.input.GestureDetector;
import com.badlogic.gdx.utils.viewport.FitViewport;
impor... | true |
daeba4e6d147c45365f1e31fb96df75ce44c9827 | Java | alibaba/metrics | /metrics-os/src/test/java/com/alibaba/metrics/os/linux/SystemLoadGaugeSetTest.java | UTF-8 | 1,962 | 1.960938 | 2 | [
"Apache-2.0",
"CC0-1.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
673c9e4704e335d5d2f6e3a35aa79136ef2bb30c | Java | rdanielmurphy/FundFind | /app/src/main/java/app/sbaloan/models/IndustrySearchOptionDto.java | UTF-8 | 384 | 2.140625 | 2 | [
"CC-BY-3.0"
] | permissive | package app.sbaloan.models;
/**
* Created by danielmurphy on 10/10/15.
*/
public class IndustrySearchOptionDto extends SearchOptionDto {
private String fullTitle;
public IndustrySearchOptionDto(int btnResource, String fullTitle) {
super(btnResource);
this.fullTitle = fullTitle;
}
p... | true |
6f20d05e1bde1e3f3c3f3eb3ceae6c8d22bbc278 | Java | jsoliman/spam | /com/drin/java/metrics/ITSRegionMedianMetric.java | UTF-8 | 2,492 | 2.390625 | 2 | [] | no_license | package com.drin.java.metrics;
import com.drin.java.biology.ITSRegion;
import com.drin.java.biology.Pyroprint;
import com.drin.java.metrics.ITSRegionMetric;
import com.drin.java.metrics.PyroprintComparator;
import com.drin.java.metrics.PyroprintMetric;
import java.util.List;
import java.util.ArrayList;
import com.d... | true |
eec3999d0e54915de8e3f828ea870fcf7e369943 | Java | saurabh5788/bank-parent | /bank-soap-ws/src/main/java/com/bank/service/dto/response/AccountTypeDTO.java | UTF-8 | 510 | 2.046875 | 2 | [] | no_license | package com.bank.service.dto.response;
public class AccountTypeDTO {
private String code;
private String value;
private String description;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getValue() {
return value;
}
public void setValue(Str... | true |
df455edd19d15985a42c149a5fb8d7d8fc126451 | Java | rbnpantha/HackerrankSolutions | /HackerrankDataStructure/src/edu/hackerrank/tree/HuffmanDecoding.java | UTF-8 | 530 | 3.03125 | 3 | [] | no_license | package edu.hackerrank.tree;
public class HuffmanDecoding {
void decode(String S ,Node root)
{
Node node = root;
for (int i = 0; i < S.length(); i++) {
node = S.charAt(i) == '0' ? node.left : node.right;
if (node.left == null && node.right == null) {
Sy... | true |
3138659920855e196dc7ee3dcf6d0a584b8757b8 | Java | fanchaojian/FanBlog_java | /src/java/com/fanchaojian/utils/ResultUtils.java | UTF-8 | 646 | 2.265625 | 2 | [] | no_license | package com.fanchaojian.utils;
/**
* 统一返回结果工具类
* @author fanchaojian
* @date 2020-9-29 - 15:48
*/
public class ResultUtils {
public static JsonResult success(Object object) {
JsonResult result = new JsonResult();
result.setCode(0);
result.setMsg("成功");
result.setData(object);
... | true |
84bb47f3cf704fc20be7c093a32ff16b2d2c433f | Java | iism-code/iism-measure | /java/iism-measure/src/org/iism/measure/TimeMeasure.java | UTF-8 | 1,498 | 2.546875 | 3 | [
"MIT"
] | permissive | package org.iism.measure;
import java.util.HashMap;
import java.util.HashSet;
public class TimeMeasure implements AutoCloseable {
static HashMap<String, TimeMeasureData> timeMeasureMap = new HashMap<String, TimeMeasureData>();
private TimeMeasure(TimeMeasureData timeMeasureData) {
this.timeMeasureData = timeMea... | true |
60edd53916068766088cb9bfe88fedc453fde2b4 | Java | RebortBoss/KPlayer | /KPlayer/src/com/xk/player/ui/VoiceBody.java | UTF-8 | 797 | 2.359375 | 2 | [] | no_license | package com.xk.player.ui;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import com.xk.player.uilib.JBody;
public class VoiceBody implements JBody {
@Override
public void draw(GC gc,int pointX,int width,int height) {
boolean adv=gc.getAdvanced(... | true |
2e02ec8bc079e8e26be7b9d5b7350a4fbdd32fb1 | Java | murongfeng66/platform | /platform-common/src/main/java/com/jwzhu/platform/common/enums/YesOrNo.java | UTF-8 | 1,308 | 2.8125 | 3 | [] | no_license | package com.jwzhu.platform.common.enums;
import java.util.HashMap;
import java.util.Map;
import com.jwzhu.platform.common.exception.SystemException;
import com.jwzhu.platform.plugs.jsonescape.bind.JsonEscapeInterface;
/**
* 是否枚举
**/
public enum YesOrNo implements JsonEscapeInterface<Short> {
Yes((short) 1, "是... | true |
f17c568c0bf11c417244fb00ff3cbcf3b09f39cc | Java | r2bapps/BaseProject | /BaseProject/src/r2b/apps/lib/taskmanager/BaseSyncTask.java | UTF-8 | 3,410 | 2.859375 | 3 | [
"MIT"
] | permissive | /*
* BaseSyncTask
*
* 0.2
*
* 2014/06/21
*
* (The MIT License)
*
* Copyright (c) R2B Apps <r2b.apps@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* 'Software'), to deal in the Software without rest... | true |
1d3baba81307fba328fbcd4142eb9eaa4c94d180 | Java | adelgadillog/adn-backend-ceiba | /microservicio/dominio/src/test/java/com/ceiba/pedido/servicio/testdatabuilder/DtoTrmTestDataBuilder.java | UTF-8 | 395 | 2.25 | 2 | [] | no_license | package com.ceiba.pedido.servicio.testdatabuilder;
import com.ceiba.trm.modelo.DtoTrm;
public class DtoTrmTestDataBuilder {
private String mensaje;
private String valor;
public DtoTrmTestDataBuilder(String mensaje,String valor) {
this.mensaje = mensaje;
this.valor = valor;
}
p... | true |
ceee9b4cf6c23b8eaddc70e4e2c519b1cbb5e579 | Java | LuboViluda/loyalty-service | /src/main/java/com/playground/loyalitypointsservice/UserLoyaltyDto.java | UTF-8 | 968 | 2.03125 | 2 | [] | no_license | package com.playground.loyalitypointsservice;
import com.fasterxml.jackson.annotation.JsonInclude;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
public class UserLoyaltyDto {
private String id;
private String href;
@JsonInclude(NON_NULL)
private Long points;
@JsonIn... | true |
366cfdb18f2f2090284538a49d9ef414c6080b2f | Java | seungyean/kobook_final | /kobook_final/src/main/java/com/kobook/controller/CommunityController.java | UTF-8 | 26,810 | 1.773438 | 2 | [] | no_license | package com.kobook.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;... | true |
045b55098dda5d6e8e4acaa7e3d0eadedf30e4ab | Java | CodeLearner-ICU/ThinkInJava | /src/main/java/thinkinjava/date5/Circle.java | UTF-8 | 380 | 3.390625 | 3 | [] | no_license | package thinkinjava.date5;
class Shape{
void draw(){
System.out.println("Shape.draw()");
}
}
public class Circle extends Shape{
void draw(){
System.out.println("Circle.draw()");
}
public static void main(String[] args) {
Shape s = new Circle();
//Circle c = (Circle)... | true |
0dc7f8251f8f875873ee7bb9473b9afedaa8de90 | Java | Siyabulela/Java-Assignments-2017 | /CHAPTER 8/EmployeeIDArray.java | UTF-8 | 624 | 3.390625 | 3 | [] | no_license | /*Store 20 employee ID numbers in an integer array and 20 corresponding employee last
names in a String array. Use dialog boxes to accept an ID number, and display the
appropriate last name. Save the application as EmployeeIDArray.java.*/
import javax.swing.JOptionPane;
public class EmployeeIDArray
{
public static v... | true |
61a5bd1b0b210fdc370a5f0160cf948e36654b96 | Java | s-manannikov/job4j_threads | /src/main/java/ru/job4j/concurrent/Wget.java | UTF-8 | 1,704 | 3.265625 | 3 | [] | no_license | package ru.job4j.concurrent;
import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
public class Wget implements Runnable {
private final String url;
private final String destination;
private final int speed;
public Wget(String url, Strin... | true |
bc2c38d4c3f5db6a3ca636123cff84e7eb3bc935 | Java | ElectricAegis/SoftDev3LABPodSearch | /src/pod_search/model/PodcastDAOModelTest.java | UTF-8 | 1,213 | 2.59375 | 3 | [] | no_license | package pod_search.model;
public class PodcastDAOModelTest extends PodcastDAOModel {
private PodcastModel[] testInsert;
public PodcastDAOModelTest() {
super("");
}
public PodcastModel[] selectQuery(String filter) {
int total = 2;
if (testInsert != null) {
total +... | true |
fe0b5b3afe04c8958eda5d47181254714b521bad | Java | kimnamo0113/jdbc_study | /src/jdbc_study/jdbc/MySQLjdbcUtil.java | UTF-8 | 1,085 | 2.59375 | 3 | [] | no_license | package jdbc_study.jdbc;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Map.Entry;
import java.util.Properties;
public class MySQLjdbcUtil {
// public static void main(String[] args) throws SQ... | true |
2a6acb6b9c327480262cffeb1d94ce6c762fbfba | Java | peavers-archive/terrible-api-service | /src/main/java/io/terrible/api/controller/SearchController.java | UTF-8 | 893 | 1.859375 | 2 | [] | no_license | /* Licensed under Apache-2.0 */
package io.terrible.api.controller;
import io.terrible.api.domain.MediaFile;
import io.terrible.api.services.SearchService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Flux;
impo... | true |
608f86140f7eb1e08fdd29b8e4efb474b75fbf70 | Java | OscarMiddagh/Gestion-de-usuarios-UMSS | /src/main/java/com/qualityhunters/Model/DetPerRol.java | UTF-8 | 996 | 2.421875 | 2 | [] | no_license | package com.qualityhunters.Model;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class DetPerRol {
@Id
@GeneratedValue(strateg... | true |
ed94c53890c192a3129c3f8266e2a1417f6a948d | Java | kkjy0519/bouncycastle | /Crypto/SimpleSymmetricExample.java | UTF-8 | 2,051 | 2.78125 | 3 | [] | no_license | import java.security.Security;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class SimpleSymmetricExample {
public static void main(String args[]) throws Exception
{
... | true |
a58f5bb0a89e189f1834ee80c0afd4bc7aff5794 | Java | huuhan2507/C1020G1-Tranhuuhan | /Module2/Java/src/ss11_dsa_queue_stack/exercise/PalindromeCheck.java | UTF-8 | 1,163 | 4.125 | 4 | [] | no_license | package ss11_dsa_queue_stack.exercise;
import java.util.Deque;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Stack;
public class PalindromeCheck {
public static void main(String[] args) {
Scanner input = new Scanner( System.in );
System.out.println( "Enter your string: " ... | true |
9616d74c66ab3ffbc3cae8322db1434c4fbcf3e5 | Java | billee1011/LGameQiPai | /LCommModule/src/main/java/com/module/SortType.java | UTF-8 | 505 | 2.5 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.module;
/**
* 排序类型
*
* @author leroy
*/
public enum SortType {
/**
* 升序
*/
Asc(1),
/**
* 降... | true |
50a482af88b5dd7911c6cc4b4efadbb4caa5138c | Java | nipulgurupatel/optmay2016 | /opt-may-2016/dayana/com/chapter4/assignment4/Developer.java | UTF-8 | 629 | 3.265625 | 3 | [] | no_license | package com.chapter4.assignment4;
public class Developer extends Employee {
private String technology;
public Developer() {
super();
}
public Developer(String firstName, String lastName, int employeeId, String salary, String role, String technology) {
super(firstName, lastName, employeeId, salary... | true |
f189acc6f370a5ba9dc4a0833134bb097489f2a5 | Java | camearle20/Monopoly | /src/net/came20/monopoly/run/server/RunServer.java | UTF-8 | 1,761 | 2.015625 | 2 | [] | no_license | package net.came20.monopoly.run.server;
import net.came20.camecommand.CameCommand;
import net.came20.camecommand.command.Command;
import net.came20.camecommand.command.DefaultCommands;
import net.came20.camecommand.parameter.Parameter;
import net.came20.camecommand.parameter.ParameterNone;
import net.came20.monopoly.c... | true |
a09874b7cb7396c2dea024005a491bef07087787 | Java | Autilite/News-With-Reddit | /app/src/main/java/com/autilite/newswithreddit/util/ThumbnailUtil.java | UTF-8 | 776 | 2.609375 | 3 | [] | no_license | package com.autilite.newswithreddit.util;
import com.autilite.newswithreddit.R;
/**
* Created by kelvin on 6/9/15.
*/
public class ThumbnailUtil {
/**
* Returns the resource id of the static reddit thumbnails.
* @param thumbnail
* The thumbnail resource to retrieve
* @return
* ... | true |
f8919b7fdb290fd0ffc0049eb15cc1c6eacec974 | Java | RyanFu/AndroidCamera2Focus | /app/src/main/java/com/example/openandroid/view/focus/FocusViewController.java | UTF-8 | 8,346 | 2.15625 | 2 | [] | no_license | package com.example.openandroid.view.focus;
import android.app.Activity;
import android.graphics.RectF;
import android.util.Log;
import android.widget.FrameLayout;
import com.example.openandroid.ICameraImp;
import com.example.openandroid.R;
import com.example.openandroid.util.Camera2Utils;
/**
* The focus controlle... | true |
c823f1a56666ae758fc8ea8e52ade4c64cf52b86 | Java | project-ncl/bacon | /pig/src/test/java/org/jboss/pnc/bacon/pig/impl/addons/quarkus/QuarkusCommunityDepAnalyzerTest.java | UTF-8 | 3,006 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package org.jboss.pnc.bacon.pig.impl.addons.quarkus;
import org.assertj.core.util.Files;
import org.jboss.pnc.bacon.config.Config;
import org.jboss.pnc.bacon.config.ConfigProfile;
import org.jboss.pnc.bacon.config.DaConfig;
import org.jboss.pnc.bacon.config.PigConfig;
import org.jboss.pnc.bacon.pig.impl.PigContext;
im... | true |
c3ce7703666dfee81cf4840934f931df7677d931 | Java | udbhavgarg/E-dac2020 | /Assignment_01 By Udbhav_Garg/assg_12.java | UTF-8 | 283 | 2.515625 | 3 | [] | no_license |
import java.util.Scanner;
public class assg_12 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i, j,k;
i = sc.nextInt();
j = sc.nextInt();
k=sc.nextInt();
int avg=(i+j+k)/3;
System.out.print(avg);
sc.close();
}
} | true |
1dd32c9487ffe49369e04da3d0eeff57f242be15 | Java | Ho-Lee-Schitt/ConcurrentAssign2 | /src/Question2/MathServerHttp.java | UTF-8 | 908 | 2.46875 | 2 | [] | no_license | package Question2;
/**
* Created by cgf13hun on 07/04/2017.
*/
import com.sun.net.httpserver.HttpServer;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.logging.Level;
import java.util.logging.Logger;
public class MathServerHttp
{
// static logger
public static final Logge... | true |
bf9894800e38d60f3f8e2374c8524eae11026b7b | Java | theunreplicated/coloradocollegegame | /ElementStack.java | UTF-8 | 1,285 | 3.546875 | 4 | [] | no_license | public class ElementStack<K>
{
private LinkedHolder<K> first = null;
public synchronized void push(K _newElement)
{
LinkedHolder<K> newElement = new LinkedHolder<K>(_newElement);
if(first == null)
{
first = newElement;
first.next = first.prev = first;
}
else
{
first.insertBefore(newElement);
... | true |
ade457e8647cc33a8c4d94fd3caa946a8ee577e7 | Java | iondv/ion-old-java-version-20140819 | /liquibase-service-plugin/src/com/svcdelivery/liquibase/eclipse/v3/LiquibaseServiceV3.java | UTF-8 | 6,534 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.svcdelivery.liquibase.eclipse.v3;
import java.io.File;
import java.io.IOException;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import liquibase.CatalogAndSchema;
import liquibase.Liquibase;
import liquibase.change.C... | true |
88da3de73c54a53dce2908790bd1153d2bd4dae1 | Java | tomelf/Entree-Android | /app/src/main/java/edu/purdue/entreemobile/entreeproject/util/db/CacheImageHelper.java | UTF-8 | 2,773 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package edu.purdue.entreemobile.entreeproject.util.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by kane on 3/9/15.
*/
public class CacheImageHelper extends SQLiteOpenHelper {
public static final int DATABASE_VER... | true |
5aa52456bae0a90854835d6b7877e02c346ac303 | Java | kamleshbadgujar/POC | /src/main/java/com/poc/service/RestApiCall.java | UTF-8 | 244 | 1.804688 | 2 | [] | no_license | package com.poc.service;
import java.util.Map;
import org.springframework.stereotype.Service;
@Service
public interface RestApiCall {
public void callRestApi(String url, String method);
public Map<String, String> getResponseMap();
}
| true |
e2f9e08a89aeeb43908c81bd0e9e3be027e23b32 | Java | Jhenerson/banksys | /src/login/LoginFuncionario.java | UTF-8 | 758 | 2.40625 | 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 login;
import entidades.Funcionario;
import persistencia.PFuncionario;
/**
*
* @author rodolpho.repezza
*/
public class Lo... | true |
b4f712df1228bcf5103e29014151b74847571692 | Java | coderandyli/dynamic-thread-pool | /dtp-admin/src/main/java/com/coderandyli/dtp/monitor/alert/notification/UrgencyNotification.java | UTF-8 | 737 | 2.265625 | 2 | [] | no_license | package com.coderandyli.dtp.monitor.alert.notification;
import com.coderandyli.dtp.monitor.alert.sender.MsgSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
/**
* 【紧急】通知
* - send ema... | true |