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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
00088c3263d18dc8e459652c0b35e60d7f0d4a68 | Java | victor-gpaje/OkapiBarcode | /src/main/java/uk/org/okapibarcode/gui/SaveImage.java | UTF-8 | 2,454 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Robin Stuart and Robert Elliott
*
* 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 applicabl... | true |
b210cd342fa90966fe673c4e70aab370b4329a3f | Java | darkcross174/Vk | /src/main/java/domain/LikesInfo.java | UTF-8 | 219 | 1.53125 | 2 | [] | no_license | package domain;
public class LikesInfo {
private int count;
private boolean canLikes;
private boolean canPublish;
private boolean userLikes;
// + get/set на все поля
}
| true |
97be032ab83212aac2ace4259977535bd03064de | Java | malakeel/jetspeed-portal | /jetspeed-api/src/main/java/org/apache/jetspeed/components/persistence/store/PersistenceStore.java | UTF-8 | 4,140 | 1.929688 | 2 | [
"CC-BY-SA-2.5",
"AFL-2.1",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license"
] | 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 |
cd190893ec50989b7a8e3bb7965b0d8934558aef | Java | eishub/blocksworld | /src/main/java/environment/Square3D.java | UTF-8 | 3,293 | 3.234375 | 3 | [] | no_license | package environment;
/** BlocksWorld.java, version 1.11, December 9, 1998.
Applet for interactive blocks world.
Copyright 1998 by Rick Wagner, all rights reserved.
Downloaded from http://rjwagner49.com/Science/ComputerScience/CS480/java/blocks/blocks.htm
* Java source code is for educational purposes only. Viewing... | true |
5a01e3c043b594bf61362c8fe205b733dfeddad1 | Java | xuanzhiqiang/ActionOta | /app/src/main/java/com/linkplay/actionota/ble/MultipleBle/BleConfig.java | UTF-8 | 1,027 | 2.015625 | 2 | [] | no_license | package com.linkplay.actionota.ble.MultipleBle;
/**
* This class sets various static property values for Bluetooth
* Created by YeZhongJi on 2017/10/25.
*/
public class BleConfig {
@SuppressWarnings("FieldCanBeLocal")
public static String instruction_service_uuid = "0000ffc0-0000-1000-8000-00805F9B34FB"... | true |
ade1b6b5a2c383e0ce48c82dfe7e4d82d3fff4a9 | Java | kwjinwoo/datastructure-algorithm | /src/chap1_pr/chap1_Q16.java | UTF-8 | 542 | 2.828125 | 3 | [] | no_license | package chap1_pr;
import java.util.Scanner;
public class chap1_Q16 {
static void spira(int n) {
for (int i = 0; i < n; i++) {
for (int s = 0; s < n-1-i; s++)
System.out.print(" ");
for (int s = 0; s < (2*i)+1; s++)
System.out.print("*");
for (int s = 0; s < n-1-i; s++)
System.out.print... | true |
3db7da895bc361de18b7ec11d7828cf3031a7cb7 | Java | VijayEluri/sandbox | /java/src/main/java/sandbox/SocketBacklog.java | UTF-8 | 434 | 2.59375 | 3 | [] | no_license | package sandbox;
import java.net.ServerSocket;
import java.net.Socket;
public class SocketBacklog {
public static void main(String[] args) throws Exception {
ServerSocket ss = new ServerSocket(33322, 1);
for (int i = 0; i < 5; i++) {
new Socket("localhost", 33322);
}
tr... | true |
3c86d93f77a58c178581e571f71352e0e8f0c59a | Java | Juanrubco/lapiara | /src/main/java/servlet/ConexionDB.java | UTF-8 | 1,422 | 2.90625 | 3 | [] | no_license | package servlet;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class ConexionDB
{
private final String url;
private Connection conn;
public ConexionDB()
{
this.url ="jdbc:postgre... | true |
d476f19885230a1627cc196639e6508a7bdc0366 | Java | linhaibin961/base | /src/main/java/com/hy/common/IGenericService.java | UTF-8 | 1,083 | 2.09375 | 2 | [] | no_license | package com.hy.common;
import com.github.pagehelper.PageInfo;
import java.io.Serializable;
import java.util.List;
/**
* Created by 2507868527@qq.com on 2016/3/24 15:20 .
*/
public interface IGenericService<T,ID extends Serializable> {
void setMapper(IGenericMapper<T,ID> iGenericMapper);
/**
* 新增
... | true |
c750c57cfb2b430b3a6b848f182b1746e8a2389f | Java | blackducksoftware/synopsys-detect | /detectable/src/test/java/com/synopsys/integration/detectable/detectables/git/parsing/model/GitConfigNodeTransformerTest.java | UTF-8 | 3,349 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.synopsys.integration.detectable.detectables.git.parsing.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import com.synopsys.integration.detectable.detectables.git.parsing.... | true |
97d2b09a585960c22966208cf5e3f2fab5753e0c | Java | karthiknom7/data-structures-and-algorithms | /src/main/java/com/kk/learning/datastructuresandalgorithms/logical/array/EncodeString.java | UTF-8 | 753 | 3.546875 | 4 | [] | no_license | package com.kk.learning.datastructuresandalgorithms.logical.array;
public class EncodeString {
public static String collapseString(String inputString) {
System.out.println(inputString);
if(inputString.isEmpty()) return inputString;
int currentCharCount =1;
String encodedString = "... | true |
ed74555f51ed6d29ec21db84d2ca67d47c8f2b6b | Java | windtrack/jellylive | /JellyLive/app/src/main/java/com/oo58/jelly/adapter/FollowsAdapter.java | UTF-8 | 3,008 | 2.09375 | 2 | [] | no_license | package com.oo58.jelly.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextVi... | true |
d90150e3c5314b55834f1c7c4b9cfca1dcaea89f | Java | flcat/baekjoon_test | /src/t2523.java | UTF-8 | 720 | 3.21875 | 3 | [] | no_license | import java.io.*;
public class t2523 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine());
... | true |
40bd6e1a1e683293cc8c38e406f08269a571b2f7 | Java | alextriplekill/TestWork | /src/test/java/TestWork/tests/Base/BaseTest.java | UTF-8 | 1,460 | 2.03125 | 2 | [] | no_license | package TestWork.tests.Base;
import TestWork.pages.Base_Page;
import TestWork.pages.Filmix_Film_Page;
import TestWork.pages.Filmix_Login_Form;
import TestWork.pages.Filmix_Search_Page;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.openqa.selenium... | true |
3f0d79ebc5ade4c6be5e28bcb67464e8de3d96ea | Java | o2p-asiainfo/o2p-common | /src/main/java/com/ailk/eaap/o2p/common/util/LocalUtils.java | UTF-8 | 5,176 | 2.46875 | 2 | [] | no_license | /**
* Project Name:o2p-common
* File Name:LocalUtils.java
* Package Name:com.ailk.eaap.o2p.common.util
* Date:2015年2月2日上午11:46:53
* Copyright (c) 2015, www.asiainfo.com All Rights Reserved.
*
*/
package com.ailk.eaap.o2p.common.util;
import java.io.File;
import java.io.IOException;
import java.net.Inet4... | true |
047883b0f7c42cc0951589780f87edc421884cd8 | Java | buzhidaoGH/community_ssm | /src/main/java/com/community/service/CommunityService.java | UTF-8 | 638 | 1.617188 | 2 | [] | no_license | package com.community.service;
import com.community.domain.Community;
import com.community.domain.News;
import java.util.List;
public interface CommunityService {
Community findOneCommunityData(String cnumber);
Community findOneCommunityByCnumber(String cnumber);
Integer findAllCountCommunity();
... | true |
4408f00d5187c6647300916480f66680aabbf9ac | Java | ShinMinHong/fems_admin | /fems-master/src/com/firealarm/admin/common/dao/DemonLogDAO.java | UTF-8 | 665 | 1.882813 | 2 | [] | no_license | package com.firealarm.admin.common.dao;
import java.util.HashMap;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.firealarm.admin.common.support.DAOSupport;
import com.firealarm.admin.common.vo.IotDemonLogDT;
import framework.util.AbleUtil;
@Repository
public class DemonLogDAO e... | true |
a64e28936395665f2e6e018843f5c381f6ca815b | Java | angelomedina/MiniC-Sharp | /src/Checker/Analizadores/AC_Llamadas_Funciones.java | UTF-8 | 21,480 | 2.859375 | 3 | [] | no_license | package Checker.Analizadores;
import Antlr.MyParser;
import Antlr.MyParserBaseVisitor;
import Checker.TypeSymbol.*;
import org.antlr.v4.runtime.Token;
import java.util.LinkedList;
import java.util.List;
public class AC_Llamadas_Funciones extends MyParserBaseVisitor {
private int numErrors;
public SymbolTa... | true |
30f3cda69e1998ca8a8fcbff5f0251e291a29146 | Java | Mattsteban/andevcon-2016-hackathon | /app/src/main/java/com/mattsteban/checkyoself/views/FiveStarRatingView.java | UTF-8 | 3,324 | 2.578125 | 3 | [] | no_license | package com.mattsteban.checkyoself.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.mattsteban.checkyoself.R;
/**
* Created by matt on 8/... | true |
c02558ec36c7ffdf55434d7a58fa739fbe159caf | Java | fiorentinogiuseppe/Projetos_UFRPE | /2018.2/IA/Projeto/weka_source_from_jdcore/weka/classifiers/bayes/HNB.java | UTF-8 | 8,386 | 2.125 | 2 | [] | no_license | package weka.classifiers.bayes;
import weka.classifiers.Classifier;
import weka.core.Attribute;
import weka.core.Capabilities;
import weka.core.Capabilities.Capability;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.RevisionUtils;
import weka.core.TechnicalInformation;
import weka.core.Technic... | true |
df1d3aea6626cab1f41702cce058aab9eb368089 | Java | helloworld404/designPattern | /src/com/fighting/pattern/template/TemplateTest.java | UTF-8 | 331 | 2.671875 | 3 | [] | no_license | package com.fighting.pattern.template;
/**
* @Description 模板模式测试
* @Author: LiuXing
* @Date: 2020/5/28 21:32
*/
public class TemplateTest {
public static void main(String[] args) {
Person ordinary = new Ordinary();
ordinary.daily();
Person owl = new OWL();
owl.daily();
}
}
| true |
375338a1d83607b6303bdae8a2e841a746aba95d | Java | KipRashon/workspace-_eclipse | /General/src/readFile.java | UTF-8 | 742 | 2.9375 | 3 | [] | no_license | import java.io.*;
public class readFile{
public static void main(String args[]) throws Exception {
File f= new File("C:\\Users\\Rashon\\Documents\\study\\material_science.txt");
//File f= new File("F:\\Kapkenda.docx");
FileReader st= new FileReader(f);
BufferedReader br=new BufferedReader(st);
String line;... | true |
991b8657b021f41861a1d97752e983444f197830 | Java | zzoeliu/leetcode_java | /src/string/DecompressString.java | UTF-8 | 627 | 3.265625 | 3 | [] | no_license | package string;
import java.util.HashMap;
import java.util.Map;
/**
* Created by ZoeLiu on 9/22/15.
*/
public class DecompressString {
public String decompress(String input){
if (input == null || input.length() == 0){
return input;
}
StringBuilder result = new StringBuilder()... | true |
b272710e1825fdd68070267170b304b25aaa5666 | Java | linqinyun/JavaCode | /ObjectProj/src/com/imooc/school/Subject.java | UTF-8 | 2,145 | 3.359375 | 3 | [] | no_license | package com.imooc.school;
/**
* 专业类
* @author ZHR
*
*/
public class Subject {
//成员属性:学科名称,学科编号,学制年限、报名选修的学生信息、报名选修的学生个数
private String subjectName;
private String subjectNo;
private int subjectLife;
private Student[] myStudents;
private int studentNum;
//无参
public Subject() {
}
//带参--学科名称、编号、学制年限赋值
pu... | true |
5904d35c6766b25ede052abc22d0c3736bc6dbd1 | Java | easimon/gasmeter | /src/main/java/org/homenet/easimon/gasmeter/domain/GasRecordQuantizer.java | UTF-8 | 2,241 | 2.84375 | 3 | [] | no_license | package org.homenet.easimon.gasmeter.domain;
import java.time.Instant;
import java.time.ZoneId;
import java.time.temporal.TemporalUnit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
import org.apache.commons.lang3.builder.ToStrin... | true |
5f05ef46696e19febd9bd61b61113b3417fef013 | Java | bugminer/bugminer | /bugminer-server/src/main/java/de/unistuttgart/iste/rss/bugminer/computing/InvalidSshConfigException.java | UTF-8 | 488 | 1.945313 | 2 | [
"MIT"
] | permissive | package de.unistuttgart.iste.rss.bugminer.computing;
public class InvalidSshConfigException extends RuntimeException {
private static final long serialVersionUID = 6795496222100026267L;
public InvalidSshConfigException() {
super();
}
public InvalidSshConfigException(String message) {
super(message);
}
pub... | true |
52cf782a4f000c8c9dc8c69739ee0071a6cfd5be | Java | mahfuzsust/vertx | /src/main/java/com/example/vertx/repository/impl/MongoRepository.java | UTF-8 | 477 | 2.1875 | 2 | [] | no_license | package com.example.vertx.repository.impl;
import com.example.vertx.util.MongoConnection;
import com.example.vertx.util.MongoAdapterUtil;
public class MongoRepository<T, I> {
protected final MongoAdapterUtil<T, I> util;
protected final String COLLECTION;
public MongoRepository() {
this("");
}
public M... | true |
c993feb92ca90bf19c0d5c5614e1f923e978e535 | Java | JasnaMRB/CodeEval | /moderate/ColumnNames.java | UTF-8 | 2,210 | 2.984375 | 3 | [] | no_license | package moderate;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/*
@author jasnamrb
Challenge 197: https://www.codeeval.com/open_challenges/197/
Test cases:
52 -> AZ
3... | true |
61023edbdfbf3fb62236cd8ca126994231c58dbe | Java | 210419-USF-BSN-Java/James-Martinez | /Project_0_James_Martinez/radioactive_reptiles_app/src/main/java/com/revature/models/Customer.java | UTF-8 | 1,456 | 2.890625 | 3 | [] | no_license | package com.revature.models;
public class Customer extends Person{
/**
*
*/
private static final long serialVersionUID = 1L;
private String location;
private int custId;
public Customer() {
super();
}
public Customer(String name, String email, String password, String location, int custId) {
super... | true |
92c124527d96119f1be82af54f04be5fd61488e8 | Java | gufengwyx8/jfireframework | /jfire-litl/src/main/java/com/jfireframework/litl/function/FunctionRegister.java | UTF-8 | 1,350 | 2.671875 | 3 | [] | no_license | package com.jfireframework.litl.function;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.jfireframework.baseutil.exception.JustThrowException;
import com.jfireframework.baseutil.exception.UnSupportException;
import com.jfireframework.litl.template.LineInfo;
import com.jfireframe... | true |
6863efa35febc63bb5177a521134706982d8fa24 | Java | vishal123rana/nestedJsonParse | /src/main/java/com/example/nestedJsonParse/DAO/CustomerDAO.java | UTF-8 | 300 | 1.726563 | 2 | [] | no_license | package com.example.nestedJsonParse.DAO;
import com.example.nestedJsonParse.Entity.Customer;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CustomerDAO extends MongoRepository<Customer,Integer> {
}
| true |
d7346c8bfa0b098e866f2817546fa61218848343 | Java | luckyflower666/webapps | /s2w/WEB-INF/classes/uk/ac/surrey/ee/ccsr/s2w/model/iota/restlet/RestReqApplication.java | UTF-8 | 4,429 | 1.96875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.ac.surrey.ee.ccsr.s2w.model.iota.restlet;
import uk.ac.surrey.ee.ccsr.s2w.model.iota.restlet.resource.DeleteDescription;
import uk.ac.surrey.ee.ccsr.s2w.model.iota.restlet.resource.RegisterDescription;
import... | true |
b59a998b7d13a481b198fd7e5ee6a27d7d64cebd | Java | SomayNakhal/checkoutsystem | /src/main/java/com/checkoutsystem/offer/Offer.java | UTF-8 | 175 | 2.046875 | 2 | [] | no_license | package com.checkoutsystem.offer;
import java.util.List;
public interface Offer {
public List<OfferPrerequisite> getOfferPrerequisites();
public int getOfferAmount();
}
| true |
2c49f24042b2db93ea3fcf969584c74b0fe48adf | Java | chexov/vgweb | /src/main/java/com/vg/web/auth/IUser.java | UTF-8 | 76 | 1.65625 | 2 | [] | no_license | package com.vg.web.auth;
public interface IUser {
Object toUIJson();
}
| true |
c91200bcbf6cb0ccca7818e68591cbfa153ad061 | Java | sixshot626/h2o | /h2o-common/src/main/java/h2o/jenkov/container/impl/factory/FieldFactory.java | UTF-8 | 1,648 | 2.515625 | 3 | [
"BSD-2-Clause"
] | permissive | package h2o.jenkov.container.impl.factory;
import h2o.jenkov.container.itf.factory.FactoryException;
import h2o.jenkov.container.itf.factory.ILocalFactory;
import java.lang.reflect.Field;
/**
* @author Jakob Jenkov - Copyright 2005 Jenkov Development
*/
public class FieldFactory extends LocalFactoryBase implements... | true |
14db9a33a312df89000efea1fcde3ea40f606483 | Java | unreal0/java2dart | /com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/NgDecoratorElementProcessor.java | UTF-8 | 3,679 | 1.65625 | 2 | [] | no_license | /*
* Copyright (c) 2014, the Dart project authors.
*
* Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law... | true |
609360fa82d0f8be6eb3de5a86c8f52af2e42c86 | Java | Xiavic/XiavicParent | /XiavicLib/src/main/java/com/github/xiavic/lib/economy/api/Transaction.java | UTF-8 | 2,281 | 3.1875 | 3 | [] | no_license | package com.github.xiavic.lib.economy.api;
import java.util.Objects;
import java.util.UUID;
/**
* Represents a transaction between two {@link CreditHolder}s.
*/
public class Transaction {
public final UUID invoker;
private final CreditHolder invokingCreditHolder, targetCreditHolder;
private double su... | true |
ecfa3508fdc70d98a45608db9a8a2b51ad2c4726 | Java | lorenzobilli/LPO-project | /src/typechecker/TypeChecker.java | UTF-8 | 6,220 | 3.015625 | 3 | [] | no_license | /*
* LPO 2016/2017 - Final Project
* Author: Lorenzo Billi (S3930391)
*
* File: typechecker.TypeChecker.java
*
*/
package typechecker;
import common.Environment;
import common.Visitor;
import common.ast.*;
import static typechecker.PrimitiveType.BOOL;
import static typechecker.PrimitiveType.INT;
/**
* Typ... | true |
93419227585fa1a676b0c93bf930051566f3ff05 | Java | tamyuti/TwitterRestAutomation | /TwitterAutomationFramework/src/util/RestUtil.java | UTF-8 | 2,639 | 2.40625 | 2 | [] | no_license | package util;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
impo... | true |
abb6a981a71680bcc1f452bc921efdaa27ec962f | Java | thombergs/code-examples | /spring-security/getting-started/SecureApplication/src/main/java/com/reflectoring/security/exception/UserForbiddenErrorHandler.java | UTF-8 | 991 | 2.25 | 2 | [
"MIT"
] | permissive | package com.reflectoring.security.exception;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.web.access.AccessDeniedHandler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
35d60fdb1ce9c02051e49c52b19eb2d58746c59f | Java | YouyuanDev/prweb | /src/main/java/com/prweb/controller/ServiceTypeController.java | UTF-8 | 2,492 | 1.90625 | 2 | [] | no_license | package com.prweb.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.prweb.dao.ServiceTypeDao;
import com.prweb.entity.Role;
import com.prweb.entity.ServiceType;
import com.prweb.service.ServiceTypeService;
import com.prweb.util.ResponseUtil;
import org.omg.PortableI... | true |
938dda579b4b969072dea1f56502aa3e42c95bf8 | Java | losmochos/EyesInTheDarkness | /src/main/java/gigaherz/eyes/client/ClientEvents.java | UTF-8 | 1,074 | 1.882813 | 2 | [
"BSD-3-Clause"
] | permissive | package gigaherz.eyes.client;
import gigaherz.eyes.EyesInTheDarkness;
import gigaherz.eyes.entity.EyesEntity;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.fml.common.Mod;
... | true |
55910cb197a88b6a68ee93486b65480a4546201d | Java | ITfan0322/food | /src/com/xbboom/utils/SmsUtil.java | UTF-8 | 762 | 1.625 | 2 | [] | no_license | package com.xbboom.utils;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com.a... | true |
2c461b71d83c6b7a57a3b6f9de320625999c074c | Java | gilcu2/GridPageViewer2 | /wear/src/main/java/com/gilcu2/gridpageviewer2/SimpleGridActivity.java | UTF-8 | 1,251 | 2.140625 | 2 | [] | no_license | package com.gilcu2.gridpageviewer2;
/**
* Created by gilcu2 on 2/27/17.
*/
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.wearable.view.DotsPageIndicator;
import android.support.wearable.view.GridViewPager;
import com.learnandroidwear.simplegridv... | true |
39c2f03def5490a75e0f6c7d9a69db2bdcada268 | Java | khomiakovkevin/tsuro | /Tsuro/4/CommandValidator.java | UTF-8 | 11,696 | 3.296875 | 3 | [] | no_license | import java.util.function.Function;
import java.util.function.Predicate;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
/**
* A validator for potential commands.
*/
public class CommandValidator {
/**
* Determines whether the passed JsonElement repre... | true |
aa2b435c4bd0dc5f7c2770a1ef8de0091790f6d6 | Java | Stargator/koskela_sourcecode | /src/test/java/com/tddinaction/time/logging/TestHttpRequestLogFormatter.java | UTF-8 | 2,234 | 2.5 | 2 | [] | no_license | package com.tddinaction.time.logging;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.text.DateFormat;
import javax.servlet.http.... | true |
8d3f02478604a8d1fac62426f92249b38c012593 | Java | emmschuster/ObserverPattern_Newsletter | /src/Andrea.java | UTF-8 | 165 | 2.75 | 3 | [] | no_license | public class Andrea implements Subscriber{
@Override
public void benachrichtigung(Ausgabe a) {
System.out.println("Andrea hat "+a.getTitel()+" erhalten");
}
} | true |
38761397e2ce8d4e4917832023808947449e1a29 | Java | vandungitars/DemoJava_SpringBoot_Arsenal.com | /src/main/java/com/vandung/service/PractiseServiceImp.java | UTF-8 | 661 | 2.1875 | 2 | [] | no_license | package com.vandung.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.vandung.model.Practise;
import com.vandung.repository.PractiseRepository;
@Service("PractiseService")
... | true |
52ae11b8fdd92b661667b4ee5f99946318d9e605 | Java | satyapavan/spring | /SpringMaven-IBM-MUM/Demo_day1/src/exception/ExceptionMain1.java | UTF-8 | 475 | 3.296875 | 3 | [] | no_license | package exception;
public class ExceptionMain1 {
public static void main(String[] args) {
try{
int a=10;
int b=10;
double c= a/b;
String[] data = new String[10];
//data[0]="Shantanu";
data[0].length();
System.out.println("No Exception...");
}
catch (Exception e) {
System.out.println("Excetion ... | true |
d6c55483efccecd6a3eb6979636faf97502bee9c | Java | dnjsrud3407/TeemProject | /TeamProject/src/member/account/action/FindPassProAction.java | UTF-8 | 1,268 | 2.296875 | 2 | [] | no_license | package member.account.action;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import action.Action;
import member.account.svc.FindPassProService;
import vo.ActionForward;
public class FindPassProAction implements Action {
@Overri... | true |
8701b7d66bed2e02171ec5aaa802d91a5f304a25 | Java | RafaSaenz/CienciasBasicas | /src/java/business/Resource.java | UTF-8 | 4,708 | 2.328125 | 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 business;
import java.util.Date;
/**
*
* @author gerar
*/
public class Resource {
private String id;
... | true |
547d3b83840fd0546a7eb066c2a38a6b30900764 | Java | afugit/CommonLIbraries | /src/com/vonexus/Utility.java | UTF-8 | 3,441 | 2.78125 | 3 | [] | no_license | /**
* Miscellaneous utilities that are commonly used. Though shortcuts, these
* methods should never be used in writing a formal class. Every class should
* be independant of one another, so no relying on this. SHould only be
* utilized in main().
*
* @author Anthony M. Fugit
* @version 0.1.20171019
*/
pack... | true |
b6b8117b19e23517d596435b75f8f7ee8d542b9e | Java | ashuaraut21/EventManagement | /app/src/main/java/com/example/eventmanagment/admin.java | UTF-8 | 1,829 | 2.03125 | 2 | [] | no_license | package com.example.eventmanagment;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class admin extends AppCompatActivity {
Button add_location,update_location,view_location,delete_location;
... | true |
bae1a063cc6c17169889e84c83c6b691bb927ef1 | Java | dhung6322/classwork | /DavidHung/src/caveExplorer/NPC.java | UTF-8 | 2,344 | 3.40625 | 3 | [] | no_license | package caveExplorer;
public class NPC {
//fields needed to program navigation
private CaveRoom[][] floor; //area where NPC roams
private int currentRow;
private int currentCol;
private NPCRoom currentRoom;
//these fields are about interaction with NPC
private boolean active;
private String acti... | true |
9295b57760aa6bd355262e2a3cb5018279262947 | Java | Bathula-Rakesh/Coffee_Shop_ | /app/src/main/java/com/example/coffeeshop/CoffeeModel.java | UTF-8 | 1,020 | 3.015625 | 3 | [] | no_license | package com.example.coffeeshop;
import java.util.Iterator;
public class CoffeeModel {
int minus,plus,image;
String cost,name;
public CoffeeModel(int minus, int plus, int image, String cost, String name) {
this.minus = minus;
this.plus = plus;
this.image = image;
this.co... | true |
df8e9b69da278bc6f932f07c524db8c59a6480ba | Java | shivamjj65/Java-Programs | /P34_AccessModifiers.java | UTF-8 | 1,613 | 4.03125 | 4 | [] | no_license | package com.programs;
class C1{
public int x=5;
protected int y=45;
int z=6;
private int a = 12;
public void meth1(){
System.out.println("This is meth1() from class c1 which has values of x,y,z,a defined int it and all are accessible.");
System.out.println("\nx is public an... | true |
9d37cfc0635131b202260593158a06549457d4b7 | Java | theRichu/zc-pert | /src/com/autopertdiagram/action/ReadProjectActionBean.java | UTF-8 | 3,701 | 2.21875 | 2 | [] | no_license | package com.autopertdiagram.action;
import com.autopertdiagram.dao.ProjectDAO;
import com.autopertdiagram.pojo.Project;
import com.autopertdiagram.util.Utils;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.Str... | true |
6e1831023df728853b46c7560a2b0d25b2926699 | Java | hymer/security.s3h4 | /src/com/epic/core/BaseEntity.java | UTF-8 | 633 | 2.046875 | 2 | [] | no_license | package com.epic.core;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class BaseEntity implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
@... | true |
334678dc75a84e30dcc259dcac7e0df5a96e3fd9 | Java | fugeritaetas/morozko-lib | /java14-morozko/org.morozko.java.mod.db/src/org/morozko/java/mod/db/connect/pool/ConnectionFactoryPool.java | UTF-8 | 5,505 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*****************************************************************
<copyright>
Morozko Java Library
Copyright (c) 2007 Morozko
All rights reserved. This program and the accompanying materials
are made available under the terms of the Apache License v2.0
which accompanies this distribution, and is availa... | true |
93eff665b3c8a3be39a705da947aebedc9aab658 | Java | satyamramani/Tame-Of-Thrones | /src/test/java/com/tameofthrones/create/CreateKingdomTest.java | UTF-8 | 2,054 | 2.671875 | 3 | [] | no_license | package com.tameofthrones.create;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.tameofthrones.dto.Kingdom;
import org.junit.jupiter.api.Test;
public class CreateKingdomTest {
@T... | true |
0311d87082f11e9f996a151766f992a1ffeb826c | Java | TECH-NOX/Cucumber_CRMPRO_TestSuite | /src/test/java/testRunner/LoginTestRunner.java | UTF-8 | 700 | 1.757813 | 2 | [] | no_license | package testRunner;
import org.junit.After;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import com.cucumber.listener.Reporter;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/resources/feats/Login.feature"},
glue = {"stepDefs" },
... | true |
13de26b9f15cc6869d6807acaa78df372d652af1 | Java | rmilbradt/P14_cenarios | /src/br/ufsm/csi/p14/model/Custos.java | UTF-8 | 2,857 | 2.328125 | 2 | [] | no_license | package br.ufsm.csi.p14.model;
import org.springframework.format.annotation.NumberFormat;
import javax.persistence.*;
/**
* Created by politecnico on 03/07/2015.
*/
@Entity
@Table
public class Custos {
@Id
private Long id;
@NumberFormat(pattern = "0.00")
private Float pis;
@NumberFormat(patt... | true |
743a600a5b5c3fd9eb81f9836df582d05d1fae7e | Java | ScaleUnlimited/cascading.cuke | /src/main/java/com/scaleunlimited/cascading/cuke/WorkFlowStepDefinitions.java | UTF-8 | 15,762 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.scaleunlimited.cascading.cuke;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.commons.io.FileUtils;
import org.apache.hadoop.fs.PathNotFoundException;
import cascading.flow.Flow;
import cascading.flow.hadoop.HadoopF... | true |
72e07d4eab4e47eed40ea8bc507d3f149d276ba5 | Java | mahmoudbakar/GoDuettoCompanion | /app/src/main/java/com/undecode/goduettocompanion/models/LanguageModel.java | UTF-8 | 722 | 2.390625 | 2 | [] | no_license | package com.undecode.goduettocompanion.models;
import javax.annotation.Generated;
import com.google.gson.annotations.SerializedName;
@Generated("com.robohorse.robopojogenerator")
public class LanguageModel{
@SerializedName("LanguageName")
private String languageName;
@SerializedName("ID")
private String iD;
p... | true |
93a9e850501e6eff31a8bb71f9bbdacfd54e970c | Java | teja5652/SpringController | /src/com/package1/Implementation.java | UTF-8 | 976 | 2.390625 | 2 | [] | no_license | package com.package1;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.package1.service.EmployeeService;
public class Implementation {
public static void main(String[] args)
{
AnnotationConfigApplicationContext apc = new AnnotationConfigApplicationContext(Configura... | true |
0f898600d579753f7812c07eb08418f1cb0f024b | Java | YoonSung/SpringGradlePractice | /domain/src/main/java/architree/yoon/util/Constant.java | UTF-8 | 834 | 1.882813 | 2 | [] | no_license | package architree.yoon.util;
/**
* Created by yoon on 15. 3. 25..
*/
public class Constant {
public static final String PROPERTY_KEY_DB_DRIVERCLASSNAME = "database.driverClassName";
public static final String PROPERTY_KEY_DB_URL = "database.url";
public static final String PROPERTY_KEY_DB_USERNAME = "dat... | true |
326fd000b7410398e2421ff9a084c6e9503e9d59 | Java | GusDel92/myUber3 | /MyUber3/src/myUberCar/BerlineCar.java | UTF-8 | 540 | 2.5625 | 3 | [] | no_license | package myUberCar;
import myUberDriver.Driver;
import myUberRide.Request;
public class BerlineCar extends Car {
private static int berlineID = 0;
public BerlineCar(String type, Driver owner) {
super(type, owner);
berlineID++;
this.setCarID("berline"+berlineID);
setTotalSeats(4);
this.pos... | true |
582057610e8beaeb2ced54f98a5c591910616b44 | Java | lichao20000/WEB | /src/main/java/com/linkage/liposs/buss/util/CorbaUtil.java | UTF-8 | 5,760 | 2.328125 | 2 | [] | no_license | package com.linkage.liposs.buss.util;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import org.omg.CosNaming.NameComponent;
import org.omg.CosNaming.NamingContext;
import org.omg.CosNaming.NamingContextHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFa... | true |
1f35abcc11b95068fe56e919695c11a50a17594c | Java | Nazeer-spec/Java-Basic-Practice | /static&non_static/Non_static.java | UTF-8 | 310 | 2.84375 | 3 | [] | no_license | class Non_static
{
long k=9876543210l;
static int v=1234;
public void count()
{
System.out.println("This is Count()");
System.out.println("k ="+k);
System.out.println("v ="+v);
}
public static void main(String[] args)
{
System.out.println(new Non_static().k);
new Non_static().count();
}
} | true |
7be0df4c8540b308bdebce07ab280f8c4df70808 | Java | borisrperezg/rebel | /rebel_chatlogs/src-gen/rebel_chatlogs/MessageLog.java | UTF-8 | 3,950 | 2.0625 | 2 | [] | no_license | /**
*/
package rebel_chatlogs;
import java.util.Date;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Message Log</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* ... | true |
703bf94ff1700412341499b8d441b4657a25103c | Java | ducdh1210/Interview_Prep | /src/Design_Pattern/Pattern_Decorator/Pizza.java | UTF-8 | 238 | 2.5625 | 3 | [] | no_license | package Design_Pattern.Pattern_Decorator;
/**
* Created by ducdh1210 on 10/17/14.
*/
/** Blueprint for classes that will have decorators */
public interface Pizza {
public String getDescription();
public double getCost();
}
| true |
5983de84957d9c11459135a1ece25bd8f65b4fb8 | Java | ZoranLi/thunder | /anet/channel/security/ISecurityFactory.java | UTF-8 | 186 | 1.726563 | 2 | [] | no_license | package anet.channel.security;
/* compiled from: Taobao */
public interface ISecurityFactory {
ISecurity createNonSecurity(String str);
ISecurity createSecurity(String str);
}
| true |
8373fe5a54e8b6ccbbcef2fea7ef5a054911d304 | Java | srikanth1998/FindingHospitalsHackathon | /src/test/java/com/team/findinghospital/qa/testcases/CorporateWellnessPageTest.java | UTF-8 | 3,438 | 2.15625 | 2 | [] | no_license | package com.team.findinghospital.qa.testcases;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.ann... | true |
bfa71f9d508069db86f6ebfb66bcf1c6ba442d52 | Java | akshunyaautomation/KalagatoAPIautomation | /src/main/java/kalagato/userAPI/ForgetPasswordRequest.java | UTF-8 | 748 | 2 | 2 | [] | no_license | package kalagato.userAPI;
import static io.restassured.RestAssured.given;
import files.payload;
import io.restassured.path.json.JsonPath;
public class ForgetPasswordRequest {
public String forgetPasswordRequestResponse;
public static String forgetPasswordRequestMessage;
public void forget_password_request() {
... | true |
c060623513816358a0ca1b85e84a644a950d6382 | Java | guxi/CourseDemo | /CourseDemo/src/edu/wust/array/arrTest.java | GB18030 | 2,150 | 2.984375 | 3 | [] | no_license | package edu.wust.array;
import java.util.ArrayList;
public class arrTest {
private int[] arr=new int[3];
private int[][] arr2D=new int[2][2];
private score[] S=new score[3];
void get(){
/*for(int i=0;i<arr.length;i++){
System.out.println(i+":"+arr[i]);
}*/
for(score s:S){
System.out.println(s.get... | true |
af47e5ec0d97ebd9ba6479835043613d60a5df7c | Java | swlee93/whatsysup | /whatsysup-server/src/main/java/whatsysup/polls/model/Poll.java | UTF-8 | 2,400 | 2.140625 | 2 | [] | no_license | package whatsysup.polls.model;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToM... | true |
73b86bbc5674f56ea88c4dbc971784e62ebc1e3a | Java | bfitzpat/tools | /eclipse/plugins/org.switchyard.tools.models.switchyard1_0/src/org/switchyard/tools/models/switchyard1_0/rules/impl/ManifestTypeImpl.java | UTF-8 | 13,469 | 1.515625 | 2 | [] | no_license | /**
*/
package org.switchyard.tools.models.switchyard1_0.rules.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
imp... | true |
51e40350ed2f6fa8be64523d4c14b58cb9cefaa8 | Java | nafiu1994/Assignment3_10522782 | /src/ProgByDoing/GettingIndividualDigits.java | UTF-8 | 718 | 3.171875 | 3 | [] | no_license | package ProgByDoing;
/**
*
* @author Lawal Nafiu
*/
public class GettingIndividualDigits {
public static void main(String[] args) throws Exception
{
int sum;
for(int j = 10; j < 100; j++)
{
System.out.print(j + ", ");
sum = 0;
fo... | true |
bafb7be5bca6cd21dde3fe34bbb8e95fe939dfe7 | Java | frzhao99/frzhao01 | /LOTTERY_MEMBER_1.2/src/com/symbio/dao/hibernate/GenericDao.java | UTF-8 | 4,559 | 2.671875 | 3 | [] | no_license | package com.symbio.dao.hibernate;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.symbio.commons.Compositor;
import com.symbio.commons.Filtration;
import com.symbio.commons.Page;
/**
*
* dao基类. 1:该类封装了最常见数据库操作的方法,不同的ORM映射框架可以实现该接口,实现项目通用Dao
* 2:当你有多个sessionFactor... | true |
ace1d96836940408895f3cfb351da28c5957a497 | Java | jboss-modules/jboss-modules | /src/main/java/org/jboss/modules/ref/StrongReference.java | UTF-8 | 1,667 | 2.296875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-indiana-extreme"
] | permissive | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | true |
2e44f594ab62a267fea8d61b5c5fc8b234ea3228 | Java | pluskot/ShoppingListClient | /app/src/main/java/com/example/patryk/shoppinglist/activities/LandingPageActivity.java | UTF-8 | 1,173 | 2.0625 | 2 | [] | no_license | package com.example.patryk.shoppinglist.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.patryk.shoppinglist.R;
public class LandingPageActivity extends AppCompatActivity {
... | true |
c6c19a58bf66c2a5b71e9ba00328fff82f69d8fb | Java | coypanglei/zongzhi | /app/src/main/java/com/weique/overhaul/v2/di/module/BusinessInterviewModule.java | UTF-8 | 977 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.weique.overhaul.v2.di.module;
import com.jess.arms.di.scope.ActivityScope;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import com.weique.overhaul.v2.mvp.contract.BusinessInterviewContract;
import com.weique.overhaul.v2.mvp.model.BusinessInterviewModel;
/**
* ====================... | true |
5e433a622b6893024d133bea730cdb52f1733779 | Java | unidev-polydata/polydata-storage-mongodb | /polydata-storage-mongodb-core/src/main/java/com/unidev/polydata/AbstractPolyStorage.java | UTF-8 | 2,497 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.unidev.polydata;
import static com.mongodb.client.model.Filters.eq;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.result.DeleteResult;
import com.unidev.polydata.domain.BasicPoly;
import java.util.Optional;
import org.bson.Document;
/**
* Abstract s... | true |
605e2e7083fb1eb3b655151b689a0919fe8f4546 | Java | Lrchfox3/Lrchfox3Soft | /src/com/gmail/lrchfox3/paint/InterfaceArrastrarRaton.java | UTF-8 | 2,104 | 3.09375 | 3 | [] | no_license | /**
* Javier Abell�n, 24 Mayo 2006
* Interface para las clases encargadas de hacer algo cuando se arrastre el
* rat�n.
*/
package com.gmail.lrchfox3.paint;
// <editor-fold defaultstate="collapsed" desc=" Librerias ">
import java.awt.event.MouseEvent;
import java.awt.geom.Point2D;
// </editor-fold>
/**... | true |
fb28c2e72ed183bb317f23dd6444e1e0d976a477 | Java | ildar66/WSAD_NRI | /2005/webcommon/com/hps/july/security/service/JulySecurityService.java | UTF-8 | 220 | 1.84375 | 2 | [] | no_license | package com.hps.july.security.service;
/**
* @author dkrivenko
*/
public interface JulySecurityService {
/**
* @param operatorLogin
*/
void switchOperator(String operatorLogin) throws JulySecurityException;
}
| true |
55c999716d5830ceb7b88bb0ec9f3b4998cda1ee | Java | Rkato1/Spring | /05_Spring_Mybatis/src/main/java/com/kim/common/MemberPwEnc.java | UTF-8 | 1,222 | 2.265625 | 2 | [] | no_license | package com.kim.common;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.... | true |
b982649ad853d950f73f74782454c4d7a430c400 | Java | liaohao1986/helloworld | /src/main/java/com/huoli/checkin/design/pattern/rpc/RpcProvider.java | UTF-8 | 546 | 2.1875 | 2 | [] | no_license | /**
*
*/
package com.huoli.checkin.design.pattern.rpc;
/**
* TODO:简单描述这个类的含义 <br>
* 版权:Copyright (c) 2011-2017<br>
* 公司:北京活力天汇<br>
* 版本:1.0<br>
* 作者:廖浩<br>
* 创建日期:2017年4月1日<br>
*/
/**
* RpcProvider
*
* @author william.liangf
*/
public class RpcProvider {
public static void mai... | true |
9f6f86e8236357a74eac2016e8100877d40f5fcc | Java | luciano/studying_android | /SemFogo/app/src/main/java/br/com/liugsilva/semfogo/Empresa.java | UTF-8 | 1,612 | 2.5 | 2 | [
"MIT"
] | permissive | package br.com.liugsilva.semfogo;
import java.io.Serializable;
/**
* Created by Luciano on 15/02/2016.
*/
public class Empresa implements Serializable {
public static final String NOME = "nome";
public static final String EMAIL = "email";
public static final String TELEFONE = "telefone";
... | true |
c44ffbb0290fd91e2d2655f5a0d20fc8a1d14bac | Java | hoangson13/Monster-Life | /Moster Life/src/dev/game/entities/combattroop/EnemyTroop.java | UTF-8 | 4,188 | 2.421875 | 2 | [] | no_license | package dev.game.entities.combattroop;
import dev.game.Handler;
import dev.game.entities.Entity;
import dev.game.entities.EntityManager;
import dev.game.entities.ID;
import dev.game.entities.bullet.EnemyBullet;
import dev.game.entities.bullet.EnemySmartBullet;
import dev.game.entities.bullet.PlayerBullet;
imp... | true |
9c39d505f06c4010b8801dc2d0cfa9790ff75b4a | Java | sanioglusena/CustomerApplication | /src/main/java/com/delivery/customer/mapper/CustomerMapper.java | UTF-8 | 815 | 2.46875 | 2 | [] | no_license | package com.delivery.customer.mapper;
import com.delivery.customer.entity.Customer;
import com.delivery.customer.response.AddressDto;
import com.delivery.customer.response.CustomerDto;
import java.util.List;
import java.util.stream.Collectors;
public class CustomerMapper {
public static CustomerDto map(Customer... | true |
6df2cdd0b0f895316f55fe2be18a4d37ba886dd2 | Java | lingxfeng/seafood | /frame/src/shop/src/main/java/com/eastinno/otransos/shop/promotions/query/RushPayRecordQuery.java | UTF-8 | 1,829 | 2.15625 | 2 | [] | no_license | package com.eastinno.otransos.shop.promotions.query;
import java.util.Date;
import com.eastinno.otransos.core.support.query.QueryObject;
public class RushPayRecordQuery extends QueryObject{
private static final long serialVersionUID = 1L;
private Date startDate;
private Date endDate;
private String regularName;
... | true |
35f71c1db068148092c848bcea97a3415c3e82e8 | Java | thakur03/DemoHibernate | /src/com/grailsbrains/actions/RetrieveAction.java | UTF-8 | 1,215 | 2.09375 | 2 | [] | no_license | package com.grailsbrains.actions;
import com.grailsbrains.manage.Output;
import com.grailsbrains.manage.POManage;
import com.grailsbrains.persistence.PurchaseOrder;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.strut... | true |
9dd749e02fff1751fa5843837f3f5623ef129ea0 | Java | mariabarburescu/Sistem-de-facturi-fiscale | /Login.java | UTF-8 | 1,461 | 2.578125 | 3 | [] | no_license | package SistemDeFacturiFiscale;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
pub... | true |
91dc0007d6d683609d54350872a43148fe614b17 | Java | lilleswing/Google-Code-Jam | /java-gcj/src/main/java/lilleswing/gcj/a2013/qualification/fairsquare/Dataset.java | UTF-8 | 226 | 2.09375 | 2 | [] | no_license | package lilleswing.gcj.a2013.qualification.fairsquare;
class Dataset {
private int lower;
private int upper;
public Dataset(int lower, int upper) {
this.lower = lower;
this.upper = upper;
}
}
| true |
996067a02f0adafd7d8a1d3ea6d58cd66367ddfb | Java | ict20215/ict | /pra03/src/work/Company.java | UTF-8 | 505 | 2.1875 | 2 | [] | no_license | package work;
import java.io.Serializable;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
/**
* Servlet implementation class Company
*/
@WebServlet(name = "Companyname", urlPatterns = { "/Companynamemap" })
public class Company extends HttpServlet implements Serializable {
pri... | true |
cdb56bf0173bbec5dcb0be971d0406cb44a39df4 | Java | MegaTuks/GodRace | /src/godrace/Game.java | UTF-8 | 13,073 | 2.46875 | 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 godrace;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;... | true |
7acecc6d118157c12b49b9718d9ee058df37a95c | Java | milkyway0308/Horizon-Essentials | /Horizon Essentials/src/Commands/CommandWhisper.java | UHC | 2,692 | 2.28125 | 2 | [] | no_license | package Commands;
import java.util.Arrays;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import DataUtil.DoubleString;
import DataUtil.PermissionType;
import Horizon_Essenti... | true |
24b28e488f5fd80de8d84443a30bd9c886d1f0c7 | Java | 1203992808/leetcode | /src/main/java/Coin_Charge.java | UTF-8 | 923 | 3.125 | 3 | [] | no_license | /**
* @author syz
* @date 2018-12-13 22:10
*/
/**
* leetcode 322
* 现存在一堆面值为 1,2,5,11,20,50 面值的硬币,问最少需要多少个硬币才能找出总值为 N个单位的零钱
*
* */
public class Coin_Charge {
public static int f1(int[] arr ,int target) {
int[] dp = new int[target +1];
int max = Integer.MAX_VALUE;
int min = Integer.MIN... | true |
f9d373c725d9c4e066c319635879dac8f3fabb36 | Java | KhaledAKassem/V2HiMamyDad | /app/src/main/java/medic/esy/es/mamyapp/Activites/staff/Signupforstaff.java | UTF-8 | 2,788 | 2.21875 | 2 | [] | no_license | package medic.esy.es.mamyapp.Activites.staff;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.... | true |
1eca0bbed3cec90ce2167a846e58bb7438744788 | Java | sukharebskaya/HomeWork | /Homework/src/InheritanceHomeWork/GroundTransport.java | UTF-8 | 4,306 | 3.203125 | 3 | [] | no_license | package InheritanceHomeWork;
import java.util.Objects;
public abstract class GroundTransport extends Transport{
private int wheelNum;
private double fuelConsRate; //litre/100 km
public int getWheelNum() {
return wheelNum;
}
public void setWheelNum(int wheelNum) {
this.wheelNum = ... | true |