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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6f8c2d8b0b552c681aaceb29b64282f0739f92a4 | Java | crnk-project/crnk-framework | /crnk-data/crnk-data-jpa/src/main/java/io/crnk/data/jpa/internal/query/backend/querydsl/QuerydslObjectArrayTupleImpl.java | UTF-8 | 514 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package io.crnk.data.jpa.internal.query.backend.querydsl;
import com.querydsl.core.types.Expression;
import io.crnk.data.jpa.query.querydsl.QuerydslTuple;
import java.util.Map;
public class QuerydslObjectArrayTupleImpl extends ObjectArrayTupleImpl implements QuerydslTuple {
public QuerydslObjectArrayTupleImpl(Obje... | true |
6c73fd80e8c3d903f7378fec95c01117ca05c49a | Java | denysLystopadskyy/SpringMVCTrainnig | /src/com/luv2code/springdemo/mvc/Student.java | UTF-8 | 2,472 | 2.703125 | 3 | [] | no_license | package com.luv2code.springdemo.mvc;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by denys.lystopadskyy on 8/3/2017.
*/
public class Student {
private String firstName;
private String lastName;
private String country;
private Stri... | true |
6667cb5af4a11f290953d1104a4049bc407e9940 | Java | marcolopes/dma | /org.dma.xml/src/x0201/oecdStandardAuditFileTaxPT1/impl/NumberOfMovementLinesDocumentImpl.java | UTF-8 | 3,362 | 1.851563 | 2 | [] | no_license | /*
* An XML document type.
* Localname: NumberOfMovementLines
* Namespace: urn:OECD:StandardAuditFile-Tax:PT_1.02_01
* Java type: x0201.oecdStandardAuditFileTaxPT1.NumberOfMovementLinesDocument
*
* Automatically generated - do not modify.
*/
package x0201.oecdStandardAuditFileTaxPT1.impl;
/**
* A document conta... | true |
93871e09dce0da57db47f8bbf7e4b25de2141242 | Java | AIDOCGroup/Server | /aidoc-common/src/main/java/com/tianyi/vo/AidocMarketQuotationVo.java | UTF-8 | 1,610 | 1.898438 | 2 | [] | no_license | package com.tianyi.vo;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* server
*
* @author GaoZhilai
* @date 2018/4/23.
*/
public class AidocMarketQuotationVo {
private Long id;
private Integer page;
private Integer size;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:... | true |
290633799d74a9f8b37f083d6b004af20105b4eb | Java | flyeagle0032/dangchat-server-ext | /logic/code/dsrc/Search.java | UTF-8 | 7,312 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
/**
* 搜索Action
* @author Lining
* @date 2016-5-19
*/
publi... | true |
70ea1bcea11ef42ef2ab3139c7a4695fb3ab83f9 | Java | Dxh7788/DWeixin | /src/main/java/com/link/data/form/base/response/MusicResponseMessage.java | UTF-8 | 526 | 1.851563 | 2 | [] | no_license | package com.link.data.form.base.response;
import com.link.data.form.base.response.meta.Music;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* Copyright (C) 2017-2018 https://www.htouhui.com - A project by DWeixin
*
* @author xh.d
* @since 2018/3/6 13:12
*/
@XStreamAlias("xml")
public class MusicR... | true |
b60dbcfaf8320540bb79b960881fa69ac2773f70 | Java | KonradSGdynia/java-zaawansowaneg | /src/main/java/electronics/Phone.java | UTF-8 | 690 | 3.140625 | 3 | [] | no_license | package electronics;
public class Phone extends Device implements EmailSender{
private String number;
public Phone(String model) {
super(model);
}
public Phone(String model, String number) {
super(model);
this.number = number;
}
@Override
public void turnOn() {
... | true |
31684c6e1c142b9ec4503501e96ed24aaf0759e5 | Java | guidoperre/tp_ioo_grupo_6 | /src/ui/pacientes/AgregarPaciente.java | UTF-8 | 4,641 | 2.65625 | 3 | [] | no_license | package ui.pacientes;
import app.Application;
import models.Sexo;
import navigation.Screen;
import ui.pacientes.models.Paciente;
import ui.pacientes.models.PacientesTable;
import javax.swing.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.List;
public class AgregarPaciente i... | true |
5b9c49e25906fa59f1b95d307a37de9a4f6ad752 | Java | pcostesi/paw-2016a-2 | /paw/models/src/main/java/ar/edu/itba/models/User.java | UTF-8 | 4,670 | 2.484375 | 2 | [] | no_license | package ar.edu.itba.models;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Set;
@XmlRootElement
@Entity
@Table(name = "a... | true |
0019e557462d17c7df611a9997cc2123a7bd40db | Java | liyue2008/joyqueue | /joyqueue-server/joyqueue-broker-kafka/src/main/java/org/joyqueue/broker/kafka/coordinator/transaction/completion/TransactionCompletionScheduler.java | UTF-8 | 2,267 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 The JoyQueue Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | true |
96ccdf9ce06f5b05d2b83c9556862b8ae8902bcc | Java | honeyflyfish/com.tencent.mm | /src/com/tencent/mm/ui/chatting/ChattingSendDataToDeviceUI$c.java | UTF-8 | 473 | 1.5 | 2 | [] | no_license | package com.tencent.mm.ui.chatting;
public final class ChattingSendDataToDeviceUI$c
{
String agw;
String ahU;
String ahZ;
String bdd;
String deviceID;
String iconUrl;
String lxV;
int progress;
public ChattingSendDataToDeviceUI$c(ChattingSendDataToDeviceUI paramChattingSendDataToDeviceUI) {}
}
/* ... | true |
f7ad5909feb97e6af0e08ac83ae3cef9e8d4d4dd | Java | caiwjhi/Software-project_XT | /XiaoTianWeather/src/com/example/xiaotianweather/LifeIndexActivity.java | UTF-8 | 7,726 | 2.21875 | 2 | [] | no_license | package com.example.xiaotianweather;
import java.util.Calendar;
import java.util.List;
import com.example.xiaotianweather.bean.SportIndexBean;
import com.example.xiaotianweather.bean.port;
import com.example.xiaotianweather.FragmentHomeContent;
import com.example.xiaotianweather.HomePagerActivity;
import com.example.... | true |
7472521b8d715b1a007343acec8f6b42f087a406 | Java | lmjim/year2 | /cs313/lab2/TreeCompare.java | UTF-8 | 1,892 | 3.859375 | 4 | [] | no_license | //Author: Lily Jim
//Credits: Based off of my lab2.java file which Hu provided starter code for
//UO CIS 313 Fall 2018
import java.util.Scanner;
public class TreeCompare {
public static void main(String[] args) {
Scanner input = new Scanner(System.in); // Start scanner
int numLines = input.nextInt... | true |
a00a1f575f3d4a8773c18de9d3c71a857c25ebe0 | Java | mlouis5/Thermostat | /src/main/java/com/mac/thermostat/resources/impl/subresource/thermostat/PriceMessageArea.java | UTF-8 | 2,681 | 2.015625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mac.thermostat.resources.impl.subresource.thermostat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import c... | true |
a7fd84996ef41271ff79ae91b99ccddddc91f1b6 | Java | grvchik/JavaProjects | /src/main/java/April2020/BestMassageAppointment.java | UTF-8 | 1,468 | 3.109375 | 3 | [] | no_license | package April2020;
import java.util.HashSet;
import java.util.Set;
public class BestMassageAppointment {
public static int getBestMassageAppointments(int[]appointmentList) {
int[] memo = new int[appointmentList.length+2];
return getAppointments(appointmentList,0,memo);
}
public static int... | true |
8eb0f226064140f5a9404154e3fbf89d50adc4a4 | Java | moymac/itMer2 | /app/src/main/java/com/moymac/meritapp/Models/Categories.java | UTF-8 | 1,026 | 2.34375 | 2 | [] | no_license | package com.moymac.meritapp.Models;
/**
* Created by moymac on 11/13/17.
*/
public class Categories {
public int id;
public int ordinal;
public String name;
public String desc;
public String owner;
public int views;
public int getId() {
return id;
}
public void setId(in... | true |
1746d71350858561fbe5094704011524914499fe | Java | qiyuanzhao/la-conllector | /src/main/java/com/lavector/collector/crawler/nonce/douban/DouBanCrawler.java | UTF-8 | 2,563 | 2.25 | 2 | [] | no_license | package com.lavector.collector.crawler.nonce.douban;
import com.lavector.collector.crawler.base.BaseCrawler;
import com.lavector.collector.crawler.base.CrawlerInfo;
import com.lavector.collector.crawler.base.MySpider;
import us.codecraft.webmagic.Request;
import us.codecraft.webmagic.downloader.HttpClientDownloader;
i... | true |
efa96f78104bdeb61d582403dff552f0aca6af83 | Java | lianmengliang/practiceTest | /demo-basics-api/src/main/java/com/example/test/designpatterns/command/TVReceiver.java | UTF-8 | 300 | 2.5625 | 3 | [] | no_license | package com.example.test.designpatterns.command;
/**
* @Author : Leo
* @Date : 2021/4/6 18:39
* @Desc:
*/
public class TVReceiver {
public void on(){
System.out.println("电视打开了...");
}
public void off(){
System.out.println("电视关闭了...");
}
}
| true |
4dc9ed47c9363fda14f0099155854bf004fa7b36 | Java | Mathimahesh/guvi-players | /Evenfactor.java | UTF-8 | 329 | 3.109375 | 3 | [] | no_license | import java.util.*;
public class MyClass {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
for(int i=2;i<=x;i++){
if(i%2==0){
if(x%i==0){
System.out.print(i+" ");
}
}
}... | true |
f0f760231ca51ed2f9f78db5968d82d2ae1af2a4 | Java | qa/system-int | /02BPEL/RiftSawLab/src/org/jboss/vut/ws/echo/EchoWS.java | UTF-8 | 674 | 2.453125 | 2 | [] | no_license | package org.jboss.vut.ws.echo;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
/**
*
* @author mbaluch
*/
@WebService(name = "EchoService", targetNamespace = "http://www.jboss.org/vut/ws/echo")
public class EchoWS {
@WebMethod(operationName = "echo... | true |
452d9636de68ab5a2a0fb0aa1484656a2b21f51f | Java | aleks-rodriguez/GamUS-Four | /src/main/java/aiss/controller/MainServlet.java | UTF-8 | 3,887 | 2.421875 | 2 | [
"MIT"
] | permissive | package aiss.controller;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.... | true |
412d8682192adae7a57f0a0d6c18035d3e20a69f | Java | codechangesworld/java-multi-thread-programming | /singleton-patten/src/name/zuoguoqing/singleton/StaticInnerClass.java | UTF-8 | 434 | 2.328125 | 2 | [] | no_license | /**
* @description
*
* @author zuoguoqing
* @date 2019年4月19日
*/
package name.zuoguoqing.singleton;
/**
* @author zuoguoqing
*
*/
public class StaticInnerClass {
private StaticInnerClass() {
}
private static class InnerClass {
private static StaticInnerClass instance = new StaticInnerCla... | true |
3a00f9fac8d9229cdf530faa27418c4b99f62696 | Java | mchapagai/popular-movies | /App/src/main/java/com/mchapagai/movies/model/binding/CreditResponse.java | UTF-8 | 1,552 | 2.375 | 2 | [
"MIT",
"CC-BY-3.0"
] | permissive | package com.mchapagai.movies.model.binding;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
import com.mchapagai.movies.model.CastCredit;
import com.mchapagai.movies.model.CrewCredits;
import java.util.List;
public class CreditResponse implements Parcelable... | true |
c54dc899ac386d3630b16244c843c86f6edd7a01 | Java | sheercat/valcana | /src/main/java/net/vg4/valcana/api/LineBotController.java | UTF-8 | 839 | 2.03125 | 2 | [] | no_license | package net.vg4.valcana.api;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMappin... | true |
37be5034d899f1ec4969a642ae232bdacae1b803 | Java | kmkar31/Algorithms | /Collinear_Points/FastCollinearPoints.java | UTF-8 | 3,850 | 3.28125 | 3 | [] | no_license | /* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.MergeX;
import edu.princeton.cs.algs4.StdDraw;
import ed... | true |
b6df0cf6fd2a2ee9b38f39bab24293f34bdf0247 | Java | sreyach/hibernate | /src/main/java/com/hibernate/ManyToMany/Vendor.java | UTF-8 | 2,420 | 2.203125 | 2 | [] | no_license | package com.hibernate.ManyToMany;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
im... | true |
25701875f1a8e5d37865197ac089d7b0bf813e09 | Java | AValeriaCM/MapeoUnoAMuchos | /MappingOneToMany-ejb/src/main/java/com/mycompany/entity/Diplomado.java | UTF-8 | 3,547 | 2.15625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persis... | true |
25fd6649ae87ec629475f4a221b487e038448b86 | Java | Rflpz/SCAFE | /SCA/src/controller/UsuariosController.java | UTF-8 | 3,996 | 2.578125 | 3 | [
"MIT"
] | permissive | /*
* 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 model.*;
import java.sql.*;
/**
*
* @author Rflpz
*/
public class UsuariosController {
private String... | true |
222a4adff8ee75a0addb1b70496e9c4802e85e34 | Java | kenvalladares/Proyecto3 | /src/main/java/gui/MenuLogin/MenuPrincipal/MenuRestaurante/MenuPostres/frmPostres.java | UTF-8 | 3,283 | 2.3125 | 2 | [] | no_license | package gui.MenuLogin.MenuPrincipal.MenuRestaurante.MenuPostres;
import gui.MenuLogin.MenuPrincipal.MenuRestaurante.MenuComidas.Submenu.frmMenuComidas;
import gui.MenuLogin.MenuPrincipal.MenuRestaurante.MenuPostres.MenuHelados.frmMenuHelados;
import gui.MenuLogin.MenuPrincipal.MenuRestaurante.MenuPostres.MenuPastel.fr... | true |
eeacf813b822042831358ac09fe4048122a14091 | Java | AhmedEsam3AB/Notey | /Notey/app/src/main/java/com/a3abcarinho/ahmed/notey/NoteModel.java | UTF-8 | 569 | 2.71875 | 3 | [] | no_license | package com.a3abcarinho.ahmed.notey;
public class NoteModel {
public String title;
public String time;
public NoteModel() {
}
public NoteModel(String title, String time) {
this.title = title;
this.time = time;
}
// Title and Time Getting and setting Methods
public String... | true |
c6dd1593fb39075c2c253f745b76ea1460ba86de | Java | hkobr/CPS-WARCRAFT | /src/decorators/MoteurJeuDecorator.java | UTF-8 | 3,723 | 2.40625 | 2 | [] | no_license | package decorators;
import java.util.Set;
import enums.EnumCommande;
import enums.EnumResultat;
import services.IHotelVilleService;
import services.IMineService;
import services.IMoteurJeuService;
import services.IMurailleService;
import services.IRouteService;
import services.IVillageoisService;
public abstract cla... | true |
9add099ac49bf50883545f43487292ebf8473510 | Java | obiba/magma-public-datasources | /magma-datasource-health-canada/src/main/java/org/obiba/magma/datasource/healthcanada/HCDrugsVariableEntityProvider.java | UTF-8 | 1,770 | 2.3125 | 2 | [] | no_license | package org.obiba.magma.datasource.healthcanada;
import java.io.IOException;
import java.util.Set;
import org.obiba.magma.MagmaRuntimeException;
import org.obiba.magma.VariableEntity;
import org.obiba.magma.support.VariableEntityBean;
import org.obiba.magma.support.VariableEntityProvider;
import com.google.common.co... | true |
750af385d881b00c039e6e23d101772b54f3ef0c | Java | feel261287/BIT100 | /app/src/main/java/com/zhongzilu/bit100/view/adapter/MainRecyclerViewAdapter.java | UTF-8 | 5,534 | 2.09375 | 2 | [] | no_license | package com.zhongzilu.bit100.view.adapter;
import android.content.Context;
import android.graphics.Typeface;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
impor... | true |
ef38de687e6b764a50263ada7d23991b27dd5bc0 | Java | GitHubzzZcy/AJ_Project | /deletenum/src/com/henghao/service/ImportantMatterService.java | UTF-8 | 400 | 1.96875 | 2 | [] | no_license | package com.henghao.service;
import com.henghao.entity.Result;
public interface ImportantMatterService {
/**
* 重大项目月安排
* @return
*/
public Result importantMatterMonth();
/**
* 重大事项年安排
* @return
*/
public Result importantMatterYear();
/**
* 重大事项分布情况
* @return
*/
public Result... | true |
611cdc52b8fc0bfe63e81b747dcf6c52d46c5c23 | Java | jpantiuchina/gerrit-dataset-miner | /gerrit-dataset-miner/src/main/java/konopka/util/Logging.java | UTF-8 | 1,685 | 2.4375 | 2 | [] | no_license | package konopka.util;
import org.apache.log4j.PropertyConfigurator;
import java.util.List;
import static konopka.gerrit.Main.ARG_LOG4J;
public class Logging
{
public static void initLogging(List<String> arguments)
{
try
{
String log4j_file = ArgsHelper.getArgument(arguments, AR... | true |
8e21283607e1efdaeacaba70577c60b74f663226 | Java | pasqualesalza/apization | /data/search/APIzator11882964.java | UTF-8 | 692 | 2.71875 | 3 | [
"CC-BY-4.0"
] | permissive | package com.stackoverflow.api;
import com.google.appengine.repackaged.org.joda.time.LocalDate;
import java.util.Calendar;
import java.util.Date;
import java.util.Date;
/**
* How to subtract X day from a Date object in Java?
*
* classpath: appengine-api-1.0-sdk-1.9.67
*
* @author APIzator
* @see <a href="https:/... | true |
b241427a71760dadb009927062579e659c56952a | Java | mangelino997/backendPacientesCovid19 | /src/main/java/com/pacientesCovid19/restful/controller/PacienteController.java | UTF-8 | 2,301 | 2.21875 | 2 | [] | no_license | package com.pacientesCovid19.restful.controller;
import com.pacientesCovid19.restful.dto.FilasPacientesDTO;
import com.pacientesCovid19.restful.dto.FiltroDTO;
import com.pacientesCovid19.restful.dto.PacienteDTO;
import com.pacientesCovid19.restful.model.Paciente;
import com.pacientesCovid19.restful.service.PacienteSer... | true |
a32739555f2024202ddf538692e0e47ddeecb46e | Java | nbnnaji/ForeverFitness | /app/src/main/java/com/nkechinnaji/foreverfitness/segments/model/ProfileModel.java | UTF-8 | 2,122 | 2.3125 | 2 | [] | no_license | package com.nkechinnaji.foreverfitness.segments.model;
/**
* Created by Nkechi Nnaji on 4/19/20.
* Description:
*/
public class ProfileModel {
String username;
String dateOfBirth;
String gender;
String currentWeight;
String targetGoalWeight;
String height;
String email;
String ent... | true |
834398c2172290eeb8af62bb6589418f4ef56815 | Java | sagarpa2014/SIPC | /src/mx/gob/comer/sipc/domain/transaccionales/CamposRelacionTerrestre.java | UTF-8 | 3,291 | 1.898438 | 2 | [] | no_license | package mx.gob.comer.sipc.domain.transaccionales;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name = "campos_relacion_terrestre")
publ... | true |
ede84ad695455bac68b0606ddbe657f50a38fa33 | Java | Kalinga/emfLearnings | /org.eclipse.example.bowlingmodel.tests/src/bowling/tests/MatchupTest.java | UTF-8 | 3,540 | 1.984375 | 2 | [] | no_license | /**
*/
package bowling.tests;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.Diagnostician;
import org.eclipse.emf.ecore.util.EcoreUtil;
import bowling.BowlingFactory;
import bowling.BowlingPackage;
import bowling.Game;
import bowling.League;
im... | true |
6fc41bec17d8c3b1cdc264a8f6911cb65858c13c | Java | varozh/Study | /src/other/tasks/TestReadFile.java | UTF-8 | 2,450 | 2.859375 | 3 | [] | no_license | package other.tasks;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class TestReadFile {
private String pathInWork = "C:\\Users\\buhdek... | true |
15dc530a9757538ddac1719eed03b8ca8de882a0 | Java | qingfengxuxu/mobileorder | /src/main/java/com/boocu/kingdee/eas/mobileorder/vo/JsonListResult.java | UTF-8 | 744 | 2.125 | 2 | [] | no_license | package com.boocu.kingdee.eas.mobileorder.vo;
import java.util.List;
/**
* Created by jordan on 2015/12/2.
*/
public class JsonListResult<T> extends JsonResult {
private int size;
private List<T> data;
public JsonListResult() {
setSuccess(true);
}
public JsonListResu... | true |
87e5a8314e8a0f29154ad0a9da3debde36d09d5c | Java | kafeishaonian/PopupWindow | /app/src/main/java/com/popup/client/ui/PopupHorizontalView.java | UTF-8 | 1,433 | 2.125 | 2 | [] | no_license | package com.popup.client.ui;
import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;
import android.util.Log;
import com.popup.client.R;
import com.popup.client.adapter.AbsPopupRecyclerAdapter;
import com.popup.client.adapter.PopupHorizontalAdapter;
/**
* Created by 64860 on 2017/9/18.... | true |
bd3a5050930c53c9079b135fb406ebc97670173f | Java | jayatigupta/SpringJpaHibernate-DAOs | /hibernate-test/src/main/java/net/example/reporting/dao/entity/Segment.java | UTF-8 | 778 | 2.3125 | 2 | [] | no_license | package net.example.reporting.dao.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import net.example.reporting.dao.interfaces.BaseEntity;
/**
*
* @author puneet
*
*/
@Entity
@Table(name = "segment")
public class Segment imple... | true |
325a1e0acdf177052fba0378acdd9c7ec5972305 | Java | farhanfarasdak/XTSAES-CIS | /src/MainFrame.java | UTF-8 | 645 | 2.75 | 3 | [] | no_license | import java.awt.Color;
import javax.swing.JFrame;
public class MainFrame extends JFrame{
private HeaderPanel header = new HeaderPanel();
private BodyPanel body = new BodyPanel();
public MainFrame() {
super( "Kriptografi dan Keamanan Jaringan - XTS AES" );
setDefaultCloseOperation( EXIT_ON_CLOSE );... | true |
de03fb0dae349280063607b5a982e19687df6425 | Java | mohamedriadhzrig/Doceo_spring | /src/main/java/com/sopra/services/ArticleService.java | UTF-8 | 1,081 | 1.890625 | 2 | [] | no_license | package com.sopra.services;
import com.sopra.data.AdminArticleDataList;
import com.sopra.data.ArticleDataList;
import com.sopra.entities.Article;
import com.sopra.entities.Project;
import com.sopra.entities.Tag;
import com.sopra.entities.Team;
import com.sopra.entities.Theme;
import com.sopra.entities.User;
public in... | true |
4d299f53880e2f3bc491f55d1aeb17ff1f171284 | Java | nitin252000/arraydeletion | /arraydeletion.java | UTF-8 | 542 | 3.046875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.Scanner;
public class arraydeletion {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int m=sc.nextInt();
int[]ar=new int[m];
for(int i=0;i<ar.length;i++ )
{
ar[i]=sc.nextInt();
... | true |
234e0b92c980101be530bd1bbc8577689df60d32 | Java | VanHelxing/myMemcache | /myMemcache/src/main/java/com/van/listener/AppListener.java | UTF-8 | 1,075 | 2.4375 | 2 | [] | no_license | package com.van.listener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class AppListener implements HttpSessionAttributeListener, HttpSessionListener {... | true |
14a8592ae9916099cbff4bbafb2bdc0b71d5de3d | Java | alejandrocalderonhernandez/restfull-jpa-springboot | /src/main/java/com/eagle/relationaldbaccessapi/util/components/ResponseMessages.java | UTF-8 | 1,954 | 2.484375 | 2 | [] | no_license | package com.eagle.relationaldbaccessapi.util.components;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Component;
@Component
public class ResponseMessages {
private static final String MESSAGE = "message: ";
private static final String ERROR = "error: ";
private static fi... | true |
7bc5b85a4743ae6073ee50314cfb81a111eeabc3 | Java | cckmit/parent-new | /parent/core/src/main/java/com/weds/core/db/MultiPage.java | UTF-8 | 2,830 | 2.765625 | 3 | [] | no_license | package com.weds.core.db;
import java.util.HashMap;
import java.util.Map;
/**
* <pre>
* <dt><b>类名:</b></dt>
* <dd>MultiPage</dd>
* <dt><b>描述:</b></dt>
* <dd>分页操作</dd>
* <dt><b>日期:</b></dt>
* <dd>2016-5-23 下午3:16:15</dd>
* </pre>
*
* @author SXM
* @version 0.1
*/
public class MultiPage {
// 有页面传入
... | true |
aa1121282a1c1769afd2bfc54bd6c6e8d057c6f8 | Java | nannandenden/interview-prep | /other/hotel.java | UTF-8 | 1,262 | 3.40625 | 3 | [] | no_license | public class Solution {
class Node {
boolean flag;
int date;
public Node(int date, boolean flag) {
this.date = date;
this.flag = flag;
}
}
public boolean hotel(ArrayList<Integer> arrive, ArrayList<Integer> depart, int K) {
ArrayL... | true |
227643b1ebd6a56731ab34643f5d44f1239050c6 | Java | besok/msa-nd-box | /discovery/src/main/java/ie/home/msa/sandbox/discovery/server/DiscoveryServerConfiguration.java | UTF-8 | 301 | 1.578125 | 2 | [] | no_license | package ie.home.msa.sandbox.discovery.server;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = "ie.home.msa.sandbox.discovery.server")
public class DiscoveryServerConfiguration {
}
| true |
4b60b1422efb600e963d795ca51938bee36c52ca | Java | ducnguyen46/spring_coffeeshop | /src/main/java/com/coffee/model/UserModel.java | UTF-8 | 2,776 | 2.46875 | 2 | [] | no_license | package com.coffee.model;
import java.util.ArrayList;
import java.util.List;
import com.coffee.entity.DeliveryInfo;
import com.coffee.entity.Role;
import com.coffee.entity.User;
public class UserModel {
public UserModel(User user) {
this.id = user.getId();
this.fullName = user.getFullName();
this.dateOfBir... | true |
4ddd9d73e6e34652ebb636b7d771bd585e295fff | Java | ivan2yk/FETest | /oca/src/main/java/com/leiva/oca/ch6/Tire.java | UTF-8 | 230 | 2.296875 | 2 | [] | no_license | package com.leiva.oca.ch6;
public class Tire {
void doStuff() {
}
public static void main(String[] args) {
try {
int x = 1;
} catch (Exception e) {
} finally {
}
}
}
| true |
29f07ebc34f7bd331b18d607df81f47039838b41 | Java | softwrengr/Kolocco | /app/src/main/java/com/kooloco/ui/visitor/dashboard/presenter/PaymentPresenter.java | UTF-8 | 4,952 | 1.828125 | 2 | [] | no_license | package com.kooloco.ui.visitor.dashboard.presenter;/**
* Created by hlink44 on 22/9/17.
*/
import com.kooloco.core.Session;
import com.kooloco.data.repository.KoolocoRepository;
import com.kooloco.di.PerActivity;
import com.kooloco.exception.ServerException;
import com.kooloco.model.BookingData;
import com.kooloco.m... | true |
80a536b9eb5b0874f9ae02dc9dc51c8d18158057 | Java | anandummethala/Practice | /src/practiceall/ReverseInteger.java | UTF-8 | 459 | 3.484375 | 3 | [] | no_license | package practiceall;
public class ReverseInteger {
public static void main(String[] args) {
// 1. using string
int num = 12345;
int rev = 0;
while(num !=0) {
rev = rev*10 + num%10;
num = num/10;
}
System.out.println(rev);
// 2. using string buffer method:
int num1 = ... | true |
619b5a5545f0901a4f0386c501563d5b05a36711 | Java | VitaliyOliynyk/easy-remote-spring-test | /src/test/java/eu/vitaliy/easyremote/dto/result/ResultNested.java | UTF-8 | 347 | 1.820313 | 2 | [] | no_license | package eu.vitaliy.easyremote.dto.result;
public class ResultNested {
private ResultNestedNested resultNestedNested;
public ResultNested(ResultNestedNested resultNestedNested) {
this.resultNestedNested = resultNestedNested;
}
public ResultNestedNested getParamNestedNested() {
return r... | true |
469c90f3b9314adb1ca8ba889c65dd52308b26f7 | Java | Nikitos-SOS/market24-backend | /src/main/java/com/market/marketplace/models/Seller.java | UTF-8 | 1,495 | 2.203125 | 2 | [] | no_license | package com.market.marketplace.models;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
@Entity
@Table(name = "Seller")
public class Seller implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private ... | true |
4f69b792a730c689c25ad2be02f280508fc8237e | Java | shahramk/newrelic_commonlog_extension | /src/com/newrelic/plugins/logfilereader/LogFileTailer.java | UTF-8 | 2,319 | 2.84375 | 3 | [
"MIT"
] | permissive | package com.newrelic.plugins.logfilereader;
import java.io.*;
import java.util.*;
import java.util.logging.Logger;
public class LogFileTailer extends Thread {
private long sampleInterval = 5000;
private File logfile;
private boolean startAtBeginning = false;
private boolean tailing = false;
private Set<LogFileT... | true |
6055607c817624642b8389cacf9809e665031bbe | Java | boldt/fabric | /wsdl-schema-parser/src/main/java/fabric/wsdlschemaparser/schema/FMonth.java | UTF-8 | 223 | 2.046875 | 2 | [
"BSD-3-Clause"
] | permissive | package fabric.wsdlschemaparser.schema;
public class FMonth extends FAbstractDateType {
public FMonth() {
this(null);
}
public FMonth(String typeName) {
super(typeName);
}
}
| true |
cf48b0151701a9dd09ee3c117d7a9fc5b5935528 | Java | bathuan1309/TestNIW | /app/src/main/java/com/thuan/testniw/adapter/ExampleAdapter.java | UTF-8 | 3,347 | 2.515625 | 3 | [] | no_license | package com.thuan.testniw.adapter;
import android.os.Handler;
import android.os.Looper;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.RecyclerView;
import com.thuan.testniw.R;
im... | true |
07762d374f540e8666e7c7a3fd5bdc352634af90 | Java | duviteck/contests | /src/leetcode/medium/BinarySearchTreeIterator.java | UTF-8 | 1,850 | 3.609375 | 4 | [] | no_license | package leetcode.medium;
import java.util.Deque;
import java.util.LinkedList;
/**
* Created by duviteck. 07 Feb 2015.
*/
public class BinarySearchTreeIterator {
private Deque<Pair> stack;
public BinarySearchTreeIterator(TreeNode root) {
stack = new LinkedList<>();
stack.push(new Pair(root)... | true |
9a6bb896b67b85c2d286ac9352afcf0351157710 | Java | kuonanhong/codility-1 | /src/main/java/caterpillarMethod/CountDistinctSlices.java | UTF-8 | 2,518 | 3.21875 | 3 | [] | no_license | package caterpillarMethod;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class CountDistinctSlices {
// Time O(N) Space O(M)
public int solution(int M, int[] A) {
final int N = A.length;
... | true |
85a5580c0dd6e27073c5999e2ad1f85bdfdd806f | Java | drawrs/data-siswa-android-project | /app/src/main/java/com/khilman/www/aplikasidatasiswa/adapter/AdapterMain.java | UTF-8 | 2,763 | 2.25 | 2 | [] | no_license | package com.khilman.www.aplikasidatasiswa.adapter;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import ... | true |
7f477c1e4400fd81bdf489a872fe22e66065717e | Java | germanfica/java-algorithm-development | /src/xyz/germanfica/_2018/_1st/practica/Ej1.java | UTF-8 | 2,403 | 3.8125 | 4 | [
"MIT"
] | permissive | package xyz.germanfica._2018._1st.practica;
public class Ej1 {
/*
* // La recurson podria recotarse cuando n/10=0 o n=0
MÓDULO mostrarNumeroTexto(Entero n)
SI (n>0)
t1<- pasarATexto(n mod 10)
ESCRIBIR(t1)
mostrarNumeroTexto(n/10)
FIN SI
FIN MÓDULO mostrarNumeroTexto
*/
/**
* Deberia retornar esto una... | true |
8139e2d610defd212ab70d713ce2af4ee60eab02 | Java | Mirzoeva/1.2-2018- | /Gauss.java | UTF-8 | 5,064 | 3.046875 | 3 | [] | no_license | import java.util.*;
public class Gauss {
static int od(int x, int y) {
return y == 0 ? Math.abs(x) : od(y, x % y);
}
public static void umn(int[][] array, int h, int i){
int n = array.length + 1;
for (int j = 0; j < n; j++)
array[i + 1][j] *= h;
}
public static v... | true |
e591b805285cb5d567443d194690dec6595ec694 | Java | guliashvili/gamoige | /app/src/main/java/com/gamoige/a/gamoige/packages/MasterDraw.java | UTF-8 | 1,021 | 2.28125 | 2 | [] | no_license | package com.gamoige.a.gamoige.packages;
import com.gamoige.a.gamoige.DrawableCanvas.CanvasListener;
import com.gamoige.a.gamoige.Fragments.ConnectionFragment;
import com.gamoige.a.gamoige.MainActivity;
/**
* Created by a on 7/16/17.
*/
public class MasterDraw implements Package{
private CanvasListener.Action a... | true |
57a88a67c321a8292b1a360ebbb2dca4be7889f5 | Java | bellqiu/ShopHS | /ShopHS/src/com/spshop/dao/impl/OrderDAOImpl.java | UTF-8 | 355 | 1.976563 | 2 | [] | no_license | package com.spshop.dao.impl;
import com.spshop.dao.AbstractBaseDAO;
import com.spshop.dao.intf.OrderDAO;
import com.spshop.model.Order;
import com.spshop.model.User;
public class OrderDAOImpl extends AbstractBaseDAO<Order, Long> implements OrderDAO{
public User getUserById(long id){
return (User) getSess... | true |
15b515393c2ecde6209c65ca05885da3b72440c8 | Java | garbouz-victor/ALGTH | /src/com/shad/algorithms/exam/F.java | UTF-8 | 5,755 | 3.03125 | 3 | [] | no_license | package com.shad.algorithms.exam;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.StringTokenizer;
public class F {
static class FastScanner
{
BufferedReader br;... | true |
1597b346081550eb0e12074f42dbdbcc65892a97 | Java | linfuhaiye/CSEI | /MobileInspectionApp/sources/app/MobileInspectionApp/android/app/src/main/java/com/ghi/modules/pdfviewer/data/processors/TestLogConfigurationProcessor.java | UTF-8 | 6,965 | 1.929688 | 2 | [] | no_license | package com.ghi.modules.pdfviewer.data.processors;
import com.blankj.utilcode.util.FileIOUtils;
import com.blankj.utilcode.util.LogUtils;
import com.blankj.utilcode.util.StringUtils;
import com.foxit.sdk.PDFException;
import com.foxit.sdk.pdf.PDFDoc;
import com.foxit.sdk.pdf.ReadingBookmark;
import com.foxit.s... | true |
801b54eab7a949cda7962db125fed320f1fc2595 | Java | Rayaratebr/Inventory_System_Android | /app/src/main/java/com/example/dell/project_database/AddCustomerActivity.java | UTF-8 | 3,264 | 2.3125 | 2 | [] | no_license | package com.example.dell.project_database;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android... | true |
e8094b2a77ee0a688f2b3c731447259ce71e9138 | Java | Kirissuno/JUnit4 | /PruebasIntegradasYFuncionales/Angular/src/main/java/com/app/res/Persona.java | UTF-8 | 1,953 | 2.78125 | 3 | [] | no_license | package com.app.res;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
@Entity
@Table(name="agenda")
@Inheritance(strategy=InheritanceType.JOINED)
public class P... | true |
cc0d093195d684460b1ba3c576573a33ad92afed | Java | StuyPulse/kinect-CAD | /src/kinectcad/loadInfo.java | UTF-8 | 719 | 2.15625 | 2 | [] | no_license | package kinectcad;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author George
*/
public class loadInfo {
public String file;
public double[] scale;// = new double[]{1,1,1};
public double[] offset;// = new double[]{0,0,0};
public double... | true |
bf63e0b0ba17e1901880338d3c4442bf894eba4f | Java | sara-adel/StoreShop | /app/src/main/java/com/sara/project/ViewHolders/SettingViewHolder.java | UTF-8 | 1,000 | 2.34375 | 2 | [] | no_license | package com.sara.project.ViewHolders;
import android.util.Log;
import android.view.View;
import com.thoughtbot.expandablerecyclerview.models.ExpandableGroup;
import com.thoughtbot.expandablerecyclerview.viewholders.GroupViewHolder;
/**
* Created by sara on 1/30/2018.
*/
public class SettingViewHolder extends Grou... | true |
2dc72a8aa077ea1d9a2fdd9dfad7e7134017a096 | Java | vladhoratau/BankingLearning | /app/src/main/java/com/example/bankinglearning/viewModels/ClientAccountViewModel.java | UTF-8 | 8,926 | 2.015625 | 2 | [] | no_license | package com.example.bankinglearning.viewModels;
import android.util.Log;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.bankinglearning.ApplicationClass;
import com.example.bankinglearning.R;
import com.example.bankinglearning.models.Account.CreditAccount;
import c... | true |
05266612fc833d7fa036ed66ee53224a120c2cd0 | Java | wallyjue/online_judge | /programming_judge/src/hackerRank/algo/warmup/DiagonalDifference.java | UTF-8 | 321 | 2.875 | 3 | [
"MIT"
] | permissive | package hackerRank.algo.warmup;
public class DiagonalDifference {
public static int Diff(int[][] a)
{
int ret = 0;
int sum1 = 0, sum2 = 0;
for(int i = 0; i < a.length; i++) {
sum1 += a[i][i];
sum2 += a[i][a.length-i-1];
}
ret = sum1 - sum2;
if(ret < 0) {
ret = -ret;
}
return ret;
}
}... | true |
152067d39f3ee322514ce14a14922a16a3f79ded | Java | kevinrossi-dev/workout-example | /gym-group/workout-api-db/src/main/java/com/sonatype/workout/db/ExerciseServiceDBImpl.java | UTF-8 | 1,275 | 2.359375 | 2 | [] | no_license | package com.sonatype.workout.db;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Property;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.transactio... | true |
4371fb3dcaa814eb4e86165170c3ad5aaca2d7f1 | Java | caleron/resinet3 | /src/com/resinet/views/AboutFrame.java | UTF-8 | 1,491 | 2.765625 | 3 | [] | no_license | package com.resinet.views;
import com.resinet.util.Strings;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
/**
* Fenster zum Anzeigen eines Infotextes über ResiNeT
*/
public class AboutFrame {
private AboutFrame() {
JFrame frame = new JFrame(Strings.getLocalizedString(... | true |
a3dbb5c3f6c30935df0dd3f4fab05e09fcb3dc8a | Java | halfOfGame/JavaLearning | /Spring/src/main/java/com/funtl/hello/spring/MyTest.java | UTF-8 | 680 | 2.296875 | 2 | [] | no_license | package com.funtl.hello.spring;
import com.funtl.hello.spring.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author halfOfGame
* @create 2020-04-10,18:44
*/
public class MyTest {
public static void ... | true |
432357eecddc0e3be40ba50eaa382f1ed35ffc52 | Java | xelixua/WordCreator | /src/xyz/maksimenko/iqbuzztt2/SearchResult.java | UTF-8 | 587 | 2.109375 | 2 | [] | no_license | package xyz.maksimenko.iqbuzztt2;
public class SearchResult {
private String preWord;
private int targetPosition;
private String postWord;
public String getPreWord() {
return preWord;
}
public void setPreWord(String preWord) {
this.preWord = preWord;
}
public int getTargetPosition() {
ret... | true |
f8be0f5d8dbaede73c84eb1adf27904b10a23bc1 | Java | zkyne/zkyne-cartoon | /src/main/java/com/zkyne/zkynecartoon/web/IndexController.java | UTF-8 | 1,009 | 2.03125 | 2 | [] | no_license | package com.zkyne.zkynecartoon.web;
import com.zkyne.zkynecartoon.entity.Cartoon;
import com.zkyne.zkynecartoon.service.ICartoonService;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.Get... | true |
d5f19f084bf50cffa2c551f996c6906cb98e5315 | Java | lauriiShii/ANDROID | /APP12-Gatitos-GridView/APP10-Gatitos/app/src/main/java/com/android/lauracalvente/app10_gatitos/mainActivity/MainActivityViewModelFactory.java | UTF-8 | 736 | 2.109375 | 2 | [] | no_license | package com.android.lauracalvente.app10_gatitos.mainActivity;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import com.android.lauracalvente.app10_gatitos.bdd.users.RepositoryUsers;
/**
* Created by eclip on 15/11/2017.
*/
@SuppressWarnings("WeakerAccess")
public class ... | true |
ed6149999d5dfcedfccb9f49d56b2cbfce8509d4 | Java | AllalBk/TrashApp | /src/dz/trash/model/Photo.java | UTF-8 | 1,161 | 2.6875 | 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 dz.trash.model;
import java.time.LocalDate;
/**
*
* @author bkral
*/
public class Photo {
private int id;
pri... | true |
e424596dc74221685bb77002c907b86843b6b056 | Java | zouyuanfa/Everwing-Cloud-Platform | /ecp-coreservice/ecp-coreservice-common/src/main/java/com/everwing/coreservice/common/platform/entity/generated/IdGen.java | UTF-8 | 3,440 | 2.09375 | 2 | [] | no_license | package com.everwing.coreservice.common.platform.entity.generated;
import java.io.Serializable;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table id_gen
*
* @mbg.generated do_not_delete_during_merge
*/
public class IdGen implements Serializable {
/**
... | true |
0ca170b6bb5737ebfb02ddbb91ee283b8ad08ac5 | Java | MousseKwok/Tetris | /src/TetrisT.java | UTF-8 | 915 | 3.15625 | 3 | [] | no_license | /**
* Subclass of TetrisPiece. Inherit variables and methods from superclass
* @author Xijie Guo
*
*/
public class TetrisT extends TetrisPiece{
/**
* Constructor of TetrisT
*/
public TetrisT() {
filledSquares = new boolean[][][] {
{
{true, true, true, false},
{false, true, fals... | true |
b7caa0b61c4a58964ba2e868bb5721b66a7bb5e0 | Java | shubh131095/Programming | /trees/DiameterBT.java | UTF-8 | 1,557 | 3.46875 | 3 | [] | no_license | package trees;
//find the diameter of the tree.
// diameter is the longest path between any n2 node in a tree.
// 2 approaches are coded below
// a. n2 approach, for every node -> cal height of LeftStree and RightStree and add both to get diameter and then for all node take the max.
// b. n apporach, for everynode trav... | true |
47805f09f02f09a4d5557a4f2ca5f666c88e0bcf | Java | joeljons/aoc | /src/main/java/se/timotej/advent/y2018/Advent23b_v5.java | UTF-8 | 5,057 | 2.65625 | 3 | [] | no_license | package se.timotej.advent.y2018;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static java.lang.Math.abs;
public class Advent23b_v5 {
public static void main(String[] args) throws IOException {
String svar = new Advent23b_v5().calc(Online.... | true |
d7777265a68ef299b3492f04e3fbe2bd875acbb8 | Java | e0319007/shopPAWholic | /shopPAWholic-ejb/src/java/ejb/session/stateless/CartSessionBean.java | UTF-8 | 4,578 | 2.5 | 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 ejb.session.stateless;
import entity.Cart;
import entity.Listing;
import java.math.BigDecimal;
import java.util.Set;
import ja... | true |
4d4419c0637a8d453c16a118e2ac8ecb3a1b1dc1 | Java | nowickiark/Home-Budget | /src/sample/ZapiszDoPlikuClass.java | UTF-8 | 1,508 | 2.609375 | 3 | [] | no_license | package src.sample;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import javafx.fxml.FXML;
import javafx.scene.control.TableView;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.u... | true |
502cedf2b4f6d513caa69d96a400229a4c0cfa4b | Java | pnmtjonahen/raspberrypi | /homeautomation/src/main/java/nl/tjonahen/raspberrypi/homeautomation/access/gpio/GpioAccess.java | UTF-8 | 1,810 | 2.46875 | 2 | [] | no_license | /*
* Copyright (C) 2013 Philippe Tjon-A-Hen philippe@tjonahen.nl
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | true |
04f171659ace2fb05434117ab6ec48e280e39079 | Java | shuandroid/word | /app/src/main/java/com/chen/drawerexample/utils/WordModel.java | UTF-8 | 836 | 2.328125 | 2 | [] | no_license | package com.chen.drawerexample.utils;
/**
* Created by chen
* Date : 16-1-3
* Name : DrawerExample
*/
public class WordModel {
private String word;
private String translation;
private String phonetic;
private String tags;
public void setTags(String tags) {
this.tags = tags;
}
... | true |
ea5d14c3f5d655127b54dfc610928585f55aa915 | Java | hansrobothans/android_java | /ttit/app/src/main/java/com/example/ttit/ui/P33_SeekBarActivity.java | UTF-8 | 1,992 | 2.6875 | 3 | [] | no_license | package com.example.ttit.ui;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import com.example.ttit.R;
public class P33_SeekBarActivity extends AppCompatActivity {
... | true |
e5d6e9eb00ace92de9c2a9037ac21976c21c7deb | Java | qngolg/design-patterns | /src/main/java/com/ex/pattern/proxy/staticed/action/Action.java | UTF-8 | 165 | 2.03125 | 2 | [] | no_license | package com.ex.pattern.proxy.staticed.action;
/**
* @Author qiangl
* Created by qgl on 2018/8/23.
*/
public interface Action {
public void doSomething();
}
| true |
2fb9511669c06d3348c8c77ad5d9177aac8b5a65 | Java | DouglasCastro21/BIKEJANU | /app/src/main/java/bike/douglas/com/bikejanu/Fragments/GraficoPizzaTotalBikesFragment.java | UTF-8 | 11,938 | 1.828125 | 2 | [] | no_license | package bike.douglas.com.bikejanu.Fragments;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapt... | true |
4660aa4d5c28b73a4e4f7fad3267a12f27ecec15 | Java | sebitza1020/proiectjavaserver | /src/PhoneNumberDataTest.java | UTF-8 | 680 | 2.640625 | 3 | [] | no_license | import org.junit.jupiter.api.Assertions;
import static org.junit.jupiter.api.Assertions.*;
class PhoneNumberDataTest {
@org.junit.jupiter.api.Test
void getPhoneNumber() {
PhoneNumberData pnd = new PhoneNumberData("0749091217");
String expected = pnd.getPhoneNumber();
String actual = "... | true |
0e33eaa3fcef327d026b4fbdd0e896f065ec7655 | Java | jmonteagudo/programacionBasicaI | /src/ar/edu/unlam/pb1/trabajoPractico03/domain/Cerradura.java | UTF-8 | 1,029 | 2.75 | 3 | [] | no_license | package ar.edu.unlam.pb1.trabajoPractico03.domain;
public class Cerradura {
private int claveDeApertura;
private final int CANTIDAD_DE_FALLOS_CONSECUTIVOS_QUE_LA_BLOQUEAN;
private int cantidadDeIntentos;
private boolean bloqueada;
private boolean abierta;
public Cerradura(int claveDeApertura, int cantidadDeFa... | true |
a5936241519dc95e8825b571c0489fe5d4c36b05 | Java | flyingleafe/lesson5 | /app/src/main/java/com/dreamteam/app/exercise1/FeedAdapter.java | UTF-8 | 2,275 | 2.328125 | 2 | [] | no_license | package com.dreamteam.app.exercise1;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.TextView;
/**
* Created by flyingleafe on 14.10.14.
*/
public class FeedA... | true |
4a9fce1b020a659fda89ea1cb82cee8a994315a3 | Java | krish2code/prep | /src/main/java/com/krish/array/TwoSum.java | UTF-8 | 830 | 3.625 | 4 | [] | no_license | package com.krish.array;
import java.util.HashMap;
import java.util.Map;
public class TwoSum {
public static void main(String[] args) {
int[] arr = {3,2,4};
int target = 6;
int[] indices = toSum(arr, target);
for (int i=0; i < indices.length; i++) {
System.out.println(i... | true |
e83d1c373d2d4037e8709ed3c12502279108a7d1 | Java | DoAlso/service-comb-demo | /ms-account/src/main/java/com/servicecomb/springboot/msaccount/api/UserController.java | UTF-8 | 1,589 | 2.015625 | 2 | [] | no_license | package com.servicecomb.springboot.msaccount.api;
import com.microservice.common.mscommon.bean.BaseEntity;
import com.microservice.common.mscommon.bean.BaseParams;
import com.microservice.common.mscommon.bean.msaccount.User;
import com.microservice.common.mscommon.common.Constants;
import com.microservice.common.mscom... | true |
2bd916c0f59eecddd0d3d88e95f1bef5163fbfae | Java | theoyannekis/15-214-Principles-of-Software-Construction | /tyanneki/recitation/07/src/main/java/edu/cmu/cs/cs214/rec07/solver/StubSudokuFileVerifier.java | UTF-8 | 389 | 2.640625 | 3 | [] | no_license | package edu.cmu.cs.cs214.rec07.solver;
import java.util.concurrent.ThreadLocalRandom;
/**
* The best sudoku verifier ever.
* We lied; actually it returns a random answer.
*/
public class StubSudokuFileVerifier implements SudokuFileVerifier {
public boolean verifySolution(String puzzleFile, String solutionFile)... | true |