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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
44c4ae63b9d39d355738e17d9ed33764745f2eb7 | Java | xueqiao-codes/xueqiao-portal | /xueqiao_admin_web/java/src/main/java/com/longsheng/xueqiao/admin/web/controller/SledOrderAdmin.java | UTF-8 | 29,597 | 1.695313 | 2 | [] | no_license | package com.longsheng.xueqiao.admin.web.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.google.gson.Gson;
import com.longsheng.xueqiao.admin.helper.Mapper;
import com.longsheng.xueqiao.admin.module.hosting.MXueqiaoHosting;
import com.longshen... | true |
364f17e39dc7a9e743086c13f2e1f9b78c866d6e | Java | lavaoutsiders/Morty | /src/main/java/wh1spr/bot/commands/economy/PayCommand.java | UTF-8 | 3,166 | 2.3125 | 2 | [
"MIT"
] | permissive | package wh1spr.bot.commands.economy;
import java.awt.Color;
import java.util.List;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.entities.Guild;
import net.dv8tion.jda.core.entities.Member;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.co... | true |
e29ac041ad4c30d79d2e9689b90b9bcafa03c94d | Java | matteokrtpr/FirstRepositary | /src/com/syntax/class08/Task6.java | UTF-8 | 1,296 | 3.96875 | 4 | [] | no_license | package com.syntax.class08;
public class Task6 {
public static void main(String[] args) {
/*1.soru
* Write a program that reads a range of integers (start and end point),
* provided by a user and then from that range prints the sum of the even and
* odd integers. *
*/
/*2.soru
... | true |
fca63ef9be93fc793eac65a7a548fcd096ee7e42 | Java | moutainhigh/web | /meila_meigou_tuan/dal/src/test/java/com/meila/dal/slave/dao/PromotionSlaveDaoTestCase.java | UTF-8 | 1,234 | 1.914063 | 2 | [] | no_license | package com.meila.dal.slave.dao;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.fasterxml.jackson.databind.util.JSONPObject;
import com.vdlm.dal.mybatis.IdType... | true |
0b634d42914a612667647652a5089728b04eb9f2 | Java | kammahha/Coursework | /Coursework/src/coursework/Main.java | UTF-8 | 1,255 | 3.640625 | 4 | [] | no_license | package coursework;
import java.util.Scanner;
import java.io.*;
public class Main {
public static void main(String[] args) {
System.out.println("pls enter n o players: ");
Scanner in = new Scanner(System.in);
int nofPlayers = in.nextInt();
int nofCards = 8 * nofPlayers, index = 0;
boo... | true |
d54f0566694b5837624c6ef4056f5909a0a3cf1d | Java | sboerwinkle/hciCourseWork | /src/hci/server/GreetingServiceImpl.java | UTF-8 | 2,536 | 2.78125 | 3 | [] | no_license | package hci.server;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import hci.client.GreetingService;
import hci.client.MsgPack;
import java.util.LinkedList;
/**
* The server-side implementation of the RPC service.
*/
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceSer... | true |
a6b7d7f873dffef45f3e16bc6199617ff190607e | Java | if414029/cashier-system | /src/main/java/com/amos/chasiersystem/persistance/gateway/itemType/ItemTypeJPAGateway.java | UTF-8 | 2,287 | 2.640625 | 3 | [] | no_license | package com.amos.chasiersystem.persistance.gateway.itemType;
import com.amos.chasiersystem.common.NotFoundException;
import com.amos.chasiersystem.persistance.entity.ItemType;
import com.amos.chasiersystem.persistance.repository.ItemTypeRepository;
import com.amos.chasiersystem.service.entity.*;
import java.util.Arra... | true |
25fbb34b5c2ca614600ce4eb3cfc8e648f06fcb5 | Java | sovicheacheth/HelpDesk24 | /src/main/java/cs545/proj/service/impl/TicketServiceImpl.java | UTF-8 | 1,529 | 2.0625 | 2 | [] | no_license | package cs545.proj.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cs545.proj.domain.Status;
import cs545.proj.do... | true |
54f32936fbdc6624e5cf8f7520d92b3c4853587c | Java | RockNJU/NBA_New | /src/businesslogic/data/TeamData.java | GB18030 | 2,486 | 2.765625 | 3 | [] | no_license | package businesslogic.data;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import VO.TeamInfoVO;
import businesslogic.PO.TeamInfoPO;
import businesslogic.dataservice.TeamDataService;
public class TeamData implements Te... | true |
5ae675e44c56dd342db522a51ed84af2b6ab776e | Java | huynhthanhbinh/demo-soap-parser | /src/main/java/org/bamboo/model/flightport/OandDFeeDetailsType.java | UTF-8 | 6,871 | 1.734375 | 2 | [] | no_license |
package org.bamboo.model.flightport;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OandDFeeDetailsTyp... | true |
e468fbacfc5329c11b2f70857401dd67c519097e | Java | alexusachev1999/ModuleProject | /LogiWeb/src/test/java/ru/usachev/LogiWebProject/test/seleniumTest/pages/AdminMenuPage.java | UTF-8 | 800 | 2.296875 | 2 | [] | no_license | package ru.usachev.LogiWebProject.test.seleniumTest.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class AdminMenuPage {
public WebDriver driver;
public AdminMenuPage(WebDriv... | true |
ee1bac261c92ab8d64e133709aace6421eb51e97 | Java | duanwandao/Java_Base | /src/com/zjx/comparator/BinaryTree.java | UTF-8 | 1,974 | 3.984375 | 4 | [] | no_license | package com.zjx.comparator;
/**
* @Description
* @auther 断弯刀
* @create 2019-06-02 17:48
*/
class BinaryTree{
class Node{ // 声明一个节点类
private Comparable data ; // 保存具体的内容
private Node left ; // 保存左子树
private Node right ; // 保存右子树
public Node(Comparable data){
t... | true |
2b08ae4c37938a204dbc5f2d2a267ac81d5ddc7c | Java | 125299431/Java- | /Test1/src/Demo8.java | UTF-8 | 2,301 | 3.6875 | 4 | [] | no_license | import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Random;
public class Demo8 {
public static void main(String[] args) {
// char xiao = 'a';
// char da = 'A';
// for (int i = 0; i < 26; i++) {
// System.out.println("大写字母" + da + "小写字母" + xiao);
//// da++;
//// xiao++;
// }
//九... | true |
39e8fcb7bc618982eb3211b9bcb6fc155d1006c4 | Java | dlqnjupt/wxmina_szonline | /src/web/CorpogslServlet.java | UTF-8 | 2,266 | 2.5 | 2 | [] | no_license | package web;
import java.io.IOException;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRes... | true |
2f7dcaa01357d6e9f76e7fe60b330f21b59e3964 | Java | k1zzamp/ATM | /src/main/java/ru/sbrf/information/Currency.java | UTF-8 | 260 | 2.484375 | 2 | [] | no_license | package ru.sbrf.information;
public class Currency
{
private CurrencyType type;
Currency(CurrencyType type)
{
this.type = type;
}
public CurrencyType getType()
{
return type;
}
public void setType(CurrencyType type)
{
this.type = type;
}
}
| true |
8026ce5029b590226f3f0637b0d9f1930ee542f6 | Java | akarnokd/reactive4java | /Reactive4Java-0.85/src/hu/akarnokd/reactive4java/util/ActionObservable.java | UTF-8 | 6,095 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2011 David Karnok
*
* 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 ... | true |
ddabde797ac87d8e57f0ff06e03ba143baba6be2 | Java | sdgdsffdsfff/QG_Spider | /src/com/lkb/controller/base/BasicCommonController.java | UTF-8 | 5,721 | 2.234375 | 2 | [] | no_license | package com.lkb.controller.base;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import com.lkb.bean.client.ResOutput;
import com.lkb.constant.CommonConstant;
import com.lkb.constant.Er... | true |
97a7d3158fa4502e0ae16a1c0c86edc8240b50dc | Java | tree33333/Hrm | /de.hswt.hrm.place.dao.jdbc/src/de/hswt/hrm/place/dao/context/JdbcPlaceDaoContextFunction.java | UTF-8 | 910 | 2.171875 | 2 | [] | no_license | package de.hswt.hrm.place.dao.context;
import org.eclipse.e4.core.contexts.ContextFunction;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.hswt.hrm.place.dao.core.IPlaceDao;
import de.... | true |
90d8e32422103660224cdb726b7ce1fe665742bd | Java | kensenjohn/CallSeat | /src/com/gs/manager/event/GuestTableManager.java | UTF-8 | 19,255 | 2.109375 | 2 | [] | no_license | package com.gs.manager.event;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import com.gs.common.Constants;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gs.... | true |
993fd19359cb4bd1a36eaf3131c4fbd94f031ec3 | Java | nandeeshln/PSRP | /apache-camel/camel-topics/src/main/java/com/span/psrp/apache/camel/topics/security/encryption/EncryptionDecrptingMessageRouteBuilder.java | UTF-8 | 2,115 | 2.75 | 3 | [] | no_license | package com.span.psrp.apache.camel.topics.security.encryption;
import java.security.Key;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.converter.crypto.CryptoDataFormat;
import org.apache.commons.lang.Validate;
/**
* Encrypting and decrypting a message
* Camel's Crypto Component is used wh... | true |
480d9393e986807df38b648900f819fbbb805a11 | Java | Saiteja-529/Project | /src/main/java/com/teju/project/dao/ProductDaoImpl.java | UTF-8 | 2,047 | 2.375 | 2 | [] | no_license | package com.teju.project.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
... | true |
c6feb6382bdcb202675851bb26ba3e0cd8808618 | Java | relaxBear20/Gym-management-Web | /src/java/controller/StaffListController.java | UTF-8 | 2,522 | 2.40625 | 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 controller;
import dal.CustomerDAO;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
impo... | true |
1e0fc4c19bf89f1f5bf7829636a0af4aa9e1196e | Java | Accengage/accengage-android-lib-sample | /src/main/java/com/accengage/samples/inapp/MultiZoneInappActivity.java | UTF-8 | 426 | 1.507813 | 2 | [] | no_license | package com.accengage.samples.inapp;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.accengage.samples.R;
public class MultiZoneInappActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... | true |
852acbf32d92079df5e6d55270c4156fe683fe18 | Java | AleksandrChiginev/amazon-web | /src/main/java/pages/Header.java | UTF-8 | 1,533 | 2.25 | 2 | [] | no_license | package pages;
import org.apache.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Header extends BasePage {
private fin... | true |
73e24b8a5085e0e97c63fe0a43f381b80daca6b1 | Java | thiagomesquita1981/AdmnistracaoEscolarDidatico | /src/view/FrmProfessores.java | UTF-8 | 11,908 | 2.09375 | 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 view;
/**
*
* @author Sala308b
*/
public class FrmProfessores extends javax.swing.JInternalFrame {
/**
* Creates ... | true |
229ddbbb40ab9d5a54bdad937fd044c579b540a7 | Java | Arbaaz-Git/JavaBasics | /JavaBasics/LibraryApp/DAO/PublisherDAO.java | UTF-8 | 1,822 | 2.828125 | 3 | [] | no_license | /**
*
*/
package DAO;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import Domain.Publisher;
import Domain.Publisher;
/**
* @author Arbaaz Khan
*
*/
public class PublisherDAO extends BaseDAO<Publisher>{
public Publisher... | true |
12ad53650f480b7a1d1d6b77346b6cb99763c45a | Java | spoole167/java-static-analysis-samples | /checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/javadocmethod/InputJavadocMethodsNotSkipWritten.java | UTF-8 | 1,027 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
JavadocMethod
allowedAnnotations = MyAnnotation
validateThrows = (default)false
accessModifiers = (default)public, protected, package, private
allowMissingParamTags = (default)false
allowMissingReturnTag = (default)false
tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF
*/
package com... | true |
d198ef3519a7c0a1c0636b1cb437e311f3fa82a1 | Java | STAMP-project/dspot-experiments | /benchmark/validation/com/google/cloud/logging/MetricInfoTest.java | UTF-8 | 3,121 | 2.078125 | 2 | [] | no_license | /**
* Copyright 2016 Google LLC
*
* 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 t... | true |
776a1ddb1e7f2e5b050b6e6bda12f0bf1e47fc6c | Java | z9316/hospital | /src/main/java/com/example/demo/login/service/UserRegisterService.java | UTF-8 | 177 | 1.578125 | 2 | [] | no_license | package com.example.demo.login.service;
import java.util.*;
public interface UserRegisterService {
public Map<String,String> SendEmail(Map<String,String> map);
}
| true |
49298cd27c02eabd06b7b95a5096c5ec308821b8 | Java | 150719873/zhdt | /project-third-parent/server-parent/concentrator188-server/src/main/java/com/dotop/smartwater/project/third/concentrator/client/netty/dc/model/form/DeviceForm.java | UTF-8 | 450 | 1.585938 | 2 | [] | no_license | package com.dotop.smartwater.project.third.concentrator.client.netty.dc.model.form;
import com.dotop.smartwater.project.third.concentrator.client.netty.dc.model.BaseModel;
import lombok.Data;
/**
* @program: dingtong
* @description: 设备类
*
* @create: 2019-06-14 10:53
**/
@Data
public class DeviceForm extends Bas... | true |
4a3205ca6d88bd8df10c7fc6c650aaf22d469e7e | Java | YJ0722/TravelLog | /app/src/main/java/com/example/admin/travellog_ver30/memo/MemoPopupActivity.java | UTF-8 | 2,824 | 2.28125 | 2 | [] | no_license | package com.example.admin.travellog_ver30.memo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import com.example.admin.travellog_... | true |
9ea801de103a04dce7623c9275911b806d4f76d4 | Java | asifrc/footballleaguemanager | /src/test/java/com/springapp/mvc/functional/FindPlayerTest.java | UTF-8 | 2,612 | 2.609375 | 3 | [] | no_license | package com.springapp.mvc.functional;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import static com.springapp.mvc.functional.FileUploadHelper.PLAYER_FILE_1;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class FindPlayer... | true |
915ff471d9e8340a11d0ec55dca6e3f7baf4ccd3 | Java | EwanYHank/OrderSystem | /src/main/java/ssm/controller/OrderController.java | UTF-8 | 1,376 | 1.96875 | 2 | [] | no_license | package ssm.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... | true |
d2d72447e0ff9e1882492719ccff2ae316f493ab | Java | k1m0j/Kniffelig | /app/src/test/java/com/kimoji/kniffelig/model/DiceTest.java | UTF-8 | 1,854 | 2.8125 | 3 | [] | no_license | package com.kimoji.kniffelig.model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class DiceTest {
private Dice testDice;
@BeforeEach
void setUp() {
testDice = new DiceImp();
}
@Test
void getValue() {
... | true |
77622ca6f5a9cbd34bc0ae42efc486c79120376e | Java | kaveenabeywansa/sliit-final-year-research | /app/app/src/main/java/com/stark/smartwearableheadset/activities/SignUp.java | UTF-8 | 12,559 | 1.882813 | 2 | [] | no_license | package com.stark.smartwearableheadset.activities;
import android.content.Intent;
import android.os.Build;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import ... | true |
c5a24b20c6167d38c8c4374e58ce6608275adb5f | Java | veniaminM/avaje-ebeanorm-examples | /x-postgres-features/src/test/java/org/example/ListTableNamesTest.java | UTF-8 | 805 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.example;
import java.util.List;
import org.junit.Test;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.SqlQuery;
import com.avaje.ebean.SqlRow;
/**
* Test the use of HStore being mapped to a Map<String,String> value.
*/
public class ListTableNamesTest extends ExampleBaseTestCase {
@Test
publ... | true |
a946198d414d9c065be0584659fe1e3d3b383270 | Java | juanipicart/GeoPosUy | /GeoPosUy/EJB/com/clases/codigueras/Localidad.java | UTF-8 | 815 | 2.421875 | 2 | [] | no_license | package com.clases.codigueras;
import java.io.Serializable;
public class Localidad implements Serializable{
private static final long serialVersionUID = 1L;
private long idCodLocalidad;
private String descCodLocalidad;
public Localidad() {
this.idCodLocalidad = 0;
this.descCodLocalidad = null;
}
public... | true |
d5e7f55f9f9496ffd9addd55b623b2360cd55d7c | Java | gabrielmelo00/TrabalhosMC | /ProjetoFinal/src/jogo/midia/Carregador.java | ISO-8859-1 | 6,451 | 2.390625 | 2 | [] | no_license | package jogo.midia;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import excecao.ErroImagemNaoEncontrada;
public class Carregador {
public static ArrayList<ImageIcon> Imagens = new ArrayList<ImageIcon>();
//lista de imagens
public static final byte BACKGROUND_MENU = 0;
public static final byte ... | true |
fe79c5df84519d159d9e0dd209bf656cdc6a8eb8 | Java | sorobon/geojson-jackson | /src/main/java/org/geojson/MultiLineString.java | UTF-8 | 423 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package org.geojson;
import java.util.List;
public class MultiLineString extends Geometry<List<Position>> {
@Override
public <T> T accept(GeoJsonObjectVisitor<T> geoJsonObjectVisitor) {
return geoJsonObjectVisitor.visit(this);
}
Geometry<List<Position>> add(List<Position> elements) {
return super.add(elemen... | true |
566429c5604c9f6be963b052520aed66b2854e5e | Java | gandolfe/workmap | /src/com/nfsw/locationmap/SignFragment.java | UTF-8 | 17,923 | 1.585938 | 2 | [] | no_license | package com.nfsw.locationmap;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLo... | true |
1cde41b3565bdf7999eeee095a5b97ad1f3a285b | Java | starlc/starlc_java | /src/test/java/reflect/AbstractPersonFactory.java | UTF-8 | 838 | 2.796875 | 3 | [] | no_license | /**
*
*/
package reflect;
/**
* @author liucheng2
*
*/
public abstract class AbstractPersonFactory {
private static IPerson person;
public static IPerson getPerson() {
IPerson obj = ObjectUtil.createBean(person, Person.class);
System.out.println(person);
return obj;
}
privat... | true |
685ff4c56d5858d88ab519e1484f4d0e9833a3f9 | Java | prabhug1987/DesignPatterns | /src/com/example/DataMapper/Student.java | UTF-8 | 2,206 | 3.140625 | 3 | [] | no_license | package com.example.DataMapper;
import java.io.Serializable;
/**
* @author Prabhu G
*
*/
public class Student implements Serializable {
private static final long serialVersionUID = -1;
private int studentId;
private String name;
private char grade;
/**
* Use this constructor to create a student with a... | true |
b06aae2f1426e2adcaf3c1941be616b2921f1cec | Java | BanuTorun/Summer2020_B20 | /src/day32_MethodOverloading/Assingnment.java | UTF-8 | 3,448 | 4.03125 | 4 | [] | no_license | package day32_MethodOverloading;
import java.util.Arrays;
/*
Assignments:
tasks2:
1. create a method that can combine 2 arrays of integers
2. create a method that can combine 2 arrays of double
3. create a method that can combine 2 arrays of String
4. create a method that can combine 2 arrays of char
... | true |
5279f57eba0fd090c1e43b50c1be31a741a92201 | Java | eliferyurek/information-security | /project1/scramble.java | UTF-8 | 6,733 | 2.890625 | 3 | [] | no_license | import java.util.HashMap;
public class scramble {
private static boolean bitOf(char in) {
return (in == '1');
}
private static char charOf(boolean in) {
return (in) ? '1' : '0';
}
public static String subsfunction(String resultxor) {
//access to hashmap
HashM... | true |
0678a829693a2e06f4ae20870d7e5c0a8434ca31 | Java | khaledsabry97/Movita | /app/src/main/java/com/example/khaledsabry/entertainment/Items/Movie.java | UTF-8 | 9,539 | 2.09375 | 2 | [] | no_license | package com.example.khaledsabry.entertainment.Items;
import android.graphics.Bitmap;
import android.widget.ImageView;
import java.text.DecimalFormat;
import java.util.ArrayList;
/**
* Created by KhALeD SaBrY on 27-Jun-18.
*/
public class Movie {
private int movieId;
private String movieImdbId;
private... | true |
7784fb3172ce9e42b823a861f745d428b19251ca | Java | ReikaKalseki/GameCalendar | /src/Reika/GameCalendar/Data/ActivityCategory.java | UTF-8 | 4,558 | 2.59375 | 3 | [] | no_license | package Reika.GameCalendar.Data;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import Reika.GameCalendar.Main;
import Reika.GameCalendar.GUI.GuiController.GuiE... | true |
061765bcca708a0e4d2e27ef8821c8906b25b205 | Java | txazo/java | /src/main/java/org/txazo/java/io/io/PipedStreamTest.java | UTF-8 | 1,024 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | package org.txazo.java.io.io;
import java.io.IOException;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
public class PipedStreamTest {
public static void main(String[] args) throws Exception {
PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new PipedOutp... | true |
b17f195c944b7da18125562829fce3dc4dafd766 | Java | elisman14/OOP | /prac5/src/Program.java | UTF-8 | 14,462 | 2.96875 | 3 | [] | no_license | import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static java.lang.Math.*;
import static java.lang.String.format;
public class Program {
publ... | true |
c9b1c1d864d3c1923101e0b24c9123eb108d1804 | Java | davidpuziol/chess-system-java | /src/chess/pieces/Pawn.java | UTF-8 | 4,564 | 3.40625 | 3 | [] | no_license | package chess.pieces;
import boardgame.Board;
import boardgame.Position;
import chess.ChessMatch;
import chess.ChessPiece;
import chess.Color;
public class Pawn extends ChessPiece {
private ChessMatch chessMatch;
public Pawn(Board board, Color color, ChessMatch chessMatch) {
super(board, color);
this.chessMa... | true |
771d52ed64c4de4b2ac89705e8f1c8634eed1f6d | Java | zglbig/room | /src/main/java/org/zgl/net/server/session/SessionManager.java | UTF-8 | 3,128 | 2.734375 | 3 | [] | no_license | package org.zgl.net.server.session;
import org.zgl.net.message.ServerResponse;
import org.zgl.utils.ProtostuffUtils;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/**
* 作者: 白泽
* 时间: 2017/12/1.
* 描述:
*/
public class SessionManager {
pr... | true |
60b08e128d751a821088087d6a294f384e4a207d | Java | Jingle-seven/demos | /jingle-demo/src/main/java/xz/jingle/MyMath.java | UTF-8 | 4,926 | 3.234375 | 3 | [] | no_license | package xz.jingle;
//早期作品,编码已损坏
public class MyMath {
public static void main(String[] args) {
MyMath m = new MyMath();
// StringBuilder sb = new StringBuilder(154+"");
// System.out.println(sb.substring(sb.length()-1));
// sb.deleteCharAt(sb.length()-1);
// System.out.println(sb.toString());
// m.daffodilNum... | true |
5b2dcc45fee80d5fa86f7398f3526d30b22bd418 | Java | yulongz/deepcs | /java-designpattern/src/main/java/prototypepattern/demo2/Blue.java | UTF-8 | 200 | 2.609375 | 3 | [] | no_license | package prototypepattern.demo2;
/**
* Created by ZhangYulong on 2018/7/19
*/
public class Blue extends Color {
@Override
void show() {
System.out.println("Color is Blue!");
}
}
| true |
e38b007294c47484f2143bdc6f906a91ed109963 | Java | zhongxingyu/Seer | /Diff-Raw-Data/31/31_7f1f7f335a61bf296d466dbdc09ba1ed060c323f/WidgetMouseListener/31_7f1f7f335a61bf296d466dbdc09ba1ed060c323f_WidgetMouseListener_s.java | UTF-8 | 4,569 | 2.5625 | 3 | [] | no_license | /*
This file is part of The Simplicity Engine.
The Simplicity Engine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
... | true |
e976178685742a0e7ec0b4c9d29d63280b75ad33 | Java | gorobec/ArtCode | /Base/ACB11/src/week1/_11RandomInt.java | UTF-8 | 551 | 3.453125 | 3 | [] | no_license | package week1;
import java.util.Scanner;
public class _11RandomInt {
public static void main(String[] args) {
// double > int
/*int pow = (int)Math.pow(3,2);
System.out.println(pow);*/
System.out.println("Enter number:");
Scanner sc = new Scanner(System.in);
int numb... | true |
7d4c8135a838633bbfa617121af38e6608566dad | Java | seanwroy/JavaPractice | /Polymorphism/Coop.java | UTF-8 | 92 | 2.0625 | 2 | [] | no_license |
public interface Coop {
public abstract void work();
public abstract void code();
}
| true |
762d04c5b0a7edc8c12479bf741dae2aeb64fe10 | Java | apscep/UkrpostTest | /UkrpostTest/src/test/java/ukrpostTestingChrome/DropDownTest.java | UTF-8 | 1,982 | 2.09375 | 2 | [] | no_license | package ukrpostTestingChrome;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.We... | true |
1cc9238110f47a9099a5117249a151a8cc51ab4c | Java | crow123/miaolian | /miaolian-console/src/main/java/com/miaolian/cn/service/impl/UserServiceImpl.java | UTF-8 | 558 | 1.953125 | 2 | [] | no_license | package com.miaolian.cn.service.impl;
import com.miaolian.cn.dao.UserDao;
import com.miaolian.cn.domain.User;
import com.miaolian.cn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by jiangyj on 2... | true |
8ec4c8b72f8924b5b06b769b2768176485a15f24 | Java | wlf061/search | /service/src/main/java/com/struggle/service/model/Response.java | UTF-8 | 1,016 | 2.640625 | 3 | [] | no_license | package com.struggle.service.model;
/**
* 类的描述
*
* @author nancy.wang
* @Time 2018/12/9
*/
public class Response<T> {
private int code;
private String message;
private T data;
public Response(int code, String message, T data) {
this.code = code;
this.message = message;
this... | true |
0ce289a60696f837708ef21c0057e39ef7380186 | Java | MAHESH415/corejava | /src/main/java/com/sathya/friend/entity/Friend.java | UTF-8 | 860 | 2.40625 | 2 | [] | no_license | package com.sathya.friend.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Friend {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer Id;
private Long phoneNo;
... | true |
73d9a708418a5b1b2fca69e37e437ccde3b2285d | Java | Smesharikable/FlameStream | /core/src/main/java/com/spbsu/flamestream/core/graph/source/Source.java | UTF-8 | 376 | 1.898438 | 2 | [] | no_license | package com.spbsu.flamestream.core.graph.source;
import com.spbsu.flamestream.core.data.DataItem;
import com.spbsu.flamestream.core.data.meta.GlobalTime;
import com.spbsu.flamestream.core.graph.AtomicGraph;
public interface Source extends AtomicGraph {
void onNext(DataItem<?> item, SourceHandle handle);
void onH... | true |
f63d29b361884d6e490b21b1e5a07d77acdfd778 | Java | rui-yan/CSE8A-8B-Projects | /Word Clouds/WordCloudGraphics.java | UTF-8 | 2,165 | 3.703125 | 4 | [] | no_license | /* Header Comment
* Name: Rui Yan
* Login: cs8bwaka
* Date: January 16, 2016
* File: WordCloud.java
* Sources of Help: None
*
* This class is used to draw a word cloud given an input of an arraylist of
* wordpairs.
*/
//importing classes
import java.awt.*;
import java.awt.event.*;
import jav... | true |
80426311b792bade4bf3a12ae6fb35674ebfed8e | Java | KILLERKILLAM/Android-UI-Interfaces | /app/src/main/java/com/example/usablitytest/ChatBot.java | UTF-8 | 3,980 | 2.21875 | 2 | [] | no_license | package com.example.usablitytest;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget... | true |
7551fd7e9e19af4f15fa0a6b1a2b0734f2205646 | Java | sunildussoye/hippodigitalbackend | /src/test/java/com/hippo/exercise/service/PostCodeServiceTest.java | UTF-8 | 1,323 | 2.390625 | 2 | [] | no_license | package com.hippo.exercise.service;
import com.hippo.exercise.exception.ResultException;
import com.hippo.exercise.model.PostCode;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import o... | true |
42abf6857f13b9ad2615740d7b36f516c529a5f3 | Java | onweer/JavaSE | /Doc文档生成/DocDemo.java | UTF-8 | 219 | 1.890625 | 2 | [] | no_license | public class DocDemo{
public static void main(String[] args){
/**
@author SpiColorPendra
@version 1.0v
*/
}
/**
@param String s
@return void
@exception Exception
@see ..
*/
void print(String s){
}
} | true |
4722a61e440c170183e528376d9a8fe557de11af | Java | GaoChongwen/Design_Pattern | /HappyFarm/src/building/shed/CanopyShedDecorator.java | UTF-8 | 780 | 3.40625 | 3 | [] | no_license | package building.shed;
/**
* @project: HappyFarm
* @description: 装饰器的实体类——雨棚装饰器
* @designPattern: Decorator
* @author: Chen Yulei
* @date: 2018-10-27
**/
public class CanopyShedDecorator extends ShedDecorator {
// 被装饰的Shed对象
private AnimalHouse shed;
public CanopyShedDecorator(AnimalHouse decoratedS... | true |
cf789d766b5758b33e2f38c621e22c6fc98c6b59 | Java | sajalhasan/LICT | /MatroShop/PranDistributor/src/niklaus/Classes/errorClass.java | UTF-8 | 376 | 1.726563 | 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 niklaus.Classes;
/**
*
* @author root
*/
public class errorClass {
public boolean datashow(String s){
if(s==nul... | true |
c15a1082f5218ac79d3a10c0acc2c667538641e9 | Java | HeadlessD/IM_AND | /qb_im/src/main/java/com/qbao/newim/model/IMUserInfo.java | UTF-8 | 8,930 | 1.851563 | 2 | [] | no_license | package com.qbao.newim.model;
import com.google.flatbuffers.FlatBufferBuilder;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import userpack.T_GET_ME_INFO_RS;
imp... | true |
6bfaba342d8dfd9601cd0bf103f6b53ccc4e5f93 | Java | brennogb/EleicoesWeb | /src/br/estacio/eleicoesweb/model/CadastroUsuario.java | UTF-8 | 1,566 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package br.estacio.eleicoesweb.model;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.estacio.eleicoeswe... | true |
b4038eb3952c12466ebcecffce79541f2cf4d0e3 | Java | Nokorot/NokoBox | /src/util/DefaultWindowsSetings.java | UTF-8 | 735 | 2.515625 | 3 | [] | no_license | package util;
import java.awt.Color;
import java.awt.Image;
import java.awt.LayoutManager;
import util.swing.gride.Insets;
public class DefaultWindowsSetings {
public static int defaultCloseOperation = 3;
public static Image icon;
public static Insets gridInset = new Insets(5, 5, 5, 5);
public ... | true |
1c20fbff93bd4ff0525f8c127ff80358ff1a1f9b | Java | conradocjo/EspiritualRandom | /app/src/main/java/com/espiritualrandom/persistencia/ConteudoService.java | UTF-8 | 408 | 2.09375 | 2 | [] | no_license | package com.espiritualrandom.persistencia;
import com.espiritualrandom.model.Conteudo;
import java.util.List;
public interface ConteudoService {
List<Conteudo> retornaListaConteudo();
Conteudo retornaConteudoAtual();
void salvaConteudoGeradoDoDiaCorrente(Conteudo conteudo);
List<Conteudo> retornaN... | true |
7b0f67658bc2ff149558b6949b34fb158530e04b | Java | JerryJin93/MathKit | /kit/src/main/java/com/jerryjin/kit/ICopy.java | UTF-8 | 221 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package com.jerryjin.kit;
/**
* Author: Jerry
* Generated at: 2019/3/16 11:53 AM
* GitHub: https://github.com/JerryJin93
* Blog:
* WeChat: enGrave93
* Description:
*/
public interface ICopy {
Object copy();
}
| true |
fe96384ace6dc36c87252bc007487d037312bc8d | Java | MelvinWang/NewShare | /NewShare/app/src/main/java/com/melvin/share/network/NetworkUtil.java | UTF-8 | 17,912 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package com.melvin.share.network;
import com.google.gson.JsonObject;
import com.melvin.share.model.CategoryBean;
import com.melvin.share.model.Evaluation;
import com.melvin.share.model.LogisticsModel;
import com.melvin.share.model.MessageInfo;
import com.melvin.share.model.PicturePath;
import com.melvin.share.model.P... | true |
46848419a71dfac6de00b013757d89a4b1019f7c | Java | ochen027/anti-fraud | /src/main/java/com/pwc/aml/menus/service/MenusService.java | UTF-8 | 1,761 | 2.34375 | 2 | [] | no_license | package com.pwc.aml.menus.service;
import java.util.List;
import com.pwc.aml.menus.dao.MenusDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pwc.aml.menus.dao.IMenusDAO;
import com.pwc.aml.menus.entity.Menus;
@Service
public class MenusSer... | true |
a388d27ee2db6683005d1d88a5ff98193580b2a5 | Java | Mehdi-Attarpour/Todo_List | /src/main/print/Print.java | UTF-8 | 2,145 | 3.734375 | 4 | [] | no_license | package main.print;
import main.data.Project;
import main.data.Task;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public final class Print {
private Print(){
}
public static void divider(){
System.out.println("---------------------------------------------------------... | true |
e74eb618e3f8ba1e253895b3777b2c268c932674 | Java | jbjb4467/springboot-study | /src/main/java/site/jbjb/webservice/springboot/web/PostsApiController.java | UTF-8 | 1,877 | 2.53125 | 3 | [] | no_license | package site.jbjb.webservice.springboot.web;
import com.google.gson.Gson;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import site.jbjb.webservice.springboot.service.posts.PostsService;
import site.jbjb.webservice.springboot.web.dto.PostsListResponseDto;
import site.jbjb.web... | true |
e345f21a35bd441652df344a35954ef9d74c84b3 | Java | mfures/UPJJ-homeworks | /hw/hw09-0036496186/src/main/java/hr/fer/zemris/math/Vector3.java | UTF-8 | 3,725 | 3.765625 | 4 | [] | no_license | package hr.fer.zemris.math;
import java.text.DecimalFormat;
import java.util.Objects;
/**
* Defines an unchangeable 3 dimensional vector
*
* @author matfures
*
*/
public class Vector3 {
/**
* Coordinates of vector
*/
private double x, y, z;
/**
* Constructor
*
* @param x coord... | true |
fce774ee3a9f0764b8a3b2def2911deccf069a8b | Java | ldsweely/JavaDev | /bigdata_learning/cloudDay05/src/cn/itcast_01_hadooprpc/server/SomeServiceImpl.java | UTF-8 | 330 | 2.328125 | 2 | [] | no_license | package cn.itcast_01_hadooprpc.server;
import cn.itcast_01_hadooprpc.protocol.SomeService;
public class SomeServiceImpl implements SomeService {
@Override
public String heartBeat(String name) {
System.out.println("接收到客户端" + name + "的心跳,正常连接………………");
return "心跳成功!";
}
}
| true |
c543cd8808dd101e9ce687c0afb308e7bb9d3e71 | Java | AugustanaCSC285Fall18/StupidTextGamesRepo | /StupidTextGames/src/LeftOrRightGame.java | UTF-8 | 791 | 3.921875 | 4 | [] | no_license | import java.util.Scanner;
import java.util.*;
/**
*
* @author April Tran
*
*This game makes player randomly choose between left or right.
*/
public class LeftOrRightGame implements StupidTextGame {
public String getName() {
return "Left or Right?";
}
public void play(Scanner console) {
System.out.pr... | true |
672c46eb14aba766254086f240d0c2f0bf2b3eb5 | Java | DASISH/qddt-service | /src/main/java/no/nsd/qddt/security/UserDetailsServiceImpl.java | UTF-8 | 1,329 | 2.234375 | 2 | [
"MIT"
] | permissive | package no.nsd.qddt.security;
import no.nsd.qddt.domain.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core... | true |
13da18a1353516ca132297324e3ce336dd67787a | Java | bstuAS31Kristina/androidApp | /Lab4_ssp_dka/src/com/example/lab4_ssp_dka/DBHelper.java | UTF-8 | 7,172 | 2.53125 | 3 | [] | no_license | package com.example.lab4_ssp_dka;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public cl... | true |
1e436b9c8af404753c48a48fb0e5c28a0a996471 | Java | ringolip/Learn-Java | /Day11/Hero.java | UTF-8 | 932 | 3.8125 | 4 | [] | no_license | package ringo.day11.demo06;
public class Hero {
// 成员变量
private String name;
private int age;
protected Weapon weapon;
// 构造方法
public Hero() {
}
public Hero(String name, int age, Weapon weapon) {
this.name = name;
this.age = age;
this.weapon = weapon;
}
... | true |
15ad30b21d972a63049e39d15e4135c701fcfaa6 | Java | cpwk/news-api | /src/main/java/com/maidao/edu/news/springbootdemo/common/context/Contexts.java | UTF-8 | 2,639 | 2.265625 | 2 | [] | no_license | package com.maidao.edu.news.springbootdemo.common.context;
import com.maidao.edu.news.springbootdemo.api.admin.model.AdminSessionWrap;
import com.maidao.edu.news.springbootdemo.api.trainer.authority.TrainerSessionWrap;
import com.maidao.edu.news.springbootdemo.api.user.model.UserSessionWrap;
import com.maidao.edu.news... | true |
d1f301dd0b58d680d4dd8dc419861a9bb4229c63 | Java | cga2351/code | /DecompiledViberSrc/app/src/main/java/com/viber/voip/messages/controller/publicaccount/BotReplyRequest.java | UTF-8 | 10,963 | 1.765625 | 2 | [] | no_license | package com.viber.voip.messages.controller.publicaccount;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.util.Pair;
import com.viber.voip.flatbuffers.model.msginfo.publicaccount.bot.BotReplyConfig;
import com.viber.voip.flatbuffers.model.msginfo.publ... | true |
9d791630c7eefeba44f707c42e4ea0d670ea45a0 | Java | yan129/tblog | /src/main/java/com/xiong/tblog/controller/BlogController.java | UTF-8 | 902 | 1.984375 | 2 | [] | no_license | package com.xiong.tblog.controller;
import com.xiong.tblog.entity.Blog;
import com.xiong.tblog.entity.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;
import javax.validation.... | true |
6fd59e1d0e953ff3bb142731b0737cb1d7c03e4e | Java | Matias-Sartori/AserraderoApp-1 | /src/aserradero/modelo/DAO/ClienteDAO.java | UTF-8 | 228 | 1.804688 | 2 | [] | no_license | package aserradero.modelo.DAO;
import aserradero.modelo.DTO.ClienteDTO;
import javafx.collections.ObservableList;
public interface ClienteDAO extends IDAO<ClienteDTO, Integer>
{
ObservableList<ClienteDTO> obtenerActivos();
}
| true |
41c86785447ed33378b376957444bc70960cb641 | Java | 941911337/fa-management | /log/src/main/java/cn/john/log/task/LogTask.java | UTF-8 | 934 | 1.851563 | 2 | [
"MIT"
] | permissive | package cn.john.log.task;
import cn.john.log.config.LogAop;
import cn.john.log.service.ITFaSysLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Conditional;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* des... | true |
572e263ce79b2d1a5eb1796fed1f352c93c5eb53 | Java | BlearStudio/powercraft-legacy | /powercraft_145/src/common/powercraft/logic/PClo_RepeaterType.java | UTF-8 | 2,024 | 2.5 | 2 | [] | no_license | package powercraft.logic;
public class PClo_RepeaterType
{
public static final int TOTAL_REPEATER_COUNT = 6;
@SuppressWarnings("javadoc")
public static final int CROSSING = 0, SPLITTER_I = 1, REPEATER_STRAIGHT = 2, REPEATER_CORNER = 3, REPEATER_STRAIGHT_I = 4, REPEATER_CORNER_I = 5;
public s... | true |
8c84d4d6ceb63ae686c1a0881e4c0b9ee3275232 | Java | Synesso/instinct | /core/src/spec/java/com/googlecode/instinct/internal/report/html/ASpecificationResultSummary.java | UTF-8 | 1,955 | 2.25 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"W3C",
"SAX-PD"
] | permissive | package com.googlecode.instinct.internal.report.html;
import static com.googlecode.instinct.expect.Expect.expect;
import com.googlecode.instinct.integrate.junit4.InstinctRunner;
import com.googlecode.instinct.marker.annotate.BeforeSpecification;
import com.googlecode.instinct.marker.annotate.Specification;
import com.... | true |
4bdee5850d0f1396fef930ffc20e63d539845320 | Java | hanmz/hanmz-first | /src/main/java/com/hanmz/bean/TestEntity.java | UTF-8 | 461 | 1.523438 | 2 | [] | no_license | package com.hanmz.bean;
import lombok.Data;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
/**
* 测试 mongo
* Created by hanmz on 2016/11/7.
*/
@Data
@Entity(value = "test_entity", noClassnameStored = true)
public class TestEntity {
@Id
... | true |
b2aea7da66a4e51b06407012692c91a5411e39fe | Java | FranciscoManuelRepetto/Concurrente | /Tp6/Punto5Semaforos/Puente.java | UTF-8 | 1,520 | 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 Tp6.Punto5ConSemaforos;
import java.util.concurrent.Semaphore;
/**
*
* @author repetto.francisco
*/
public class Puente {
... | true |
5b84b5a8cd6a4178945f7670d6c8d0b5a8d0b9b4 | Java | KevinWorkSpace/91-Algorithm2 | /src/Advanced/Trie/WordDictionary.java | UTF-8 | 2,286 | 3.609375 | 4 | [] | no_license | package Advanced.Trie;
import javafx.beans.value.WritableFloatValue;
public class WordDictionary {
TrieNode root = new TrieNode('/');
/** Initialize your data structure here. */
public WordDictionary() {
}
/** Adds a word into the data structure. */
public void addWord(String word) {
... | true |
472abfba1d33705aac5f9da0ab49c185176d89c3 | Java | rupali2122/Backend-EndTerm-Upgrad-Project | /src/main/java/com/ashish/TodoList/repository/UserRepository.java | UTF-8 | 371 | 2 | 2 | [
"MIT"
] | permissive | package com.ashish.TodoList.repository;
import com.ashish.TodoList.model.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface UserRepository extends JpaRepository<Users,Integer>
{
public List<User... | true |
a15830ebd846bf12909ca95ac1f133c20e5e5981 | Java | jodleif/Sjakk | /src/SjakkApp/HjelpeFunksjoner.java | UTF-8 | 965 | 3.09375 | 3 | [] | no_license | package SjakkApp;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
/**
* Created by Jo Øivind Gjernes on 20.10.2015.
* <p>
* Hjelpefunksjoner til SjakkApp.
*/
public class HjelpeFunksjoner
{
/**
* For å lage en imageview fra en bildefil på harddisken!
* @param filbane relativ bane til b... | true |
0626e514a60f3242f351b3a7188888f96957e744 | Java | lockss/lockss-daemon | /test/src/org/lockss/protocol/TestAuAgreements.java | UTF-8 | 22,832 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* $Id$
*/
/*
Copyright (c) 2013 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... | true |
8b94f3703df1bbd920a142c244bc6c5e0bf5de5d | Java | Sc0rpi0etu/Quantum | /Quantum/src/fr/sc0rpi0/quantum/run/UltiRun.java | UTF-8 | 2,599 | 2.484375 | 2 | [] | no_license | package fr.sc0rpi0.quantum.run;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.scheduler.BukkitRunnable;
import fr.sc0rpi0.quantum.CustomItems;
import fr.sc0rpi0.quantum.classes.PlayerRole;
import fr.sc0rpi0.quantum.listene... | true |
d7330bd5eee9c873d80f2a86d20de855cb2d5e62 | Java | minhthao/tinkle-android | /Tinkle/src/com/hitchlab/tinkle/supports/ImageLoading.java | UTF-8 | 1,700 | 2.203125 | 2 | [] | no_license | package com.hitchlab.tinkle.supports;
import android.content.Context;
import android.widget.ImageView;
import com.nostra13.universalimageloader.cache.memory.impl.WeakMemoryCache;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.no... | true |
eb7ae0b100ef31499373851e5968031183556ef8 | Java | jelem/capella | /task_18/sergey.bendas/src/main/java/com/hillel/Main.java | UTF-8 | 564 | 3.34375 | 3 | [] | no_license | package com.hillel;
import com.hillel.task2.CustomArrayList;
import com.hillel.task2.CustomList;
import java.util.Iterator;
public class Main {
public static void main(String[] args) {
CustomList animals = new CustomArrayList();
animals.add("Dog");
animals.add("Cat");
animals.add("Monkey");
... | true |
ea4de3f517b12bee6d7acf123c0fcbdeaab3816f | Java | thienthao/pbs | /webapi/src/main/java/fpt/university/pbswebapi/helper/map/MapResult.java | UTF-8 | 550 | 2.171875 | 2 | [] | no_license | package fpt.university.pbswebapi.helper.map;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class MapResult {
@JsonProperty("results")
private Object results;
public MapResult() {
... | true |
a7a70b3ae038794658a89a8c3fcb5111f630d038 | Java | alpearson/mct | /fastPlotViews/src/test/java/gov/nasa/arc/mct/fastplot/bridge/TestPlotMarkerIcon.java | UTF-8 | 5,979 | 2.265625 | 2 | [] | no_license | /*******************************************************************************
* Mission Control Technologies, Copyright (c) 2009-2012, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* The MCT platform is licensed und... | true |
a3029713353b52fcdbe60deecc0f769b4c05ed83 | Java | ChrisCeferino/BibliotecaInterfazJava | /ProyectoBibliotecaModel/src/cl/inacap/ProyectoBibliotecaModel/DTO/Libro/IdiomaLibro.java | UTF-8 | 753 | 2.296875 | 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 cl.inacap.ProyectoBibliotecaModel.DTO.Libro;
/**
*
* @author Garnios
*/
public class IdiomaLibro {
int idIdioma, idLib... | true |