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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
21e323cc0de0979b4c4174bf2175fe3c2022931a | Java | minhaj-boop/Basic-java | /Bank Acoount UI/src/bank/acoount/ui/FXMLDocumentController.java | UTF-8 | 2,107 | 2.671875 | 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 bank.acoount.ui;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import jav... | true |
4e2b572f9a956b8e7e7afeb82415538e4b9c272d | Java | i-am-ayush/care-training | /src/main/java/form/CloseJobForm.java | UTF-8 | 546 | 2.359375 | 2 | [] | no_license | package form;
import java.util.HashMap;
import java.util.Map;
public class CloseJobForm extends Form {
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
private Map<String, String> errorMessage;
public Map<String, String> vaidat... | true |
57c8699f642ef1d792ff2f94e6fada1d2cae2c44 | Java | AngeloWei/taotao | /taotao-search/search-service/src/test/java/TestSolrCloud.java | UTF-8 | 1,780 | 1.921875 | 2 | [] | no_license |
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.CloudSolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.common.SolrInputDocument;
import org.junit.Test;
import org.junit.runner.Run... | true |
edc3643c94366812149de1d9f71eb71200ffd167 | Java | Javachenxu/JavaStudy | /day_08/Extends/ExtendDmeo.java | UTF-8 | 562 | 3.625 | 4 | [] | no_license | package JavaStudySpace.day_08.Extends;
//普通人类
class Person{
public String name;
protected int age;
public void sleep() {
System.out.println("睡着");
}
}
//学生类
class Student extends Person{
String sn;
}
//老师类
class Teacher extends Person{
private String level;
}
//员... | true |
3acf3fed6baa32610332f99b2f06b5be39166a4d | Java | mazbergaz/sample_scrapper | /src/test/java/org/mazb/samplescrapper/test/ParserTest.java | UTF-8 | 2,558 | 2.03125 | 2 | [] | no_license | package org.mazb.samplescrapper.test;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mazb.samplescrapper.client.AirAsiaHttpClient;
import org.mazb.samplescrapper.model.FlightInfo;
import org.mazb.samplescr... | true |
22853ae0c2a58082297565daaf2ba16a5f110fa4 | Java | KarolUracz/GymProject | /src/main/java/pl/coderslab/gymproject/controller/HomeController.java | UTF-8 | 2,301 | 2.203125 | 2 | [] | no_license | package pl.coderslab.gymproject.controller;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validatio... | true |
1a14ea5170c6f44ee7dba9a47a0c9f6c8cfd331d | Java | vincentfack/Projet-S3 | /3DGenerator/src/autre/Error.java | ISO-8859-1 | 4,454 | 2.671875 | 3 | [] | no_license | package autre;
import graphic.Frame;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;... | true |
48acf80959b41cf9297dbf575a8a241e679f9a70 | Java | fangdongliu/market | /src/main/java/cn/fdongl/market/security/controller/SecurityController.java | UTF-8 | 1,224 | 1.90625 | 2 | [] | no_license | package cn.fdongl.market.security.controller;
import cn.fdongl.market.example.mapper.ExampleMapper;
import cn.fdongl.market.security.entity.AppUserDetail;
import cn.fdongl.market.security.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;... | true |
ab472779fb6e0061012f8d0c8617d6ef7e9dd1ed | Java | techKJE/EDUC | /src/re/kr/enav/sv40/educ/view/SV40EDUCConfigView.java | UTF-8 | 11,447 | 1.976563 | 2 | [] | no_license | /* -------------------------------------------------------- */
/** Config View of EDUC
File name : SV40EDUCConfigView.java
Author : Sang Whan Oh(sang@kjeng.kr)
Creation Date : 2017-04-04
Version : v0.1
Rev. history :
Modifier :
*/
/* -------------------------------------------------------- */
package re.kr.enav.sv40... | true |
8a2a93f0f17288f18f6595756bb857938e13007c | Java | funskydev/naturally-mod | /src/main/java/elfamoso/naturally/container/InfusionTableSlot.java | UTF-8 | 449 | 2.28125 | 2 | [] | no_license | package elfamoso.naturally.container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.container.Slot;
public class InfusionTableSlot extends Slot {
public InfusionTableSlot(IInventory inv, int slotId, int xPos, int yPos) {
super(inv, slotId, xPos, yPos);
}
/*@Override
public b... | true |
74f42c27058d0030df98d7e0a2f876c623bd626b | Java | tiagosousaoliveira/DnSistem | /src/CamadaDao/ConexaoUsuario.java | ISO-8859-1 | 5,033 | 2.421875 | 2 | [] | no_license | package CamadaDao;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import CamadaConexao.conexao;
import CamadaModel.Usuario;
public class ConexaoUsuario {
public static int retorno = 0;
public void gravarnoSQL(Usuario usuario) {
// TODO Auto-generated constructor s... | true |
0f1d7db05efbd270d441391ea7e5a96c975d2a0f | Java | wangyonglin/app | /app/src/main/java/com/khbd/data/WebcamsClient.java | UTF-8 | 2,536 | 2.296875 | 2 | [] | no_license | package com.khbd.data;
import android.content.Context;
import com.khbd.app.R;
import java.util.Iterator;
import java.util.List;
import javakit.network.JavaKitClientResponse;
import javakit.network.JavaKitClientResponseCallback;
import javakit.util.JavaKitJsonUtils;
import javakit.util.URLUtils;
public class Webcam... | true |
b8dd5b0be356e234383dc834adc6976d07dac5d9 | Java | rafaelrrs/CatalogoLivros | /app/src/main/java/com/example/catalogolivros/FormLivroActivity.java | UTF-8 | 4,197 | 2.3125 | 2 | [] | no_license | package com.example.catalogolivros;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.example.catalogolivros.models.Livro;
import com.example.catalogolivros.services.LivroAPI;
import retrofit2.... | true |
63316161bc51b1ee453056436fd0b1703a8d10e7 | Java | CMU-CREATE-Lab/terk-legacy | /TeRKClient/code/java/MyFirstRobot250/src/RSSReaders/StockComparisonChangeStatus.java | UTF-8 | 1,015 | 2.828125 | 3 | [] | no_license | package RSSReaders;
/**
* <p>
* <code>StockComparisonChangeStatus</code> represents the nine possible change states that two stocks can have in
* relation to one another.
* </p>
*
* @author Chris Bartley (bartley@cmu.edu)
*/
public enum StockComparisonChangeStatus
{
BOTH_UP("Both Up"),
STOCK_1_UP... | true |
c34528b534e7bf2b71e665c4d095d7a748385e0f | Java | ForteScarlet/simple-plusutils | /src/main/java/com/forte/utils/thread/threadutil/delay/DelayUtil.java | UTF-8 | 3,919 | 3.0625 | 3 | [] | no_license | package com.forte.utils.thread.threadutil.delay;
import com.forte.utils.thread.BaseLocalThreadPool;
import com.forte.utils.thread.threadutil.inter.delay.DelayFunc;
import java.util.concurrent.Executor;
/**
* 方法循环,类似js里面的 setInterval、setTimeout 和 clearInterval、clearTimeout<br>
* <br>
* setInterval(Object object, ... | true |
ce46f651bf709b212ce5f6c53abe8360b45b8cf9 | Java | wenjiey2/Fertilizer_Adulteration_Classification | /app/app/src/main/java/edu/illinois/fertilizeradulterationdetection/prediction/InfoActivity.java | UTF-8 | 10,339 | 1.875 | 2 | [] | no_license | package edu.illinois.fertilizeradulterationdetection.prediction;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap... | true |
a463a2dd8ca0ea3186b586d1c8c951d3c547cd2e | Java | bluedestiny/maven_project01 | /cloud-consumer2-stream/src/main/java/com/springcloud/demo/cloudconsumer2stream/CloudConsumer2StreamApplication.java | UTF-8 | 374 | 1.59375 | 2 | [] | no_license | package com.springcloud.demo.cloudconsumer2stream;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CloudConsumer2StreamApplication {
public static void main(String[] args) {
SpringApplication.run(C... | true |
acc3aaf281a6f6bc55c09bb98b1eefb0b2f29e9a | Java | cybernhl/MediaController | /controller/src/main/java/yyl/media/controller/base/ConfigurationListener.java | UTF-8 | 170 | 1.625 | 2 | [] | no_license | package yyl.media.controller.base;
/**
* Created by yuyunlong on 2017/3/13/013.
*/
public interface ConfigurationListener {
void changeScreen(boolean isFull);
}
| true |
c8ff39f56b4ed64d62414a9c5fb703cd67543956 | Java | Petrullica/siw_progettoXPR | /src/model/IndicatoreRisultato.java | UTF-8 | 892 | 2.359375 | 2 | [] | no_license | package model;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
@Entity
public class IndicatoreRisultato {
@Id
private String nome;
@ManyToMany(mappedBy = ... | true |
f079f032ae0be27048b1e89a0fd3290cf242d4d3 | Java | ppoox/algorithm | /src/baekjoon/silver4/No1920.java | UTF-8 | 772 | 3.0625 | 3 | [] | no_license | package baekjoon.silver4;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class No1920 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Set<Integer> set = new HashSet<>();
int n = sc.nextInt();
for (int i = 0; i < n; ... | true |
af58fb10985702c702148c9df5df7aa1cd582d1a | Java | Ealb/nationgen | /src/nationGen/misc/GodGen.java | UTF-8 | 1,712 | 2.578125 | 3 | [] | no_license | package nationGen.misc;
import nationGen.NationGenAssets;
import nationGen.chances.EntityChances;
import nationGen.entities.Filter;
import nationGen.nation.Nation;
import java.util.ArrayList;
import java.util.List;
public class GodGen extends ChanceIncHandler {
private Nation n;
private List<Filter> orig = ne... | true |
fc459e31c502afa142617b0438cbeb210588de2c | Java | catedrasaes-umu/NoSQLDataEngineering | /projects/es.um.unosql.subtypes/src/es/um/unosql/subtypes/m2m/UNoSQL2SubtypeUNoSQL.java | UTF-8 | 3,511 | 2.25 | 2 | [
"MIT"
] | permissive | package es.um.unosql.subtypes.m2m;
import java.util.List;
import es.um.unosql.subtypes.discovery.DependencyAnalyzer;
import es.um.unosql.subtypes.util.types.EntitySubtype;
import es.um.unosql.uNoSQLSchema.EntityType;
import es.um.unosql.uNoSQLSchema.RelationshipType;
import es.um.unosql.uNoSQLSchema.SchemaType;
impor... | true |
9a451d0ad7ed4ce3f08da80d6b5feb10842baf04 | Java | Junni17/WorkSpace | /Array Lists/src/team_and_player/Team.java | UTF-8 | 1,753 | 3.671875 | 4 | [] | no_license | package team_and_player;
import java.util.ArrayList;
public class Team {
private String name;
private ArrayList<Player> players;
public Team(String name) {
this.name = name;
this.players = new ArrayList<Player>();
}
public String getName() {
return this.name;
}
public ArrayList<Player> getPlayers() {... | true |
9cd7e404368164bfc92bcda93c9154da10ebe24b | Java | Master-lyt/xiaomishop | /src/main/java/com/xm/service/OrderService.java | UTF-8 | 263 | 1.601563 | 2 | [] | no_license | package com.xm.service;
import com.xm.entity.PageBean;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface OrderService {
PageBean<HashMap<String, Object>> getAllOrder(String name, int typeid, int page, int pagesize);
}
| true |
ff20f834db6302d0ffd92173431d596e38d0074b | Java | HPI-Information-Systems/metanome-algorithms | /HyMD/util/src/test/java/de/hpi/is/md/util/HashableTest.java | UTF-8 | 528 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package de.hpi.is.md.util;
import static org.assertj.core.api.Assertions.assertThat;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import org.junit.Test;
public class HashableTest {
@Test
public void test() {
HashFunction function = Hashing.goodFastHash(10);
assertThat(Has... | true |
7ab59cfbdba20e2e52a8a3eea1bb61e43a1efb42 | Java | shulieTech/LinkAgent | /instrument-modules/user-modules/module-shadow-job/src/main/java-quartz/org/quartz/JobKey.java | UTF-8 | 1,165 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 |
33cf399427dd925b304f0cb394b83c97e30518b6 | Java | VolxomInc/StandardOperatingProcedures | /app/src/main/java/com/gmpsop/standardoperatingprocedures/Helper/UIHelper.java | UTF-8 | 577 | 2.09375 | 2 | [] | no_license | package com.gmpsop.standardoperatingprocedures.Helper;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import java.util.Locale;
/**
* Created by BD1 on 17-Apr-17.
*/
public class UIHelper {
public static Typeface setFontTypeFace(Context... | true |
7482a4042ead55816fca1d588638659521d694eb | Java | clilystudio/NetBook | /allsrc/com/ushaqi/zhuishushenqi/model/ChangeNickNameRoot.java | UTF-8 | 765 | 2.265625 | 2 | [
"Unlicense"
] | permissive | package com.ushaqi.zhuishushenqi.model;
import android.text.TextUtils;
public class ChangeNickNameRoot extends CodeRoot
{
private String[][] codeMap = { { "LV_NOT_ENOUGH", "等级不够" }, { "TOO_LONG", "名字太长" }, { "ILLEGAL_NICKNAME", "不合法的名字" }, { "TOO_OFTEN", "修改间隔少于30天" } };
public String getErrorMessage()
{
i... | true |
73e7e0f91af7ecaee36a46d3f35dea8b4093fad0 | Java | andrewsiew2/Data_Structures_coursework | /Umessage/src/p2/wordsuggestor/NGramToNextChoicesMap.java | UTF-8 | 3,813 | 3.046875 | 3 | [] | no_license | package p2.wordsuggestor;
import java.util.Comparator;
import java.util.Iterator; // Can I import?
import java.util.function.Supplier;
import cse332.datastructures.containers.Item;
import cse332.interfaces.misc.Dictionary;
import cse332.misc.LargeValueFirstItemComparator;
import cse332.types.AlphabeticString;
import ... | true |
21c5dce1778b8b3e83da36b500ca3c96d504657c | Java | Talend/apache-camel | /core/camel-management/src/test/java/org/apache/camel/management/ManagedProducerRouteAddRemoveRegisterAlwaysTest.java | UTF-8 | 4,512 | 1.90625 | 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 |
525c539b62441fc8db1cff542b39e9cf96de9761 | Java | choudharyabhinav15/Springular | /server/src/main/java/com/mediatheque/service/LocalisationService.java | UTF-8 | 405 | 1.890625 | 2 | [
"MIT"
] | permissive | package com.mediatheque.service;
import com.mediatheque.model.Localisation;
import java.util.List;
/**
* @Author Ghiles FEGHOUL
* @Date 27/01/2018
* @Licence MIT
*/
public interface LocalisationService {
Localisation find(Long id);
Localisation save(Localisation localisation);
Localisation update(L... | true |
2117f6b0cb9474da9c9ddfe0043ba1ee1a148e4d | Java | khansaifullah/PizzaOmoreDesktopAppV1.0 | /src/com/PrintUtility/MyCellRenderer.java | UTF-8 | 1,175 | 3 | 3 | [] | no_license | package com.PrintUtility;
import javax.swing.*;
import java.awt.*;
/**
* Created by DELL on 2/6/2018.
*/
class MyCellRenderer extends DefaultListCellRenderer {
//final static ImageIcon longIcon = new ImageIcon("long.gif");
//final static ImageIcon shortIcon = new ImageIcon("short.gif");
/* This is the ... | true |
e0092c3b3ec276bb0faba4457d77b74f1e74554e | Java | arnabs542/leetcode-problems | /array/hard/longest_consecutive_sequence_128/HashMapSolution.java | UTF-8 | 3,174 | 4.09375 | 4 | [] | no_license | package array.hard.longest_consecutive_sequence_128;
import java.util.HashMap;
import java.util.Map;
/**
128. Longest Consecutive Sequence
https://leetcode.com/problems/longest-consecutive-sequence/
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
Your algorithm... | true |
2933d768c31402b3a20b90def90616fc70b377c8 | Java | FrankRays/college-events-management-system | /src/com/buzz/serviceimpl/FaqSerivceImpl.java | UTF-8 | 1,688 | 2.421875 | 2 | [] | no_license | package com.buzz.serviceimpl;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
import com.buzz.bean.BranchBean;
import com.buzz.bean.FaqsBean;
import com.buzz.dao.BranchDAO;
import com.buzz.dao.FaqsDAO;
import com.buzz.exception.CommonException;
import com.buzz.exception.ConnectionException;... | true |
96bb4f4570e59f3046e963699213889b8d037f38 | Java | Gingmin/springboot-mybatis-test | /src/main/java/com/example/demo/security/MemberService.java | UTF-8 | 3,130 | 2.5 | 2 | [] | no_license | package com.example.demo.security;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import o... | true |
14a21e5dd40a3c9541b7e1b0329f34fc050bdab4 | Java | natanaelsantosbr/android-tcc-bolso-casal | /app/src/main/java/br/android/bolsocasalapp/usuario/servicos/ICallbackBuscarIdDoCasal.java | UTF-8 | 189 | 1.859375 | 2 | [] | no_license | package br.android.bolsocasalapp.usuario.servicos;
public interface ICallbackBuscarIdDoCasal {
void onSucesso(boolean retorno, String idDoCasal) ;
void onErro(String mensagem);
}
| true |
86be27ac0b49242a1413d613875c1b2bd7c85352 | Java | igorsan98v2/RandomUsers | /app/src/main/java/com/ygs/netronic/repositories/impl/RandomUsersRepositoryImpl.java | UTF-8 | 6,535 | 2.0625 | 2 | [] | no_license | package com.ygs.netronic.repositories.impl;
import android.content.Context;
import android.database.SQLException;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.NetworkInfo;
import com.google.gson.JsonElement;
import com.google.gson.JsonO... | true |
826eeb3f702fe2ecf439acd6c8a37fb32622ed45 | Java | Mr-Yeliang/SignIn | /SignIn/src/main/java/com/example/entity/Student.java | UTF-8 | 756 | 2.671875 | 3 | [] | no_license | package com.example.entity;
import java.io.Serializable;
public class Student implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 姓名
*/
private String name;
/**
* 签到状态
*/
private boolean state;
public Student() {
}
public Student(Strin... | true |
25de3b1c3a745f93bdb9cdab24cc6e47527926b3 | Java | hiyoo/HiyooWeb | /src/com/hiyoo/test/TestUser.java | GB18030 | 928 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.hiyoo.test;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.hiyoo.domain.SystemPermission;
import com.hiyoo.domain.User;
import com.hiyoo.service.impl.UserServiceImpl;
public class TestUser {
public static void main(String[] args) {
byte i=127;
System.out.println(i);
SimpleDa... | true |
88d959f37547fdc0af44a71f58031039cbeac168 | Java | IBMPCjr/Metalurgy | /java/com/ThatKerbonaut/VanillaPlusMore/util/handlers/TileEntityHandler.java | UTF-8 | 509 | 2.046875 | 2 | [] | no_license | package com.ThatKerbonaut.VanillaPlusMore.util.handlers;
import com.ThatKerbonaut.VanillaPlusMore.blocks.ballmill.TileEntityBallMill;
import com.ThatKerbonaut.VanillaPlusMore.util.Reference;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class T... | true |
e2202501881c321c1bf0e337beec699c5f03120c | Java | KartikPatelOfficial/BillMK | /app/src/main/java/com/deucate/kartik/billmk/Spent/SpentAdapter.java | UTF-8 | 2,308 | 2.21875 | 2 | [] | no_license | package com.deucate.kartik.billmk.Spent;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Array... | true |
6e20dbe608c5e5efc716933e8a4992fe952c0de5 | Java | thanhtung1993/CTT2019 | /app/src/main/java/com/example/ctt2019/Adapter/AdapterLichSu/AdapterLichSuNapTien.java | UTF-8 | 3,864 | 2.1875 | 2 | [] | no_license | package com.example.ctt2019.Adapter.AdapterLichSu;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.c... | true |
d19522989787c11c4737bcd115663df5bb198118 | Java | CruGlobal/opendq-ws-client | /src/test/java/org/ccci/obiee/client/init/ServiceFactoryTest.java | UTF-8 | 1,467 | 1.804688 | 2 | [] | no_license | package org.ccci.obiee.client.init;
import com.infosolve.openmdm.webservices.provider.impl.DataManagementWSImpl;
import com.infosolve.openmdm.webservices.provider.impl.DataManagementWSImplService;
import com.infosolve.openmdm.webservices.provider.impl.RealTimeObjectActionDTO;
import com.infosolvetech.rtmatch.pdi4.Runt... | true |
d90d2e9dc5886c268d37c27548330a3164fd8afb | Java | 15539158137/TestBoxDesign | /app/src/main/java/com/example/administrator/testboxdesign/MainActivity.java | UTF-8 | 180,121 | 2.0625 | 2 | [] | no_license | package com.example.administrator.testboxdesign;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.... | true |
9c39e23e7193a09cd20000d625551a0e5e910e95 | Java | Kishan242/InfoNepalNew | /app/src/main/java/com/drac_android/infonepal/ServerResponse/ActivationResponse.java | UTF-8 | 702 | 2.046875 | 2 | [] | no_license | package com.drac_android.infonepal.ServerResponse;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.SerializedName;
public class ActivationResponse {
@SerializedName("Success")
public boolean success;
@SerializedName("ErrorCode")
public int errorCod... | true |
fedc0264b9acbaaa241ea5206fe7109033cfdf3b | Java | luism94/Mastermind | /src/codes/Computer.java | UTF-8 | 1,179 | 3.015625 | 3 | [] | no_license | package codes;
import static codes.GameMode.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import static codes.Colors.*;
public class Computer {
private GameMode gm;
private Combination secretComb;
public Computer(GameMode mode) {
gm ... | true |
11b6c1a88e47b179cc4035b4b2775b9f8aab177b | Java | Lakaz720/ML_project | /app/src/main/java/com/kimhyemi/bombelab/lakaz/monstar_lab_test/HomeItem.java | UTF-8 | 1,698 | 2.28125 | 2 | [] | no_license | package com.kimhyemi.bombelab.lakaz.monstar_lab_test;
import java.net.URL;
/**
* Created by Pomiring on 2017-07-26.
*/
public class HomeItem {
//int image;
public String image;
public String story;
/*public String color_set;
public String image_url;
public String sns_code;
public String... | true |
7744fa86726f90893d1405dbe147d442d9b7c651 | Java | Maryam-G/AP-MidtermProject-Phase3 | /Insomnia-3/src/com/company/jurl/Main.java | UTF-8 | 542 | 2.6875 | 3 | [] | no_license | package com.company.jurl;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
import com.company.jurl.Jurl;
import javax.imageio.ImageIO;
/**
* A class for testing JurlApp and get input
*
* @author Maryam Goli
*/
public class Main {
public static ... | true |
495f99b7a567fb554764c183d1dd39dedd4672fb | Java | bar47ney/laba_two | /src/Maybe/WorkersListWindow.java | UTF-8 | 2,829 | 2.84375 | 3 | [] | no_license | package Maybe;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.util.ArrayList;
impo... | true |
c2073b87cc28258ac6af33f750777e7a0ca4526d | Java | fabiorapanelo/ecommerce | /business/src/main/java/com/fabiorapanelo/order/Order.java | UTF-8 | 1,005 | 2.390625 | 2 | [] | no_license | package com.fabiorapanelo.order;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Tabl... | true |
790577d6e754a0ce9cf9c388777eff6b7eb715fa | Java | DaniloJevtovic/poslovnaInformatika | /project/app/models/NaseljenoMesto.java | UTF-8 | 1,191 | 2.140625 | 2 | [] | no_license | package models;
import java.util.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import models.constants.KonstanteNaseljenogMjesta;
import play.data.validation.Max;
import play.db.jpa.Model;
@Entity
public class NaseljenoMes... | true |
cf384ee046aec5c37ec42091b5ad7790b7443ec6 | Java | Cyecize/TimeReporter | /src/main/java/com/cyecize/reporter/app/bindingModels/CreateTaskBindingModel.java | UTF-8 | 2,233 | 2.21875 | 2 | [] | no_license | package com.cyecize.reporter.app.bindingModels;
import com.cyecize.reporter.app.dataAdapters.IdToProjectAdapter;
import com.cyecize.reporter.app.dataAdapters.IdToTaskAdapter;
import com.cyecize.reporter.app.entities.Project;
import com.cyecize.reporter.app.entities.Task;
import com.cyecize.reporter.common.dataAdapters... | true |
cfdcac33d2ed149d64eb2d4903b709afdd71e7cc | Java | ZRonchy/Algorithms | /src/main/java/leetcode/TreeTrie/BalancedBinaryTree.java | UTF-8 | 1,635 | 4.03125 | 4 | [] | no_license | package leetcode.TreeTrie;
// Given a binary tree, determine if it is height-balanced.
// For this problem, a height-balanced binary tree is defined as
// a binary tree in which the depth of the two subtrees of every node
// never differ by more than 1.
public class BalancedBinaryTree {
/*Solution 1*/
... | true |
9c32e43d07a267b3622235327c85b8b3990f0554 | Java | sanghyukAnim/Counter_App | /src/main/java/com/example/moon/counter/Spends.java | UTF-8 | 612 | 2.859375 | 3 | [] | no_license | package com.example.moon.counter;
import android.graphics.drawable.Drawable;
/**
* Created by moon on 2017. 6. 7..
*/
public class Spends {
private String name;
public int total;
public Spends(String name) {
this.name = name;
}
public void setTotal(int total) {
this.total = th... | true |
30634f585aba4bf41be088369505b54421d941bf | Java | zhuanglm/HostBridge | /epoctest/src/main/java/com/epocal/epoctest/analyticalmanager/AMFileUtil.java | UTF-8 | 6,273 | 2.109375 | 2 | [] | no_license | package com.epocal.epoctest.analyticalmanager;
import com.epocal.common.globaldi.GloabalObject;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import android.util.Log;
/**
... | true |
56b041d566f7c35f46896d37854c18af34646f12 | Java | sergiosson/test | /src/com/gos/veleta/WeatherAsynctask.java | UTF-8 | 4,576 | 2.25 | 2 | [] | no_license | package com.gos.veleta;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpressionException;
impo... | true |
ecfa2528ec9000daaf04bddd3c8e04b6a33ff25a | Java | little-whale/easy-manage | /easy-manage-modules/src/main/java/com/github/littlewhale/easymanage/modules/config/mvc/GlobalErrorController.java | UTF-8 | 3,194 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.github.littlewhale.easymanage.modules.config.mvc;
import com.github.littlewhale.easymanage.modules.commom.response.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.web.ErrorProperties;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.spri... | true |
bb8a3141ff1d082410dd5329996d67b43260b3ae | Java | androidx/androidx | /emoji2/emoji2-bundled/src/androidTest/java/androidx/emoji2/bundled/util/EmojiMatcher.java | UTF-8 | 9,252 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
a9174a143baf7395560915f1367d7b5914e3129e | Java | OowuzhioO/Banking_System_2.0 | /src/main/java/com/hwj/banking/Entity/Loan.java | UTF-8 | 1,932 | 2.3125 | 2 | [] | no_license | package com.hwj.banking.Entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "LOAN")
@SequenceGenerator(name = "loan_SG", allocationSize = 1, initialValue = 1, sequenceName = "loan_sg")
public class Loan {
... | true |
1cab016193dcc180d315efdb983deb1cacf65d5b | Java | mim3009/lessons | /уроки/java/Java/lab4/src/lab4/Facult.java | UTF-8 | 619 | 2.75 | 3 | [] | no_license | package lab4;
public class Facult {
private String Name;
private int KolGroup;
private int KolPrep;
public String getName(){
return Name;
}
public void setName(String name){
Name = name;
}
public int getKolGroup() {
return KolGroup;
}
public void setKolGroup(int kolgroup) {... | true |
39ff83133f5fb4ff42bf2598350c21f2d77373b1 | Java | wangjun/PolymerizedDcit | /src/com/polymerized/pagefilter/FilterDictall.java | UTF-8 | 3,434 | 2.515625 | 3 | [] | no_license | package com.polymerized.pagefilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
... | true |
756737ba57ace233407d1ebf13d08e4e32f880f8 | Java | PleoSoft/flowable-feign-client | /src/main/java/com/pleosoft/feign/flowable/decision/DecisionDeploymentApi.java | UTF-8 | 7,745 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 Pleo Soft d.o.o. (pleosoft.com)
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable... | true |
181d5313fb6fbe0886c15e474e9e3932bbd34d38 | Java | r-friedman/openmrs-module-integration | /api/src/test/java/org/openmrs/module/integration/api/DhisMetadataUtilsTest.java | UTF-8 | 3,119 | 1.851563 | 2 | [] | no_license | package org.openmrs.module.integration.api;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.hibernate.metadata.ClassMetadata;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openmrs.api.context.Context;
import org.openmrs.module.integration.I... | true |
c0da58929e9d9a78c54b2a1cb914560d5299bf2f | Java | souless94/main | /src/test/java/seedu/address/logic/commands/AddGroupCommandTest.java | UTF-8 | 7,138 | 2.578125 | 3 | [
"MIT"
] | permissive | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.function.Predicate;
import or... | true |
3bff14316f027afa096c91b3fa9ad54c7075a72a | Java | C1220G2-Org/C1220G2-Repo-BE | /spring_boot/src/main/java/com/codegym/spring_boot_sprint_1/model/dto/UserDto.java | UTF-8 | 2,338 | 2.484375 | 2 | [] | no_license | package com.codegym.spring_boot_sprint_1.model.dto;
public class UserDto {
private Long id;
private String username;
private String password;
private Long department;
private Integer roles;
private String name;
private String email;
private String avatar;
public UserDto() {
}
... | true |
a3b39d2a1ec719e399b64e7d3ef3cf76a467bd78 | Java | congzhizhi/monitor26 | /netty/src/main/java/com/luban/netty/threedome/TestServer.java | UTF-8 | 1,849 | 2.40625 | 2 | [] | no_license | package com.luban.netty.threedome;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.UnpooledByteBufAllocator;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.ne... | true |
1edac27b7f27df083d7c93d98f0b9e7fe8509a07 | Java | lielran/Java8 | /src/interfaces/interfaceUnlocking.java | UTF-8 | 721 | 3.234375 | 3 | [
"MIT"
] | permissive | package interfaces;
/**
* Created by lielran on 8/15/16.
*/
/**
* output:
* Init
* Default
*/
public class interfaceUnlocking {
public static void main(String[] args) {
Component myComponent = new Component() {
@Override
public String find(String name) {
retu... | true |
1a1bbc86feadd1cc4aa5ba9fc0662785ed8c8398 | Java | javaliao/mall | /portal/bean/src/main/java/model/TbUserAddressExample.java | UTF-8 | 23,997 | 2.09375 | 2 | [] | no_license | package model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TbUserAddressExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TbUserAddressExample() {
oredCriteria = new ArrayList<Criter... | true |
7e0534239f89179aa7c6046d24e57fae7ea0814d | Java | KalidossRJ/Tamil_Fonts | /Tamilfonts/src/com/example/tamilfonts/MainActivity.java | UTF-8 | 753 | 2.5 | 2 | [] | no_license | package com.example.tamilfonts;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentVie... | true |
2a8d542e7375b4a58b6109d4ee281e98cf0c917f | Java | mgrouse/HbgbWebCamp | /src/org/hbgb/webcamp/server/BlobStoreUploadServlet.java | UTF-8 | 2,922 | 2.28125 | 2 | [] | no_license | /*
* Decompiled with CFR 0_115.
*
* Could not load the following classes:
* com.google.appengine.api.blobstore.BlobKey
* com.google.appengine.api.blobstore.BlobstoreService
* com.google.appengine.api.blobstore.BlobstoreServiceFactory
* com.google.appengine.api.images.ImagesService
* com.google.appengine.api.im... | true |
b7e55b022fcec3daea199b3c86448aa0150411ae | Java | shan7030/collect-chunk | /app/src/main/java/com/example/android/logindemo/SecondActivity.java | UTF-8 | 3,822 | 2.265625 | 2 | [] | no_license | package com.example.android.logindemo;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
impor... | true |
f5090994564ae6c3d3aec8ca27292ce384b503cf | Java | Hackforid/Tomato | /Tomato/src/main/java/com/smilehacker/tomato/view/TimeCountView.java | UTF-8 | 3,620 | 2.453125 | 2 | [] | no_license | package com.smilehacker.tomato.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
/**
* Created by kleist on 13-9-28.
*/
public class TimeCountV... | true |
f14337c9645d54dbc98e63b23d44d9d3622a074c | Java | moutainhigh/tproject | /java/cn/maitian/trade/warrant/saleContractSign/vo/SysnHouseTo/SaleTraderTo.java | UTF-8 | 710 | 1.867188 | 2 | [] | no_license | package cn.maitian.trade.warrant.saleContractSign.vo.SysnHouseTo;
/**
* 买卖同步交易人类
*/
public class SaleTraderTo {
private String perName; //名字
private String perTel; //电话
private String perIdCard; //证件号
public String getPerName() {
return perName;
}
public void setPerName(... | true |
3e8c8a89744fa7194a7aa9870afde061860a5d4c | Java | djhajjar/ser321examples | /Sockets/JavaThreadSock/src/main/java/ThreadedSockServer.java | UTF-8 | 3,622 | 3.3125 | 3 | [] | no_license | import java.net.*;
import java.io.*;
import java.util.*;
/**
* A class for simple client-server connections with a threaded server. This
* example uses Object Input and Output streams to communicate between client
* and server.
*
* Ser321 Foundations of Distributed Software Systems see
* http://pooh.po... | true |
b88fdbefbc2e6388b3ccc58cfe23fd3550734a31 | Java | jdh5451/210607-FeederProgram | /java-workspace/ClassBasics/src/Main.java | UTF-8 | 640 | 3.65625 | 4 | [] | no_license |
public class Main {
//Making this an executable class
public static void main(String[] args) {
Dog myDog;
//Calling our constructor
//invoking our constructor
//running our constructor
//executing our constructor
myDog = new Dog();
//=> creating an object!! In this case a Dog obhect
System.o... | true |
10a32537cc4ffc68813854bbcb4b37df7d2bec20 | Java | xiao-ren-wu/micro-service | /micro-service-order/src/main/java/org/yuwb/dao/OrderMapper.java | UTF-8 | 335 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package org.yuwb.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.yuwb.model.Order;
/**
* @author WbYu
* e-mail 18629015421@163.com
* github https://github.com/xiao-ren-wu
* <p>
* </p>
* @version v1.0.0
* @date 2019/12/26 8:35 上午
* @since java 11
*/
public interface OrderMapper extends... | true |
87f19cd6be3d1a77dbcb1a67966b20e87c0ba398 | Java | anuraaga/armeria | /spring/boot-autoconfigure/src/test/java/com/linecorp/armeria/internal/spring/ArmeriaConfigurationUtilTest.java | UTF-8 | 6,167 | 1.5625 | 2 | [
"BSD-3-Clause",
"EPL-1.0",
"WTFPL",
"MIT",
"JSON",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2018 LINE Corporation
*
* LINE Corporation licenses this file to you 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | true |
d6f6281b47e9bc0060c678b93d03ba92052c4032 | Java | jianghongping/openxal | /core/src/xal/tools/dsp/DataProcessingException.java | UTF-8 | 1,685 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | /**
* DataProcessingException.java
*
* Created : August, 2007
* Author : Christopher K. Allen
*/
package xal.tools.dsp;
/**
* Exception representing an unrecoverable error in data processing.
*
* @author Christopher K. Allen
*
*/
public class DataProcessingException extends Runti... | true |
fc70afa9af15ced50b7b19657bf5e4e740bdd53c | Java | zhouziwen/yucha | /app/src/main/java/com/example/hntea/mvpmodel/home/HomeData.java | UTF-8 | 26,994 | 1.828125 | 2 | [] | no_license | package com.example.hnTea.mvpmodel.home;
import com.android.volley.VolleyError;
import com.example.hnTea.MyApplication;
import com.example.hnTea.https.JsonUtils;
import com.example.hnTea.https.VolleyBack;
import com.example.hnTea.https.Volley_StringRequest;
import com.example.hnTea.mvpmodel.BaseModel;
import com.examp... | true |
905aab4225830927774a685d0aa20f0a8b890643 | Java | jennyhyojookwon/comp2511 | /F10B-hoenny-master/src/unsw/dungeon/Player.java | UTF-8 | 17,935 | 2.796875 | 3 | [] | no_license | package unsw.dungeon;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
/**
* The player entity
* @author Robert Clifton-Everest
*
*/
public class Player extends Entity implements Subject {
private Dungeon dungeon;
private Boolean status;
private Bag bag;
//private B... | true |
44e5c2b0185524af1276dea0950b65fc0bb7a202 | Java | ResearchCollectionsAndPreservation/scsb-circ | /src/test/java/org/recap/ils/PrincetonJSIPConnectorUT.java | UTF-8 | 12,210 | 1.84375 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package org.recap.ils;
import com.pkrete.jsip2.messages.responses.SIP2ItemInformationResponse;
import com.pkrete.jsip2.util.MessageUtil;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.recap.BaseTestCase;
import org.recap.ils.model.response.*;
import org.... | true |
f1c9e1b99ba9224ac031e01ee7f353eb8ff01792 | Java | stanovov/job4j_design | /src/main/java/ru/job4j/design/menu/ActionSelect.java | UTF-8 | 458 | 3.03125 | 3 | [] | no_license | package ru.job4j.design.menu;
import java.util.Scanner;
public class ActionSelect implements UserAction {
@Override
public String getName() {
return "Select";
}
@Override
public boolean action(Toolbox toolbox, Scanner scanner) {
Item item = toolbox.getMapItems().get(toolbox.getCur... | true |
bcd9b8d2929b39a13c9eba3490b4bc6d3bbf7f42 | Java | PriyavratSharma/OnlineMovieTicket | /OnlineMovieTicket/src/main/java/com/cg/gla/fs/repository/TheaterRepository.java | UTF-8 | 406 | 1.984375 | 2 | [] | no_license | package com.cg.gla.fs.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.cg.gla.fs.model.Theater;
@Repository
public interface TheaterRepository extends CrudRepository<Theater,String> {
Theater findByTheaterId(int theaterId);
... | true |
2a1861649c0138917ff6e73e686f97a8e315b489 | Java | akashanjana08/RxJava-Practice | /operator/CreateOperator.java | UTF-8 | 1,432 | 2.984375 | 3 | [] | no_license | package operator;
import io.reactivex.Observable;
import io.reactivex.ObservableEmitter;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;
public class CreateOperator {
public static void main(String[] args) {
Observable<Integer> observableData... | true |
bfbc69c3f5ad6d11f9ec9c7074b0ed2b37260323 | Java | a84302486/java004_NO1 | /src/_02_TasteHibernate/TasteMainTest.java | UTF-8 | 240 | 2.125 | 2 | [] | no_license | package _02_TasteHibernate;
public class TasteMainTest {
public static void main(String[] args) {
TasteHibernateDAO dao = new TasteHibernateDAO();
TasteBean tbInsert = new TasteBean( "002" , "辣味");
dao.insert(tbInsert);
}
}
| true |
fc8c4d8a30293b1050ed103eae67d4333a0c4bc3 | Java | futuristixa/Fireworks-1 | /FloatP.java | UTF-8 | 738 | 3.09375 | 3 | [] | no_license | // ----------------------------------------------------------
// Program Name: FloatP.java
// Course: CS1302 T-R NIGHT
// Student Name: David Rodgers
// Assignment Number: Project 6
// Due Date: November 29, 2007
// Location: Southern Polytechnic State University
// --------------------------------------------... | true |
22bed7324836465601135a03c9d1523cd71166a2 | Java | CodeBeanBean/doudou-meeting | /doudou-weixin/src/main/java/com/doudou/project/meeting/oauth/WeixinOauth.java | UTF-8 | 7,311 | 2.09375 | 2 | [] | no_license | package com.doudou.project.meeting.oauth;
import com.doudou.po.User;
import com.doudou.po.WeiUser;
import com.doudou.project.weixin.main.MenuManager;
import com.doudou.project.weixin.util.WeixinUtil;
import com.doudou.service.UserService;
import com.doudou.service.WeiUserService;
import net.sf.json.JSONObject;
import ... | true |
e86e2a6d2f38bb2a6c341059cd5becc38ea71d97 | Java | JustDoItHilary/HilarysTraining | /weexdemo/src/main/java/com/example/weexdemo/weex/MyIWebView.java | UTF-8 | 885 | 2.046875 | 2 | [] | no_license | package com.example.weexdemo.weex;
import android.view.View;
/**
* Created by Hilary
* on 2016/12/30.
*/
public interface MyIWebView{
public View getView();
public void destroy();
public void loadUrl(String url);
public void reload();
public void goBack();
public void goForward();
publ... | true |
b87120862190f9b7836a71120b40e42e45ea6de2 | Java | liangmeihuai/webx-demo | /biz/src/test/java/com/alibaba/zhu/impl/UserServiceTest.java | UTF-8 | 1,800 | 2.109375 | 2 | [] | no_license | package com.alibaba.zhu.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.zhu.AbstractComponentTest;
import com.alibaba.zhu.domain.User;
import com.alibaba.zhu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.testng.Assert;
import org.testng.annotations.Test;
imp... | true |
7a58c22cdf7c610a3804dfa8205295ed177b84d9 | Java | code-Smueller-li/Stackexchange-Tag-Extractor | /src/li/smueller/code/stackexchange/model/TagWiki.java | UTF-8 | 320 | 1.960938 | 2 | [] | no_license | package li.smueller.code.stackexchange.model;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.SerializedName;
public class TagWiki {
@SerializedName("tag_wikis")
private List<Wiki> wikis = new ArrayList<Wiki>();
public boolean hasWiki() {
return wikis.size() != 0;
}
} | true |
75cffcb1d8ee5df1307582ef2e6601191775c67e | Java | s-williams/BusTripMapper | /src/main/BusTripMapper.java | UTF-8 | 2,651 | 3.15625 | 3 | [] | no_license | package main;
import main.model.Tap;
import main.model.Trip;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class BusTripMapper {
private final List<Tap> taps;
private final List<Trip> trips;
public BusTripMapper() {
this.taps = new ArrayList<>();
... | true |
2671da29d43a9574be2410ab130093833884b67f | Java | bhasin11/Algorithms-in-Java | /BST/mergeBST.java | UTF-8 | 713 | 3.671875 | 4 | [] | no_license | /*
Given 2 BSTs, merge them. I have altered the original trees here.
*/
public Node mergeTwoBST(Node root1, Node root2){
if(root2!=null){
mergeTwoBST(root1,root2.leftChild);
root2.leftChild=null;
mergeTwoBST(root1,root2.rightChild);
root2.rightChild=null;
root1 = insertAgain(root1,root2);
}
return ... | true |
3bf7e3e418925622a36d427f5128142a0ff00a44 | Java | lijtforgithub/study-mybatis | /src/main/java/com/ljt/study/service/APIService.java | UTF-8 | 339 | 1.90625 | 2 | [] | no_license | package com.ljt.study.service;
import java.util.List;
import com.ljt.study.entity.Tag;
import com.ljt.study.entity.User;
/**
* @author LiJingTang
* @version 2015年9月28日 下午8:34:27
*/
public interface APIService {
List<Tag> queryTag(int offset, int limit);
User saveUser(User user);
User findUserById(Integer... | true |
feffdcf76bdc733fe9177931276312b4107696b4 | Java | sengeiou/project-3 | /kuaihuo-parent/phshopping-facade-member/src/main/java/com/ph/shopping/facade/member/dto/AdAtachmentDTO.java | UTF-8 | 1,145 | 1.976563 | 2 | [] | no_license | package com.ph.shopping.facade.member.dto;
import com.ph.shopping.common.core.base.BaseValidate;
import java.io.Serializable;
/**
* Created by wudi on 2017/9/1.
*/
public class AdAtachmentDTO extends BaseValidate implements Serializable {
private static final long serialVersionUID = -4747734633757244024L;
... | true |
4b0d3a3defdc5bf5a11ba38f1d3f68c9b3f13180 | Java | shams01/Space | /src/com/company/Enemy1.java | UTF-8 | 1,387 | 3.0625 | 3 | [] | no_license | package com.company;
public class Enemy1 {
public static void moveEnemy1() {
for (int i = 0; i < Main.enemyCount1; ++i) {
Main.xEnemy1[i] = Main.xEnemy1[i] - Main.speedEnemy1[i] - Main.speedPlayer;
//переустановка переменных врага заехавшего далеко за зону видимости
if (... | true |
d36f5ab7929a5ec8d5bd12608dd38debc5773081 | Java | luisfelipeas5/GiveMeDetails | /view/src/main/java/br/com/luisfelipeas5/givemedetails/view/details/TrailersMvpView.java | UTF-8 | 442 | 1.976563 | 2 | [] | no_license | package br.com.luisfelipeas5.givemedetails.view.details;
import java.util.List;
import br.com.luisfelipeas5.givemedetails.model.model.trailer.Trailer;
import br.com.luisfelipeas5.givemedetails.view.MvpView;
public interface TrailersMvpView extends MvpView {
void setMovieId(String movieId, boolean showPreview);
... | true |
01ddf8e6fdb89f83ee5e6c84c3377aa45c7d3223 | Java | friendsGoodBoy/linkShop | /admin/src/main/java/com/link/admin/controller/vo/TreeMenu.java | UTF-8 | 2,047 | 2.578125 | 3 | [] | no_license | package com.link.admin.controller.vo;
import com.jfinal.kit.StrKit;
import com.link.model.Menu;
import org.springframework.beans.BeanUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Created by linkzz on 2017-06-10.
*/
public class TreeMenu extends Menu {
private List<Menu> nodes;
private Lis... | true |
92b8ffb60e946609d728678f4f253608287519fd | Java | tianchao62375540/ym-spring | /sf/src/main/java/com/atomic/sync/SynchronizedTest2.java | UTF-8 | 991 | 2.96875 | 3 | [] | no_license | package com.atomic.sync;
import java.util.Vector;
/**
* 源码学院-Fox
* 只为培养BAT程序员而生
* http://bat.ke.qq.com
* 往期视频加群:516212256 暗号:6
*/
public class SynchronizedTest2 {
Vector<String> vector = new Vector<String>();
/*
锁的粗化
*/
public void test(){
for(int i = 0 ; i < 10 ; i++){
... | true |
2ea519b30077d4c49378095223dcb428622c8a78 | Java | Nickster258/PRom | /src/main/java/org/stonecipher/event/InteractEvent.java | UTF-8 | 2,127 | 2.65625 | 3 | [] | no_license | package org.stonecipher.event;
import org.bukkit.block.Block;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.stonecipher.PRom;
import org.stonecipher.editor.RomBuilder;
import org.stonecipher.entity.Input;
import org.stonecipher.en... | true |
16e237a07ec5d955b33639dde787cf6f93abac49 | Java | vladimirtarasenko/byitacademyfinal | /src/main/java/PatientsSearhedByDate.java | UTF-8 | 501 | 2.65625 | 3 | [] | no_license | import javax.xml.stream.XMLStreamException;
import java.io.IOException;
import java.util.Scanner;
public class PatientsSearhedByDate implements PatientsSorting {
@Override
public void sortPatients() throws IOException, XMLStreamException {
Scanner scanner = new Scanner(System.in);
System.out.pr... | true |