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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70ad262bd5eea283a767b5f36ab7ddb0d7982408 | Java | tranbinh1991/MovieReservationProject | /MovieSpringProject/src/main/java/com/bh08/movieproject/dtos/TicketsCreationDto.java | UTF-8 | 810 | 2.03125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.bh08.movieproject.dtos;
import com.bh08.movieproject.models.Ticket;
import com.fasterxml.jackson.core.JsonProcessingExcept... | true |
bebde3606423444361bdea3db5c933e608acedad | Java | diyal9/FastAndrUtils-master | /app/src/main/java/com/hotapk/fastandrutils/FButtonActivity.java | UTF-8 | 768 | 2.0625 | 2 | [] | no_license | package com.hotapk.fastandrutils;
import android.os.Bundle;
import android.view.View;
import cn.hotapk.fastandrutils.utils.FToastUtils;
import cn.hotapk.fastandrutils.widget.FButton;
/**
* @author laijian
* @Copyright (C)2018-06-27 14:43:57 , www.hotapk.cn
*/
public class FButtonActivity extends FBaseActivity {... | true |
b1c54eb3ad16487dfcc06ad9ddc96abdfe7b63c3 | Java | bawar17/jAutomate1 | /Desktop/jAutomate/jautomate/custom/selenium/WriteText.java | UTF-8 | 4,452 | 2.765625 | 3 | [] | no_license | package custom.selenium;
import java.util.Properties;
import javax.swing.JOptionPane;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class WriteText
{
private WebDriver webDriver=null;
public Boolean executeCommand(String[] commandParameters, ... | true |
3745cf8f29e158281ad8e068a40a57367458b760 | Java | 00zhengfu00/prj | /PhysicMasterTV-Common/app/src/main/java/com/lswuyou/tv/pm/net/response/version/NewVersionInfo.java | UTF-8 | 273 | 1.5 | 2 | [] | no_license | package com.lswuyou.tv.pm.net.response.version;
/**
* Created by Administrator on 2016/8/22.
*/
public class NewVersionInfo {
//最新版本号
public String latestReleaseVersion;
//最新版本url
public String latestReleaseVersionPackageUrl_Android;
}
| true |
3279d91d91a5c2b055f57468166e9a4b08b21620 | Java | Akorra/BlissApp | /app/src/main/java/recruitment/blissapp/LoadingScreen.java | UTF-8 | 2,413 | 2.171875 | 2 | [] | no_license | package recruitment.blissapp;
import android.app.DownloadManager;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.Response... | true |
4babba885fd4a84a86ace41ae3a67399eea46b6b | Java | SagarKabariya/StoreDesk | /src/Product/Product_Modify.java | UTF-8 | 39,081 | 2.140625 | 2 | [] | no_license | package Product;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.CardLayout;
import java.... | true |
b4d59d8f16818eabbc2b978b0c0f65844ebb119d | Java | Paladin1412/house | /java/classes2/com/pgyersdk/g/j.java | UTF-8 | 688 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package com.pgyersdk.g;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.growingio.android.sdk.agent.VdsAgent;
import com.growingio.android.sdk.instrumentation.Instrumented;
class j
implements DialogInterface.OnClickListener
{
j(h paramh) {}
@Instrume... | true |
bc7121c6aada404e2360860c535f32d4ff2079eb | Java | kapild/algorithms-design-and-analysis | /programming-practice/src/main/java/challenges/leetcode/WordSquares.java | UTF-8 | 3,874 | 3.3125 | 3 | [] | no_license | package challenges.leetcode;
import static com.google.common.truth.Truth.assertThat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import challenges.AbstractCustomTestRunner;
/**
* 425. Word Squares
*
* Given a set of words (without duplicates), find all word squares you can build ... | true |
d1407c4122d94d166705a764b41e711f2d61a957 | Java | AddstarMC/Minigames | /Regions/src/main/java/au/com/mineauz/minigamesregions/conditions/HasFlagCondition.java | UTF-8 | 2,348 | 2.421875 | 2 | [
"MIT"
] | permissive | package au.com.mineauz.minigamesregions.conditions;
import au.com.mineauz.minigames.config.StringFlag;
import au.com.mineauz.minigames.menu.Menu;
import au.com.mineauz.minigames.menu.MenuItemPage;
import au.com.mineauz.minigames.menu.MenuUtility;
import au.com.mineauz.minigames.objects.MinigamePlayer;
import au.com.mi... | true |
43b9afa38cd5dbb20df58388605074b8de06088d | Java | MrSnack/ShogiDev | /src/dev/shogi/board/Graveyard.java | UTF-8 | 3,852 | 3.078125 | 3 | [] | no_license | package dev.shogi.board;
import dev.shogi.figures.Figure;
import dev.shogi.figures.basic.*;
import java.util.ArrayList;
public class Graveyard extends ArrayList<Figure> {
private boolean isWhite;
private Board board;
public Graveyard(Board board, boolean isWhite) {
this.board = board;
t... | true |
d58574e01dfa159f384598f98c106797258045a6 | Java | zhangzx8/online-regist | /online-register/src/main/java/com/haoxw/terminal/business/model/PriceMonitor31DAOObjectMapper.java | UTF-8 | 2,023 | 2.1875 | 2 | [] | no_license | package com.haoxw.terminal.business.model;
import java.sql.ResultSet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.haoxw.db.oracle.base.ObjectMapper;
/**
*
* @author haoxw
*
*/
public class PriceMonitor31DAOObjectMapper implements ObjectMapper {
private static final Logger log = Logger... | true |
d93b0bcd11fb5476ce690f2d9b14d7b6246d3d01 | Java | yasir-albardawil/library-management-system | /src/net/yasir/model/Book.java | UTF-8 | 2,428 | 2.65625 | 3 | [
"MIT"
] | permissive | package net.yasir.model;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Book {
private SimpleStringProperty id;
private SimpleStringProperty title;
... | true |
939a6a04d55685c873273a6c398346b9016f204d | Java | autogensh/pic_lib_proj | /src/main/java/com/piclib/web/config/PersistentTokenRepository.java | UTF-8 | 488 | 1.9375 | 2 | [] | no_license | package com.piclib.web.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.web.authentication.rememberme.JdbcTokenRepositoryImpl;
import org.springframework.stereotype.Component;
import javax.sql.DataSource;
@Component
public class PersistentTokenRepository exte... | true |
ee6687daf6c04373791033714b41577abc25867d | Java | songboyu/word-expand-java | /src/com/wiki/util/DBConfig.java | UTF-8 | 984 | 2.40625 | 2 | [] | no_license | package com.wiki.util;
import de.tudarmstadt.ukp.wikipedia.api.DatabaseConfiguration;
import de.tudarmstadt.ukp.wikipedia.api.WikiConstants.Language;
/**
* 数据库配置类,配置数据库
*
*/
public class DBConfig {
/**
* 获取一个数据库配置对象
* @return
*/
public static DatabaseConfiguration getDBConfig(){
DatabaseConfiguration d... | true |
80ee2968fb650a115b721255e77bc027af0fb75e | Java | meeidol-luo/qooq | /classes5/hht.java | UTF-8 | 672 | 1.5 | 2 | [] | no_license | import com.tencent.biz.eqq.CrmUtils;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.data.EqqDetail;
import com.tencent.mobileqq.hotpatch.NotVerifyClass;
public final class hht
implements Runnable
{
public hht(QQAppInterface paramQQAppInterface, EqqDetail paramEqqDetail)
{
boolean... | true |
e4ed6805cce37f09c2b9cf5abf09b8ac5d3dd64d | Java | zhiyongwu/JavaCode | /src/main/java/mooc/proxy/ProxySubject.java | UTF-8 | 319 | 2.859375 | 3 | [] | no_license | package mooc.proxy;
/**
* Created by wuzhiyong on 2016/5/12
*/
public class ProxySubject implements Subject{
private Subject proxied;
public ProxySubject(Subject proxied){
this.proxied = proxied;
}
@Override
public void dosomething(String str) {
proxied.dosomething(str);
}
}
| true |
53ce3a9c6969813a18b54940ae65db493553d735 | Java | paragparalikar/stox4 | /stox/src/main/java/com/stox/module/core/model/Scrip.java | UTF-8 | 1,225 | 2.421875 | 2 | [] | no_license | package com.stox.module.core.model;
import java.io.Serializable;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import lombok.experimental.Accessors;
@Value
@RequiredA... | true |
c4c92959051f576ed8da5d8f9e2cce6895b6abf3 | Java | ltettoni/predsolver | /src/main/java/org/logic2j/predsolver/api/DBPredicate.java | UTF-8 | 1,097 | 2.171875 | 2 | [] | no_license | package org.logic2j.predsolver.api;
import org.logic2j.predsolver.util.SqlBuilder3;
import org.logic2j.predsolver.util.SqlBuilder3.Criterion;
public interface DBPredicate {
public static class ColumnInfo {
public final String table;
public final String column;
public final String operator... | true |
046abadcb114191f6f9ef6ce9db38f2de9188715 | Java | hiteshchopra11/RestCountries | /app/src/main/java/com/example/restcountries/RegionDetailsActivity.java | UTF-8 | 3,490 | 2.328125 | 2 | [] | no_license | package com.example.restcountries;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import java.util.ArrayList;
public class RegionDetailsActivity extends AppCompatActivity {
TextView nameTextView;... | true |
06a081b9ed257b49b972525b13c3f88ecae9b173 | Java | SrabaniS/JavaInheritancePractice | /src/love/programming/AnimalClass.java | UTF-8 | 625 | 2.5 | 2 | [] | no_license | package love.programming;
import javax.xml.stream.events.Namespace;
import java.util.Set;
public class AnimalClass {
String animalNames;
int numLegs;
public void setAnimalNames( String animalNames) {
this.animalNames = animalNames;
}
public void setNumlegs(int numlegs) {
... | true |
a8a1803f7cf2d7dbb752335b6433ab341dad78ce | Java | zhaom/p2p-solution | /p2p-core/core-common/src/main/java/com/solution/p2p/core/common/entity/SysUserSecurity.java | UTF-8 | 9,571 | 1.835938 | 2 | [] | no_license | package com.solution.p2p.core.common.entity;
import java.io.Serializable;
import java.util.Date;
public class SysUserSecurity implements Serializable {
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column sys_user_security.id
* @mbggenerated Wed Oct 15 16:50:27 CST... | true |
7bccf012df43935d89c2a63eb1986d2440c4012b | Java | tungtv202/micromiter-prometheus | /src/main/java/com/example/demoprometheus/BatchJobMetric.java | UTF-8 | 989 | 1.851563 | 2 | [] | no_license | package com.example.demoprometheus;
import io.micrometer.core.instrument.Clock;
import io.micrometer.core.instrument.Timer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import java.util.Random... | true |
04bb18e69999eaf2f9aa8570a231a71d9d0ad114 | Java | ecen489/Topic-13_Dynamic_UI | /app/src/main/java/edu/tamu/ece/t13_dynamic_ui/MainActivity.java | UTF-8 | 1,063 | 2.65625 | 3 | [] | no_license | package edu.tamu.ece.t13_dynamic_ui;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
public class MainActivity extends AppCompatActivity {
@Override
protect... | true |
baf7aee0dd2acfa238d821722a46d9625e00d1de | Java | kuibug/bingwallpaper | /src/main/java/top/kuibug/bingWallpaper/Di.java | UTF-8 | 2,768 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package top.kuibug.bingWallpaper;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.util.List;
public class Di extends JDialog {
/**
* Create the dialog.
*/
public Di() {
setBounds(100, 100, 375, 127);
getContentPane().setLayout(new BorderLa... | true |
e67572febfc01e5a35a90aba9679e434a3d0fcb8 | Java | jajuk-team/jajuk | /src/main/java/org/jajuk/services/core/RatingService.java | UTF-8 | 6,892 | 2.421875 | 2 | [] | no_license | /*
* Jajuk
* Copyright (C) The Jajuk Team
* http://jajuk.info
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* Thi... | true |
73f842a0ac47afdefd0510ec68bcd19fecec876d | Java | BJCreslin/students-registry123 | /users-service-test-util/src/main/java/boost/brain/course/controller/util/PageSpam.java | UTF-8 | 2,018 | 2.359375 | 2 | [] | no_license | package boost.brain.course.controller.util;
import boost.brain.course.controller.dto.UserDto;
import lombok.extern.java.Log;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.Rest... | true |
8aec57e81c8b4013d84b371d4290ea7bf7e37b97 | Java | sebastianlerner/ghosthunter | /src/com/example/ghosthunt/MainActivity.java | UTF-8 | 44,037 | 1.773438 | 2 | [] | no_license | package com.example.ghosthunt;
//newest version
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleP... | true |
fa98cee0a4415cc63198bb984b159d8735cf7cb9 | Java | XMK233/Leetcode-Journey | /java/111.java | UTF-8 | 2,150 | 3.8125 | 4 | [] | no_license | import sun.reflect.generics.tree.Tree;
import java.util.*;
import java.util.Collection;
/* 脑子秀逗了,判断两边是不是都是空的时候竟然都写不对。
* 111. Minimum Depth of Binary Tree
Easy
594
299
Favorite
Share
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from the root node dow... | true |
b03c94d23cab2931420ea48c266f48102b669f09 | Java | bohdloss/fuckunclejack | /FuckUncleJack/src/main/java/com/bohdloss/fuckunclejack/server/Authenticator.java | UTF-8 | 205 | 1.5 | 2 | [
"BSD-3-Clause"
] | permissive | package com.bohdloss.fuckunclejack.server;
public class Authenticator {
public static boolean authenticate(String matchcode) {
//TODO when i will add steam integration
return true;
}
}
| true |
be8369900a9ffd26b35bfde079ef68954393d91b | Java | Gwinhard/Pre_project_3.1.3 | /src/main/java/com/example/pre_project_313/repository/UserRepository.java | UTF-8 | 368 | 2.015625 | 2 | [] | no_license | package com.example.pre_project_313.repository;
import com.example.pre_project_313.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
User findByEmail(String em... | true |
1e3b9c97b12b09aa39c283ebab611ddbec27a407 | Java | Stiffty/Eclipse | /Server/src/multigame/Server_send.java | UTF-8 | 879 | 2.625 | 3 | [] | no_license | package multigame;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import javax.swing.JButton;
public class Server_send extends Thread{
private Socket client;
private ObjectOutputStream out;
private JButton b;
public Se... | true |
4c345150ed98a400b818432cf1baed4055c45d7f | Java | polomanij/calculator | /src/calcActions/Multiplication.java | UTF-8 | 274 | 2.71875 | 3 | [] | no_license | package calcActions;
public class Multiplication {
public static double multiply(double... nums) {
double result = nums[1];
for(int i = 1; i < nums.length; i++) {
result *= nums[i];
}
return result;
}
}
| true |
044c2bce85720f983ead94726d6319e4796a3432 | Java | Mky135/javaMineSweeper | /src/java/game/controller/MainController.java | UTF-8 | 1,258 | 2.875 | 3 | [] | no_license | package game.controller;
import game.utils.MineSweeper;
import game.utils.Tile;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Region;
import java.net.URL;
import java.util.ResourceBundle;
public... | true |
34be72fe8cc83d92ab975cd98a22289d44415ad8 | Java | xdlv-sys/Xd | /src/main/java/xd/fw/scheduler/WxCerts.java | UTF-8 | 2,418 | 2.234375 | 2 | [] | no_license | package xd.fw.scheduler;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.ssl.SSLContexts;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereo... | true |
3451df2db14ef9f373dd50d91008986d6095fa06 | Java | ShiyunHUANG/Leetcode | /src/easy/NestedListWeightSum339.java | UTF-8 | 1,284 | 3.625 | 4 | [] | no_license | package easy;
import java.util.List;
// This is the interface that allows for creating nested lists.
// You should not implement it, or speculate about its implementation
interface NestedInteger {
// @return true if this NestedInteger holds a single integer, rather than a nested list.
public boolean i... | true |
20572df6bd94de21a8b6e25999224f8aff5c2653 | Java | EsReich/JmPreProject.2.4.2 | /src/main/java/web/crud/dao/RoleDAO.java | UTF-8 | 141 | 1.828125 | 2 | [] | no_license | package web.crud.dao;
import web.crud.entity.Role;
import java.util.Set;
public interface RoleDAO {
public Set<Role> getAllRoles();
}
| true |
4bbb7ce7367f8736d29829bb59e9f5cc4cab1646 | Java | aditonita/java_school | /src/java_school/JavaList.java | UTF-8 | 996 | 3.890625 | 4 | [] | no_license | package java_school;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class JavaList {
public static void main(String[] args) {
// 5
// 12 0 1 78 12
// 2
// Insert
// 5 23
// Delete
// 0
// Sample Output
// 0 1 78 12 23
/*
* Enter your code here. Read input ... | true |
b10ec9abb40d16209512069c5ee5776328515fba | Java | yosrB/BankAccount-KATA | /test/src/main/java/com/kata/test/TestApplication.java | UTF-8 | 628 | 1.554688 | 2 | [] | no_license | package com.kata.test;
import com.kata.test.domain.Account;
import com.kata.test.repository.AccountRepository;
import com.kata.test.repository.OperationRepository;
import com.kata.test.service.AccountService;
import com.kata.test.service.OperationService;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
f1ef1afd3ce8b6fb49542fb2aac9011780003d98 | Java | solartcc/HwFrameWorkSource | /Mate20_9_0_0/src/main/java/com/android/server/autofill/ui/-$$Lambda$AutoFillUI$VF2EbGE70QNyGDbklN9Uz5xHqyQ.java | UTF-8 | 662 | 1.9375 | 2 | [] | no_license | package com.android.server.autofill.ui;
import com.android.server.autofill.ui.AutoFillUI.AutoFillUiCallback;
/* compiled from: lambda */
public final /* synthetic */ class -$$Lambda$AutoFillUI$VF2EbGE70QNyGDbklN9Uz5xHqyQ implements Runnable {
private final /* synthetic */ AutoFillUI f$0;
private final /* synt... | true |
6d53c58a4ba90c6a6caeeb04132095267a63c451 | Java | MaHe-byte/HT07-05- | /app/src/main/java/com/example/ht07_05/MainActivity.java | UTF-8 | 1,871 | 2.40625 | 2 | [] | no_license | package com.example.ht07_05;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import java.io.BufferedReader;
import java.io.FileNotFoundExceptio... | true |
51cefbfa0f70866c26ac3ccf441b2db68ab34d16 | Java | ArturCzopek/coimbra-jug | /src/main/kotlin/pl/simplecoding/coimbrajug/UserController.java | UTF-8 | 1,130 | 2.3125 | 2 | [] | no_license | package pl.simplecoding.coimbrajug;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.security.Principal;
import j... | true |
d16696aff4364cbd9d3ed865fd584d08ce084d45 | Java | Ab007007/QSP_27_APR | /src/com/qsp/basics/js/JavaScriptDemo.java | UTF-8 | 594 | 1.976563 | 2 | [] | no_license | package com.qsp.basics.js;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import com.qsp.utils.ActitimeUtils;
public class JavaScriptDemo {
public static void main(String[] args) {
WebDriver driver = ActitimeUtils.getMyDriver();
Actit... | true |
0d8406f5b8e84cca9ec55c9177984819c9c9b74c | Java | developer-2507/trabajo_coding | /javaspring/encuesta/src/main/java/com/coding/web/encuesta/controllers/EncuestaDelDojoController.java | UTF-8 | 1,175 | 2.296875 | 2 | [] | no_license | package com.coding.web.encuesta.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
... | true |
cf06e4b5a2f6379d2e9fdc7343c0fef49f14cd97 | Java | sksinghpenn/binaryMergeSortJava | /src/main/java/com/lifotech/java/binaryMergeSort/HiringAssignmentDriver.java | UTF-8 | 902 | 3.515625 | 4 | [] | no_license | package com.lifotech.java.binaryMergeSort;
import java.util.Vector;
/**
* This is a driver class to test the basic functionaly of the {@link HiringAssignment} class.
* @author SK Singh
*/
public class HiringAssignmentDriver {
public static void main(String[] args) {
System.out.println("Hello Java");
... | true |
90f01470f5d991704d9429e089bd3e5f55d40f20 | Java | tomazlunder/ashleyT2 | /core/src/com/mygdx/ashleyt2/components/SpawnerComponent.java | UTF-8 | 167 | 1.632813 | 2 | [] | no_license | package com.mygdx.ashleyt2.components;
import com.badlogic.gdx.math.Vector2;
public class SpawnerComponent{
Vector2 spawnPosition;
Vector2 spawnInterval;
}
| true |
c6537d2d5e4440f275331568c0b841f2208f5e62 | Java | Alexander-Moroz/certificate-service | /src/main/java/com/amoroz/entity/validation/TaskDataValidator.java | UTF-8 | 1,160 | 2.765625 | 3 | [] | no_license | package com.amoroz.entity.validation;
import com.amoroz.entity.Task;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class TaskDataValidator implements ConstraintValidator<ValidateTaskData, Task> {
private static final int MAX_LOCAL_USER_NAME_LENGTH = 40;
... | true |
8276cb2b3f2e9920c55531b02f143ffc4b51a031 | Java | micfans/ASF | /Base/base-core/src/main/java/org/openpackage/base/core/http/IResponseHandler.java | UTF-8 | 367 | 1.960938 | 2 | [] | no_license | package org.openpackage.base.core.http;
/**
* Created by micfans on 23/11/2016.
*/
public interface IResponseHandler {
public static final int TYPE_JSON = 0;
public static final int TYPE_XML = 1;
public static final int TYPE_TEXT = 2;
void onFailure(String statusCode);
void onResponse(IRespon... | true |
be175f051941feb7486d88a3b620f2ee2754130d | Java | guidaross/Flickr | /app/src/main/java/com/example/guilhermedaros/flickr/MainActivity.java | UTF-8 | 4,107 | 2.140625 | 2 | [] | no_license | package com.example.guilhermedaros.flickr;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.KeyEvent;
import android.view.View;
import android.... | true |
7b42a85c5ec4421728ba12db315941671d5a12ee | Java | a-majidi/java-examples | /jax-ws-spring/src/main/java/com/spr/service/HelloWorldImpl.java | UTF-8 | 250 | 1.6875 | 2 | [] | no_license | /**
*
*/
package com.spr.service;
import org.springframework.stereotype.Component;
/**
* @author a.majidi
*
*/
@Component
public class HelloWorldImpl implements HelloWorld{
public String getHelloWorld(){
return "JAX-WS + Spring!";
}
}
| true |
72d423e77822b265cb43b87433073c6196fc1ca2 | Java | acodeguy/Media-Inventory | /src/com/reptilesoft/mediainventory/MediaInventory.java | UTF-8 | 3,446 | 2.265625 | 2 | [] | no_license | package com.reptilesoft.mediainventory;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;
public class MediaInventory ex... | true |
3a98166f5cf10e59d55952f9cc3160feb3692417 | Java | jimmylaskera/BitPress | /br/com/gersondavid/edb2/FileManager.java | UTF-8 | 2,487 | 3.203125 | 3 | [] | no_license | package br.com.gersondavid.edb2;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.lang.SecurityException;
import java.io.IOException;
public abstract class FileManager
{
protected FileInputStream input1;
protected FileInputStream input2;
pro... | true |
b8c77f2b2d68f92f5e4547c83ff4197beb0edd17 | Java | a6697238/buffer-slayer | /core/src/main/java/io/bufferslayer/Message.java | UTF-8 | 1,469 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package io.bufferslayer;
import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created by tramchamploo on 2017/3/3.
* Message can be send to reporter, could be a sql or a hbase query
*/
public abstract class Message implements Serializable {
protected static final long serialVersionU... | true |
d57c41c4db919e226f6d3a82fb1cf1525c429d2a | Java | nagatejith1938462/se-demo | /Test/src/csv/Readcsv.java | UTF-8 | 957 | 3.359375 | 3 | [] | no_license | Map<String,String> classList = new Hashmap<String,String>();
public classGrades() {
classList.put("Bob","A"); classList.put("Mary","C");
classList.put("Sarah","B");
classList.put("Philip","A"); classList.put("Greg","F");
}
public void ClassList() {
Iterator<Entry<String,String>> entries=classList.entrySet().ite... | true |
d7e7e1aacf040f5250eb646ebd1c1ee123ee7723 | Java | jackieyoung1234/NewAlgotithmPractice | /src/BoyerMooreSubStringSearch.java | UTF-8 | 1,341 | 2.953125 | 3 | [] | no_license | public class BoyerMooreSubStringSearch {
private static final int R = 26;//alphabetic set nubmer
private int[] indexTable;
private int pattern_length;
private String pat;
public static int charAt(int index, String s){
return s.charAt(index) - 'a';
}
public BoyerMooreSubStringSearch(St... | true |
fa3b2c9cdc70c373f4fc5c5ea8d352f5f7b2d1cc | Java | darkpower/HongQiUnicom | /src/main/java/com/hongqiunicom/crm/web/springmvc/controller/accept/verify/VerifyController.java | UTF-8 | 537 | 1.6875 | 2 | [] | no_license | package com.hongqiunicom.crm.web.springmvc.controller.accept.verify;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Created by Darkpower on 2016/12/10.
* <p>
* 日受理清单
*/
@Controlle... | true |
fa24e6df5950b0d07a8542404ef749663eeed66a | Java | OrphenD/CS411Project2 | /sym.java | UTF-8 | 3,939 | 1.945313 | 2 | [] | no_license |
//----------------------------------------------------
// The following code was generated by CUP v0.11b 20160615 (GIT 4ac7450)
//----------------------------------------------------
/** CUP generated class containing symbol constants. */
public class sym {
/* terminals */
public static final int DIVIDE = 23;
p... | true |
19a7fef7ec93c33547265ab0c5026766cdc2cfae | Java | konohiroaki/deep-initializer | /deep-initializer-core/src/test/java/io/github/konohiroaki/deepinitializer/ComplexObject.java | UTF-8 | 596 | 2.0625 | 2 | [
"MIT"
] | permissive | package io.github.konohiroaki.deepinitializer;
import java.nio.file.AccessMode;
import java.util.List;
import java.util.Map;
import java.util.Set;
class ComplexObject extends SimpleObject {
private int intA;
private long longA;
private double doubleA;
private Double wDoubleA;
private String strin... | true |
165217c1bdb1339690f65b6a19a50af4c3fee3b3 | Java | Buuhuu/sling-org-apache-sling-distribution-journal | /src/test/java/org/apache/sling/distribution/journal/impl/shared/PackageViewerPluginTest.java | UTF-8 | 5,754 | 1.835938 | 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 ... | true |
8821f12039e8a5fe3943e38842e58b8aeef7462c | Java | devilsangel/Drishti17 | /app/src/main/java/com/drishti/drishti17/network/models/EventModel.java | UTF-8 | 591 | 1.765625 | 2 | [] | no_license | package com.drishti.drishti17.network.models;
import com.google.gson.annotations.SerializedName;
/**
* Created by nirmal on 2/9/2017
*/
public class EventModel {
public int prize1, prize2, prize3, maxPerGroup, regFee;
@SerializedName("id")
public int server_id;
transient public int id;
public ... | true |
13dea834d050878f5eb10d87d8f13b21bab45cf2 | Java | Dorothy2/graphql-sdl | /src/main/java/com/drifai/graphqlsdl/context/CustomGraphQLServletContextBuilder.java | UTF-8 | 1,992 | 2.140625 | 2 | [] | no_license | package com.drifai.graphqlsdl.context;
import com.drifai.graphqlsdl.context.dataloader.DataLoaderRegistryFactory;
import graphql.kickstart.execution.context.GraphQLContext;
import graphql.kickstart.servlet.context.DefaultGraphQLServletContext;
import graphql.kickstart.servlet.context.DefaultGraphQLWebSocketContext;
im... | true |
4340d9d8edfe82916d3809fb5b9b9ff09aa3aff8 | Java | katarzyna177/moviesapp | /src/main/java/com/example/moviesapp/service/MovieServiceImpl.java | UTF-8 | 836 | 2.484375 | 2 | [] | no_license | package com.example.moviesapp.service;
import com.example.moviesapp.aspect.MailAspect;
import com.example.moviesapp.model.Movie;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service
public class MovieServiceImpl implements MovieService{
private List<Movie> mo... | true |
9c968d19a9603cde16d5a33c5561b6e6a86cfad0 | Java | MochamadEkoRamadhan/Aplikasi_Kuesioner | /app/src/main/java/com/example/aplikasikuisioner/PieChart.java | UTF-8 | 1,432 | 2.40625 | 2 | [] | no_license | package com.example.aplikasikuisioner;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.os.Bundle;
import com.github.mikephil.charting.data.PieData;
import com.github.mikephil.charting.data.PieDataSet;
import com.github.mikephil.charting.data.PieEntry;
import com.github.... | true |
7a470d5bb539a4189bf33e4eaddb2bd8a0b9d220 | Java | jlehnert/tasks | /tasks/src/main/java/net/lehnert/tasks/wicket/OpenEntityManagerListener.java | UTF-8 | 2,291 | 2.21875 | 2 | [] | no_license | package net.lehnert.tasks.wicket;
import javax.persistence.*;
import org.apache.wicket.*;
import org.apache.wicket.request.*;
import org.apache.wicket.request.cycle.*;
public class OpenEntityManagerListener implements IRequestCycleListener {
private ThreadLocal<EntityManager> entityManagerThreadLocal = new ThreadL... | true |
7fae2d34a976ed5b13d3e23684a1826429fe6513 | Java | Zhygit1998/javaSprSum2021 | /srsCode/echange/src/main/java/com/bank/echange/service/impl/ExchangeServiceImpl.java | UTF-8 | 4,167 | 2.140625 | 2 | [] | no_license | package com.bank.echange.service.impl;
import com.bank.echange.dto.WalletDto;
import com.bank.echange.dto.WalletUpdateDto;
import com.bank.echange.entity.CurrencyEnum;
import com.bank.echange.entity.Notification;
import com.bank.echange.entity.Rate;
import com.bank.echange.entity.TypeEnum;
import com.bank.echange.enti... | true |
f4e06b4e2537b0820d5af184343c7f5199604343 | Java | objective84/CharacterSheet | /src/main/java/com/rational/model/entities/traits/RolePlayTrait.java | UTF-8 | 952 | 2.34375 | 2 | [] | no_license | package com.rational.model.entities.traits;
import com.rational.model.entities.CharacterModel;
import com.rational.model.entities.TraitModel;
import com.rational.model.playing.Event;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.... | true |
b914f2a448fa6414b2cfb2dd6d57dd7fcb3c2dca | Java | quangvp95/SpeechDemo | /app/src/main/java/bkav/android/speech/SpeechManageService.java | UTF-8 | 30,870 | 1.546875 | 2 | [] | no_license | package bkav.android.speech;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.AudioAttributes;
import android.media.AudioFocusRequest;
import android.media.AudioManager;
import android.... | true |
c9e30ef51ac6f6836764107e31361a33b76dfa06 | Java | apache/druid | /indexing-service/src/main/java/org/apache/druid/indexing/worker/WorkerTaskMonitor.java | UTF-8 | 7,519 | 1.734375 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"ISC",
"GPL-2.0-only",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"0BSD",
"LicenseRef-scancode-sun-no-high-risk-activities",
"LicenseRef-scancode-free-unknown",
"JSON",
"LicenseRef-scancode-unico... | 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 ... | true |
551b9905eb46aeca5dbcb558cd2a244eabac19cb | Java | zdenda-online/gravitee-management-rest-api | /gravitee-rest-api-service/src/test/java/io/gravitee/rest/api/service/ViewService_CreateTest.java | UTF-8 | 3,820 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.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 requ... | true |
d7ecaeea8469edb0a364b5a349c30a5d54501f54 | Java | Vraj2301/COMP-249 | /Ass-2 WarshipInventory_1.java | UTF-8 | 9,544 | 3.6875 | 4 | [] | no_license | /** Name(s) and ID(s): Gulnoor Kaur (40114998) , Vraj Patel (40155059) COMP 249
* Assignment #2 PART 2 Due Date 04/08/2021
*/
import java.io.*;
import java.util.Scanner;
public class WarshipInventory_1 {
public static Warship_[] wsArr; // declaring a static array of warship
/**
* @param inputFi... | true |
72969d47c5d48f60e1ab7cb07a255eec6d9e9afb | Java | virginwidow/apps_small | /Londonweather/app/src/main/java/com/alaskalinuxuser/londonweather/MainActivity.java | UTF-8 | 3,226 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2017 by AlaskaLinuxUser (https://thealaskalinuxuser.wordpress.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
*
*... | true |
7e79168f0cb24f0825fd7c40e7c65f89c74160a9 | Java | M31MOTH/Remote-Control-PC | /RemoteControlPC-Studio/app/src/main/java/com/example/remotecontrolpc/AvatarFile.java | UTF-8 | 570 | 2.6875 | 3 | [] | no_license | package com.example.remotecontrolpc;
public class AvatarFile {
private int icon;
private String avatarHeading, avatarSubheading, path;
public AvatarFile (int icon, String avatarHeading, String avatarSubheading, String path) {
this.icon = icon;
this.avatarHeading = avatarHeading;
this.avatarSubheading = avat... | true |
91a453981bebc432294704042013058d127cb044 | Java | sarvya521/dsalgo | /src/main/java/ds/tree/BSTTraversing.java | UTF-8 | 4,120 | 3.640625 | 4 | [] | no_license | package ds.tree;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
public class BSTTraversing {
static class Node implements Comparable<Node>{
Integer data;
Node left;
Node right;
Node parent;
Node(int data) {
this.data = data;
}
@Override
public in... | true |
0d1cdf3c297b07386d309589668d5b297fd77fc2 | Java | Sava091/finalProject | /src/test/java/com/vitaliy/training/finalProject/dao/СoefficientDaoImplTest.java | UTF-8 | 897 | 2.078125 | 2 | [] | no_license | package com.vitaliy.training.finalProject.dao;
import com.vitaliy.training.finalProject.model.Coefficient;
import com.vitaliy.training.finalProject.dao.CoefficientDao;
import com.vitaliy.training.finalProject.dao.СoefficientDaoImpl;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import static... | true |
e9c9c39c876d8b5395252a83af860f376bd645d4 | Java | 9527dong/demo | /Spring/src/test/java/SpringCacheTest.java | UTF-8 | 6,377 | 3.109375 | 3 | [] | no_license | import cacheOfAnno.AccountService;
import oldCache.Account;
import oldCache.MyAccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpringCacheTest {
/**
* 自定义的缓存方案缺点:
* 1. 缓存代... | true |
7318148c2a5e669b7022b1c57c24f7dbbb32841c | Java | graydovee/weblog | /src/main/java/cn/graydove/weblog/mapper/ItemMapper.java | UTF-8 | 589 | 1.929688 | 2 | [] | no_license | package cn.graydove.weblog.mapper;
import cn.graydove.weblog.pojo.Items;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface ItemMapper {
@Select("select * from items where user_id=#{0}")
List<Items> selItemByUserId(int userId);
@Select("select * from items where it... | true |
8ecf11ddfc769be4f82f7b70a38ae4613775dc1d | Java | ComunidadYingul/Yingul | /src/main/java/com/valework/yingul/service/CotizacionService.java | UTF-8 | 243 | 1.695313 | 2 | [] | no_license | package com.valework.yingul.service;
import java.util.List;
import com.valework.yingul.model.Yng_Cotizacion;
public interface CotizacionService {
List<Yng_Cotizacion> findAll();
Yng_Cotizacion findByCotizacionId(Long id);
}
| true |
3e495a9616833f7ad3fa0063adbfb736b9d5e002 | Java | terry-flander/ShutterBug | /ShutterBug/src/au/com/fundfoto/shutterbug/entities/ProductCard.java | UTF-8 | 4,484 | 2.71875 | 3 | [] | no_license | package au.com.fundfoto.shutterbug.entities;
import java.util.Vector;
public class ProductCard {
private long ProductID = 0;
private String ProductDescription = null;
private String ProductType = null;
private Vector<String> OptionList = null;
private Vector<ProductPhoto> PhotoList = null;
private dou... | true |
8ec3650d079cb1e8293f9b9c2c61b0ee0226598f | Java | pplenty/jwp-was | /src/main/java/webserver/http/request/controller/JoinController.java | UTF-8 | 882 | 2.203125 | 2 | [] | no_license | package webserver.http.request.controller;
import db.DataBase;
import model.User;
import webserver.http.request.HttpRequest;
import webserver.http.request.ParameterMap;
import webserver.http.response.HttpResponse;
import webserver.http.response.view.ModelAndView;
/**
* @author : yusik
* @date : 2019-08-07
*/
publi... | true |
fb32c8d243404b2525649b9dda82131d7043aa2a | Java | CronutJun/NICE | /nibs_msg_broker/src/main/java/com/nicetcm/nibsplus/broker/msg/mapper/TFnDayCloseKioskMapper.java | UTF-8 | 9,726 | 1.664063 | 2 | [] | no_license | package com.nicetcm.nibsplus.broker.msg.mapper;
import com.nicetcm.nibsplus.broker.msg.model.TFnDayCloseKiosk;
import com.nicetcm.nibsplus.broker.msg.model.TFnDayCloseKioskKey;
import com.nicetcm.nibsplus.broker.msg.model.TFnDayCloseKioskSpec;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
... | true |
b85befa35f2e21377753d4d3ed8a628e46293873 | Java | charcar/dreamWhale | /app/src/main/java/com/epicodus/dreamwhale/util/Constants.java | UTF-8 | 661 | 1.710938 | 2 | [
"MIT"
] | permissive | package com.epicodus.dreamwhale.util;
import com.epicodus.dreamwhale.BuildConfig;
/**
* Created by Guest on 5/10/16.
*/
public class Constants {
public static final String FIREBASE_URL = BuildConfig.FIREBASE_ROOT_URL;
public static final String FIREBASE_LOCATION_USERS = "users";
public static final Stri... | true |
6d400ae895c5ce90d82ff610c4977ecee8b45625 | Java | milley/J2SE_Test | /src/zttc/icbc/computeTest/Test.java | WINDOWS-1252 | 506 | 2.046875 | 2 | [] | no_license | package zttc.icbc.computeTest;
public class Test {
public static void main(String[] args) {
GatewayCompany gboard = new GatewayCompany("Gateway 570");
//IntelCompany icpu = new IntelCompany("II", 2.8);
AMDCompany acpu = new AMDCompany(" X4", 3.8);
AMDCompany avideo = new AMDCompany("ATI radeon hd 4350", 1024... | true |
70e6ef696006b814235d4b8702ce67dccf68a383 | Java | howardhe0329/data-collector-common | /src/test/java/com/xsl/data/collect/test/FileTest1.java | UTF-8 | 432 | 2.234375 | 2 | [] | no_license | package com.xsl.data.collect.test;
import java.io.File;
/**
* Created by howard on 16/4/28.
*/
public class FileTest1 {
public static void main(String[] args) {
String directy = "/Users/howard/log/test";
System.out.println(directy.indexOf('\u0000'));
File directyFile = new File(directy... | true |
700ecbcbc5d105d02e5c440ecc312a76c4851377 | Java | changhoetyng/Frogger-JavaFX | /src/gameMain/game/GameModel.java | UTF-8 | 8,711 | 2.9375 | 3 | [] | no_license | package gameMain.game;
import javafx.animation.AnimationTimer;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.stage.Stage;
import gameMain.mvcInterface.*;
import java.util.*;
import gameMain.SceneManager;
impo... | true |
a63c4e3f42339120ccc1a99fa796e9cdeb7ec440 | Java | vmezhevikin/resume-mongodb | /src/main/java/net/devstudy/resume/repository/storage/ProfileRestoreRepository.java | UTF-8 | 409 | 1.8125 | 2 | [] | no_license | package net.devstudy.resume.repository.storage;
import java.util.Date;
import org.springframework.data.repository.CrudRepository;
import net.devstudy.resume.domain.ProfileRestore;
public interface ProfileRestoreRepository extends CrudRepository<ProfileRestore, String> {
ProfileRestore findByToken(String token);
... | true |
0f569ead7e28ac9cf4a9a504adb87170742c1f85 | Java | soldiers1989/documentResource | /复兴/新希望/scf-bas-paren/scf-bas-batch-core/src/main/java/com/huateng/scf/bas/batch/report/adapter/SemsReportFileAdapter.java | UTF-8 | 8,829 | 2.1875 | 2 | [] | no_license | /**
* ==================================================================
* The Huateng Software License
*
* Copyright (c) 2007-2008 Huateng Software System. All rights
* reserved.
* @author MAIK.CHEN
* create time :2008-02-17 16:45:38
* ==================================================================
*/
pac... | true |
955c3cbee93048745e3432e950112dbe4ed9d2d9 | Java | artish1/CrystalClash | /src/main/java/me/artish1/CrystalClash/Classes/Abilities/LandOfFire.java | UTF-8 | 1,140 | 2.8125 | 3 | [] | no_license | package me.artish1.CrystalClash.Classes.Abilities;
import me.artish1.CrystalClash.Util.Methods;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import java.util.List;
public class LandOfFire extends Ability{
... | true |
2ec47edb3cd3d78c9aa7843f3bfa98fb8c70bb09 | Java | PhalanxHead/shadow_blocks_assign_2 | /src/proj2/Mage.java | UTF-8 | 1,696 | 3.5 | 4 | [] | no_license | /**
* @author Luke Hedt
* StuID: 832153
*
* Extends Sample Project for SWEN20003: Object Oriented Software Development 2017
* by Eleanor McMurtry. Based on Project 2A Design by Eleanor McMurtry.
*/
package proj2;
/**
* Mage, chases player using algorithm set in specification. Enemy.
* @auth... | true |
4173fa6d786f71499cb4ce0a9734462622e988b2 | Java | RuiLu/Xel-Ha | /Xcaret/259_3SumSmaller.java | UTF-8 | 803 | 3.53125 | 4 | [] | no_license | public class Solution {
/**
* Idea -> Two pointers, and this problem allows duplicates
* Time complexity -> O(n^2)
*/
public int threeSumSmaller(int[] nums, int target) {
if (nums == null || nums.length <= 2) return 0;
Arrays.sort(nums);
int num = 0;
... | true |
c5b9d140203b856a39742de7ff309fe109ee722e | Java | papabarrett/CandyRush | /src/ToyBox.java | UTF-8 | 684 | 3.078125 | 3 | [] | no_license | /**
*
* @author J. Barrett
*/
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.util.Random;
import javax.swing.ImageIcon;
public class ToyBox extends Rectangle{
boolean active;
Image toybox=new ImageIcon("toybox.png").getImage();
public ToyBox(){
supe... | true |
2e8f1983e5f52c77f5c30b38387a05425892fa5a | Java | LHI0915/Android_IoTproject | /app/src/main/java/com/example/android_iotproject/BootReceiver.java | UTF-8 | 729 | 2.28125 | 2 | [] | no_license | package com.example.android_iotproject;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
public class BootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if... | true |
a0a3c1d57781f50ad0c324a9d10ae845ccceb39e | Java | rostam/cytoscape-impl | /vizmap-impl/impl/src/main/java/org/cytoscape/view/vizmap/internal/mappings/PassthroughMappingImpl.java | UTF-8 | 2,776 | 2.015625 | 2 | [] | no_license | package org.cytoscape.view.vizmap.internal.mappings;
import org.cytoscape.event.CyEventHelper;
import org.cytoscape.model.CyColumn;
import org.cytoscape.model.CyRow;
import org.cytoscape.view.model.VisualProperty;
import org.cytoscape.view.vizmap.mappings.AbstractVisualMappingFunction;
import org.cytoscape.view.vizmap... | true |
d2c88b5186b752a8d08c8d2ff066c4224f7820ac | Java | jandias/currency-x-changer | /src/main/java/net/permadevelop/currencyx/presentation/ConversionQueryController.java | UTF-8 | 1,830 | 2.09375 | 2 | [
"MIT"
] | permissive | package net.permadevelop.currencyx.presentation;
import net.permadevelop.currencyx.domain.ConversionQuery;
import net.permadevelop.currencyx.service.ConversionQueryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.Respon... | true |
3f3d9d5364adeb35c0593ff9f910810026482644 | Java | brazao/querydsl-args | /querydsl-args-core/src/test/java/me/yanaga/querydsl/args/core/infrastructure/jpa/LocalDateTimeAttributeConverter.java | UTF-8 | 1,378 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package me.yanaga.querydsl.args.core.infrastructure.jpa;
/*
* #%L
* querydsl-args-core
* %%
* Copyright (C) 2014 - 2015 Edson Yanaga
* %%
* 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 a... | true |
7d998dcd34a4fa7f5b6d225c149927d15074b33a | Java | 358Tcyf/ydq | /authority/src/main/java/group/ydq/authority/matcher/RegexPatternMatcher.java | UTF-8 | 561 | 2.21875 | 2 | [] | no_license | package group.ydq.authority.matcher;
import group.ydq.authority.PatternMatcher;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* =============================================
*
* @author wu
* @create 2018-11-25 22:36
* =============================================
*/
public class RegexPatt... | true |
38604ad5ec05c7a2cf63d46d1d1073472c015641 | Java | huangliliu0917/shopo2o | /shopo2o-service/src/main/java/com/huotu/shopo2o/service/enums/StoreGoodsStatusEnum.java | UTF-8 | 1,087 | 2.34375 | 2 | [] | no_license | package com.huotu.shopo2o.service.enums;
import com.huotu.shopo2o.common.ienum.ICommonEnum;
/**
* Created by hxh on 2017-09-18.
*/
public interface StoreGoodsStatusEnum {
/**
* 货品审核状态
*/
enum CheckStatusEnum implements ICommonEnum {
UNSUBMIT(0, "未提交审核"),
CHECKING(1, "审核中"),
... | true |
479e23fdc6a13a205e1216f0fc6afb3f9777174e | Java | caserwin/ErNLP | /src/main/java/tfidf/util/TFIDFFileUtil.java | UTF-8 | 2,731 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package tfidf.util;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import base.BaseFileUtil;
import tfidf.bean.WordTFIDFBean;
/**
* @author yiding
*/
public class TFIDFFileUtil extends BaseFileUtil {
/**
* 按行写入文件
*/
public sta... | true |
ca6f0e102696b70c17325b9c45e07c8758fc1321 | Java | khotilov/cmssw | /DQMServices/UI/src/src/cms/dqm/workflow/ListSubsystems.java | UTF-8 | 1,719 | 2.296875 | 2 | [] | no_license | package cms.dqm.workflow;
import java.io.*;
import java.sql.*;
import oracle.sql.*;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
public class ListSubsystems extends SimpleTagSupport {
private String type;
private int run;
public ListSubsystems() throws Exception {
... | true |
9910e68d14f9fc600bb9cd70584f54d5696c9b9d | Java | morgworth/spring-assignment | /SpringAssignment/src/main/java/com/assignment/config/AppConfig.java | UTF-8 | 4,034 | 2.109375 | 2 | [] | no_license | package com.assignment.config;
import java.util.concurrent.TimeUnit;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jongo.Jongo;
import org.jongo.MongoCollection;
import org.quartz.CronScheduleBuilder;
import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import o... | true |
c51b70147ba52cc1d136037e0a5eb4a4fc9406f0 | Java | rnveach/M3UExportTool | /src/com/company/CopyFilesToStick.java | UTF-8 | 1,428 | 3.140625 | 3 | [] | no_license | package com.company;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.FileChannel;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
/**
* Created by G... | true |
7d361a9a97d8f2043e5ece35a4046feba1d975a7 | Java | adriankovatana/Siege_Defense | /core/src/edu/uco/kkovatana1/siegedefense/Archer.java | UTF-8 | 3,275 | 2.515625 | 3 | [] | no_license | package edu.uco.kkovatana1.siegedefense;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.Vector2;
public class Archer extends Unit{
protected Vector2 target;
pr... | true |