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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1a6f1184291741853c6fc2f715fc0020ffd55369 | Java | AngLi2/DesignPatterns | /src/abstractfactory/demo/AbstractWhiteHuman.java | UTF-8 | 291 | 3.140625 | 3 | [] | no_license | /**
*
*/
package abstractfactory.demo;
/**
* @author Ang Li
*
*/
public abstract class AbstractWhiteHuman implements Human{
public void getColor() {
System.out.println("The color of white human is white");
}
public void talk() {
System.out.println("White human talk");
}
}
| true |
a1a8db1bb745a8011631cbd73fcad8be3a36ca22 | Java | vitaliy-zinchenko/spring-batch-example | /src/main/java/zinchenko/sb/dao/ProductDao.java | UTF-8 | 174 | 1.8125 | 2 | [] | no_license | package zinchenko.sb.dao;
import zinchenko.sb.model.Product;
/**
* Created by zinchenko on 30.08.14.
*/
public interface ProductDao {
void save(Product product);
}
| true |
8e10f4531cd85b2220f58f1726022cfe8a468be0 | Java | HJRumbo/PrimerParcial | /app/src/main/java/com/example/primerparcial/NotaActivity.java | UTF-8 | 10,409 | 2.28125 | 2 | [] | no_license | package com.example.primerparcial;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
... | true |
cf640bc7c9926cef150a03e65658708636efafcf | Java | shiyouping/rtalpha | /server/base-parent/base-core/src/main/java/com/rtalpha/base/core/constant/CacheName.java | UTF-8 | 299 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package com.rtalpha.base.core.constant;
/**
* @author Ricky
* @since Apr 16, 2017
*
*/
public interface CacheName {
String CUSTOMER = "customer";
String AGENT = "agent";
String VERIFICATION_CODE = "verificationCode";
String PACKAGE_TOUR = "packageTour";
String MULTIPART = "multipart";
}
| true |
3cf8d9a4045259ed2b2d633a147beea5f507f11c | Java | asosa9991/sprintboot_botocamp | /src/test/java/com/trade/autumnboot/utils/FileUtilsTest.java | UTF-8 | 2,275 | 2.21875 | 2 | [] | no_license | package com.trade.autumnboot.utils;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.Ru... | true |
36bf0c434507310e0b70d206a47d191d41c40f3c | Java | shaiRos/Scholarship-System | /ScholarshipSystem code/src/ScholarshipSystem/NotificationManager.java | UTF-8 | 7,544 | 3.09375 | 3 | [] | no_license | package ScholarshipSystem;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
/**
*
* Database that manages inst... | true |
95896b589b6d883ac0302aa40385502e309f12d1 | Java | 4effo/ipf | /commons/ihe/xds/src/main/java/org/openehealth/ipf/commons/ihe/xds/core/validate/XONValidator.java | UTF-8 | 3,185 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009 the original author or authors.
*
* 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 requi... | true |
78ab15097d33077633d0203342ab4fcfa56ff909 | Java | saurabhpandya/KarzaAssignment | /app/src/main/java/com/karzaassignment/capture/CapturedImageActivity.java | UTF-8 | 1,720 | 2.203125 | 2 | [] | no_license | package com.karzaassignment.capture;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import com.bumptech.glide.Glide;
import com.karzaassignment.R;
import com.karzaassignment.databinding.A... | true |
1a05a47893d18583ca466340ca8b9a81ed486929 | Java | arishkinnov/anovikova | /src/ru/anovikova/lesson20/WeatherService.java | UTF-8 | 1,384 | 2.296875 | 2 | [] | no_license | package ru.anovikova.lesson20;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import ru.anovikova.lesson20.dto.Location;
import ru.anovikova.lesson20.dto.ResponseFields;
import java.io.IOExce... | true |
18f49c9ca105a80b65055e0c1d8174ba4844a38f | Java | iamhge/spring_study | /spring_intro/hello-spring/src/main/java/hello/hellospring/domain/Member.java | UTF-8 | 641 | 2.734375 | 3 | [] | no_license | package hello.hellospring.domain;
import javax.persistence.*;
// @Entity : jpa가 관리하는 entity
@Entity
public class Member {
// IDENTITY 전략 : db에 값을 넣으면 db가 값을 자동으로 생성해주는 것.
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id; // 시스템이 정함
private String name; // 고객이 회원가입 시 지정
pub... | true |
88c067b2cf2ca33093145f5884ccff902091588e | Java | jfulop99/training-solutions | /src/main/java/introdate/PerformanceTest.java | UTF-8 | 535 | 3.109375 | 3 | [] | no_license | package introdate;
import java.time.LocalDate;
import java.time.LocalTime;
public class PerformanceTest {
public static void main(String[] args) {
Performance performance1 = new Performance(LocalDate.of(2020, 2, 3), "Deep Purple", LocalTime.of(18, 00), LocalTime.of(22, 00));
Performance performanc... | true |
44f9f52a3fd8e6139652b332e05c7729f6c96fec | Java | kristine-sl-bachelor/big-data-assignment | /src/test/java/b/discover/ActivityYearTest.java | UTF-8 | 3,102 | 2.53125 | 3 | [] | no_license | package b.discover;
import b.discover.c.over_50.AuthorsPublications;
import b.discover.d.activity_year.ActivityYearMapper;
import b.discover.d.activity_year.ActivityYearReducer;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop... | true |
731d44fab8a717807996bcac1189dc6363f383e1 | Java | etsugua/pacmanpp | /src/pacmanpp/GameImages.java | UTF-8 | 5,865 | 2.75 | 3 | [] | no_license | package pacmanpp;
import java.awt.Font;
import java.awt.Image;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
/**
* GameImages purpose is to hold the various game images in one single point,
* working as a Manager of sorts.
*/
public class GameIm... | true |
a2c4e1717e112133677ef6bc75d7e1379da4c72a | Java | Balnian/Extract | /src/Extract.java | UTF-8 | 4,761 | 3.0625 | 3 | [] | no_license | /**
* Created by 201250541 on 2015-04-08.
*/
import java.io.*;
public class Extract {
public static void main( String args[] )
{
if(args.length != 2)
{
System.out.println("Vous avez donnée: "+args.length+" Fichier(s) a la ligne de commande alors que nous en voulons seulement que 2 ... | true |
9ff8f94c6de03721a997fa4a0a6d292af6ae5a46 | Java | haleeexis/c-o-d-e-s | /src/linkedlists/ListNode.java | UTF-8 | 208 | 2.359375 | 2 | [] | no_license | package linkedlists;
/**
* Created by alexisherrera on 9/9/17.
*/
public class ListNode<Data> {
public ListNode<Data> next;
public Data d;
public ListNode(Data d) {
this.d = d;
}
}
| true |
89222b2039a778ee23f61c55a0a522169ba0ea5a | Java | parkje0927/SpringBoot_RESTful_webservice | /src/main/java/com/example/restfulwebservice/exception/ExceptionResponse.java | UTF-8 | 507 | 2.25 | 2 | [] | no_license | package com.example.restfulwebservice.exception;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@AllArgsConstructor //모든 객체를 갖고 있는 생성자
@NoArgsConstructor //기본 생성자
public class ExceptionResponse {
/**
* 예외가 발생한 시간
* 예외가 발생한 메세지
*... | true |
53b5d3a1afe8b25e869b74b5b4011bc64c3cb325 | Java | 426Brian/JUC | /juc-demo01/src/main/java/com/designPattern/single/SingleEnum.java | UTF-8 | 159 | 2.3125 | 2 | [] | no_license | package com.designPattern.single;
public enum SingleEnum {
// 枚举元素本身就是单列
INSTANCE;
public void singleOperation(){
}
}
| true |
951b38bef02b13273c0e4fc6386da003add97ca0 | Java | edorn18/KeyLimePie | /m5/given_parser/ast/FuncParamInstruction.java | UTF-8 | 506 | 2.265625 | 2 | [] | no_license | package ast;
import java.util.Hashtable;
import java.util.List;
import java.io.PrintWriter;
public class FuncParamInstruction
implements Instruction
{
private final String varName;
private final LLVMType varType;
public FuncParamInstruction(String varName, LLVMType varType) {
this.varName = varName... | true |
f1bb379f65e0fe722790e370103d877d9e2f4d1e | Java | jadzalla/fermat-unused | /fermat-p2p-api/src/main/java/com/bitdubai/fermat_p2p_api/layer/p2p_communication/commons/enums/FermatPacketType.java | UTF-8 | 3,958 | 2.34375 | 2 | [
"MIT"
] | permissive | /*
* @#FMPPacketType.java - 2015
* Copyright bitDubai.com., All rights reserved.
* You may not modify, use, reproduce or distribute this software.
* BITDUBAI/CONFIDENTIAL
*/
package com.bitdubai.fermat_p2p_api.layer.p2p_communication.commons.enums;
/**
* The enum <code>com.bitdubai.fermat_p2p_api.layer.p2p_commu... | true |
c8aff828806f4b125ae84b85000d2b31f3f48449 | Java | synlHR/meizuMall | /src/main/java/com/jojo/pojo/Address.java | UTF-8 | 2,147 | 2.296875 | 2 | [] | no_license | package com.jojo.pojo;
import java.io.Serializable;
import java.util.List;
public class Address implements Serializable {
private Integer aid;
private Integer uid;
private String name;
private String tel;
private String province;
private String city;
private String country;
priv... | true |
4c23aa25963e7cb096cae6aa9fa98662aa7bbfc2 | Java | 29592/IOT | /KPC IoT 공유/02 JSP Servlet/02 lab/lab12 문제 20180206/src폴더에복사하세요/jdbcex/emp/EmpDAO.java | UTF-8 | 3,329 | 2.671875 | 3 | [] | no_license | package jdbcex.emp;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import jdbcex.DBManager;
public class EmpDAO {
public EmpVO getEmp(int EmpNo) {
Connection conn = DBManager.getConnection();
EmpVO vo = null;
... | true |
915a8dd9c110be195316045f159c8b3dc8ebb94e | Java | tovikfekih/L3-Miage-depot-TP | /POO/TP4-1/src/Epaisseur.java | UTF-8 | 43 | 1.585938 | 2 | [] | no_license |
public enum Epaisseur {
LARGE , ETROIT
}
| true |
bea51212a2e9c3f1867bbdca293d46da7850f452 | Java | nebbii/HetFruitHuisje | /src/hetfruithuisje/db.java | UTF-8 | 1,002 | 2.375 | 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 hetfruithuisje;
import java.sql.*;
import javax.swing.*;
/**
*
* @author Sammy Guergachi <sguergachi at gmail.com>
*/
pu... | true |
273c50767281a5f431da42d3c71cbd0e908d1186 | Java | mbbush/BartRunnerAndroid | /app/src/main/java/com/dougkeen/bart/networktasks/FareContentHandler.java | UTF-8 | 1,094 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.dougkeen.bart.networktasks;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.HashMap;
import java.util.Map;
public class FareContentHandler extends DefaultHandler {
public FareContentHandler() {
super();
}
pri... | true |
6b3089e2a5f3ea4882134e4586a472d824f729e5 | Java | badrjee/Editique_TEST_2 | /src/main/java/fr/meg/batch/service/ClientServiceImpl.java | UTF-8 | 711 | 2.21875 | 2 | [] | no_license | package fr.meg.batch.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import fr.meg.batch.dao.ClientRepository;
import fr.meg.batch.domain.Client;
public class ClientServiceImpl implements ClientService {
@Autowired
private ClientRepository... | true |
bf2f938013e617aa4af4e29974bb786fdeb0d5b6 | Java | Saffierr/inleiding-java | /src/h04/Opdracht7.java | UTF-8 | 766 | 3.21875 | 3 | [] | no_license | package h04;
import java.awt.*;
import java.applet.Applet;
public class Opdracht7 extends Applet
{
public void paint(Graphics g)
{
setSize(1000, 1000);
setBackground(Color.GRAY);
g.setColor(Color.BLACK);
g.fillRect(150, 200, 150, 110);
g.drawRect(150, 200, 150, 110);
... | true |
c89520db542bed5813253b87297a95edee676424 | Java | SorghumBlue/supermarket | /src/main/java/com/kgc/dao/BillMapper.java | UTF-8 | 364 | 1.828125 | 2 | [] | no_license | package com.kgc.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.kgc.pojo.Bill;
public interface BillMapper extends BaseMapper<Bill> {
int deleteByPrimaryKey(Long id);
int insertSelective(Bill record);
Bill selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Bill record);... | true |
e79a38637ea041f233791eb269273511e47c1008 | Java | Tashimadilrukshi/InsertionSort | /InsertionSorting.java | UTF-8 | 899 | 3.390625 | 3 | [] | no_license | import java.util.Scanner;
public class InsertionSorting {
public static void insertionSorting(int arr[]){
int k ,temp,j ;
for(int i=1;i<arr.length;i++){
k=arr[i];
j=i-1;
while(j>=0 && k<arr[j]){
temp=arr[j+1];
... | true |
e47ea1bb220376e44ac92e244ebc542d4799d3cb | Java | xhom/vue-creater | /src/main/java/com/vz/vue/model/Column.java | UTF-8 | 2,736 | 2.703125 | 3 | [] | no_license | package com.vz.vue.model;
/**
* 字段实体
* @auhtor visy.wang
*/
public class Column {
private String name; //字段名
/**
* 关于字段注释的约定:
* 1.如果注释不是一个正确格式的json对象,则不提取任何信息,整个注释会被当作字段的描述
* 2.如果注释内容为json对象并符合以下约定则会提取其中的信息,并在页面生成时应用:
* {
* "desc": "姓名", //字段描述
* "input": "select", //控件... | true |
b249b0c6fc5919514a82aff51393d8d5515065ab | Java | Jackalantern29/QubeMC | /QCRewards/src/com/Jackalantern29/QCRewards/Listeners/Listeners.java | UTF-8 | 435 | 1.992188 | 2 | [] | no_license | package com.Jackalantern29.QCRewards.Listeners;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.event.Listener;
public class Listeners {
static List<Listener> list = new ArrayList<Listener>();
public static List<Listener> getListeners() {
list.clear();
list.add(new JoinListen... | true |
36739628f33c92471b2e7745526184fd3428b58b | Java | SYYP/knowledgeshare | /app/src/main/java/www/knowledgeshare/com/knowledgeshare/utils/MyContants.java | UTF-8 | 4,902 | 1.664063 | 2 | [] | no_license | package www.knowledgeshare.com.knowledgeshare.utils;
public class MyContants {
public static String FILENAME = "config.xml";
public static String BASEURL = "http://39.107.91.92:82/";
public static String LXKURL = "http://39.107.91.92:82/api/v2/";//47.104.173.223/api/v2/index
public static String IMGBAS... | true |
6ae050088bcfc41d3f3d1dc3b571ea577f6f3fd8 | Java | chapie1/unbbayes | /unbbayes.prs.mebn/src/test/java/unbbayes/prs/mebn/ontology/StartrekTestSet.java | UTF-8 | 2,947 | 2.21875 | 2 | [] | no_license | package unbbayes.prs.mebn.ontology;
import java.io.File;
import java.text.NumberFormat;
import java.util.Locale;
import unbbayes.io.mebn.UbfIO;
import unbbayes.prs.mebn.MultiEntityBayesianNetwork;
import unbbayes.prs.mebn.kb.KnowledgeBase;
import unbbayes.prs.mebn.kb.powerloom.PowerLoomKB;
import unbbayes.p... | true |
265276fbff8cc94fa0662b1ea04140ba000357fb | Java | LirolaJose/cerebro-back | /src/test/java/com/dataart/cerebro/service/AdvertisementOrderServiceTest.java | UTF-8 | 2,814 | 2.109375 | 2 | [] | no_license | package com.dataart.cerebro.service;
import com.dataart.cerebro.controller.dto.AdvertisementOrderDTO;
import com.dataart.cerebro.domain.*;
import com.dataart.cerebro.email.EmailService;
import com.dataart.cerebro.repository.AdditionalServiceRepository;
import com.dataart.cerebro.repository.AdvertisementOrderRepository... | true |
d9e6d6f7a313cfb6c92844e2992f0ef0e265ded9 | Java | harperjiang/LeetCode | /src/verify_preorder_sequence_in_binary_tree/Solution.java | UTF-8 | 763 | 2.921875 | 3 | [] | no_license | package verify_preorder_sequence_in_binary_tree;
public class Solution {
int verify(int[] preorder, int pointer, int lb, int ub) {
if (pointer >= preorder.length) {
return 0;
}
int root = preorder[pointer];
if (root > ub || root < lb) {
return 0;
}
... | true |
d5933eea26d0cd235f54481519c120ac2be90d9d | Java | adowning/rocky | /android_bak_newest/app/src/main/java/com/andrews/app/tracker/ParseSyncService.java | UTF-8 | 15,829 | 1.875 | 2 | [] | no_license | ///*
// * Copyright (c) 2017 Bartek Fabiszewski
// * http://www.fabiszewski.net
// *
// * This file is part of μlogger-android.
// * Licensed under GPL, either version 3, or any later.
// * See <http://www.gnu.org/licenses/>
// */
//
//package com.andrews.app.tracker;
//
//import android.annotation.SuppressLint;
//impo... | true |
774bc6522e662c839ce2eb51b75b7444a5ab1be9 | Java | whtss/javashare | /src/A154PolymorphicPet.java | UTF-8 | 98 | 2.171875 | 2 | [] | no_license | public class A154PolymorphicPet {
String name;
public void eat() {//宠物要吃
}
}
| true |
3df936e95735185bdadde20b8b12d2ca935055a1 | Java | IsabelManiega/Functions | /app/src/main/java/com/functions/Theme4ExercActivity.java | UTF-8 | 4,105 | 1.960938 | 2 | [] | no_license | /*
* Created by Isabel Maniega on 27/07/18 10:56
* Copyright (c) 2018. All rights reserved.
*
* Last modified 27/07/18 10:56
*/
package com.functions;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.design.widget.FloatingActionButton;
import android.s... | true |
1a20baac64a2d82addf6a16ffea748f1a4d56092 | Java | AlanSolohaga/Mafalda | /app/src/main/java/com/project/mafalda/model/SonidoClick.java | UTF-8 | 697 | 2.1875 | 2 | [] | no_license | package com.project.mafalda.model;
import android.content.Context;
import android.media.MediaPlayer;
import android.provider.MediaStore;
import com.project.mafalda.R;
public class SonidoClick {
private static SonidoClick mIntance;
private MediaPlayer click;
private static Context mContext;
public S... | true |
b6004b8151fc688a8936e351083424858ec9d744 | Java | mdardinier/M2_API_REST_Plateforme_Cours | /plateforme-cours/src/main/java/fr/ul/miage/m2/sid/plateformecours/entity/Utilisateur.java | UTF-8 | 2,573 | 2.3125 | 2 | [] | no_license | package fr.ul.miage.m2.sid.plateformecours.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id... | true |
845451d3bfeca90c9d6fc7d2007171a0d2c4b90c | Java | SoftverInzenjeringETFSA/SI2014Tim5 | /Implementacija/App/Blagajna/src/main/java/ba/unsa/etf/si/tim5/blagajna/gui/ZaboraviliLozinkuWindow.java | UTF-8 | 5,213 | 2.3125 | 2 | [] | no_license | package ba.unsa.etf.si.tim5.blagajna.gui;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
i... | true |
106a9ddd832238b0c85086b620ae96ce83aa5b4a | Java | DevBoost/EMFText | /Incubation/org.emftext.commons.jsglr/src-strategoxt/org/strategoxt/imp/runtime/parser/ast/AstNode.java | UTF-8 | 6,621 | 2.40625 | 2 | [] | no_license | package org.strategoxt.imp.runtime.parser.ast;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import lpg.runtime.IAst;
import lpg.runtime.IAstVisitor;
import lpg.runtime.IPrsStream;
import lpg.runtime.IToken;
import org.eclipse.core.resources.IResource;
import org.spoofax.interpreter.t... | true |
977d1b1247225204c354d5f435c1568fa1758848 | Java | TuratoDavide/UdA | /src/java/myapp/dao/TeamDaoImpl.java | UTF-8 | 1,789 | 2.328125 | 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 myapp.dao;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate... | true |
067b06b7223820f6bd2555a65cfb974884420880 | Java | sumitporwal/Faculty-Information-System | /Faculty_Management_System/src/main/java/Service/Bus_Service_Imp.java | UTF-8 | 1,674 | 2.25 | 2 | [] | no_license | package Service;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
ea0696a20c1c48df8b06dbbab5b7bd9e5a72c4d4 | Java | manueljscruz/Gescar | /app/src/main/java/g3w/gescarcopytest/fragments/CarFragment.java | UTF-8 | 2,432 | 2.234375 | 2 | [] | no_license | package g3w.gescarcopytest.fragments;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View... | true |
70a4752e7e040edaa09e626a297d1ef7e27c1559 | Java | shivam87430/Spring-Jpa-Demo | /src/test/java/Main.java | UTF-8 | 3,519 | 2.796875 | 3 | [] | no_license | import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import services.JPAServices;
import java.util.Arrays;
public class Main ... | true |
3de4200aa26e9ee539973cc977b83bca9ebaccdd | Java | FionaDong/deppDemo | /com.caribe.stone.core/src/test/java/foo/domain/Person.java | UTF-8 | 1,488 | 2.515625 | 3 | [] | no_license | package foo.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.PrePersist;
import javax.persistenc... | true |
1ae7ba9a007f7f74ca22e3ba477620001955d90c | Java | Goddywu/juc | /designPatterns/singleton/Single04.java | UTF-8 | 360 | 2.703125 | 3 | [] | no_license | package singleton;
// 静态内部类,刚加载类的时候不加载静态内部类,类加载器只加载一次
public class Single04 {
private Single04() {
}
private static class Single04Holder {
private final static Single04 instance = new Single04();
}
public static Single04 getInstance() {
return Single04Holder.instance;
}
}
| true |
455f442f2e9094a46b29e13ec9a7fa45ab24285c | Java | luimuniz/Secretery-System-BETA | /src/java/com/secretarysystem/bean/FielBean.java | UTF-8 | 5,258 | 1.945313 | 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.secretarysystem.bean;
import com.secretarysystem.dao.CidadeDAO;
import com.secretarysystem.dao.FielDAO;
import co... | true |
605407e0d33b6ff890a06cdebcf94fb99719a5a0 | Java | stephendengbl/toutiao | /heima-leadnews-service/heima-leadnews-article/src/main/java/com/heima/article/dto/ArticleDto.java | UTF-8 | 282 | 1.601563 | 2 | [] | no_license | package com.heima.article.dto;
import com.heima.article.entity.ApArticle;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class ArticleDto extends ApArticle {
/**
* 文章内容
*/
private String content;
}
| true |
ba5343c81407e56a490c5719b5f813377d78fe4c | Java | rajeshchandrane/webhook | /webhook/src/Zwayam/WebhookController.java | UTF-8 | 1,900 | 2.203125 | 2 | [] | no_license | package Zwayam;
import java.io.IOException;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframewor... | true |
5dacd8dbba56b41f8cc214a8471963b6df712ddf | Java | gouree/Java.Session5.Assignment2 | /Session5Assignment2/src/InterfaceExample.java | WINDOWS-1252 | 4,931 | 4.0625 | 4 | [] | no_license |
/*
* Create an interface Stack in package myPack with following methods
Methods:
void push(int I)
int pop()
Create two sub classes inheriting the Stack interface.
class FixedStack that can accept a fixed numbers of integers. The size of the Stack will be specified
in the constructor. If the number of intege... | true |
ec5445fd8a82d3179dc5b9bb504abfb4382c4f91 | Java | Vaculik/automated-timetabling | /src/main/java/cz/muni/fi/parser/StructuralModelParserImpl.java | UTF-8 | 5,432 | 2.75 | 3 | [] | no_license | package cz.muni.fi.parser;
import cz.muni.fi.model.structural.StructuralModel;
import cz.muni.fi.model.structural.dual.Arm;
import cz.muni.fi.model.structural.dual.DualGraph;
import cz.muni.fi.model.GeographicCoordinates;
import cz.muni.fi.model.structural.dual.Site;
import cz.muni.fi.model.structural.primal.Link;
imp... | true |
0650d4543d4adbbc4017632b043ec28cf22fa887 | Java | giupardeb/FootballGame | /parser/src/parseFromCSV.java | UTF-8 | 5,988 | 3.0625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class parseFromCSV {
/**
* @param args
*/
public static void main(String[] args) {
try {
read("database.csv");
} catch (IOException e) {
e.printStackTrace();
}
}
// NOTE
// Non so se utilizzi questo... | true |
3d1c2eb882501c1185d3dbbaa45c51c8257dfede | Java | forseed/concurrency_demo | /src/main/java/demo/threadgroup/ThreadGroupCreate.java | UTF-8 | 1,787 | 3.375 | 3 | [] | no_license | package demo.threadgroup;
import java.util.Arrays;
/**
* 线程组相关api
*/
public class ThreadGroupCreate {
public static void main(String[] args) {
//use the name
ThreadGroup tg1 = new ThreadGroup("TG1");
new Thread(tg1, "t1") {
@Override
public void run() {
... | true |
91f4ba479c07a418c93c723ea6350cdda70ec8a0 | Java | samkingsly07/MyClassAssistant | /myclassassistant/sources/assistant/genuinecoder/s_assistant/main/notes/NoteCreate.java | UTF-8 | 5,289 | 2 | 2 | [] | no_license | package assistant.genuinecoder.s_assistant.main.notes;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.p003v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.wid... | true |
6c619fc766ee65848bc0ccdfe74c492a9e5cb0b1 | Java | henrypoter/rocketmq-spring | /springmvcTemplate2/src/main/java/com/study/listener/MySecondBizConsumer.java | UTF-8 | 2,008 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
20fbc4e675e1c8b86ac97b453e5e1fd79f81afaa | Java | NCIEVS/evsrestapi-client-SDK | /java-examples/src/test/java/gov/nih/nci/evs/api/test/SearchTests.java | UTF-8 | 7,834 | 2.3125 | 2 | [
"BSD-3-Clause"
] | permissive |
package gov.nih.nci.evs.api.test;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import gov.nih.nci.evs.api.client.EvsRestClient;
import gov.nih.nci.evs.api.model.ConceptResultList... | true |
e5f1da84c65d286c4b1c1217b53e1070166aa1be | Java | lolson/bash_scripts | /scripts/java/TestMBeanServiceMonitor.java | UTF-8 | 2,662 | 2.390625 | 2 | [] | no_license | import java.util.*;
import java.util.Hashtable;
import java.io.IOException;
import javax.management.MBeanServerConnection;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import java.lang.management.MemoryMXBean;
import java.... | true |
ce9378429f9684ff37a9ccc55807237ec3a567be | Java | jldupont/gwt-gephi-toolkit | /src/org/gephi/graph/dhns/event/AbstractEvent.java | UTF-8 | 1,432 | 1.960938 | 2 | [] | no_license | /*
Copyright 2008-2010 Gephi
Authors : Mathieu Bastian <mathieu.bastian@gephi.org>
Website : http://www.gephi.org
This file is part of Gephi.
Gephi is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either v... | true |
28eaac22437f0c75cadc6ac0687865d67c744eff | Java | mkorzeniowska/GeneratorNPC | /NpcWeb/NpcWeb/src/utility/NpcInsert.java | UTF-8 | 1,565 | 2.65625 | 3 | [] | no_license | package utility;
import java.sql.*;
import dataSource.NpcConProvider;
import model.Person;
public class NpcInsert {
private static String CREATE = String.format(
"INSERT [dbo].[Person] ([personID], [plec], [imie], [nazwisko], [rasa], [podrasa], [klasa], [charakter], [sila], [kondycja], [zrecznosc], [inteligencja]... | true |
db85fbc03057c8fae2c372a5bf1eb737278d6565 | Java | atomixnmc/pecia | /src/main/java/nl/flotsam/pecia/ItemizedList.java | UTF-8 | 1,657 | 2.484375 | 2 | [] | no_license | /*
* Copyright 2008 the original author or authors.
*
* 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 b... | true |
a4f650759c7b596452282d7632dad9a7dcd3dda8 | Java | zeeem/zeeem.AndroidProject.projotno-elearning | /app/src/main/java/com/jeeon/zeeem/projotnoelearning/SelectTreatment.java | UTF-8 | 23,129 | 2.171875 | 2 | [] | no_license | package com.jeeon.zeeem.projotnoelearning;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
imp... | true |
f4c742696cba03a1c055e30d29d0d564049ad44f | Java | joaope-code/lista-1 | /src/com/company/Exercicio16.java | UTF-8 | 538 | 3.125 | 3 | [] | no_license | package com.company;
import java.util.Scanner;
public class Exercicio16 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Qual o tamanho da área a ser pintada?");
int area = scan.nextInt();
int ap = area/3;
int tinta = ... | true |
a36959ec0293d264031ae616a99b7bc3a74b6774 | Java | is8bella/IntroToJavaWorkshop | /src/MadLibs.java | UTF-8 | 579 | 2.78125 | 3 | [] | no_license | import javax.swing.JOptionPane;
public class MadLibs
{
public static void main(String[] args)
{
/*String verb = JOptionPane.showInputDialog("Please enter a verb in past tense");
String adj = JOptionPane.showInputDialog("Please enter an adjective");
String noun = JOptionPane.showInputDialog("Please enter a no... | true |
ba36f2091ed34ad92b53417ae5474ae89ac5a173 | Java | gujiacun/Homework | /20170427/src/com/_520it/pss/test/MemberDAOTest.java | UTF-8 | 2,559 | 3.234375 | 3 | [] | no_license | // 需求:创建MemberDAO的测试类,测试IMember的各种与数据库交互的方法
// 在原有基础上,把原有的代码重构设计,把重复的代码封装成另一个类,以后要写几十个方法,操作几百张表时减少代码量
// 把Statement对象转换为PreparedStatement对象
package src.com._520it.pss.test;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Test;
import src.com._520it.pss.dao.IMemberDAO;
import src.com._520it... | true |
23a174aeca5e3223c55686838c7a642fa477f65d | Java | cbonami/mmm | /mmm-util/mmm-util-core/src/main/java/net/sf/mmm/util/math/api/NumberType.java | UTF-8 | 5,016 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.math.api;
import net.sf.mmm.util.lang.api.attribute.AttributeReadMaximumValue;
import net.sf.mmm.util.lang.api.attribute.AttributeReadMinimumValue;
/**
* Th... | true |
9f59eb20f9603b98dd70c5c7f3848beb7e184f75 | Java | BaharHaciimam/JavaCamp | /gameProject/src/gameProject/Gamer.java | UTF-8 | 1,259 | 2.8125 | 3 | [] | no_license | package gameProject;
public class Gamer {
private int gamerId;
private String firstName;
private String lastName;
private String nationalIdentity;
private int yearOfBirth;
public Gamer() {
}
public Gamer(int gamerId, String firstName, String lastName, String nationalIdentity, int yearOfBir... | true |
c32ba885a2b24026ad97945353468bf1a3b6a778 | Java | softwareengineerhub/spring | /JTA/My-Spring5-JTA-database-jms/src/main/java/com/mycompany/my/spring5/jta/org/service/BusinessService.java | UTF-8 | 1,151 | 2.078125 | 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.mycompany.my.spring5.jta.org.service;
import javax.transaction.Transactional;
import com.mycompany.my.spring5.jta.org.mode... | true |
d8f54fb03446356623fc75c32e80181c93eb82b7 | Java | VladimirZhyzhKin1/jd1-academy | /Chapter 5/Working with files/FileWrite.java | UTF-8 | 1,499 | 3.515625 | 4 | [] | no_license | import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class FileWrite {
public static void main(String[] args) throws IOException {
FileReader fileIn = null;
FileWriter fileOut = null;
try {
File name = new File("file.txt... | true |
e0797afba23f645cae4a840180c285cae3395622 | Java | YairAlfredoVargasDelgado/proyecto-impuestos | /src/main/java/com/poo/impuestovehicular/entidades/Marca.java | UTF-8 | 1,477 | 2.609375 | 3 | [] | no_license | package com.poo.impuestovehicular.entidades;
import java.util.ArrayList;
import java.util.Objects;
public class Marca extends EntidadBase {
private String nombre;
private String código;
private ArrayList<Vehículo> vehículos;
public Marca() {}
@Override
public String to... | true |
20e3cb6cbd61e632f92ef1333a43aef1394b7f97 | Java | kaiminRyan/springboot-demo | /multidatasource/src/main/java/com/ryan/springboot/service/Impl/UserServiceImpl.java | UTF-8 | 815 | 2.1875 | 2 | [] | no_license | package com.ryan.springboot.service.Impl;
import com.ryan.springboot.dao.cluster.CityDao;
import com.ryan.springboot.dao.master.UserDao;
import com.ryan.springboot.domain.City;
import com.ryan.springboot.domain.User;
import com.ryan.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Au... | true |
1a64d6da36d88e149791651b9fcd2ba3cc506a30 | Java | smalldirector/reflectionx | /src/test/java/com/pleasecode/reflectionx/data/annotations/ClassAnnotationB.java | UTF-8 | 470 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.pleasecode.reflectionx.data.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(R... | true |
ac94c2e52c1938f286239e9fdbe3b262c7e31d38 | Java | hdxszxx/ProxyCrawler | /src/main/java/com/zxx/proxycrawler/util/DailiUtil.java | UTF-8 | 1,613 | 2.484375 | 2 | [] | no_license | package com.zxx.proxycrawler.util;
import cn.hutool.json.JSONArray;
import com.zxx.proxycrawler.entity.Proxy;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
/**
* @author zxx
* @version 1.0
* @date 2019/11/20 15:47
*/
public class DailiUtil {
public static List<Pr... | true |
20c28fa5ecc3729dc5234478352302e29a2343d0 | Java | htl-leonding-project/nfc-meal-counter | /application-server/src/main/java/at/htl/mealcounter/control/ConsumationRepository.java | UTF-8 | 3,565 | 2.21875 | 2 | [] | no_license | package at.htl.mealcounter.control;
import at.htl.mealcounter.entity.Consumation;
import at.htl.mealcounter.entity.NfcCard;
import at.htl.mealcounter.entity.Person;
import io.quarkus.hibernate.orm.panache.PanacheRepository;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import javax.enterprise.context.... | true |
573491bf5cebdda1494fadd40472aea297b9b2a6 | Java | msj521/official_website | /java/sific/src/main/java/com/example/model/User.java | UTF-8 | 674 | 1.898438 | 2 | [] | no_license | package com.example.model;
import java.io.Serializable;
import java.util.Date;
import com.example.config.DateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
@Data
public class User implements Serializable {
private static final long serialVersionUID = -5881416787437583... | true |
6728498fbd0ace2e684b12b1375749da70f175e5 | Java | DSuzumoto-3333/ClueGame | /src/gameEngine/Board.java | UTF-8 | 38,578 | 3.40625 | 3 | [] | no_license | package gameEngine;
import java.util.*;
import java.util.Set;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import java.util.HashSet;
import java.io.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
/**
* Represents the game boa... | true |
a54ac1afc9b0c83f28f398c7021af1d5cbdaa187 | Java | dubanghui888888/ccm-b2b2c-service | /ccm-b2b2c-service/mb-bg-ext-core/src/main/java/com/mb/ext/core/entity/product/ProductGroupEntity.java | UTF-8 | 1,868 | 2.015625 | 2 | [] | no_license | package com.mb.ext.core.entity.product;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuer... | true |
3a90209fb4dc107252920ecca051378daf2fd477 | Java | CKIA/orm | /orm-mybatis/src/main/java/com/ckia/test/service/impl/TestService.java | UTF-8 | 670 | 2.234375 | 2 | [] | no_license | package com.ckia.test.service.impl;
import com.ckia.test.annotation.dataBase.DataBase;
import com.ckia.test.annotation.stringValideation.StringValidation;
import org.springframework.stereotype.Component;
/**
* @author ckia
* @description: 自测试自定义注解配置
* @title: ckia学习累积使用
* @projectName orm
* @date 19-6-9上午5:34
*... | true |
e44f09fd010bd9be73abac3b85c8dc937e6ffdd3 | Java | ITWater/HeiKeOnline | /src/top/aiteyou/entity/griefstore/Letter.java | UTF-8 | 1,592 | 1.992188 | 2 | [] | no_license | package top.aiteyou.entity.griefstore;
import java.io.Serializable;
import java.sql.Timestamp;
import top.aiteyou.entity.User;
/**
* 解忧杂货店-信
*@author :tb
*@version 2018年5月3日 上午10:18:46
*/
public class Letter implements Serializable{
private static final long serialVersionUID = 2144202143975229547L;
private I... | true |
2f3a449703312359b73de7ca81e7b9c76fced261 | Java | olealgoritme/smittestopp_src | /v1.1.2/decompiled/c/a/a/a.java | UTF-8 | 3,098 | 1.742188 | 2 | [] | no_license | package c.a.a;
import android.net.Uri;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable.Creator;
public abstract interface a
extends IInterface
{
public static abstract class a
extends Binder
... | true |
7331efad78a43884d78c4a1ccad6546182746bb9 | Java | Dreamwei-cn/cn.cloud | /cn.cloud.shop-api/cn.cloud.goods-api/src/main/java/cn/cloud/goods_api/util/BaseModel.java | UTF-8 | 377 | 1.898438 | 2 | [] | no_license | package cn.cloud.goods_api.util;
import java.io.Serializable;
import javax.persistence.Id;
/**
* @author Dream
* 类
*/
public class BaseModel implements Serializable ,Cloneable{
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
protected Long id;
public Long getId() {
return id;
}
... | true |
de68493363b1e0d69296cb249003658061bc0e01 | Java | ocarbonie/AnimalClass | /src/com/company/Dog.java | UTF-8 | 428 | 3.515625 | 4 | [] | no_license | package com.company;
/*
*All mice are Animals but all Animals are not mice
*/
public class Dog extends Animal {
public Dog(){
super();
System.out.println("Now I am a dog");
}
@Override
public String eat() {
return "A dog eats...";
}
@Override
public String sleep()... | true |
263c8f72456f559ed00dd0d69e488c2e304503b2 | Java | nikitagalayda/SDRefactorProject | /src/com/system/measurement/Units/Yard.java | UTF-8 | 374 | 2.40625 | 2 | [] | no_license | package com.system.measurement.Units;
import java.math.BigDecimal;
import java.util.HashMap;
import com.system.measurement.Unit;
public class Yard extends Unit {
public Yard() {
conversionMap = new HashMap<String, String>();
conversionMap.put("cm", "91.44");
conversionMap.put("in", "36");
conversionMap.put... | true |
117d39501b084a81e3f6bab28a2f5604b16fc13a | Java | loveprotocol/jdg_android-0.0.1 | /app/src/main/java/com/imhc2/plumboard/mvvm/view/activity/mypage/StampActivity.java | UTF-8 | 6,837 | 2.078125 | 2 | [] | no_license | package com.imhc2.plumboard.mvvm.view.activity.mypage;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.Html;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.TextView... | true |
5871b757104d26a7a99cfe0102a43b763cf5e7a6 | Java | sangho210/JAVA_Practice | /work/demo/src/com/day10/Test11.java | UTF-8 | 648 | 3.234375 | 3 | [] | no_license | package com.day10;
class Outer3 {
static int a=10;
int b=20;
public static class Inner {
int c=30;
public void write() {
System.out.println(a);
// System.out.println(b);
System.out.println(c);
Outer3 o = new Outer3();
System.ou... | true |
1ae4a7a4206346460806ef399a96e8bdcc98ff1d | Java | kanadara13/biz-office | /src/main/java/com/biz/office/service/material/MaterialManager.java | UTF-8 | 531 | 2.203125 | 2 | [] | no_license | package com.biz.office.service.material;
import com.biz.office.domain.material.Material;
import com.biz.office.repository.material.MaterialRepository;
import org.springframework.stereotype.Component;
import javax.inject.Inject;
@Component
public class MaterialManager {
private MaterialRepository repository;
... | true |
3df0bcaae06bacda83046c1b05d217e9e847e209 | Java | bluemixmg/upy-hibernate | /com/inverse/ing/AreadepericiaId.java | UTF-8 | 2,386 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.inverse.ing;
// Generated 09/05/2017 03:21:15 PM by Hibernate Tools 4.0.1.Final
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
* AreadepericiaId generated by hbm2java
*/
@Embeddable
public class AreadepericiaId implements java.io.Serializable {
private String descripc... | true |
c3be95652c3da4c2bf1a62d20ef6ea5a3b624784 | Java | weizhangming/Project | /mianshi/src/com/boco/demo01/PaiLie.java | UTF-8 | 895 | 3.125 | 3 | [] | no_license | package com.boco.demo01;
import java.util.ArrayList;
import java.util.List;
public class PaiLie {
private static String str="12";
public static void main(String[] args) {
List<String> list=new ArrayList<String>();
if(str!=null&&str.length()>0){
help(0,str.toCharArray(),list);
}
System.out.p... | true |
0c917d6f84b6e77c720933924fc14952acbaf93f | Java | yao-cz/SpringMVc | /src/main/java/ydp/day01/Test/Test2.java | UTF-8 | 5,652 | 2.71875 | 3 | [] | no_license | package ydp.day01.Test;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio... | true |
e2f4aef800181e505962f86a73ee3126fd16892c | Java | xumusen/hexing | /CanDao/src/com/utils/DBUtil.java | UTF-8 | 5,954 | 2.65625 | 3 | [] | no_license | package com.utils;
import java.sql.*;
import java.util.ResourceBundle;
import com.ddl.CancelOrder;
import com.ddl.Test;
import com.ddl.Test2;
import com.ddl.Testpay;
import com.ddl.Testxc;
import net.sf.json.JSONObject;
public class DBUtil {
// 这里可以设置数据库名称
/*
* private final static String URL ... | true |
d1612e74f4870f7b91c8ec06acc94812ca3272b4 | Java | daohuyenptit/Example | /NoteApp/app/src/main/java/com/example/dell/noteapp/EditNoteActivity.java | UTF-8 | 10,333 | 1.640625 | 2 | [] | no_license | package com.example.dell.noteapp;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bit... | true |
9516a2c6a8d6317e71a0557e8989c9718e2f246b | Java | pramod6019/axelaauto | /src/axela/service/Service_Target_Update.java | UTF-8 | 16,429 | 1.625 | 2 | [] | no_license | // smitha nag 28, 29 march 2013
package axela.service;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.H... | true |
9c5cf2fbb8398f58e719164fdcc4e650e8d96700 | Java | barakgonen/AvroSchemaEvolution | /src/test/java/org/barakg/avro/schema/evolution/utils/FileReadingUtils.java | UTF-8 | 1,773 | 2.609375 | 3 | [] | no_license | package org.barakg.avro.schema.evolution.utils;
import org.apache.commons.lang3.StringUtils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import jav... | true |
df94c22ead0342398c3f526b1292a7bf70f03abc | Java | Bilyana-Vatev-80/Java-OOP | /EasterRaces/src/easterRaces/repositories/interfaces/DriverRepository.java | UTF-8 | 902 | 3.015625 | 3 | [] | no_license | package easterRaces.repositories.interfaces;
import easterRaces.entities.cars.Car;
import easterRaces.entities.drivers.Driver;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class DriverRepository<T> implements Repository<Driver>{
private Collection<Driver> models;
pu... | true |
98e058588cf876e16ed8a9b34df91ee269f5e81a | Java | jasondyjohnson/chores | /src/main/java/com/jasondyjohnson/domain/ChoreReward.java | UTF-8 | 641 | 2.453125 | 2 | [] | no_license | package com.jasondyjohnson.domain;
import lombok.AccessLevel;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Set;
/**
* Created by Jason on 2/20/2016.
*/
@Data
@Entity
@NoArgsConstructor(access= AccessLevel.PROTECTED)
p... | true |
a8e910a14fb2ed8980b56786c4d95dd1ad0fe8ae | Java | QuChunhe/databus | /src/main/java/databus/util/Recorder.java | UTF-8 | 5,292 | 2.71875 | 3 | [] | no_license | package databus.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.StandardC... | true |
1ba10a603ac031fb1524e92bdeaa4d435cb41149 | Java | 2017GraduateGroup/keeln | /src/main/java/com/keeln/mybatisgenerate/query/PageResult.java | UTF-8 | 1,687 | 2.296875 | 2 | [] | no_license | package com.keeln.mybatisgenerate.query;
import com.google.common.collect.Lists;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
/**
*/
public class PageResult<T> implements Serializable {
private static final long serialVersionUID = 1L;
private List<T> pageData = Lists.new... | true |
02311cafc0008dff75bfbb7c0b7b1292087c672c | Java | julywerneck/algorithms-and-data-structures | /algorithms/06-is-java/tp01q06.java | UTF-8 | 2,841 | 3.59375 | 4 | [] | no_license | public class tp01q06 {
public static boolean isFim(String str) {
return str.length() >= 3 && str.charAt(0) == 'F' && str.charAt(1) == 'I' && str.charAt(2) == 'M';
} // Verificar se é 'FIM'
public static boolean isVogal(String str) {
boolean vogal = true;
for(int i = 0; vogal == true && i < str.length(); ... | true |
43ad042898ab7ccbc13dc11a49b3e2b352040e14 | Java | kokoharry/Portalwebsite | /src/test/java/com/kokoharry/website/manager/service/impl/CodeGenrateServiceImplTest.java | UTF-8 | 3,615 | 2.03125 | 2 | [] | no_license | package com.kokoharry.website.manager.service.impl;
import com.kokoharry.website.manager.service.ICodeGenrateService;
import com.kokoharry.website.manager.service.IMenuService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframewo... | true |
d1f140e14b6ea73c33c9bf0a4ed8fcb06a52e412 | Java | MateenKhan/SpringCore | /src/main/java/seven/AwesomeFeature.java | UTF-8 | 121 | 1.921875 | 2 | [] | no_license | package seven;
public class AwesomeFeature {
public void awesomeLogic() {
System.out.println("Awesomness!!");
}
}
| true |