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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e33c223700c2836946c231a05ad29475b516b282 | Java | Hamedamz/AP_3 | /src/models/GameLogic/utills/StringUtils.java | UTF-8 | 366 | 2.578125 | 3 | [] | no_license | package models.GameLogic.utills;
public class StringUtils {
public static String stringSeparator(String old) {
String[] split = old.split("(?=\\p{Upper})");
StringBuilder separated = new StringBuilder();
for (String s : split) {
separated.append(s).append("\n");
}
... | true |
59bfed4cd11ee44482bc4a8fc03bbc4bb1a02383 | Java | cha63506/CompSecurity | /GoogleWallet_source/src/com/google/android/apps/wallet/kyc/api/KycClient.java | UTF-8 | 5,232 | 1.890625 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.apps.wallet.kyc.api;
import com.google.android.apps.wallet.callstatus.CallErrorException;
import com.google.android.a... | true |
3213ff6062de66b00668c9407d34b30476a5149d | Java | tongcrane/gzzhwl | /gzzhwl/service/src/main/java/com/gzzhwl/api/account/vo/AccountInfoVO.java | UTF-8 | 422 | 1.601563 | 2 | [] | no_license | package com.gzzhwl.api.account.vo;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
public class AccountInfoVO {
private String realName; // 真实姓名
private String idno; // 身份证号
private String idFImageRefId; // 身份照片(正)
private String idBImageRefId; // 身份照片(反)
private String busImageRefId; // ... | true |
0543f9c3b2544e9bb1d49feeb15faa09185bd38d | Java | leider/mcbApp | /MCB/src/main/java/mcb/persistenz/json/AdresseFactory.java | UTF-8 | 656 | 2.296875 | 2 | [] | no_license | package mcb.persistenz.json;
import java.lang.reflect.Type;
import mcb.model.Adresse;
import mcb.model.Besuch;
import flexjson.ObjectBinder;
import flexjson.ObjectFactory;
import flexjson.factories.BeanObjectFactory;
public class AdresseFactory implements ObjectFactory {
@SuppressWarnings("rawtypes")
@Override
... | true |
4d6b2b1517f7a3936d48a917fe64055b2d60723d | Java | SilviuNed/CollaborativeFiltering | /src/com/silviuned/model/UserRating.java | UTF-8 | 400 | 2.5625 | 3 | [] | no_license | package com.silviuned.model;
public class UserRating {
private int userId;
private short rating;
private String date;
public UserRating(int userId, short rating, String date) {
this.userId = userId;
this.rating = rating;
this.date = date;
}
public int getUserId() {
return userId;
}
public short g... | true |
ab5d18dc02e284ae8df39395a70e4f937f46d5f8 | Java | Ocelot5836/MinecraftModdingTutorials | /Tutorial 2/src/main/java/com/ocelot/mod/registry/Registry.java | UTF-8 | 999 | 2.203125 | 2 | [] | no_license | package com.ocelot.mod.registry;
import static com.ocelot.mod.init.RenderHandler.registerModel;
import com.ocelot.mod.init.ModItems;
import com.ocelot.mod.init.RenderHandler;
import net.minecraft.item.Item;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.event.RegistryEvent;
impo... | true |
326a5a18b610f0252ea91d270665e2b754c6f954 | Java | harrl7/Example-Work | /Quiz/Mobile/app/src/main/java/a/quiz/QuestionActivity.java | UTF-8 | 5,321 | 2.421875 | 2 | [] | no_license | package a.quiz;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.JsonReader;
import androi... | true |
3b4376a2a2c0f8bfb0e8149000215b99951cad13 | Java | bazaarvoice/bv-android-sdk | /bvcommon/src/main/java/com/bazaarvoice/bvandroidsdk/BVProduct.java | UTF-8 | 3,239 | 2.09375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | /**
* Copyright 2016 Bazaarvoice Inc. All rights reserved.
*/
package com.bazaarvoice.bvandroidsdk;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Bazaarvoice Product
*/
public class BVProd... | true |
5f2de13952565edd19e560426ee995bc60354b54 | Java | lbrackspace/atlas-lb | /common/util/src/main/java/org/openstack/atlas/util/ip/exception/IPStringConversionException.java | UTF-8 | 437 | 2.0625 | 2 | [] | no_license | package org.openstack.atlas.util.ip.exception;
public class IPStringConversionException extends IPException {
public IPStringConversionException() {
super();
}
public IPStringConversionException(String msg) {
super(msg);
}
public IPStringConversionException(String msg,Throwable t... | true |
4faf2783deb61723905a121428ebfc75ce12907c | Java | victorhaggqvist/android-food | /app/src/main/java/com/snilius/foodlife/App.java | UTF-8 | 1,321 | 2.140625 | 2 | [] | no_license | package com.snilius.foodlife;
import android.app.Application;
import com.facebook.stetho.Stetho;
import com.snilius.foodlife.di.ActivityComponent;
import com.snilius.foodlife.di.AndroidModule;
import com.snilius.foodlife.di.BaseComponent;
import com.snilius.foodlife.di.DaggerActivityComponent;
import com.snilius.food... | true |
81c7af24fe4a846fe2b552d0ffca3d93ca39e7d3 | Java | ThePurplePeople/enough | /app/src/main/java/lematthe/calpoly/edu/enough/MessageDetailActivity.java | UTF-8 | 1,841 | 2.28125 | 2 | [] | no_license | package lematthe.calpoly.edu.enough;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import androi... | true |
2f9d2ed2729df85341a5d874149718026b5722af | Java | SlavSlavchev/TestHomeworkJava | /src/Problem3_PointsInsideAFigure/P3_PoinsInsideAFigure.java | UTF-8 | 755 | 3.328125 | 3 | [] | no_license | package Problem3_PointsInsideAFigure;
import java.util.Scanner;
public class P3_PoinsInsideAFigure {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
String[] inputLine = input.nextLine().split(" ");
double x = Double.parseDouble(inputLin... | true |
c1b863db599748223abb0659f871a3567839da25 | Java | xeraph/kraken | /network/kraken-ice/src/main/java/IceInternal/Instance.java | UTF-8 | 33,935 | 1.5 | 2 | [] | no_license | // **********************************************************************
//
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | true |
2793b24b24d57df9839f37863f5a1023a864f69b | Java | FabienneMarquis/TP3_FM_GP_POO4 | /src/main/java/controle/ControllerDriver.java | UTF-8 | 2,122 | 2.3125 | 2 | [] | no_license | package controle;
import JAXB.Chauffeur;
import SAX.ChauffeurReader;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;... | true |
9343278b0d88cb79ff7a3e60df5f3ad2ffaea100 | Java | a404318964/ZwjUtils | /src/main/java/com/github/a404318964/zwjutils/DecriptTools.java | UTF-8 | 7,309 | 2.875 | 3 | [] | no_license | package com.github.a404318964.zwjutils;
import org.apache.commons.codec.binary.Base64;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.SimpleHash;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParame... | true |
0fa57956b97e578f8b94acd9e5a57ed5601b9565 | Java | CloudyMQ/SberBank | /src/main/java/com/example/demo2/controller/RemittanceManager.java | UTF-8 | 2,605 | 2.4375 | 2 | [] | no_license | package com.example.demo2.controller;
import com.example.demo2.entity.Accounts;
import com.example.demo2.model.RemittanceModel;
import com.example.demo2.repository.AccountsRepository;
import com.example.demo2.service.AccountsService;
import com.example.demo2.service.RemittanceService;
import org.springframework.beans.... | true |
9a6b78b1e70ec5a5199fcc16e67a62ba9379c23a | Java | Flumdy/Seng201-Game | /src/items/SpacePlagueCure.java | UTF-8 | 620 | 2.9375 | 3 | [] | no_license | package items;
import supers.ConsumableItem;
/**
* SpacePlagueCure is a consumable item
* which cures the space plague with no additional bonus effects.
*
* @author Michael Freeman (mjf145)
* @author Finn McCartney (fwm16)
*/
public class SpacePlagueCure extends ConsumableItem{
/**
* Constructor for space ... | true |
5bcde89e54f9d550f891f2963d11fcbf9e952aeb | Java | ozzwoy/OOP-Course | /Lab2/src/main/java/cyb/oop/service/PeriodicalService.java | UTF-8 | 1,475 | 2.375 | 2 | [] | no_license | package cyb.oop.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import cyb.oop.converter.PeriodicalConverter;
import cyb.oop.dto.PeriodicalDTO;
import cyb.oop.entity.Periodical;
import cyb.oop.repository.PeriodicalRepository;
import org.springframework.beans.factory.annotation.... | true |
01bb3a3134ad9b906f5ccc35b822e9acf94d62a7 | Java | chencj29/brytrms | /src/main/java/com/thinkgem/jeesite/modules/rms/entity/WarnRemindConfigItem.java | UTF-8 | 2,858 | 2.015625 | 2 | [] | no_license | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.rms.entity;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNul... | true |
12016dba31bbec3c34bb4131768bca1c6792deee | Java | fredsilva/sistema | /02_FONTES/core/arrecadacao-core/src/main/java/br/gov/to/sefaz/arr/processamento/ProcessArquivo.java | UTF-8 | 855 | 2.734375 | 3 | [] | no_license | package br.gov.to.sefaz.arr.processamento;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.ParseException;
/**
* Serviço de processamento (leitura, converção, validação, persistência) de um arquivo.
*
* @author <a href="mailto:breno.hoffmeister@ntconsult.com.br">breno.hoffmeister</a>
... | true |
01cca962f02e4dc8b7810f6ea9bdf69cc761054f | Java | vamshi57/jsonplaceholder-api | /proj-jsonplaceholder/src/main/java/com/vamshi/proj/repo/PostRepo.java | UTF-8 | 264 | 1.601563 | 2 | [] | no_license | package com.vamshi.proj.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.vamshi.proj.model.Post;
@Repository
public interface PostRepo extends JpaRepository<Post, Long>{
}
| true |
0f8286ee8f263c1497f65783ea7ddd680910e9eb | Java | lang61301/gencode | /src/main/java/me/paddingdun/gen/code/config/PropertiesBeanPostProcessor.java | UTF-8 | 2,189 | 2.25 | 2 | [] | no_license | /**
*
*/
package me.paddingdun.gen.code.config;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.... | true |
119f75aaf0021e066fa3df2cd51dfda8e6750423 | Java | Esgrima/CSCI230 | /src/edu/cofc/csci230/BinaryNode2.java | UTF-8 | 1,877 | 3.25 | 3 | [] | no_license | //package edu.cofc.csci230;
//
//public class BinaryNode<Integer extends Comparable<Integer>> {
//
// protected Integer data;
// protected BinaryNode<Integer> left;
// protected BinaryNode<Integer> right;
// protected BinaryNode<Integer> parent;
//
// /**
// *
// * @param data
// */
// public BinaryNode(Int... | true |
3e207c7c984f89ebd8193691fb341f5060cc81ba | Java | wuxinda/bis_app | /src/com/bluemobi/serviceimpl/device/util/modbus/ModbusResult.java | UTF-8 | 774 | 2.21875 | 2 | [] | no_license | package com.bluemobi.serviceimpl.device.util.modbus;
/**
* <p>
* Title: 基类
* </p>
* <p>
* Description:
* </p>
* <p>
* Copyright: Copyright (c) 2014
* </p>
* <p>
* Company: BAYI
* </p>
*
* @author jianghaidong
* @version 1.0
* @date 2014-10-17
*/
public class ModbusResult {
private String ResultCode... | true |
34a4df4662a34fb69c364476bd9b17c982b8a0ad | Java | DominikGazda/LibraryApp | /api/src/main/java/pl/library/components/publisher/PublisherMapper.java | UTF-8 | 557 | 2.3125 | 2 | [] | no_license | package pl.library.components.publisher;
public class PublisherMapper {
public static PublisherDto toDto (Publisher entity){
PublisherDto dto = new PublisherDto();
dto.setPublisherId(entity.getPublisherId());
dto.setPublisherName(entity.getPublisherName());
return dto;
}
p... | true |
e788d1c9dc7231565a1fc89432c1e6f96877bf90 | Java | JUCMNAV/projetseg | /jAoUrnToRam/aourn/grl/impl/ActorRefImpl.java | UTF-8 | 26,004 | 1.617188 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package grl.impl;
import grl.ActorRef;
import grl.GrlPackage;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import ... | true |
c113bec045b3b287f5c9cc3316779b4bd03bd2fa | Java | pablolfbs/javaWeb | /Teste/src/com/pablo/teste/Teste10.java | UTF-8 | 374 | 2.6875 | 3 | [] | no_license | package com.pablo.teste;
import java.util.Arrays;
import java.util.List;
public class Teste10 {
public static void main(String[] args) {
List<String> asList = Arrays.asList("Pablo", "Ingrid", "Alice");
System.out.println(asList.toString().substring(1, asList.toString().length() - 1));
String data = "20... | true |
0d80e2e519a9522efcec536d1409c5aa780b780f | Java | shraddhabagoji0/sample | /src/javamockpractice/Demo3.java | UTF-8 | 408 | 3.328125 | 3 | [] | no_license | package javamockpractice;
public class Demo3 {
public static void primeNo(int n) {
boolean flag=true;
for(int i=2;i<n;i++) {
if(n%i==0) {
flag=false;
break;
}
}
if(flag==true) {
System.out.println("it is a prime number");
}else {
System.out.println("it is not a prime number... | true |
0fbe9af68d4e4f4656315d7491f44633fd8eb1a5 | Java | lruklic/codex-school-quiz-app | /app/controllers/ProfileController.java | UTF-8 | 702 | 2.046875 | 2 | [] | no_license | package controllers;
import models.User;
import be.objectify.deadbolt.java.actions.SubjectPresent;
import com.google.inject.Inject;
import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Result;
import services.model.UserService;
import session.Session;
import views.html.profile.profile;
/**
... | true |
7621c23058f3083280622a9dabf506e508fef548 | Java | azureblue/lichess-bot | /src/kk/lichess/LichessBot.java | UTF-8 | 5,417 | 2.3125 | 2 | [] | no_license | package kk.lichess;
import com.fasterxml.jackson.databind.JsonNode;
import kk.lichess.bots.api.ChessPlayer;
import kk.lichess.net.LichessHTTP;
import kk.lichess.net.LichessHTTPException;
import kk.lichess.net.LichessStream;
import kk.lichess.net.pojo.Challenge;
import java.io.IOException;
import java.lang.invoke.VarH... | true |
c1c68bb5146e75b362a16840b12352c3870ef8c0 | Java | ppqqhhjj/Skyproc-Libaray | /MyPatcher/src/com/mypatcher/action/RemoveFantasticItemsAction.java | UTF-8 | 2,570 | 2.328125 | 2 | [] | no_license | package com.mypatcher.action;
import java.util.ArrayList;
import java.util.List;
import skyproc.ARMO;
import skyproc.FormID;
import skyproc.GRUP;
import skyproc.GRUP_TYPE;
import skyproc.KYWD;
import skyproc.KeywordSet;
import skyproc.LVLI;
import skyproc.LeveledEntry;
import skyproc.MajorRecord;
import... | true |
5b1a1ede2247925a7e61c81e78dcd4b82ad127c4 | Java | tahaShaheen/tdf02-145_remote_sharable | /app/src/main/java/com/example/choturemote/ui/main/SpeakingFragment.java | UTF-8 | 9,246 | 2.65625 | 3 | [
"MIT"
] | permissive | package com.example.choturemote.ui.main;
import android.os.Bundle;
import android.support.annotation.MainThread;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.EditText;
import... | true |
be843a205f6a27af742a06f7445fb2ce8279863a | Java | plipka7/MessageAppServer | /src/main/java/hello/UserRepository.java | UTF-8 | 569 | 2.1875 | 2 | [] | no_license | package hello;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import hello.User;
// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD re... | true |
36e020f8b608c69ea9f9bde0f58aa1db823a0407 | Java | sai486/MusicAlbum | /src/com/model/MusicMaster.java | UTF-8 | 1,224 | 2.484375 | 2 | [] | no_license | package com.model;
public class MusicMaster {
private int music_id;
private int album_id;
private int title_id;
private int artist_id;
private int genre_id;
public int getMusic_id() {
return music_id;
}
public void setMusic_id(int music_id) {
this.music_id = music_id;
}
public int getAlbum_id() {
return album_id... | true |
e4e0aacc4d6fab67ba0760c07b98d0a8556bf0e0 | Java | TheDarkTrumpet/WifiRoomIdentification | /src/com/TDT/room_identification/RangeStruct.java | UTF-8 | 2,962 | 2.609375 | 3 | [] | no_license | package com.TDT.room_identification;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import android.content.Context;
import android.os.En... | true |
151800ec9ec24b17120125e03dad284a555df3a2 | Java | alexmoitta/showphotos | /app/src/main/java/com/yourdomain/showphotos/ImageDownloader.java | UTF-8 | 1,468 | 2.28125 | 2 | [] | no_license | package com.yourdomain.showphotos;
import android.annotation.SuppressLint;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.util.Log;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
//import android.graphics.Bitmap;
//i... | true |
82729902ac922784d4b12bc7a445bc99f671ad3f | Java | Elia-Y/cs349-User-Interface | /a4/app/src/main/java/ca/uwaterloo/cs349/a4/MainActivity.java | UTF-8 | 1,734 | 2.359375 | 2 | [] | no_license | package ca.uwaterloo.cs349.a4;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity exte... | true |
a964e95d4bd1b09ab3af9990b49d1f16dabaaecc | Java | vatsank/JavaDesignPatterns | /BehaviouralPatterns/src/com/training/command/MyCommand.java | UTF-8 | 131 | 1.945313 | 2 | [] | no_license | package com.training.command;
/* the command interface */
public interface MyCommand {
public void execute();
}
| true |
886adf2e6d11dcaa8087c91e6c05ad243b24cca6 | Java | ciec20151104703/NetWork_Graduation2015_Real | /20151104703_liuyan/20151104703_liuyan_FEPFUS/src/com/imnu/po/Infm.java | UTF-8 | 1,131 | 2 | 2 | [] | no_license | package com.imnu.po;
public class Infm {
private Integer u_id;
private String u_name;
private String u_email;
private String u_phone;
private String p_img;
private String p_dirpath;
private String u_message;
public Integer getU_id() {
return u_id;
}
public void setU_id(Integer ... | true |
fa81d9ae6c675b4dee5577b39bd435bb82e661c1 | Java | NucleusPowered/Nucleus | /nucleus-modules/src/main/java/io/github/nucleuspowered/nucleus/modules/world/config/WorldConfig.java | UTF-8 | 1,405 | 2.015625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.world.config;
import io.github.nucleuspowered.nucleus.core.services.interfaces.annotation.configuratehelper.LocalisedC... | true |
cfd53131c1ac65099673737b16f898f7d02e72d5 | Java | 15271091213/aliyun-openapi-java-sdk | /aliyun-java-sdk-domain/src/main/java/com/aliyuncs/domain/transform/v20180208/QueryAuctionDetailResponseUnmarshaller.java | UTF-8 | 3,693 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
f6013bb80cd1c29c27a9cd67a7007ed91be7cac9 | Java | nursa-reactome/gsea-desktop | /src/edu/mit/broad/genome/objects/TemplateImpl.java | UTF-8 | 23,094 | 2.53125 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*******************************************************************************
* Copyright (c) 2003-2016 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
*******************************************************************************/
p... | true |
f789acd2a2bb6ac7021b27c97827bd43689090b5 | Java | deebee99/DSAProblemSolvingJava | /src/LeetCode/NumbersAtMostNGivenDigitSet.java | UTF-8 | 2,187 | 3.296875 | 3 | [] | no_license | package LeetCode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* Digit DP Solution (TLE since 1<=n<=10^9)
*/
public class NumbersAtMostNGivenDigitSet {
private ArrayList<Integer> nums = new ArrayList<>();
private ArrayList<Integer> intDigits =... | true |
81b2fee2008adeb0ac8e6dca6b2ec12fa84f43b1 | Java | YangLiuQing-star/design-pattern | /src/template/PureSoyMilk.java | UTF-8 | 164 | 2.0625 | 2 | [] | no_license | package template;
/**
* @author YangLiuQing
* @date 2020/6/16 21:41
*/
public class PureSoyMilk extends SoyMilk{
@Override
public void add() {
}
}
| true |
0cffe69c2f65bea95c320a8792e08610b376fb40 | Java | hvnedward/music_app | /simple_app/app/src/main/java/com/example/mymvvm/adapter/SingerAdapter.java | UTF-8 | 2,845 | 2.375 | 2 | [] | no_license | package com.example.mymvvm.adapter;
import static com.example.mymvvm.Constants.NULL_STRING;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardview.widget... | true |
98756c7d5ae211af607455196034210fcde1683a | Java | nivance/Ostrich | /Ostrichapi/src/main/java/org/ostrich/nio/api/framework/exception/InsufficientConnectoinException.java | UTF-8 | 531 | 2 | 2 | [] | no_license | package org.ostrich.nio.api.framework.exception;
public class InsufficientConnectoinException extends RouterException{
/**
*
*/
private static final long serialVersionUID = 1665068546914716898L;
public InsufficientConnectoinException() {
super();
}
public InsufficientConnectoinException(String message, ... | true |
9e387b6c136dfe827e1ebdb82f54dd15006bef80 | Java | jyyconrad/wx-api | /src/main/java/com/github/jconrad/modules/wx/service/WxTagService.java | UTF-8 | 544 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.jconrad.modules.wx.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.jconrad.common.utils.PageUtils;
import com.github.jconrad.modules.wx.entity.WxTagEntity;
import com.github.jconrad.modules.wx.form.WxTagUsers;
import java.util.Map;
/**
*
*
* @author jyyco... | true |
98b105fad4d87d4fa2d183e76832df16c8ae09a4 | Java | gormac23/Java | /Udemy/JavaMasterclass/3.FirstSteps/src/com/gormac23/LogicalOperators.java | UTF-8 | 1,736 | 4.03125 | 4 | [] | no_license | package com.gormac23;
public class LogicalOperators {
public static void main(String[] args) {
int topScore = 100;
// Equal Operator
if (topScore == 100) {
System.out.println("You have the high-score");
}
// Not Operator
if (topScore != 100) {
... | true |
2be8299ec9df7fa9ac49d1e307d0a676da61ceb6 | Java | JasonLimonB/interceptoresSpringboot | /src/main/java/com/limon/code/controllers/Index.java | UTF-8 | 538 | 2.15625 | 2 | [] | no_license | package com.limon.code.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class Index {
String txt = "Si puedes leer est... | true |
0f86f4631190498788243b959219473d951fab49 | Java | bltn/GeoMood | /app/repositories/DBEnvironment.java | UTF-8 | 79 | 1.609375 | 2 | [] | no_license | package repositories;
public enum DBEnvironment {
TEST, DEV, PRODUCTION
}
| true |
9ec4bb8773fc7599e2bd080fc72ac2c43a4cdccc | Java | pawanpatidar/DefineProject | /app/src/main/java/com/patidar/pawan/definelabs/DBHelper.java | UTF-8 | 3,663 | 2.421875 | 2 | [] | no_license | package com.patidar.pawan.definelabs;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.patidar.pawan.definelabs.ui.AllMatches.MatchesModel;
import java.util... | true |
65b7ab03dcb2243234ef72d4106ce520626d8d23 | Java | hoswey/java-design-patterns | /singleton/src/test/java/com/iluwatar/singleton/EnumIvoryTowerTest.java | UTF-8 | 336 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.iluwatar.singleton;
/**
* Date: 12/29/15 - 19:20 PM
*
* @author Jeroen Meulemeester
*/
public class EnumIvoryTowerTest extends SingletonTest<EnumIvoryTower> {
/**
* Create a new singleton test instance using the given 'getInstance' method
*/
public EnumIvoryTowerTest() {
super(() -> Enum... | true |
5391c6f0cbabbda3255d7944d8b0c9a957a430c5 | Java | wangqingshan/smart-sample | /src/main/java/org/smart4j/wqs/day001/Test.java | UTF-8 | 709 | 3.375 | 3 | [] | no_license | package org.smart4j.wqs.day001;
/**
* author 90
* description 测试成员变量
* date 2019/6/15
*/
public class Test {
private int a;
public static void main(String[] args) {
int b;
System.out.println(new Test().a);
//System.out.println(b); 注意局部变量不能这样用
//即使在初始化阶段程序员没有为类变量赋值也没有关系,类变量... | true |
2b6947bdbda3f873f25d32c767d90f5af71dfe34 | Java | nate-getch/WAA-Labs | /FinalExam_JPA/src/main/java/com/packt/webstore/controller/EmployeeController.java | UTF-8 | 2,041 | 2.375 | 2 | [] | no_license | package com.packt.webstore.controller;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;... | true |
ca5b4df5c620cd0531d8fdcddb6665e5c289a5f1 | Java | liunana1993/FrameworkDemo | /baselib/src/main/java/com/mico/framework/baselib/constants/PageUrl.java | UTF-8 | 565 | 1.617188 | 2 | [] | no_license | package com.mico.framework.baselib.constants;
/**
* Created by LiuNana on 2017/3/17.
* define a url for every Activity,then {@link com.alibaba.android.arouter.launcher.ARouter} navigation
* to the activity buy using this url
*/
public class PageUrl {
//dagger module
public static final String DAGGER_PROFI... | true |
b84ea7539eaf7cd8be310d943ba8edd89cf7f969 | Java | Paladin1412/house | /java/classes/android/support/transition/aq.java | UTF-8 | 680 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package android.support.transition;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewOverlay;
class aq
implements ar
{
private final ViewOverlay a;
aq(View paramView)
{
this.a = paramView.getOverlay();
}
public void add(Drawable paramDrawable)
{
... | true |
3f29515d5097f841581203cf8fd09b958f529830 | Java | a2en/Zenly_re | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/com/mapbox/android/telemetry/FeedbackData.java | UTF-8 | 1,327 | 1.851563 | 2 | [] | no_license | package com.mapbox.android.telemetry;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
public class FeedbackData implements Parcelable {
public static final Creator<FeedbackData> CREATOR = new C11301a();
/* renamed from: e */
private String f29229e;
/* re... | true |
67fdb21234fae7f7802a4850b578878844b81da3 | Java | DaianaBarb/springSecurity-oauth2-thymeleaf-jpa | /src/main/java/com/Test/Controls/LoginController.java | UTF-8 | 5,041 | 2.1875 | 2 | [] | no_license | package com.Test.Controls;
import java.util.ArrayList;
import java.util.List;
import javax.security.auth.message.callback.PrivateKeyCallback.Request;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
60339f4659acdb116b37dbba1925bfdfcdba8b83 | Java | zuliaio/zuliaui | /zulia-ui/src/main/java/io/zulia/ui/client/views/home/HomeComponent.java | UTF-8 | 4,231 | 1.929688 | 2 | [] | no_license | package io.zulia.ui.client.views.home;
import com.axellience.vuegwt.core.annotations.component.Component;
import com.axellience.vuegwt.core.annotations.component.Data;
import com.axellience.vuegwt.core.client.component.IsVueComponent;
import com.axellience.vuegwt.core.client.component.hooks.HasBeforeMount;
import com.... | true |
3813ca9b67a9a730145bfdc80540618ac885404c | Java | Zegdon/stc-main | /backend/course-service/src/main/java/hu/me/iit/malus/thesis/course/service/impl/CourseServiceImpl.java | UTF-8 | 8,051 | 1.96875 | 2 | [] | no_license | package hu.me.iit.malus.thesis.course.service.impl;
import hu.me.iit.malus.thesis.course.client.*;
import hu.me.iit.malus.thesis.course.client.dto.Mail;
import hu.me.iit.malus.thesis.course.model.Course;
import hu.me.iit.malus.thesis.course.model.Invitation;
import hu.me.iit.malus.thesis.course.model.exception.Forbidd... | true |
360be87525180ef02ad1bb29e316dc888fa458dc | Java | RahulSale142/ALLDP | /Decorator-WrapperDP/src/com/rahul/decorator/DryFruitIceCreamDecorator.java | UTF-8 | 428 | 2.578125 | 3 | [] | no_license | package com.rahul.decorator;
import com.rahul.component.Icecream;
public class DryFruitIceCreamDecorator extends IcecreamDecorator {
public DryFruitIceCreamDecorator(Icecream icecream) {
super(icecream);
}
private void addDryFruit() {
System.out.println("Adding DryFruit");
}
@Override
pu... | true |
5f53deb3dcc408c01679a54a26646d0b6a6d6ef1 | Java | Abelarm/WebServices-in-Java | /TravelOnline/src/it/unisa/data/Cliente.java | UTF-8 | 1,113 | 2.71875 | 3 | [] | no_license | package it.unisa.data;
import java.io.Serializable;
public class Cliente implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String nome, cognome, email, login;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome... | true |
4e765b80dfde7d51ad91219e078aaafae77999f2 | Java | spacechina-com/sc.service | /src/main/java/com/sc/service/service/IMenuService.java | UTF-8 | 212 | 1.632813 | 2 | [] | no_license | package com.sc.service.service;
import java.util.List;
import com.sc.api.model.Menu;
import com.sc.api.model.Pd;
public interface IMenuService {
List<Menu> listRoleMenu(Pd pd) throws Exception;
}
| true |
2a31d60c9ec24c4ddb853460ad172d1e8d8c2244 | Java | LyskaL/GitLabTool | /src/main/java/com/lgc/gitlabtool/git/jgit/ChangedFileStatus.java | UTF-8 | 1,095 | 2.34375 | 2 | [] | no_license | package com.lgc.gitlabtool.git.jgit;
/**
* Status for {@link ChangedFile}.
*
* It shows us file state: removed, added, it was added to the staging or not.
*
* @author Lyudmila Lysk
*/
public enum ChangedFileStatus {
CONFLICTING {
@Override
public String toString() {
... | true |
468f242bcb6bd8e6625d302f7acb8cf8fbbfe698 | Java | maupaz92/MH | /CapaServicioMH/src/main/java/servicio/accesos/RegistroRESTServices.java | UTF-8 | 710 | 2.3125 | 2 | [] | no_license | package servicio.accesos;
import java.util.HashSet;
import java.util.Set;
import servicio.accesos.EquiposRESTService;
import servicio.accesos.TorneosRESTService;
import javax.ws.rs.core.Application;
public class RegistroRESTServices extends Application {
//contiene las clase estilo singleton que recibir... | true |
ecba7e5ffb5b6e4368ab854ad2b2efc8b667981c | Java | parth1493/JavaSerivce | /app/src/main/java/com/tr1/javaserivce/MyIntentService.java | UTF-8 | 1,426 | 2.328125 | 2 | [] | no_license | package com.tr1.javaserivce;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.os.ResultReceiver;
import android.util.Log;
import androidx.annotation.Nullable;
public class MyIntentService extends IntentService {
private static final String TAG = "MyIntent... | true |
9a322cd7e8a1b93a8a69b3c062aec226029b5b36 | Java | hareesh996/HotelSearchApplicationAPI | /src/main/java/com/strikers/hotel/dao/entity/HotelLikes.java | UTF-8 | 688 | 2.34375 | 2 | [] | no_license | package com.strikers.hotel.dao.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity(name="thotel_likes")
public class HotelLikes {
@Id
@Column(name="likes_id")
private Long id;
@Column(name="up_likes")
private int upLikes;
@Column(name="down_likes")... | true |
89a616b06786e5cb490745127223bd8a720dae93 | Java | jpretel/sys.core | /sys.dao/src/core/entity/Requerimiento.java | UTF-8 | 2,740 | 1.992188 | 2 | [] | no_license | package core.entity;
import java.io.Serializable;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Requerimiento
*
*/
@Entity
public class Requerimiento implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private long idrequerimiento;
@Col... | true |
ffa13017bbea1a0082acd5d17364d652ed9f446d | Java | zwht/workflow | /cfmy-dao/src/main/java/com/zw/dao/entity/File.java | UTF-8 | 1,051 | 2.046875 | 2 | [] | no_license | package com.zw.dao.entity;
public class File {
private Long id;
private String url;
private Short state;
private Long userId;
private Long corporationId;
private Short type;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
... | true |
34bfe585b985619b94278abc6b0258ef977def98 | Java | Pintorsmia/ClientJSP-Maven | /src/main/java/com/servlets/ServletTrain.java | UTF-8 | 9,584 | 2.5625 | 3 | [] | no_license | package com.servlets;
import calcul.DistanceService;
import org.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
impo... | true |
f4b41159778eabc4f784404017ddf734b8432de9 | Java | RyanTech/RecipeOfTheDay | /src/com/mobilitea/recipes/controller/DataController.java | UTF-8 | 7,902 | 2.4375 | 2 | [] | no_license | package com.mobilitea.recipes.controller;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.StreamCorruptedException;
import j... | true |
f93929136b7b4e323d2cfe1b6bf7ae4ca5934362 | Java | YoungsAppWorkshop/coding-practice-archive | /java-practice/src/javaLesson/SimpleClient.java | UTF-8 | 2,694 | 3.140625 | 3 | [] | no_license | package javaLesson;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import javax.swing.JDialog;
import javax.swing.JFrame;
... | true |
d3d511606d83a34f7122ee92bc8d33de7759926f | Java | Natborks/java-projects | /CalenderApp/src/models/Entry.java | UTF-8 | 952 | 3.28125 | 3 | [] | no_license | package models;
import DateTimeUtils.CustomDate;
import DateTimeUtils.CustomTime;
public abstract class Entry {
private CustomDate date;
private CustomTime time;
private boolean isRepeating;
public Entry(CustomDate date, CustomTime time, boolean isRepeating){
this.date = date;
this.t... | true |
d6d75cd3ae4f3afa4cd5495e850af0b985026ed0 | Java | rafaZIINN/prova-calculadora-adapter | /Calculador5.0/src/CalculaBinario.java | UTF-8 | 427 | 2.453125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Rafael
*/
public class CalculaBinario extends Calculadora{
public void binario (Double resulta... | true |
bfef3bbf88981f59b2a4d93c5ce8b9acc6c480b1 | Java | codigoferoz/java_basico | /sesiones_4_5_6/ob-poo/src/poo/clases/Motor.java | UTF-8 | 436 | 2.703125 | 3 | [] | no_license | package poo.clases;
public class Motor {
// 1. atributos
String modelo;
int caballos;
double parNm;
int numCilindros;
// 2. constructores
public Motor(){
}
public Motor(String modelo, int caballos, double parNm, int numCilindros) {
this.modelo = modelo;
this.cabal... | true |
daa65b2da46827a1db235d73a3d5b304272d1303 | Java | Sivaranjane29/kitchen-inventory | /app/src/main/java/com/example/kitcheninventory/adaptor/Re_ROL_Adapter.java | UTF-8 | 4,035 | 1.929688 | 2 | [] | no_license | /*
* Copyright (c) 2021.
*/
package com.example.kitcheninventory.adaptor;
import android.content.Context;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.rec... | true |
293f91ab4d94d971a3aea9ab6df4669d088bc569 | Java | mash-up-kr/feedget-android | /ProjectFeedget/app/src/main/java/kr/mashup/feedget/ui/main/feed/FeedPresenter.java | UTF-8 | 2,756 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package kr.mashup.feedget.ui.main.feed;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import kr.mashup.feedget.R;
import kr.mashup.feedget.ui.main.feed.tabs.creation.C... | true |
423922a97de487e3d0deaaf72d2497b8188b6b2d | Java | jinhuizxc/GuokrChoice | /app/src/main/java/com/example/jh/guokrchoice/support/Constants.java | UTF-8 | 577 | 1.75 | 2 | [] | no_license | package com.example.jh.guokrchoice.support;
/**
* Created by Dazz on 2016/4/3.
*/
public final class Constants {
public interface Url{
String HANDPICK_OPEN_SCREEN_PAGE = "http://apis.guokr.com/flowingboard/item/handpick_open_screen_page.json";
String HANDPICK_CAROUSEL = "http://apis.guokr.com/fl... | true |
6574892e378c163e0e5d2403d87004970497bcd9 | Java | gy121681/Share | /customer/src/main/java/com/shareshenghuo/app/user/MentionAmountActivity.java | UTF-8 | 678 | 1.757813 | 2 | [] | no_license | package com.shareshenghuo.app.user;
import com.shareshenghuo.app.user.R;
import com.shareshenghuo.app.user.widget.CircleProgressView;
import android.os.Bundle;
public class MentionAmountActivity extends BaseTopActivity{
private CircleProgressView circleProgressbar;
@Override
protected void onCreate(Bundle a... | true |
3b4cb8d6b9149f6158636dd0a16dce1b6f7e07dd | Java | birkh8792/hip-message-server | /hip-message-server-core/src/main/java/com/djhu/hiup/message/server/core/model/Doc.java | UTF-8 | 10,205 | 1.617188 | 2 | [] | no_license | package com.djhu.hiup.message.server.core.model;
import java.math.BigDecimal;
import java.util.Date;
/**
* 文档
*/
public class Doc {
private BigDecimal pk;
private String msgId;
private String msgCreationTime;
private String receiveId;
private String sendId;
private String docFlowNo;
... | true |
7a4be0115f037a2e93e88c0af6f3b3d92843346b | Java | ghribacki/ludumdare24 | /src/net/ghribacki/ld24/world/Tesselator.java | UTF-8 | 7,453 | 3.15625 | 3 | [
"MIT"
] | permissive | package net.ghribacki.ld24.world;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Tesselator {
private float red;
private float green;
private float blue;
public Tesselator() {
// Decide planet's color!
Random random = new Random();
this.red = 0.0f;
this.green = ... | true |
e06cb3508186d1da0323aef57f2a704e22159ab8 | Java | MochHudda-TI-A-A2-1900106/TI-IA-Pert9-A2.1900106-MochHudda | /src/Latihan6/Mamalia.java | UTF-8 | 178 | 1.570313 | 2 | [] | no_license | package Latihan6;
/*Mochammad Hudda
*TI-IA
*STMIK Sumedang
*/
public class Mamalia {
//variable jumlah kambing dideklarasikan sebagai statik
public static int jumlahKambing;
}
| true |
b92861b85961ca03decd7b4a4d4cc07c5a46ec74 | Java | mohamedtaha251/FixStore | /app/src/main/java/nti/com/fixstore11/presenter/presenterImpl/signUpHandymanPresenterImp.java | UTF-8 | 517 | 2.234375 | 2 | [] | no_license | package nti.com.fixstore11.presenter.presenterImpl;
import nti.com.fixstore11.model.entities.HandyMan;
import nti.com.fixstore11.model.remote.FireBase;
import nti.com.fixstore11.presenter.presenter.MainPresenter;
import nti.com.fixstore11.presenter.presenter.SignUpHandymanPresenter;
public class signUpHandymanPresent... | true |
64f5a187e4926079bc307fa0cbb27d6f6ea36eba | Java | johnsevillano/babylon | /services/java/Babylon.Services/Babylon.Services.Model/src/Babylon/Services/Repositories/NewsRepository.java | UTF-8 | 2,467 | 2.640625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Babylon.Services.Repositories;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import org.hibernate.Session;
import org.hibernate.Query;
import org.hibernate.Transaction;
import ... | true |
ac359889593c4ce820611286fbf5a87358f9c8d5 | Java | wjprakash/twproto | /src/com/nayaware/twproto/nodes/TwWorkspaceDirChildren.java | UTF-8 | 1,544 | 2.640625 | 3 | [] | no_license | /*
* TwWorkspaceDirChildren.java
* Author - Winston Prakash
*/
package com.nayaware.twproto.nodes;
import java.util.*;
import java.io.*;
import org.openide.nodes.*;
public class TwWorkspaceDirChildren extends Children.Array {
protected TwWorkspaceDirNode dirNode;
protected boolean isExplored = ... | true |
2dd02c398f1a7fce50a99a478852f112252e3184 | Java | mangohero1985/KGBuildFromJapaneseReview | /src/CombineSameElement/ExactHiragana.java | UTF-8 | 767 | 2.4375 | 2 | [] | no_license | /**
*
*/
package CombineSameElement;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import jp.uclab.io.IOhandle;
/**
* @author mangohero1985
* @create-time Aug 21, 2014 11:37:01 AM
*/
public class ExactHiragana {
public void Exact(String inputString,Stri... | true |
492f6d57fb7940794d62edd912af2bdcb4f3c387 | Java | hadoop168/Contacts | /app/src/main/java/com/moriarty/user/contacts/Activity/MainView.java | UTF-8 | 250 | 1.664063 | 2 | [] | no_license | package com.moriarty.user.contacts.Activity;
/**
* Created by user on 17-2-23.
*/
public interface MainView {
void showToast(String s);
void invalidate();
void enduePermission(String[] permission);
void setCurrentItem(int flag);
}
| true |
9b13789ac567fa00da4831bf17943be3e99596e0 | Java | domhanak/AndroidProjectApp | /app/src/main/java/cz/muni/fi/pv256/movio/uco410430/network/Responses.java | UTF-8 | 962 | 2.328125 | 2 | [] | no_license | package cz.muni.fi.pv256.movio.uco410430.network;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import cz.muni.fi.pv256.movio.uco410430.domain.Cast;
import cz.muni.fi.pv256.movio.uco410430.domain.Movie;
/**
* Class defining responses for movies.
*
* Created by dhanak on 11/30/15.
*/
... | true |
dbd1eaf40f0c694cb4ec4cd932bd0f8eb8c1a1be | Java | linkedin/rest.li | /d2/src/test/java/com/linkedin/d2/discovery/stores/zk/ZkConnectionBuilderTest.java | UTF-8 | 2,317 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright (c) 2018 LinkedIn Corp.
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... | true |
075b3d4ae68922e750bd92d9142cacf8db750cdb | Java | Salvatore11/Java | /Esercizio 12/src/it/unip/informatica/esercizio12/database/DatabaseUtente.java | UTF-8 | 381 | 2.640625 | 3 | [] | no_license | package it.unip.informatica.esercizio12.database;
import it.unipr.informatica.esercizio12.modello.Utente;
public class DatabaseUtente implements Utente{
String nome;
public DatabaseUtente(String nome) {
if(nome == null || "".equals(nome))
throw new IllegalArgumentException();
this.nome= nome;
}
... | true |
75393367ad2f5c7cb061ced775fc896ef4d4ed41 | Java | natsu6991/je-re-decouvreMaLangue | /app/app/src/main/java/jrml/supinternet/com/jeredecouvremalangue/feature/word/WordAdapter.java | UTF-8 | 6,318 | 2.421875 | 2 | [] | no_license | package jrml.supinternet.com.jeredecouvremalangue.feature.word;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUt... | true |
47d1ee3bbb0bd0c9969bca83063579b45b5d0fca | Java | AbhayaAdarsh/TY_CG_HTD_BANGLORENOVEMBER_JFS_ABHAYAADARSH | /Back End/Java1/hashset/src/HashSet2.java | UTF-8 | 430 | 3.46875 | 3 | [] | no_license | import java.util.HashSet;
import hashset.Student;
public class HashSet2
{
public static void main(String[] args)
{
HashSet<Student> hs=new HashSet<Student>();
hs.add(new Student(52,"Joey"));
hs.add(new Student(50,"Chandler"));
hs.add(new Student(52,"Joey"));
hs.add(new Student(50,"Chandler"));
f... | true |
0804ea09017aaa83fdf9e3734d9eb46215de7330 | Java | yysoft/yy-auth | /auth-dashboard/src/main/java/net/caiban/auth/dashboard/domain/staff/Staff.java | UTF-8 | 5,099 | 2.203125 | 2 | [
"MIT"
] | permissive | /**
*
*/
package net.caiban.auth.dashboard.domain.staff;
import java.io.Serializable;
import java.util.Date;
/**
* @author root
*
*/
public class Staff implements Serializable {
/**
* 员工
*/
private static final long serialVersionUID = 1L;
private Integer id;
private String account;
private String st... | true |
45adb7826088e8e68c6843f37e4fc714661fcad8 | Java | cepardov/cms-be | /src/main/java/com/cepardov/cms/annotation/TimeExecutionMeasuring.java | UTF-8 | 309 | 1.867188 | 2 | [] | no_license | package com.cepardov.cms.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TimeExecutionMeasuring {
}
| true |
2437773a021df541afef751ece956903b6972c2f | Java | senritsu/sRPG | /src/com/behindthemirrors/minecraft/sRPG/listeners/SpawnEventListener.java | UTF-8 | 2,487 | 2.359375 | 2 | [] | no_license | package com.behindthemirrors.minecraft.sRPG.listeners;
import java.util.ArrayList;
import org.bukkit.World;
import org.bukkit.entity.CreatureType;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.entity.EntityListener;
i... | true |
3c10e97c6c86f02319296c9177579a393de7ba77 | Java | Sorumi/Samurai | /src/view/TransitionPanel.java | UTF-8 | 478 | 2.78125 | 3 | [] | no_license | package view;
import javafx.animation.FadeTransition;
import javafx.scene.layout.Pane;
import javafx.util.Duration;
public class TransitionPanel extends Pane {
public TransitionPanel(){
this.setOpacity(0);
}
public void transitionAnimation(boolean isAppear){
FadeTransition ft = new FadeTransition(Duratio... | true |
2fa05a167ccf1760e74b5530cf66f75bd762d45d | Java | Yan-Song/burdakovd | /contests/Зимняя школа/F_1.java | UTF-8 | 1,877 | 3.21875 | 3 | [] | no_license | import java.util.*;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.math.*;
public class F_1 {
static BigInteger binSqrt(BigInteger a){
BigInteger left = BigInteger.ONE;
BigInteger right = a;
while( right.subtract(left).compareTo(BigInteger.ONE... | true |
75ddbe4e62aea20e46e807818135f83c198c8e56 | Java | stephenh/jtty | /src/main/java/Jtty.java | UTF-8 | 3,061 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | import java.util.HashSet;
import javax.servlet.SessionTrackingMode;
import org.eclipse.jetty.security.HashLoginService;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Server;
import or... | true |
6e67c5fc602d58998a08f8e29cc2eaa0da9b4f9f | Java | ythalorossy/learning | /spring-dataflow/stream-functional/src/main/java/io/spring/stream/sample/streamfunctional/StreamFunctionalApplication.java | UTF-8 | 843 | 2.359375 | 2 | [] | no_license | package io.spring.stream.sample.streamfunctional;
import java.util.function.Consumer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class StreamFunctionalApplica... | true |
28897064152e2b37aacbf12cb54a748357ed92c2 | Java | taseal/ZzFragmentTabHost | /app/src/main/java/me/zhouzhuo/zzfragmenttabhostdemo/MainActivity.java | UTF-8 | 2,304 | 1.898438 | 2 | [] | no_license | package me.zhouzhuo.zzfragmenttabhostdemo;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import me.zhouzhuo.zzfragmenttabhost.ZzFragmentTabHost;
import me.zhouzhuo.zzfragmenttabhost.ZzTab;
public class Main... | true |