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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bf1d4902d2486825f3bb9c3b2bd521b94ad7464b | Java | leshalv/idp | /idp/src/main/java/com/huoyun/idp/saml2/configuration/SAML2TrustedSPSBOCustomImpl.java | UTF-8 | 16,149 | 1.59375 | 2 | [] | no_license | package com.huoyun.idp.saml2.configuration;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.sap.security.saml2.cfg.custom.SAML2ConfigurationCustomConstants;
import com.sap.security.saml2.cfg.cu... | true |
66a4e4c0091ac774753e9c429b37d7b925334a58 | Java | uwitec/nc-wandashan | /hgpu/client/nc/ui/hg/pu/pub/PlanPubHelper.java | GB18030 | 3,251 | 1.734375 | 2 | [] | no_license | package nc.ui.hg.pu.pub;
import java.util.HashMap;
import java.util.Map;
import nc.itf.pp.ask.IAsk;
import nc.ui.pub.ClientEnvironment;
import nc.vo.hg.pu.pact.PactItemVO;
import nc.vo.hg.pu.pub.HgPubTool;
import nc.vo.hg.pu.pub.PlanApplyInforVO;
import nc.vo.pp.ask.VendorVO;
import nc.vo.pub.BusinessExcep... | true |
953b2cc6fc3912e44bdff3be6db89ff1b51405c6 | Java | jully-nixon/JJGF | /src/jjgf/cardapio/NegocioCardapio.java | UTF-8 | 6,253 | 2.78125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package JJGF.cardapio;
/**
*
* @author jadil
*/
public class NegocioCardapio {
public void cadastrarCardapio(Cardapio c) t... | true |
1b52cbcc07509f7d56540e1ba1dca68d0b1ee3b6 | Java | jielen/puer | /src/com/ufgov/zc/server/zc/dao/IZcExpertQuestionContentDao.java | UTF-8 | 678 | 1.59375 | 2 | [] | no_license | package com.ufgov.zc.server.zc.dao;
import java.util.List;
import com.ufgov.zc.common.system.dto.ElementConditionDto;
import com.ufgov.zc.common.zc.model.ZcExpertQuestion;
import com.ufgov.zc.common.zc.model.ZcExpertQuestionContent;
public interface IZcExpertQuestionContentDao {
public void insertZcExpertQuestion... | true |
fe932cdd5e24f34b9664be50aba7bb3188c4e4f7 | Java | orasoftTeam/infomedicaplication | /infomedicaplication-jar/src/main/java/com/infomedic/forms/HorarioXServicioForm.java | UTF-8 | 2,668 | 2.4375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.infomedic.forms;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author LAP
*/
public class Horario... | true |
f78101cf7ea92b2c0bb2b12eacba4c9294613753 | Java | vyacheslav-gurov/JavaClassScanning | /src/org/gurov/scan/Main.java | UTF-8 | 1,483 | 2.375 | 2 | [] | no_license | package org.gurov.scan;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import org.gurov.scan.handler.GetClasses;
import org.gurov.scan.handler.PrintClasses;
import org.gurov.scan.handler.SaveClasses;
import org.gurov.scan.intarfaces.IGetClas... | true |
cfb1b8ebcff729010f96331896a51a247aa84ddf | Java | Jeimmi/FriendsListView | /app/src/main/java/com/example/jeimmi/friendslistview/FriendsListView.java | UTF-8 | 676 | 2.1875 | 2 | [] | no_license | package com.example.jeimmi.friendslistview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class FriendsListView extends AppCompatActivity {
String [] friends = {"Dennis","David","GG"};
@Override
protect... | true |
3c2d826cbcf717bc33532a863a55cd1e18dbae33 | Java | xxoochyh/grind-web | /src/main/java/com/stack/api/mapper/DryWindPressureMapper.java | UTF-8 | 3,172 | 1.921875 | 2 | [] | no_license | package com.stack.api.mapper;
import com.stack.api.entity.DryWindPressure;
import com.stack.api.entity.DryWindPressureExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DryWindPressureMapper {
/**
* This method was generated by MyBatis Generator.
* This method c... | true |
b9518121e7b072637d8549d100d0cfb34e412cd4 | Java | wisnu000/kamusmedis | /app/src/main/java/com/philos/kamusmedis/KamusDatabase.java | UTF-8 | 500 | 1.976563 | 2 | [] | no_license | package com.philos.kamusmedis;
import android.content.Context;
import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
/**
* Created by PHILOS on 5/28/2017.
*/
public class KamusDatabase extends SQLiteAssetHelper {
private static final String DATABASE_NAMES = "kamus";
private static final int DATABAS... | true |
32bd923f00b06ba1d8c49ec73efe6c1fcfe9a043 | Java | ChenmingPengPG/MobileInfo | /app/src/main/java/com/mobile/mobileinfo/util/PermissionUtil.java | UTF-8 | 2,280 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.mobile.mobileinfo.util;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import java.util.ArrayList;
import java.util.List;
public class PermissionUtil {
/**
* 动态权限申请
*/
public stati... | true |
ee801030636e6627e8ad1c7ea5425fa654bdaea3 | Java | leinuo2016/Design-Pattren | /src/com/leinuo/design1/templateMethodPattern/Client.java | UTF-8 | 394 | 2.515625 | 3 | [] | no_license | package com.leinuo.design1.templateMethodPattern;
/**
* Create by leinuo on 20-1-16 下午3:41
* <p>
* qq:1321404703 https://github.com/leinuo2016
*
* 模板方法模式
*/
public class Client {
public static void main(String[] args) {
H1Model h1 = new H1Model();
h1.setAlarm(true);
h1.run();
... | true |
6294b174dc0f18dfb8f8a6414ae42df5ede86733 | Java | oseemann/namo | /src/main/java/net/oebs/namo/BackendSyncInterface.java | UTF-8 | 110 | 1.609375 | 2 | [] | no_license | package net.oebs.namo;
public interface BackendSyncInterface {
public abstract void wakeup(Object o);
}
| true |
4fc886445f2c55608c8e8615252cdb6673a6730f | Java | MrCode97/digital-signature | /src/test/java/com/baloise/confluence/digitalsignature/TemplatesTest.java | UTF-8 | 1,641 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.baloise.confluence.digitalsignature;
import static org.apache.velocity.app.Velocity.mergeTemplate;
import java.io.BufferedWriter;
import java.io.StringWriter;
import java.io.Writer;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.exception.MethodInvocationException;
import org.apac... | true |
ab6f2eed48b166feeedb4503982edd42ec6c566b | Java | jppazmin/bibsonomy-social | /bibsonomy/bibsonomy-database/src/main/java/org/bibsonomy/database/util/DatabaseSchemaInformation.java | UTF-8 | 2,803 | 1.78125 | 2 | [] | no_license | /**
*
* BibSonomy-Database - Database for BibSonomy.
*
* Copyright (C) 2006 - 2011 Knowledge & Data Engineering Group,
* University of Kassel, Germany
* http://www.kde.cs.uni-kassel.de/
*
* This program is free software; you can redistribute it and/or
* ... | true |
e906db836288f6c43d9cffc68d6a9d0099bf50a5 | Java | kiyybery/YanHaoAndroid | /app/src/main/java/com/yanhao/main/yanhaoandroid/HomeFragment.java | UTF-8 | 22,601 | 1.5 | 2 | [] | no_license | package com.yanhao.main.yanhaoandroid;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.view.PagerAd... | true |
1c5715ec0101caa4454f7a3874194727e0a64c0f | Java | chanukaDissanayaka/p2pfs | /src/main/java/io/viro/p2pfs/telnet/message/receive/UnRegisterResponse.java | UTF-8 | 320 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package io.viro.p2pfs.telnet.message.receive;
/**
* Register response.
*/
public class UnRegisterResponse extends ReceivedMessage {
public int errorCode;
public UnRegisterResponse(int errorCode) {
this.errorCode = errorCode;
}
public int getErrorCode() {
return errorCode;
}
}
| true |
201eac4acf0c62b7467f11f6c865b72b5d107758 | Java | xdxdiagx/Soilmeability | /app/src/main/java/com/ExeCute/myapplication/FormulaActivity.java | UTF-8 | 6,471 | 2.296875 | 2 | [] | no_license | package com.ExeCute.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.GridLayout;
import android.widge... | true |
e81cd8b85d4c5e501b6904d7877a3d228132b287 | Java | fengjinman/wending | /src/main/java/com/powerwin/util/DaoUtil.java | UTF-8 | 420 | 1.765625 | 2 | [] | no_license | package com.powerwin.util;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by fengjinman Administrator on 2018/7/10.
*/
public class DaoUtil {
public static Object getDao(Class t){
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new Strin... | true |
ba236cb7a8356da0b7a3f5d9b37d7ce0c9445a54 | Java | ndungx/PRJ301_3W | /src/java/com/ndungx/controller/UpdateServlet.java | UTF-8 | 5,199 | 2.453125 | 2 | [] | no_license | package com.ndungx.controller;
import com.ndungx.user.UserDAO;
import com.ndungx.user.UserDTO;
import com.ndungx.user.UserUpdateErrorsDTO;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import javax.naming.NamingException;
import javax.servlet.RequestDispatcher;
import javax.serv... | true |
a9b36d976e1b7c7444c6ddd795188a36158523f5 | Java | yamase0394/LoglookAndroid | /app/src/main/java/jp/gr/java_conf/snake0394/loglook_android/view/fragment/MyShipListRecyclerViewAdapter.java | UTF-8 | 22,617 | 1.789063 | 2 | [] | no_license | package jp.gr.java_conf.snake0394.loglook_android.view.fragment;
import android.graphics.drawable.GradientDrawable;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.ContextCompat;
import android.sup... | true |
9faa6dd849c8ff498eb9dd919106219c5dad26a6 | Java | nickdrummond/ontology-browser | /src/main/java/org/coode/www/cloud/AbstractOWLCloudModel.java | UTF-8 | 491 | 2.046875 | 2 | [] | no_license | package org.coode.www.cloud;
import com.google.common.collect.ImmutableSet;
import org.semanticweb.owlapi.model.OWLEntity;
import org.semanticweb.owlapi.model.OWLOntology;
import java.util.Set;
public abstract class AbstractOWLCloudModel<O extends OWLEntity> extends AbstractCloudModel<O> {
protected final Set<O... | true |
ef10cef76a48143c6ab795262b14803a9c9f167f | Java | dontirun/CS3733-Dolon | /DolonBuilder/Tests/testCases.java | UTF-8 | 18,428 | 2.171875 | 2 | [] | no_license | import BuilderControllers.GridSquare;
import BuilderControllers.LevelBuilderController;
import PieceFactory.*;
import BuilderModel.*;
import javafx.geometry.*;
import javafx.scene.Group;
import javafx.scene.control.*;
import javafx.scene.control.ScrollPane;
import javafx.scene.input.KeyCode;
import javafx.application.A... | true |
13490cb5be419f2532bc8006fd5e3f08cd45629b | Java | ygtfrdes/Program | /Engineering/boards/contiki/emma-node/emma/dep/tools/cooja/apps/avrora/src/avrora/sim/mcu/ATMega128RFA1.java | UTF-8 | 28,955 | 1.828125 | 2 | [
"BSD-3-Clause"
] | permissive | /**
* Copyright (c) 2004-2005, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright ... | true |
929d6da7b59aa19ba5d257c529e940b4e9e5d2ff | Java | cc112837/LineImage | /app/src/main/java/com/cc/lineimage/LineActivity.java | UTF-8 | 1,392 | 2.3125 | 2 | [] | no_license | package com.cc.lineimage;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import com.cc.lineimage.view.LineView;
import java.util.ArrayList;
/**
* @author
* 2014-6-26
* 注释:线形图
*/
public class LineActivity extends Activity{
@Override
protected void onCreate(Bundl... | true |
481a8f370574375b1fde934739866b5b419cc77d | Java | LiSongPeng/knowledgeRepo | /src/main/java/com/zh/framework/mapper/KnowledgeMapper.java | UTF-8 | 2,174 | 1.757813 | 2 | [] | no_license | package com.zh.framework.mapper;
import com.zh.framework.entity.ApprovalRecord;
import com.zh.framework.entity.Knowledge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
* created by lihuibo on 17-8-28 上午9:59
*/
@Reposi... | true |
a3748e22957afb9ea19e4c61be37fc8b87ccd257 | Java | brayanestrada/Ceiba-ADN | /src/main/java/com/ventas/ventadepasajes/domain/service/purchase/ServiceDeletePurchase.java | UTF-8 | 446 | 2.09375 | 2 | [] | no_license | package com.ventas.ventadepasajes.domain.service.purchase;
import com.ventas.ventadepasajes.domain.port.repository.RepositoryPurchase;
public class ServiceDeletePurchase {
private RepositoryPurchase repositoryPurchase;
public ServiceDeletePurchase(RepositoryPurchase repositoryPurchase){
this.reposito... | true |
b4cfed323b663e637ba3e8e05e629d01eba5b51d | Java | Martouta/loopa | /loopa/src/test/java/LogicSelectorTest.java | UTF-8 | 1,880 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2017 Universitat Politécnica de Catalunya (UPC)
*
* 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 ... | true |
3d9a9cff963b0fc249d7aa26aa02c70ab8e13cfe | Java | dsivaraman/GradleMultiModuleApp | /sampleServices/src/main/java/com/services/ServicesClass.java | UTF-8 | 145 | 1.96875 | 2 | [] | no_license | package com.services;
public class ServicesClass {
public void showService() {
System.out.println("I am Service class...");
}
}
| true |
77fd5ee6d6d86bcd02525aa450b3149a61347158 | Java | SoftwareVerde/bitcoin-verde | /src/main/java/com/softwareverde/bitcoin/transaction/script/opcode/LockTimeOperation.java | UTF-8 | 6,006 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.softwareverde.bitcoin.transaction.script.opcode;
import com.softwareverde.bitcoin.bip.UpgradeSchedule;
import com.softwareverde.bitcoin.transaction.Transaction;
import com.softwareverde.bitcoin.transaction.input.TransactionInput;
import com.softwareverde.bitcoin.transaction.locktime.LockTime;
import com.so... | true |
74036f882370fb6273c6ed4bd47d0045ace6f1ab | Java | jianhongyu136/mk-skin | /app/mkskin/src/main/java/com/jhy/mkskin/skinview/SkinTextView.java | UTF-8 | 921 | 2.125 | 2 | [] | no_license | package com.jhy.mkskin.skinview;
import android.content.Context;
import android.util.AttributeSet;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;
import com.jhy.mkskin.SkinEnable;
import com.jhy.mkskin.skinhelper.TextViewSkinHelper;
public class SkinTextView extends AppComp... | true |
d45454fccc09cf5ac9b4b9521c58bab3129d651b | Java | bertsir/AdvancedRecyclerViewAdapter | /app/src/main/java/cn/bertsir/rvadapterdeamo/adapter/AdvancedRecyclerViewAdapter.java | UTF-8 | 9,351 | 2.453125 | 2 | [] | no_license | package cn.bertsir.rvadapterdeamo.adapter;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.uti... | true |
2f28e4fc221fb295bdff51dfe9a8714470b272fd | Java | Mahanteshkumar/ClassProg | /src/Tyantra/FizzBuzz.java | UTF-8 | 456 | 3.09375 | 3 | [] | no_license | package Tyantra;
import java.util.Scanner;
public class FizzBuzz {
public static void main(String[] args) {
System.out.println("Enter the number");
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
if((n%4==0)&&(n%5==0))
{
System.out.println("Java j2ee");
}else if(n%5==0){
System.out.println(... | true |
d62de6d9e07d39816cc53458ad387c8b9233efc4 | Java | deepaktrivedi013/AllAboutAEMforms | /SampleRest/src/main/java/com/aemforms/GetStockHistory2.java | UTF-8 | 4,271 | 2.4375 | 2 | [] | no_license | package com.aemforms;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import javax.ws.rs.GET;
impo... | true |
3de43d7e4cd632ff77c037f9e1b391c22cf3bf2f | Java | CodecoolGlobal/webshop-java-eazyhire | /src/main/java/com/codecool/shop/dao/implementation/memory/UserDaoMem.java | UTF-8 | 688 | 2.25 | 2 | [] | no_license | package com.codecool.shop.dao.implementation.memory;
import com.codecool.shop.dao.UserDao;
import com.codecool.shop.model.User;
import java.util.List;
public class UserDaoMem implements UserDao {
private static UserDaoMem instance = null;
private UserDaoMem(){}
public static UserDaoMem getInstance(){
... | true |
04fec528cb3e40b1fdc7648cb081b41e9caef345 | Java | dFenille/fj-59 | /app/src/main/java/br/com/caelum/casadocodigo/event/NotificationCustom.java | UTF-8 | 364 | 1.976563 | 2 | [] | no_license | package br.com.caelum.casadocodigo.event;
import okhttp3.RequestBody;
/**
* Created by android7392 on 28/04/18.
*/
public class NotificationCustom {
RequestBody requestBody;
public NotificationCustom(RequestBody requestBody){
this.requestBody = requestBody;
}
public RequestBody getRequestB... | true |
aa73402431210a8aa2fd8628d422c4a983fc779b | Java | yogeshchacherkar/MCAMS | /src/com/mcams/test/TestCase.java | UTF-8 | 2,867 | 2.5 | 2 | [] | no_license | package com.mcams.test;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import org.junit.Assert;
import org.junit.Test;
import com.mcams.bean.ArtistBean;
import com.mcams.bean.ComposerBean;
im... | true |
406b6be2cfd6d3bee9a75526e48665d26bdd5f14 | Java | EvgenyM/zong | /musicxml-in/src/com/xenoage/zong/io/musicxml/in/readers/PartReader.java | UTF-8 | 687 | 2.28125 | 2 | [] | no_license | package com.xenoage.zong.io.musicxml.in.readers;
import com.xenoage.pdlib.PVector;
import com.xenoage.zong.core.instrument.Instrument;
import com.xenoage.zong.core.music.Part;
import com.xenoage.zong.musicxml.types.MxlScorePart;
/**
* Reads a {@link Part} from a given {@link MxlScorePart}.
*
* @author Andreas We... | true |
fdf92db126db7a2e01b89848bfe5b62c013387a0 | Java | OuFungWah/CampusGo | /fungwahtools/src/main/java/com/example/fungwahtools/commond/CvTools.java | UTF-8 | 2,416 | 3.03125 | 3 | [] | no_license | package com.example.fungwahtools.commond;
import android.content.ContentValues;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* Created by FungWah on 2017/11/1.
*/
public class CvTools {
/**
* 用于将Bean的数据转换成ContentValues
* @param obj
* @return
*/
public static Co... | true |
85a2d17c9b79980dafef16d929d9ffb198dd4464 | Java | Yono-Kaze/DataStructure | /src/main/java/com/datastructure/problem/NumArray.java | UTF-8 | 638 | 3.171875 | 3 | [] | no_license | package com.datastructure.problem;
import com.datastructure.segmenttree.SegmentTree;
/**
*
*<p>Description:303. Range Sum Query - Immutable<p>
* @author Administrator
* @version 2020-11-18
*
*/
public class NumArray {
private SegmentTree<Integer> segmentTree;
public NumArray(int[] nums) {
... | true |
ed999fc2f03ed8f4cc4a507a39ac3892c748ab4c | Java | haderaraujozup/zup-pact-workshop | /example/one_consumer_two_producer/prime-account-details-api/src/main/java/br/com/zup/pact/primeaccountapi/dto/PrimeAccountDetailsDTO.java | UTF-8 | 707 | 2.1875 | 2 | [] | no_license | package br.com.zup.pact.primeaccountapi.dto;
import br.com.zup.pact.primeaccountapi.entity.PrimeAccount;
import java.util.Objects;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class PrimeAccountDetailsDTO {
private Boolean isPrime;
private Integer discountPercentageFee;
public stati... | true |
f2a6b3e96deb6ab32adacd2bb5c55522075ef119 | Java | k-guy-dev/gfg | /pepQue/Level1/basicDs/stacksAndQueues/infixEvaluation.java | UTF-8 | 2,676 | 3.875 | 4 | [] | no_license | package pepQue.Level1.basicDs.stacksAndQueues;
import java.util.*;
class infixEvaluation {
static int evaluate(String s) {
Stack<Integer> numbers = new Stack<Integer>();
Stack<Character> operators = new Stack<Character>();
int n = s.length();
for (int i = 0; i < n; i++) {
... | true |
31e9b897f7cd4341e782bcc935b33232b0d73cc4 | Java | BobLbttn/ToysForBoys | /src/main/java/be/vdab/exceptions/UnshippedOrderException.java | UTF-8 | 283 | 2.171875 | 2 | [] | no_license | package be.vdab.exceptions;
public class UnshippedOrderException extends RuntimeException{
private final static long serialVersionUID = 1L;
public UnshippedOrderException() {
super();
}
public UnshippedOrderException(String message) {
super(message);
}
}
| true |
a02d952a641de49fa40576223e03a7bcd24c31e4 | Java | libill/DebugAndroidFramework | /app/src/main/java/com/android/ims/rcs/uce/presence/subscribe/SubscribeController.java | UTF-8 | 1,357 | 1.609375 | 2 | [] | no_license | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
95642d08cfe48b5f008e9d788631670dba5abc03 | Java | zhaojianzhong1122/JpetStore-ssh | /clps_JPetStore_ssh/src/com/clps/action/CategoryAction.java | GB18030 | 2,872 | 2.078125 | 2 | [] | no_license | package com.clps.action;
import java.util.List;
import com.clps.entity.Category;
import com.clps.entity.Item;
import com.clps.entity.PageBean;
import com.clps.entity.PageUtil;
import com.clps.entity.Product;
import com.clps.service.impl.CategoryServiceImpl;
/**
* @author Administrator
*
*/
public class CategoryAc... | true |
6a0191aac15a6e9f96c9448a3e47253643179e89 | Java | Supriya-konnur/hibernate-programs | /coupon_managent/java/com/xworkz/coupon/ListOfCoupons.java | UTF-8 | 457 | 2.1875 | 2 | [] | no_license | package com.xworkz.coupon;
import com.xworkz.coupon.entity.CouponEntity;
public class ListOfCoupons {
public static void main(String[] args) {
CouponEntity entity1 = new CouponEntity(1, "dominos", 5, "xyz", "food");
CouponEntity entity2 = new CouponEntity(2, "max", 4, "xyz", "dress");
CouponEntity entity... | true |
e50eee3db25619be460e0859b9e2b9e9fc5c97be | Java | bobbylight/RText | /src/main/java/org/fife/rtext/actions/PrintAction.java | UTF-8 | 2,795 | 2.4375 | 2 | [] | no_license | /*
* 11/14/2003
*
* PrintAction.java - Action to print the current document in RText.
* Copyright (C) 2003 Robert Futrell
* https://bobbylight.github.io/RText/
* Licensed under a modified BSD license.
* See the included license file for details.
*/
package org.fife.rtext.actions;
import java.awt.eve... | true |
ddf2ec12c43b42cafcd988421f455b9053babce8 | Java | sainiharika02/Wildcat-Detectives | /AssignCaseServlet.java | UTF-8 | 1,755 | 2.375 | 2 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.cb.beans.AddNewCaseBean;
import co... | true |
52c23bbb1b81c0c80be6b807aac0d66b407ba5e0 | Java | bruinli28/restapi-by-springmvc | /src/main/java/exception/DemoObjectNotFoundException.java | UTF-8 | 404 | 2.40625 | 2 | [] | no_license | package exception;
public class DemoObjectNotFoundException extends RuntimeException {
public DemoObjectNotFoundException(long demoObjectId) {
this.demoObjectId = demoObjectId;
}
public long getDemoObjectId() {
return demoObjectId;
}
public void setDemoObjectId(long demoObjectId) ... | true |
819624cca1f7b3ecf658e475c321a5e45d6992ec | Java | DunneB2412/Algos2021PotatoArmy | /src/com/potatoes_are_great/search/tests/ScheduleTest.java | UTF-8 | 235 | 1.617188 | 2 | [] | no_license | package com.potatoes_are_great.search.tests;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author duneb5
*///TODO impliment
class ScheduleTest {
@Test
void addLine() {
}
} | true |
b62b6222beabf2f0f2acb1448a69e1c13e9c14ba | Java | xuyao888/viewpage-indicator | /LazyBaeFragment.java | UTF-8 | 3,988 | 2 | 2 | [] | no_license | package com.tangma.gemry.seneschal.UI.Fragment;
import android.app.Dialog;
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 an... | true |
ce764346c20539aa91e0759b03ffdb021faa36d3 | Java | trampboy/design_patterns | /java_code/src/main/java/com/buer/desginpatterns/flyweightpattern/Flyweight.java | UTF-8 | 153 | 2.125 | 2 | [] | no_license | package com.buer.desginpatterns.flyweightpattern;
/**
* Created by YanMingDao on 04/04/2017.
*/
public interface Flyweight {
void operation();
}
| true |
be4517221ee1dcea9846497cc944426896363f82 | Java | petrprog1997/java-web-task | /WebParsing/src/main/java/com/epam/webparsing/entity/TouristVoucherEnum.java | UTF-8 | 1,043 | 2.296875 | 2 | [] | no_license | package com.epam.webparsing.entity;
public enum TouristVoucherEnum {
TOURIST_VOUCHERS("tourist-vouchers"),
TOURIST_VOUCHER("tourist-voucher"),
EVENT_TOURIST_VOUCHER("event-tourist-voucher"),
SPORT_EVENT_TOURIST_VOUCHER("sport-event-tourist-voucher"),
FAN_SPORT_EVENT_TOURIST_VOUCHER("fan-spor... | true |
cc1eca87ebb178d474774b19f2bc24f791e7ef62 | Java | smeerkahoven/ContableEnterprise | /ContableEnterprise-ejb/src/java/com/cobranzas/json/KardexClienteSearchJson.java | UTF-8 | 1,976 | 1.976563 | 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.cobranzas.json;
import com.seguridad.utils.ComboSelect;
import java.io.Serializable;
/**
*
* @author xeio
*/
public cl... | true |
b7f6a25e420e4d8fabcefcc9fbd88902d18e19a2 | Java | ranger2242/GROW | /core/src/com/quadx/wgame/World.java | UTF-8 | 2,378 | 2.375 | 2 | [] | no_license | package com.quadx.wgame;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.quadx.wgame.state.GameState;
import shapes1_5_5.physics.Body;
import shapes1_5_5.shapes.Circle;
import shapes1_5_5.shapes.... | true |
59583baef9d867f3d76a724ebd6c01d99d1d20ec | Java | sgzwiz/orange-admin | /orange-demo-multi-service/application/course-class/course-class-service/src/main/java/com/orange/demo/courseclassservice/controller/StudentController.java | UTF-8 | 13,197 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.orange.demo.courseclassservice.controller;
import cn.jimmyshi.beanquery.BeanQuery;
import com.github.pagehelper.page.PageMethod;
import com.orange.demo.courseclassservice.model.*;
import com.orange.demo.courseclassservice.service.*;
import com.orange.demo.courseclassinterface.dto.*;
import com.orange.demo.... | true |
b5b6567174663ca68f0c39881dd752eaa68f2aa6 | Java | cha63506/CompSecurity | /nbc_source/src/com/auditude/ads/event/OnPageEvent.java | UTF-8 | 890 | 1.632813 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.auditude.ads.event;
import com.auditude.ads.model.IOnPageAsset;
import java.util.HashMap;
// Referenced classes of package com.audi... | true |
555d0934cb00589043e50e71d9f81c5ec9b9a38d | Java | RobertoMalatesta/trading-system | /forex/src/main/java/com/apssouza/mytrade/trading/forex/feed/price/PriceFeedAdapter.java | UTF-8 | 552 | 2.15625 | 2 | [] | no_license | package com.apssouza.mytrade.trading.forex.feed.price;
import com.apssouza.mytrade.feed.FeedModule;
import com.apssouza.mytrade.feed.PriceDto;
import java.time.LocalDateTime;
import java.util.Map;
public class PriceFeedAdapter implements PriceFeed {
private FeedModule feedModule;
public PriceFeedAdapter(fi... | true |
5538a338680480107311aadb61d11e94f4411f8f | Java | LarsEckart/thn | /app/src/main/java/de/thnuernberg/news/presentation/news/NewsListView.java | UTF-8 | 232 | 1.703125 | 2 | [] | no_license | package de.thnuernberg.news.presentation.news;
import de.thnuernberg.news.data.NewsEntry;
import java.util.List;
public interface NewsListView {
void showLoading();
void showNewsEntries(List<NewsEntry> newsEntries);
}
| true |
0e3134263684caf886851828bd5819635d316d15 | Java | alexvigro92/FactoryMethodPattern | /factoryMethodPattern/src/main/java/mx/iteso/factory/pozoles/PozoleVerdeCamaron.java | UTF-8 | 353 | 2.203125 | 2 | [] | no_license | package mx.iteso.factory.pozoles;
import mx.iteso.factory.Pozole;
/**
* Created by mavg_ on 10/14/2015.
*/
public class PozoleVerdeCamaron extends Pozole {
public PozoleVerdeCamaron() {
name = "Pozole Verde con Camaron";
broth = "Caldo Verde";
toppings.add("Cebolla");
toppings.a... | true |
ff68e579bdd1dedc3f0a0f27e53ee6eabbabb846 | Java | HuzefaGadi/NfcApplication | /app/src/main/java/com/huzefagadi/rashida/nfcapplication/bean/ResponseFromServer.java | UTF-8 | 594 | 2.171875 | 2 | [] | no_license | package com.huzefagadi.rashida.nfcapplication.bean;
import java.util.List;
/**
* Created by Rashida on 15/07/15.
*/
public class ResponseFromServer {
private List<Gourme> Gourme;
public ResponseFromServer() {
}
public ResponseFromServer(List<com.huzefagadi.rashida.nfcapplication.bean.Gourme> gour... | true |
f15c0a39a85187f28b6496284f6842a3f506b052 | Java | adilbeknurmakov/substring | /com/epam/entity/substring/SubString.java | MacCyrillic | 1,585 | 3.3125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.epam.entity.substring;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
/**
*
* @author Adilbek
... | true |
bd35af471b68e9b3bfb09ec89266454c1a85b207 | Java | glameyzhou/training | /codes/src/main/java/org/glamey/training/codes/leetcode/MinDiffer.java | UTF-8 | 1,021 | 3.828125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package org.glamey.training.codes.leetcode;
/**
* 算出数组中,两两相减最小的数字
*
* @author zhouyang.zhou. 2017.08.18.22.
*/
public class MinDiffer {
public static int minDiff(int[] nums) {
if (nums == null) {
return -1;
}
int len = nums.length;
if (len < 2) {
retur... | true |
937452f4be496f2aaf70047d9d120ccc6ed5fdd6 | Java | YongpingGao/TowerDefenseGame | /src/view/mapeditorview/PopupMenuView.java | UTF-8 | 520 | 2.3125 | 2 | [] | no_license | package view.mapeditorview;
import javax.swing.*;
/**
* Created by yongpinggao on 3/12/16.
*/
public class PopupMenuView extends JPopupMenu{
private final String OPTION_ENTRANCE = "Set as an Entrance";
private final String OPTION_EXIT = "Set as an Exit";
public JMenuItem menuItem1;
public JMenuIt... | true |
2de83b7398e6ed8ffeab6ba813c7d709bc06473c | Java | deyanTG/social-app | /social-uni/src/main/java/uni/social/connect/utils/UserUtils.java | UTF-8 | 2,188 | 2.09375 | 2 | [] | no_license | package uni.social.connect.utils;
import java.util.Collection;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.social.connect.Connection;
import org.springframework.social.connect.UserProfile;... | true |
b5593f416754a060c8d78f197ebc96b652dc0dfa | Java | thehult/roborally | /src/Client/InputHandler.java | UTF-8 | 726 | 2.796875 | 3 | [] | no_license | package Client;
import org.newdawn.slick.GameContainer;
public class InputHandler
{
private static int mouseX;
private static int mouseY;
private static GameContainer gc;
public static void update(GameContainer gameContainer) {
gc = gameContainer;
mouseX = (int)(gameContainer.getInput().getMouseX()... | true |
cd192be93a01e5c9a9291d8e9e2e6ba05961f042 | Java | chaimt/Tikal-Java-RoadMap | /Project/3. Hibernate/service/src/main/java/com/tikal/course/java/service/impl/DuplicateUserException.java | UTF-8 | 438 | 2.0625 | 2 | [] | no_license | package com.tikal.course.java.service.impl;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Created by Haim.Turkel on 1/14/2016.
*/
@ResponseStatus(value= HttpStatus.NOT_ACCEPTABLE, reason="Duplicate User")
public class DuplicateUserException... | true |
d905c4c041cc4f3489821b2d716c88d1d8dab7a4 | Java | Bqtang/study-java-code | /src/main/java/com/example/demo/arithmetic/practice/FindKthLargest_215.java | UTF-8 | 2,206 | 3.890625 | 4 | [] | no_license | package com.example.demo.arithmetic.practice;
import java.util.Random;
/**
* @Description: 利用快排
* 题目: 数组中的第K个最大元素
* 在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。
* <p>
* 示例 1:
* <p>
* 输入: [3,2,1,5,6,4] 和 k = 2
* 输出: 5
* 示例 2:
* <p>
* 输入: [3,2,3,1,2,4,5,5,6] 和 k = 4
* 输出: 4
* 说明:
* <p>
... | true |
32f11ee3f5a051ff78b0a021eca46f2fa5add4e5 | Java | suyash-capiot/gradleTomcat | /src/main/java/com/orchestration/orchestratorengine/config/mongo/BsonDocMongoConfig.java | UTF-8 | 520 | 1.8125 | 2 | [] | no_license | package com.orchestration.orchestratorengine.config.mongo;
import org.bson.Document;
public class BsonDocMongoConfig extends AbstractMongoConfig {
BsonDocMongoConfig(Document configDoc) {
mMongoURL = configDoc.getString(MONGO_URL_PROP);
mMongoUser = configDoc.getString(MONGO_USER_PROP);
mMongoPwd = configDoc.... | true |
cb406b98498ab085c326738556bff84e0590760c | Java | yishanxiansheng/leetcode | /leetcode/app/src/test/java/com/example/testmaven/designmode/decorator/KitchenDecorator.java | UTF-8 | 267 | 2.296875 | 2 | [] | no_license | package com.example.testmaven.designmode.decorator;
/**
* @author heshufan
* @date 2021-01-11
*/
public class KitchenDecorator extends RoomDecorator {
@Override
void fitment() {
super.fitment();
System.out.println("add kitchen");
}
}
| true |
8e896c6e30914b8d9d4d4302a1db76d84b1421ee | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/org/jetbrains/anko/appcompat/v7/C$$Anko$Factories$AppcompatV7ViewGroup$LIST_MENU_ITEM_VIEW$1.java | UTF-8 | 993 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package org.jetbrains.anko.appcompat.v7;
import android.content.Context;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import org.jetbrains.annotations.NotNull;
/* renamed from: org.jetbrains.anko.appcompat.v7.$$Anko$Factories$AppcompatV7ViewG... | true |
bbca28e09db64fcaa8c8b5e558b4b5b6b6c15903 | Java | achung72/USACO-Solutions-Java | /Contest/Dec-Bronze-2015/paint.java | UTF-8 | 1,758 | 3.40625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class paint {
public static void main(String[] args) throws IOException {
BufferedReader b = new BufferedReader(new FileReader("paint.in"));
PrintWriter p = new PrintWriter(new FileWriter("paint.out"));
StringTokenizer a = new StringTokenizer(b.readLine());
StringTo... | true |
001f56fd5b64ceb622fe0eea8e4bd186f51a5a00 | Java | AungKyaw-Min/Wheel-of-Fortune | /TeamProject/TeamProject/PlayerGUI.java | UTF-8 | 2,730 | 3.015625 | 3 | [
"MIT"
] | permissive | package TeamProject;
import javax.swing.*;
import java.awt.*;
import java.io.IOException;
public class PlayerGUI extends JFrame
{
private PlayerClient clients;
// Constructor that creates the client GUI.
public PlayerGUI(String host, String port)
{
// Set the title and default close operation.
this.setTitle... | true |
5f39ea9e35d410b43b60b4cb47ca897035df2d76 | Java | stsiwo/e-commerce-starter-kits | /api/src/main/java/com/iwaodev/ui/response/ErrorBaseResponse.java | UTF-8 | 373 | 1.742188 | 2 | [
"MIT"
] | permissive | package com.iwaodev.ui.response;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor()
@Data
public class ErrorBaseResponse {
private LocalDateTime timestamp;
private int status;
private String error;
... | true |
e57b782a3152da4c4cd43ff69b28fa4909c5ab5d | Java | JuliaPayuschik583/MyGame | /app/src/main/java/com/example/julia/mygame/tictactoe/winner/WinnerChecker.java | UTF-8 | 193 | 2.328125 | 2 | [] | no_license | package com.example.julia.mygame.tictactoe.winner;
import com.example.julia.mygame.logic.Player;
/**
* @author julia
*/
public interface WinnerChecker {
public Player checkWinner();
}
| true |
61725f3c5d5262e6f6ddbb77aa991448d1911c86 | Java | justinqle/Refresh | /app/src/main/java/com/justinqle/refresh/fragments/SubmissionsFragment.java | UTF-8 | 9,545 | 2.203125 | 2 | [] | no_license | package com.justinqle.refresh.fragments;
import android.app.Activity;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v4.widge... | true |
e4d97baaf6754ff2e31ef763c2d1192ddecc2d0a | Java | alexliyu7352/SumaTV | /app/src/main/java/com/ddm/live/models/bean/gift/GiftBaseRequest.java | UTF-8 | 337 | 1.710938 | 2 | [] | no_license | package com.ddm.live.models.bean.gift;
import com.ddm.live.models.Constants;
import com.ddm.live.models.bean.basebean.request.BaseRequest;
/**
* Created by cxx on 2016/8/26.
*/
public class GiftBaseRequest extends BaseRequest {
public GiftBaseRequest() {
setInterfaceServiceName(Constants.GIFT_API_SERVIC... | true |
15258a5c05b3a983b12e7c5550291313c7d0b74b | Java | michellenaour/Ev2_ISOFT | /src/main/java/cl/ufro/dci/app/service/CasoService.java | UTF-8 | 1,517 | 2.625 | 3 | [] | no_license | package cl.ufro.dci.app.service;
import cl.ufro.dci.app.model.Caso;
import cl.ufro.dci.app.repository.CasoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Optional;
@Service
public class CasoService {... | true |
ca140add96fefba7df0628ce252afb9192b7291d | Java | hamzaouaddafe/AnnonceManager | /ConsolePrinter.java | UTF-8 | 3,142 | 3.0625 | 3 | [] | no_license | import java.util.List;
public class ConsolePrinter {
public static final String SEPARATOR = "|";
public static final String BREAKER = System.getProperty("line.separator");
public ConsolePrinter() {}
public String index() {
StringBuffer buffer = new StringBuffer(separator());
buffer.a... | true |
f52493fcbc5a00a6eca5475194ece5a897f0a686 | Java | geraldjglasgow/A2extracredit | /src/Main.java | UTF-8 | 635 | 3.296875 | 3 | [] | no_license | /**
* Created by Gerald Glasgow on 6/3/2017.
*/
public class Main {
public static void main(String [] args){
int iterations = 1000000; // iterations each value of 'values' will run
int values[] = {100,200,300,400,500,600,700,800,900,1000}; // size of arrays bei... | true |
ee08af49ca485314074b831b5a1d6fb53543972a | Java | varunkumarsp/chromattic | /groovy/src/test/java/org/chromattic/groovy/metamodel/ImplementTestCase.java | UTF-8 | 2,353 | 1.953125 | 2 | [] | no_license | /*
* Copyright (C) 2003-2009 eXo Platform SAS.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is d... | true |
a5751c77bbcd8e5b9c8cbd5f2c7da6bab4c3ff5d | Java | BeQuietLee/WhatsApp | /app/src/main/java/work/lilei/whatsapp/util/ViewUtils.java | UTF-8 | 418 | 2.34375 | 2 | [
"MIT"
] | permissive | package work.lilei.whatsapp.util;
import android.content.Context;
import android.widget.Toast;
/**
* View 工具类
* Created by lei on 6/23/16.
*/
public class ViewUtils {
private ViewUtils() {}
/**
* 展示toast
* @param context
* @param text
*/
public static void toast(Context context, S... | true |
bc3577277b6f95218b29ce90ba2ac8bca5c48cd7 | Java | SoongMoo/Soldesk503_01 | /testSpringBoot/src/main/java/testSpringBoot/mapper/SurveyMapper.java | UTF-8 | 642 | 1.84375 | 2 | [] | no_license | package testSpringBoot.mapper;
import java.util.List;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import testSpringBoot.domain.OptionsDTO;
import testSpringBoot.domain.QuestionDTO;
import testSpringBoot.domain.QuestionOptionDTO;
@Component
@Repository
public in... | true |
665efaaeea1c4257dc9be5ed3e2e9466f0ee4efb | Java | HPI-Information-Systems/metanome-algorithms | /HyMD/hybrid/src/main/java/de/hpi/is/md/hybrid/impl/level/Candidate.java | UTF-8 | 1,604 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package de.hpi.is.md.hybrid.impl.level;
import de.hpi.is.md.hybrid.Lattice.LatticeMD;
import de.hpi.is.md.hybrid.Rhs;
import de.hpi.is.md.hybrid.md.MDElement;
import de.hpi.is.md.hybrid.md.MDSite;
import java.util.ArrayList;
import java.util.Collection;
import java.util.function.BiConsumer;
import lombok.Getter;
impor... | true |
ed29db70038567d894f4c8d21fb3920b2668cefd | Java | liuyanhao/hrAdmin | /src/main/java/com/lxc/controller/subject/subjecttype/SubjectTypeController.java | UTF-8 | 6,514 | 2.03125 | 2 | [] | no_license | package com.lxc.controller.subject.subjecttype;
import com.lxc.controller.base.BaseController;
import com.lxc.entity.Page;
import com.lxc.service.subject.subjecttype.SubjectTypeManager;
import com.lxc.service.subject.subjecttypemx.SubjectTypeMxManager;
import com.lxc.util.*;
import org.springframework.beans.propertyed... | true |
3d7c462e4f500418ae349da328fcdc1464360f60 | Java | vivekVells/BlackJackGame | /Java/Lab-Assignment/lab6-shoe_plugin/MyShoe01.java | UTF-8 | 653 | 2.71875 | 3 | [] | no_license | package mycharlie.plugin;
import charlie.card.Shoe;
import java.util.Random;
/**
* This class extends the Shoe base class that implements a six deck shoe, the standard in many houses.
* @author Vivek Vellaiyappan Surulimuthu | vivekvellaiyappans@gmail.com | Vivek.Surulimuthu1@marist.edu
*/
public class MyShoe01 e... | true |
7c6f8c5a5d95ddda9c180787039d8a431091af57 | Java | alexvolov/algorithms-and-data-structures | /src/test/java/com/alexvolov/ads/algorithms/graph/DepthFirstSearchTest.java | UTF-8 | 4,483 | 2.890625 | 3 | [] | no_license | package com.alexvolov.ads.algorithms.graph;
import com.alexvolov.ads.ds.Graph;
import com.alexvolov.ads.ds.common.GraphType;
import com.alexvolov.ads.ds.impl.AdjacencyList;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.... | true |
5411e3c22021ea4e7e5f8a8c1d7b9bc24fc8b411 | Java | EDToaster/Brainfuck-Interpreter | /src/ca/edtoaster/components/ProgramState.java | UTF-8 | 2,786 | 2.859375 | 3 | [] | no_license | package ca.edtoaster.components;
import ca.edtoaster.utils.SegmentationFault;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Stack;
import static ca.edtoaster.utils.ProgramUtils.INFINITELY_LARGE_SIZE;
public class ProgramState {
private int ptr;
privat... | true |
ee5144038fbe38696b948633dce2fde7f4bdde1b | Java | xlate/staedi | /src/main/java/io/xlate/edi/stream/EDIStreamConstants.java | UTF-8 | 1,953 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2017 xlate.io LLC, http://www.xlate.io
*
* 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
*
* ... | true |
8d0618c26437bcdae9410a8c98f0ea6f8418ff5e | Java | achelsau/MovieFinder | /src/main/java/com/arielsweb/moviefinder/model/PersistentQuery.java | UTF-8 | 3,205 | 2.515625 | 3 | [] | no_license | package com.arielsweb.moviefinder.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.per... | true |
a9a2d2fdf2834df2a32582fd53803e71d7cc9819 | Java | maxpain815/module1 | /src/main/java/util/TestClass.java | UTF-8 | 423 | 2.796875 | 3 | [] | no_license | package util;
public class TestClass{
public static void main(String[] args){
int[][] ab = { {1, 2, 3}, {4, 5} };
for(int i=0; i<ab.length; i++){
for(int j=0; j<ab[i].length; j++){
System.out.print(ab[i][j]+" ");
if(ab[i][j] == 2){
b... | true |
0a9a3318e083c90b1248bc8cb06c9307453c5f71 | Java | xiexuesong/gittest | /app/src/main/java/com/wangzhen/admin/gittest/MainActivity.java | UTF-8 | 2,981 | 2.140625 | 2 | [] | no_license | package com.wangzhen.admin.gittest;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.Lay... | true |
f5722a97b00411abc59f95b19389eaf2021531fa | Java | Strukturavaltas360/projects-2 | /src/main/java/classstructureio/calculator.java | UTF-8 | 531 | 2.984375 | 3 | [] | no_license | package classstructureio;
import java.util.Scanner;
public class calculator {
public static void main(String[] args) {
Scanner bekeres = new Scanner(System.in);
System.out.print("Kérem az első számot: ");
int elsoSzam = bekeres.nextInt();
System.out.print("Kérem a második számot: ... | true |
f320b0bab024de9661e8aed72875ba27133bd6c0 | Java | aburykin/GIT_REPO_14_08_2016 | /src/acm_sgu/task_2038/Solution.java | UTF-8 | 955 | 2.859375 | 3 | [] | no_license | package acm_sgu.task_2038;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by ABurykin on 13.08.2016.
*/
// Зачтена
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(ne... | true |
2bf2cdaf0ac5c41230f44ece2afe97f88119a72a | Java | RiccardoCecco/ing-sw-2020-asaro-cassata-cecco | /src/main/java/it/polimi/ingsw/model/Build.java | UTF-8 | 5,395 | 2.421875 | 2 | [] | no_license | package it.polimi.ingsw.model;
import it.polimi.ingsw.ParserServer.SquareToJson;
import it.polimi.ingsw.commands.UndoCommand;
import it.polimi.ingsw.events.ChooseTarget;
import it.polimi.ingsw.events.ExceptionEvent;
import it.polimi.ingsw.events.UpdateEvent;
import it.polimi.ingsw.view.VirtualView;
import java.util.A... | true |
ff9c711061b18ea758aec8657c42252678d8f453 | Java | cckmit/iot-gateway | /common/src/main/java/com/newbig/im/common/aspect/UpdateAspect.java | UTF-8 | 2,070 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.newbig.im.common.aspect;
import com.newbig.im.common.constant.AppConstant;
import com.newbig.im.common.utils.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.commons.lang3.reflect.MethodUtils;
import org.aspectj.lang.JoinPoint;
import... | true |
8205aaac036d4bb2c1f9cf705d9806e725bf3fe1 | Java | cloudymous/Japris | /app/src/main/java/com/example/cloudymous/kopicloud/HomeScreen.java | UTF-8 | 1,001 | 2.109375 | 2 | [] | no_license | package com.example.cloudymous.kopicloud;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class HomeScreen extends Activity {
private EditText namaCost;
@Override
protected... | true |
19d41701a9c0a126c1b33ac0bb69005f7ce47190 | Java | news700/tdd-bowling | /src/main/java/com/gamehub/tdd/Score.java | UTF-8 | 322 | 2.40625 | 2 | [] | no_license | package com.gamehub.tdd;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class Score {
int first;
int second;
int third;
int bonus;
boolean isStrike() {
return first == 10;
}
boolean isSpare() {
if (first != 10 && second != 10) {
return (first + second) == 10;
}
return false;
}
... | true |
a1a92a770e2fe6543007576329bcfc14c14a15d4 | Java | colinw7/CQAsteroids | /android/src/org/colinw/asteroids/Asteroids.java | UTF-8 | 461 | 2 | 2 | [
"MIT"
] | permissive | package org.colinw.asteroids;
import android.app.Activity;
import android.os.Bundle;
public class Asteroids extends Activity {
private AsteroidsView view;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | true |
3b5ff8c6c790eec2b50d02d00d6663ed0e455bef | Java | Fizka/Backend-for-classified-job-ads-website | /szukaj-pracy/src/main/java/com/projektpk/szukajpracy/model/Certificate.java | UTF-8 | 1,933 | 2.375 | 2 | [] | no_license | package com.projektpk.szukajpracy.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "certificate")
public class Certificate implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long i... | true |
e68eeaf0c89b636d309e9eeea4a692275369f346 | Java | ShortyGuard/JavaCourses | /Java2/src/main/java/lesson6/server/StartServer.java | UTF-8 | 447 | 2.609375 | 3 | [] | no_license | package lesson6.server;
import java.util.Scanner;
public class StartServer {
public static void main(String[] args) {
ChatServer chatServer = new ChatServer(8088);
Thread threadServer = new Thread(chatServer);
threadServer.start();
Scanner in = new Scanner(System.in);
whi... | true |