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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
67ab1420987f2e05aeb6a909186c2305562767cd | Java | youyingke/springboot-jpa-sys | /src/main/java/com/hawk/demo/sys/dao/DeptDao.java | UTF-8 | 348 | 1.601563 | 2 | [] | no_license | package com.hawk.demo.sys.dao;
import com.hawk.demo.sys.model.DeptDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* Created by Lenovo on 2019-06-12.
*/
public interface DeptDao extends JpaRepository<DeptDO,Long>,JpaSpecif... | true |
d4cc1ffb2268f45848e7cf38c9d4bcf5176c6f09 | Java | COPRS/production-common | /rs-libs/obs-sdk/src/test/java/esa/s1pdgs/cpoc/obs_sdk/s3/S3ObsClientIT.java | UTF-8 | 28,124 | 1.523438 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package esa.s1pdgs.cpoc.obs_sdk.s3;
import static java.util.Collections.singletonList;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.lessThan;
import static org.hamcrest.number.OrderingComparison.greaterThan;
import static org.junit.Ass... | true |
85bc4bb8db70a18afd9b211064244fedc3228461 | Java | StevenCode/LIP | /src/com/steven/hetero/AddNode.java | UTF-8 | 730 | 2.828125 | 3 | [] | no_license | package com.steven.hetero;
import com.steven.Homo.Token;
public class AddNode extends ExprNode {
ExprNode left, right; // named, node-specific, irregular children
public AddNode(ExprNode left, Token addToken, ExprNode right) {
super(addToken);
this.left = left;
this.right = right;
... | true |
cd5ef900cf684cc977e0f36eb6e7ef3ba830b050 | Java | zongxingy/LifeAssistants | /lifeAssistants/src/main/java/com/yzx/lifeassistants/fragment/ChargeUpFragment.java | UTF-8 | 10,749 | 1.765625 | 2 | [] | no_license | package com.yzx.lifeassistants.fragment;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutI... | true |
7c2b2fea2a0048c70171fee07db8dd189aaee2a4 | Java | YuanChenM/xcdv1.5 | /Services/msk-common/src/main/java/com/msk/product/bean/IPD141112RsPdTncResult.java | UTF-8 | 929 | 1.921875 | 2 | [] | no_license | package com.msk.product.bean;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.msk.core.entity.PdTncStd;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 封装参数
* IPD141112RsPdTncParam.
*
* @author xhy
*/
@ApiModel(value = "IPD141112RsPdTncResult... | true |
987d9e61b7a0a5239a5af66ec00f15dc90bc78f9 | Java | ThNhi/BookManagement | /src/dto/Books_SE140736.java | UTF-8 | 1,806 | 2.53125 | 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 dto;
/**
*
* @author DELL
*/
public class Books_SE140736 {
private String bookID; //varchar
private String bookNam... | true |
24dfa59a82add138bf936a83daba8611961c914a | Java | atopazio/TopSysFW | /TopSysFW/src/main/java/br/com/topsys/util/TSEmailUtil.java | WINDOWS-1252 | 2,174 | 2.671875 | 3 | [] | no_license | package br.com.topsys.util;
import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
/**
*
* @author andre.topazio
*
* TODO To change the tem... | true |
891afdc6d6882e4a6a46727738d5f111dd4b58cc | Java | vmathur/HowCheapRU | /src/com/example/howcheapru/HowCheapRUMain.java | UTF-8 | 10,932 | 2.171875 | 2 | [] | no_license | package com.example.howcheapru;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
impo... | true |
133e8c91f1523308c7ed66b85e42ed673e474462 | Java | Princejhabak/KissanMitr | /KissanMitr/app/src/main/java/com/example/android/myapp/ContactUsActivity.java | UTF-8 | 2,267 | 2.203125 | 2 | [] | no_license | package com.example.android.myapp;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.CameraUpdateFactory;
import ... | true |
740d2931b6393efe3755fe29bb864fdc48809f1b | Java | schustes/sidion-contract-examples | /books-client/src/main/java/de/sidion/books/client/adapter/BookCatalogRestService.java | UTF-8 | 2,087 | 2.21875 | 2 | [] | no_license | package de.sidion.books.client.adapter;
import de.sidion.books.client.domain.Book;
import de.sidion.books.client.domain.BookCatalogService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpH... | true |
240e9db9ec014b8b5a30d16419c647d7ba864699 | Java | opensourceforlife/sample-recycle-bin | /sample-recycle-bin-portlet/src/main/java/com/opensourceforlife/portlet/samplerecyclebin/SampleRecycleBinPortlet.java | UTF-8 | 4,612 | 1.875 | 2 | [] | no_license |
package com.opensourceforlife.portlet.samplerecyclebin;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemExc... | true |
cd1d35f17b1125f1f20de2b43dd1751c930c5165 | Java | danielferrao02/java | /Aula01/exercicios/Exercicio04.java | UTF-8 | 1,399 | 4.0625 | 4 | [] | no_license | package exercicios;
import java.util.Scanner;
public class Exercicio04 {
public static void main(String[] args) {
//1kwatt é 1/500 avos do salario minimo
Scanner entrada = new Scanner(System.in);
//faça um programa que receba o valor de salario minimo
System.out.p... | true |
67348d30862b58fa9b82c1ab916987e9ff10912e | Java | shalija/employer-service | /src/main/java/com/inpixon/interview/employers/data/EmployerRepository.java | UTF-8 | 460 | 1.851563 | 2 | [] | no_license | package com.inpixon.interview.employers.data;
import com.inpixon.interview.employers.model.Employer;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
publi... | true |
79a33c05330c4b44565eef10dbefbf32c32611ba | Java | shrirang91/VendingMachine | /src/gui/VendingMachineFrame.java | UTF-8 | 2,544 | 2.484375 | 2 | [] | no_license | package gui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import vendsys.*;
import app.*;
public class VendingMachineFrame extends JFrame
{
private VirtualVendingMachine m_vvmMachine;
private PayPanel m_ppPayPanel;
private SelectorPanel m_spSelectorPanel;
private OutputDisplayPanel... | true |
17b7cb16df423cd8e32d36c374c304c7e56034f9 | Java | khanhkd1/repo-all-subjects-in-KMA | /ThucHanhKTLT/ThucHanhKTLT/ThucHanhJava_KTLT/KeThuaDaHinhTruuTuong/Bai3/Bai3.java | UTF-8 | 1,294 | 3.078125 | 3 | [] | no_license | package KeThuaDaHinhTruuTuong.Bai3;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;
public class Bai3 {
public static int[] Nhap(int soDau,int n){
Scanner scan = new Scanner(System.in);
int[] arr = new int[n];
arr[0] = soDau;
for (int i=1; i<n; i+... | true |
b0e12941fe77bac4343cb5497eceea5ee391ff69 | Java | lucasko/spring-boot-stateless-env | /src/main/java/org/app/config/LoginFilter.java | UTF-8 | 4,177 | 2.28125 | 2 | [] | no_license | package org.app.config;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.app.se... | true |
11405edfd89a1c407f37de869c12bf0d25c4eb8e | Java | bugouzhi/workspace | /MixDB/src/misc/HCDCIDETD.java | UTF-8 | 10,912 | 2.125 | 2 | [] | no_license | package misc;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashSet;
import msgf.Histogram;
import msutil.AminoAcidSet;
import msutil.Composition;
import msutil.CompositionFactory;
import msutil.IonTy... | true |
7008f36451fbe47f9ba4a00e8d7c3f9085598ab7 | Java | gautamk/RESOLVE | /src/main/java/edu/clemson/cs/r2jt/typeandpopulate/programtypes/PTGeneric.java | UTF-8 | 1,618 | 2.46875 | 2 | [
"BSD-3-Clause",
"MIT"
] | permissive | /**
* PTGeneric.java
* ---------------------------------
* Copyright (c) 2014
* RESOLVE Software Research Group
* School of Computing
* Clemson University
* All rights reserved.
* ---------------------------------
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is par... | true |
d1f74ac2f33de03b3b0a3d0909ed7d8c6f7d5929 | Java | Giancarlo2709/programming-reactive | /rxjava2/src/main/java/com/everis/reactivex/observable/ObservableCallable.java | UTF-8 | 2,505 | 3.453125 | 3 | [] | no_license | package com.everis.reactivex.observable;
import io.reactivex.rxjava3.core.Observable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
/*
* Si necesita realizar un cálculo o acción y luego emitirlo, puede usar
* Observable.just () (o Single.just () o M... | true |
b801c40ff1dcfbda7da37be04cef56c230edccb8 | Java | MdAzhar123/PixoFinal | /server/Pixogram/src/main/java/com/social/imageApp/Pixogram/dao/MyMediaDao.java | UTF-8 | 426 | 1.796875 | 2 | [] | no_license | package com.social.imageApp.Pixogram.dao;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import com.social.imageApp.Pixogram.model.Comment;
import com.social.imageApp.Pixogram.model.Media;
public interface MyMediaDao extends CrudRepository<Media, Integer> {
List<Media> findAllBy... | true |
1df1ca5fc6d3e55e9389615e3b30242e161f485c | Java | vinaysshenoy/JUnitParams | /src/main/java/junitparams/converters/Nullable.java | UTF-8 | 853 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive |
package junitparams.converters;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import junitparams.Parameters;
/**
* Allows test null values defined as a String array in {@link Parameters}
*
* @auth... | true |
327a99f97414496566e02b2c03fc6ff557abe206 | Java | BakytEshaliev/TherapiApp | /app/src/main/java/com/example/therapiapp/other/Datenschutz.java | UTF-8 | 713 | 1.773438 | 2 | [] | no_license | package com.example.therapiapp.other;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.os.Bundle;
import android.widget.TextView;
import com.example.therapiapp.BaseActivity;
import com.example.therapiapp.R;
public class Datenschutz extends Bas... | true |
5a8b618266d0fada6c3f408cb34bb2a5c9b38710 | Java | SplendorAnLin/paymentSystem | /account/account-core/src/main/java/com/yl/account/core/facade/impl/AccountTallyCreditFacadeImpl.java | UTF-8 | 9,413 | 1.8125 | 2 | [] | no_license | /**
*
*/
package com.yl.account.core.facade.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Compon... | true |
bc9a047ff2e7dd3bb18a07371056319f824e477f | Java | AlexseyOstrovskiy/ClassWork | /lesson5/src/com/company/Main.java | UTF-8 | 1,169 | 3.609375 | 4 | [] | no_license | package com.company;
public class Main {
/*
Принципы ООП:
1. Инкапсуялция
2. Полиморфизм
3. Наследование
4. Абстракция
*/
public static void main(String[] args) {
Animal animal = new Animal();
animal.color = "black";
animal.weight = 12.4f;
animal.eat();
animal.sleep();
animal.sleep(12)... | true |
860194d1e0c1ce9029bec19a28ad2291866f05f2 | Java | sdahal1/JavaAugust | /spring/w2d2-springDataIPets/src/main/java/com/dahal/w2d2springDataIPets/controllers/PetController.java | UTF-8 | 3,079 | 2.640625 | 3 | [] | no_license | package com.dahal.w2d2springDataIPets.controllers;
import java.util.List;
import javax.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.sp... | true |
840688e995505a7b079adc9283ba81985e8f30b5 | Java | AmitSinghhub/JSP-and-Servlet | /Online Recharge/src/tingu/Valservlet.java | UTF-8 | 1,931 | 2.34375 | 2 | [] | no_license | package tingu;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.Web... | true |
b8afc2ddfd0f46c364e84be57dfd209b6ca086e4 | Java | Tharindu-Dhananjaya/MC_BOP | /src/mc/kurunegala/bop/model/UpploadService.java | UTF-8 | 340 | 2.015625 | 2 | [] | no_license | package mc.kurunegala.bop.model;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import mc.kurunegala.bop.dao.UploadsMapper;
@Service
public class UpploadService {
@Autowired
UploadsMapper mapper;
public void add(Uploads entity) {
mapper.insertSelec... | true |
769a9e2925a42b2ca6b97663a6354e96e2b46f6d | Java | mikolajgucki/ae-engine | /tools/src/main/java/com/andcreations/ae/launch/image/LaunchImageTest.java | UTF-8 | 486 | 2.125 | 2 | [
"MIT"
] | permissive | package com.andcreations.ae.launch.image;
import java.io.File;
import com.andcreations.ae.color.Color;
/**
* @author Mikolaj Gucki
*/
public class LaunchImageTest {
/** */
public static void main(String[] args) throws Exception {
CenterLaunchImageLayout layout = new CenterLaunchImageLay... | true |
e2f5964d46f613312799a71af0a5d22ead01aba0 | Java | iay12590/ichat | /tool/socket-tool/src/main/java/com/warden/ichat/tool/core/factory/HandlerFactory.java | UTF-8 | 1,141 | 2.21875 | 2 | [] | no_license | package com.warden.ichat.tool.core.factory;
import com.warden.ichat.tool.core.handler.BusinessHandler;
import com.warden.ichat.tool.core.handler.TransientModelHandler;
/**
* @author <a href="linjianhua@wxchina.com">JianHua.Lin</a>
* @version 1.0.0
* @date 2018/10/11
*/
public class HandlerFactory {
private v... | true |
1ce18cb38b5524e654904bbcc35c74f835c13a45 | Java | rsoiffer/BeigeCraft | /src/graphics/Model.java | UTF-8 | 8,415 | 2.109375 | 2 | [] | no_license | package graphics;
import graphics.Quad.ColoredQuad;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import opengl.Camera;
import opengl.ShaderProgram;
import util.Resources;
import static util.math.MathUtils.mod;
import static util.math.MathUtils.vecMap;
impo... | true |
e223ad2b99bd77daf13be3ab3331792cdff073a5 | Java | WH2zzZ/wh-java8 | /thread/src/main/java/com/oowanghan/thread/status/StateDemo.java | UTF-8 | 2,074 | 3.03125 | 3 | [] | no_license | package com.oowanghan.thread.thread.status;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
/**
* @Author WangHan
* @Create 2020/5/10 6:00 下午
*/
@Slf4j
public class StateDemo {
@Test
public void testAllState() throws InterruptedException {
Thread t1 = new Thread(() -> {
... | true |
17899cc85d625350528ba118503fcdaabbbeb4f4 | Java | ZhangShaojun/SmartTiger | /src/com/smarttiger/demos/FitInsideCenterActivity.java | UTF-8 | 752 | 1.828125 | 2 | [] | no_license |
package com.smarttiger.demos;
import android.os.Bundle;
import android.util.Log;
import android.view.ViewTreeObserver.OnPreDrawListener;
import android.widget.ImageView;
import android.widget.TextView;
import com.smarttiger.demos.bean.Demo;
public class FitInsideCenterActivity extends BaseActivity {
public sta... | true |
b9ba5b5777bc115ab6d86c22147ea20b9266ddcd | Java | shutohoriesb/java-introduction | /Sample.04/src/main/java/com/handson/OperationOrderSample.java | UTF-8 | 602 | 3.734375 | 4 | [] | no_license | package com.handson;
class OperationOrderSample {
public static void main(String[] args) {
// 優先順位が変わる例
int sample1 = 1 + 2 * 3;
int sample2 = (1 + 2) * 3;
System.out.println(sample1); // 7
System.out.println(sample2); // 9
// 優先順位が変わらない例
int height = 170;
... | true |
3b2e749c1f8defd40fd08704ed840e261e0e143d | Java | johnsully83/johnsully83 | /src/main/java/com/home/service/workflow/helper/country/CountryWorkflowHelperService.java | UTF-8 | 2,722 | 2.25 | 2 | [] | no_license | package com.home.service.workflow.helper.country;
import java.util.Date;
import java.util.List;
import com.home.AppContext;
import com.home.dao.MongoDao;
import com.home.model.cloud.jpa.Country;
import com.home.model.cloud.mongo.MongoCountry;
import com.home.model.enumeration.geoplanet.GeoPlanetPlaceType;
import com.... | true |
f87b568c81814fb7f625fd19dc0df94bd77e4251 | Java | ashmichheda/codechef-programs | /Codigo/RenameThisCity.java | UTF-8 | 1,062 | 3.515625 | 4 | [] | no_license | /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
in... | true |
eb7092652bbfa065031b97529132c34005abc570 | Java | akon1248/SkriptSecurity | /src/main/java/com/akon/skriptsecurity/PacketSecurity.java | UTF-8 | 1,565 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.akon.skriptsecurity;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketEvent;
import java.util.function.Predicate;
public class PacketSecurity extends PacketAdapte... | true |
7960283d45a72d4a170205ad6ace02786e5b99c9 | Java | oleggye/tt | /tt-dao/src/test/java/by/bsac/timetable/dao/impl/GroupDAOImplTest.java | UTF-8 | 7,771 | 1.976563 | 2 | [] | no_license | package by.bsac.timetable.dao.impl;
import static org.assertj.core.api.Assertions.assertThat;
import by.bsac.timetable.dao.IFacultyDAO;
import by.bsac.timetable.dao.IFlowDAO;
import by.bsac.timetable.dao.IGroupDAO;
import by.bsac.timetable.dao.exception.DAOException;
import by.bsac.timetable.entity.Faculty;
import by... | true |
cb3de728c1ca3940da15bfba747037f392f31254 | Java | MSNMessinger/dat257-Grupp20 | /DateIt/app/src/main/java/com/example/dateit/ui/mypage/NotificationsFragment.java | UTF-8 | 8,806 | 2.359375 | 2 | [] | no_license | package com.example.dateit.ui.mypage;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.f... | true |
ca8faaab950a762e8a76b54803170ca25cac3312 | Java | tsmasuo/hellogit | /src/tools/Bonus.java | SHIFT_JIS | 927 | 3.515625 | 4 | [] | no_license | package tools;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Bonus {
public static int getBonus(
int basePay, String rank) {
int rate = 0;
if (rank.equals("A")) {
rate = 4;
} else if (rank.equals("B")) {
rate = 3;
} else if... | true |
f11bacba855964f29a8e2bfca04b352c736a89e3 | Java | professorjuniel/Projetos | /Pessoal/Boletos/versoes/1.0.0/pagcontascarnes/src/main/java/br/com/pagcontascarne/dao/dados/BoletoDAO.java | UTF-8 | 255 | 1.5 | 2 | [] | no_license | package br.com.pagcontascarne.dao.dados;
import com.xpert.persistence.dao.BaseDAO;
import br.com.pagcontascarne.modelo.dados.Boleto;
import javax.ejb.Local;
/**
*
* @author Juniel
*/
@Local
public interface BoletoDAO extends BaseDAO<Boleto> {
}
| true |
8a34880eaa0d87cbc6cf8718a12e537c4554c5ea | Java | xianqiangfu/java | /HashSet/src/HashSetTest.java | GB18030 | 899 | 3.453125 | 3 | [] | no_license | import java.util.HashSet;
import java.util.Iterator;
public class HashSetTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashSet hashset = new HashSet();
String a = new String("A");
String b = new String("B");
String c = new String("C");
hashset.add(a);
hashset.add... | true |
d006844ac129957ea0ed64af1b16fecbd281bc7a | Java | qiliangwang/Algorithm | /src/compiler/javaCompiler/PdaParser.java | UTF-8 | 3,079 | 2.953125 | 3 | [] | no_license | package compiler.javaCompiler;
import java.util.Stack;
public class PdaParser {
enum Grammar {
STMT,
EXPR,
EXPR_PRIME,
TERM,
TERM_PRIME,
FACTOR,
NUM_OR_ID,
PLUS,
SEMI,
MULTIPLE,
LEFT_PARENT,
RIGHT_PARENT
};
private Lexer lexer;
private ... | true |
e7d7b3c4e02e5c1c295de3350e982112c02f797b | Java | jmagnotti/katalabaino | /Katalabaino/src/testing/PrintAnalysisOptions.java | UTF-8 | 1,098 | 2.828125 | 3 | [] | no_license | package testing;
import java.io.File;
import java.util.Arrays;
public class PrintAnalysisOptions
{
private static String prettyPrint(String s)
{
String result = "";
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if (Character.isUpperCase(c)) {
result = result + "_" + c;
}
else {... | true |
e981c0b2ad12ea846df6fb08d9814feea89a9958 | Java | abhijeetvaidya24/INFO-NDVaidya | /src/java/com/adcolony/sdk/aq.java | UTF-8 | 1,751 | 2.3125 | 2 | [] | no_license | /*
* Decompiled with CFR 0.0.
*
* Could not load the following classes:
* java.io.IOException
* java.io.InputStream
*/
package com.adcolony.sdk;
import java.io.IOException;
import java.io.InputStream;
class aq
extends InputStream {
InputStream a;
int b;
aq(InputStream inputStream, int n2, int n3... | true |
da6eb52e2391dc1390a9245b9ac0d948ce04d24c | Java | unsajatoi/Unsa-Java | /CopyFileToAnotherFile.java | UTF-8 | 376 | 2.796875 | 3 | [] | no_license | //4f. Write a program to copy content of file into another file.
package com.whitebox.edu;
import java.io.File;
public class CopyFileToAnotherFile {
public static void main(String a[]){
File file = new File("/home/hduser/");
File[] files = file.listFiles();
for(File f: files){
... | true |
e7e59872aa9a981269daf46124f789faed62577a | Java | EyeSeeTea/dhis2-android-sdk | /core/src/androidTest/java/org/hisp/dhis/android/core/event/EventCallRealIntegrationShould.java | UTF-8 | 1,928 | 1.90625 | 2 | [
"BSD-3-Clause"
] | permissive | package org.hisp.dhis.android.core.event;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import com.google.common.truth.Truth;
import org.hisp.dhis.android.core.D2;
import org.hisp.dhis.android.core.common.D2Factory;
import org.hisp.dhis.android.core.common.EventCallFacto... | true |
8a52df75f8382b513e555baf685c015218b7082e | Java | Kyle1264x/PCE | /me/davejavu/pce/command/vanish.java | UTF-8 | 5,229 | 2.296875 | 2 | [] | no_license | package me.davejavu.pce.command;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.davej... | true |
859bc029359c7a60b666b34f44cb0a406287108c | Java | 982334245/spring-batch | /src/main/java/com/batch/design/patterns/bridge/DrawAPI.java | UTF-8 | 160 | 2.21875 | 2 | [] | no_license | package com.batch.design.patterns.bridge;
/**
* Created by longbao on 18/7/5.
*/
public interface DrawAPI {
void drawCircle(int radius, int x, int y);
}
| true |
5ac9739e34106396ecfce6cd0a46d642570daf55 | Java | LSL-Git/HXBlog_V2.0 | /src/main/java/com/hx/blog_v2/util/ResultUtils.java | UTF-8 | 2,937 | 2.578125 | 3 | [] | no_license | package com.hx.blog_v2.util;
import com.hx.blog_v2.domain.ErrorCode;
import com.hx.common.interf.common.Code2Msg;
import com.hx.common.interf.common.Result;
import com.hx.common.result.SimpleResult;
import com.hx.common.util.InnerTools;
/**
* ResultUtils
*
* @author Jerry.X.He <970655147@qq.com>
* @version 1.0
*... | true |
6f3ce892d66b39e815740de868b0ce7a75f16cf9 | Java | zhuozuozhang/Weather | /weather/src/main/java/com/koterwong/weather/bean/ProvinceBean.java | UTF-8 | 218 | 1.570313 | 2 | [] | no_license | package com.koterwong.weather.bean;
/**
* Author:Koterwong,Data:2016/4/25.
* Description:
*/
public class ProvinceBean {
public String ProName;
public String ProShort;
public String proRemeark;
}
| true |
a794cc343b00ec8df7d0d3019ec0749c53c0cb29 | Java | JB-Lee/Server-Time-Syncer | /app/src/main/java/org/cnsl/software/finalproject/contract/Main.java | UTF-8 | 949 | 1.867188 | 2 | [] | no_license | package org.cnsl.software.finalproject.contract;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import org.cnsl.software.finalproject.board.BoardItem;
import java.util.Date;
import java.util.List;
public interface Main {
interface View {
void toggleUrlHeader();
void toggleFabBut... | true |
0c9bcb76023a5b8f3c10a17b15f651458af6647b | Java | pysior/DataMining | /GWTGUI/src/main/java/pl/edu/agh/ftj/datamining/server/impl/WekaServiceImpl.java | UTF-8 | 1,784 | 2.265625 | 2 | [] | no_license | package pl.edu.agh.ftj.datamining.server.impl;
import java.util.List;
import pl.edu.agh.ftj.datamining.client.WekaService;
import pl.edu.agh.ftj.datamining.server.WekaCommunication;
import pl.edu.agh.ftj.datamining.server.WekaCommunicationFactory;
import pl.edu.agh.ftj.datamining.server.WekaWrapper;
import pl.edu.agh... | true |
7a31a7880ae9969c9d8f14faf59beb33a098f3ba | Java | locknic/Sudokil | /sudokil/core/src/com/custardgames/sudokil/entities/ecs/components/LiftableComponent.java | UTF-8 | 367 | 2.296875 | 2 | [] | no_license | package com.custardgames.sudokil.entities.ecs.components;
import com.artemis.Component;
public class LiftableComponent extends Component
{
private boolean lifted;
public LiftableComponent()
{
lifted = false;
}
public boolean isLifted()
{
return lifted;
}
public void setLifted(boolean ... | true |
33acb8ed4b59f397f7222aa533e69f1dec1a560a | Java | tobega/tailspin-v0 | /src/tailspin/types/Relation.java | UTF-8 | 4,691 | 2.625 | 3 | [
"MIT"
] | permissive | package tailspin.types;
import tailspin.control.ResultIterator;
import tailspin.interpreter.Scope;
import tailspin.literals.KeyValueExpression;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Relation implements Processor, Deconstructible {
private final Set<Str... | true |
5383b5c967fbb604e3d93f08588d8a74e7964df9 | Java | OEarchive/edisonAPITestTool | /src/main/java/Model/DataModels/Alarms/AlarmsHistoryQueryParams.java | UTF-8 | 1,104 | 2.40625 | 2 | [] | no_license |
package Model.DataModels.Alarms;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;
public class AlarmsHistoryQueryParams {
@JsonProperty("alarms")
private List<String> alarms;
@JsonPropert... | true |
e1f0e9cdf169fa4a2b24bd99cfe553d9abaaa248 | Java | gongzishuye/design-pattern | /src/main/java/com/bit/sharing/behavior/template/Main.java | UTF-8 | 250 | 2.09375 | 2 | [] | no_license | package com.bit.sharing.behavior.template;
/**
* @author chen lu
* @date 2017/10/11
* @time 22:29
*/
public class Main {
public static void main(String[] args) {
Template template = new Realization();
template.flow();
}
}
| true |
6233d4a8030d0648bc9b92a65d286d9eba7c7225 | Java | gkossareva/JavaProgrammingB15Online | /src/Repl/Repl51.java | UTF-8 | 521 | 3.15625 | 3 | [] | no_license | package Repl;
import java.util.*;
public class Repl51 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n1 = s.nextInt();
int n2 = s.nextInt();
int n3 = s.nextInt();
if (n1 > n2 && n1 > n3) {
System.out.println("n1 is bugger");
... | true |
77b3cf5495c93133a1eb7ac2d36a31fc5411384d | Java | adicuco/Sem2Project | /src/GUILayer/Employee/menuPanels/dialogPanels/EditEventDialogPanel.java | UTF-8 | 17,390 | 2.265625 | 2 | [] | no_license | package GUILayer.Employee.menuPanels.dialogPanels;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.... | true |
c4a2ad26906861e98200024f0f87119b76a1f565 | Java | arche4/V2AppSofcoiso | /target/generated-sources/annotations/com/co/sofcoiso/modelo/Afp_.java | UTF-8 | 617 | 1.53125 | 2 | [] | no_license | package com.co.sofcoiso.modelo;
import com.co.sofcoiso.modelo.Persona;
import javax.annotation.Generated;
import javax.persistence.metamodel.CollectionAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA"... | true |
a53300db14998fb50616893f72d9708ce938f4b5 | Java | wang663632304/AndroidPieMenu | /PieMenuSample/src/com/example/piemenusample/PieMenuRenderer.java | UTF-8 | 2,289 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.example.piemenusample;
import de.markusfisch.library.piemenu.PieMenu;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.view.MotionEvent;
public class PieMenuRenderer
{
private static final int MAX_ICON_SIZE = 128;
private st... | true |
ec619b07d4680f2c07b1264b391a03fe463bf5d7 | Java | KrzysztofKukla/01-testing-java-junit5 | /src/main/java/guru/springframework/sfgpetclinic/model/OwnerType.java | UTF-8 | 126 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | package guru.springframework.sfgpetclinic.model;
/**
* @author Krzysztof Kukla
*/
public enum OwnerType {
INDIVIDUAL, COMPANY
}
| true |
a45a8da96ae73d110ca8ed74520349f9a5e8e04b | Java | farahmarsaouii/gestionRHPFE | /src/main/java/ch/newaccess/backendproject/service/AccountServiceImpl.java | UTF-8 | 3,680 | 2.078125 | 2 | [] | no_license | package ch.newaccess.backendproject.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.a... | true |
e0d1989885f655531dbaaba255bdc6d81befdcd5 | Java | ShanzyHolm/AirportModel | /src/main/java/Flights.java | UTF-8 | 1,842 | 2.15625 | 2 | [] | no_license | public enum Flights {
GLASGOW("KL1472", Airports.GLASGOW, Airports.EDINBURGH),
VANCOUVER("AF8332", Airports.GLASGOW, Airports.VANCOUVER),
MALAGA("FR2609", Airports.MALAGA, Airports.GLASGOW),
LONDONH("BA1487", Airports.GLASGOW, Airports.LONDONH),
LONDONG("EZY811", Airports.LONDONG, Airports.EDINBURGH... | true |
44f319d98f2a0e492907599bd694ab3896fc27d2 | Java | fhnaumann/Challenges | /src/me/wand555/challenges/settings/challengeprofile/types/Punishable.java | UTF-8 | 3,960 | 2.234375 | 2 | [] | no_license | package me.wand555.challenges.settings.challengeprofile.types;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
imp... | true |
844c9141f06e46a9c041519235b429a10f61c39b | Java | pado140/iw_wip | /src/view/User.java | UTF-8 | 35,807 | 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 view;
import connection.ConnectionDb;
import connection.item;
import java.awt.Font;
import java.awt.event.MouseEvent;
import ... | true |
ef45f4bfad15f64f9c076d001fc7593d39b756f5 | Java | szwork2013/Test | /mobile/android/tablet/src/com/kaikeba/activity/fragment/AssignmentItemFragment.java | UTF-8 | 5,715 | 2.09375 | 2 | [] | no_license | package com.kaikeba.activity.fragment;
import android.annotation.SuppressLint;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.webkit.WebSettings;
impor... | true |
24f24e88c74dd689d260d6ad64be00bb3001f890 | Java | mazen930/Search-Engine-1 | /search/src/main/java/FetchAllSuggestionsServlet.java | UTF-8 | 1,077 | 2.265625 | 2 | [] | no_license | import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
205fba75cad82bb68b24feb54109fcffdc5fe775 | Java | Radhi13/2017fall_ooad_guitars | /src/Guitar.java | ISO-8859-1 | 1,712 | 3.765625 | 4 | [] | no_license | /*
* Purpose :This Guitar Class adds arguments of guitar and adds the functionalities
* like getting the Price,Model,Type,TopWood,BackWood
*
*@author Radhika Hegde
* @version 1.0
* @since 09-15-2017
*
*/
// This is the public Guitar class
public class Guitar {
// Guitar class has seven arguments
private String se... | true |
0e403c9999791d25f0207c1e056db51231de7a09 | Java | Prosta4okua/Atmosphere | /src/main/java/net/insomniakitten/atmosphere/util/dev/BlockStateFactory.java | UTF-8 | 2,728 | 2.0625 | 2 | [] | no_license | package net.insomniakitten.atmosphere.util.dev;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.insomniakitten.atmosphere.Atmosphere;
import net.minecraft.block.Block;
import net.minecraft.block.properties.IProperty;
import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.clien... | true |
1b338d144249e9b06c4a1a78801f480b2174f688 | Java | lichao20000/dayatang-multi-module-archetype | /src/main/resources/archetype-resources/webapp/src/main/java/webapp/action/outputvalue/ReportAction.java | UTF-8 | 465 | 1.726563 | 2 | [] | no_license | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.webapp.action.outputvalue;
import ${package}.webapp.action.BaseAction;
/**
* User: zjzhai
* Date: 13-4-17
* Time: 上午9:06
*/
public class ReportAction extends BaseAction {
/**
*
*/
private static fin... | true |
b3c6319847a78980559664a88093b5ffe5c39b37 | Java | KentinLaw/Springboot-demo | /wms-web/src/main/java/com/kt/wms/api/TestApi.java | UTF-8 | 1,277 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.kt.wms.api;
import com.kt.wms.model.result.Result;
import com.kt.wms.model.result.ResultFactory;
import com.kt.wms.model.system.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
/**
* @author kentinlaw
* @version 1.0
*... | true |
20f9f82ca9b6493ee1502b5a7cdc0fc322d9d5ca | Java | MichielAriens/assemassist12 | /group12/src/controllers/MechanicController.java | UTF-8 | 4,502 | 3.375 | 3 | [
"MIT"
] | permissive | package controllers;
import java.util.ArrayList;
import java.util.List;
import logic.users.Mechanic;
import logic.workstation.Task;
import logic.workstation.Workstation;
/**
* Class used to form a link between the user interface and the Mechanic class.
*/
public class MechanicController extends UserController{
... | true |
e71dcbcd79379827b66b95349d6dcc1e0b9f0476 | Java | zhaoyu1111/graduation1 | /src/main/java/com/zy/graduation1/mapper/ImageMapper.java | UTF-8 | 325 | 1.546875 | 2 | [] | no_license | package com.zy.graduation1.mapper;
import com.zy.graduation1.entity.Image;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author zy
* @since 2019-03-21
*/
@Mapper
public interface ImageMapper extends BaseMapper<Image> {
}... | true |
bbbbfa410129b1f857192fee95960cd77c69147f | Java | rahulsajekar/Backup-Repo | /DataStructures/src/StreamAPIDemo.java | UTF-8 | 1,224 | 3.765625 | 4 | [] | no_license | import java.util.Stack;
public class StreamAPIDemo {
public static void main(String[] args) {
Stack<String> s1 = new Stack<>();
s1.push("rahul");
s1.push("chetan");
s1.push("ketan");
s1.push("tejas");
s1.push("rina");
// find names starts with 'r' and print... | true |
df1d485bfce67a0775af45b1c43d38200357ff33 | Java | kssja/CoderGirlProjects- | /ThankYouMailMerge.java | UTF-8 | 2,618 | 3.125 | 3 | [] | no_license | import static java.lang.System.out;
import java.util.Scanner;
import java.text.NumberFormat;
public class ThankYouMailMerge{
public static void main(String[] args){
double amt= 0;
String name="";
Scanner keyboard = new Scanner(System.in);
name="";
out.println("Th... | true |
90bc37342dadb1c212d30642cf3b6c2c49dc3924 | Java | Andiekistner95/Array_Matriz | /Array_Matriz/src/exercicio/numero17/Classe.java | ISO-8859-1 | 805 | 3.9375 | 4 | [] | no_license | /*
* Criar um array com 10 posies, com valores de 1 a 10 sequenciais. Criar um array
de 5 posies. Popular o segundo array somente com os valores mpares do
primeiro array utilizando for. Imprimir o segundo array para verificar se o algoritmo
funcionou.
*/
package exercicio.numero17;
public class Clas... | true |
2ccd07363e303a865b5efed6b957bb206ebcb8b6 | Java | gaohe1227/othsers | /datamg/src/net/zz/sys/action/LogAction.java | UTF-8 | 740 | 1.804688 | 2 | [] | no_license | package net.zz.sys.action;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;
import net.zz.sys.model.Log;
import net.zz.sys.service.LogService;
import net.zz.utils.base.action.BaseAction;
/... | true |
aaecdf17b5a8660fc4f81a20d1cea7be9c30cbd7 | Java | harish02-11-1996/Area | /interface/src/hm.java | UTF-8 | 484 | 2.75 | 3 | [] | no_license |
public class hm
{
public static void main(String[] args) {
student dref1=new student();
teacher dref2=new teacher();
school dref3=new school();
System.out.println("the details of the student is: ");
dref1.getdetails();
dref1.getaddress();
System.out.println("the details of the teacher is:")... | true |
f7efbff9381f4ba3609816ce3229b64f6b282426 | Java | OpenMake-Software/svn-importer | /org.polarion.svnimporter.main/src/org/polarion/svnimporter/main/internal/MainConfig.java | UTF-8 | 13,429 | 1.65625 | 2 | [] | no_license | /*
* Copyright (c) 2004, 2005 Polarion Software, All rights reserved.
* Email: community@polarion.org
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. Co... | true |
e3576fb8da89d641ab1747641dc8dbb2b1c806d1 | Java | LLLay/shopping | /src/test/com/tt/o2o/dao/ShopDaoTest.java | UTF-8 | 2,821 | 2.15625 | 2 | [] | no_license | package com.tt.o2o.dao;
import com.tt.o2o.BaseTest;
import com.tt.o2o.entity.Area;
import com.tt.o2o.entity.PersonInfo;
import com.tt.o2o.entity.Shop;
import com.tt.o2o.entity.ShopCategory;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Date;
import java.util.Li... | true |
2eac9e9857792cda8992543c33b04f48db5b856d | Java | kobel-sidney/nicbrainweb | /src/main/java/br/com/kolss/service/ClassificacaoOcorrenciaServiceImpl.java | UTF-8 | 5,596 | 2.28125 | 2 | [] | no_license | package br.com.kolss.service;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.codec.binary.Base64;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springfr... | true |
92beba198031b2b402c218d284b8af35cab05e76 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_1b6bc7f280073aedb27ee171b0930b61792db2e3/Method/2_1b6bc7f280073aedb27ee171b0930b61792db2e3_Method_t.java | UTF-8 | 924 | 2.171875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.syr.bytecast.jimple.api;
import edu.syr.bytecast.amd64.api.instruction.IInstruction;
import edu.syr.bytecast.amd64.api.output.MemoryInstructionPair;
import java.util.ArrayList;
import java.util.L... | true |
31b872968044ea713936b668e5ff5364844d9527 | Java | fmaylinch/translator | /src/main/java/com/codethen/translator/api/model/TranslateResponse.java | UTF-8 | 221 | 1.851563 | 2 | [] | no_license | package com.codethen.translator.api.model;
public class TranslateResponse {
public String text;
public TranslateResponse() {
}
public TranslateResponse(String text) {
this.text = text;
}
}
| true |
645a793145413f435d40617dcdc7e5105727d79d | Java | keerthivrao/EduAdmin | /src/com/db/access/DBEngine.java | UTF-8 | 18,287 | 2.5625 | 3 | [] | no_license | package com.db.access;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.List;
import java... | true |
5742c6f869a9a6b1bb90151657f2bb9ee56cccaa | Java | dmidelrey/LabsITMO | /src/ru/lab/commands/ExecuteScript.java | UTF-8 | 2,781 | 2.65625 | 3 | [] | no_license | package ru.lab.commands;
import ru.lab.client.Client;
import ru.lab.client.CommandData;
import ru.lab.controller.FlatController;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class ExecuteScript extends Command{
private CommandData... | true |
4bf50d00fa9483a47caeca6de8bfbe6030ecd5e0 | Java | delta-G/DiscoReefCalc | /src/dosingcomputer/Preferences.java | UTF-8 | 6,622 | 2.578125 | 3 | [] | no_license | /** Copyright (C) 2015 David Caldwell disco47dave at gmail dot com
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... | true |
df28520ce264afe17e0c1e65e59f1e6907e44b67 | Java | Sophia-Okito/GAD-Project | /AndroidStudioProjects/MyGadsProject/app/src/main/java/com/funcrib/gadsapp/view/fragment/SubmitResultDialogFragment.java | UTF-8 | 1,919 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.funcrib.gadsapp.view.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
impor... | true |
7604ca60c97170d28306ee44fee2eb02556590a3 | Java | YobertyAlej/Code4Venezuela | /TwitterHelpHackaton/app/src/main/java/hackaton/com/twitterhelphackaton/interfaces/HTTPResponse.java | UTF-8 | 544 | 2.40625 | 2 | [
"MIT"
] | permissive | package hackaton.com.twitterhelphackaton.interfaces;
import android.util.Log;
public abstract class HTTPResponse {
private static boolean debug = true;
public void onSuccess(String data){};
public void onForbidden(String data){
if(debug)
Log.e("HTTPResponse", "FORBIDDEN");
}
... | true |
818170fb46fbf9a4df585ff9ecc9340165d8ac79 | Java | MarkSmirnov13/MusicCatalog | /src/main/java/services/CollectionService.java | UTF-8 | 1,015 | 2.40625 | 2 | [
"MIT"
] | permissive | package services;
import dao.Impl.CollectionDAOImpl;
import models.Collection;
import java.sql.SQLException;
import java.util.List;
public class CollectionService {
CollectionDAOImpl collectionDAOImpl = new CollectionDAOImpl();
public void saveCollection(Collection collection) {
collectionDAOImpl.sa... | true |
a83de72cf8cfb831d69d0b2957402bd3e8eacbe0 | Java | Simon199201/SSMTest | /src/main/java/com/itheima/domain/User.java | UTF-8 | 1,543 | 2.3125 | 2 | [] | no_license | package com.itheima.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
public class User {
private int id;
private String username;
private String password;
@DateTimeFormat(pattern="yy... | true |
6566e4e25913bb90d0c555878807942280e17746 | Java | hater4u/StackCalculator | /src/main/java/OperationFactory.java | UTF-8 | 1,350 | 2.5625 | 3 | [] | no_license | import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Logger;
import Exception.*;
import static java.util.logging.Logger.getLogger;
public class OperationFactory {
private volatile static OperationFactory instance;
private Properties properties = new Pr... | true |
f81f16aa04919fb3b9e24cd7ad24ecb7a2179664 | Java | yingcanxia/RPC | /rpc-client/src/main/java/cn/shadow/discovery/ServiceDiscoveryWithZK.java | UTF-8 | 2,120 | 2.546875 | 3 | [] | no_license | package cn.shadow.discovery;
import java.util.ArrayList;
import java.util.List;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.recipes.cache.PathChildrenCache;
import org.apache.curator.framework.recipes.ca... | true |
503aca79ed6e3df6e63324b4cae20bb6261e715e | Java | fighting-one-piece/j2ee-integration | /integration-core/src/main/java/org/platform/modules/abstr/web/utils/JsonReturnHandler.java | UTF-8 | 2,015 | 2.515625 | 3 | [] | no_license | package org.platform.modules.abstr.web.utils;
import java.lang.annotation.Annotation;
import javax.servlet.http.HttpServletResponse;
import org.platform.utils.json.CustomerJsonSerializer;
import org.platform.utils.json.JSON;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
... | true |
f524aea1808646f4d7a2d90ee1f982a3068cae3d | Java | zanguixuan/MiaoHi | /app/src/main/java/com/haiqiu/miaohi/response/VideoAndImgResponse.java | UTF-8 | 343 | 1.835938 | 2 | [] | no_license | package com.haiqiu.miaohi.response;
import com.haiqiu.miaohi.bean.ImgDetail;
/**
* Created by ningl on 16/12/17.
*/
public class VideoAndImgResponse extends BaseResponse {
private ImgDetail data;
public ImgDetail getData() {
return data;
}
public void setData(ImgDetail data) {
thi... | true |
017f766709215e05d5d6290e4ed08b0faa9f9c27 | Java | AdrianDau/Proyecto | /src/es/adrian/models/Producto.java | UTF-8 | 929 | 2.609375 | 3 | [] | no_license | package es.adrian.models;
public class Producto {
private String nombreProducto;
private double precio;
private Categoria categoria;
public Producto(String nombreProducto, double precio, Categoria categoria) {
this.nombreProducto = nombreProducto;
this.precio = precio;
this.cat... | true |
dbf9afdc5ac8ac512d4b95cd82db9797bae18578 | Java | JNM-2T17/SystemScape_CODE | /src/model/Project.java | UTF-8 | 1,218 | 3.328125 | 3 | [] | no_license | package model;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
public class Project {
private String name;
private Date startDate;
private Date endDate;
private ArrayList<Employee> employees;
public Project(String name, Date startDate, Date endDate){
setName(name);
setStartD... | true |
7659b391085f1ab5fc22b1e532248cc54efd3132 | Java | liuzhengnan666/LLC_P | /app/src/main/java/com/example/administrator/llc_p/fragment/HelpFragment.java | UTF-8 | 6,158 | 1.875 | 2 | [] | no_license | package com.example.administrator.llc_p.fragment;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import androi... | true |
e0bceb92ebac695004837f7e354a9abb36b3c230 | Java | junbokim/VendingMachine | /src/test/java/R16A_Group_6_A2/ShoppingCartTest.java | UTF-8 | 3,035 | 3.015625 | 3 | [] | no_license | package R16A_Group_6_A2;
import java.util.HashMap;
import java.util.List;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jup... | true |
f6d3f349696135e6f6210ff2c30b24f6ebbc7ece | Java | broding/director | /src/nl/basroding/director/controllers/Controller.java | UTF-8 | 1,234 | 2.390625 | 2 | [] | no_license | package nl.basroding.director.controllers;
import nl.basroding.director.Director;
import nl.basroding.director.models.ModelCollection;
import nl.basroding.director.views.ContentView;
import nl.basroding.director.views.SideMenuView;
import nl.basroding.director.views.TopbarView;
import nl.basroding.director.views.View;... | true |
a81bc9e7a7adbe60d048151be300420b16a9cdf2 | Java | mdalmamuncse/CardView | /app/src/main/java/com/example/cardview/MainActivity.java | UTF-8 | 1,716 | 2.40625 | 2 | [] | no_license | package com.example.cardview;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickListener ... | true |