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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7b5c65c0cd009fd57868b8dc40f82777ece4286f | Java | edward-shen/wisdom | /app/src/main/java/tk/easthigh/witsmobile/tools/MailAdapter.java | UTF-8 | 707 | 2.234375 | 2 | [
"LicenseRef-scancode-public-domain"
] | permissive | package tk.easthigh.witsmobile.tools;
import tk.easthigh.witsmobile.MainActivity;
/**
* Created by Edward on 7/15/2015.
*/
public class MailAdapter extends RecyclerAdapter {
@Override
public void setActivitiesList() {
super.setActivitiesList();
SecurePreferences sPrefs = MainActivity.prefer... | true |
4faa77dba79b5f6d980c6e1699215290c2b06ef0 | Java | aspose-slides/Aspose.Slides-for-Java | /Examples/src/main/java/com/aspose/slides/examples/slides/hyperlinks/MutableHyperlink.java | UTF-8 | 1,388 | 2.765625 | 3 | [
"MIT"
] | permissive | package com.aspose.slides.examples.slides.hyperlinks;
import com.aspose.slides.*;
import com.aspose.slides.examples.RunExamples;
public class MutableHyperlink
{
public static void main(String[] args)
{
//ExStart:MutableHyperlink
// The path to the documents directory.
String dataDir... | true |
63a23f8d67a2aa8dd4817eafa9efa2a3aa65c5cf | Java | FS-Rocha/PG3-1 | /Testes/Teste1/tests/verao_2017_2018/Group.java | ISO-8859-1 | 752 | 3.03125 | 3 | [] | no_license | package testes.test1;
import java.util.Scanner;
/**
* Created by msousa on 4/23/2018.
*/
public class Group extends QueryCollection implements Query {
public Group( String title ) {
super( title );
}
public String getHeader() {
return "[" + getPoints()+"] " + title;
}
public stat... | true |
7074a6abaf88fe7b4ad61ad9ad5823914d1b7f32 | Java | yanglr/jopenreg | /JOpenReg/src/maple/MapleEngine.java | UTF-8 | 3,044 | 2.734375 | 3 | [] | no_license | package maple;
import table.CustomTable;
import com.maplesoft.externalcall.MapleException;
import com.maplesoft.openmaple.Engine;
import com.maplesoft.openmaple.EngineCallBacksDefault;
public class MapleEngine {
private Engine engine;
private boolean isCalculated;
private String lastMethod;
/**... | true |
efc24ba90f85edec2b2fbf95e2db0027763da530 | Java | sbarakad/QAProject | /src/main/java/com/library/businessModels/Cover.java | UTF-8 | 811 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.library.businessModels;
import java.sql.Blob;
import org.springframework.web.multipart.MultipartFile;
public class Cover {
private int itemID;
private Blob coverBlob;
private String fileExtension;
private MultipartFile coverImage;
public MultipartFile getCoverImage() {
return coverImage;
}
... | true |
797a768ad2e0ba8ce3d1832ac228f4c6ff0f5296 | Java | ySodias/atvs-generation-java | /modulo_2/semana_3/24.03/minhaLojaDeGames/src/main/java/com/minhaLojaDeGames/minhaLojaDeGames/Services/ProductService.java | UTF-8 | 1,436 | 2.234375 | 2 | [] | no_license | package com.minhaLojaDeGames.minhaLojaDeGames.Services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import com.minhaLojaDeGames.minhaLo... | true |
0c3d84c323aadf497ae7ed5927681caebf826b0b | Java | murtaza-webonise/Java-Framework | /WizardFramework/src/main/java/com/webo/beans/Employee.java | UTF-8 | 835 | 2.875 | 3 | [] | no_license | package com.webo.beans;
import com.webo.annotations.Autoinit;
public class Employee {
private String name;
private long mbNo;
@Autoinit(state = "MH", city = "Mumbai", pinCode = "452011")
private Address add;
public Employee() {
name="Murtaza";
mbNo=12345678;
System.out.println(name+" "+mbNo);
}
publi... | true |
9a483236f64809ab4d658ae462094e4448b074c7 | Java | sheaye/Algorithm-Exercise | /src/leetcode/tree/Exercise39.java | UTF-8 | 1,475 | 3.90625 | 4 | [] | no_license | package leetcode.tree;
import common.TreeNode;
/**
* Given a binary tree, determine if it is height-balanced.
* For this problem, a height-balanced binary tree is defined as a binary tree in which
* the depth of the two subtrees of every node never differ by more than 1.
*/
public class Exercise39 {
public s... | true |
4ea74d8c8a445da8fbd2f33d455741459f57f878 | Java | PavanDhumwad/Core-Java | /src/Java8/PredefinedFI/Consumer/TwoArgConsumer.java | UTF-8 | 607 | 3.6875 | 4 | [] | no_license | package Java8.PredefinedFI.Consumer;
import java.util.function.BiConsumer;
class Employee
{
double salary;
String name;
Employee(String name, double salary)
{
this.name = name;
this.salary = salary;
}
}
public class TwoArgConsumer
{
public static void main(String[] args) {
... | true |
96b5010cc09527a89513e3fc325f9bde018da987 | Java | sanidhyaRsharma/CPUStats | /app/src/main/java/com/example/cpustats/stats.java | UTF-8 | 4,951 | 2.484375 | 2 | [] | no_license | package com.example.cpustats;
import android.app.ActivityManager;
import android.content.Context;
import android.net.TrafficStats;
import android.os.SystemClock;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Locale;
import static android.content.Context.ACTIVITY_SERVICE;
public class... | true |
8f2ea563b05ef6c1b6af0f0b8934736992fe36ed | Java | qwer9412/design-pattern-study | /visitor/src/SizeCalculateVisitor.java | UTF-8 | 404 | 2.921875 | 3 | [] | no_license |
import java.util.List;
public class SizeCalculateVisitor implements Visitor {
private int size = 0;
public int getSize() {
return this.size;
}
@Override
public void visit(File file) {
size += file.getSize();
}
@Override
public void visit(Directory directory) {
List<Element> elements = directory.g... | true |
783218035fe0861267587f42381cacf235c776d7 | Java | mkt-Do/codingBat_Java | /String-1/without2.java | UTF-8 | 245 | 2.71875 | 3 | [] | no_license | public String without2(String str) {
if (str.length() == 2) {
return "";
}
if (str.length() < 2) {
return str;
}
String tail = str.substring(str.length() - 2);
return str.startsWith(tail)
? str.substring(2)
: str;
}
| true |
00e82df2cf5bcd95e72ac2b0bf59013bcf1eaeb2 | Java | brennangw/fss | /FIX/src/web/InitializeParties.java | UTF-8 | 598 | 2 | 2 | [] | no_license | package web;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import main.StartParties;
import quickfix.SessionNotFound;
public class InitializeParties implements ServletContextListener {
@Override
public void contextDestroyed(ServletContextEvent arg0) {
//Notification that... | true |
5fdd50b05d0bd13417ac981712439e9ca78acd9c | Java | wyliebenjamin2019/Assignment-04-Spaced | /main.java | UTF-8 | 865 | 3.3125 | 3 | [] | no_license | public class Spaced{
public static void main(String[] args){
int x1 = 5;
int y1 = 2;
int z1 = -5;
int x2 = 4;
int y2 = 9;
int z2 = 2;
int x3 = -3;
int y3 = 2;
int z3 = 6;
double d1 = Math.sqrt(Math.pow((double) ((x2-x1)), 2)+Math.pow((d... | true |
21830fd299b2fffd41fb9895316d6433712a198d | Java | moutainhigh/goddess-java | /modules/task/task-api/src/main/java/com/bjike/goddess/task/to/AcceptTO.java | UTF-8 | 3,243 | 2.125 | 2 | [] | no_license | package com.bjike.goddess.task.to;
import com.bjike.goddess.common.api.bo.BaseBO;
import com.bjike.goddess.common.api.entity.ADD;
import com.bjike.goddess.common.api.entity.EDIT;
import com.bjike.goddess.common.api.to.BaseTO;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Not... | true |
6268f7758e52eb9d043c2ef95fb002263aec2c8c | Java | pankajwankhede/Concurrency-Practice | /src/cyclicBarrierTest/CyclicBarrierTest1.java | UTF-8 | 1,595 | 3.40625 | 3 | [] | no_license | package cyclicBarrierTest;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.Callable;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.co... | true |
018348a6d507363a30226e854482b555fefe5fb5 | Java | nachocastineira/NumerosComplejos | /src/ar/edu/unlam/progbasica2/Complejo.java | UTF-8 | 1,177 | 3.5 | 4 | [] | no_license | package ar.edu.unlam.progbasica2;
public class Complejo { // Se crea la clase
private Double real; // Creo los atributos privados
private Double imaginario;
public Complejo (Double real, Double imaginario) //CONSTRUCTOR DE LA CLASE, PARA SUMAR REAL CON IMAGINARIO
{
this.imaginario = imaginario; //INICIALIZO ... | true |
bbb73d1a3d2ddca3e8aa8fdeaabea5e34fe7786b | Java | 358Tcyf/giisdemo | /app/src/main/java/simple/project/giisdemo/helper/utils/ActivityUtil.java | UTF-8 | 643 | 2.015625 | 2 | [] | no_license | package simple.project.giisdemo.helper.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import simple.project.giisdemo.activity.MainActivity;
/**
* @author Created by ys
* @date at 2019/1/23 17:03
* @describe
*/
public class ActivityUtil {
public static void ... | true |
7e6422592be03f68d087f5407c1f5279c8232a30 | Java | andrehora/jss-code-examples | /code-examples/org.springframework.web.servlet.ModelAndView.setViewName9.java | UTF-8 | 690 | 2.234375 | 2 | [] | no_license | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws IOException {
if (modelAndView != null) {
if (modelAndView.getModel().containsKey("currentTabWrapped")) {
final Object tabObject = modelAndView.getModelMap().get("cu... | true |
88d2f27763d5be5dd13dd91950110add9a106357 | Java | paulofausto31/Vendas | /vendas/src/main/java/vendas/telas/UtilitarioTabContainer.java | UTF-8 | 1,033 | 2.015625 | 2 | [] | no_license | package vendas.telas;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import venda.util.Global;
public class UtilitarioTabContainer extends TabActivity {
@Override
public void onCreate(Bundle e){
super.onCreate(e);
setCon... | true |
984d5e869759c9c7c2b45a4490191e04bf04f706 | Java | Alba-Sula/SecondProblem | /src/SchedulesModel.java | UTF-8 | 1,606 | 2.640625 | 3 | [] | no_license | import java.util.Date;
public class SchedulesModel{
public String SchName;
public String SchDescription;
public Date SchStart;
public int IsRepeat;
public long RepetitionInMinutes;
public int Duration;
public SchedulesModel(String SchName, String SchDescription, Date SchStart,int IsRepeat... | true |
c3d584f8301fb777e683423e257064bc94cd59f0 | Java | NickBondarenko/JNPM | /jnpm/src/main/java/org/orienteer/jnpm/dm/VersionInfo.java | UTF-8 | 6,557 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package org.orienteer.jnpm.dm;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import org.apache.commons.compress.utils.IOUtils;
import org.orienteer.jnpm.ILogger;
import org.orienteer.jnpm.JNPMService;
import org.orienteer.jnpm.traversal.... | true |
43b2b7e60aa990a6e2f3699ca289fe9d586de683 | Java | Karthikvenkatesan/junit-example | /src/test/java/HelloWorldTestCase.java | UTF-8 | 343 | 2.640625 | 3 | [] | no_license | import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class HelloWorldTestCase
{
@Test
public final void test()
{
HelloWorld helloWorld = new HelloWorld();
String strTo = "Karthik";
String strAct = helloWorld.sayHello(strTo);
String strExp = "Hello Mr. " + strTo;
assertEquals(... | true |
6a7ecee4193671b58ae56ac062aec6d5d203109e | Java | aaronamm/osgi-mvc | /framework/core/core-impl/src/main/java/com/funnic/mvc/core/impl/controllers/ControllerRepository.java | UTF-8 | 383 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.funnic.mvc.core.impl.controllers;
import com.funnic.mvc.core.api.exceptions.ControllerNotFoundException;
/**
* @author Per
*/
public interface ControllerRepository {
/**
* Retrieves a controller with the supplied name
*
* @param name The name of the controller
* @return
*/
ControllerInfo ge... | true |
c53531b659bca203edc95fdd541f78de4b2c1e6d | Java | loveq2016/futureN4J | /commons-collections/src/main/java/com/github/ittalks/commons/redis/queue/config/ConfigManager.java | UTF-8 | 620 | 2.21875 | 2 | [] | no_license | package com.github.ittalks.commons.redis.queue.config;
import java.util.Properties;
/**
* Created by 刘春龙 on 2017/3/3.
*/
public class ConfigManager {
private static Properties redisConn;
private static Properties redisQueue;
public void setRedisConn(Properties redisConn) {
ConfigManager.redisC... | true |
bc91e589e3d7cb10c7003741c860644993dfd0d5 | Java | LapTrinhWepT2/WebCaNhanVersion8 | /src/dao/DeThiDAO.java | UTF-8 | 2,094 | 2.8125 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.mysql.jdbc.PreparedStatement;
import connect.DBConnect;
import model.DeThi;
import model.DeThi_CauHoi;
import model.KhoaHoc_DeThi;
public class DeThiDAO {
public ArrayList<DeTh... | true |
dbb3eb9bcaba482e5e561e4fdfb740470eb877bb | Java | bryant1410/MultiView | /adapters/src/main/java/io/apptik/multiview/adapters/WrapperAdapter.java | UTF-8 | 3,037 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 AppTik 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 law or ag... | true |
3aed137bb732ba82d0741ab3d412066ff22a80a5 | Java | daskain/cft-desktop-app | /src/main/java/ru/cft/model/Rental.java | UTF-8 | 810 | 2.125 | 2 | [] | no_license | package ru.cft.model;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.extern.apachecommons.CommonsLog;
import javax.persistence.*;
import java.sql.Date;
import java.sql.Timestamp;
@Entity
@Table(name = "rentals")
@Data
public class Rental {
@Id
@GeneratedValue(strategy = G... | true |
0bff13ddff1296c93fcb18666527969ce6e18e8e | Java | noushunr/Pachoo | /app/src/main/java/com/highstreets/user/ui/place_order/PlaceOrderActivity.java | UTF-8 | 10,190 | 1.664063 | 2 | [] | no_license | package com.highstreets.user.ui.place_order;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.DividerItemDecoration;
i... | true |
4f30f3f71e4ee046123a7af058decd26624e68ed | Java | siddhantaws/LowLatency | /PROFILING/NIOMultiplexer/src/main/java/org/mk/training/plexer/impl/DumbBufferFactory.java | UTF-8 | 416 | 2.234375 | 2 | [] | no_license | package org.mk.training.plexer.impl;
import org.mk.training.plexer.BufferFactory;
import java.nio.ByteBuffer;
public class DumbBufferFactory implements BufferFactory {
private int capacity;
public DumbBufferFactory(int capacity) {
this.capacity = capacity;
}
public ByteBuffer newBuffer() {
return (ByteBuff... | true |
f6dacfe27a407808d674e86eea5872a8c81b1c18 | Java | realzoulou/omri-usb | /omriusb/src/main/java/org/omri/radio/impl/VisualDabSlideShowImpl.java | UTF-8 | 3,419 | 2.046875 | 2 | [] | no_license | package org.omri.radio.impl;
import java.io.Serializable;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Calendar;
import org.omri.radioservice.metadata.VisualDabSlideShow;
import org.omri.radioservice.metadata.VisualType;
/**
* Copyright (C) 2018 IRT GmbH
*
* Licensed under the Apache ... | true |
0cf0e98df2d41e8b7364a820f238b1f54dbd3451 | Java | radwasherif/ACM | /src/codeforces/div2/IlyaAndTicTacToeGame_754B.java | UTF-8 | 1,837 | 3.21875 | 3 | [] | no_license | package codeforces.div2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class IlyaAndTicTacToeGame_754B {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in... | true |
27c2825a850fe0f4a1094d1ecf77feb1d4ae5014 | Java | jackplantin/AWeberTask | /src/test/java/pages/ProfilePage.java | UTF-8 | 1,321 | 2.53125 | 3 | [] | no_license | package pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import utils.CommonMethods;
public class ProfilePage extends CommonMethods {
//This input field takes in first name
@FindBy(xpath = "//input[@id = 'first_name']")
... | true |
0f068630c80cee585d2872972417cbdc24c81955 | Java | tommasoVilla/Didattica_Mobile_Client_Android | /app/src/main/java/it/uniroma2/dicii/sdcc/didatticamobile/task/AddCourseTask.java | UTF-8 | 3,952 | 2.5625 | 3 | [] | no_license | package it.uniroma2.dicii.sdcc.didatticamobile.task;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import it.uniroma2.di... | true |
dbede52ab21b9193f04e564db5160db398e46c65 | Java | olgt/Laboratorio_EDD_201612341_Proyecto2 | /src/Screens/MainUsuario.java | UTF-8 | 3,610 | 2.421875 | 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 Screens;
/**
*
* @author Oscar
*/
public class MainUsuario extends javax.swing.JPanel {
/**
* Creates new form Ma... | true |
857a8de6f46127606c6430ca6cd82d2631eb95e7 | Java | jaimemorales52/appDockerizada | /appDockerizada/src/main/java/com/demo/docker/model/ConsulInstance.java | UTF-8 | 1,040 | 2 | 2 | [] | no_license | package com.demo.docker.model;
import com.orbitz.consul.Consul;
import com.orbitz.consul.KeyValueClient;
public class ConsulInstance {
private static Consul consul = Consul.builder().build(); // connect to localhost
// private static Consul consul = Consul.builder().withUrl("http://consul-service.softtoken-dev:8500... | true |
4a3e308aa3f1fcd6ea0f936b8a4205518f9d6bfa | Java | rgavrysh/BetMonitor | /graphView/src/com/roman/graphview/MainActivity.java | UTF-8 | 3,189 | 2.59375 | 3 | [] | no_license | package com.roman.graphview;
import java.util.ArrayList;
import java.util.HashMap;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAda... | true |
2566f6dfc9573fb259d23810870d2c39f00a929a | Java | wangshengkui/Calligraphy | /src/com/jinke/smartpen/SimplePoint.java | UTF-8 | 866 | 2.21875 | 2 | [] | no_license | package com.jinke.smartpen;
import java.io.Serializable;
import android.R.integer;
public class SimplePoint implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public final float x;
public final float y;
public final double timestamp;
public final int force;
public final i... | true |
0cac9bfc951911dcd939db80ea813d1f0c151519 | Java | waitforyouwtt/thread | /src/main/java/com/yidiandian/designmodel/zerenlian/Main.java | UTF-8 | 664 | 3 | 3 | [] | no_license | package com.yidiandian.designmodel.zerenlian;
/**
* @Author: 一点点
* @Date: 2019/4/30 14:37
* @Version 1.0
*/
public class Main {
public static void main(String[] args) {
//创建一个女子,发送自己的类型与请求
IWoman woman = new Woman(2,"我想出去购物..");
//创建责任链
ResponseHandler farther = new Father();
... | true |
2a62f5e4b0b648a4616b4fa688558832affad743 | Java | lucifer7/hotswapdemo | /src/main/java/hotel/swap/demo/service/IndexService.java | UTF-8 | 268 | 1.609375 | 2 | [] | no_license | package hotel.swap.demo.service;
/**
* <B>系统名称:</B><BR>
* <B>模块名称:</B><BR>
* <B>中文类名:</B><BR>
* <B>概要说明:</B><BR>
*
* @author carl.yu
* @since 2016/6/16
*/
public interface IndexService {
public String hello();
}
| true |
cc84bcc8c9a87995681b0d24f31179ac490c5484 | Java | immortalcatz/MHFC | /src/main/java/mhfc/net/common/crafting/MHFCShapelessRecipe.java | UTF-8 | 320 | 1.890625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package mhfc.net.common.crafting;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.ShapelessRecipes;
public class MHFCShapelessRecipe extends ShapelessRecipes {
public MHFCShapelessRecipe(ItemStack output, List<ItemStack> inputList) {
super(output, inputList);
}
}
| true |
fd87f0d8277c016cb3d8b6cd1d1ef158daf59acd | Java | KierenEinar/taobao | /taobao-account/src/main/java/taobao/account/listener/AccountRefundMessageListener.java | UTF-8 | 858 | 1.992188 | 2 | [
"MIT"
] | permissive | package taobao.account.listener;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import taobao.account.service.AccountService;
import taobao.core.constant.Constant;
import taobao.core.vo.OrderPayVo;
import taobao.rock... | true |
4fa29506553b41d03d961b2e8f57ea5d65464856 | Java | RungeKutta2/LanzandoElCaberTheta | /src/clases/Podio.java | UTF-8 | 1,010 | 3.421875 | 3 | [] | no_license | package clases;
import java.util.Comparator;
import java.util.LinkedList;
public class Podio {
private LinkedList<Participante> participantes;
private Comparator<Participante> comparador;
public Podio(Comparator<Participante> comparador) {
this.comparador = comparador;
participantes = new LinkedList<Participa... | true |
cfd2a14864b8b2be2b388b5a364e150278f52912 | Java | pushpendrapal2206/ParkingLotApp | /src/test/java/com/dkatalis/parkinglot/api/models/ParkingSlotTest.java | UTF-8 | 1,226 | 2.9375 | 3 | [] | no_license | package com.dkatalis.parkinglot.api.models;
import org.junit.Test;
import java.util.Objects;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
public class ParkingSlotTest {
@Test... | true |
73bab8f690f1357de853390a816e224c2120236e | Java | khidir000/maps-tracking | /app/src/main/java/edu/unt/transportation/bustrackingsystem/util/GeneralUtil.java | UTF-8 | 2,528 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package edu.unt.transportation.bustrackingsystem.util;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import java.util.Calendar;
import java.util.Locale;
/**
* Utility class consisting of all static methods. It can be used by any clas... | true |
c22f4c44a5e9488a54cb5521fae1b20f85c38d7b | Java | swift-lang/swift-t | /stc/code/src/exm/stc/common/util/ScopedUnionFind.java | UTF-8 | 5,270 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package exm.stc.common.util;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map.Entry;
import java.util.Set;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.SetMultimap;
/**
* Union-find data structure that supports scoping.
*
... | true |
5ee35aa25a271d2fbb9f51260a0e57dc404870a4 | Java | savanrof/intern-project | /my-posts-rest-apis/src/main/java/com/nt/rookie/post/entity/Post.java | UTF-8 | 2,574 | 2.328125 | 2 | [] | no_license | package com.nt.rookie.post.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import jav... | true |
aa1d08d9e6bdb938907cdf1bbb3142ecd7ec2b2e | Java | tutrunghieu/dsa-2017-java-tutorial | /dsa2017-project2-menuframe/src2-list-tree-graph/apps/ltg/modules/LtgModuleGraph.java | UTF-8 | 978 | 1.648438 | 2 | [] | no_license | package apps.ltg.modules;
import java.awt.event.ActionEvent;
public class LtgModuleGraph extends __Base_Module {
public Object actionNew(ActionEvent x) {
// TODO Auto-generated method stub
return null;
}
public Object actionOpen(ActionEvent x) {
// TODO Auto-generated method stub
return null... | true |
ec1ae145a5a4fefb689f65d708aaba518264498d | Java | replimoc/compiler | /Compiler/src/compiler/lexer/TokenType.java | UTF-8 | 6,707 | 3.015625 | 3 | [] | no_license | package compiler.lexer;
/**
* This enum defines the basic types of tokens that can be handled by the lexer.
*
* @author Valentin Zickner
* @author Andreas Eberle
*
*/
public enum TokenType {
/* special tokens */
ERROR("error", OperationType.UNDEFINED),
EOF("EOF", OperationType.UNDEFINED),
IDENTIFIER("ident... | true |
013d3da82f92787b1c1782dc8ef2cbcc6acca957 | Java | hmiguel/sigc | /src/main/java/lucene/Lucene.java | UTF-8 | 10,954 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package lucene;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.StringField;
import org.apache.lucene.document.TextField;
import org.apache.lucene.index.DirectoryReader;
import org.apache... | true |
e67d8a205fef0c02c47e3741831e733ad2c1aeb7 | Java | WhiteSourceE/OppeInfo-SQLi-Flow-Simplified | /src/main/java/ee/hitsa/ois/web/dto/SubjectStudyPeriodSearchDto.java | UTF-8 | 3,567 | 1.914063 | 2 | [] | no_license | package ee.hitsa.ois.web.dto;
import java.math.BigDecimal;
import java.util.List;
import java.util.Set;
public class SubjectStudyPeriodSearchDto {
private Long id;
private Long studentsNumber;
private Long hours;
private List<String> teachers;
private List<SubjectProgramResult> programs;
priv... | true |
9138eebfd68518923fc74331d8740988da49a4ba | Java | hyberbin/J-hibatis | /src/test/java/org/jplus/hibatis/PropertiesDaoTest.java | UTF-8 | 5,582 | 2.296875 | 2 | [] | no_license | /*
* Copyright 2015 www.hyberbin.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
079ca642089de012d2c8280622b009c0129c4539 | Java | miniPinocchio/MicrosoftClient | /app/src/main/java/com/microsoft/ui/activity/MainActivity.java | UTF-8 | 2,557 | 1.96875 | 2 | [] | no_license | package com.microsoft.ui.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.m... | true |
c417174bb73725e18f25cb482e0793bb48bf12c4 | Java | XLeanBiz/StartupData | /src/com/startupdata/client/topics/textTopics/EditTextIcon.java | UTF-8 | 955 | 1.898438 | 2 | [] | no_license | package com.startupdata.client.topics.textTopics;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Anchor;
import com.startupdata.client.MyCompanyPanel;
import com.startupdata.clien... | true |
21c5f74602eaebe6d7c53c3c029da5e05097dadb | Java | sripadapavan/SimpleFlatMapper | /sfm/src/main/java/org/sfm/jdbc/impl/setter/FloatPreparedStatementIndexSetter.java | UTF-8 | 652 | 2.734375 | 3 | [
"MIT"
] | permissive | package org.sfm.jdbc.impl.setter;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;
public class FloatPreparedStatementIndexSetter implements PreparedStatementIndexSetter<Float> {
@Override
public void set(PreparedStatement target, Float value, int columnIndex) throws SQ... | true |
c07ca6b76f6e8b3f5ca952a411d0f30b311cdd66 | Java | oleg-grigorijan/budgetgo | /src/main/java/com/godev/budgetgo/config/security/UserDetailsImpl.java | UTF-8 | 1,439 | 2.375 | 2 | [] | no_license | package com.godev.budgetgo.config.security;
import com.godev.budgetgo.domain.user.User;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;
i... | true |
3ffd581c14a2cf95175151ec2ba191b62b0d9082 | Java | Ybakman/BilSwap | /src/LastPanel.java | UTF-8 | 655 | 2.96875 | 3 | [] | no_license | /**
*@author: Yavuz Faruk Bakman
* @version: 24/12/2018
*/
import javax.swing.*;
import java.awt.*;
public class LastPanel extends JPanel
{
RequestPanel panel;
/**
* This constructor creates the last form of the make request panel by given user
* @param user
*/
public LastPanel(User user)
{
... | true |
9bb83ae1f63e9093e4ac5b048407654eb0698388 | Java | philosophicalintrovert/Beginner-Java-projects-lessons | /[First lesson] - Hello World/src/HelloWorld.java | UTF-8 | 262 | 3.078125 | 3 | [] | no_license | //This is a one-line comment.
/*
* This
* is
* a
* multi-line
* comment.
*/
public class HelloWorld {
public static void main(String[] args){ //Initiates the program
System.out.println("Hello World!"); //Prints out "Hello World!"
}
} | true |
e9c176705014e05d215ea4e45ed45c1080d76a75 | Java | wasner/Td-POA | /TP5/src/politiquesEmprunt/AvantageStatut.java | UTF-8 | 987 | 2.53125 | 3 | [] | no_license | package politiquesEmprunt;
import emprunteurs.EmprunteurArgent;
import emprunteurs.EmprunteurBronze;
import emprunteurs.EmprunteurCarteLecture;
import emprunteurs.EmprunteurCarteMusique;
import emprunteurs.EmprunteurOr;
import emprunteurs.EmprunteurStandard;
public class AvantageStatut implements AvantageEmprunteur{
... | true |
1480513d5bef77bc975c13f358c0a47e3dbdc885 | Java | loloChan/rpc-demo | /src/main/java/cjy/rpc/demo/proxy/JDKInvocationHandler.java | UTF-8 | 1,662 | 2.765625 | 3 | [] | no_license | package cjy.rpc.demo.proxy;
import cjy.rpc.demo.netty.future.SyncWrite;
import cjy.rpc.demo.netty.msg.Request;
import cjy.rpc.demo.netty.msg.Response;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* 使用jdk动态代理生成服务接口的代理类
* 由代理类实现远程链接请求并获取结果
* 也就是说,在消费端,该类属于stub,用于网络连接调用。
* @autho... | true |
79b392c499112603e90326b62af79316a99f6d5b | Java | chenjunwei1993/yytx-app | /app/src/main/java/com/dyibing/myapp/bean/SubmitQuestionBean.java | UTF-8 | 468 | 2.09375 | 2 | [] | no_license | package com.dyibing.myapp.bean;
public class SubmitQuestionBean {
private int answerNum;
private String correctAnswer;
public int getAnswerNum() {
return answerNum;
}
public void setAnswerNum(int answerNum) {
this.answerNum = answerNum;
}
public String getCorrectAnswer() ... | true |
9605a72b2a374a9309be006d4caf06dc3eb1e645 | Java | Xmaoyh/TcTest | /app/src/main/java/com/example/maoyh/tctest/fragment/WuliuFragment.java | UTF-8 | 4,596 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.maoyh.tctest.fragment;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bai... | true |
26cba0a67188b50ec8ec53b287331f567519e6b4 | Java | smith61/java-decompiler | /src/main/java/net/jsmith/java/byteforge/utils/IOUtils.java | UTF-8 | 1,314 | 2.890625 | 3 | [] | no_license | package net.jsmith.java.byteforge.utils;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
public class IOUtils {
public static void safeClose( AutoCloseable c ) {
if( c != null ) {
try {
c.close( );
... | true |
d11409d8cdffb85e91fd72260c9b4b8cfd2b9798 | Java | pingguosanjiantao/Elements-of-Programming-Interviews | /20-Parallel Computing/code/src/DeadLock.java | UTF-8 | 1,209 | 3.8125 | 4 | [] | no_license | /*
* 20.5
*/
public class DeadLock {
public static class Account {
private int balance;
private int id;
private static int globalId;
Account(int balance) {
this.balance = balance;
this.id = ++globalId;
}
// have a global ordering on locks a... | true |
98b110e955f6f401a3e95e49e509d0604c9c2220 | Java | christianfe/noleggio-veicoli-agensia | /src/main/java/it/univaq/disim/oop/bhertz/controller/MaintenanceController.java | UTF-8 | 8,435 | 2.078125 | 2 | [] | no_license | package it.univaq.disim.oop.bhertz.controller;
import java.net.URL;
import java.time.LocalDate;
import java.util.List;
import java.util.ResourceBundle;
import it.univaq.disim.oop.bhertz.business.BhertzBusinessFactory;
import it.univaq.disim.oop.bhertz.business.BusinessException;
import it.univaq.disim.oop.bh... | true |
73128476cfd4d92a6e4fb783822ef288677a94c9 | Java | UKHomeOffice/pttg-ip-api | /src/test/java/uk/gov/digital/ho/proving/income/validator/IncomeValidationServiceTest.java | UTF-8 | 8,969 | 2.1875 | 2 | [
"MIT"
] | permissive | package uk.gov.digital.ho.proving.income.validator;
import com.google.common.collect.ImmutableList;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import uk.gov.digital.ho.proving.income.api.domain.CategoryCheck;
im... | true |
25bff9ec3adb3c8165ea5d64cda21b6c98cc95d2 | Java | black-ant/case | /case Other Spring/case remote/server/src/main/java/com/gang/sping/remote/demo/service/TestService.java | UTF-8 | 317 | 1.703125 | 2 | [] | no_license | package com.gang.sping.remote.demo.service;
import org.springframework.stereotype.Service;
/**
* @Classname TestService
* @Description TODO
* @Date 2020/10/31 17:08
* @Created by zengzg
*/
@Service
public class TestService implements ITestService {
public String get() {
return "success";
}
}
| true |
21c0eff5ae66261e04135dafbcdce6f4089e50c0 | Java | kishangabani/N-Queen-Problem | /N_Queen_Project_Code/src/project/Queen.java | UTF-8 | 1,140 | 2.96875 | 3 | [] | no_license | package project;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;
public class Queen extends JFrame {
private final Container mainContainer;
private final NQueen nq;
private final ButtonPanel bp;
protected static boolean solution;
Queen(int n) {
super(... | true |
18b111765dec01ac50ac31c9317056267e0cc12e | Java | aoke79/property | /src/com/sms/training/qualification/business/ITfQualPilotDocumentsBS.java | UTF-8 | 393 | 1.601563 | 2 | [] | no_license | package com.sms.training.qualification.business;
import java.util.List;
import com.sinoframe.business.IService;
import com.sms.training.qualification.bean.TfQualPilotDocuments;
public interface ITfQualPilotDocumentsBS extends IService{
int findDocumentsByDetailId(String detailsid, String userid);
Lis... | true |
e2dd698175c8ee110475eb0edb9fec70386b0dd0 | Java | ven2day/online_stock_pro | /src/main/java/com/online/stock/services/impl/SystemVarService.java | UTF-8 | 1,645 | 2.171875 | 2 | [] | no_license | package com.online.stock.services.impl;
import com.online.stock.dto.SysGroup;
import com.online.stock.dto.request.SystemVarAddReq;
import com.online.stock.dto.response.SystemVarRes;
import com.online.stock.model.SysVar;
import com.online.stock.repository.SysVarRepository;
import com.online.stock.services.ISystemVarSer... | true |
58b783f993e6b0a217a64e59107501e94c92552f | Java | abhijeeth-accolite/assignments | /Assignment-22-01_(DesignPrinciples)/designPrinciples/src/main/java/com/abstractFactory/MammalFactory.java | UTF-8 | 145 | 2.453125 | 2 | [] | no_license | package com.abstractFactory;
public class MammalFactory extends AbstractFactory{
@Override
Animal getAnimal() {
return new Mammal();
}
}
| true |
b8f679a8d119deef5707e5c08e8d5710fe1e3696 | Java | souky/SVN | /shieldSystem_v1.0.0.5/src/main/java/com/jy/protocol/common/utils/GeneralProtocol.java | UTF-8 | 2,145 | 2.3125 | 2 | [] | no_license | package com.jy.protocol.common.utils;
import com.jy.moudles.device.entity.Device;
import com.jy.protocol.common.constant.DeviceVender;
import com.jy.protocol.jf.utils.IssuedSendUtils;
import org.apache.commons.lang3.StringUtils;
/**
* Create by wb
* TIME: 2018/1/29 10:24
* 发送协议通用接口,根据设备中的厂家选择调用对应的协议
**/
public cl... | true |
d997e7db2aa09f24724d601edd31afe261e9bc8a | Java | usnistgov/fhir.emf | /gen/main/java/org/hl7/fhir/CompositionEvent.java | UTF-8 | 3,899 | 2.078125 | 2 | [] | no_license | /**
*/
package org.hl7.fhir;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Composition Event</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A set of healthcare-related information that is assembled together into a singl... | true |
58d320feca2866c593483369533f184573ed339a | Java | OpenNTF/org.openntf.domino | /domino/core/src/main/java/org/openntf/domino/nsfdata/structs/cd/BasicCDRecord.java | UTF-8 | 1,220 | 2.140625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"ICU",
"MIT",
"BSD-2-Clause"
] | permissive | /**
* Copyright © 2013-2021 The OpenNTF Domino API Team
*
* 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 require... | true |
65d5bf3d4cd27fd51da345e2b2ede650252f2cf0 | Java | SeyithanDilek/SpringCore-Examples | /src/value/JDBCConnection.java | UTF-8 | 974 | 2.71875 | 3 | [] | no_license | package value;
import java.sql.Connection;
import java.sql.DriverManager;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Component
@PropertySource("classpath:resources/db.properties")
public cl... | true |
83d311269ce7a0998b506eda5c22b11081d45225 | Java | nithinkrishnapullivarthi/greet-share-meet | /backend/generated/open-api/src/main/java/com/seproject/meetgreetapp/StudentDetailResponseDTO.java | UTF-8 | 6,754 | 1.976563 | 2 | [] | no_license | package com.seproject.meetgreetapp;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.seproject.meetgreetapp.Interest;
import com.seproject.meetgreetapp.VolunteerInterest;
import io.swagger.annotations.ApiModel;
import io.swa... | true |
f9b5416271dd068f31009cfe224abe988c81ce2f | Java | alish2001/MarKey | /src/supply/exige/markey/entries/MarkEntry.java | UTF-8 | 1,630 | 2.859375 | 3 | [] | no_license | package supply.exige.markey.entries;
public class MarkEntry {
private String name;
private double vouchers;
private double achieved, max;
private double weightFactor;
private Category category;
public MarkEntry(String name, String actualMark, double weightFactor, Category category) {
... | true |
a33ab496d4616cadd4ece688c108b5192d3b8395 | Java | arminha/davesgame | /domain/src/test/java/arminha/davesgame/domain/BoardTest.java | UTF-8 | 2,370 | 2.921875 | 3 | [] | no_license | package arminha.davesgame.domain;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class BoardTest {
private Board board;
@Before
public void setup() {
board = new Board();
}
@Test
public void emptyBoardHa... | true |
265242a33dbaf9ffdeea51aaf29a0861998755c1 | Java | hvy/battlecode2015 | /teams/team1/common/Action.java | UTF-8 | 2,510 | 3.125 | 3 | [] | no_license | package team1.common;
import battlecode.common.Direction;
import battlecode.common.GameActionException;
import battlecode.common.RobotController;
import battlecode.common.RobotInfo;
import battlecode.common.RobotType;
import battlecode.common.Team;
public class Action {
// This method will attack an ene... | true |
b442e0bd32fc6f85c08d408355371f0e1d16ba48 | Java | Caaarlowsz/bukkit-kitpvp | /src/main/java/com/escapeg/kitpvp/handlers/SpawnHandler.java | UTF-8 | 1,896 | 2.53125 | 3 | [] | no_license | package com.escapeg.kitpvp.handlers;
import com.escapeg.kitpvp.KitPvP;
import com.escapeg.kitpvp.utilities.GameChat;
import com.google.inject.Inject;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import... | true |
a07e94d4c8078025a2af30bf32a2325e0dad09db | Java | KkukYang/bitSpring | /SpringBootJpaEx2/src/main/java/com/example/demo/BoardController.java | UTF-8 | 2,127 | 2.21875 | 2 | [] | no_license | package com.example.demo;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bin... | true |
6c472173789b1bb2a35d907e6de68999cd538f57 | Java | tatashii/MusicalApp | /app/src/main/java/com/example/musicalapp/Angham.java | UTF-8 | 859 | 1.875 | 2 | [] | no_license | package com.example.musicalapp;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Angham extends AppCompatActivity {
Button button;
@Override... | true |
fb5675ba94c37f64c0229a68a6a9690c9effd1dd | Java | yellow013/northstar | /northstar-common/src/main/java/tech/xuanwu/northstar/common/utils/OrderUtil.java | UTF-8 | 1,098 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package tech.xuanwu.northstar.common.utils;
import tech.xuanwu.northstar.common.model.OrderRequest.TradeOperation;
import xyz.redtorch.pb.CoreEnum.DirectionEnum;
import xyz.redtorch.pb.CoreEnum.OffsetFlagEnum;
import xyz.redtorch.pb.CoreEnum.PositionDirectionEnum;
public class OrderUtil {
public static DirectionEn... | true |
61a11ee56039caf00d8064e0c3fdf2b69c35d47f | Java | lisajoanno/BlackOut | /src/jeu/blackOut/utils/instructions/InstructionsImageText.java | UTF-8 | 556 | 2.140625 | 2 | [] | no_license | package jeu.blackOut.utils.instructions;
public abstract class InstructionsImageText {
// TODO: Ici Antoine - Mettre texte - Move dans Constants
public final static String INSTRU_TEXT_0 = "Voici un exemple d'utilisation. Nous partons de la grille ci-contre et nous choisissons de cliquer sur la case entourée ... | true |
8782edc3e9fd59cf1187b01479251c7e5572039b | Java | chqu1012/RichClientFX | /de.dc.javafx.xcore.workbench.ide.lang/src-gen/de/dc/javafx/xcore/workbench/ide/Editable.java | UTF-8 | 1,086 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /**
* generated by Xtext 2.17.0
*/
package de.dc.javafx.xcore.workbench.ide;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Editable</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The fo... | true |
6ea34d30a720a763556858c8209a7b2e64d39c88 | Java | juanchoque/truextenddemo | /src/main/java/com/truextend/dev/recipes/services/AccountsService.java | UTF-8 | 417 | 1.585938 | 2 | [] | no_license | package com.truextend.dev.recipes.services;
import com.truextend.dev.recipes.model.Accounts;
import java.util.HashMap;
public interface AccountsService {
HashMap deteleAccounts(Accounts accounts);
HashMap getAllAccounts(Accounts accounts);
HashMap getAccountsById(Accounts accounts);
HashMap getAcc... | true |
338da48ac2e736fdee1b68bd5abf03db01d5e8b1 | Java | minjae9010/WorldHunts | /src/main/java/tk/mjsv/TimerHandler/warTimer.java | UTF-8 | 3,153 | 2.46875 | 2 | [] | no_license | package tk.mjsv.TimerHandler;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.Chunk;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import tk.mjsv.CmdHandler.WarHandler;
import tk.mjsv.WorldHunter;
import tk.mjsv.YAML;
public class warTimer implements Runnable... | true |
89fcf6e7f5299edb5873d0f32f7d203067b1bbea | Java | guodongdong/iaat-source | /src/test/java/com/iaat/webapi/ApiAbstractTestCase.java | UTF-8 | 6,787 | 1.960938 | 2 | [] | no_license | package com.iaat.webapi;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.util.HashMap;
import java.util.Map;
import com.iaat.model.AccountBean;
import com.nokia.ads.common.ut... | true |
0f4fbb47482da96e07b8ee848ff8a5e0e795171f | Java | gaoruishan/APP_v1.0 | /mobileTravel/src/main/java/com/cmcc/hyapps/andyou/adapter/TripDayDropdownAdapter.java | UTF-8 | 1,821 | 2.265625 | 2 | [] | no_license |
package com.cmcc.hyapps.andyou.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.kuloud.android.widget.recyclerview.BaseHeaderAdapter;
import com.cmcc.hyapps.andyou.R;
import ... | true |
e3f77d7950eda5ad3991c8f3c98daee002ae5a98 | Java | knewjade/solution-finder | /src/test/java/core/field/MiddleFieldTest.java | UTF-8 | 46,444 | 2.75 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | package core.field;
import core.mino.Mino;
import core.mino.Piece;
import core.neighbor.OriginalPiece;
import core.srs.Rotate;
import lib.Randoms;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.assertj.core.api.Assertions.assertThat;
class MiddleFieldTest {
private static final... | true |
a8f2db898a76142920ed00f88da06562cc6560a4 | Java | 1jaywong1/IEC61131-based-PLC-with-HMI-Operator-Panel | /DDC_HMI/src/main/java/com/controllers/ElevatorController.java | UTF-8 | 3,563 | 2.453125 | 2 | [] | no_license | package com.controllers;
import com.panel.transaction.BufferManager;
import com.panel.transaction.MyIntegerProperty;
import com.panel.transaction.PropertyManager;
import com.panel.view.ViewManager;
import javafx.application.Platform;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.fxml.FXML;
import j... | true |
70d199ab1c7099e857274c5ea06f74a9492b1419 | Java | wffirilat/BetterObsidian | /src/main/java/wffirilat/betterobsidian/Blocks/GenBlock.java | UTF-8 | 1,385 | 2.609375 | 3 | [] | no_license | package wffirilat.betterobsidian.Blocks;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import wffirilat.betterobsidian.lib.GrowingTree;
public class GenBlock extends ModBlock {
public GenBlock() {
super("genBl... | true |
83392125d7f97dbd4e3d6072f878fe819ad62588 | Java | igor-zac/D-D | /src/com/warriors/items/equipments/offense/Weapon.java | UTF-8 | 387 | 2.515625 | 3 | [] | no_license | package com.warriors.items.equipments.offense;
public abstract class Weapon extends OffensiveEquipment{
// CONSTRUCTORS ===================================================================================================
/**
*
* @param name
* @param strength
*/
public Weapon(String nam... | true |
ab695c72a5e9560742fb858dc66605e6f5609305 | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/dao/DaoStmtExecHelper.java | UTF-8 | 6,728 | 2.296875 | 2 | [] | no_license | package br.com.mind5.dao;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.com.mind5.common.DefaultValue;
import br.com.mind5.common.SystemLog;
imp... | true |
4006b387b4d1b21c82c70891bf0525d2aa5dc6f3 | Java | szdengl/mimiduo-parent | /mimiduo-manager/mimiduo-manager-service/src/main/java/net/mimiduo/boot/service/impl/business/MoServiceImpl.java | UTF-8 | 769 | 1.84375 | 2 | [] | no_license | package net.mimiduo.boot.service.impl.business;
import net.mimiduo.boot.dao.BaseDao;
import net.mimiduo.boot.dao.bussiness.MoDao;
import net.mimiduo.boot.pojo.business.Mo;
import net.mimiduo.boot.service.busindess.MoService;
import net.mimiduo.boot.service.impl.BaseServiceImpl;
import org.springframework.beans.facto... | true |
6c140a8121d16352b4bab120ad9bb9cb95eb8d16 | Java | matheusfreire/Capstone-Project | /myshops/app/src/main/java/com/msf/myshops/util/Constants.java | UTF-8 | 446 | 1.882813 | 2 | [] | no_license | package com.msf.myshops.util;
public enum Constants {
SHOP("SHOP"),
NEW_SHOP_IMPL("NEW_SHOP_IMPL"),
PATTERN_DATE_BR("dd/MM/yyyy"),
SHOP_PREFERENCES("UID_SHOP"),
NOTIFICATION_CHANNEL("MY_SHOP"),
KEY_NEW_ITEM_FRAG("NEW_ITEM_FRAGMENT"),
KEY_UNIQUE("users"),
CHANNEL_ID("0");
private S... | true |
d2e487c7a94135c7d58430e798e307b90d8c77a0 | Java | Krigu/bookstore | /bookstore-jpa/src/test/java/org/books/data/dto/MarshallerTest.java | UTF-8 | 2,598 | 2.640625 | 3 | [
"MIT"
] | permissive | package org.books.data.dto;
import org.testng.Assert;
import org.testng.annotations.Test;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import java.io.ByteArrayInputStream;
public class MarshallerTest {
@Test
public void testMarshallOneItem() thr... | true |
f6e0f5b5ae978da6d392cef006805356ace5eb07 | Java | cnsgithub/primefaces | /src/main/java/org/primefaces/component/tree/UITreeNode.java | UTF-8 | 1,229 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2009-2019 PrimeTek.
*
* 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 law or agreed to ... | true |
f86cbf9932c9adbecc8559fb25b2e5d841b5c296 | Java | RubiMaistro/codes-prog2 | /EPAM/Creation Design Patterns/SingleObject.java | ISO-8859-2 | 1,412 | 2.78125 | 3 | [] | no_license | /*
* Egyke programtervezsi minta
*
* Egy obijektumra korltozza az osztly ltrehozhat pldnyainak a szmt
*
* Memrit sporol, mert nem lesz minden alkalommal ltrehozva, amikor kell, csak egyszer s jra s jra lesz hasznlva
* A globlis vltozkkal szemben gyakran az egykket rszestik elnyben, mivel:
* Nem szennye... | true |
b6b7017e67c05dce7d22c6b46488afb4d6d5c1c4 | Java | angeojohnym/amersouq-angeo | /app/src/main/java/com/shopping/techxform/amersouq/activities/ViewWishList.java | UTF-8 | 6,614 | 2 | 2 | [] | no_license | package com.shopping.techxform.amersouq.activities;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.... | true |