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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ec327408cad34f94bd0a2dba13fe0087a40fa6fd | Java | ammeter/coinpurse-WorawatCh | /src/coinpurse/Coin.java | UTF-8 | 1,833 | 3.921875 | 4 | [] | no_license | package coinpurse;
import java.lang.Comparable;
import java.util.ArrayList;
import java.util.List;
/**
* Coin represents coinage (money) with a fixed value and currency.
*
* @author Worawat Chueajedton
*/
public class Coin implements Comparable<Coin> {
private double value;
private String currency;
/**
*... | true |
c3cb8fcdea99a5d9e8ba3049b268ab1c738c0bb0 | Java | chaiguolong/JavaSE | /day24/src/cn/itcast/demo1/BufferedOutputStreamDemo_002.java | UTF-8 | 1,084 | 3.59375 | 4 | [] | no_license | package cn.itcast.demo1;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/*
* 字节输出流的缓冲流
* java.io.BufferedOutputStream 作用: 提高原油输出流的写入效率
* BufferedOutputStream 继承 OutputStream
* 方法,写入 write 字节 字节数组
*
* 构造方法:
* BufferedOutputStream(OutputStream out)
* ... | true |
f336213e28fa927592b6f0eb98b91ec6db8764f4 | Java | teratide/dremio-accelerated | /common/src/main/java/com/dremio/ssl/SSLConfig.java | UTF-8 | 9,708 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | true |
1b0732e22a9780afbe35df19a8de44841e0e81fa | Java | oumarxy/Android-Code-Demos | /CrashHandlerDemo/app/src/main/java/io/innofang/crashhandlerdemo/util/PermissionListener.java | UTF-8 | 315 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package io.innofang.crashhandlerdemo.util;
import java.util.List;
/**
* Author: Inno Fang
* Time: 2017/4/24 14:52
* Description:
*/
public interface PermissionListener {
/* 授权 */
void onGranted();
/* 拒绝,并传入被拒绝的权限 */
void onDenied(List<String>deniedPermission);
}
| true |
2677f79fabbf2b790c6adbbe65d7a20b2248be89 | Java | tkurtovic98/Java-Course | /Project-10/src/main/java/hr/fer/zemris/java/webserver/workers/Home.java | UTF-8 | 806 | 2.640625 | 3 | [] | no_license | package hr.fer.zemris.java.webserver.workers;
import java.util.Set;
import hr.fer.zemris.java.webserver.IWebWorker;
import hr.fer.zemris.java.webserver.RequestContext;
/**
* {@link IWebWorker} that is used to add
* background color if the color exists
* in the server collections
* @author Tomislav Kurtović
*... | true |
462a26b78932a1b8f2677bcaea07d7c36e5bddca | Java | nicolopomini/ProgettoWEB | /Progetto/src/main/java/dao/jdbc/JDBCPictureDAO.java | UTF-8 | 5,770 | 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 dao.jdbc;
import dao.PictureDAO;
import dao.entities.Picture;
import java.sql.Connection;
import java.sql.PreparedSt... | true |
ed35b4cd73f47b0fab19434a8844ce249d290168 | Java | Evergreen1992/leetcode_algorithm_solutions_in_java | /src/company/huawei/Main2.java | UTF-8 | 1,968 | 3.28125 | 3 | [] | no_license | package company.huawei;
import java.util.Scanner;
public class Main2 {
public static int[] rev(int[] init, char item){
int[] newA = new int[6];
if( item == 'L' ){
int t1 = init[0];
int t2 = init[1];
int t5 = init[4];
int t6 = init[5];
init[0] = t5;
init[1] = t6;
init... | true |
3be83d26314669bd903705574d30d8ba1960c2ed | Java | kvenLin/Algorithm | /JianzhiOffer/src/CloneRandomList.java | UTF-8 | 2,447 | 3.765625 | 4 | [] | no_license | /**
* @Author: clf
* @Date: 18-12-10
* @Description:
* 输入一个复杂链表
* (每个节点中有节点值,以及两个指针,一个指向下一个节点,一个特殊指针指向任意一个节点),
* 返回结果为复制后复杂链表的head。
* (注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空)
*/
public class CloneRandomList {
public class RandomListNode {
int label;
RandomListNode next = null;
RandomList... | true |
0337b7ad8b50a89b620e6e73a56e14eccc0c9318 | Java | saveunhappy/996 | /src/test/java/com/imooc/zhangxiaoxi/lombok/LogTest.java | UTF-8 | 358 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.imooc.zhangxiaoxi.lombok;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
/**
* 类名称:LogTest
* ********************************
* <p>
* 类描述:@Slf4j注解
*
* @author zhangxiaoxi
* @date 下午6:00
*/
@Slf4j
public class LogTest {
@Test
public void func() {
log.error("日志!!!");
}... | true |
c2eff3c059dad90c783d7c07240a52f70686d0a3 | Java | SalmaAbuelnaga/DatabaseEngine | /src/main/java/page.java | UTF-8 | 1,516 | 2.234375 | 2 | [] | no_license | import java.beans.Transient;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Hashtable;
import java.util.Vector;
public class page implements Serializable {
St... | true |
3273d519786eb0082fda17d3547b2239f5e3d2de | Java | marvenhool/AndroidDemos | /ListViewEventDemo/src/com/example/listvieweventdemo/MySimpleAdapter.java | UTF-8 | 2,671 | 2.421875 | 2 | [] | no_license | package com.example.listvieweventdemo;
import java.util.List;
import java.util.Map;
import android.app.AlertDialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import andro... | true |
38a1da840990e9887b7be6e265f639f600060b72 | Java | markusheikkinen/vaadin-aceeditor | /aceeditor-demo/src/main/java/org/vaadin/aceeditor/LeetSpeakerizer.java | UTF-8 | 738 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package org.vaadin.aceeditor;
import com.vaadin.data.HasValue;
@SuppressWarnings("serial")
public class LeetSpeakerizer implements HasValue.ValueChangeListener<String> {
private AceEditor editor;
public void attachTo(AceEditor editor) {
this.editor = editor;
// editor.addValueChangeListener(this);
correctTe... | true |
99f2f0bafc0c004a915e7751ce592b97cb0bf81d | Java | jijiny/programmers | /src/P_200311_BruteForceSearch/PrimeNumberFinal.java | UTF-8 | 1,864 | 3.421875 | 3 | [] | no_license | package P_200311_BruteForceSearch;
import java.util.HashSet;
import java.util.Set;
public class PrimeNumberFinal {
public static int solution(String numbers) {
int answer = 0;
Set<Integer> primeNo = new HashSet<>();
int[] number = new int[numbers.length()];
int n = number.length;
... | true |
c296e6d999d50f685fa37ddad86a83fcf4ca3330 | Java | hisabimbola/andexpensecal | /com/expensemanager/tc.java | UTF-8 | 594 | 1.867188 | 2 | [] | no_license | package com.expensemanager;
import android.text.InputFilter;
import android.text.Spanned;
class tc implements InputFilter {
final /* synthetic */ ExpenseGroupAddEdit f5286a;
tc(ExpenseGroupAddEdit expenseGroupAddEdit) {
this.f5286a = expenseGroupAddEdit;
}
public CharSequence filter(CharSequ... | true |
6300c90cf51ba3a4bb9c05ff5fd2cf550065667c | Java | xiexlp/DbAutoJavaFx | /src/com/js/cms/orm/CurrencyPrice.java | UTF-8 | 198 | 1.5 | 2 | [] | no_license | package com.js.cms.orm;
import com.js.cms.ormex.CurrencyPriceEx;
import com.js.common.anno.TableAnno;
@TableAnno(name="ex_currency_price")
public class CurrencyPrice extends CurrencyPriceEx {
}
| true |
5ecaec6c1bf62609351d45adbf8d5b9a0920cfbf | Java | HowieHai/Android_MobileAssistant | /app/src/main/java/com/example/shenhaichen/mobileassistant/ui/fragment/DownloadedFragment.java | UTF-8 | 1,305 | 1.984375 | 2 | [] | no_license | package com.example.shenhaichen.mobileassistant.ui.fragment;
import android.support.v7.widget.RecyclerView;
import com.example.shenhaichen.mobileassistant.common.apkparset.AndroidApk;
import com.example.shenhaichen.mobileassistant.dagger.component.AppComponent;
import java.util.List;
/**
* 菜鸟窝http://www.cniao5.com... | true |
e57dffb679bbfc8e472109688c16a3ed1e30455b | Java | morristech/Spring-Two-Factor-Auth-Server | /src/main/java/springtemplate/services/UserService.java | UTF-8 | 254 | 2.1875 | 2 | [] | no_license | package springtemplate.services;
public interface UserService {
boolean authenticate(String email, String password);
boolean register(String fullName, String email, String password, String last_ip);
String getUniqueKey(String user_email);
}
| true |
5cc6cf29036eecee2beee9da016aec84b06ab973 | Java | linshuguang/myspark | /sql/catalyst/src/test/java/org/apache/spark/sql/catalyst/parser/PlanParserSuite.java | UTF-8 | 50,883 | 1.867188 | 2 | [] | no_license | package org.apache.spark.sql.catalyst.parser;
import javafx.util.Pair;
import org.apache.spark.sql.catalyst.analysis.AnalysisTest;
import org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute;
import org.apache.spark.sql.catalyst.analysis.unresolved.*;
import org.apache.spark.sql.catalyst.expressions.*;
import or... | true |
2cda0df4f0e5912835be476f7497af526aa9165c | Java | Heo0916/JAVA | /Chap09_UtilClass/src/Object/Student.java | UTF-8 | 682 | 3.390625 | 3 | [] | no_license | package Object;
/*
* toString() 메서드 재정의
* - Object 클래스에서 상속해 준 메서드 원형을
* 유용한 정보가 리턴되도록 재정의한다.
* - 클래스의 값을 가지고 있는데 값이 올바르게 담겼는지
* 확인할 때 toStirng() 메서드를 오버라이드를 통해서
* 값을 뽑아 낼 수 있다.
*/
public class Student {
int hakbun; // 학생 학번
String name; // 학생 이름
public Student() { }
public Stu... | true |
01718272f4582db84ba3a7177e7e0af878e08d00 | Java | vvvladzagNine/BuySupply | /src/main/java/ru/zagshak/buySupply/util/UserUtil.java | UTF-8 | 869 | 2.265625 | 2 | [] | no_license | package ru.zagshak.buySupply.util;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.util.StringUtils;
import ru.zagshak.buySupply.domain.User;
import ru.zagshak.buySupply.domain.to.UserTO.CurrentUserTO;
public class UserUtil {
public static User updateFromTo(User use... | true |
8edf627daa19e4ef7914b5b6c24a25a68e0b5b4c | Java | murbans1/location-reminder | /src/pl/mu/LocationSelectionActivity.java | UTF-8 | 3,465 | 2.171875 | 2 | [] | no_license | package pl.mu;
import java.util.List;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.Toast;
import com.g... | true |
5279bf01590048297c23428d2f65f0785d5a3cfb | Java | hamzakhalem/IANNUAIRE | /NumTel.java | ISO-8859-1 | 2,401 | 3.359375 | 3 | [] | no_license |
public class NumTel {
public static final char FIXE_PROF = 'T';
public static final char FIXE_DOM = 'D';
public static final char PORTABLE = 'P';
public static final char FAX = 'F';
public static final char INCONNU = '?';
// ----------------------------------------------
// attributs ... | true |
5a65483020bcd4c55cbb056f6e36edc4de6399e9 | Java | mrinal10/starter | /StarterPreperation/src/main/java/com/prep/tree/IsBST.java | UTF-8 | 409 | 3.1875 | 3 | [] | no_license | package com.prep.tree;
public class IsBST {
boolean checkBST(Node root) {
return isBSTree(root, Integer.MIN_VALUE, Integer.MAX_VALUE);
}
boolean isBSTree(Node root, int min, int max) {
if (root == null) {
return true;
}
if (root.data > max || root.data < min) {
return false;
}
retur... | true |
92312577983852d6ae05b8872e68777b77f59e3d | Java | sdgdsffdsfff/storm-examples | /twitter-topics/src/main/java/twitter/topics/dataStreams/dominio/Topic.java | UTF-8 | 530 | 2.421875 | 2 | [] | no_license | package twitter.topics.dataStreams.dominio;
public class Topic {
private String hashtag;
private String frecuency;
public Topic() {
//
}
public Topic(String hashtag, String frecuency) {
super();
this.hashtag = hashtag;
this.frecuency = frecuency;
}
public String getHashtag() {
return hashtag;
}
... | true |
1326cdc31b219b099beaffe8071d93f7c5de419d | Java | hyperskill/hs-test | /src/main/java/org/hyperskill/hstest/testing/expect/json/JsonChecker.java | UTF-8 | 6,194 | 2.328125 | 2 | [] | no_license | package org.hyperskill.hstest.testing.expect.json;
import org.hyperskill.hstest.testing.expect.base.checker.BooleanChecker;
import org.hyperskill.hstest.testing.expect.base.checker.DoubleChecker;
import org.hyperskill.hstest.testing.expect.base.checker.IntegerChecker;
import org.hyperskill.hstest.testing.expect.base.c... | true |
7d633f9ba35ed85382cf4b5e65b067a8a77ea989 | Java | bellmit/RAP_android | /app/src/main/java/net/example/paul/rapapp/widget/adapter/NewsAdapter.java | UTF-8 | 2,719 | 2.171875 | 2 | [] | no_license | package net.example.paul.rapapp.widget.adapter;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import net.e... | true |
7b2962af05ff34ff7220a82ad1c757478b498577 | Java | luansousa26/java8-default-crud-application | /src/main/java/com/luan/java8defaultcrudapplication/domain/User.java | UTF-8 | 1,550 | 2.4375 | 2 | [] | no_license | package com.luan.java8defaultcrudapplication.domain;
import java.io.Serializable;
import java.time.LocalDate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Sequen... | true |
e7fbb40348e9bd97d9dbe6157d817b454d4ab563 | Java | imLance/Perfect | /app/src/main/java/com/lance/perfect/view/fragment/WXCircleVideoFragment.java | UTF-8 | 8,361 | 1.945313 | 2 | [] | no_license | package com.lance.perfect.view.fragment;
import android.content.res.AssetFileDescriptor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view... | true |
dfd12f92dca05b483bf911456a7986c1b8f87686 | Java | AmazingJoeZeng/DB_Practice | /Ward_management_system/src/DBConnection/Login_Patient.java | UTF-8 | 913 | 2.546875 | 3 | [] | no_license | package DBConnection;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.SQLException;
public class Login_Patient {
public void Login(String name,String sex,int age,String doctor,String bing,String department,int roomnum,int bednum) {
Connection conn =null;
CallableStatem... | true |
456395065214ab2bed6de30e2546ee5300cba5e6 | Java | Renan3M/Pizza-Delivery_android | /app/src/main/java/com/infnet/ads/projetodebloco/DataBase/PizzaDAO.java | UTF-8 | 3,778 | 2.609375 | 3 | [] | no_license | package com.infnet.ads.projetodebloco.DataBase;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import com.infnet.ads.projetodebloco.Entity.Client;
import com.infnet.ads.projetodebloco.Products.Product;
public class PizzaDAO { // Only this class should have acces... | true |
649b6a77b1c86350e9090a3fd70267827775e505 | Java | enterpriseih/jvm_lecture-1 | /src/main/java/com/shengsiyuan/jvm/reference/MyTest1.java | UTF-8 | 1,130 | 3.625 | 4 | [] | no_license | package com.shengsiyuan.jvm.reference;
import java.lang.ref.SoftReference;
import java.util.Date;
/**
* Reference实例的4中状态 Active Pending Enqueued Inactive
* Active:新创建的引用实例都会处于Active状态
* Pending:未被注册到引用队列中的引用对象不可能处于该状态
* Enqueued:未被注册到引用队列中的引用对象不可能处于该状态
* Inactive:无法对该状态的引用对象执行任何操作,处于该状态下的对象状态不会再发生任何变化
*/
public... | true |
51739e2498e93b1cdcc5dfb88fe3414d0e4b549d | Java | bezda/xync | /src/test/java/net/kuujo/xync/MapTest.java | UTF-8 | 16,794 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 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 by applicable l... | true |
114aca811bbb5f473edd9b00c2e8b9ab0e830562 | Java | feacerbi/Udacity-Nanodegree-PopularMovies | /app/src/main/java/br/com/felipeacerbi/popularmovies/dagger/MoviesComponent.java | UTF-8 | 530 | 1.992188 | 2 | [] | no_license | package br.com.felipeacerbi.popularmovies.dagger;
import javax.inject.Singleton;
import br.com.felipeacerbi.popularmovies.activities.MainActivity;
import br.com.felipeacerbi.popularmovies.activities.MovieDetailsActivity;
import dagger.Component;
@Singleton
@Component(modules = {
AppModule.class,
Movi... | true |
501bb1e10a3b318e04facd85696b8b8cbd7a8c97 | Java | djhelbert/game-models | /game-models/src/main/java/com/game/model/common/CommonUtil.java | UTF-8 | 375 | 2.53125 | 3 | [] | no_license | package com.game.model.common;
import java.util.Random;
/**
* Common Utility Class
*
* @author dhelbert
*
*/
public class CommonUtil {
/**
* Get Random Number
*
* @param max
*
* @return int
*/
public static int getRandomNumber(int max) {
Random randomGenerator = new Random... | true |
10db04dca85ea9d6024d0585799a8289ed5513ad | Java | potatophobe/CanUAffordToSmokeBot | /src/main/java/org/telegram/tomatophile/canuaffordtosmoke/bot/processed/textcommand/CanIAffordCommand.java | UTF-8 | 893 | 2.359375 | 2 | [] | no_license | package org.telegram.tomatophile.canuaffordtosmoke.bot.processed.textcommand;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.tomatophile.canuaffordtosmoke.service.Reply... | true |
bfc9f39d29e3ad1cc8bb5f4c78948664188d0d9c | Java | wuyechun2018/baixiaosheng | /bxs-manager/bxs-manager-jdbc/src/main/java/com/bxs/jdbc/FloatWinDao.java | UTF-8 | 5,970 | 2.015625 | 2 | [] | no_license | package com.bxs.jdbc;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanProper... | true |
164c0d0cb3729954cf95f4c35d4f1a4018c5fe85 | Java | saumitramohan/Dev-Zot | /src/org/dev/multithreading/SyncronizationTest.java | UTF-8 | 1,131 | 3.46875 | 3 | [] | no_license | package org.dev.multithreading;
import java.util.concurrent.SynchronousQueue;
class PrintDemo {
public void printCount() {
try {
for (int i = 0; i < 5; i++) {
System.out.println("Counter value - " + i);
}
} catch (Exception e) {
System.out.println("Thread interrupted");
}
}
}
class ThreadDemo... | true |
b308693854bcdbfdb01df4e4cd95f0d0353a35c7 | Java | databill86/ironySarcasmDetection | /IroniTAClassifier.java | UTF-8 | 16,202 | 2.1875 | 2 | [
"MIT"
] | permissive | import it.uniroma2.sag.kelp.data.dataset.SimpleDataset;
import it.uniroma2.sag.kelp.data.example.Example;
import it.uniroma2.sag.kelp.data.label.Label;
import it.uniroma2.sag.kelp.data.label.StringLabel;
import it.uniroma2.sag.kelp.kernel.Kernel;
import it.uniroma2.sag.kelp.kernel.cache.FixIndexKernelCache;
import it.u... | true |
5bb4cb01078648da2499dd109004039ee4b450ed | Java | dvjzero/ChileDenuncia | /src/orm/ContactoCriteria.java | UTF-8 | 1,612 | 2.375 | 2 | [] | no_license | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: Universidad del Pais Vasco
* License ... | true |
20fdd69b73461e287dba4950811eea96ed689a86 | Java | anagalacticRuby/AmbienceMockups | /src/sample/Main.java | UTF-8 | 961 | 2.609375 | 3 | [] | no_license | package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
/**
* This entire program is a mockup for the Ambience application. All screens may be subject to
* change if there is a desire, so nothing is 100% ... | true |
55f08f22391e6e343fdb86ab55adaaf0eb04cc6c | Java | jorgeelucas/sociotorcedor | /src/main/java/com/desafio/sociotorcedor/service/SocioTorcedorService.java | UTF-8 | 4,455 | 2.171875 | 2 | [] | no_license | package com.desafio.sociotorcedor.service;
import java.time.LocalDate;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cac... | true |
74f128fcd93d3453fccf682679c36cb6e2a15d39 | Java | paulduong222/development | /isuite-core-ui/src/main/java/gov/nwcg/isuite/framework/core/vo/PersistableVo.java | UTF-8 | 2,079 | 2.5625 | 3 | [] | no_license | package gov.nwcg.isuite.framework.core.vo;
import gov.nwcg.isuite.framework.core.domain.Persistable;
import java.util.Date;
/**
*
* @author ncollette
*
*/
public interface PersistableVo {
/**
* Accessor id
*
* @see #setId(Long)
* @return id
*/
public Long getId();
/**
... | true |
f76c0c8a7ec93ad5c85ffb29a80f63998e66e26f | Java | victorzaitev/iBanc-RM-Server | /src/main/java/md/ibanc/rm/read/message/MessageFactory.java | UTF-8 | 1,155 | 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 md.ibanc.rm.read.message;
import md.ibanc.rm.spring.service.MessageService;
/**
*
* @author PC01017745
*/
pub... | true |
3bff4accd936f3a98d178ca4bfcc79fbc92c382f | Java | harshithalingaraj/cucooo | /cucumber/src/main/java/package1/scenario1.java | UTF-8 | 217 | 2.40625 | 2 | [] | no_license | package package1;
import io.cucumber.java.en.Given;
public class scenario1 {
@Given("I enter 50 in the calculator")
public void I_enter()
{
System.out.println("I enter 50 in the calculator");
}
}
| true |
e6caaf3b6b83b5d1f4b652b2cbfe83dbb7903302 | Java | Xycl/JSynthLib | /src/main/java/org/jsynthlib/synthdrivers/RolandMKS50/MKS50ToneSingleEditor.java | UTF-8 | 11,613 | 2.140625 | 2 | [] | no_license | // written by Kenneth L. Martinez
// @version $Id: MKS50ToneSingleEditor.java 895 2005-02-07 05:50:06Z hayashi $
package org.jsynthlib.synthdrivers.RolandMKS50;
import java.awt.GridBagLayout;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;
import org.jsynth... | true |
8136841c95ef47504118f1d4bbd6794943bf2697 | Java | schana/skillsusa-java | /game/internal/GameState.java | UTF-8 | 2,071 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | package game.internal;
import game.Board;
import game.Cell;
import game.MyMover;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import static game.Board.COLUMNS;
import static game.Board.ROWS;
public class GameState {
private Board board;
private Snake snake;
private Food food;... | true |
d48e6b1c669013cb361058621c75a31039370af5 | Java | tatjanamalic/vjezbanje | /src/ČetriOsamnaestKnjiga.java | UTF-8 | 836 | 3.34375 | 3 | [] | no_license | import java.util.Scanner;
public class ČetriOsamnaestKnjiga {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Unesite dva karaktera: ");
String unos = "M1";
String odabir = "";
if(unos.startsWith("M")){
... | true |
d34999e65d96a6e9041fbd52360cda9fac7f5298 | Java | Bionex/AAComp2 | /src/batalha/Escolta.java | ISO-8859-1 | 1,881 | 3.140625 | 3 | [] | no_license | package batalha;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import telas.Tabuleiro;
public class Escolta extends Navio {
public static final int tamanho = 3;
public static final int id = 3;
// retorna verdadeiro se j tiver um navio nessas posicoes
public static boolean checaNavio(int[][] vetor, i... | true |
8665a52053b19452445898f00f5f83099e070538 | Java | jLemmings/GastronomySoftware | /gastrosoftware-gui-service-leiter/src/main/java/ch/hslu/slgp/gastrosoftware/gui/controller/LoginController.java | UTF-8 | 3,980 | 2.09375 | 2 | [] | no_license | package ch.hslu.slgp.gastrosoftware.gui.controller;
import ch.hslu.slgp.gastrosoftware.model.Mitarbeiter;
import ch.hslu.slgp.gastrosoftware.rmi.api.RMIPersonService;
import ch.hslu.slgp.gastrosoftware.rmi.context.Context;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import ... | true |
54f71217489c925e5bd8dff36bd4b6ce77bfe755 | Java | Foreinyel/demo-java | /demo-concurrent/src/Bank.java | UTF-8 | 1,375 | 3.421875 | 3 | [] | no_license | import java.util.HashMap;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
public class Bank {
private ReentrantLock bankLock = new ReentrantLock();
private HashMap<String, Integer> accounts = new HashMap();
private Condition sufficient = bankLock.newConditio... | true |
c1968122a64dc5e325acceda8052ccc287e85fda | Java | javasrd/pivasBase | /src/com/zc/pivas/allowork/bean/AlloWorkCount.java | UTF-8 | 1,035 | 2.015625 | 2 | [] | no_license | package com.zc.pivas.allowork.bean;
import java.io.Serializable;
/**
* 对应配置费分类数量
*
* @author jagger
* @version 1.0
*/
public class AlloWorkCount implements Serializable {
/**
* 注释内容
*/
private static final long serialVersionUID = 1L;
/**
* 编码
*/
private S... | true |
75cffc5a3042f2000a239d7e95b5b97d8e8e748a | Java | markzhang1986/TAR | /src/at/ac/tuwien/infosys/www/pixy/Dumper.java | UTF-8 | 36,594 | 2 | 2 | [] | no_license | package at.ac.tuwien.infosys.www.pixy;
import at.ac.tuwien.infosys.www.phpparser.ParseNode;
import at.ac.tuwien.infosys.www.phpparser.ParseTree;
import at.ac.tuwien.infosys.www.pixy.analysis.AbstractAnalysisNode;
import at.ac.tuwien.infosys.www.pixy.analysis.AbstractLatticeElement;
import at.ac.tuwien.infosys.www.pixy... | true |
9f8590ea0dac169600b3af2b8b952f1258e78fbd | Java | fax4ever/eap6-play | /eap6-principal-roles/src/main/java/it/redhat/demo/roles/model/PrincipalInfo.java | UTF-8 | 725 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package it.redhat.demo.roles.model;
import java.util.HashSet;
import java.util.Set;
/**
* Created by fabio.ercoli@redhat.com on 08/06/2017.
*/
public class PrincipalInfo {
private boolean principal = false;
private String username;
private Set<String> roles;
public PrincipalInfo() {
}
p... | true |
3232c1da2617de73ae8fecb393f097aab2bb2d36 | Java | IRON-head-CWD/IDEA_coda | /javaDay02/Day02/src/com/itheima/test01/test06/Test.java | UTF-8 | 238 | 1.976563 | 2 | [] | no_license | package com.itheima.test01.test06;
public class Test {
public static void main(String[] args) {
smallSize s=new smallSize("3","3","动物类");
s.Animalshow();
s.Sizeshow();
s.smallSizeshow();
}
}
| true |
cf77d6ff2cf03ff0f87fc6df5a8f960273227367 | Java | XMUJ2EE/Fifcos | /src/main/java/xmu/crms/service/impl/FixGroupServiceImpl.java | UTF-8 | 4,395 | 2.15625 | 2 | [] | no_license | package xmu.crms.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xmu.crms.dao.impl.FixGroupDaoImpl;
import xmu.crms.entity.*;
import xmu.crms.exception.*;
import xmu.crms.service.ClassService;
import xmu.crms.service.FixGroupService;
im... | true |
253392580ae1b946a3f127d5bb3bb513d71d2310 | Java | jmcabandara/camel | /init/camel-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/PatchedLog.java | UTF-8 | 3,065 | 1.945313 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | 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 |
a9511b769e869218e94be6c10be3fff9963ac3db | Java | Hexatan/workspace | /Gestion/src/Compte.java | UTF-8 | 1,234 | 2.765625 | 3 | [] | no_license | public class Compte {
protected float solde;
protected String nom;
protected float soldeini;
protected Client proprietaire;
public Compte() {
this.solde = 0;
this.soldeini = 0;
this.proprietaire = null;
}
public Compte(float solde, String nom,Client p) {
if (solde < 0) {
this.solde = 0;
this.sold... | true |
d7b928a5a8ec8825b2e271de0430f49162936c50 | Java | zhongxingyu/Seer | /Diff-Raw-Data/10/10_60b0e0d8ae7e951a18aafea61241cf5ec0cc0d34/Main/10_60b0e0d8ae7e951a18aafea61241cf5ec0cc0d34_Main_s.java | UTF-8 | 14,296 | 2.15625 | 2 | [] | no_license | package plusone;
import plusone.utils.Dataset;
import plusone.utils.Indexer;
import plusone.utils.KNNGraphDistanceCache;
import plusone.utils.KNNSimilarityCache;
import plusone.utils.KNNSimilarityCacheLocalSVDish;
import plusone.utils.MetadataLogger;
import plusone.utils.PaperAbstract;
import plusone.utils.P... | true |
48a558f55d6f45e14caf427945fa6e7f4bd197e8 | Java | sxysxys/JAVASE_Study | /ThinkinJava/src/test/InnerTest.java | UTF-8 | 310 | 2.140625 | 2 | [] | no_license | package test;
import innerclass.Test1;
/**
* @Author: shenge
* @Date: 2020-04-02 00:24
* 测试内部类不同包下的访问。
*/
public class InnerTest {
public static void main(String[] args) {
// Test1.Test1_1 test1 = new Test1.Test1_1();
// Test1.Test1_1 xx = test1.xx();
}
}
| true |
7c80933721ed0e4eb744c2c07c25134fc5001cf4 | Java | xSke/CoreServer | /src/org/apache/http/impl/nio/reactor/DefaultConnectingIOReactor.java | UTF-8 | 8,363 | 1.898438 | 2 | [] | no_license | /*
* Decompiled with CFR 0_129.
*/
package org.apache.http.impl.nio.reactor;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.UnknownHostException;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.SelectableC... | true |
a28396e06380feb1804eea53c213653fa9266f04 | Java | wentjiang/leetcode | /src/test/java/com/wentjiang/leetcode/q1_100/Question20Test.java | UTF-8 | 936 | 2.296875 | 2 | [] | no_license | package com.wentjiang.leetcode.q1_100;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author wentaojiang
*
* @date 2019/9/2 1:50 PM
*
* @description
*/
public class Question20Test {
private Question20 question20;
@Before
public void setUp() throws Excep... | true |
9eb5725fe66810c52f7116679ec31912f0239871 | Java | Jeky/xun | /xuntemplate/src/main/java/org/xun/xuntemplate/ast/IntNodeFactory.java | UTF-8 | 720 | 2.625 | 3 | [] | no_license | package org.xun.xuntemplate.ast;
import java.util.LinkedList;
import org.xun.xuntemplate.ASTNode;
import org.xun.xuntemplate.EvalFunc;
import org.xun.xuntemplate.RenderContext;
import org.xun.xuntemplate.Type;
/**
*
* @author Jeky
*/
public class IntNodeFactory extends ASTNodeFactory {
@Override
public AS... | true |
f3e1e5dad0eb785c3f5426946d1c5ede2d7daf5a | Java | tianshouzhi/netty_tutorial | /netty/handler/src/main/java/com/tianshouzhi/handler/idle/HeartbeatServerHandler.java | UTF-8 | 1,384 | 2.671875 | 3 | [] | no_license | package com.tianshouzhi.handler.idle;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import java.util.Date;
... | true |
d161e92287875a4f12b161625f450e0623f565f3 | Java | nehasoni05/HackerRank_solutions | /Java/Introduction/Java Loops/Solution1.java | UTF-8 | 1,469 | 3.5 | 4 | [] | no_license | /*Task You are given q queries in the form of a, b, and n For each query, print the series corresponding to the given a, b, and n values as a single line of n space-separated integers.
Input Format
The first line contains an integer, q denoting the number of queries.
Each line i of the q subsequent lines contains th... | true |
0dade8e135e0405adaa0758839589d856dbdc2de | Java | luangs7/UtilsBase | /app/src/main/java/br/com/squarebits/utilsbase/MainActivity.java | UTF-8 | 2,951 | 2.328125 | 2 | [] | no_license | package br.com.squarebits.utilsbase;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.github.rrsystems.utilsplus.android.UtilsPlus;
import java.lang.reflect.Method;
public class MainActivity extends AppCompatActivity {
... | true |
5f92da3fc6f7c63bd626965fffcd6725577d46da | Java | Zhuikov/HTTP-FTP-Proxy | /src/main/java/httpFtpProxy/Proxy.java | UTF-8 | 9,570 | 2.875 | 3 | [] | no_license | package httpFtpProxy;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.ArrayList;
public class Proxy {
static class DataAndCode {
private String code = null;
private ArrayList<Character> data = null;
public DataAndC... | true |
8175d1edf0c1b593a1b8f48e48f1a6428c7d5fa5 | Java | ncguy2/UMLEditor | /core/src/net/ncguy/uml/event/IEvent.java | UTF-8 | 164 | 1.773438 | 2 | [] | no_license | package net.ncguy.uml.event;
/**
* Created by Nick on 30/09/2015 at 20:23,
* Project: UMLEditor.
*/
public interface IEvent {
void run(Object... args);
}
| true |
33675da811435ea194939b423961fc22c82d80b7 | Java | SimonWang1/design-pattern | /src/com/wsx/demo/factory/logger/serviceimpl/DatabaseLogger.java | GB18030 | 298 | 2.109375 | 2 | [] | no_license | package com.wsx.demo.factory.logger.serviceimpl;
import com.wsx.demo.factory.logger.service.Logger;
// ݿ־Ʒҵʵ֣
public class DatabaseLogger implements Logger{
@Override
public void writeLog() {
System.out.println("record database log");
}
}
| true |
d1e9371aa97815e00192b95106e59573cbef0f98 | Java | AhmedBadrSayed/NewMoviesApp | /app/src/main/java/com/projects/brightcreations/moviesappmvp/web_service/RetrofitErrorCallbacks.java | UTF-8 | 943 | 2.390625 | 2 | [] | no_license | package com.projects.brightcreations.moviesappmvp.web_service;
import android.util.Log;
import com.projects.brightcreations.moviesappmvp.movie.MoviesResponse;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Consumer;
/**
* @author ahmed on 26/03/18.
*/
public class RetrofitErrorCallbacks i... | true |
a0b15ed46a12d1ea31eb03fcb0b338cc158d99b4 | Java | ROJASCAPOTE/Peliculas | /AlquilerPeliculas/src/main/java/Vista/FrmStore.java | UTF-8 | 30,014 | 1.851563 | 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 Vista;
import Modelo.dao.DAOManager;
import Modelo.dao.StoreDAO;
import Modelo.vo.AddressVO;
/**
*
* @author ACER E5
*/
pu... | true |
264b9ef96eee256f13730224499f0c3bea618b4a | Java | hongyegong/photoShare_Android | /web/pic/src/com/ishare/conn/MyConnection.java | UTF-8 | 2,425 | 2.734375 | 3 | [] | no_license | package com.ishare.conn;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Prope... | true |
89b9af5dc9f1cd4f2934f71b856153862c407ba0 | Java | ac-silva/desafio-pagarme | /src/test/java/PagarMe/api/SplitRuleHandlerTest.java | UTF-8 | 1,083 | 2.265625 | 2 | [
"MIT"
] | permissive | package PagarMe.api;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.mockit... | true |
ba40af5628fdfae2b889f852bfff641abd58294d | Java | bkvishal/ActiveMQ-InMemory | /src/main/java/com/jms/example/activemq_inmemory_jms/Controller/Subscriber.java | UTF-8 | 431 | 2.234375 | 2 | [] | no_license | package com.jms.example.activemq_inmemory_jms.Controller;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
/**
* @author : Vishal Srivastava
* @Date : 11-07-2021
**/
@Component
public class Subscriber {
@JmsListener(destination = "inMemory.queue")
pu... | true |
e4dfbba5e9bee8e3b04242c802acd5cbb327281b | Java | StarReider/microservices-practical | /gamification/src/main/java/microservices/book/gamification/controller/AdminController.java | UTF-8 | 835 | 2.03125 | 2 | [] | no_license | package microservices.book.gamification.controller;
import org.springframework.context.annotation.Profile;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind... | true |
cee8359cb73a0f0d818eac49a101237c60d6e25d | Java | erdnute/notes | /notes/src/main/java/de/erdnute/notes/NotesRepository.java | UTF-8 | 466 | 1.867188 | 2 | [] | no_license | package de.erdnute.notes;
import java.util.List;
import de.erdnute.notes.filerep.FileFolder;
public interface NotesRepository {
List<Folder> findAllFolders();
List<Note> findNotesByFolder(String tagName);
List<Note> findNotesByText(String searchtext);
List<Note> findNotesByText(String searchtext, Str... | true |
783a808fc4264989ccd5187c828329626331134e | Java | SviatlanaYermalinskaya/ATC | /Task15/TestMassive4.java | UTF-8 | 2,568 | 2.484375 | 2 | [] | no_license | package HomeWork;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.BeforeClass;
import java.util.Arrays;
import org.testng.Assert;
import org.testng.annotations.After... | true |
2fe3a1a1b1832bf8ed738bffccff7e39ae6f93b1 | Java | itrenjunhua/MyMVP | /lib_android_utils/src/main/java/com/renj/utils/system/SystemUtils.java | UTF-8 | 10,055 | 2.03125 | 2 | [] | no_license | package com.renj.utils.system;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.provider.Settin... | true |
363b087661160694ce0d317abbd9d6ced280bf7f | Java | srpraharaj/itupgrade | /src/main/java/com/ibm/itupgrade/restcontrollers/MiddlewareReadinessController.java | UTF-8 | 2,086 | 1.976563 | 2 | [] | no_license | package com.ibm.itupgrade.restcontrollers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.... | true |
9da20ee6cfc66ad0a0408f3175b828b26c2496b3 | Java | nricci/YAWL2FSP | /src/fsp/model/FSP_TresholdOrJoin.java | UTF-8 | 1,260 | 2.796875 | 3 | [] | no_license | package fsp.model;
public class FSP_TresholdOrJoin extends FSPJoin {
protected final String fsp_name() { return "TRSH_OR_JOIN"; }
private int ins;
private int treshold;
public FSP_TresholdOrJoin(int n, int t) {
ins = n;
treshold = t;
for(int i = 1; i <= n; i++) {
this.input_names.put("in["+i+"]", ... | true |
859c1bbbdd3abda9a469bfc95455ab4416f1d333 | Java | RyanRomano/JavaTest | /src/Kennel.java | UTF-8 | 1,172 | 4.28125 | 4 | [
"MIT"
] | permissive | //Ryan Romano
//4.2 ed7
//Instantiates dog objects and calls the methods
//of the Dog class created in a separate file
public class Kennel {
public static void main(String[] args) {
//create new Dog object from Dog.java with (name, age) parameter
//dog objects can also be set name/age in first usage of
//Dog dog ... | true |
6e6a9d169fb834a72ba018e11ef738716786c234 | Java | souvikbachhar/Full_Stack | /Spring_Basics_Assignments/4/src/com/souvik/ass3/StudentMapper.java | UTF-8 | 404 | 2.515625 | 3 | [] | no_license | package com.souvik.ass3;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
public class StudentMapper implements RowMapper<Student>{
@Override
public Student mapRow(ResultSet rs, int rowNum) throws SQLException {
Student st = new Student();
st.setStudentN... | true |
d9caad37b08189f544a2c6ea3aee11559b6604c1 | Java | mygithubwork/ihmc-open-robotics-software | /ExampleSimulations/src/us/ihmc/exampleSimulations/skippy/SkippyICPBasedController.java | UTF-8 | 14,153 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.exampleSimulations.skippy;
import us.ihmc.euclid.matrix.RotationMatrix;
import us.ihmc.euclid.tuple3D.Point3D;
import us.ihmc.graphicsDescription.appearance.YoAppearance;
import us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition;
import us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.Gra... | true |
d40efb4963e74d31cda9fc12399c1de56787d523 | Java | mmichaelis/antarctic | /src/test/java/org/arctic/ant/taskdefs/UpperTest.java | UTF-8 | 3,607 | 2.109375 | 2 | [] | no_license | /*
* Copyright (C) 2009 Mark Michaelis <thragor_at_gmx.net>
*
* 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... | true |
c8b046b115615bf660e1e316a6c7feda0c8d51b0 | Java | SiupangChoy/algorithm-structure | /src/coding_for_great_offer/class02/Code05_HashMapWithSetAll.java | UTF-8 | 317 | 2.265625 | 2 | [] | no_license | package coding_for_great_offer.class02;
/**
* 数据结构设计题
* 设计一个HashMap,具有正常的put、get功能之外,具有setAll功能
* 调用setAll之后,所有的key get出来的value一样;setAll之后再put指定key,对应的value会更新
*/
public class Code05_HashMapWithSetAll {
}
| true |
e4f7cbb1396abf673754b88f2d3b7035432e8029 | Java | PavanSaiSheshetti/PatientOnboardingApp_Web | /src/main/java/com/revature/poa/service/DoctorService.java | UTF-8 | 473 | 2.0625 | 2 | [] | no_license | package com.revature.poa.service;
import java.util.List;
import com.revature.poa.model.Doctor;
public interface DoctorService {
public boolean addDoctor(Doctor doctor);
public boolean updateDoctor(Doctor doctor);
public Doctor getDoctorById(long doctorId);
public boolean isDoctorExist(long doctorId);
public b... | true |
929eee385b3b9b2d4679734af8bb58c4e9395a24 | Java | AndrewFanChina/Cyclone2D | /Android/src_c2d/c2d/mod/physic/C2D_Motion.java | GB18030 | 2,953 | 2.609375 | 3 | [] | no_license | package c2d.mod.physic;
import c2d.frame.base.C2D_Widget;
import c2d.lang.obj.C2D_Object;
public class C2D_Motion extends C2D_Object
{
//趨ƫ
private float m_XOffset;
private float m_YOffset;
//ٶ
private float m_a;
//˶ʱ
private int m_timeTotal;
//ǰ˶ʱ
private int m_timeCurrent;
//ؼ
private C2D_Widget m_widget... | true |
b479a2a4d1c1aa1540c70e929e36544dd44b8cf0 | Java | SeokJunHan/DJ-Delivery | /app/src/main/java/dj/sjn/djbaedal/Adapter/SearchAdapter.java | UTF-8 | 1,759 | 2.40625 | 2 | [] | no_license | package dj.sjn.djbaedal.Adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import dj.sjn.djbaedal... | true |
779a78b9c48ede4da321999354504514e5600564 | Java | heaven6059/wms | /logistics-wms-city-1.1.3.44.5/logistics-wms-city-common/src/main/java/com/yougou/logistics/city/common/model/BillOmDirectLog.java | UTF-8 | 2,301 | 1.992188 | 2 | [] | no_license | /*
* 类名 com.yougou.logistics.city.common.model.BillOmDirectLog
* @author su.yq
* @date Tue Nov 05 09:32:53 CST 2013
* @version 1.0.0
* @copyright (C) 2013 YouGou Information Technology Co.,Ltd
* All Rights Reserved.
*
* The software for the YouGou technology development, without the
* company's written co... | true |
db7c0db25388251780ef47a5ff2843126222ec9e | Java | hage1527/Daily-learning | /mybatistest/mybatis_annotation/src/main/java/com/hage/mybatis01/dao/IUserDao.java | UTF-8 | 1,206 | 2.21875 | 2 | [] | no_license | package com.hage.mybatis01.dao;
import com.hage.mybatis01.entity.User;
import org.apache.ibatis.annotations.Many;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.FetchType;
import java.util.List;
... | true |
d2360c88135a2098fb9337e6adbe215a9a03aa03 | Java | icepaule/kestra | /core/src/main/java/io/kestra/core/tasks/scripts/AbstractBash.java | UTF-8 | 10,886 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package io.kestra.core.tasks.scripts;
import io.kestra.core.models.annotations.PluginProperty;
import io.kestra.core.models.executions.AbstractMetricEntry;
import io.kestra.core.models.tasks.Task;
import io.kestra.core.runners.RunContext;
import io.kestra.core.tasks.scripts.runners.DockerScriptRunner;
import io.kestra... | true |
7402de605c1d98bebaadffe4a6f9efe4916feb35 | Java | OCHA-DAP/DAP-System | /HDX-System/src/main/java/org/ocha/hdx/validation/itemvalidator/IValidator.java | UTF-8 | 1,067 | 2.171875 | 2 | [
"Unlicense"
] | permissive | /**
*
*/
package org.ocha.hdx.validation.itemvalidator;
import org.ocha.hdx.model.validation.ValidationStatus;
import org.ocha.hdx.persistence.entity.curateddata.Indicator;
import org.ocha.hdx.persistence.entity.curateddata.IndicatorImportConfig;
import org.ocha.hdx.validation.Response;
/**
* @author alexandru-m-g... | true |
bde41189948e9f4b216b1e026fcbb5e70fb7e12c | Java | nice01qc/IdeaProjects | /algorithm/src/main/java/graphTheory/shortestpath/AcyclicSP.java | UTF-8 | 1,967 | 3.25 | 3 | [] | no_license | package graphTheory.shortestpath;
import edu.princeton.cs.algs4.Bag;
import edu.princeton.cs.algs4.DepthFirstOrder;
import edu.princeton.cs.algs4.Digraph;
import edu.princeton.cs.algs4.Topological;
/**
* 无环加权有向图的最短路径算法
*/
public class AcyclicSP {
private DirectedEdge[] edgeTo;
private double[] distTo;
... | true |
94c12d191843977063be06d87654e7bbebddecaf | Java | ZhouRuiQing/Movie | /app/src/main/java/com/bw/movie/mvp/view/apdater/tabapdaters/MovieHotApdater.java | UTF-8 | 2,016 | 2.015625 | 2 | [] | no_license | package com.bw.movie.mvp.view.apdater.tabapdaters;
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 com.bumptech.glide.Glide;
import com.bw.movie... | true |
64a51f0d2aa49d0c826f54ca35e02b64c986c86c | Java | PuZZleDucK/aCrawler | /aCrawl/src/com/puzzleduck/crawler/ACrawlStarter.java | UTF-8 | 1,172 | 2.453125 | 2 | [] | no_license | /**
* (C)me & GPL3
* Webcrawl start/restart listener ... need i say more.
*/
package com.puzzleduck.crawler;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.concurrent.ForkJoinPool;
/**
* @author bminerds
*
*/
public class ACrawlStarter implements ActionListener {
/... | true |
b36531b9637227ee8d011a8774d8db328cc73432 | Java | Pinyk/study | /java进阶/多线程/src/com/two/Main.java | UTF-8 | 328 | 2.296875 | 2 | [] | no_license | package com.two;
public class Main {
public static void main(String[] args) {
MyThread a = new MyThread("线程一");
MyThread b = new MyThread("线程二");
MyThread c = new MyThread("线程三");
new Thread(a).start();
new Thread(b).start();
new Thread(c).start();
}
}
| true |
1ab7666f9a63d41b6698bac8840a2379e5749fb0 | Java | skyzzango/Study-Example-AOP-SpringBoot | /src/main/java/com/example/aop/history/domain/History.java | UTF-8 | 902 | 2.484375 | 2 | [] | no_license | package com.example.aop.history.domain;
import javax.persistence.*;
import java.util.Date;
@Entity
public class History {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long idx;
@Column
private long userIdx;
@Column
private Date updateDate;
public History() {
}
public History(long use... | true |
dfb3af8b4f9f73e17f9815f5a986ae46ed23b15d | Java | Vinayabali5/Data-creation | /main/generated-sources/uk/ac/reigate/domain/academic/QIdentificationViolation.java | UTF-8 | 2,515 | 1.898438 | 2 | [] | no_license | package uk.ac.reigate.domain.academic;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.core.types.dsl.PathInits;
/**
* QIdenti... | true |
24d995cc735d9932012deaee3b9eccba92e363a9 | Java | luoxiaoshan/lxs-repo | /WorkdayCalculator/src/workdaycalculator/Workday.java | UTF-8 | 6,691 | 2.984375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package workdaycalculator;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.... | true |
be30113f131be18ec4aa2181f02e027989ba1314 | Java | KittehOrg/Spectastic | /src/main/java/org/kitteh/spectastic/data/gamemode/PastGameModeDataManipulatorBuilder.java | UTF-8 | 2,380 | 1.84375 | 2 | [
"MIT"
] | permissive | /*
* * Copyright (C) 2016 Matt Baxter http://kitteh.org
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
*... | true |
38a14e49bc5119f4a043e1a71d970c434f8f5ecf | Java | abinkh/reactSpringStaticHost | /src/main/java/com/backend/service/ProductServiceImpl.java | UTF-8 | 645 | 2.21875 | 2 | [] | no_license | package com.backend.service;
import com.backend.dao.ProductDao;
import com.backend.model.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.List;
/**
* Created by abin on 12/12/2017.
*/
@Ser... | true |