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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
37533c3931651f4ec45146ac662a7c7c230da270 | Java | liu835704070/tenvisty_android | /commonlib/src/main/java/com/tws/commonlib/wificonfig/HiSmartLink.java | UTF-8 | 989 | 2.171875 | 2 | [] | no_license | package com.tws.commonlib.wificonfig;
import com.hichip.HiSmartWifiSet;
/**
* Created by Administrator on 2017/7/24.
* AP6212配置WiFi
*/
public class HiSmartLink extends BaseConfig {
private Thread mThread = null;
private boolean mDone = false;
private int mIP;//IP
private HiSmartLink(){
}
... | true |
5a8556e66a6f8b74a43d51cc0615c8b38995b626 | Java | Zolro/thinkJavaTest | /src/com/jw/inDepth/container/Government.java | UTF-8 | 196 | 2.328125 | 2 | [] | no_license | package com.jw.inDepth.container;
import com.jw.generic.Generator;
public class Government implements Generator<String>{
@Override
public String next() {
return null;
}
}
| true |
6f4b1fce590787965679bd04bc1339b7e33643af | Java | amit1881/offline | /src/main/java/com/offline/TestMap.java | UTF-8 | 1,491 | 3.21875 | 3 | [] | no_license | package com.offline;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class TestMap {
public static void main(String[] args) {
// TODO Auto-generated method stub
Map<Integer,String> ma=new HashMap<Integer,String>();
ma.put(1, "a");
ma.put(2, "b");
ma.put(3, "c");
Sy... | true |
395e77dbf69c4e610ac7d427b64c9723cbfd2309 | Java | SergeyYakimaha/JavaEE_projects | /REST/src/main/java/shop/College.java | UTF-8 | 1,946 | 3.0625 | 3 | [] | no_license | package shop;
import shop.entity.Student;
import shop.entity.StudentList;
import java.util.LinkedHashMap;
import java.util.Map;
public class College {
private static Map<Integer, Student> items;
private static int key;
private static College instance;
public College() {
}
static {
i... | true |
2100df5d6bd288b268383680e1b6a392f8d3eaa7 | Java | enishlabs/logpad-java | /gui/src/main/java/io/github/enishlabs/logpad/Controller.java | UTF-8 | 789 | 2.640625 | 3 | [] | no_license | package io.github.enishlabs.logpad;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.stage.FileChooser;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
public class Controller
{
@FXML
private TextArea textArea;
public void ... | true |
5cde5112e408edf871b3ce654a6a75338979d218 | Java | david10923/TrafficSimulator | /src/simulator/model/RoadMap.java | UTF-8 | 4,556 | 2.796875 | 3 | [] | no_license | package simulator.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import Exceptions.InvalidArgumentException;
public class RoadMap {
private List<Junction> JunctionList;
... | true |
05171bab006853468c163c23424f1c720d68af6e | Java | suissa/dci-examples | /frontloading/java-qi4j/marc-grue/src/main/java/v6/domain/entity/ProjectEntity.java | UTF-8 | 222 | 1.523438 | 2 | [] | no_license | package v6.domain.entity;
import org.qi4j.api.entity.EntityComposite;
import v6.domain.data.Project;
/**
* Project data
*/
public interface ProjectEntity
extends EntityComposite,
// Data
Project
{
}
| true |
21181c0b99ab0f9bc7ecf33147b6053d3c8cf471 | Java | JohnSporn/Data-Structures | /Queue And Stack/src/stackInterface/LLStack.java | UTF-8 | 1,009 | 3.40625 | 3 | [] | no_license | package stackInterface;
import nodes.LLNode;
public class LLStack<E> implements StackInterface<E> {
private LLNode<E> head;
private int size;
public LLStack() {
this.head = null;
this.size = 0;
}
public void push(E element) {
LLNode<E> newNode = new LLNode<E>(elem... | true |
9551733d7de6590bfa9b2733d082ff1e3073458a | Java | ayrtonsrego/test-ithappens-1101 | /implementacao/src/br/com/ithappens/entity/Produto.java | UTF-8 | 769 | 2.484375 | 2 | [] | no_license | package br.com.ithappens.entity;
public class Produto {
private int sequencial;
private int codigoBarras;
private String descricao;
public Produto(int sequencial, int codigoBarras, String descricao) {
this.sequencial = sequencial;
this.codigoBarras = codigoBarras;
this.descricao = descricao;
}
... | true |
dbf74384e736443409b79fd427b9e8fc77f14fb7 | Java | Dabinai/ViewCircle | /app/src/main/java/com/example/dabin/www/day03_viewcircle/VirtualKeyView.java | UTF-8 | 3,436 | 2.765625 | 3 | [] | no_license | package com.example.dabin.www.day03_viewcircle;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.util.AttributeSet;
import android.view.MotionEvent;
import... | true |
c68d2d64ed10871e3b6285bad0eb1f194841a123 | Java | fewwind/LearnDemo | /thirdPartLoginLibrary/src/main/java/com/RCPlatformSDK/ThridPartLoginClient/FacebookLoginClient.java | UTF-8 | 6,642 | 2.09375 | 2 | [] | no_license | package com.RCPlatformSDK.ThridPartLoginClient;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import com.RCPlatformSDK.ThridPartLoginClient.ClientStandard.LoginClient;
import com.RCPlatformSDK.Thri... | true |
fc21730a95d3d15e15af967825fb78ed6a403e06 | Java | abeker/Literary-Association | /literary-association/src/main/java/com/lu/literaryassociation/controller/AdminController.java | UTF-8 | 882 | 2 | 2 | [] | no_license | package com.lu.literaryassociation.controller;
import com.lu.literaryassociation.dto.response.DeletedUser;
import com.lu.literaryassociation.services.definition.IAdminService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springfr... | true |
6fec0755f7f0817251ca640530a8564d60e97595 | Java | liuFuNewbie/catering | /src/cn/catering/tools/PageSupport.java | UTF-8 | 1,130 | 2.796875 | 3 | [] | no_license | package cn.catering.tools;
/**
* @ClassName: PageSupport
* @Description: 分页类
* @author: MDS
* @date: 2018年3月29日 上午12:29:46
*/
public class PageSupport {
/**
* 总行数
*/
private int totalCount;
/**
* 页的大小
*/
private int pageSize;
/**
* 当前页数
*/
private int currentPageNo = 1;
... | true |
529d1c75544fcf370ef7a0b981456636a0b0fe72 | Java | kadr0id/tasksAndReview | /app/src/main/java/oop/singleton/LandlinePhone2.java | UTF-8 | 387 | 2.5 | 2 | [] | no_license | package oop.singleton;
// On Demand Holder - fast
public class LandlinePhone2 {
private LandlinePhone2(){}
public static class LandlinePhone2Holder {
public static final LandlinePhone2 HOLDER_LANDLINE_PHONE_2 = new LandlinePhone2();
}
public static LandlinePhone2 getHolderLandlinePhone() {
... | true |
f911b358bf4e2f96fe8007011940268190360d1a | Java | okushama/NotEnoughKeys | /src/main/java/okushama/notenoughkeys/keys/Keybinds.java | UTF-8 | 1,241 | 2.046875 | 2 | [] | no_license | package okushama.notenoughkeys.keys;
import java.util.EnumSet;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import okushama.notenoughkeys.NotEnoughKeys;
import org.lwjgl.input.Keyboard;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.... | true |
c6e28883f1b317f24851c71ee8fd828121421200 | Java | karthikeyan1495/QuickezeService | /app/src/main/java/com/star/quickezeservice/invoicemode/InvoiceOnlineActivity.java | UTF-8 | 929 | 1.820313 | 2 | [] | no_license | package com.star.quickezeservice.invoicemode;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.star.quickezeservice.R;
import com.star.quickezeservice.databinding.ActivityInvoiceOnlineBinding;
... | true |
403d1acfc7c8cff189e102e7035a83dbc674fb40 | Java | saobai123/JingDong | /app/src/main/java/test/bwei/jingdong/register/model/RegModelSx.java | UTF-8 | 1,680 | 2.046875 | 2 | [] | no_license | package test.bwei.jingdong.register.model;
import android.content.Context;
import android.text.TextUtils;
import com.bwei.okhttp3ps.utils.GsonObjectCallback;
import com.bwei.okhttp3ps.utils.OkHttp3Utils;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import okhttp3.Call;
import test.bwe... | true |
19ccff2d2dbfdf4ee007697c43b4dd8154bf30a8 | Java | hmcts/fpl-ccd-configuration | /service/src/main/java/uk/gov/hmcts/reform/fpl/enums/notification/DocumentUploaderType.java | UTF-8 | 177 | 1.625 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.reform.fpl.enums.notification;
public enum DocumentUploaderType {
SOLICITOR, DESIGNATED_LOCAL_AUTHORITY, SECONDARY_LOCAL_AUTHORITY, HMCTS, BARRISTER
}
| true |
71deb4c6d2066f49db9ce532ad85e47233b2eb61 | Java | dejuanj86/Lab-3-DecisionMaking | /src/MakeDecision.java | UTF-8 | 999 | 3.609375 | 4 | [] | no_license |
import java.util.Scanner;
public class MakeDecision {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
System.out.println("Hello! Please enter your name: ");
String name = sc.nextLine();
String question;
do {
System.out.println(name + " enter a number between 1 t... | true |
ba93ce0e2b8118551d206f1ce02ed1f233366a60 | Java | sandeep3133/HaqdarshakTest | /app/src/main/java/com/mudhales/haqdarshak/ui/ListDataViewModel.java | UTF-8 | 894 | 1.898438 | 2 | [] | no_license | package com.mudhales.haqdarshak.ui;
import android.app.Application;
import com.mudhales.haqdarshak.data.FeedData;
import com.mudhales.haqdarshak.repository.ListRepository;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.Vi... | true |
6394600ec2672532962d9d94a968e6c500aeb08c | Java | valeriemontoya90/Hetweetic | /app/src/main/java/net/hetic/hetweetic/Fragment/ListTimelineFragment.java | UTF-8 | 4,006 | 2.21875 | 2 | [] | no_license | package net.hetic.hetweetic.Fragment;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterVie... | true |
84c9b2fa2655df82a2f7a9f7c6fa131d36c634fe | Java | KrisStoyanov01/FakeNewsAgency | /src/main/java/fakenewsagency/web/controllers/RequestController.java | UTF-8 | 4,837 | 2.3125 | 2 | [] | no_license | package fakenewsagency.web.controllers;
import fakenewsagency.common.annotations.PageTitle;
import fakenewsagency.domain.entites.User;
import fakenewsagency.domain.models.binding.RequestBindingModel;
import fakenewsagency.domain.models.service.RequestServiceModel;
import fakenewsagency.domain.models.service.UserServic... | true |
12448b81b0d1ab2b31b5ba8995986b96e9873300 | Java | vamroca/ProyectosNetbeans | /bovedadigital/src/bovedadigital/Bovedadigital.java | UTF-8 | 2,633 | 2.890625 | 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 bovedadigital;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Bov... | true |
4cd8db07063325f063de1d77c80b356d3009f2fb | Java | paulamillanrabanaque/EDD | /Junit/src/main/java/es/salesianos/impl/SaludarIngles.java | UTF-8 | 196 | 2.140625 | 2 | [] | no_license | package es.salesianos.impl;
import es.salesianos.interfaz.Saludar;
public class SaludarIngles implements Saludar {
public String sayHello(String name) {
return "Hello world " + name;
}
}
| true |
380872c4c89144c36b11ecc5d03899cede6a7ed4 | Java | potatolylc/SmartHomeRapidPrototype | /src/main/java/ioedata/actuator/service/ActuatorServiceImpl.java | UTF-8 | 4,691 | 2.296875 | 2 | [] | no_license | package ioedata.actuator.service;
import ioedata.actuator.factory.ActuatorManager;
import ioedata.actuator.model.ActuatorValue;
import ioedata.actuator.repository.ActuatorRepository;
import ioedata.device.model.DeviceValue;
import ioedata.device.service.DeviceService;
import ioedata.exception.factory.ActuatorDuplicate... | true |
058560cfb9a39feb7c9d61a35327880d1cb1cdf2 | Java | bean-bag/demoCode | /src/main/java/chapter2/lesson9/ToStringDemo.java | UTF-8 | 777 | 2.984375 | 3 | [] | no_license | /**
* Project Name:demoCode
* File Name:ToStringDemo.java
* Package Name:chapter2.lesson9
* Date:2018年1月8日上午9:08:25
* Copyright (c) 2018, bluemobi All Rights Reserved.
*/
package chapter2.lesson9;
import org.apache.log4j.Logger;
/**
* Description: <br/>
* Date: 2018年1月8日 上午9:08:25 <br/>... | true |
acba0365d84ffa09e475f42a74f783939ed392cc | Java | ElD4n1/easyFlyer | /src/easyFlyer/model/event/FlyerComponentEvent.java | UTF-8 | 578 | 2.171875 | 2 | [] | no_license | package easyFlyer.model.event;
import java.util.EventObject;
import easyFlyer.model.FlyerComponent;
public class FlyerComponentEvent
extends EventObject
{
private static final long serialVersionUID = -9134913647155412659L;
public static final int CONTENT_CHANGED = 0;
public static final int COMPONENT_RESIZED ... | true |
038830533890716679978c01f130eade96e2983f | Java | HeligPfleigh/epubcheck | /src/main/java/com/adobe/epubcheck/util/SearchDictionary.java | UTF-8 | 4,280 | 2.078125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.adobe.epubcheck.util;
import com.adobe.epubcheck.messages.MessageId;
import java.util.Vector;
public class SearchDictionary
{
public enum DictionaryType
{
VALID_TEXT_MEDIA_TYPES, CSS_FILES, CSS_VALUES, LINK_VALUES, SVG_MEDIA_TYPES
}
public SearchDictionary(DictionaryType dt)
{
if (dt... | true |
8e9f1fd134339fa5ad50be62669afd87125f8e0b | Java | jcharnetsky/web_spotify | /src/main/java/webspotify/responses/SearchResponse.java | UTF-8 | 1,309 | 2.296875 | 2 | [] | no_license | package webspotify.responses;
import java.io.Serializable;
import java.util.Set;
/**
* @author Cardinals
*/
public class SearchResponse implements Serializable {
private Set<BasicSongResponse> songs;
private Set<BasicUserInfoResponse> users;
private Set<BasicCollectionResponse> albums;
private Set<BasicCol... | true |
2a0b0a2f92d841f3c06d111ac1045b6cb578630c | Java | BackupTheBerlios/wave-svn | /trunk/de.gulden.modeling.wave/src/de/gulden/modeling/wave/diagram/edit/parts/ModelMemberDocsEditPart.java | UTF-8 | 1,941 | 1.9375 | 2 | [] | no_license | /*
* WAVE - Web Application Visual Environment
* A Graphical Modeling Framework (GMF) Plugin for Eclipse
* Copyright Jens Gulden, 2009, mail@jensgulden.de
* Licensed under the GNU General Public License (GPL)
*/
package de.gulden.modeling.wave.diagram.edit.parts;
import org.eclipse.draw2d.Connection;
import org.e... | true |
ff481538396be8713d1d76bb0864b0f0b71ccd53 | Java | zukululushikufu/CTP150 | /Homework/Lab 8/HouseUtilities.java | UTF-8 | 2,502 | 3.796875 | 4 | [] | no_license | /**
Utilities class
Lab 8
@author Jeffrey Wan
*/
import java.util.ArrayList;
import java.io.File;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class HouseUtilities {
public static void readAllHouseData(ArrayList<House> houses) throws IOExce... | true |
2c55a7f6251899d62bc5e3389a5df375cf6d35ae | Java | dpotapov36/StorageAnalyzer | /MasterWorkSourceCode/MasterWorkSourceCode/src/main/java/com/vsu/amm/data/storage/StorageGenerator.java | UTF-8 | 2,824 | 2.75 | 3 | [] | no_license | package com.vsu.amm.data.storage;
import com.vsu.amm.Constants;
import com.vsu.amm.stat.SimpleCounterSet;
import org.apache.log4j.Logger;
import org.jdom2.Element;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.vsu.amm.Utils.isNullOrEmpty;
/**
*... | true |
e45222a6c17d89492ad59eb231d14a9fbb71aa0a | Java | maddy2308/Interview-practice | /src/Utility/IntervalBinarySearchTree.java | UTF-8 | 2,002 | 3.25 | 3 | [] | no_license | package Utility;
import java.util.List;
public class IntervalBinarySearchTree<T> {
public class IntervalNode {
int low, high, max = Integer.MIN_VALUE;
IntervalNode left;
IntervalNode right;
public IntervalNode(int low, int high, IntervalNode left, IntervalNode right) {
... | true |
b621709d5bee36bce975a3b7ed19548833e8da1e | Java | Dmitriy9210/Lesson5_Allure | /src/test/java/tests/OnlySelenideTests.java | UTF-8 | 1,258 | 2.03125 | 2 | [] | no_license | package tests;
import io.qameta.allure.*;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Condition.*;
import static com.codeborne.selenide.Selectors.wi... | true |
47f6503a2aaa4af8456b85bb0c009d8151964b65 | Java | gofrom/mega | /app/src/main/java/pro/gofman/mega/Item7.java | UTF-8 | 10,307 | 2.234375 | 2 | [] | no_license | package pro.gofman.mega;
import android.os.Bundle;
import android.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.Switch;
import android.... | true |
d9a447a43c736fb7e9f9c7fcf0280166bffb4679 | Java | jiangshenapp/JS_Driver_Android | /app/src/main/java/com/js/driver/model/request/RouteRequest.java | UTF-8 | 3,337 | 2.140625 | 2 | [] | no_license | package com.js.driver.model.request;
/**
* author : hzb
* e-mail : hanzhanbing@evcoming.com
* time : 2019/06/12
* desc :
* version: 3.0.0
*/
public class RouteRequest {
/**
* arriveAddressCode : string
* carLength : string
* carModel : string
* goodsType : string
* sort : string... | true |
27a31c11c9378e7d2964e888313ba47b0a9e08a8 | Java | seven001/X-Bionic | /src/com/imcore/x_bionic/ui/StoreActivity.java | UTF-8 | 5,497 | 1.890625 | 2 | [] | no_license | package com.imcore.x_bionic.ui;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.imcore.x_bionic.R;
import com.imcore.x_bionic.http.HttpHelper;
import com.imcore.x_bionic.http.HttpMethod;
import com.imcore.x_bionic.http.JsonUtil;
import com.imcore.x_bionic.http.RequestEntity;
... | true |
4b0d1abe054fe9073edbabff6a33b9409031f8e3 | Java | MullerReylli/POO2020-1 | /src/primeiraativide/Motorista.java | UTF-8 | 1,223 | 2.578125 | 3 | [] | no_license |
package primeiraativide;
public class Motorista {
private String cpf;
private String nome;
private String cnh;
private String carro;
private boolean status;
private double somaNota;
private int qtdeCorridas;
public void alteraStatus(){
if (this.status ==... | true |
fc0dfdb7fdbc0b7f838759274dca38aa573db9dc | Java | FZTSELF/spring-ioc-aop | /src/main/java/com/fzt/UserServiceImpl.java | UTF-8 | 839 | 2.265625 | 2 | [] | no_license | package com.fzt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import java.util.Date;
@Service
@Scope("prototype")
public class UserServiceImpl implements UserService {
@Autowired
private Use... | true |
884284051a101e8f15198559059824980d81fd8c | Java | LeeColn/helloworld | /Module01/src/com/atguigu/com/bean/Customer.java | UTF-8 | 1,595 | 2.9375 | 3 | [] | no_license | package com.atguigu.com.bean;
import java.util.ArrayList;
public class Customer {
//prsf
//private static final
//ArrayList
ArrayList arrayList = new ArrayList();
public void test1(){
System.out.println("arrayList = " + arrayList);//soutv
System.out.println("Customer.test1");/... | true |
eb15109e1f69eb0b6fe6d08fd0341e8b328f6ed8 | Java | GRV22/GatingModule | /src/main/java/com/gating/operators/impl/Between.java | UTF-8 | 667 | 2.625 | 3 | [] | no_license | package com.gating.operators.impl;
import com.gating.enums.OperatorInfo;
import com.gating.operators.AbstractOperator;
import com.gating.operators.handler.TernaryOperatorTypeHandler;
import java.util.List;
public class Between extends AbstractOperator {
private final TernaryOperatorTypeHandler handler;
pub... | true |
a658688db012762149e5c33d527e937f6580e6b0 | Java | vohoangptit/mng-web | /src/main/java/com/nera/nms/repositories/PlaybookHistoryRepository.java | UTF-8 | 370 | 1.945313 | 2 | [] | no_license | package com.nera.nms.repositories;
import com.nera.nms.models.PlaybookHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface PlaybookHistoryRepository extends JpaRepository<PlaybookHistory, Long> {
List<PlaybookHistory> findByPlaybookId(Long id);
Pla... | true |
9809ce33b849fe4920abc0cf83de00e550f95bfd | Java | TimPCunningham/Anax | /src/main/java/io/github/timpcunningham/anax/world/types/FlagType.java | UTF-8 | 166 | 1.539063 | 2 | [
"MIT"
] | permissive | package io.github.timpcunningham.anax.world.types;
public enum FlagType {
ANIMALS,
EXPLOSIONS,
FIRE,
MONSTERS,
PHYSICS,
WEATHER,
WORLD
}
| true |
e658abedd84a6cf987c5246d8c33c8a191f4e636 | Java | CatalpaFlat/SpringSecurity | /spring-security-custom-auth-demo/src/main/java/com/chen/core/http/utils/ResponseUtil.java | UTF-8 | 1,342 | 2.328125 | 2 | [] | no_license | package com.chen.core.http.utils;
import com.chen.core.http.vo.Response;
/**
* http 响应体工具
*
* @author : CatalpaFlat
* @date :Create in 14:49 2017/12/20
*/
public class ResponseUtil {
/**
* http 响应成功
*/
public static Response success(String msg, Object result) {
Response response = get... | true |
613f772abef2cea0ef955f8f323c8c72c19529aa | Java | misguided-developer-singh/java-repo | /cts-btp-java-master/Serialization_Ex/src/com/emp/Employee.java | UTF-8 | 1,259 | 2.546875 | 3 | [] | no_license | package com.emp;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
//class Location {
//
//}
//
//class Company implements Serializable {
// private Location location = new Location();
//}
public class Employee implements Externalizable {
/**
*
... | true |
3f3a9a75ae8586f7a7796554c89c475040fae82a | Java | jiwawa123/myconcurrency | /java8/src/main/java/com/ji/concurrency/StreamTest.java | UTF-8 | 1,174 | 3.15625 | 3 | [] | no_license | package com.ji.concurrency;/*
user ji
data 2019/3/31
time 8:20 PM
*/
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
import java.util.stream.Stream;
public class StreamTest {
public static void main(String[] args) {
long start = System.currentTimeMillis();... | true |
d5ae70dd0d4ad33604b55f3372d8a4161b83670b | Java | kingdzdz/FanweLive1 | /fanweHybridLive/src/main/java/com/fanwe/hybrid/utils/SDImageUtil.java | UTF-8 | 6,079 | 2.421875 | 2 | [] | no_license | package com.fanwe.hybrid.utils;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
im... | true |
c37e050d4070363bb4397eccb86cad2f52a0565a | Java | hanseol/javaProject | /yedamEmpl/src/myapp/chartControl/RootController.java | UTF-8 | 2,844 | 2.640625 | 3 | [] | no_license | package myapp.chartControl;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.chart.AreaChart;
import javafx.scene.chart.BarChart;
import jav... | true |
f2d28ec0788cf87b544781da5a0fbf5522a940bc | Java | synchrony/smsn | /smsn-rdf/src/main/java/net/fortytwo/smsn/rdf/vocab/FOAF.java | UTF-8 | 4,723 | 1.804688 | 2 | [
"MIT"
] | permissive | package net.fortytwo.smsn.rdf.vocab;
import net.fortytwo.rdfagents.RDFAgents;
import org.openrdf.model.IRI;
/**
* The FOAF Vocabulary as a collection of terms
* Note: this class is used instead of org.openrdf.model.vocabulary.FOAF because the latter covers only
* a small subset of the vocabulary.
*/
public interf... | true |
9f95d3ec7af2f122e7ae5e40c0a34f79be6933b4 | Java | StStepan/Web_Technology | /src/main/java/com/khudnitski/library/bean/BookInStorage.java | UTF-8 | 501 | 1.992188 | 2 | [] | no_license | package com.khudnitski.library.bean;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
import java.util.UUID;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class BookInStorage implements Serializable {
priva... | true |
ce423a7df3bb5e40fc8e9e21131af980e83792dd | Java | SamiMarrekchi/planetecroisiere-MVP | /app/src/main/java/tn/leaderscodes/planetecroisiere/tools/Session.java | UTF-8 | 1,943 | 2.265625 | 2 | [] | no_license | package tn.leaderscodes.planetecroisiere.tools;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by Sami on 14/07/2017.
*/
public class Session {
private SharedPreferences prefs;
private static Session instance;
private Session() {
prefs = P... | true |
13fb1a081e08190e13b58ff6468ff0a46c113929 | Java | dengjiaping/WholeHybrid | /app/src/main/java/com/honeywell/wholesale/framework/model/Inventory.java | UTF-8 | 5,567 | 2.1875 | 2 | [] | no_license | package com.honeywell.wholesale.framework.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by H155935 on 16/5/11.
* Email: xiaofei.he@honeywell.com
*/
public class Inventory implements BaseModel{
@SerializedName("product_number")
private String productNu... | true |
397c1d771d24913f97a840f5a7e6369355362aff | Java | marcomicera/rns | /serializer/gen/it/polito/dp2/RNS/sol1/jaxb/VehicleType.java | UTF-8 | 5,793 | 2.171875 | 2 | [
"MIT"
] | permissive |
package it.polito.dp2.RNS.sol1.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
i... | true |
ff2f8530293417d43c56e39b1160be923c528fb4 | Java | sunlingzhi/3rBack | /demo/src/main/java/com/example/demo/domain/member/vo/MemberVO.java | UTF-8 | 460 | 1.734375 | 2 | [] | no_license | package com.example.demo.domain.member.vo;
import com.example.demo.domain.group.Group;
import lombok.Data;
/**
* @ClassName MemberVO
* @Description todo
* @Author sun_liber
* @Date 2019/11/28
* @Version 1.0.0
*/
@Data
public class MemberVO {
private String id;
private String name;
private String ema... | true |
4334d0a520524236057235bfb9635b0010f41a6b | Java | enegade/uml | /src/main/java/enegade/uml/type/ThreadHelper.java | UTF-8 | 1,504 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package enegade.uml.type;
/*
* Copyright 2020 enegade
*
* This file is part of the enegade.uml package.
*
* This file is distributed "AS IS", WITHOUT ANY WARRANTIES.
*
* For the full copyright and license information, please view the LICENSE
* file distributed with this project.
*/
import com.sun.jdi.*;
impo... | true |
3eeae705b67bcca89fb41b21d6d3b33267efe27e | Java | catedrasaes-umu/carim | /instantiator/mmiEvents.emf/src/org/mmi/events/SystemFeedbackStartEvent.java | UTF-8 | 376 | 1.546875 | 2 | [] | no_license | /**
*/
package org.mmi.events;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>System Feedback Start Event</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.mmi.events.EventsPackage#getSystemFeedbackStartEvent()
* @model
* @generated
*/
public interface SystemFeedbackStartEvent ... | true |
32c323ce825bf065db0b15b6b35286ea72f5f3d7 | Java | krzysztoffff/BasicExercises | /src/methods/Main4.java | UTF-8 | 446 | 2.953125 | 3 | [] | no_license | package methods;
public class Main4 {
public static void main(String[] args) {
String name = "Otis", surname = "Taylor", nickname = "otist";
String resoult = createName(name, surname, nickname);
System.out.println(resoult);
}
static String createName(String name, String... | true |
51b146036052c3cf012fdd82e2ac2ea443873fd1 | Java | laketea/fcw | /src/com/fcw/action/admin/BlogCommentAction.java | UTF-8 | 2,330 | 1.976563 | 2 | [] | no_license |
package com.fcw.action.admin;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.fcw.common.hibernate.Page;
import com.fcw.domain.BlogComment;
import com.fcw.service.BlogCommentManager;
public class BlogCommentAction extends BaseAction {
protected BlogCommentMana... | true |
3e842f8150384713605492bfe6526be9e012ce5c | Java | votizlov/CG_Task_5 | /src/com/company/Vector2.java | UTF-8 | 874 | 3.3125 | 3 | [] | no_license | package com.company;
import static java.lang.Math.abs;
import static java.lang.Math.sqrt;
public class Vector2 {
private double x, y;
public Vector2(double x, double y) {
this.x = x;
this.y = y;
}
public Vector2 add(Vector2 vector2) {
return new Vector2(x+vector2.getX(),y+vec... | true |
21273fe3f0836af63f37920b825a16cebd5cb342 | Java | andrepcg/hikam-android | /com/jwkj/activity/AltogetherRegisterActivity.java | UTF-8 | 2,363 | 2.078125 | 2 | [] | no_license | package com.jwkj.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;
import com.hikam.C0291R;
public class AltogetherRegisterActivity exte... | true |
eb67664bce606277720c3b9eee81b00987c481b6 | Java | egnbjork/NASDAQ | /src/main/java/berberyan/service/FileUploader.java | UTF-8 | 313 | 2.015625 | 2 | [] | no_license | package berberyan.service;
import java.io.Reader;
import java.net.URL;
import org.springframework.context.annotation.Configuration;
import berberyan.exceptions.CompanyUploadException;
@FunctionalInterface
@Configuration
public interface FileUploader {
Reader upload(URL url) throws CompanyUploadException;
}
| true |
ca629d7f8ddd31ae529ddb74f0327b1b623d74ff | Java | Ignite20/cryptobit | /app/src/main/java/com/studio/ember/cryptobit/BasePresenter.java | UTF-8 | 177 | 1.710938 | 2 | [] | no_license | package com.studio.ember.cryptobit;
public interface BasePresenter {
/**
* Method to initialize components and variables
*/
void start();
void stop();
}
| true |
c522005b8e6324c9384d131a5ff1056054346bf5 | Java | Shalini-2209/data-structures-algorithms | /src/tree/implementation/FindDuplicateSubtrees.java | UTF-8 | 682 | 3.28125 | 3 | [] | no_license | package tree.implementation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class FindDuplicateSubtrees {
List<Node> list;
Map<String, Integer> map;
public List<Node> printAllDups(Node root) {
list = new ArrayList<>();
map = new HashMap<>();
duplic... | true |
261e0b779eb383ba1ad0d988bfb7ef28f4d67a7c | Java | woojin97318/java_basic | /day09_method/src/day09_method/Ex07.java | UTF-8 | 146 | 1.921875 | 2 | [] | no_license | package day09_method;
public class Ex07 {
public static void main(String[] args) {
Ex07Method ex = new Ex07Method();
ex.reverse();
}
}
| true |
ced226cc7a934354abc28493f5b6cefb86ac85aa | Java | bamrahp/WebApp | /src/main/java/com/example/demo/controller/HomeController.java | UTF-8 | 3,569 | 2.1875 | 2 | [] | no_license | package com.example.demo.controller;
import java.security.Principal;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframew... | true |
60cdd37ed103fdab52e98c3214f1385a96fff3cf | Java | vishnusadan/Vert | /app/src/main/java/com/vert/vert/pilot/activity/PilotOngoingScreenDetail.java | UTF-8 | 3,170 | 1.976563 | 2 | [] | no_license | package com.vert.vert.pilot.activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.... | true |
c6fc959ae3f08e0b93c6754da81a768a68a136eb | Java | miraAGS/WebAndApp | /Canvas/app/src/main/java/com/example/canvas/MainActivity.java | UTF-8 | 7,813 | 2.0625 | 2 | [] | no_license | package com.example.canvas;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import com.example.canvas.Adapters.ToolsAdapter;
import com.example.canvas.Common.Common;
import com.example.canvas.Interface.ToolsListener;
import com.example.ca... | true |
05a6c95e13dcd7de4d152f0e39e5484b4145a836 | Java | ARK2022020/sandbox | /websocket-redis-pubsub-example/src/main/java/com/example/RedisManager.java | UTF-8 | 2,715 | 2.25 | 2 | [
"MIT"
] | permissive | package com.example;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextList... | true |
b6025c71736f618d67b71a3c7af5d9a61f31d055 | Java | nguyenmylinh/BAITHI_JAVA | /BauCua/BauCua/src/com/example/baucua/MainActivity.java | UTF-8 | 7,654 | 1.765625 | 2 | [] | no_license | package com.example.baucua;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.TimeUnit;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPre... | true |
310d51b03295b8d0ee31ddd818432023a4597c29 | Java | mmlmike010/Be-Healthy | /app/src/main/java/com/group13/behealthy/Preferences.java | UTF-8 | 7,388 | 2.203125 | 2 | [] | no_license | package com.group13.behealthy;
import android.app.AlertDialog;
import android.app.Fragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.InputType;
import android.view.LayoutInflater;
import android.view.... | true |
4d20acdea04379f34593d722d867ffe11e831e89 | Java | yangjava/kylin-settlement | /settlement/branches/rkylin-settle-web-QZJZ/src/main/java/com/rkylin/settle/manager/SettleTransBillManager.java | UTF-8 | 853 | 1.757813 | 2 | [] | no_license | /*
* Powered By chanjetpay-code-generator
* Web Site: http://www.chanjetpay.com
* Since 2014 - 2015
*/
package com.rkylin.settle.manager;
import java.util.List;
import com.rkylin.settle.pojo.SettleTransBill;
import com.rkylin.settle.pojo.SettleTransBillQuery;
public interface SettleTransBillManager {
void save... | true |
02784228e32b66f697f3d748fd41faec59bc0a69 | Java | Vikrant2691/RecipeProject | /src/main/java/com/recipe/RecipeProject/bootstrap/DataLoader.java | UTF-8 | 11,653 | 2.5 | 2 | [] | no_license | package com.recipe.RecipeProject.bootstrap;
import com.recipe.RecipeProject.command.RecipeCommand;
import com.recipe.RecipeProject.converters.RecipeToRecipeCommand;
import com.recipe.RecipeProject.model.*;
import com.recipe.RecipeProject.repositories.CategoryRepository;
import com.recipe.RecipeProject.repositories.Rec... | true |
e8daaa1a68247ebf12205db9ac3183b8176002e6 | Java | AndrewConacher/newrelic-java-mule-4 | /Mule-Http2/src/main/java/com/nr/instrumentation/mule/http/MuleHttpMatcher.java | UTF-8 | 856 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.nr.instrumentation.mule.http;
import com.newrelic.agent.instrumentation.classmatchers.ClassAndMethodMatcher;
import com.newrelic.agent.instrumentation.classmatchers.ClassMatcher;
import com.newrelic.agent.instrumentation.classmatchers.ExactClassMatcher;
import com.newrelic.agent.instrumentation.methodmatch... | true |
ce77d6298ed3ff9acf32d97d367edd332b0f8773 | Java | stepantzov/JavaCore | /src/training/numbers/palindrome/NumbersPalindromeMain.java | UTF-8 | 843 | 3.421875 | 3 | [] | no_license | package training.numbers.palindrome;
import java.util.Scanner;
/**
* Created by Ivan_Stepantsov on 7/16/2017.
*/
public class NumbersPalindromeMain {
void displayPalindromeResults() {
System.out.println("Please enter your number to check if it's a palindrome: ");
Scanner numberToCheckScan = new ... | true |
5c1cd4557a55c58ff182d0fc7783c62cd66561d1 | Java | Macierz-maker/TPO_solution | /TPO4_JM_S18239/src/S_PASSTIME_SERVER1/Client.java | UTF-8 | 1,922 | 2.578125 | 3 | [] | no_license | /**
* @author Jaworski Maciej S18239
*/
package S_PASSTIME_SERVER1;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.nio.charset.Standar... | true |
72d99fde5f740f11b421380efeb5ea8f04fa0f46 | Java | bLindStalker/breakingLight | /core/src/com/pocket/rocket/broken/Constants.java | UTF-8 | 1,681 | 1.953125 | 2 | [] | no_license | package com.pocket.rocket.broken;
public final class Constants {
public static final int HEIGHT = 1280;
public static final int WIDTH = 720;
public static final int X_CENTER = WIDTH / 2;
public static final int LAMP_WIDTH = 260;
public static final int LAMP_HEIGHT = 335;
public static final i... | true |
1a73b01ee6fda858c9d9a65622ad4fa810540d0a | Java | mithileshongit/WhatsApp-Descompilado | /com/google/android/gms/internal/o.java | UTF-8 | 296 | 1.921875 | 2 | [] | no_license | package com.google.android.gms.internal;
public class o {
public class a extends Exception {
final o la;
public a(o oVar) {
this.la = oVar;
}
public a(o oVar, Throwable th) {
this.la = oVar;
super(th);
}
}
}
| true |
11fc056803a0df7d5fbc5baf11f8b6c183289ef2 | Java | Afford-Solutions/openbravoposru-2.20 | /src-pos/com/openbravo/pos/printer/shtrihfr/command/ReadEJVersion.java | UTF-8 | 1,488 | 2.59375 | 3 | [] | no_license | /*
* ReadEJVersion.java
*
* Created on 16 January 2009, 13:44
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.openbravo.pos.printer.shtrihfr.command;
/**
*
* @author V.Kravtsov
*/
import com.openbravo.pos.printer.shtrihfr.fiscalprinter.Comm... | true |
4f23e6ca4c4d53ead13ead364b2d1d51b824a080 | Java | Garvel31/EngineProject | /src/main/java/ru/pobeda/Engine.java | UTF-8 | 81 | 1.765625 | 2 | [] | no_license | package ru.pobeda;
public interface Engine {
public String powerUp ();
}
| true |
d32059c30e392758ec8e25e08d6879a918015e7a | Java | ricots/android-ocr-ine-ife | /ocr-ife-ine/src/main/java/mx/cuartoo/ocr_ife_ine/models/Gender.java | UTF-8 | 275 | 2.40625 | 2 | [] | no_license | package mx.cuartoo.ocr_ife_ine.models;
/**
* Created by julionava on 1/6/17.
*/
public enum Gender {
H("H"),
M("M");
Gender(String name){
this.name = name;
}
private String name;
public String getName() {
return name;
}
}
| true |
1e11b59985b95bc0df6beed014e2d86624022f18 | Java | darktohka/TTRPlayLine | /src/com/denialmc/ttrplayline/resources/ResourceHandler.java | UTF-8 | 990 | 2.6875 | 3 | [] | no_license | package com.denialmc.ttrplayline.resources;
import java.io.File;
import java.nio.file.Files;
import java.util.logging.Logger;
import com.denialmc.ttrplayline.TTRPlayLine;
import com.denialmc.ttrplayline.Utils;
public class ResourceHandler {
private static final String[] resources = new String[] {"github-markdown.c... | true |
2de38935d33e024adf1aff43217838460ae074d5 | Java | 1064447034/springbootx | /spring-boot-starter-hello/src/main/java/com/wisely/spring_boot_starter_hello/HelloServiceProperties.java | UTF-8 | 446 | 1.992188 | 2 | [] | no_license | package com.wisely.spring_boot_starter_hello;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
@ConfigurationProperties(prefix="hello")
@PropertySource({"classpath:spring/resource.properties"})
public class HelloServiceProperties... | true |
49c374b6f13c79a6621c75d6fcb633dfeeece45e | Java | Pokesy/CarHeadLine | /app/src/main/java/com/hengrtech/carheadline/net/model/UserInfo.java | UTF-8 | 6,580 | 1.929688 | 2 | [] | no_license | /*
* 文件名: UserInfo
* 版 权: Copyright Hengrtech Tech. Co. Ltd. All Rights Reserved.
* 描 述: [该类的简要描述]
* 创建人: zhaozeyang
* 创建时间:16/4/29
*
* 修改人:
* 修改时间:
* 修改内容:[修改内容]
*/
package com.hengrtech.carheadline.net.model;
import android.text.TextUtils;
import com.hengrtech.carheadline.net.constant.NetConstant;
... | true |
ade202d0b9b19bdcaa52e96710f50507a9b0d79d | Java | Spiralcraft/servlet | /source/spiralcraft/servlet/webui/components/EditorState.java | UTF-8 | 1,631 | 1.648438 | 2 | [] | no_license | //
//Copyright (c) 1998,2009 Michael Toth
//Spiralcraft Inc., All Rights Reserved
//
//This package is part of the Spiralcraft project and is licensed under
//a multiple-license framework.
//
//You may not use this file except in compliance with the terms found in the
//SPIRALCRAFT-LICENSE.txt file at the top of this d... | true |
b9ccf10c29462d2c8583b1af42c8fcc098dcaeee | Java | czzz4/Se3_BigWork | /czzZ_AnyQuant/Code/BigBigWork/BigWork_Client/src/main/java/data_service/SingleStockData_service.java | UTF-8 | 367 | 2.203125 | 2 | [] | no_license | package data_service;
import java.util.ArrayList;
import vo.StockVO;
public interface SingleStockData_service {
/**
* 处理单支股票原始数据,以Arraylist返回给bl
* 每个VO里存储的是同一股票每一天的信息
* time默认为一个月
*
* @return
*/
public ArrayList<StockVO> SingleStock(String id);
}
| true |
bf854036746f2b56872499b46d1afd0e5a2d59ae | Java | hamitmizrak/Java9Grup | /src/main/java/com/ecodation/all/Ders_002_syntax.java | UTF-8 | 662 | 3.15625 | 3 | [] | no_license | package com.ecodation.all;
public class Ders_002_syntax {
// tek satırlık yorumlama yapmak için
/*
* Çok satırlı yorumlarda asd asd as das d asd
*/
// Gramer = syntax
public static void main(String[] args) {
// YAZMA
// int üğşçöİ = 44; //türkçe karakter yazmıyoruz.
// int 5555number = 44; ==> başına sa... | true |
8aa8bad5e6f503228c83235448a1a2d36c505efc | Java | hawawa/COMP-1510-Java | /COMP 1510 Lab 12/src/ca/bcit/comp1510/lab12/PaintCan.java | UTF-8 | 951 | 3.390625 | 3 | [] | no_license | /**
*
*/
package ca.bcit.comp1510.lab12;
/**
* <p>
* Represents a paint can which includes coverage.
* </p>
*
* @author Chih-Hsi Chang
* @version 1.0
*/
public class PaintCan {
/** Coverage. */
private double coverage;
/**
* Constructs a paint can by defining coverage.
* Its cover... | true |
9d01943313a6e83785ee0a1caacd8c438506a16e | Java | Sand-Tiny/tiny | /tiny_work/src/main/java/com/dao/SimpleDao.java | UTF-8 | 2,077 | 2.875 | 3 | [] | no_license | package com.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class SimpleDao {
private Connection connection;
public SimpleDao(C... | true |
8f7fc0a190f47a00e5ae79878456e16b72401057 | Java | subSri/faceBookWeb | /facebookWebCode/src/pkg1/jdbcCon.java | UTF-8 | 576 | 2.5 | 2 | [] | no_license | package pkg1;
import java.sql.*;
public class jdbcCon{
Statement stmt;
Connection con;
public void getConn() throws Exception {
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newDb","root","2912");
//here sonoo is database name, root is usernam... | true |
fd021064ed6aa625d8534850f5704d9284f1ffe4 | Java | xaviergthiago/NetBeansProjects | /Thiago_Xavier(Parte01)/src/thiago_xavier/parte1/AppAluno.java | UTF-8 | 1,335 | 3.25 | 3 | [
"MIT"
] | permissive | package thiago_xavier.parte1;
import java.util.Scanner;
public class AppAluno {
public static void main(String[] args){
// Scanner sc = new Scanner (System.in);
// Aluno a1 = new Aluno ();
// System.out.println("Digite o nome ");
// a1.setNome(sc.nextLine());
// System.out.println... | true |
3868da64ac637a0f18ca68e8dca114fb253a8b76 | Java | Alexisblues/sootInsert | /testeBin/NewUserAccessHost/src/smartio/ICardConnection.java | UTF-8 | 439 | 2.4375 | 2 | [] | no_license | package smartio;
/** A generic interface to be implemented
*
* @author bruno
*
*/
public interface ICardConnection {
/** Procedures for card initialisation */
public void cardInit();
/** Treatment of card*/
public void cardInserted();
/** Cleanup operations when card removal */
public void cardRemoved... | true |
bf98014bea9c62ea5ac2349704193da079a0a63b | Java | moutainhigh/newJc | /app/src/main/java/com/jinchi/app/dto/DeviceDocumentStatisticDTO.java | UTF-8 | 734 | 2.03125 | 2 | [] | no_license | package com.jinchi.app.dto;
import java.util.List;
/**
* @author: LiuTaoYi
* @create_time: 2019-09-12 10:29
* @description: 设备档案统计 返回参数DTO
**/
public class DeviceDocumentStatisticDTO {
private DeviceDocumentStatisticHeadDTO head;
private List<DeviceDocumentStatisticDetailDTO> detailDTOS;
public Devi... | true |
0e36e41128875de2ba2ccecd8261bdbbe7f9d82f | Java | 893193074/new | /GitDroid/app/src/main/java/com/feicuiedu/gitdroid/gank/GankFragment.java | UTF-8 | 1,963 | 2.109375 | 2 | [] | no_license | package com.feicuiedu.gitdroid.gank;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ListView;
import andr... | true |
ca19c6eac1e0999f69729e660144c800f60e167d | Java | saitatineni2000/ExternalStorageEx | /app/src/main/java/com/example/saisandeep/externalstorageex/ActivityB.java | UTF-8 | 3,486 | 2.375 | 2 | [] | no_license | package com.example.saisandeep.externalstorageex;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import java.io.File;
import java.io.FileInputStream;
import jav... | true |
a54bd77922dfe6199f526f77b0b127dfcfb82fd1 | Java | sdprashant22/hello-world | /src/test/java/com/gildedrose/GildedRoseTest.java | UTF-8 | 5,610 | 2.84375 | 3 | [] | no_license | package com.gildedrose;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class GildedRoseTest {
@Test
void testFooWhenSellInDateIsInPositive() {
Item[] items = new Item[] { new Item("foo", 1, 7) };
GildedRose app = new GildedRose(items);
... | true |
065a16b20d9dfcdb91090afa3dee2e23171d6f78 | Java | minakov/immutables | /generator/src/org/immutables/generator/SourceOrdering.java | UTF-8 | 5,170 | 1.992188 | 2 | [] | no_license | /*
Copyright 2014 Ievgen Lukash
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | true |
454516a44d06a1b225982993063524cd0faf214c | Java | salahbc/marvel | /marvel-back/src/main/java/com/marvel/model/HeroDto.java | UTF-8 | 817 | 2.109375 | 2 | [] | no_license | package com.marvel.model;
public class HeroDto {
private int id;
private String name;
private String vignette;
private String description;
private int teamId;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
retu... | true |
9e28b27b801502d4c652b7bc657050921ef1894b | Java | 892160599/cxnet-public-assets | /cxnet-asset/src/main/java/com/cxnet/asset/businessSet/mapper/AstMapConfigMapper.java | UTF-8 | 431 | 1.757813 | 2 | [] | no_license | package com.cxnet.asset.businessSet.mapper;
import com.cxnet.asset.businessSet.domain.AstMapConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* 资产地图配置(AstMapConfig)表数据库访问层
*
* @author caixx
* @since 2021-04-25 14:06:24
*/
public interface AstMapConfigMapper extends BaseM... | true |
2570a24771ce1699679db7b198a1ff93972c8a86 | Java | sergioivan154/appdemoautomotriz | /app/src/main/java/com/example/sergio/applealtad/register/RegisterActivity.java | UTF-8 | 1,023 | 1.90625 | 2 | [] | no_license | package com.example.sergio.applealtad.register;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.Button;
import com.example.sergio.applealtad.R;
import com.example.sergio.applealtad.bases.BaseActivity;
import co... | true |
568391bc48381247721c053fd6d731942affa510 | Java | Mr666a/Student-graduation-management-system | /GraduationProjectSystem/src/main/java/com/hack/graduation_project_system/controller/TeacherController.java | UTF-8 | 5,237 | 2.21875 | 2 | [] | no_license | package com.hack.graduation_project_system.controller;
import com.hack.graduation_project_system.domain.Class;
import com.hack.graduation_project_system.domain.Leader;
import com.hack.graduation_project_system.domain.Major;
import com.hack.graduation_project_system.domain.Teacher;
import com.hack.graduation_project_sy... | true |