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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e0e56821e6b7d632ee3b03fc6aee37ea98d9c00d | Java | sanjeet98/OnlineMedicineShoppingSystem | /Back-end/src/main/java/com/medicineshopping/demo/controller/CartItemController.java | UTF-8 | 2,500 | 2.28125 | 2 | [] | no_license | package com.medicineshopping.demo.controller;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVaria... | true |
098864c0ba13c73a003954f849395c379fba0d06 | Java | arttheist/info_exercise | /test/exercise_06/StackTest.java | UTF-8 | 602 | 3.09375 | 3 | [] | no_license | package test.exercise_06;
import static org.junit.Assert.*;
import org.junit.Test;
import exercise_06.*;
public class StackTest {
private Stack<Integer> stack = new Stack<Integer>();
@Test
public void testPushNPop() throws StackUnderflow {
stack.push(1);
stack.push(2);
stack.push(3);
ass... | true |
cfa300a68e349cabb27be925903028f22503d4e6 | Java | mpresinal/truelogicsoftware-challenge | /player-svc/src/main/java/com/presinal/challenge/truelogicsoftware/playersvc/entity/Player.java | UTF-8 | 1,802 | 2.546875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.presinal.challenge.truelogicsoftware.playersvc.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fast... | true |
4fb1f5dca7ec8b1a8fef79196a9f28f885b67be4 | Java | MewBenyapa/Drawing_Board | /Work_ปี2/Turnstile/src/StateUnlocked.java | UTF-8 | 431 | 3.125 | 3 | [] | no_license | public class StateUnlocked extends State {
public StateUnlocked(Turnstile turnstile) {
super(turnstile);
}
@Override
public void push() {
System.out.println("Turnstile is pushed, now it becomes locked.");
StateLocked locked = new StateLocked(turnstile);
turnstile.setState(locked);
}
@Override
public v... | true |
d6f2bc6fb4c0bd3402d8f5177122e2d5ef6dfb03 | Java | danielVidela/Java_intro | /daniel/1_guia_ java/Ejercisios _Daniel/src/Quince_Menu.java | UTF-8 | 2,202 | 3.390625 | 3 | [] | no_license |
import java.util.Scanner;
/*
* 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 Dany
*/
public class Quince_Menu {
/**
* @param args the comman... | true |
448a43659b01b8940532b8256dddfbc7dc2c3d6d | Java | Arthur0088/java_estrutura_decisao | /exerciciosdecomandoscondicionais_7.java | WINDOWS-1252 | 806 | 3.40625 | 3 | [] | no_license | package primeiraaula;
import java.util.Scanner;
public class exerciciosdecomandoscondicionais_7 {
public static void main(String[] args) {
String nome1, nome2;
int idade1, idade2;
Scanner leitor=new Scanner(System.in);
System.out.println("digite o primeiro nome");
nome1=leitor.nextL... | true |
fa0be5d87f3b0cf5e65202a56f7ee0a609ca592c | Java | MesakiiYui/LeetCode | /src/leetcode/Easy/String/String40.java | UTF-8 | 1,667 | 3.890625 | 4 | [
"MIT"
] | permissive | package leetcode.Easy.String;
/**
* Created by tiejin on 8/3/2018.
*/
//最长公共前缀
// 编写一个函数来查找字符串数组中的最长公共前缀。
//
// 如果不存在公共前缀,返回空字符串 ""。
//
// 示例 1:
//
// 输入: ["flower","flow","flight"]
// 输出: "fl"
// 示例 2:
//
// 输入: ["dog","racecar","car"]
// 输出: ""
// 解释: ... | true |
109dd7815b56f57458e08beb8d80fec696a97bfd | Java | IrynaMileiko/AoD-Microservices | /adminpanel-service/src/main/java/com/angelsofdeath/adminpanel/repository/UserRepository.java | UTF-8 | 4,047 | 2.25 | 2 | [] | no_license | package com.angelsofdeath.adminpanel.repository;
import com.angelsofdeath.adminpanel.entity.Role;
import com.angelsofdeath.adminpanel.entity.User;
import javax.management.relation.Relation;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.... | true |
8fb2bc837142e105869847cb2c56f46a6b8e1a3d | Java | AbseliamovEnver/javadevelopersql | /src/main/java/com/abseliamov/cinema/controller/GenreController.java | UTF-8 | 416 | 2.3125 | 2 | [] | no_license | package com.abseliamov.cinema.controller;
import com.abseliamov.cinema.model.Genre;
import com.abseliamov.cinema.service.GenreService;
import java.util.List;
public class GenreController {
private GenreService genreService;
public GenreController(GenreService genreService) {
this.genreService = genr... | true |
9e5e307c6587f25e54a2111673d171dcdb3f802f | Java | wenyuguang/base-data-structure | /src/main/java/com/jony/symbol/SymbolTable.java | UTF-8 | 2,622 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | package com.jony.symbol;
/**
* 符号表
*/
public class SymbolTable<K, V> {
private Node<K, V> head;
private int size;
public SymbolTable() {
this.head = new Node<>(null, null, null);
this.size = 0;
}
public int size(){
return size;
}
public boolean... | true |
50a8f3fd3b71c0acd7e1f0749d4a947a29e8a5ca | Java | Vladimir2308/ITMO-task | /lecture14/CryptFile.java | UTF-8 | 1,417 | 3.328125 | 3 | [] | no_license | package lecture14;
import java.io.*;
import java.security.SecureRandom;
public class CryptFile {
private static int bufferLength = 1024;
private static byte[] key = getNextRandomString(bufferLength);
private static void encode(File source, File dest) throws IOException {
FileInputStream ins;
... | true |
91786519d1e48cadd8bd32530b162b9d931c5d75 | Java | tenzingk/ICS3U | /Backwards/src/Kelsang/Sentence.java | UTF-8 | 438 | 2.8125 | 3 | [] | no_license | package Kelsang;
import java.util.Scanner;
public class Sentence {
static Scanner sc=new Scanner(System.in);
public static void main(String[]args){
System.out.println("Write something ");
String[]sentence=sc.nextLine().split(" ");
for(int i=0;i<sentence.length;i++){
for(int j=sentence[i].len... | true |
882fc6090bb1a17d36d60acd08b7128ea170a08f | Java | JetBrains/MPS | /core/openapi/source/org/jetbrains/mps/openapi/module/SearchScope.java | UTF-8 | 5,532 | 2.296875 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2003-2017 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 |
72d2bb9dcb0e5fd96c5968bdf265c52d32363a70 | Java | moon928/MyAlbum-Boot | /myalbum-service-tools/src/main/java/cn/yan_wm/myalbum/service/tools/service/impl/RedisServiceImpl.java | UTF-8 | 839 | 2.125 | 2 | [] | no_license | package cn.yan_wm.myalbum.service.tools.service.impl;
import cn.yan_wm.myalbum.service.tools.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import java.util.concurrent.TimeUni... | true |
740ad31de774343af4893a3a4e9fd516e38042a2 | Java | Marwzoor/BattleArena | /src/mc/alk/arena/objects/YamlSerializable.java | UTF-8 | 210 | 1.710938 | 2 | [] | no_license | package mc.alk.arena.objects;
import org.bukkit.configuration.ConfigurationSection;
public interface YamlSerializable {
Object yamlToObject(ConfigurationSection cs, String value);
Object objectToYaml();
}
| true |
86186302b1944de62c111f777cdae18dcf94221a | Java | xy7313/Alg-java-01 | /src/com/algorithm10/algorithm01.java | UTF-8 | 542 | 3.21875 | 3 | [] | no_license | package com.algorithm10;
public class algorithm01 {
public static int CONS = 100;
public static void main(String[] args) {
// TODO Auto-generated method stub
FizzBuzz();
}
public static void FizzBuzz(){
System.out.println("from 1--"+CONS);
for(int i = 0; i<CONS;i++){
if(i % 3 == 0 && i % 5 == 0){
Sy... | true |
4a9f2a8a17eacba0772bb5863f1706d06294108a | Java | ngsmrk/scjp | /src/scjp/ArrayTest.java | UTF-8 | 708 | 3.21875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package scjp;
/**
*
* @author Angus
*/
public class ArrayTest {
public static void main(String[] args) {
int Array1[] = {3, 6, 2, 9, 5, 8};
int Array2[] = Array1;
int Array3[] = Array2;
... | true |
a43029d01f984cce405da0f5383b07bbb4422917 | Java | bingely/God | /app/src/main/java/com/meetrend/haopingdian/activity/CantactsListActivity.java | UTF-8 | 1,820 | 2.078125 | 2 | [] | no_license | package com.meetrend.haopingdian.activity;
import java.util.ArrayList;
import java.util.List;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.WindowManager;
import com.meetrend.haopingdian.R;
import com.meetrend.haopingdian.fragm... | true |
ce12f5a31bb2e9ebbeb284621ff3d8323b84420d | Java | yudeshui123123/timedtask2 | /src/main/java/com/example/timedtask2/service/impl/SysJobRunner.java | UTF-8 | 1,509 | 2.125 | 2 | [] | no_license | package com.example.timedtask2.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.timedtask2.common.CronTaskRegistrar;
import com.example.timedtask2.common.SchedulingRunnable;
import com.example.timedtask2.entity.MyTimedTask;
import com.example.timedtask2.service.IMyTi... | true |
bed0d59e502f5224e69bb5b4361de2bc28ecccbe | Java | stormsign/YourCompany_student | /app/src/main/java/com/miuhouse/yourcompany/student/presenter/interf/ITwitterPresenter.java | UTF-8 | 555 | 1.726563 | 2 | [] | no_license | package com.miuhouse.yourcompany.student.presenter.interf;
/**
* Created by kings on 12/28/2016.
*/
public interface ITwitterPresenter {
void getSchoolTwitterList(String schoolTeacherId, String schoolId, String contentType,
long classes,
int page, int pageSize);
/**
* contentType String... | true |
22d38ebb15ea4fa072be8d64178187549c397b52 | Java | cagataybaydar/Java-React-Kamp | /Homework5/src/Homework5/Main.java | ISO-8859-9 | 703 | 2.234375 | 2 | [] | no_license | package Homework5;
import Homework5.business.abstracts.UserService;
import Homework5.business.concretes.UserManager;
import Homework5.business.concretes.VerificationUserManager;
import Homework5.core.concretes.MainAdapter;
import Homework5.dataAccess.concretes.HibernateUserDao;
import Homework5.entities.concret... | true |
6cd9bed50da76512dabd8436e20a0766847a80c7 | Java | Janix520/featuresExtractor | /src/main/java/model/AudioShortFeatures.java | UTF-8 | 3,164 | 2.953125 | 3 | [] | no_license | package model;
import model.enums.StatisticalMeasureType;
import java.io.Serializable;
/**
* Data class that holds the 71 audio features extracted from one raw audio source
*/
public class AudioShortFeatures implements Serializable {
//1
/**
* The rate of sign-changes of the signal during the duratio... | true |
e20d44c0904631ff55b3a9abba84975f74c3379b | Java | hasanmumcu/DERE | /src/UserInterface.java | UTF-8 | 3,640 | 3.078125 | 3 | [
"MIT"
] | permissive | /*
User interface class is used by Controller and Management Classes.
This class can write outputs in different styles and colors.
And it can take input from user.
It uses Enigma Console.
*/
import enigma.core.Enigma;
import enigma.console.Console;
import enigma.console.TextAttributes;
import java.awt.Color;
... | true |
2f09019ecae243c55c29d887c15858bf0269e4cc | Java | ignaszak/java-socialnetwork | /src/main/java/net/ignaszak/socialnetwork/service/media/MediaServiceImpl.java | UTF-8 | 7,226 | 2.09375 | 2 | [] | no_license | package net.ignaszak.socialnetwork.service.media;
import net.ignaszak.socialnetwork.domain.Media;
import net.ignaszak.socialnetwork.domain.Post;
import net.ignaszak.socialnetwork.domain.User;
import net.ignaszak.socialnetwork.exception.MediaUploadException;
import net.ignaszak.socialnetwork.model.image.Image;
import n... | true |
d5085039c873901b46e098f2a1cace7a32ee8b7e | Java | hgo/config | /src/main/java/config/Config.java | UTF-8 | 2,404 | 2.859375 | 3 | [
"MIT"
] | permissive | package config;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Config {
/**
* Default properties, without environment prefixes
* @see {@link config.Config#parse(String, Properties)} method
*/
public static Properties parse(Properties p... | true |
01b8aa09b03ef43532f4db381eebf0e41c14651a | Java | GB-2449/GBManagementSystem | /src/gb/CompanyGB.java | UTF-8 | 1,684 | 2.84375 | 3 | [] | no_license | package gb;
import java.util.Scanner;
import exception.EmailFormatException;
public class CompanyGB extends GB{
protected String companyEmail;
public CompanyGB(GBKind kind){
super(kind);
}
public void getUserInput(Scanner input) {
setGBName(input);
setGBPhone(input);
setGBEmailwithY... | true |
50f74d56d7ba5e7abb8d39f7c469b68b0b28a131 | Java | samtuhka/Javalabra | /Blackjack/src/main/java/blackjack/gui/kuuntelijat/TuplaajaKuuntelija.java | UTF-8 | 813 | 2.5 | 2 | [] | no_license | package blackjack.gui.kuuntelijat;
import blackjack.domain.BlackjackPeli;
import blackjack.gui.Pelipaneeli;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Vastaa tuplaus nappulan toiminnasta.
* Kun pelaaja painaa nappulaa, pelaaja tuplaa ja "painaa" jäämin nappulaa.
*/
public class... | true |
5f3a7f8b07d94934849f37ad31ec927868c79651 | Java | mosthm/OnlineShop | /app/src/main/java/com/example/alifatemeh/onlineshop/Models/Products.java | UTF-8 | 1,780 | 2.203125 | 2 | [] | no_license | package com.example.alifatemeh.onlineshop.Models;
import com.google.gson.annotations.SerializedName;
public class Products {
@SerializedName("_id")
private String Id;
private String name;
private String description;
private String photoUrl;
private String price;
private String rating;
... | true |
1cbe021e12c1b6a9f9e7a5a6c14a04441f05fc0d | Java | pendd/traceability | /src/main/java/com/hvisions/mes/domain/EquipmentSpi.java | UTF-8 | 473 | 1.664063 | 2 | [] | no_license | package com.hvisions.mes.domain;
import lombok.Data;
@Data
public class EquipmentSpi {
/**
*
*/
private Integer id;
/**
*
*/
private String modelName;
/**
*
*/
private String lineNumber;
/**
*
*/
private String boardStatus;
/**
*
... | true |
5d7c78a09527a08206594681545eceb83e5b3d09 | Java | BruceHurrican/studydemo | /src/com/bruce/study/demo/studydata/demos60/button_project/ButtonProject.java | UTF-8 | 3,733 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* BruceHurrican
* Copyright (c) 2016.
* 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 o... | true |
c356659493a3d6e92d52e914fcd2110dcc84b836 | Java | TheDevilfromHeaven/LeetCode | /Java/Reverse-Bits/src/ReverseBits.java | UTF-8 | 701 | 3.296875 | 3 | [] | no_license | public class ReverseBits {
/*
* 作者:LeetCode-Solution
链接:https://leetcode-cn.com/problems/reverse-bits/solution/dian-dao-er-jin-zhi-wei-by-leetcode-solu-yhxz/
来源:力扣(LeetCode)
* 官方解法一。
* */
// you need treat n as an unsigned value
public int reverseBits(int n) {
int rev = 0;
... | true |
9676bdf2efb8eaf124ff4a80c42b531bb34562e2 | Java | laotang123/JavaStudy | /src/main/java/com/golaxy/indi/chapter10/Event.java | UTF-8 | 711 | 3.125 | 3 | [] | no_license | package com.golaxy.indi.chapter10;
/**
* @author :ljf
* @date :2020/11/14 22:07
* @description:模板方法,留出action方法进行扩展
* @modified By:
* @version: $ 1.0
*/
public abstract class Event {
private long eventTime;
private final long delayTime;
public Event(long delayTime) {
this.delayTime = delayTim... | true |
37487f75e1b91c50ccffe444b81476eef63c614e | Java | jaydeep121/javapracticecode | /src/com/innovaccer/assignment/Interface/Int2.java | UTF-8 | 136 | 2.328125 | 2 | [] | no_license | package com.innovaccer.assignment.Interface;
public interface Int2 {
public default void show() {
System.out.println("Int2");
}
}
| true |
d0e415a427c110261aa996cc75404a9ecdfa40d3 | Java | alysondantas/TempoEmSD | /src/br/uefs/ecomp/tempoEmSD/controller/threads/ThreadConexao.java | ISO-8859-1 | 3,779 | 2.734375 | 3 | [] | no_license | package br.uefs.ecomp.tempoEmSD.controller.threads;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.regex.Pattern;
... | true |
f7ba3eba7e815c67add8b0a85c8b63d553df036d | Java | rakeshyadav183/Material-Design-Examples | /app/src/main/java/com/yaashvisoftware/materialdesignexamples/activities/RevealEffectActivity.java | UTF-8 | 3,773 | 2.515625 | 3 | [] | no_license | package com.yaashvisoftware.materialdesignexamples.activities;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.design.widget.FloatingActionButton;
import android... | true |
141cb1bfdd2b69d37452f94cd0284fcaec1d8b74 | Java | halycon/transactions-statistics-n26 | /src/test/java/com/n26/service/TransactionStatisticsServiceTest.java | UTF-8 | 2,722 | 2.5625 | 3 | [] | no_license | package com.n26.service;
import com.n26.domain.Transaction;
import com.n26.domain.TransactionStatistics;
import com.n26.repository.TransactionRepository;
import com.n26.repository.impl.TransactionInMemoryRepository;
import com.n26.service.impl.TransactionStatisticsService;
import org.junit.Assert;
import org.junit.Bef... | true |
618d3af9888ba13fa25254139ff17c6ff09730fc | Java | thomasbroussard/2020s1-fund | /BankAccountSystem/src/fr/epita/bankaccount/launcher/Launcher.java | UTF-8 | 1,503 | 3.453125 | 3 | [] | no_license | package fr.epita.bankaccount.launcher;
import java.util.Scanner;
import fr.epita.bankaccount.datamodel.Customer;
import fr.epita.bankaccount.datamodel.SavingsAccount;
public class Launcher {
public static void main(String... args) {
Scanner scanner = new Scanner(System.in);
Customer customer = new Customer();
... | true |
b797d73f83cf9077bc1ae954d1b2b3553f1184e3 | Java | maoyadoudou/Campus-management-system-using-SSH | /myweb/src/com/mydd/service/CourseService.java | UTF-8 | 465 | 1.789063 | 2 | [] | no_license | package com.mydd.service;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import com.mydd.domain.Course;
public interface CourseService {
String saveCourse(Course course, String curriculumId);
String deleteCourse(Course course, String curriculumId);
List<Course> findAllCo... | true |
b3e1fce5cdcc04d6e4fdc3018c52046e15a1ed4f | Java | Azure/azure-event-hubs-for-kafka | /tutorials/oauth/java/managedidentity/producer/src/main/java/CustomAuthenticateCallbackHandler.java | UTF-8 | 3,208 | 2 | 2 | [
"MIT"
] | permissive | //Copyright (c) Microsoft Corporation. All rights reserved.
//Licensed under the MIT License.
import java.io.IOException;
import java.net.URI;
import java.text.ParseException;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurren... | true |
2e032519f2b2939b05b834615800dd3b004bb80a | Java | accountos/java | /src/main/java/com/github/java/learning/dataStructure/array/MaxMinInArray.java | UTF-8 | 1,101 | 3.84375 | 4 | [] | no_license | package com.github.java.learning.dataStructure.array;
public class MaxMinInArray {
/**
* 返回最大值 index
*/
public static int max(int[] arr) {
if (null == arr || 0 == arr.length) {
return -1;
}
int max = Integer.MIN_VALUE;
int index = -1;
for (int i =... | true |
98958caf370de7fa755354bd793cda7dd78db535 | Java | hazychill/NicoCacheMod | /src/java/dareka/ProcessorEntry.java | UTF-8 | 598 | 2.5 | 2 | [] | no_license | package dareka;
import java.util.regex.Pattern;
import dareka.processor.Processor;
public class ProcessorEntry {
private String method;
private Pattern uri;
private Processor processor;
public ProcessorEntry(String method, Pattern url, Processor processor) {
this.method = method;... | true |
9ba73524588e1914a5d8e1f442c6b4f26c39282b | Java | hiteshjoshi1/algos | /com/hitesh/learn/problemsolving/old/Temp.java | UTF-8 | 610 | 2.8125 | 3 | [] | no_license | package com.hitesh.learn.problemsolving.old;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
public class Temp{
public static String test = "Teri Galiyan galiyan";
public static void main(String [] args) throws IOException
{
ArrayList<String> arrayList ... | true |
42f60158b3ae1f61db7da4656f24faae16a34a7a | Java | liupeng110/sds | /app/src/main/java/com/sds/android/cloudapi/ttpod/data/SearchSinger.java | UTF-8 | 300 | 1.8125 | 2 | [] | no_license | package com.sds.android.cloudapi.ttpod.data;
import com.b.a.a.c;
import com.sds.android.cloudapi.ttpod.data.SearchData.SingerData;
public class SearchSinger extends SingerData {
@c(a = "pic_url")
private String mPicUrl;
public String getPicUrl() {
return this.mPicUrl;
}
}
| true |
284c2d86a7081e6739e1ce0e368d851dc7745c94 | Java | 1542087/T3DV | /source/Bank/src/Serlet/loginserlet.java | UTF-8 | 1,542 | 2.15625 | 2 | [] | no_license | package Serlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class loginserlet
*/
@WebSer... | true |
c2113e6e2918d4dd7ee555ad2e80170840f5e2ab | Java | Lulucy1587/java | /Complex.java | UTF-8 | 168 | 2.65625 | 3 | [] | no_license |
public class Complex{
float p,q;
Complex(float a,float b,float c,float d) {
p=a+c;
q=b+d;
}
float add2() {
return p;
}
float add3() {
return q;
}
}
| true |
8edf9fe6cbdc0d1e542292cccd6314d2c7c6f781 | Java | productasaservice/step-android-service | /app/src/main/java/com/discover/step/ui/BadgeDialog.java | UTF-8 | 2,598 | 2.375 | 2 | [
"CC0-1.0"
] | permissive | package com.discover.step.ui;
import android.app.Activity;
import android.app.Dialog;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;
import com.discover.step.R;
i... | true |
daa349a62f3135dfe4bd3ef92c7c737c6aa605af | Java | jung-yoon-Park/Spring-rabbitMQ | /src/main/java/config/ProducerConsumerConfig.java | UTF-8 | 2,338 | 2.40625 | 2 | [] | no_license | package config;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.a... | true |
1b614e83a212e81dde05173ed70a48978623ca85 | Java | zhanght86/HSBC20171018 | /LIS/sinosoft-parents/lis-business/src/main/java/com/sinosoft/lis/bq/PEdorCDDetailBL.java | UTF-8 | 23,114 | 1.695313 | 2 | [] | no_license | package com.sinosoft.lis.bq;
import org.apache.log4j.Logger;
/**
* <p>Title: Web 业务系统</p>
* <p>Description: 客户地址信息变更BL</p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: Sinosoft</p>
* @author Nicholas
* @version 1.0
*/
import com.sinosoft.lis.bl.LPAddressBL;
import com.sinosoft.lis.db.LCAppntDB;
import... | true |
db539b97224c9545246946fce91f6dfdec91cd7b | Java | pawelbojnowski/Spring-boot-JSF | /src/main/java/pl/pb/web/spring/jsf/jsf/controllers/ContactBean.java | UTF-8 | 3,131 | 2.234375 | 2 | [] | no_license | /**
* (C) 2013-2014 Stephan Rauh http://www.beyondjava.net
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | true |
2497acfda400db77e24421c99d16455808b5790d | Java | java-zhangxuyang/young-story | /src/main/java/com/young/model/Box.java | UTF-8 | 3,171 | 2.0625 | 2 | [] | no_license | package com.young.model;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class Box {
private Integer id;
private String name;
private Integer type;
private BigDecimal price;
private Integer status;
private Double useDuration;
priva... | true |
5b41a28b1e9e037c45d418e533289dea4330dfa9 | Java | mustafa0770/java-programming | /src/day15_logicalops_switch_ternary/CitySelector.java | UTF-8 | 1,662 | 3.84375 | 4 | [] | no_license | package day15_logicalops_switch_ternary;
public class CitySelector {
public static void main(String[] args) {
String city = "London";
//London or Seattle
if (city.equals("London") || city.equals("Seattle")) {
System.out.println("Willing to relocate to " + city);
} else {... | true |
e929f5d92d69092a23d5c01db1002b0787b1a748 | Java | Natsudark13/Prueba2 | /src/main/java/com/poo/bieninmueble/logicaDeNegocios/Cliente.java | UTF-8 | 8,183 | 2.5 | 2 | [] | no_license | package com.poo.bieninmueble.logicaDeNegocios;
import com.poo.bieninmueble.dao.DaoCliente;
import com.poo.bieninmueble.dao.IDao;
import com.poo.bieninmueble.servicios.Email;
import com.poo.bieninmueble.servicios.GeneradorContrasena;
import com.poo.bieninmueble.servicios.GestorXML;
import java.io.IOException;
import ja... | true |
952b20bff4e82cf2e44d700f65080d4d8b7984ec | Java | baiyang0423/spring-layui | /web-top/src/main/java/com/bw/cultivate/webtop/ai/authitor/ISysFunctionApp.java | UTF-8 | 477 | 1.757813 | 2 | [] | no_license | package com.bw.cultivate.webtop.ai.authitor;
import com.bw.cultivate.webtop.ai.authitor.DTO.Aoutes;
import com.bw.cultivate.webtop.ai.authitor.DTO.SysFunctionDTO;
import com.bw.cultivate.webtop.wsg.authitor.VO.SysFunctionVO;
import java.util.List;
public interface ISysFunctionApp {
List<SysFunctionDTO> sele... | true |
dc5ca6e6fd1f201508383e38eff134040beda563 | Java | SarahFLestari/Clothing-Vendor | /src/Controller/ControllerInputJasa.java | UTF-8 | 1,625 | 2.15625 | 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 Controller;
import Model.Aplikasi;
import View.ViewInputJasa;
import java.awt.HeadlessException;
import java.awt.eve... | true |
a34fe904a547ef3352896a9e3886fe115107778e | Java | Abner2672502038/xiaoxiongmusic | /src/com/hrbust/bean/Song.java | UTF-8 | 3,317 | 2.3125 | 2 | [] | no_license | package com.hrbust.bean;
public class Song {
private int id;
private String songName;
private String singerName;
private int classifyId;
private int vip;
private String songFile;
private String pictureFile;
private String songkey;
private String introduction;
public Song() {
... | true |
1210c2eaa207d04f802939a160ede537fdc62803 | Java | camilonar/WTW | /app/src/main/java/epiphany_soft/wtw/Negocio/Emisora.java | UTF-8 | 373 | 2.546875 | 3 | [] | no_license | package epiphany_soft.wtw.Negocio;
/**
* Created by Camilo on 11/04/2016.
*/
public class Emisora {
private int id;
private String nombre;
public Emisora(int id,String nombre){
this.id=id;
this.nombre=nombre;
}
public int getId(){
return id;
}
@Override
publ... | true |
5467088e1dd760520e21012df330594c9a30482a | Java | allin58/JavaWebDev | /final/src/main/java/by/taining/cryptomarket/dao/connectionpool/BasicConnectionPool.java | UTF-8 | 5,733 | 3.03125 | 3 | [] | no_license | package by.taining.cryptomarket.dao.connectionpool;
import by.taining.cryptomarket.exception.PersistentException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.concurrent.Arra... | true |
9a11ed627893d2371852745c9ed62cd2a9a5b52f | Java | andypliu/spotify-streamer | /app/src/main/java/com/tianyu/android/spotifystreamer/FetchTrackListener.java | UTF-8 | 282 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package com.tianyu.android.spotifystreamer;
import com.tianyu.android.spotifystreamer.com.tianyu.android.spotifystreamer.data.Track;
import java.util.List;
/**
* Created by andy on 7/12/15.
*/
public interface FetchTrackListener {
void processFinish(List<Track> result);
}
| true |
854c7e7261e518cacffe76a20974bb45f3d89841 | Java | androidYun/Rxjava | /app/src/main/java/com/guiyunli/rxjava/testproxy/ProxyActivity.java | UTF-8 | 3,866 | 2.625 | 3 | [] | no_license | package com.guiyunli.rxjava.testproxy;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import com.guiyunli.rxjava.R;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* ... | true |
ae5e4b55cae884b096d507b2cc1c919e66dedbdd | Java | Karthic1301/kk | /src/main/java/com/ast/HealthCare/Service/PrescriptionChildService.java | UTF-8 | 957 | 1.9375 | 2 | [] | no_license | package com.ast.HealthCare.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ast.HealthCare.Dao.PrescriptionChildDao;
import com.ast.HealthCare.Pojo.PrescriptionChildPojo;
import com.ast.HealthCare.Pojo.Prescriptio... | true |
3c1f5078e6c966f88bf5772b2a02ccbe481ce4e5 | Java | avelvi/vcp | /src/main/java/com/aivlev/vcp/exception/CodeExpiredException.java | UTF-8 | 297 | 1.898438 | 2 | [] | no_license | package com.aivlev.vcp.exception;
/**
* Created by aivlev on 5/17/16.
*/
public class CodeExpiredException extends ApplicationException {
private static final long serialVersionUID = -3817048861495633663L;
public CodeExpiredException(String message) {
super(message);
}
}
| true |
f0f8a0f9992f0983e98bff21b600d48d53232e63 | Java | Prarthana2492/Retrofit-Mvvm | /app/src/main/java/com/FarmPe/Oxkart/Fragment/SettingFragment.java | UTF-8 | 14,557 | 1.5625 | 2 | [] | no_license | package com.FarmPe.Oxkart.Fragment;
import android.app.Dialog;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.RecyclerView;
import androi... | true |
188f2c6218bafd0e598bc6499bf9dd4666c2cff5 | Java | jamiepg1/xtend-contrib | /src/main/java/de/oehme/xtend/contrib/Synchronization.java | UTF-8 | 537 | 2.390625 | 2 | [
"MIT"
] | permissive | package de.oehme.xtend.contrib;
import org.eclipse.xtext.xbase.lib.Functions.Function1;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
public class Synchronization {
private Synchronization() {
}
public static <T> void synchronize(T lockedObject, Procedure1<? super T> block) {
synchronized (lockedOb... | true |
4fe6a9b8fed734299174bb2e890a93002d18ae48 | Java | jikuja/cybersecuritybase-project | /src/main/java/sec/project/controller/UnsubscribeController.java | UTF-8 | 1,235 | 2.21875 | 2 | [] | no_license | package sec.project.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... | true |
994a99f676ca897f7944845767a2b5cd972d2619 | Java | d1l83r7/idisco | /UParty_estilos/src/es/uparty/activity/MenuActivity.java | ISO-8859-1 | 1,147 | 2.125 | 2 | [] | no_license | package es.uparty.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import es.uparty.R;
public class MenuActivity extends GPSGenericActivity {
private Button btBuscaDiscotecaCerca = null;
pr... | true |
d1b2cdb8305769c2fa8b35acf8bbcca91df3e00e | Java | GarryX/webmall | /src/main/java/com/athome/webmall/home/controllers/HomeAction.java | GB18030 | 2,294 | 2.3125 | 2 | [] | no_license | package com.athome.webmall.home.controllers;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.athome.webmall.category.entities.FirstCategory;
import com.athome.webmall.category.services.FirstCategoryService;
import com.athome.webmall.category.services.SecondCategory... | true |
14632f8dd5b4d356cbc08737942f698a8f93e073 | Java | anoddnumber/real_practice | /src/leetcode/InOrderTraversal.java | UTF-8 | 3,116 | 3.765625 | 4 | [] | no_license | package leetcode;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
/**
* Given a binary tree, return the inorder traversal of its nodes' values. Note:
* Recursive solution is trivial, could you do it iteratively?
*
*/
public class InOrderTraversal {
// Definition for binary tree
pub... | true |
3428c0c6e24124e317838c61a4dff9265de91ec2 | Java | hukeling/wfj | /wfj_front/src/shop/product/action/ProductAttributeAction.java | UTF-8 | 10,673 | 1.976563 | 2 | [] | no_license | package shop.product.action;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import shop.pro... | true |
098bac9eddbba1b1a261dbf2c11db87383cd93b8 | Java | ricardobrg/publicaProjetos | /grupo3-sprint3/tags/sprint6/src/main/java/view/payroll/PayrollMainMenu.java | ISO-8859-1 | 1,410 | 2.46875 | 2 | [] | no_license | package view.payroll;
import java.util.ArrayList;
import com.google.gson.JsonObject;
import controller.PayrollController;
import view.AbstractMenu;
import view.console.Console;
/***
* PayrollMainMenu<br>
* Class to redirect user to choice menu.
*
* @version 1.0.0
* @author Giovanni Bruno Buzzi <buzzi.giova... | true |
06d82e752f98e1e1d1369a9298fee0fe03c4d897 | Java | kkobziev/SpringLibrary | /src/main/java/ua/kobzev/springlibrary/dao/impl/GenreDAOImpl.java | UTF-8 | 713 | 2.25 | 2 | [] | no_license | package ua.kobzev.springlibrary.dao.impl;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import ua.kobzev.springlibrary.dao.interfaces.GenreDAO;
import ... | true |
17a5bc74cc64bd9717027655a8e59fbe95e9c7fc | Java | ilkayaktas/Sucre | /app/src/main/java/edu/metu/sucre/controller/db/IDbHelper.java | UTF-8 | 314 | 1.859375 | 2 | [] | no_license | package edu.metu.sucre.controller.db;
import java.util.List;
import edu.metu.sucre.model.app.BloodSugar;
/**
* Created by iaktas on 24/04/17.
*/
public interface IDbHelper {
List<BloodSugar> getBloodSugar();
void saveBloodSugar(BloodSugar bloodSugar);
void deleteBloodSugar(String uuid);
}
| true |
110c80e33bb69ede73e7e37af3139d1a6e2191a6 | Java | miaochangchun/prj_3 | /src/main/java/com/miao/po/Subject.java | UTF-8 | 2,883 | 2.4375 | 2 | [] | no_license | package com.miao.po;
import javax.persistence.*;
import java.io.Serializable;
/**
* 题目类
* Created by 10048 on 2017/8/10.
*/
@Entity
@Table(name = "tb_subject")
public class Subject implements Serializable{
@Id@GeneratedValue(strategy = GenerationType.IDENTITY)
private int subjectID;
@Column(name = "sub... | true |
a03158c6040db0405dd6a2de7959e8b867e1e6e2 | Java | NextOrigins/Youyou | /app/src/main/java/com/neworld/youyou/activity/AddNewAddressActivity.java | UTF-8 | 7,056 | 2.25 | 2 | [] | no_license | package com.neworld.youyou.activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Base64;
import android.view.View;
import android.w... | true |
856f74a4e9cf1e0829119a3fcf3c77074ae0ee1c | Java | lipengdarcy/Sanguo | /src/main/java/org/darcy/sanguo/gm/GmService.java | UTF-8 | 580 | 1.867188 | 2 | [] | no_license | package org.darcy.sanguo.gm;
import org.darcy.sanguo.service.Service;
public class GmService implements Service {
public static GmNoticer noticer = new GmNoticer();
public void startup() throws Exception {
//new Thread(new GmConnector(Configuration.gmIp, Configuration.gmPort), "GmConnector").start();
... | true |
294f4b01bd965e705ac66415f663aa3547f33514 | Java | anitastuberg/StudIt | /fxui/src/main/java/studit/ui/ForumMessage.java | UTF-8 | 644 | 2.65625 | 3 | [] | no_license | package studit.ui;
public class ForumMessage {
private String username;
private int rating;
private String text;
public ForumMessage(String username, String text){
this.username = username;
this.text = text;
}
// public void setUsername(String username) {
// this.username = username;
// }
... | true |
24a5eebcfa85f5ab8733e521c7735d2cbedc6246 | Java | akgopal/dataplatform-monitor | /src/com/monitor/model/ConsumerLag.java | UTF-8 | 1,465 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | package com.monitor.model;
public class ConsumerLag {
private String consumerGroup, topic, partitionStatus, postedDt;
private int partition;
private long startLag, startOffset, endLag, endOffset;
public String getConsumerGroup() {
return consumerGroup;
}
public void setConsumerGroup(String consumerGro... | true |
73c9b5cd29a41dd741038aac9fc098643965b7f9 | Java | NobleYd/CallBackMgmt | /CallBackDataMgmt/src/com/app/buzz/advertise/entity/AdSite.java | UTF-8 | 2,777 | 1.96875 | 2 | [] | no_license | /*
* Copyright 2015-2025. All rights reserved.
* Support: @Support
* License: @License
*/
package com.app.buzz.advertise.entity;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import com.app.entity.BaseEntity;
import com.fasterxml.jackson.a... | true |
421afa051e9a5e76d5312b2a193910326dce5c03 | Java | ProjectKaiser/tf-server-toolkit | /test/com/triniforce/extensions/PluginsLoaderTest.java | UTF-8 | 1,936 | 2.046875 | 2 | [] | no_license | /*
* Copyright(C) Triniforce
* All Rights Reserved.
*
*/
package com.triniforce.extensions;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import com.triniforce.db.test.TFTestCase;
import com.triniforce.server.sr... | true |
5c8ebd486c461752f943f9b38568036d3d1578af | Java | liaoqichao/demo-javaweb | /SSHDemo/src/hibernate/demo8/dao/UserDao.java | ISO-8859-7 | 1,281 | 2.65625 | 3 | [] | no_license | package hibernate.demo8.dao;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.Test;
import hibernate.demo8.domain.User;
import lqcUtils.HibernateUtils;
public class UserDao {
/**
*
*/
public void save(User user){
Session session = null;
Transaction tx = null;
try {
se... | true |
1281a2c91fcecf86551bd681b49f82834127aebb | Java | henricharles/charter | /src/main/java/com/spectrum/charter/Dao/TransactionDaoImpl.java | UTF-8 | 4,824 | 2.609375 | 3 | [] | no_license | package com.spectrum.charter.Dao;
import com.spectrum.charter.dto.Customer;
import com.spectrum.charter.dto.Reward;
import com.spectrum.charter.dto.RewardLevel;
import com.spectrum.charter.dto.Transaction;
import com.spectrum.charter.service.RewardCalculationUtil;
import java.util.*;
public class TransactionDaoImpl ... | true |
fa5379f1e2e3f6340b0cc386c41ddb99d59a0835 | Java | chrgu000/note-2 | /src/com/company/niuke/MyNumber.java | UTF-8 | 534 | 2.8125 | 3 | [] | no_license | package com.company.niuke;
/**
* Created by a1996_000 on 2017/8/2.
*/
public class MyNumber {
public static int getNumber(){
int count=0;
int j=1;
while(true){
if(j%2==0||j%3==0||j%5==0){
++count;
}
++j;
if(count==1500){
... | true |
e47d7be110f2e62480fc6ce09f52181bd50ce216 | Java | CS2113-AY1819S2-T08-3/main | /src/planmysem/common/Messages.java | UTF-8 | 6,725 | 3 | 3 | [
"MIT"
] | permissive | package planmysem.common;
import java.time.LocalDate;
import java.util.List;
import java.util.Set;
import javafx.util.Pair;
import planmysem.model.semester.ReadOnlyDay;
import planmysem.model.semester.WeightedName;
import planmysem.model.slot.ReadOnlySlot;
/**
* Container for user visible messages.
*/
public class... | true |
dbcdb18edb0688c8de2a72443fe540bb54117184 | Java | Mol1122/leetcode | /630. Course Schedule III.java | UTF-8 | 930 | 3.625 | 4 | [] | no_license | class Solution {
public int scheduleCourse(int[][] courses) {
if (courses == null || courses.length == 0) {
return 0;
}
Arrays.sort(courses, (a, b)-> a[1] - b[1]);
PriorityQueue<Integer> pq = new PriorityQueue<>((a, b) -> b - a);
int time = 0;
for... | true |
e6ca8f754665b2479599f8c27bd4190d3d06a9d0 | Java | saadibe/CSERVICES | /server/CSERVICES_SERV_SERVICES/src/main/java/com/bnp/cservices/backend/services/ContactService.java | UTF-8 | 755 | 2.46875 | 2 | [] | no_license | package com.bnp.cservices.backend.services;
import com.bnp.cservices.dto.ContactDTO;
import com.bnp.cservices.exception.MyException;
import java.util.List;
/**
* This service manages the contacts.
*/
public interface ContactService {
/**
* Retrieve the list of all contacts.
*
* @return the list... | true |
b6cb6ffd899d8b0290532ae088926f0940bd5a70 | Java | gurkan0791/EmlakUygulama | /src/java/com/emlak/varlik/GayrimenkulAdres.java | UTF-8 | 1,688 | 2.125 | 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.emlak.varlik;
/**
*
* @author sony
*/
public class GayrimenkulAdres {
private int evID;
pr... | true |
070171cc65cbeb23033c3aed05502118b5a9de38 | Java | soumyagoel22/Arrays | /Find Duplicate in Array.java | UTF-8 | 398 | 2.953125 | 3 | [] | no_license | import java.util.*;
public class Solution {
// DO NOT MODIFY THE LIST
public int repeatedNumber(final List<Integer> A) {
Collections.sort(A);
int i,n,a;
n=A.size();
for(i=1;i<n;i++)
{
if((A.get(i)).equals(A.get(i-1)))
{
a=A.get(i);... | true |
e1f9b64f8256121bba86a13ff623ba657fc38a21 | Java | xdc0209/java-code | /basicKnowledge/src/com/xdc/basic/api/apache/commons/chain/comparison/implwithchain/SellVehicleTest.java | UTF-8 | 1,182 | 2.265625 | 2 | [] | no_license | package com.xdc.basic.api.apache.commons.chain.comparison.implwithchain;
import org.apache.commons.chain.Chain;
import org.apache.commons.chain.Context;
import org.apache.commons.chain.impl.ChainBase;
import org.apache.commons.chain.impl.ContextBase;
import com.xdc.basic.api.apache.commons.chain.comparison.implwithch... | true |
429625a9f75b800e53ba7b37e6d1e2eb40aad654 | Java | ldurazo/miniature-octo-computing-machine | /android-training/AT1-ActionBar/app/src/main/java/com/internship/at1_actionbar/app/ChildActivity.java | UTF-8 | 391 | 1.789063 | 2 | [
"Unlicense"
] | permissive | package com.internship.at1_actionbar.app;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
/**
* Created by ldurazo on 6/6/2014.
*/
public class ChildActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | true |
000eb4f234ac64def5e59d488d0ac2404c85ebe6 | Java | rcore-os-infohub/ossoc2020-VitalyAnkh-daily | /Java/Play/CalculateTax.java | UTF-8 | 1,041 | 3.953125 | 4 | [] | no_license | public class CalculateTax {
public static void main(String args[]) {
Income[] incomes = new Income[] { new Income(3242), new Salary(3234), new StateCouncilSpecialAllowance(1000), };
double sumOfTax = 0;
for (Income income : incomes) {
sumOfTax += income.getTax();
}
... | true |
4cc9159171a9870f8e9ead09888613007a780ef5 | Java | JASONPANG23/algorithms-and-data-structures | /src/github/jasonpang23/data_structures/map/BSTMap.java | UTF-8 | 4,696 | 3.28125 | 3 | [] | no_license | package github.jasonpang23.data_structures.map;
import github.jasonpang23.data_structures.resources.FileOperation;
import java.util.ArrayList;
public class BSTMap<K extends Comparable<K>,V> implements Map<K,V> {
private Node root;
private int size ;
public BSTMap(){
root = null ;
size ... | true |
b2a15a7d2a5f790c7846cd1b088b199672758d16 | Java | mohen/carpart | /src/main/java/org/g4studio/demo/online/web/TreeAction.java | UTF-8 | 8,219 | 1.945313 | 2 | [] | no_license | package org.g4studio.demo.online.web;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.g4studio.common.web.BaseAction;
import org.g4studio.common.web.BaseActionForm;
import org.g4studio.core.json.JsonHelper;
import org.g4studio.core.metaty... | true |
add2a27cff761a9f83c484ab30776666783912e7 | Java | haolingjie/backgroManaSys | /platform-framework/platform-admin/src/main/java/com/platform/entity/UMedicalecenterEntity.java | UTF-8 | 4,740 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.platform.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 套餐明细表实体
* 表名 u_medicalecenter
*
* @author lipengjun
* @date 2019-04-26 18:24:29
*/
public class UMedicalecenterEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
... | true |
397d914464186873746015ca53eedd459be9964f | Java | lynn8570/WristBand | /app/src/main/java/com/lynn/wristband/utils/DrawHorizontalHelper.java | UTF-8 | 1,882 | 2.78125 | 3 | [] | no_license | package com.lynn.wristband.utils;
import android.graphics.Canvas;
/**
* Created by zowee-laisc on 2018/7/20.
*/
public class DrawHorizontalHelper extends DrawHelperBase {
public DrawHorizontalHelper(int perValue, int spaceInEach, int lineColor, int primaryColor) {
super(perValue, spaceInEach, lineCol... | true |
a5f783a442d57443de22e2899f9cbf5ca87e70dc | Java | yka8247/AFRS | /src/information/ItineraryManager.java | UTF-8 | 3,935 | 3.546875 | 4 | [
"MIT"
] | permissive | package information;
import helpers.ItinerarySortingAlgorithm;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Author : Jay
* This class is made of singleton pattern that
* takes care of sorting algorithms and manages
* each itinerary objects
*/
public class ItineraryManag... | true |
3d28ed6d08ac278f073c6d3a141c715b347d85da | Java | damascenodiego/rbac-bt | /rbac-bt/src/com/usp/icmc/labes/utils/RbacUtils.java | UTF-8 | 26,745 | 1.75 | 2 | [] | no_license | package com.usp.icmc.labes.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.... | true |
af7f058ac9a6367b93056932434a70d27a683f38 | Java | dengxiny/LeetCode | /src/main/java/com/LeetCode/code/q600/Non-negativeIntegerswithoutConsecutiveOnes/Solution.java | UTF-8 | 826 | 3.09375 | 3 | [] | no_license | package com.LeetCode.code.q600.Non-negativeIntegerswithoutConsecutiveOnes;
/**
* @QuestionId : 600
* @difficulty : Hard
* @Title : Non-negative Integers without Consecutive Ones
* @TranslatedTitle:不含连续1的非负整数
* @url : https://leetcode-cn.com/problems/non-negative-integers-without-consecutive-ones/
* @Tr... | true |
c42a5f1396f2a0a5e4b05288c37fb3c0d0fca99f | Java | Brest-Java-Course/Alexander-Kruglikov | /BankDeposit/app-client/src/test/java/com/brest/bank/client/RestClientTest.java | UTF-8 | 30,432 | 2.4375 | 2 | [] | no_license | package com.brest.bank.client;
import com.brest.bank.domain.BankDeposit;
import com.brest.bank.domain.BankDepositor;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.test.web.client... | true |
fd411baff2568b97a7dd330efbc27a1ee2ac3d00 | Java | AbhishekShukla2402/Java | /Practice/CodingBat/Map2/wordCount.java | UTF-8 | 550 | 3.09375 | 3 | [] | no_license | package Map2;
import java.util.HashMap;
import java.util.Map;
public class wordCount {
public Map<String, Integer> wordCount(String[] strings) {
Map<String, Integer> map= new HashMap<String, Integer>();
for(String word: strings)
{
if(!map.containsKey(word))
... | true |
1b0a364b685466f21aa2ea740e1c582c02d773dd | Java | superzlcCN/LeetCodePractice | /src/_53_MaxSubarray.java | UTF-8 | 788 | 3.109375 | 3 | [] | no_license |
public class _53_MaxSubarray {
public static int maxSubArray(int[] nums){
int sum = Integer.MIN_VALUE;
int max_sum = sum;
for (int i = 0; i < nums.length; i++) {
if (nums[i] < 0) {
if (nums[i]> max_sum ) {
max_sum = nums[i];
sum = nums[i];
} else {
if( nums[i] + sum >= 0 )
s... | true |
5dd0e2b03b5f5f9b8398a3629b5af54665ec0601 | Java | ieewbbwe/FastApp | /sdk-core/src/main/java/com/android_mobile/core/BasicDialog.java | UTF-8 | 1,715 | 2.296875 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | package com.android_mobile.core;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatDialog;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
/**
* Created by m... | true |