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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
788f9aa00d997137a581d7ae212fcc4bc786c763 | Java | justayar/SpringBootTemplates | /zipkin/src/main/java/com/justayar/springboot/service/impl/CustomerAddressServiceImpl.java | UTF-8 | 1,087 | 2.53125 | 3 | [] | no_license | package com.justayar.springboot.service.impl;
import com.justayar.springboot.dto.CustomerAddressDTO;
import com.justayar.springboot.service.CustomerAddressService;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class CustomerAddressService... | true |
0d4fabcf38fe9b72c48bb2fa09f8d806af7fe801 | Java | Taoo1024/- | /src/text/Door/Door.java | UTF-8 | 238 | 2.453125 | 2 | [] | no_license | package text.Door;/*
*
* @Author: zt
* @Date: 2020/4/15 19:19
*/
public abstract class Door {
public void open(){
System.out.println("开门");
}
public void close(){
System.out.println("关门");
}
}
| true |
8e94fe16e2e1fc63b1be0a2a4c114031d38150b9 | Java | stackprobe/Spica01 | /tests/charlotte/tools/ObjectTreeTest.java | UTF-8 | 1,496 | 2.984375 | 3 | [
"MIT"
] | permissive | package tests.charlotte.tools;
import java.util.ArrayList;
import java.util.List;
import charlotte.tools.JsonTools;
import charlotte.tools.ObjectTree;
import charlotte.tools.StringTools;
public class ObjectTreeTest {
public static void main(String[] args) {
try {
//test01();
test02();
}
catch(Throwable ... | true |
31e1d2a292be5a3abfa2b7ef936c8a2406ff4be1 | Java | oracle/olcut | /olcut-config-json/src/main/java/com/oracle/labs/mlrg/olcut/config/json/JsonProvenanceDeserializer.java | UTF-8 | 7,500 | 1.828125 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-protobuf",
"EPL-2.0",
"EPL-1.0",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2004-2020, Oracle and/or its affiliates.
*
* Licensed under the 2-clause BSD license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the abov... | true |
717f9e5f2f672d1d3cacd1d9e257d058d4a27922 | Java | caozhongzheng/moxingxiu_v1 | /Mx_Android2/src/com/moinapp/wuliao/activity/Video_Activity.java | UTF-8 | 17,878 | 1.515625 | 2 | [] | no_license | package com.moinapp.wuliao.activity;
import java.util.ArrayList;
import java.util.Map;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.vie... | true |
e3f1f9a90d18a1515830ee891dafe6d9f71d4c87 | Java | JavaQualitasCorpus/nakedobjects-4.0.0 | /core/applib/src/main/java/org/nakedobjects/applib/annotation/ActionOrder.java | UTF-8 | 498 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.nakedobjects.applib.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates the order that actions should be grouped/displayed in.
... | true |
7bdc8cc762e8f2b55354cdcac9f1c41eb705db29 | Java | CodecoolKRK20173/expert-system-krzysiekj | /src/main/java/com/codecool/expertsystem/model/containers/SingleValue.java | UTF-8 | 343 | 2.171875 | 2 | [] | no_license | package com.codecool.expertsystem.model.containers;
import java.util.ArrayList;
import java.util.Arrays;
public class SingleValue extends Value {
public SingleValue(String param, boolean selectionType) {
this.inputPattern = new ArrayList<>();
inputPattern.add(param);
this.selectionType = ... | true |
58cf93b5329ec14aa191017a122549814874e83b | Java | fullStackOasis/android-step-detector-demo | /app/src/main/java/com/fullstackoasis/stepdetectordemo/MainActivity.java | UTF-8 | 2,863 | 2.65625 | 3 | [] | no_license | package com.fullstackoasis.stepdetectordemo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.TextView;
/**
* Dead simple implementation of a step counter, not working on performance o... | true |
07b778c58061252deb9baac71079510abdfb5afc | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/android/support/v4/view/aj.java | UTF-8 | 751 | 1.703125 | 2 | [] | no_license | package android.support.v4.view;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
final class aj {
static class AnonymousClass1 extends AnimatorListenerAdapter {
final /* synthetic */ al yN;
final /* synthetic */ View yO;
Anon... | true |
b6a4de27af5d6e568be1f3744477a32d6969b694 | Java | visweswar-nemani/sorting-theatre-list | /src/Audience.java | UTF-8 | 1,137 | 2.53125 | 3 | [
"MIT"
] | permissive | /**
*
*/
/**
* @author viswe
*
*/
public class Audience {
/**
*
*/
private int audienceID;
/**
*
*/
private String audienceName;
/**
*
*/
private int ticketsBooked;
/**
* @param audienceID
* @param audienceName
* @param ticketsBooked
*/
public Audience(String audienceRecor... | true |
e523a7f8c6a5e00413569992f6cf3015ac783529 | Java | AkashGorle-crypto/May2021 | /BFC/Classes and Objects/Test2.java | UTF-8 | 289 | 2.8125 | 3 | [] | no_license | public class T
{
private int data;
private int sal=10000;
private void msg()
{
System.out.println("CDAC.....");
}
}
class Test2
{
public static void main(String args[])
{
T t =new T();
t.data =40;
System.out.println(t.data);//CE
t.msg();//CE
}
} | true |
4292ce3ff7d018c64dabbff1b6ef9462e8d5f5cf | Java | AndroidStuff/ReadIODemo | /src/com/example/readiodemo/MainActivity.java | UTF-8 | 2,810 | 2.484375 | 2 | [] | no_license | package com.example.readiodemo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmlpull.v1.XmlPu... | true |
424534f627e3a9485b2b9f80337cddd6f83cd9af | Java | nivemaham/AutoIncFactoryService | /src/com/autoinc/bdo/Product.java | UTF-8 | 1,615 | 2.46875 | 2 | [] | no_license | package com.autoinc.bdo;
import com.autoinc.dao.ProductDAO;
public class Product {
private Integer productId;
private String modelnumber;
private String imageurl;
private String manufacturer;
private String brand;
private Integer price;
private String color;
public Product(ProductDAO prodDao) ... | true |
c7323391237771f43748e2a94ea71e2af696373f | Java | blueland99/BeanSprouts | /app/src/main/java/kr/hs/dbgus3577e_mirim/beansprouts/MainActivity.java | UTF-8 | 4,694 | 1.890625 | 2 | [] | no_license | package kr.hs.dbgus3577e_mirim.beansprouts;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.media.Image;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import and... | true |
dd7605f90533edada099c7105c9722b404d4da5a | Java | tridox25/DeadlandPlugin | /DeadlandPlugin/src/me/tridox25/DeadlandPlugin/commands/SubCommands/CommandManager.java | WINDOWS-1250 | 2,977 | 2.796875 | 3 | [] | no_license | package me.tridox25.DeadlandPlugin.commands.SubCommands;
import me.tridox25.DeadlandPlugin.Main;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.ArrayList;
im... | true |
d08ce39e20e4a67273e9d123203db2345f869de8 | Java | histrong/CustomerForecast-java | /src/main/java/cn/gov/eximbank/customerforecast/model/GroupSnapshot.java | UTF-8 | 3,773 | 2.328125 | 2 | [] | no_license | package cn.gov.eximbank.customerforecast.model;
import cn.gov.eximbank.customerforecast.report.ETemplateVariable;
import org.springframework.data.annotation.Id;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GroupSnapshot {
@Id
private String ... | true |
e6b37b2d76a1bc008119dd1133f8bd49b5c69589 | Java | CSC-Arizona/settlement-management-etcetera | /src/entities/CollisionComponent.java | UTF-8 | 561 | 2.671875 | 3 | [] | no_license | package entities;
public class CollisionComponent extends Component {
public CollisionComponent() {
super(Component.COLLISION);
width = 1.0f;
height = 1.0f;
restitution = 0.5f;
invMass = 0.05f;
}
public CollisionComponent(float width, float height,
float restituti... | true |
51d0b12726375a5080a50fef7f0df613164c98dc | Java | gwynethsc/step62-2020 | /project/src/main/java/com/google/sps/servlets/SearchHistoryServlet.java | UTF-8 | 1,817 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.google.sps.servlets;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.sps.data.*;
import java.util.List;
import com.google.gson.Gson;
... | true |
4f69e6deb6e87c6ab9f5ce10aebade3f6fb221c2 | Java | yuliap/ppd_test_framework | /src/main/java/com/tout/ppd/tf/core/web/WebPage.java | UTF-8 | 594 | 2.296875 | 2 | [] | no_license | package com.tout.ppd.tf.core.web;
import org.openqa.selenium.WebDriver;
import com.tout.ppd.tf.core.Config;
import com.tout.ppd.tf.core.Environment;
public abstract class WebPage<T extends WebPage<T>> extends Component<T>{
private static final Environment ENV = Config.getConfig().getEnvironmentSettings();
protec... | true |
511d3a2d1e426a793279900d7b3290fe18bcb669 | Java | vishalcs106/nuzz | /app/src/main/java/com/example/nuzz/view/NewsViewActivity.java | UTF-8 | 1,096 | 2.15625 | 2 | [] | no_license | package com.example.nuzz.view;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.Toast;
import com.example.nuzz.Constants;
import com.example.nuzz.R;
public class NewsViewActivity extends AppCompatActivity {
... | true |
87d483e0f2442b1b194ffb6bceed6e8e6615b0d1 | Java | nabil-hassan/DemoOrderSystem | /src/test/java/demo/dao/CustomerDAOTest.java | UTF-8 | 4,971 | 2.546875 | 3 | [] | no_license | package demo.dao;
import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import org.hibernate.Session;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
9145c5df9c428d8df5280f56d280747b4ae5429b | Java | lucaslois/TP2Java | /test/unitarias/BarrioTest.java | UTF-8 | 9,788 | 2.609375 | 3 | [] | no_license | package unitarias;
import exceptions.*;
import modelo.tablero.Tablero;
import modelo.tablero.TableroFactory;
import modelo.tablero.tipos_casilleros.Barrio;
import modelo.jugador.Jugador;
import modelo.tablero.tipos_casilleros.BarrioDoble;
import modelo.tablero.tipos_casilleros.BarrioSimple;
import modelo.tablero.tipos... | true |
3689e5f48a40a4e79dd652bd9bb8b4912f93a22d | Java | sotosergio88/lenguajes-programacion | /JavaApplication1/src/Solucion/Examen/ValidarOpcion.java | UTF-8 | 461 | 2.28125 | 2 | [] | no_license |
package Solucion.Examen;
/**
*outliers libro comprarlo...
* @author Sergio plaaaannnaaa
*/
public class ValidarOpcion {
public void validar (Opcion[]opciones)throws SoloUnaCorrectaException{
int soloUna=0;
for(Opcion o:opciones){
if(o.isEstatus()){
soloU... | true |
52955ece0bb51ec80d0d08018a40631878a0a047 | Java | AlexRuPa/Quiz | /app/src/main/java/com/example/android/quiz/MainActivity.java | UTF-8 | 5,399 | 2.390625 | 2 | [] | no_license | package com.example.android.quiz;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Switch;
import android.widget.TextV... | true |
2728b9c04a68ff9b7ef77a08a8e491a25953b882 | Java | yu491833661/GoodBoy | /src/main/java/yxinfo/core/service/ou/dao/model/SysMenuExample.java | UTF-8 | 32,419 | 1.945313 | 2 | [] | no_license | package yxinfo.core.service.ou.dao.model;
import java.util.ArrayList;
import java.util.List;
import org.springframework.util.CollectionUtils;
import yxinfo.core.framework.service.dal.Page;
import yxinfo.core.framework.service.dal.dao.AbstractModel;
public class SysMenuExample extends AbstractModel {
/**
* Th... | true |
2146b4fb180d62d3bc6df49c4069ddd6719deb3b | Java | MiguelPMorales/workspace | /Code Work/src/workstuff/DSA6.java | UTF-8 | 2,291 | 3.421875 | 3 | [] | no_license | package workstuff;
import java.util.ArrayList;
import java.util.Scanner;
public class DSA6 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int restartChoice;
ArrayList<String> allSongs = new ArrayList<>();
ArrayList<String> artists = new ArrayList<>();
ArrayLi... | true |
106cdf8c6121a8c9cb0864f342d3380645764347 | Java | dlqqdl/javaweb | /src/controller/hotel/LoginServlet.java | UTF-8 | 1,461 | 2.3125 | 2 | [] | no_license | package controller.hotel;
import service.HotelService.HotelService;
import service.HotelService.HotelServiceImpl;
import util.Constants;
import vo.hotelVo.Hotel;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSe... | true |
8d2986e481d197296db59de215e7b9170db03356 | Java | Benliam12/Session3_infos_Work | /Lab3/src/CalculerNoteFinale.java | UTF-8 | 2,798 | 3.5 | 4 | [] | no_license | import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
/**
* Created by Benliam12 on 2019-09-04.
*/
public class CalculerNoteFinale
{
public static void main(String[] args)
{
String line;
String fileName = "Lab3/notes.txt";
ArrayList<Student> students = new ArrayL... | true |
04d255fead4c8a86d8818f65141b29d548743af3 | Java | wilgroup1234/WILAssignment | /Android App/WIL/app/src/main/java/com/a17001922/wil_app/homeScreen/CardViewItemClickListener.java | UTF-8 | 270 | 2.015625 | 2 | [] | no_license | package com.a17001922.wil_app.homeScreen;
import android.view.View;
//This interface is used for recycler view items.
//The method is used when items on the recycler view are clicked
public interface CardViewItemClickListener
{
void onItemClick(View v, int pos);
}
| true |
3b9b45e3b673a931bd16635c061e4230c4dbda82 | Java | farhaadkhan14/Software-Design | /Background Check Simulator/src/backgroundcheckservice/CitizenshipCheck.java | UTF-8 | 309 | 2.265625 | 2 | [] | no_license | package backgroundcheckservice;
import org.javatuples.Pair;
public interface CitizenshipCheck {
static Pair<Boolean, String> evaluate (String ssn) {
if(ssn.charAt(2) == '3')
return new Pair <Boolean, String>(true, "");
return new Pair <Boolean, String>(false, "not a citizen");
}
} | true |
ff25552be431d8fda93e8ac2eb629aaf2e13708d | Java | maxdarkx/DomainModel | /Tactical DDD/src/main/java/com/juancarlosmaya/videogame/Genre.java | UTF-8 | 502 | 2.390625 | 2 | [] | no_license | package com.juancarlosmaya.videogame;
import co.com.sofka.domain.generic.Entity;
import com.juancarlosmaya.videogame.values.GenreId;
import com.juancarlosmaya.videogame.values.Name;
import java.util.Objects;
public class Genre extends Entity<GenreId> {
private Name name;
public Genre(GenreId entityId, Name ... | true |
fa49790aff548c1ac402daed6126d7cef78bd0d9 | Java | pighouse7647/practice | /src/main/java/data/TodoPage.java | UTF-8 | 450 | 1.585938 | 2 | [] | no_license | package data;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Thomas Chen on 2017/4/30.
*/
@Setter
@Getter
@RequiredArgsConstructor
@AllArgsConstructor
public class TodoPage {
//... | true |
daaa618e7ae92c14f6fcff93b60c765a94e5202b | Java | anorth/soundbyte | /AudioServer/src/com/example/audioserver/MainActivity.java | UTF-8 | 2,503 | 2.515625 | 3 | [] | no_license | package com.example.audioserver;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.widget.TextView;
import com.example.audioserver.Events.SocketConnected;
import com.example.audioserver.Events.SocketDisconnected;
import com.squareup.otto.Bus;
impo... | true |
fddc5380ecca86686956e1168ec5160b277e5ed9 | Java | clilystudio/NetBook | /allsrc/com/qq/e/comm/managers/setting/c.java | UTF-8 | 1,272 | 2.125 | 2 | [
"Unlicense"
] | permissive | package com.qq.e.comm.managers.setting;
import com.qq.e.comm.util.GDTLogger;
import com.qq.e.comm.util.StringUtil;
import org.json.JSONException;
import org.json.JSONObject;
public class c
{
private JSONObject a = new JSONObject();
public c()
{
}
public c(String paramString)
{
this();
GDTLogger.... | true |
1810279e2befa7eff225c952da6778788f57df79 | Java | mindaugasbarc/RIPSimulatorr | /src/Main.java | UTF-8 | 5,714 | 3.171875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
NetworkGraph g = new NetworkGraph();
g.addRouter("111.111.111.111");
g.addRouter("222.222.222.222");
g.addEdge("111.11... | true |
260484de83bbf7d4f7fb1394e100830552e8a3b8 | Java | xiezhifeng/mysource | /jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/event/JiraEventExecutorFactory.java | UTF-8 | 2,538 | 2.625 | 3 | [] | no_license | package com.atlassian.jira.event;
import com.atlassian.event.api.EventListener;
import com.atlassian.event.spi.EventExecutorFactory;
import com.atlassian.jira.EventComponent;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurr... | true |
a2704d074358b935620be50af7de99aedfb9739a | Java | nilay1130/QuizApp | /app/src/main/java/ceng427/quizapp/AddWordActivity.java | UTF-8 | 2,724 | 2.4375 | 2 | [] | no_license | package ceng427.quizapp;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.... | true |
e63b7d265dee7df05edd90c550122de9a75c84ef | Java | JonasSL/HotCivMiniDraw | /test/hotciv/visual/ShowComposition.java | UTF-8 | 1,995 | 2.671875 | 3 | [] | no_license | package hotciv.visual;
import minidraw.standard.*;
import minidraw.framework.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import hotciv.framework.*;
import hotciv.view.*;
import hotciv.stub.*;
/** Template code for exercise FRS 36.44.
This source code is from the book
"Flexible, Reliable ... | true |
265d9f7823e6fcb9e39037bd53a60c57f1557c1e | Java | JorisVerhelst/2deZitJorisVerhelst | /src/Exceptions/NotANumberException.java | UTF-8 | 394 | 2.59375 | 3 | [] | no_license |
package Exceptions;
public class NotANumberException extends Exception{
public NotANumberException() {
}
public NotANumberException(String message) {
super(message);
}
public NotANumberException(String message, Throwable cause) {
super(message, cause);
}
public ... | true |
4bbc029bfd32c96a64e2f0f57e15b2fd891b794b | Java | uuufo/java-fundamentals | /src/labs_examples/multi_threading/labs/Exercise_01.java | UTF-8 | 1,614 | 4.1875 | 4 | [] | no_license | package labs_examples.multi_threading.labs;
/**
* Multithreading Exercise 1:
*
* 1: Create an application that starts a Thread by implementing the Runnable interface
* 2: Demonstrate at least two distinct ways of initiating a Thread using the Runnable you just created
*
*/
class Exercise_01 {
publ... | true |
6185c95a392fc6002a2fedac7c7d2a2dfb6db420 | Java | heguitang1214/javaProject | /javaBasics/src/main/java/thread2/t05_group/onelevel/OneLevelDemo.java | UTF-8 | 719 | 3.109375 | 3 | [] | no_license | package thread2.t05_group.onelevel;
/**
* @Author: 无双老师【云析学院】
* @Date: 2019-06-16 20:32
* @Description: 一级关联
*/
public class OneLevelDemo {
public static void main(String[] args) {
TestThread testThread1 = new TestThread();
TestThread testThread2 = new TestThread();
ThreadGroup threadGr... | true |
cb505b039b7736a1347a1a06838658299662ef4c | Java | fesine/netty-learning | /src/main/java/com/fesine/semaphore/VolatileNotAtomic.java | UTF-8 | 1,003 | 3.578125 | 4 | [] | no_license | package com.fesine.semaphore;
/**
* @description: count++ count--不是原子操作,要保证原子操作必须使用synchronized修饰
* @author: fesine
* @createTime:2019/12/16
* @update:修改内容
* @author: fesine
* @updateTime:2019/12/16
*/
public class VolatileNotAtomic {
private static volatile long count=0L;
private static final int NUMBE... | true |
f64af36ce7efb814fad9c05b5f354ec5fec35bdc | Java | lf2035724/aucross-commons | /src/main/java/com/ylink/ylpay/common/project/pay/dto/RechargeRollbackConfirmDTO.java | UTF-8 | 2,535 | 2.109375 | 2 | [] | no_license | /**
* 版权所有(C) 2012 深圳市雁联计算系统有限公司-证联融通电子有限公司
* 创建:YG.HU 2012-11-29
*/
package com.ylink.ylpay.common.project.pay.dto;
import java.util.ArrayList;
import java.util.List;
import com.ylink.ylpay.common.core.dto.BaseDTO;
/**
* @author YG.HU
* @date 2012-11-29
* @description:TODO
*/
public class RechargeRollback... | true |
459789b4582e6d7a37b4a816d849831f8dfa2ffb | Java | aghasyedbilal/intellij-community | /platform/util/src/com/intellij/util/io/zip/ReorderJarsMain.java | UTF-8 | 4,883 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... | true |
8db346b73f8c792e6bdbaf2964b102cdbe4ba309 | Java | ceeeztheday/SchoolWork | /Programming II/Problem4_complete.java | UTF-8 | 1,396 | 3.21875 | 3 | [] | no_license | import java.util.Scanner;
import java.text.NumberFormat;
import java.math.*; //imports enumerations and java.math classes
import java.util.Scanner;
import java.io.File;
import java.io.IOException;
public class Problem4_complete
{
public static void main(String [] args)
{
//variable declarations
String ... | true |
a8ef1be94bf47157937753b67271435cba58a6c6 | Java | abguymon/Ticket-to-Ride-Hyrule | /TicketToHyrule/app/src/main/java/cs340/tickettohyrule/Fragments/PreStartFragment.java | UTF-8 | 8,585 | 2.078125 | 2 | [] | no_license | package cs340.tickettohyrule.Fragments;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import... | true |
6d1d5db0d0db2abed0fd7b40c629e485c4873317 | Java | phylame/pmm | /pbm/src/main/java/pmm/pbm/data/base/entity/Endpoint.java | UTF-8 | 1,065 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | package pmm.pbm.data.base.entity;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import pmm.pbm.data.base.support.Entity;
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Endpoint extends Entity implements Seriali... | true |
3ba63a903af2c717c813a5ce584d021ed474eb7c | Java | ArsenTrynko/java_lab6 | /src/ua/lviv/iot/WaterTransport/main.java | UTF-8 | 1,020 | 2.6875 | 3 | [] | no_license | package ua.lviv.iot.WaterTransport;
import java.util.ArrayList;
import java.util.List;
import ua.lviv.iot.WaterTransport.manager.WaterTransportManager;
import ua.lviv.iot.WaterTransport.model.*;
public class main {
public static void main(String[] args) {
WaterTransportManager manager = new WaterTransp... | true |
3fbd8723bc2bbad971355950e76c55311b892bc1 | Java | MinhDuc1611/Duc | /book/src/main/java/com/minhduc/controller/TrangChiTietController.java | UTF-8 | 1,075 | 2.0625 | 2 | [] | no_license | package com.minhduc.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Path... | true |
dab60910ec7d7a605573266cc83a9383e3561a74 | Java | balsikandar/KeylineMaterialDesign | /app/src/main/java/com/balsikandar/keylinematerialdesign/sample/MainActivity.java | UTF-8 | 1,447 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.balsikandar.keylinematerialdesign.sample;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.balsikandar.android.keylinematerialdesign.KeylineMaterialDesign;
import com.balsikandar.a... | true |
c9af9463cb4a514eeb7bbe0dcdb0efab49a2b7ed | Java | hemanthkumar77/MVC-CONCEPTS | /mvc-allobjects/src/contoller/control.java | UTF-8 | 996 | 2.609375 | 3 | [] | no_license | package contoller;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/")
public class control {
/*
@R... | true |
6c795a84b115de0f130aefde966f9590a92a62df | Java | Bravelemming/data-structures-and-algorithms | /code401challenges/src/main/java/graph/Graph.java | UTF-8 | 5,915 | 3.65625 | 4 | [
"MIT"
] | permissive | package graph;
import java.util.*;
public class Graph {
//vars
HashMap<Vertex, List<Edge>> adjacentVertices;
//constructor
public Graph (){
adjacentVertices = new HashMap<>();
}
//methods
Vertex addVertex(String value) {
Vertex v = new Vertex(value);
//does not do... | true |
58f67005966158b9b9064e070b65777e1fe569f7 | Java | 393562632/web_framework | /src/main/java/com/study/aop/aspectJ/annotion/Introduction/ApologyImpl.java | UTF-8 | 314 | 2.1875 | 2 | [] | no_license | package com.study.aop.aspectJ.annotion.Introduction;
import org.springframework.stereotype.Component;
/**
* Created by ChenQiang on 2016/10/31.
*/
@Component
public class ApologyImpl implements Apology {
@Override
public void sqySorry(String name) {
System.out.println("Sorry" + name);
}
}
| true |
3287f6203bb5bcb59234a224cc08b93e5ef776b3 | Java | banjjoknim/java-baseball-game | /src/main/java/Number.java | UTF-8 | 775 | 3.40625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Number {
private static final int NUMBER_LENGTH_LIMIT = 3;
public static final int MAX_VALUE_OF_BASEBALL_NUMBER = 9;
public static final int MIN_VALUE_OF_BASEBALL_NUMBER = 1;
public String create() {
... | true |
11067a8246e460e84f963ad8d2bcd64cce895237 | Java | rivkabeck52/SlackIntegrationCI | /src/test/java/SlackIntegrationTest.java | UTF-8 | 2,169 | 2.234375 | 2 | [] | no_license | import com.applitools.eyes.BatchInfo;
import com.applitools.eyes.RectangleSize;
import com.applitools.eyes.TestResults;
import com.applitools.eyes.selenium.Eyes;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import... | true |
4be52ee617edee32b03af724f6599662bcbe402f | Java | hxdivine/JAVAWEB | /ssh_crm/src/com/crm/serviceImpl/UserServiceImpl.java | UTF-8 | 812 | 2.171875 | 2 | [] | no_license | package com.crm.serviceImpl;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import com.crm.Dao.UserDao;
import com.crm.entity.User;
import com.crm.service.UserService;
import com.util.MD5Utils;
@Transactional
public class UserServiceImpl implements UserService {
private Use... | true |
86128179facf72188931cfede43c0d70c8ad70ce | Java | tatianefpg/AlgoritmosEmJava | /src/SistemaBancario/Conta.java | UTF-8 | 532 | 2.953125 | 3 | [] | no_license |
package SistemaBancario;
/**
*
* @author Tatiane Paz
*/
public abstract class Conta {
protected double saldo;
public int conta;
public void sacar(double valor){
if(valor <= this.saldo){
this.saldo -= valor;
}
}
public void depositar(doubl... | true |
75fd9e3319bd1e7b5fd4fcbc1f867671ae320112 | Java | SunilDSK/SpringBootRDBMS | /src/main/java/com/sunilkumar/server/dao/UserDAO.java | UTF-8 | 504 | 2.03125 | 2 | [] | no_license | package com.sunilkumar.server.dao;
import com.sunilkumar.server.model.Users;
import com.sunilkumar.server.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
p... | true |
e8aff557e387aca54b6eb527a5663d7da557f8f5 | Java | cyberborean/rdfbeans | /src/test/java/org/cyberborean/rdfbeans/test/proxy/RDFBeanProxyTest.java | UTF-8 | 1,520 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package org.cyberborean.rdfbeans.test.proxy;
import static org.junit.Assert.*;
import java.util.Collection;
import org.cyberborean.rdfbeans.annotations.RDFBean;
import org.cyberborean.rdfbeans.annotations.RDFSubject;
import org.cyberborean.rdfbeans.test.RDFBeansTestBase;
import org.junit.Test;
/**
* RDFBeanProxyTe... | true |
6e4f98d57a4f065fe9505e3bbdc50fcdb28ba47a | Java | levplotkin/election-commission | /election/src/main/java/com/tikalk/fuse/kafka/streams/ElectionStreamsDemo.java | UTF-8 | 3,834 | 2.046875 | 2 | [] | no_license | package com.tikalk.fuse.kafka.streams;
import com.tikalk.fuse.kafka.streams.models.Vote;
import com.tikalk.fuse.kafka.streams.serdes.JsonPOJODeserializer;
import com.tikalk.fuse.kafka.streams.serdes.JsonPOJOSerde;
import com.tikalk.fuse.kafka.streams.serdes.JsonPOJOSerializer;
import org.apache.kafka.clients.consumer.... | true |
de71f1687d3003a3f7e1e978f3b272145289cda8 | Java | danyel/xsi | /ui/webapp/src/main/java/be/urpi/software/xsi/ui/webapp/context/util/ApplicationConfiguration.java | UTF-8 | 515 | 1.867188 | 2 | [] | no_license | package be.urpi.software.xsi.ui.webapp.context.util;
public class ApplicationConfiguration {
protected final String context;
protected final String dispatcherName;
protected final String mapping;
protected final int loadOnStartup;
ApplicationConfiguration(final Builder builder) {
builder.a... | true |
4f715b24411dcaca67f86418adc1e9c791320304 | Java | kojote-git/snake_java | /src/main/java/com/jkojote/snakegame/game/obj/envets/GameEvent.java | UTF-8 | 482 | 2.625 | 3 | [
"MIT"
] | permissive | package com.jkojote.snakegame.game.obj.envets;
import com.jkojote.snakegame.game.obj.base.GameObject;
public abstract class GameEvent {
private GameObject target;
private String description;
public GameEvent(GameObject target, String description) {
this.target = target;
this.description... | true |
aa583ae490f34c6f66ec587839c00f859ec56927 | Java | datahaki/retina | /src/main/java/ch/ethz/idsc/demo/jg/following/sim/FollowingSimulator.java | UTF-8 | 11,554 | 1.765625 | 2 | [] | no_license | // code by gjoel
package ch.ethz.idsc.demo.jg.following.sim;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.geom.Path2D;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Local... | true |
6aef8859af8b296d6b3dc504fe90dcbddc9ebfae | Java | ViktorVakareev/Java-Basic | /WhileLoop/exercise/Cake.java | UTF-8 | 1,032 | 3.46875 | 3 | [] | no_license | package WhileLoop.exercise;
import java.util.Scanner;
public class Cake {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int width = Integer.parseInt(scanner.nextLine());
int lenght = Integer.parseInt(scanner.nextLine());
int pieces = width * l... | true |
7bb984780f046a4e87a8ec5f19ad879172752210 | Java | zhonglinliu123/MyBlogCode | /JVM/classLoader类加载/MyClassLoader/src/main/java/com/zlin/jvm/myClassLoader/DifferentClassLoaderNameSpaceTest.java | UTF-8 | 1,606 | 3.390625 | 3 | [] | no_license | package com.zlin.jvm.myClassLoader;
import java.lang.reflect.Method;
public class DifferentClassLoaderNameSpaceTest {
public static void main(String[] args) throws Exception{
MyClassLoader myClassLoader1 = new MyClassLoader("myClassLoader1");
myClassLoader1.setLoadPath("E:\\zlin\\");
MyCl... | true |
8088eb410d528f0fe666e35d8d249376e388fc7e | Java | Jiuyoung/PixelS | /src/main/java/edu/xidian/pixels/VO/AuthorVO.java | UTF-8 | 789 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package edu.xidian.pixels.VO;
import java.io.Serializable;
import edu.xidian.pixels.Entity.User;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* AuthorVO
*/
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthorVO implements Ser... | true |
72d253c8cf26225bfac5c4d8c6f6bf07e63630ff | Java | svn2github/RefactorIT | /refactorit-core/src/main/java/net/sf/refactorit/source/html/HTMLEntity.java | UTF-8 | 1,852 | 2.390625 | 2 | [] | no_license | /*
* Copyright 2001-2008 Aqris Software AS. All rights reserved.
*
* This program is dual-licensed under both the Common Development
* and Distribution License ("CDDL") and the GNU General Public
* License ("GPL"). You may elect to use one or the other of these
* licenses.
*/
package net.sf.refactorit.s... | true |
63d4c1fbc06dd3b0c78e997a536fbfd1b83090f2 | Java | xavipedrals/FastracktAndroid | /app/src/main/java/com/grupo20/finapps/fastrackt/MapsActivity.java | UTF-8 | 8,117 | 2.3125 | 2 | [] | no_license | package com.grupo20.finapps.fastrackt;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Build;
import android... | true |
c1d20f7ae438138cc690593759872eb24aff3e2f | Java | ssreeniv0039/JavaBasics | /JavaBasics5/OctalToDecimal.java | UTF-8 | 392 | 3.640625 | 4 | [] | no_license | package com.learning.JavaBasics5;
public class OctalToDecimal {
public static void main(String[] args) {
System.out.println(octalToDecimal(65));
}
public static int octalToDecimal(int num) {
int decimalNumber = 0, i = 0;
while(num != 0) {
int remainder = num % 10;
decimalNumber += remainder * Mat... | true |
1dd4d1c97baa4e3320a2874d2f1fcb76081871ef | Java | Apache001/learnCode | /src/main/java/com/wpz/OfferQuestion/Question13.java | UTF-8 | 1,480 | 3.390625 | 3 | [] | no_license | package com.wpz.OfferQuestion;
/**
* @Author: wpz
* @Desctription:
* @Date: Created in 2019/12/8 14:51
*/
public class Question13 {
public static void main(String[] args) {
System.out.println(moveCount(4, 4, 5));
}
private static int moveCount(int m, int n, int k) {
if (k < 0 || m <= 0... | true |
ae2a9f146a6a2aa10a4625a9c599be35ed7900ad | Java | AbdullinAM/boolector-java | /src/test/java/org/jetbrains/research/boolector/FunctionDeclTest.java | UTF-8 | 1,455 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.jetbrains.research.boolector;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static junit.framework.TestCase.assertEquals;
public class FunctionDeclTest {
@Test
public void testAll() {
Btor btor = new Btor();
BitvecSort sort = BitvecSort.bitvecSort... | true |
65094bd4e1aa41423b0619fe8773dbba3d1a9b65 | Java | serujin/videoclub | /src/view/Filter.java | UTF-8 | 3,019 | 2.859375 | 3 | [] | no_license | package view;
import java.awt.Color;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax... | true |
3d6ad6cc0c991045ed92a557d0a566490bb0bf67 | Java | reggit3303/api-gateway | /api-gateway-biz/src/main/java/com/zhiyong/gateway/biz/service/ApiCountService.java | UTF-8 | 806 | 1.773438 | 2 | [] | no_license | package com.zhiyong.gateway.biz.service;
import com.github.pagehelper.PageInfo;
import com.zhiyong.gateway.common.model.PageRequest;
import com.zhiyong.gateway.dal.domain.ApiCount;
import com.zhiyong.gateway.dal.domain.AppCfg;
/**
* @ClassName ApiCountService
* @Description: Api调用统计接口
* @Author 毛军锐
* @Date 2020/1... | true |
9c35ead4317fb8c37b691017d05887b26bcf5660 | Java | Game-Designing/Custom-Football-Game | /sources/p005cm/aptoide/p006pt/store/view/p079my/C5059x.java | UTF-8 | 577 | 1.765625 | 2 | [
"MIT"
] | permissive | package p005cm.aptoide.p006pt.store.view.p079my;
import java.util.Comparator;
import p005cm.aptoide.p006pt.dataprovider.model.p009v7.store.Store;
/* renamed from: cm.aptoide.pt.store.view.my.x */
/* compiled from: lambda */
public final /* synthetic */ class C5059x implements Comparator {
/* renamed from: a */
... | true |
d6617dcf450d7a4a3a0aa67259359483c2484a3a | Java | tianxingshan/kongque-message | /src/main/java/com/kongque/entity/Message.java | UTF-8 | 1,885 | 2.453125 | 2 | [] | no_license | package com.kongque.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kongque.dto.MessageDto;
import com.kongque.util.UUIDUtil;
import java.util.Date;
public class Message {
/**
* 主键
*/
private String id;
/**
* 主题
*/
private String theme;
/**
* 内容
... | true |
de13e6150f64a0c0082df470120342decd791cc2 | Java | shoubhik/IQ-Java-Maven | /src/main/java/arrays/RemoveElementWithSum.java | UTF-8 | 2,179 | 4.15625 | 4 | [] | no_license | package arrays;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* ArrayList A, B, C are sorted int arraylists.
When A[i] + B[j] = C[k], you need to remove C[k] from ArrayList C.
Please implement code with O(N^2). Note that you are not allowed to use
additional data structures s... | true |
143071d528645ab64d2d7d55350fa6e19db3bc99 | Java | feery/Recipe | /app/src/main/java/com/fycedwin/chicken/ChickenEndPoint.java | UTF-8 | 1,129 | 2.5 | 2 | [] | no_license | package com.fycedwin.chicken;
import java.util.ArrayList;
import java.util.List;
public class ChickenEndPoint {
public class CallBack{
List<Recipe> recipe = new ArrayList<Recipe>();
public List<Recipe> getRecipe() {
return recipe;
}
public class Recip... | true |
1150b81026ade35b76a289478281d01c3c0dbe93 | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/com/brightcove/player/captioning/BrightcoveCaptionPropertiesFragment.java | UTF-8 | 9,590 | 1.796875 | 2 | [] | no_license | package com.brightcove.player.captioning;
import android.annotation.TargetApi;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceCategory;
import android.preference.PreferenceFragment;
import android.pref... | true |
fce78ef8b2c122eb5b228d8280db3c004c0e169d | Java | omidp/khaas | /khaas/app/src/main/java/com/omidbiz/khaas/manager/StringEntity.java | UTF-8 | 685 | 2 | 2 | [] | no_license | package com.omidbiz.khaas.manager;
import org.apache.http.Header;
import org.apache.http.message.BasicHeader;
import java.io.UnsupportedEncodingException;
/**
* @author : Omid Pourhadi omidpourhadi [AT] gmail [dot] com
*/
public class StringEntity extends org.apache.http.entity.StringEntity
{
public StringEnti... | true |
877c64d2aed83c74a7e603b18b29951f77b2a322 | Java | ivandeleao/ouroboros | /src/view/funcionario/FuncionarioCadastroView.java | UTF-8 | 61,745 | 2.171875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package view.funcionario;
import java.math.BigDecimal;
import view.funcionario.*;
import java.sql.Date;
import java.util.ArrayList;
im... | true |
cb2ad3b3de7a9613b366d567af85acbbadee7d11 | Java | Artur-Pastana/Java | /Cap17/Teste.java | UTF-8 | 2,580 | 3.953125 | 4 | [] | no_license | package Cap17;
import java.util.stream.IntStream;
public class Teste {
public static void main(String[] args) {
int[] valores = {3,10,6,1,4,8,2,5,6,7,25,24,28,26,27};
//exibe valores originais
System.out.println("valores originais");
IntStream.of(valores).forEach(valor -> System.... | true |
c58b2677a52b94e2afef0d2154fee25dcfb466c9 | Java | eastoneking/default | /eastone-common/src/main/java/eastone/common/strategy/AbstractStrategy.java | UTF-8 | 1,514 | 2.671875 | 3 | [] | no_license | /*
* create time: 2013年12月6日 下午11:35:02
* path: AbstractStrategy.java
* type: eastone.common.strategy.AbstractStrategy
*/
package eastone.common.strategy;
import eastone.common.GeneralParentObject;
/**
* 抽象策略.
* <p>
* <ul>
* <li>修改列表:
* <ol>
* <li>
* wangds@gma... | true |
58e9e519e4a5dbf28d29601f4d7e74c970aedf7b | Java | parinya2/ChapptersGPSServerSocket | /src/org/opengts/db/dmtp/ClientErrors.java | UTF-8 | 3,661 | 2.125 | 2 | [] | no_license | // ----------------------------------------------------------------------------
// Copyright 2007-2015, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | true |
6f377c75f29065451baca7efb7059289d23dff3c | Java | krypten/elearning-system | /Elearning/src/engine/LearningForest.java | UTF-8 | 3,762 | 3.109375 | 3 | [] | no_license | package engine;
import java.util.HashMap;
import authoring.LearningObject;
import authoring.LearningRepository;
import java.util.ArrayList;
public class LearningForest {
String databaseCourse = "DBMS";
HashMap<String, ArrayList<String>> domainModules = new HashMap<>();
HashMap<String, LearningGraph> graphList =... | true |
1edb4a278c33ffaa36f6e2d793f9dc34e78e842e | Java | yelong0216/yelong-support | /src/main/java/org/yelong/support/servlet/resource/response/responder/file/impl/jsp/DefaultJSPFileResourceResponder.java | UTF-8 | 5,909 | 2.046875 | 2 | [] | no_license | package org.yelong.support.servlet.resource.response.responder.file.impl.jsp;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletResponse;
im... | true |
9eeca45194b89c353364d49da60a9ddb306d831f | Java | LakshmiAnantharamakrishnan/Assignments | /week1/day2/DuplicateInArray.java | UTF-8 | 505 | 3.421875 | 3 | [] | no_license | package week1.day2;
public class DuplicateInArray {
public static void main(String[] args)
{
int[] arr = {14,12,13,11,15,14,18,16,17,19,18,17,20};
// length is a property to get the length of an array
// storing length of array in "len"
int len=arr.length;
int count=0;
for(int i=0;i<len;i++)... | true |
25dca26ba8c5a12bfe9a60d8dda16ee8201170dc | Java | smallgod/library-dbmodels | /src/main/java/com/library/datamodel/Json/CampaignInfo.java | UTF-8 | 3,854 | 2.03125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.library.datamodel.Json;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**... | true |
ca9b56bf5646d9f5f7514fdab5ef1e54d4bb5dd8 | Java | shivangraikar/Learning-OOPD | /DesignPatterns/src/com/tirthal/learning/design/patterns/creational/factorymethod/PaymentFactory.java | UTF-8 | 873 | 3.484375 | 3 | [
"MIT"
] | permissive | package com.tirthal.learning.design.patterns.creational.factorymethod;
/**
* Example implementation of Factory method pattern
*
* @author tirthalp
*
*/
public class PaymentFactory {
// Factory methods to return payment instance type
public static Payment getInstance(PaymentOptions option) {
re... | true |
5db027548d320797db9de9977ae00456543568a0 | Java | wuwei152/Dzbp | /app/src/main/java/com/md/dzbp/data/ScreenShotEvent.java | UTF-8 | 1,411 | 2.40625 | 2 | [] | no_license | package com.md.dzbp.data;
import java.io.Serializable;
/**
* Created by Administrator on 2017/9/13.
*/
public class ScreenShotEvent implements Serializable{
private int msgid;
private String deviceId;
private String data;
private boolean success;
private boolean isSend = false;//是否是发送截屏指令
p... | true |
cbdf9ea181d82859bbe32703f826e1e6b077c133 | Java | juarezgeraldo/infnet-bl3-pb-tp9 | /venturaHR_vaga/src/main/java/br/edu/infnet/venturahr_vaga/model/service/VagaService.java | UTF-8 | 2,877 | 2.1875 | 2 | [] | no_license | package br.edu.infnet.venturahr_vaga.model.service;
import br.edu.infnet.venturahr_vaga.model.domain.CriteriosVaga;
import br.edu.infnet.venturahr_vaga.model.domain.Empresa;
import br.edu.infnet.venturahr_vaga.model.domain.Vaga;
import br.edu.infnet.venturahr_vaga.model.domain.enumerations.StatusVaga;
import br.edu.in... | true |
743b9ddffd954f82850a066263de7514c356eeea | Java | RodrigoMelchior/Quantica | /quantica/src/main/java/br/com/web/pesquisas/enuns/TipoPropriedade.java | UTF-8 | 919 | 2.328125 | 2 | [] | no_license | package br.com.web.pesquisas.enuns;
import java.util.Arrays;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.google.common.collect.Maps;
public enum TipoPropriedade {
EMPRESA_DE_CAPITAL_ABERTO("1"),
EMPRESA_DE_CAPITAL_FECHADO... | true |
be73aaea20816f04dcc12ebc3ce0ddf8e7d277af | Java | soyoungboy/JFrame | /jframework/src/main/java/com/studio/jframework/ui/WindowHelper.java | UTF-8 | 625 | 2.125 | 2 | [] | no_license | package com.studio.jframework.ui;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
/**
* Created by Jason
*/
public class WindowHelper {
@SuppressLint("NewApi")
public static void lowerStatusBarVisi... | true |
271a22f69abef17ac9902dba898a47d88c4da96b | Java | nikstartester/Chef-s-club | /app/src/main/java/com/xando/chefsclub/compilations/upload/CompilationUploader.java | UTF-8 | 1,777 | 2.171875 | 2 | [] | no_license | package com.xando.chefsclub.compilations.upload;
import com.google.firebase.database.DatabaseReference;
import com.xando.chefsclub.compilations.data.CompilationData;
import com.xando.chefsclub.dataworkers.DataUploader;
import com.xando.chefsclub.dataworkers.ParcResourceByParc;
import com.xando.chefsclub.FirebaseRefere... | true |
62ab07e211d46e842fb422c87c6b3229b91899db | Java | Game-Designing/Custom-Football-Game | /sources/android/support/design/widget/C0293ga.java | UTF-8 | 1,603 | 1.84375 | 2 | [
"MIT"
] | permissive | package android.support.design.widget;
import android.support.p000v4.view.C0646w;
import android.view.View;
/* renamed from: android.support.design.widget.ga */
/* compiled from: ViewOffsetHelper */
class C0293ga {
/* renamed from: a */
private final View f1097a;
/* renamed from: b */
private int f1... | true |
cbc021d88f924239a6c533525909db1d58b11d53 | Java | bingoman123/exemplwjgl | /src/fcampos/rawengine3D/loader/LoaderMD2.java | UTF-8 | 21,884 | 2.359375 | 2 | [] | no_license | package fcampos.rawengine3D.loader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import fcampos.rawengine3D.MathUtil.*;
import fcampos.rawengine3D.model.*;
import fcampos.rawengine3D.resource.*;
import fcampos.rawengine3D.graficos.*;
import fcampos.rawengine3D.io.LEDataIn... | true |
1b376753d2be8cd2d45e987f55fccbe2c4f08788 | Java | Dima9km/MayakAlarm | /app/src/main/java/com/dima/mayakalarm/util/AlarmHelper.java | UTF-8 | 3,112 | 2.53125 | 3 | [] | no_license | package com.dima.mayakalarm.util;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.text.format.DateFormat;
import android.widget.Toast;
import com.dima.mayakalarm.R;
import com.dima.mayakalarm.model.Alarm;
import com.dima.... | true |
208db7da72fa738aaa4de3ce02a47ea863c7bc71 | Java | hoshinoa/TheAnimals | /BoardGameServerAndClient/src/Client/Client.java | UTF-8 | 6,277 | 2.671875 | 3 | [] | no_license | package client;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.... | true |
5821a3808842a156d8cbee51a0855e50b9bd8551 | Java | belimedo/Pcelinjak_application_git | /src/model/dto/InformacijeVrca.java | UTF-8 | 1,383 | 2.484375 | 2 | [] | no_license | package model.dto;
import java.sql.Date;
public class InformacijeVrca {
private int IdVrcanja;
private int IdDrustva;
private Date datumVrcanja;
private String vrstaMeda;
private double kolicinaMeda;
private String zaposleni;
public int getIdVrcanja() {
return IdVrcanja;
}
public void setIdVrcanja(int ... | true |
728146b77a4350c2c6330b3066adb56aa5e90629 | Java | RenataKellyPaturi/smartpatient | /src/br/com/fafica/smartpacient/servlets/LogoutServLet.java | UTF-8 | 1,878 | 2.234375 | 2 | [] | no_license | package br.com.fafica.smartpacient.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.... | true |
4da2318b943de0b94d0693e1e71fccd182e02761 | Java | anniyanvr/light-oauth2 | /token/src/main/java/com/networknt/oauth/token/helper/HttpAuth.java | UTF-8 | 2,253 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.networknt.oauth.token.helper;
import io.undertow.server.HttpServerExchange;
import static java.nio.charset.StandardCharsets.UTF_8;
public class HttpAuth {
private boolean headerAvailable;
private boolean basicAuth = false;
private boolean invalidCredentials;
private String clientId;
p... | true |