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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0160103481d6b47bc8e7dbd1d567fa5780777c0d | Java | sea-lab-wm/burt | /burt-quality-checker/src/main/java/sealab/burt/qualitychecker/graph/db/GraphGenerator.java | UTF-8 | 28,103 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package sealab.burt.qualitychecker.graph.db;
import edu.semeru.android.core.dao.AppDao;
import edu.semeru.android.core.entity.model.App;
import edu.semeru.android.core.entity.model.fusion.DynGuiComponent;
import edu.semeru.android.core.entity.model.fusion.Execution;
import edu.semeru.android.core.entity.model.fusion.S... | true |
bdfde5f15bd897f6ab6c5a007e022b78ac241bec | Java | shiwenjie12/LeetCodeQuestion | /src/main/java/DeadLock.java | UTF-8 | 2,317 | 3.4375 | 3 | [] | no_license |
class Dead implements Runnable
{
public boolean flag;
public Object locka=new Object();
public Object lockb=new Object();
public Dead(boolean f) {this.flag=f;}
public void run()
{
while(true) {
if(flag)
{
synchronized(Lock.locka)
... | true |
b6031e4a99a3ddb7f693af084ed017e835049a52 | Java | zihanbobo/smsg-server | /src/20141123/game-dao/src/main/java/com/lodogame/game/dao/impl/mysql/SystemForcesDaoMysqlImpl.java | UTF-8 | 2,320 | 2.296875 | 2 | [] | no_license | package com.lodogame.game.dao.impl.mysql;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.lodogame.common.jdbc.Jdbc;
import com.lodogame.common.jdbc.SqlParameter;
import com.lodogame.game.dao.SystemForcesDao;
import com.lodogame.model.SystemForces;
public class Syste... | true |
0d04032d6d263392235182f9be12d537b3d0a59a | Java | TheRadikalStyle/coursera_droid_daa_wbserv_week1 | /app/src/main/java/com/theradikalsoftware/week5/ActivityContacto.java | UTF-8 | 2,093 | 2.421875 | 2 | [] | no_license | package com.theradikalsoftware.week5;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException... | true |
b9f675eeb4cbc9172536118a90832371d85b25dd | Java | datnguyen07/BTL_JavaCore | /src/IProduct.java | UTF-8 | 125 | 1.75 | 2 | [] | no_license |
public interface IProduct {
float MIN_INTEREST_RATE = 0.2f;
void inputData();
void displayData();
void calProfit();
}
| true |
d0c80210f0dfdb9dfb5847d5ea93fab0215adfbc | Java | ka5110/web20 | /src/main/java/dao/SystemUserDao.java | UTF-8 | 507 | 1.96875 | 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 dao;
import entity.SystemUser;
import java.util.List;
import java.util.Optional;
/**
*
* @author 5110
*/
public interface ... | true |
dca9bf7cc27c5e99d8d6068b1a9a93eada3e35d8 | Java | matebestek/opentele-client-android | /questionnaire-mainapp/src/dk/silverbullet/telemed/device/nonin/packet/states/ReceiverState.java | UTF-8 | 635 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package dk.silverbullet.telemed.device.nonin.packet.states;
import dk.silverbullet.telemed.device.nonin.packet.NoninPacketCollector;
public abstract class ReceiverState {
// Debugging
@SuppressWarnings("unused")
private static final String TAG = "ReceiverState";
public static final byte STX = 0x2;
... | true |
3ae55d5477db2656b7aafc8e372664b5bff5bbfa | Java | vsyniakin/prog_java_course_PRO | /Lesson03/src/com/gmail/vsyniakin/MapAnswerElement.java | UTF-8 | 747 | 2.390625 | 2 | [] | no_license | package com.gmail.vsyniakin;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlAccessorType(XmlAccessType.FIELD)
public class MapAnswerElement {
@XmlElement (name="answer")
private Answer key;
@XmlElement
... | true |
4c6ee4e2fa345fd0b183f6ad9c43ee64028df1f7 | Java | BalthazRBlake/YuGiAPI | /src/main/java/org/dev/fhhf/YuGi/service/StandardDeckService.java | UTF-8 | 458 | 2.09375 | 2 | [] | no_license | package org.dev.fhhf.YuGi.service;
import org.dev.fhhf.YuGi.model.StandardDeck;
import java.util.List;
public interface StandardDeckService {
public List<StandardDeck> standardDeckList();
public StandardDeck findStandardDeckById(long id);
public StandardDeck findStandardDeckByDeckName(String deckName)... | true |
ff078ab7c692ce91a360a13cc0eb2fe1eb82c64e | Java | zozoh/walnut | /test/org/nutz/walnut/util/WsTest.java | UTF-8 | 15,991 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package org.nutz.walnut.util;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.nutz.lang.Lang;
import org.nutz.lang.util.NutBean;
import org.nutz.walnut.util.callback.WnStrToken;
import org.nutz.walnut.util.callback.WnStrTokenCallback;
... | true |
9d32cb5815508b849c02f63dfb7b5a2459436d4f | Java | kanthi16/GitDemo | /src/main/java/pageObjects/landingPage.java | UTF-8 | 1,098 | 1.929688 | 2 | [] | no_license | package pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class landingPage {
public WebDriver driver;
By Testing = By.xpath("//*[@id=\"maximenuck243\"]/div[2]/ul/li[3]/span/span");
By Web = By.xpath("//*[@id=\"maximenuck243\"]/div[2]... | true |
e165c2fb2e9e6f586ad54e48b5c960d479c2db44 | Java | desarrolladorSLP/technovationslp-backend | /src/main/java/org/desarrolladorslp/technovation/controller/MentorController.java | UTF-8 | 1,896 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.desarrolladorslp.technovation.controller;
import org.desarrolladorslp.technovation.config.auth.TokenInfoService;
import org.desarrolladorslp.technovation.dto.AssignTeckersDTO;
import org.desarrolladorslp.technovation.dto.TeckerDTO;
import org.desarrolladorslp.technovation.services.MentorService;
import org... | true |
d54ddb13ea945f7f976f0ebd67a7ebcb166c9954 | Java | Vivannaboa/CompartilheVida | /app/src/main/java/br/com/compartilhevida/compartilhevida/PedidoDoacaoActivity.java | UTF-8 | 12,445 | 1.578125 | 2 | [] | no_license | package br.com.compartilhevida.compartilhevida;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.FloatingActionButton;... | true |
164dc258ac5b846e117ae593231a407520b070f7 | Java | yaeba/java-frogger | /src/MenuState.java | UTF-8 | 3,779 | 3.140625 | 3 | [] | no_license | /**
* Project for SWEN20003: Object Oriented Software Development 2018
* by Xuanken Tay, University of Melbourne
*/
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.Graphics;
import java.util.ArrayList;
/**
* ... | true |
e891acbb48ca29bc8dc776056b337cca2a24feb8 | Java | mihaipitu/ImageFeatures | /ImageFeaturesJava/src/profileEntropyFeatures/Histogram.java | UTF-8 | 2,534 | 3.015625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package profileEntropyFeatures;
/**
*
* @author Mihai Pîțu
*/
public class Histogram {
private float upperBound; //upper bound of the histogram
private float lowerBound; //lower bound of the histogram
pr... | true |
3b515bf4013349369ff9b5edba3d9b56ad7ce2cb | Java | hg960954342/hongfaBCRtest_1 | /src/main/java/com/intplog/mcs/bean/dto/EisDto/GcsOrderReportDto.java | UTF-8 | 375 | 1.570313 | 2 | [] | no_license | package com.intplog.mcs.bean.dto.EisDto;
import com.intplog.mcs.bean.dto.GcsDto.GcsOrderReport;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.List;
/**
* @author quqingmao
* @date 2020/7/17
*/
@Getter
@Setter
@ToString
public class GcsOrderReportDto {
... | true |
995f85fddc9d29cd9d0710aedd0def9d3883bd0c | Java | mRahulJain/JavaCodes | /L7/ArrayListDemo.java | UTF-8 | 1,149 | 4.0625 | 4 | [] | no_license | package L7;
import java.util.ArrayList;
public class ArrayListDemo {
public static void main(String[] args) {
ArrayList<Integer> list = new ArrayList<>();
System.out.println(list);
System.out.println(list.size());
list.add(10);
System.out.println(list);
list.add(20);
System.out.println(list);
list... | true |
fec75ef38ab5f4429ccbda16e1af6253c51ffc3d | Java | HTWG-NiLa/Battleship | /src/test/java/model/BoardTest.java | UTF-8 | 2,951 | 2.96875 | 3 | [] | no_license | package model;
import model.Enums.CellStatus;
import model.impl.Board;
import model.impl.Coordinate;
import model.impl.Player;
import model.impl.Ship;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Created by knl1imb on 24.02.2016.
*/
public class BoardTest {
private Board board... | true |
a3c355adb103af6882b6cbe9ec75dac4a0358ce7 | Java | mgpradeepa/ChallengePractices | /ProgrammingSKills/src/main/java/in/mgp/p/designpatterns/commandpattern/DBDataStore.java | UTF-8 | 446 | 2.71875 | 3 | [] | no_license | package in.mgp.p.designpatterns.commandpattern;
public class DBDataStore {
public void connectToDb(){
System.out.println("connected to DB");
}
public void maskPiiData() {
System.out.println("Using MD5 salting to mask");
}
public void decideDB() {
System.out.println("Depen... | true |
0c0f52e50bb08d25c7175558c045264d00e1462d | Java | lvsdian/jdk8 | /src/main/java/cn/andios/jdk8/OptionalTest2.java | UTF-8 | 874 | 3 | 3 | [] | no_license | package cn.andios.jdk8;
import java.lang.reflect.Array;
import java.util.*;
/**
* @description:
* @author:LSD
* @when:2019/8/10/11:20
*/
public class OptionalTest2 {
public static void main(String[] args) {
Employee employee1 = new Employee();
employee1.setName("张三");
Employee employe... | true |
2ba8034220feaf732aa4c46278fc5e363649a183 | Java | brenommelo/conversoWeca | /teste/src/teste/Teste.java | UTF-8 | 1,665 | 3.359375 | 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 teste;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import ja... | true |
3f46918126c2d361b0b3084beb0e1dc95a3cccc9 | Java | McLeodMoores/starling | /projects/engine/src/main/java/com/opengamma/engine/function/dsl/properties/RecordingValueProperties.java | UTF-8 | 2,354 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.function.dsl.properties;
import com.opengamma.lambdava.streams.Stream;
import com.opengamma.lambdava.streams.StreamI;
/**
* Properties.
*/
public fin... | true |
7158c44a18a5063b92a4f367f29d604b8b7a38c1 | Java | dm13579/mq | /rocketmq-quickstart/src/main/java/com/dm/mq/simple/producer/OnewayProducer.java | UTF-8 | 842 | 2.34375 | 2 | [] | no_license | package com.dm.mq.simple.producer;
import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.remoting.common.RemotingHelper;
public class OnewayProducer {
public static void main(String[] args) throws Exception{
DefaultMQP... | true |
29e1edd7cfd32260aa0911e84598d66318450064 | Java | ifishing/jobpipe | /core/src/main/java/org/deephacks/jobpipe/Pipeline.java | UTF-8 | 456 | 2.109375 | 2 | [] | no_license | package org.deephacks.jobpipe;
/**
* A pipeline schedule generated at runtime. A pipeline must provide a {@link java.util.ServiceLoader}
* META-INF/services/org.deephacks.jobpipe.Pipeline file in its jar.
*/
public interface Pipeline {
/**
* Called when the pipeline should execute, usually triggered from comm... | true |
2b14594317d0cd62692300a52711a33c737ab75b | Java | rkowalewski/minijava_compiler | /src/minijava/syntax/DeclVar.java | UTF-8 | 322 | 2.375 | 2 | [
"MIT"
] | permissive | package minijava.syntax;
import minijava.semantic.visitor.Visitor;
public class DeclVar {
final public Ty ty;
final public String name;
public DeclVar(Ty ty, String name) {
this.ty = ty;
this.name = name;
}
public <V> V accept(Visitor<V> v) {
return v.visit(this);
}
... | true |
b38ba6b4da0fc03b3418002aef0257278a0122ac | Java | JayHan-K/todaysShow | /app/src/main/java/com/example/todaysshow/MyReviewActivity.java | UTF-8 | 2,224 | 2.359375 | 2 | [] | no_license | package com.example.todaysshow;
import android.os.Bundle;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.todaysshow.ada... | true |
b4ed0378e3622dc65ac04fd20844f25b450be99c | Java | Alexander175/The-Betweenlands | /java/thebetweenlands/world/biomes/decorators/BiomeDecoratorPatchyIslands.java | UTF-8 | 863 | 2.40625 | 2 | [] | no_license | package thebetweenlands.world.biomes.decorators;
import thebetweenlands.world.biomes.decorators.base.BiomeDecoratorBaseBetweenlands;
public class BiomeDecoratorPatchyIslands extends BiomeDecoratorBaseBetweenlands {
@Override
public void postTerrainGen() {
DecorationHelper helper = new DecorationHelper(this... | true |
4388b6251280d33bb79bdde74663bc144f09fff7 | Java | jxsd0084/JavaTrick | /java/bj/crazy/ch17/u04/MulticastSocketTest.java | UTF-8 | 3,467 | 3.265625 | 3 | [] | no_license | package bj.crazy.ch17.u04;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import java.util.Scanner;
/**
* Description:
* <br/>Copyright (C), 2008-2010, Yeeku.H.Lee
* <br/>This program is protected by copyright laws.
* <br/>Program Name:
*... | true |
8f2f1aa6cb283b45140313d28e3c4a7b85948297 | Java | Tsuteto/TofuFactoryReloaded-MC1.7.10 | /src/main/java/tsuteto/tofufactory/integration/craftguide/CraftGuidePlugin.java | UTF-8 | 315 | 1.609375 | 2 | [] | no_license | package tsuteto.tofufactory.integration.craftguide;
import uristqwerty.CraftGuide.api.CraftGuideAPIObject;
import java.lang.reflect.Method;
public class CraftGuidePlugin
{
public void load() throws Exception
{
new PulverizerCG();
new CompactorCG();
new CuttingMachineCG();
}
} | true |
0683e7482d7e56b959ce299b24aa9223333382e4 | Java | snchz29/vk-hidden-friends | /backend/src/main/java/ru/snchz29/services/FriendshipGraph/FriendshipGraphImplWithDB.java | UTF-8 | 2,038 | 2.359375 | 2 | [] | no_license | package ru.snchz29.services.FriendshipGraph;
import com.vk.api.sdk.exceptions.ApiException;
import com.vk.api.sdk.exceptions.ClientException;
import org.springframework.stereotype.Service;
import ru.snchz29.dao.PersonDAO;
import ru.snchz29.models.Person;
import ru.snchz29.services.ApiClient;
import java.util.Collecti... | true |
3cb7b5ff64f0fbae4fd325a878ceb69799d3d81e | Java | CallumGWilliams/COMP2000-Classwork | /src/kioskController.java | UTF-8 | 927 | 2.25 | 2 | [] | no_license | import javax.swing.*;
public class kioskController {
private kioskView view;
private kiosk model;
public kioskController(kiosk model, kioskView view){
this.model = model;
this.view = view;
}
public void initApp(){
view.initApp();
}
public Strin... | true |
4dcd612137f5be7644330a6efa5d40ac47801593 | Java | GlicEirin/lecnam | /TDs/src/TD10/Exercice_523.java | UTF-8 | 2,646 | 3.78125 | 4 | [] | no_license | package TD10;
import java.util.Scanner;
public class Exercice_523 {
public static void main(String[] args) {
int N = 0;
char [][] resultTriangleTable;
Scanner sc = new Scanner (System.in);
System.out.print("Saisissez la dimension souhaitée : ");
N = Integer.parseInt(sc.nextLine());
if (N<=0) {
Syste... | true |
60dbc56f9e1bbb146f55bacbf37edbf273d58f52 | Java | gilneyjr/BestMatching | /src/main/java/main/util/Pair.java | UTF-8 | 350 | 3.03125 | 3 | [] | no_license | package main.util;
public class Pair {
private Integer first;
private String second;
public Pair() {
this.first = null;
this.second = null;
}
public Pair(Integer first, String second) {
this.first = first;
this.second = second;
}
public Integer getFirst() {
return first;
}
public String getSec... | true |
2e5aa4ba0f6871b972de2c704e783fb5c3fafcf9 | Java | dbuos/ftracker | /infraestructure/mongodb-repository/src/main/java/bid/dbo/ftracker/repository/data/interfaces/AccountDataRepository.java | UTF-8 | 405 | 1.632813 | 2 | [] | no_license | package bid.dbo.ftracker.repository.data.interfaces;
import org.springframework.data.repository.query.ReactiveQueryByExampleExecutor;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import bid.dbo.ftracker.repository.data.AccountData;
public interface AccountDataRepository extends Reactive... | true |
d572b7b9fff28a4e8afa3bbe8a17b18f2073102f | Java | RookieWangXF/Java-base | /api/src/main/java/cn/rookie/io/file/FileInfo.java | UTF-8 | 1,816 | 3.1875 | 3 | [] | no_license | package cn.rookie.io.file;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by Rookie on 2016/4/19.
*/
public class FileInfo {
/**
* 打印文件的相关信息
* @param file
*/
public static void printFileInfo(File file) {
String fileName = file.getName();
... | true |
1f5482998a3071ede5e24bfe9da755eff76707d6 | Java | vadzim-kazak/workout-log | /services/src/main/java/com/jrew/lab/workoutlog/exercise/dao/ExerciseManagerImpl.java | UTF-8 | 605 | 2.125 | 2 | [] | no_license | package com.jrew.lab.workoutlog.exercise.dao;
import com.jrew.lab.workoutlog.exercise.model.Exercise;
import org.mongodb.morphia.Datastore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.HashSet;
import java.util.Set;
/**
* Created b... | true |
8ecf2b79b68860f66fe62c099ddc633a67c86609 | Java | KARTHEEKCIC/Android | /NewsFeed/app/src/main/java/com/example/kartheek/newsfeed/CategoryPagerAdapter.java | UTF-8 | 1,251 | 2.75 | 3 | [] | no_license | package com.example.kartheek.newsfeed;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
/**
* Created by kartheek on 13/3/17.
*/
public class CategoryPagerAdapter extends FragmentPagerAdapter {... | true |
690e330df17cbf29a588c838f02c83240ed957cb | Java | Montekar/ArlaSoftware | /src/main/java/gui/controller/DepartmentController.java | UTF-8 | 3,107 | 2.4375 | 2 | [] | no_license | package gui.controller;
import gui.model.ContentModel;
import gui.model.DepartmentModel;
import gui.model.SessionModel;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import java.io.IOException;
import java... | true |
23843ba1abec07c21ff2868add2fd2de413a2172 | Java | a327919006/spring-boot-sample | /sample-amqp/src/main/java/com/cn/boot/sample/amqp/boot/test14/DelayProduct.java | UTF-8 | 1,024 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.cn.boot.sample.amqp.boot.test14;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | true |
1d85f9b5a9708d6669feaaca5ab6339ff3dfdb74 | Java | GerritCodeReview/gerrit | /java/com/google/gerrit/server/patch/Text.java | UTF-8 | 3,618 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | // Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | true |
e205f091162f6f45ecaa32e5f8b1e3aa502e121a | Java | yourtion/LearningJava | /Activiti/activiti-demo/src/main/java/com/yourtion/demo/activiti/DemoMain.java | UTF-8 | 5,391 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.yourtion.demo.activiti;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.*;
import org.activiti.engine.form.FormProperty;
import org.activiti.engine.form.TaskFormData;
import org.activiti.engine.impl.form.DateFormType;
import org.activiti.engine.impl.form.... | true |
b237798fb082167ecbfe39e8d950e085dcb6e58d | Java | mark-sed/ld49 | /src/com/sedlacek/ld49/enemies/Enemy.java | UTF-8 | 2,669 | 2.59375 | 3 | [] | no_license | package com.sedlacek.ld49.enemies;
import java.awt.Graphics;
import java.util.Random;
import com.sedlacek.ld49.abilities.Ability;
import com.sedlacek.ld49.abilities.Ability.Target;
import com.sedlacek.ld49.graphics.Indicator;
import com.sedlacek.ld49.main.Config;
import com.sedlacek.ld49.main.Entity;
import com.sedla... | true |
9e43b5486fd9d0f48ad63d6974cd1b6babab873d | Java | liambyrnenz/dvr-calculator | /src/java/com/byrneliam2/dvrcalc/ui/DvrUIListener.java | UTF-8 | 591 | 2.46875 | 2 | [] | no_license | package com.byrneliam2.dvrcalc.ui;
/*
* Liam Byrne (byrneliam2)
* DVRCalculator
*/
/**
* Custom observer implementation that makes up half of the listener/notifier system.
*/
public interface DvrUIListener {
/**
* Receiving point for notifications from a given subject. The notification may carry
*... | true |
171463737b36df501e76199aff258ddf4808c7dd | Java | swingle8/string | /Implement Atoi.java | UTF-8 | 898 | 3.40625 | 3 | [] | no_license | // { Driver Code Starts
import java.util.Scanner;
class aToi
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
sc.nextLine();
while(t>0)
{
String str = sc.nextLine();
GfG g = new GfG();
System.out.println(g.atoi(str));
t--;
}
}
}// } Dri... | true |
fb8ff118fd13d74c9c698523f2f15791b2429e09 | Java | nacho270/GTL | /CoreGestionTextilLevel/src/ar/com/textillevel/modulos/personal/entidades/legajos/valesdeatencion/wf/ValeAtencionEstadoFactory.java | UTF-8 | 876 | 2.234375 | 2 | [] | no_license | package ar.com.textillevel.modulos.personal.entidades.legajos.valesdeatencion.wf;
import ar.com.textillevel.modulos.personal.entidades.legajos.valesdeatencion.EEStadoValeEnfermedad;
public class ValeAtencionEstadoFactory {
private static ValeAtencionEstadoFactory instance = new ValeAtencionEstadoFactory();
... | true |
e006db5344c9a117d60e30342c6a181a02c7f62b | Java | coodex2016/concrete.coodex.org | /coodex-libraries/coodex-utilities/src/test/java/org/coodex/util/CRCTest.java | UTF-8 | 9,462 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018 coodex.org (jujus.shen@126.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | true |
7bf83c00141cdfaabc7049febfc11b0ca07355a5 | Java | alecjohanson/coms362 | /coms362/scoretracker/appconfig/TestApp.java | UTF-8 | 7,668 | 2.234375 | 2 | [] | no_license | package coms362.scoretracker.appconfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import coms362.scoretracker.controller.IGameController;
import coms362.scoretracker.controller.ILeagueController;
import coms362.scoretracker... | true |
e7f704acceebd64520ebe211e91460a4aef67266 | Java | btc-ag/redg | /redg-maven-plugin/src/test/java/com/btc/redg/plugin/util/ClassAvailabilityCheckerTest.java | UTF-8 | 513 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.btc.redg.plugin.util;
import org.junit.Assert;
import org.junit.Test;
public class ClassAvailabilityCheckerTest {
@Test
public void testHappyPaths() throws Exception {
Assert.assertTrue(new ClassAvailabilityChecker("java.util.HashMap").isAvailable());
Assert.assertFalse(new ClassAvailabilityChecke... | true |
c339b1316b7629ab0e7e7d2afba793511552c924 | Java | andreribeiros/AppCrudAndroidServer | /src/main/java/com/adsddm/apirest/resources/MedicoResource.java | UTF-8 | 1,940 | 2.375 | 2 | [] | no_license | package com.adsddm.apirest.resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.a... | true |
a51cef71d3e0c7a49966e8364134955302e8572d | Java | antonio-raian/MagazineAnaLuiza | /MAL-Distributor/src/br/com/distributor/control/ControllerDistributor.java | UTF-8 | 1,945 | 2.796875 | 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 br.com.distributor.control;
import java.util.LinkedList;
import java.util.NoSuchElementException;
/**
*
* @auth... | true |
5b38e7ad34d6a0e45c665025f7b8d32f6f70257c | Java | azureskydiver/db4o | /db4oj.tests/src/com/db4o/test/legacy/soda/collections/STElement.java | UTF-8 | 301 | 1.921875 | 2 | [] | no_license | /* Copyright (C) 2004 Versant Inc. http://www.db4o.com */
package com.db4o.test.legacy.soda.collections;
public class STElement {
public String foo1;
public Object foo2;
public STElement(){
}
public STElement(String foo1, Object foo2) {
this.foo1 = foo1;
this.foo2 = foo2;
}
}
| true |
81ebc9a1b087c80bfe60cb9fe1005d9256dc121f | Java | virtualex-project-x/melip-webservices | /src/com/melip/webservices/service/common/IQueryCondition.java | UTF-8 | 2,439 | 2.71875 | 3 | [] | no_license | package com.melip.webservices.service.common;
import java.util.Map;
/**
* 検索条件のインタフェースです。
*/
public interface IQueryCondition {
/**
* 検索条件のマップを取得します。<br>
* {@link#getValue()}へのエイリアスです。<br>
*
* <pre>
* マッパーXMLファイルでのコーディングは、「v.」から始まり、指定したキーで属性の値が取得できます。
* 取得例を以下に示します。
* ・単一データ(StringやInteg... | true |
29f7091454afd0857f6bfd212fb37e6db5152952 | Java | boluoge/- | /bigdata/eshop/src/test/java/com/chenway/eshop/test/TestDataSource.java | UTF-8 | 622 | 2.203125 | 2 | [] | no_license | package com.chenway.eshop.test;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import javax.sql.DataSource;
import java.sql.Connection;
public class TestDataSource {
@Test
public void getConn() throws Ex... | true |
0267eaf0da5a6f96157d58bdeafb10e23936fcc4 | Java | champo/dUta | /src/main/java/ar/edu/itba/pdc/duta/proxy/filter/Filters.java | UTF-8 | 3,173 | 2.21875 | 2 | [] | no_license | package ar.edu.itba.pdc.duta.proxy.filter;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Bl... | true |
6c879c6b4fb596c614646c331d3acc5954c22b26 | Java | xamino/mind_server | /src/de/uulm/mi/mind/io/Query.java | UTF-8 | 7,319 | 2.765625 | 3 | [] | no_license | package de.uulm.mi.mind.io;
import de.uulm.mi.mind.logger.Messenger;
import de.uulm.mi.mind.objects.DataList;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.sql.*;
import java.util.*;
import java.util.Date;
/**
* Created by Cassi... | true |
5bf4c60a946a08032c4b79e967a1889a647801f7 | Java | xautable/PunchPower | /PunchPower/app/src/main/java/app/example/juanjo/PunchPower/PantallaInicio.java | UTF-8 | 7,956 | 2.234375 | 2 | [] | no_license | package app.example.juanjo.PunchPower;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Vib... | true |
6033a1bc59b941a3a327bcb1db7e7c3c8b155ac8 | Java | Skorpien/songVotes | /src/main/java/com/coreServices/Songs/domain/XmlParser.java | UTF-8 | 3,525 | 2.921875 | 3 | [] | no_license | package com.coreServices.Songs.domain;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.*;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.transform.stream.StreamSource;
import or... | true |
7b9422eb2ef140a3798719b234121ab224b15fba | Java | psoon/MainActivity | /app/src/main/java/com/example/mainactivity/CommentAdapter.java | UTF-8 | 15,613 | 2 | 2 | [] | no_license | package com.example.mainactivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.L... | true |
e8d2ededba2f012551dcf9a65bd5d1cbc3715924 | Java | LeChaPatteImpitoyable/springMVC | /xmen-bracelet-dev/xmen-bracelet-client/src/main/java/com/doshr/xmen/backend/client/student/request/BoundBraceletReq.java | UTF-8 | 507 | 1.742188 | 2 | [] | no_license | package com.doshr.xmen.backend.client.student.request;
import com.doshr.xmen.backend.client.base.BaseRequest;
public class BoundBraceletReq extends BaseRequest{
/**
*
*/
private static final long serialVersionUID = -5052799660425234872L;
private String relationIds;
public static long getSerialversionuid()... | true |
dd6e38e87b46d842c5294e75079cea7af78dae78 | Java | jslim89/js-sem5-assignment | /jasperreports-3.6.0/src/net/sf/jasperreports/engine/JROrigin.java | UTF-8 | 3,710 | 1.773438 | 2 | [] | no_license | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2009 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperRepo... | true |
62736bf6cb607996b25d71bf19345017f5eb9cb1 | Java | illusionsMara/2019-09-otus-java-kotikova | /L06-atm_emulator/src/main/java/ru/otus/atm/Cell.java | UTF-8 | 2,143 | 3.71875 | 4 | [] | no_license | package ru.otus.atm;
public class Cell implements Comparable<Cell> {
private Nominal nominal;
private int count;
public Cell(Nominal nominal) {
this.nominal = nominal;
}
public Nominal getNominal() {
return nominal;
}
public void put() {
System.out.println("put ba... | true |
788f49a2f94fbdad25ec4237f0e7013b48293b77 | Java | hadeoh/clane_wallet_system | /src/main/java/com/clane/wallet/models/Wallet.java | UTF-8 | 1,043 | 2.09375 | 2 | [] | no_license | package com.clane.wallet.models;
import com.clane.wallet.enums.Currency;
import com.clane.wallet.enums.WalletStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import ja... | true |
d2cd794134a548d62002ef0a022784d118bcca4e | Java | kwang2003/java8 | /src/main/java/com/pachiraframework/java8/parameter/Main.java | UTF-8 | 368 | 2.765625 | 3 | [] | no_license | package com.pachiraframework.java8.parameter;
import java.lang.reflect.Method;
public class Main {
public static void main(String[] args) throws NoSuchMethodException, SecurityException{
Method method = Main.class.getMethod("main",String[].class);
System.out.println(method.getName());
System.out.printl... | true |
0bce28d4bab59bd76a2d9bac863a989279cf92a9 | Java | KiranMukunda/StateFarmSample | /src/main/java/sf/codingcomp/blocks/StorageBuildingBlock.java | UTF-8 | 226 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package sf.codingcomp.blocks;
/**
*
* Like a BuildingBlock, but it also manages a value
*
* @param <T>
*/
public interface StorageBuildingBlock<T> extends BuildingBlock {
T getValue();
void setValue(T value);
}
| true |
c8e013b305dd87138c5ee5ea3bfcd1478885c035 | Java | alexandruoliva/News-Reader-Android-Advanced | /data/src/main/java/repository/NewsRepositoryImpl.java | UTF-8 | 1,562 | 2.359375 | 2 | [] | no_license | package repository;
import com.oliva.data.model.Article;
import com.oliva.data.model.entities.local.ArticleEntity;
import com.oliva.data.model.entities.local.NewsLocalStore;
import java.util.List;
import configuration.NewsRemoteSource;
import io.reactivex.Completable;
import io.reactivex.Single;
import io.reactivex.a... | true |
8a7dc24ad19ed0b270dcef28d29aed8bb3dce7f9 | Java | aluna77/EffectiveJava | /src/store/Store.java | UTF-8 | 89 | 1.984375 | 2 | [] | no_license | package store;
public abstract class Store {
public abstract void welcomeStore();
}
| true |
ac959e025db4dd34814858e3d3eb67750e415a2f | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/business/scheduleYear/model/decisionTree/SchedyearRootSelectNow.java | UTF-8 | 1,898 | 1.929688 | 2 | [] | no_license | package br.com.mind5.business.scheduleYear.model.decisionTree;
import java.util.ArrayList;
import java.util.List;
import br.com.mind5.business.scheduleYear.info.SchedyearInfo;
import br.com.mind5.business.scheduleYear.model.action.SchedyearVisiRootSelect;
import br.com.mind5.business.scheduleYear.model.action.... | true |
639ca64e56b67987b14ca86c41f5704561e3138d | Java | andracs/Minecraft2020 | /src/Water.java | UTF-8 | 1,398 | 3.078125 | 3 | [] | no_license | /**
* Developed by András Ács (acsandras@gmail.com)
* Zealand / www.zealand.dk
* Licensed under the MIT License
* 02/10/2020
*/
public class Water {
private String waterType; //Type - 1 blue 2 green 3 transparent YAGNI!
private String movementType; // Type - 1 flydende 2 fast 3 damp 4 iBevægelse
p... | true |
b28eed7dda1780b918a1e4c3608b4c4039945bc1 | Java | Abdoulaye861/StudentConnect | /src/main/java/com/students/application/UserApplicationServices.java | UTF-8 | 1,250 | 2.203125 | 2 | [] | no_license | package com.students.application;
import com.students.controller.UserDTO;
import com.students.dao.StudentRepository;
import com.students.dao.TeacherRepository;
import com.students.entities.Student;
import com.students.entities.Teacher;
import com.students.infrastructure.util.OrikaBeanMapper;
import org.springframework... | true |
3862cfa7d82fbf042b14f4dc436e01d272965c87 | Java | standyck/threeten-jaxb | /threeten-jaxb-core/src/test/java/io/github/threetenjaxb/core/ZoneIdXmlAdapterTest.java | UTF-8 | 451 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package io.github.threetenjaxb.core;
import java.time.ZoneId;
public class ZoneIdXmlAdapterTest extends AbstractToStringAdapterTest<ZoneId, ZoneIdXmlAdapter> {
public ZoneIdXmlAdapterTest() {
super(ZoneIdXmlAdapter.class);
}
@Override
protected ZoneId getNotNullValue() {
return ZoneI... | true |
c7be2cce2e84bbe1c78e1376525b7d523ad52540 | Java | pdgutierrezq/karate-screenplay | /src/test/java/starter/commons/KarateRunnerTest.java | UTF-8 | 960 | 2.140625 | 2 | [] | no_license | package starter.commons;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.*;
public class KarateRunnerTest {
@Rule
public ExpectedException exceptionRule = ExpectedException.none();
@T... | true |
9edd93073aede9f63303e97bbf9cb292b9501190 | Java | yulihzn/monsterwar | /core/src/com/mw/components/map/model/AreaModel.java | UTF-8 | 482 | 2.21875 | 2 | [] | no_license | package com.mw.components.map.model;
/**
* Created by BanditCat on 2016/10/12.
*/
public class AreaModel {
private Area area;
private MapInfo[][] mapInfos = new MapInfo[16][16];
public Area getArea() {
return area;
}
public void setArea(Area area) {
this.area = area;
}
... | true |
0513de6e50a4b2292c9959d8e8e3e9718ac6a552 | Java | BondarenkoJek/MateAcademy | /src/main/java/ua/bondarenkojek/homework/jpa/service/factory/ServiceFactory.java | UTF-8 | 1,278 | 2.265625 | 2 | [] | no_license | package ua.bondarenkojek.homework.jpa.service.factory;
import ua.bondarenkojek.homework.jpa.dao.impl.DeviceDaoImpl;
import ua.bondarenkojek.homework.jpa.dao.impl.PatientDaoImpl;
import ua.bondarenkojek.homework.jpa.dao.impl.TestDaoImpl;
import ua.bondarenkojek.homework.jpa.service.DeviceService;
import ua.bondarenkoje... | true |
db07a23921af0f37bfdc7743b5612b5affd703ad | Java | angela5029530/MusicPlayer | /src/idv/peiju/PlayList.java | UTF-8 | 1,936 | 3.453125 | 3 | [] | no_license | package idv.peiju;
import java.util.ArrayList;
public class PlayList {
private int pointer = 0;
private String name;
public ArrayList<Song> songsInPlaylist = new ArrayList<Song>();
public PlayList(String name){
this.name = name;
}
// Add a song into a playlist
public void add... | true |
6369f6b57d6629e366203c7cd9a200b0858025aa | Java | osgi/osgi | /org.osgi.service.log.stream/src/org/osgi/service/log/stream/LogStreamProvider.java | UTF-8 | 2,545 | 2.125 | 2 | [
"EPL-1.0",
"Apache-2.0",
"EPL-2.0",
"CPL-1.0"
] | permissive | /*******************************************************************************
* Copyright (c) Contributors to the Eclipse Foundation
*
* 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
*... | true |
f71faaf462408afbb90a5965b0c563c134c89b91 | Java | muronaldo13/Seperant-Island | /core/src/com/serpent/island/DamageCard.java | UTF-8 | 1,025 | 2.921875 | 3 | [] | no_license | package com.serpent.island;
/**
* Created by Nghia on 2018/4/23.
*/
public class DamageCard extends Cards {
private Element element;
public DamageCard(Element element, String imgPath){
super(imgPath,"");
this.element = element;
if(element == Element.AIR){
cardName = "Gus... | true |
3993741f199e56a568beb73ebe79eec5bd4e8d86 | Java | alexis23mj/calidadTareas | /src/main/java/com/mayab/calidad/dbunit/AlumnoDAO.java | UTF-8 | 481 | 2.046875 | 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.mayab.calidad.dbunit;
/**
*
* @author Angel
*/
public interface AlumnoDAO {
public void addAlumno(Alumno alumno);
pu... | true |
770c1985fa24741986e62b52e70b945e5975784f | Java | anj0791/JPMorganSimpleStocksApp | /simple-stocks/src/test/java/com/jpmorgan/simple/stocks/util/SimpleStocksUtilTest.java | UTF-8 | 298 | 1.828125 | 2 | [] | no_license | package com.jpmorgan.simple.stocks.util;
import org.testng.annotations.Test;
import junit.framework.Assert;
public class SimpleStocksUtilTest {
@Test
public void loadServiceAndDatabase() {
boolean success = SimpleStocksUtil.loadServiceAndDatabase();
Assert.assertTrue(success);
}
}
| true |
fb3fdec3b8d473c4fc737a37af829fddbb1108fb | Java | lacerdev/estacioSOA | /Trabalho1_arquivos/arquivo_1_java/src/escritaArquivo/Main.java | WINDOWS-1250 | 1,394 | 3.578125 | 4 | [] | no_license | package escritaArquivo;
import java.util.Scanner;
public class Main {
private static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
Escrevedor escrevedor = new Escrevedor("nome;idade;sexo");
System.out.println("\nBem vindo ao cadastro de Pessoas!");
String opcao = null;
wh... | true |
93fe7592c0136fedb0652262d1b88f278f2ac773 | Java | ye-pan/javastudy | /src/main/java/com/yp/designpatterns/maze/bomb/BombedMazeFactory.java | UTF-8 | 654 | 2.796875 | 3 | [] | no_license | package com.yp.designpatterns.maze.bomb;
import com.yp.designpatterns.maze.MazeFactory;
import com.yp.designpatterns.maze.Room;
import com.yp.designpatterns.maze.Wall;
public class BombedMazeFactory extends MazeFactory {
@Override
public Wall createWall() {
return new BombedWall();
}
@Overrid... | true |
1b29af59dfbf3203719214d3a29eb37f8d7a1105 | Java | BilbySwig/AllCSFiles | /Ch09/src/Geometry.java | UTF-8 | 346 | 2.796875 | 3 | [] | no_license |
public class Geometry {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Rectangle r= new Rectangle(3,4);
Prism p=new Prism(1,2,30);
Rectangle confused=new Prism(1,1,1);
System.out.println(r.area());
System.out.println(p.area());
System.out.printl... | true |
5dafda6a2c0bd3e2014b2e1320ecda544d5c1cd1 | Java | Fullik/WeatherApp | /app/src/main/java/com/pazaryan/weatherapp/data/entity/autoComplete/AutoComplete.java | UTF-8 | 547 | 2.140625 | 2 | [] | no_license | package com.pazaryan.weatherapp.data.entity.autoComplete;
import com.google.gson.annotations.SerializedName;
/**
* Created by Погос Азарян on 14.09.2017.
*/
public class AutoComplete {
@SerializedName("name")
private String name;
@SerializedName("lat")
private double latitude;
@SerializedName("... | true |
ac23adaa002b4cb3363bf23b7f672570ca917f6f | Java | ruokeweb/simp_tmp | /simp_ser/src/main/java/com/mpri/aio/donation/mapper/DonThanksMapper.java | UTF-8 | 430 | 1.554688 | 2 | [] | no_license | package com.mpri.aio.donation.mapper;
import org.apache.ibatis.annotations.Mapper;
import com.mpri.aio.base.mapper.CrudMapper;
import com.mpri.aio.donation.model.DonThanks;
/**
*
* @Description: 捐赠致谢——DAO
* @Author: zdl
* @project simp
* @CreateDate: Wed Mar 27 16:42:55 CST 2019
* @Version: ... | true |
c081991bead0d75b766d20a7e4f7c049e7d37931 | Java | ndiazdossantos/PROG1 | /CalcularNota1Eva/src/calcularnota1eva/Notas.java | UTF-8 | 1,695 | 2.9375 | 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 calcularnota1eva;
import java.util.Scanner;
/**
*
* @author noese
*/
public class Notas {
private float ... | true |
38533aa7077d6b6c4c532d6c637fd28a51ff5f75 | Java | Athenezhuyin/tutu | /src/com/common/action/EasyUIAction.java | UTF-8 | 652 | 2.59375 | 3 | [] | no_license | package com.common.action;
/*
* 定义datagrid列,将“pagination”属性设为true,将会在datagrid底部生成一个分页工具条。
* pagination会发送两个参数给服务器:
1、page: 页码,从1开始。
2、rows: 每页显示行数。
*/
public class EasyUIAction extends BaseAction{
//当前页
protected int page;
protected int rows;
public int getPage() {
System.out.println(page);
retur... | true |
0e466f92fbe27de39764f74fd9cdc2b0dbc6224c | Java | Diaopeng/Leetcode | /L91.java | UTF-8 | 595 | 3.078125 | 3 | [] | no_license | public class Solution {
public int numDecodings(String s) {
int n = s.length();
if(s == null || n == 0 )
return 0;
int [] dp = new int[n + 1];
dp[0] = 1;
dp[1] = s.charAt(0) == '0'? 0:1;
for(int i = 2;i <= n;i++){
int digit = Integer.valueOf(s.... | true |
73fc502b3ce546aebaec8af43b0740eb71dc6c20 | Java | replicant1/ESportsReader | /app/src/main/java/bailey/rod/esportsreader/adapter/AtomServiceCollectionListAdapter.java | UTF-8 | 2,422 | 2.46875 | 2 | [] | no_license | package bailey.rod.esportsreader.adapter;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
imp... | true |
752de5b4646ed1fc04a438b869c9442c23c61f87 | Java | AmitMizrahi123/SuperHelp | /SuperHelp/Src/Controller/RegisterController.java | UTF-8 | 4,758 | 2.734375 | 3 | [] | no_license | package Controller;
import DB.ClientRepository;
import Logger.SingletonLogger;
import Model.Client;
import View.Login;
import View.Register;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
public class RegisterController {
... | true |
c38ba9209ac980257770c9f712896598b2f66053 | Java | shilajeet/vespa | /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/tenant/UserTenant.java | UTF-8 | 2,310 | 2.328125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.tenant;
import com.yahoo.config.provision.TenantName;
import com.yahoo.vespa.hosted.controller.api.integration.organization.Contact;
import java.util.Optiona... | true |
0307f139989c183f7c91b91767639802c81488ce | Java | Viaxiz/VariesDemo | /SaveBees/src/cn/goktech/study/Bee.java | GB18030 | 947 | 2.90625 | 3 | [] | no_license | package cn.goktech.study;
import java.util.Random;
/**
* Ҫȵ۷
* ص㣺
* ٶȽзһС۷ĻǾͻʧȥһ
* @author ASUS
*
*/
public class Bee extends FlyingObject implements SorryForBee{
public int xSteep=2;
public int ySteep=2;
public Bee() {
image=MainActivity.bee;
height=image.getHeight();
width=image.getWidth();
Random ... | true |
dc4d1a273fe6a49fb40ac39430655a3b243d63a7 | Java | jyy1231/JyyFlyingbird | /src/game/GamePanel.java | GB18030 | 3,919 | 3.3125 | 3 | [] | no_license | package game;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import javax.swing.ImageIcon;
import javax.swing.JPanel;... | true |
3956eb3e6aa427f0514e48e5fa617d5c85a37a2a | Java | dandanba/odwbo_voice | /sample/MscV5PlusDemo/src/com/odwbo/voice/SpeechApp.java | UTF-8 | 971 | 2.125 | 2 | [] | no_license | package com.odwbo.voice;
import android.app.Application;
import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.loopj.android.http.AsyncHttpClient;
import com.odwbo.voice.R;
public class SpeechApp extends Application {
public final AsyncHttpClient mHttpClient = new Async... | true |
353482854992415734bf637abc5da769668f39c9 | Java | motech/ananya-reference-data | /ananya-reference-data-flw/src/main/java/org/motechproject/ananya/referencedata/flw/domain/LocationStatus.java | UTF-8 | 2,952 | 2.515625 | 3 | [] | no_license | package org.motechproject.ananya.referencedata.flw.domain;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.List;
public enum LocationStatus {
NEW("NEW") {
@Override
public boolean canTransitionTo(LocationStatus toStatus) {
return false;
... | true |
30e7f01d5586df74cffbb69f14f2e91828b5a036 | Java | yijunyu/demo | /datasets/github_java_10/8/64.java | UTF-8 | 1,069 | 3.3125 | 3 | [
"BSD-2-Clause"
] | permissive | public static void sort(int[] integers) {
Checker.isNotNull(integers);
sort(integers, 0, integers.length - 1);
Printer.print(NAME, integers);
}
private static void sort(int[] data, int lo, int hi) {
if (lo >= hi) {
return;
}
int partition = parti... | true |
5385b412445ba98640da5e043eabe9b4cc367801 | Java | Melbettal/simplons_briefs2 | /Brief02/src/com/Brief2/app/EmployeeCommission.java | UTF-8 | 1,154 | 2.90625 | 3 | [] | no_license | //***********************************************
//* Meryame Elbettal *
//* *
//***********************************************
package com.Brief2.app;
import com.Brief2.app.Employee;
public class EmployeeCommission extends Employee {
private double ventes;
private double commissions;
//Con... | true |
4d44f328cda761193edcf9bac0aa0f2c07e9b2a1 | Java | Nanging/Design-Pattern | /src/thing/FertilizedButNotIrrigated.java | UTF-8 | 1,013 | 2.890625 | 3 | [] | no_license | package thing;
import plant.Plant;
public class FertilizedButNotIrrigated implements PlantState{
static private FertilizedButNotIrrigated state = null;
private FertilizedButNotIrrigated() {
// TODO Auto-generated constructor stub
}
static public FertilizedButNotIrrigated getInstance() {
if (state == null) {
... | true |
3d450a2f26241dcba6565a5e354604b4f259bd2a | Java | r4b3rt/sensitive | /sensitive-test/src/test/java/com/github/houbb/sensitive/test/core/util/SensitiveUtilTest.java | UTF-8 | 461 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.houbb.sensitive.test.core.util;
import com.github.houbb.sensitive.core.api.SensitiveUtil;
import com.github.houbb.sensitive.test.model.bugs.Father;
import org.junit.Test;
/**
* BUGS 5
* @author binbin.hou
* @since 0.0.11
*/
public class SensitiveUtilTest {
@Test
public void bugs5NpeTes... | true |
ef7290e89a1626c7b89d569abdc49c0e4766e3bc | Java | printmiles/MARS | /src/mars/mars/object/Column.java | UTF-8 | 2,223 | 3.203125 | 3 | [] | no_license | /* Class name: Column
* File name: Column.java
* Created: 01-Apr-2008 21:29:20
* Modified: 03-Apr-2008
* Version History:
* ~ ~ ~ ~ ~ ~ ~ ~ ~
* 0.002 03-Apr-2008 Added JDoc and comments
* 0.001 01-Apr-2008 Initial build
*/
package mars.mars.object;
/**
* This class is used to represent one or more co... | true |
dd75bda5ba301cef6095ff2cc521888f24fd3115 | Java | justinytsoft/ssh | /Home/src/main/java/com/goldCityWeb/service/CommodityService.java | UTF-8 | 507 | 1.851563 | 2 | [] | no_license | package com.goldCityWeb.service;
import java.util.List;
import java.util.Map;
import com.goldCityWeb.domain.Commodity;
import com.goldCityWeb.domain.CommodityType;
import com.goldCityWeb.util.PageSupport;
public interface CommodityService {
public void saveCommodity(Commodity commodity);
public Com... | true |
ace2164662e8457807ad96f370a6d07300ed3104 | Java | zezain/ListView | /app/src/main/java/com/listview/breno/listview/DBHelper.java | UTF-8 | 4,152 | 2.546875 | 3 | [] | no_license | package com.listview.breno.listview;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Inpu... | true |