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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fb429296747ab9daf0c249863fcb0576a65f92af | Java | tilley14/LBMS | /src/LBMSCommands/GenerateReport.java | UTF-8 | 1,730 | 2.90625 | 3 | [] | no_license | package LBMSCommands;
import Library.Library;
import LibraryProtectionProxy.LibrarySubject;
import java.util.ArrayList;
/**
* Generates a report of library statistics.
* Command format: clientID,report[,days];
*
* @author Nikolas Tilley
* @author kyler F.
*/
public class GenerateReport implements LBMSCommand
{... | true |
8ba14eb672cf0e5c7137cec652ecdda33cfe87a6 | Java | Dragontalker/Spring5-study-notes | /spring_5_demo1/src/com/dragontalker/spring5/Book.java | UTF-8 | 775 | 3.3125 | 3 | [
"MIT"
] | permissive | package com.dragontalker.spring5;
/**
* 演示使用set方法进行注入属性
*/
public class Book {
private String bookName;
private String bookAuthor;
private String bookPublisher;
private String bookLabel;
//set方法注入
public void setBookName(String bookName) {
this.bookName = bookName;
}
public... | true |
1ff20cf5e36fc0fabc08336ecf03ad248dde9aba | Java | lou270/flickrAndro | /app/src/main/java/com/jojoflower/restapp/MyImage.java | UTF-8 | 571 | 2.328125 | 2 | [] | no_license | package com.jojoflower.restapp;
import android.graphics.Bitmap;
/**
* Created by lou-l on 27/03/2018.
*/
public class MyImage {
String name;
public String getName() {
return name;
}
String url;
public String getUrl() {
return url;
}
public MyIm... | true |
5bab684a97de94a1be83a6809b4bf75786c0293b | Java | clojurians-org/simple-datahub | /metadata-dao/src/test/java/com/linkedin/metadata/dao/producer/DummyMetadataEventProducerTest.java | UTF-8 | 706 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.linkedin.metadata.dao.producer;
import com.linkedin.common.urn.Urn;
import com.linkedin.testing.AspectFoo;
import org.testng.annotations.Test;
import static com.linkedin.testing.TestUtils.*;
public class DummyMetadataEventProducerTest {
// ensure the producer can be created since it has default snaps... | true |
7a9ab5596c5ef4d454d8957f7330a964b617e4e0 | Java | DaGeRe/kieker | /kieker-analysis/src/kieker/analysis/graph/impl/GraphImpl.java | UTF-8 | 5,932 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /***************************************************************************
* Copyright 2021 Kieker Project (http://kieker-monitoring.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | true |
9df28d6b2929588e82a46acea4c1f87867b98111 | Java | vgodoy09/church | /Church/src/br/com/church/view/ViewHelperMenu.java | UTF-8 | 1,551 | 2.3125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.church.view;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import br.com.church.modelo.Menu;
/**
*
* @author Victor Godoy
*/
public class ViewHelperMenu extends... | true |
981d9aa950b4860f7abf7fb22e9a6783a97fe449 | Java | 151058580845/bishe | /app/src/main/java/com/example/liaotian/ttt.java | UTF-8 | 4,245 | 2.28125 | 2 | [] | no_license | package com.example.liaotian;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app... | true |
4ef32391c96c9a78c6fc4ab4622f1d99517b3497 | Java | fgaray/android-messengerpp | /core/src/main/java/org/solovyev/android/messenger/accounts/AccountFragment.java | UTF-8 | 3,588 | 1.882813 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2013 serso aka se.solovyev
*
* 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 agre... | true |
50e4c76458051698a191b4095072fe596e1e83fe | Java | jonathan-macke/leebli | /parsers/parser-jar-testproject/src/main/java/org/leebli/parser/bytecode/test/TestResult.java | UTF-8 | 752 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package org.leebli.parser.bytecode.test;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlType
public class TestResult implements Serializable {
private static final long serialVersionUID = -4462758553386179... | true |
11858db109bd230c90900b83979a7e87fa362d5d | Java | sourceartists/sourceartists-examples | /bid/src/main/java/com/sourceartists/auction/service/impl/BasicAuctionService.java | UTF-8 | 5,537 | 2.296875 | 2 | [] | no_license | package com.sourceartists.auction.service.impl;
import com.sourceartists.auction.exception.AuctionLockedException;
import com.sourceartists.auction.exception.WatchingException;
import com.sourceartists.auction.model.*;
import com.sourceartists.auction.repository.AuctionRepository;
import com.sourceartists.auction.repo... | true |
23a63362458c6dc3dcbc43216e50b9e01eb91b4a | Java | zjm3007210057/java | /test/myTest/src/main/java/com/design/builder/homework/Director.java | UTF-8 | 447 | 2.875 | 3 | [] | no_license | package com.design.builder.homework;
/**
* Created by zjm on 2017/3/27.
*/
public class Director {
private Builder builder;
public Director(Builder builder) {
this.builder = builder;
}
public void construct(){
builder.makeTitle("打招呼");
builder.makeBody("不同的时间打招呼");
... | true |
d1b3c42e2837771d95b19a2431429fb514d3b3f4 | Java | humba019/LibraryAPI | /src/main/java/br/com/system/crud/library/model/response/PagamentoResponse.java | UTF-8 | 1,824 | 2 | 2 | [] | no_license | package br.com.system.crud.library.model.response;
import br.com.system.crud.library.model.entity.Atendente;
import br.com.system.crud.library.model.entity.Leitor;
import br.com.system.crud.library.model.entity.Taxa;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.CascadeType;
import ja... | true |
60ccb5c58df9af762a7863327e30c63fda881ba3 | Java | zack1007x2/library | /AndroidFramework/src/com/framework/base/BaseSorllActivity.java | UTF-8 | 1,832 | 2.390625 | 2 | [] | no_license | package com.framework.base;
import java.util.List;
import cn.com.framework.R;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLa... | true |
29e521a635993b64abbc928469906d962a1a246d | Java | abenSK/XonixGame | /src/a4/Commands/CommandQuit.java | UTF-8 | 935 | 2.828125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package a4.Commands;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JOptionPane;
/**
*
* @author Aben
*/
public class CommandQuit extends AbstractAction {
... | true |
938581006bb7e8e3e9293840af4239b791177219 | Java | TyBrooks/trending-products | /src/main/java/com/viglink/trendingproducts/model/Product.java | UTF-8 | 1,550 | 2.34375 | 2 | [] | no_license | package com.viglink.trendingproducts.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.List;
public final class Product {
@JsonProperty
private final Long id;
@JsonProperty
private final String imageUrl;
@JsonProperty
private final Str... | true |
af4af95c72632b3d5205ebc26126f20cbd53f653 | Java | easymock/objenesis | /benchmark/src/main/java/org/objenesis/benchmark/ConcurrentGetInstantiator.java | UTF-8 | 3,525 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2023 the original author or 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 app... | true |
c87a263ccd995b49558f45325aa794e4a14f3ab8 | Java | itb2/Various-Java-Assignments | /A copy.java | UTF-8 | 447 | 2.28125 | 2 | [] | no_license | package debsuie;
import junit.framework.Test;
public class A {
//static Test monitor = new Test();
public static int b() {
int[] object = new int[1];
return object[1];
int i = 1;
System.out.println("i-- : " + i--); // Post-decrement
System.out.println("++i : " + ++i); // Pre-increment
... | true |
df578e05994159dd9fe88782448acdc93af5f6ed | Java | vibhusharma-whs/DS-Algo | /src/Recursion/SumOfNIntegers.java | UTF-8 | 267 | 3.234375 | 3 | [] | no_license | package Recursion;
public class SumOfNIntegers {
public static void main(String[] args) {
// TODO Auto-generated method stub
int result = sum(500);
System.out.println(result);
}
static int sum(int n) {
if(n == 1) return 1;
return sum(n-1) + n;
}
}
| true |
dde0441332e4fb9f94dbe335ed16dc4ab4691f93 | Java | bellmit/marketing-cloud | /marketing-tool-service/src/main/java/cn/rongcapital/mkt/service/ImgtextHostService.java | UTF-8 | 298 | 1.648438 | 2 | [] | no_license | package cn.rongcapital.mkt.service;
import cn.rongcapital.mkt.vo.ImgtextHostIn;
import javax.ws.rs.core.SecurityContext;
/**
* Created by Yunfeng on 2016-5-30.
*/
public interface ImgtextHostService {
Object hostImgtextAsset(ImgtextHostIn imgtextHostIn,SecurityContext securityContext);
}
| true |
e5148b2d1d22269caf9bc67fcb967aea36c54594 | Java | Niewiel/PracaDyplomowa | /app/src/main/java/pl/niewiel/pracadyplomowa/database/service/BuildService.java | UTF-8 | 7,802 | 2.234375 | 2 | [] | no_license | package pl.niewiel.pracadyplomowa.database.service;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.mashape.unirest.http.HttpResponse;
import com.orm.SugarRecord;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.A... | true |
63839366c2340f29540b9f9b8f00d1ae4e60ddd8 | Java | GuillermoOsterwalder/Nerfertum | /src/main/java/corp/tarta/nerfertum/View/GridView.java | UTF-8 | 1,891 | 2.71875 | 3 | [] | no_license | package corp.tarta.nerfertum.View;
import javafx.scene.layout.*;
import javafx.stage.Stage;
/**
* Created by mariano on 26/06/17.
*/
public abstract class GridView extends GridPane {
public GridView(){
inicGridSize();
}
public GridView(int col, int row){
inicGridSize(col,row);
}
... | true |
6ede984645496f65b60a71b8ab2e093a4a5756f6 | Java | burakbaga/java-programming-examples | /CollectionSortveComparatorInteface/src/Main.java | UTF-8 | 3,378 | 3.28125 | 3 | [] | no_license |
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Tem... | true |
0105368d3b81e906d6688e295dd4b7ceb93ba353 | Java | MezquitaMartinez/PrimeraEvaluacion | /app/src/main/java/com/example/mezqu/evaluacion1/MainActivity.java | UTF-8 | 1,824 | 2.46875 | 2 | [] | no_license | package com.example.mezqu.evaluacion1;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import java.util.ArrayList;
public class MainActivity extends AppCompatAc... | true |
d56b18bf50629d15e43d740f82c9885a2cfb5d93 | Java | pathganker/archer | /backend-boot/src/main/java/cn/com/qingqfeng/archer/shiro/token/JwtPlayload.java | UTF-8 | 1,483 | 2.09375 | 2 | [] | no_license | /** */
package cn.com.qingqfeng.archer.shiro.token;
import java.io.Serializable;
import java.util.Date;
/**
* <p>类名称: jwtPlayload </p>
* <p>描述: TODO </p>
* <p>创建时间 : 2019年2月26日 上午10:54:21 </p>
* @author lijunliang
* @version 1.0
*
*/
public class JwtPlayload implements Serializable{
/** */
private st... | true |
9b05c90b0c1766b91f61155d88008955492d15a1 | Java | tianchenglongzzz/TheFirstNavigation | /app/src/main/java/com/example/mvp/myapplication/ui/my/frement/ListNotifySytemFragment.java | UTF-8 | 1,436 | 1.921875 | 2 | [] | no_license | package com.example.mvp.myapplication.ui.my.frement;
import android.annotation.SuppressLint;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
imp... | true |
a13a2eb82dc706d757c934847594b25268763f7a | Java | teacherMa/next | /src/OverLoadRide.java | UTF-8 | 721 | 3.15625 | 3 | [] | no_license | public class OverLoadRide {
public static void main(String[] args) {
A a = new A();
a.print();
B b = new B();
b.print();
((A) b).print();
}
private static class A {
int mInt = 1;
void print() {
System.out.println(mInt);
}
... | true |
274b900840644cce67eb0b3f46232a1787bb52a3 | Java | stevicaum/organizations | /src/main/java/com/usermind/rule/exception/AlreadyExistException.java | UTF-8 | 363 | 2.15625 | 2 | [] | no_license | package com.usermind.rule.exception;
public class AlreadyExistException extends RuntimeException {
private static final String MESSAGE = "Entity with %s = %s already exists";
private static final long serialVersionUID = -5471672059734581923L;
public AlreadyExistException(String field, String name) {
super(S... | true |
7391d3a184434d5e3e5c5cc56183084350ba62ad | Java | kelu124/pyS3 | /com/lee/ultrascan/service/packets/Set2DRxTgcBreakSizePacket.java | UTF-8 | 648 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.lee.ultrascan.service.packets;
import com.lee.ultrascan.service.ProbeMessageID;
import com.lee.ultrascan.service.net.PacketOutputStream;
import java.io.IOException;
public class Set2DRxTgcBreakSizePacket extends Packet {
private final short breakSize;
public Set2DRxTgcBreakSizePacket(short breakS... | true |
fc938c9a22be5bb1140088a3d78abbbb8c96d2e8 | Java | grantchesney/Mid_Term_Project | /src/Game/TickTackToe/TicTacToe_Grid.java | UTF-8 | 456 | 3.1875 | 3 | [] | no_license | package Game.TickTackToe;
import Game.Grid;
public class TicTacToe_Grid extends Grid{
//true = x false = o
public boolean turn = true;
public int movesCounter = 0;
String[][] grid = new String[3][3];
public TicTacToe_Grid(int height, int width) {
super(height, width);
}
@Override
public void addElement(int ... | true |
c5f87c239036e10667cbbab3d9514479d2ae4a14 | Java | yusufjiruwala/channelPOS13 | /src/com/forms/panels/DeliveryPanel.java | UTF-8 | 26,931 | 1.953125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* DeliveryPanel.java
*
* Created on Aug 9, 2011, 7:28:27 PM
*/
package com.forms.panels;
import com.forms.MainFrame;
import com.generic.model.localTableModel;
import com.generic.utils.QueryExe;
import com.generi... | true |
d09478c1766ccdbd7a3e4a386272fd240b7775a5 | Java | CarlosZiegler/comcave | /DatenStrutur/src/Main.java | UTF-8 | 2,368 | 3.234375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
File datein = new File("docs/fragen.txt");
int zeichen;
FileReader fr = null;
try ... | true |
f28dca85df31be269fedbb2cd3e45b3649a142d1 | Java | jjsainzc/ArchivosBinarios | /app/src/main/java/com/example/archivosbinarios/datos/Prueba.java | UTF-8 | 892 | 2.40625 | 2 | [] | no_license | package com.example.archivosbinarios.datos;
import java.io.Serializable;
import java.util.Date;
public class Prueba implements Serializable {
private String attrStr;
private Integer attrInt;
private Date attrDate;
private static final long serialVersionUID = 1L;
public Prueba() {
super();
// TODO Auto-... | true |
87580f6c655d24c1d5c20c21a9f9c4021dab2053 | Java | nmldiegues/stibt | /radargun/framework/src/main/java/org/radargun/btt/colocated/BPlusTree.java | UTF-8 | 15,582 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package org.radargun.btt.colocated;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.radargun.CacheWrapper;
impo... | true |
d7b2613b7ec08a6381068b1b44c36c0df2bb3019 | Java | zqtcao/CookPal-1 | /CookPal/app/src/main/java/cse190/cookpal/AssistantActivity.java | UTF-8 | 17,976 | 2.234375 | 2 | [] | no_license | package cse190.cookpal;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.Animation;
imp... | true |
288b7c60b7790725398327ef32cf99188f61512b | Java | BT-OpenSource/bt-openlink-java | /openlink-smack/src/test/java/com/bt/openlink/smack/iq/GetInterestsRequestTest.java | UTF-8 | 4,601 | 2.125 | 2 | [
"MIT"
] | permissive | package com.bt.openlink.smack.iq;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.empty;
import static org.junit.Assert.assertThat;
import static org.xmlunit.matchers.CompareMatcher.isIdenticalTo;
import org.jivesoftware.smack.packet.IQ;
im... | true |
f4a142ccad7f8344c7668feb08ed12bf3db08966 | Java | MyInta/exam | /src/leetcode_inta/exam_main/leetcode_exam2021/D222/Q3.java | UTF-8 | 1,977 | 3.21875 | 3 | [] | no_license | package leetcode_inta.exam_main.leetcode_exam2021.D222;
/**
* @author inta
* @date 2021/1/3
* @describe
*/
public class Q3 {
// 移动,先看能不能形成left mid right 不行形成退出,可以就计算mid扩张数量,再扩张left,重复
public int waysToSplit(int[] nums) {
int res = 0;
int mod = 1_000_000_007;
// 空间换时间
int[] c... | true |
50dac3a878483e676ba8ee236fe4b412b21c3ffe | Java | java-course/Struts | /Struts1/GS_Struts_1/src/main/java/ru/javacourse/struts/action/WelcomeAction.java | UTF-8 | 794 | 1.882813 | 2 | [] | no_license | package ru.javacourse.struts.action;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import ru.javacourse.struts.data.UserDataSourse;
import javax.servlet.ServletException;
import javax.se... | true |
1a22e7ec7ba524e20b96432e7b10f5f47d1fa75f | Java | Fr33styler/GrinchSimulator | /src/main/java/ro/fr33styler/grinch/commands/CommandJoin.java | ISO-8859-1 | 762 | 2.6875 | 3 | [] | no_license | package ro.fr33styler.grinch.commands;
import org.bukkit.entity.Player;
import ro.fr33styler.grinch.Main;
import ro.fr33styler.grinch.Messages;
public class CommandJoin implements Command {
private Main main;
public CommandJoin(Main main) {
this.main = main;
}
@Override
public String getCommand() {
retu... | true |
047561494542b3145ffb9b8c310ff6a6aa7abf8f | Java | misterio-smit/todo2 | /src/main/java/com/todo/smart/worldssp/todo/entity/ListEntityTodo.java | UTF-8 | 1,033 | 2.359375 | 2 | [] | no_license | package com.todo.smart.worldssp.todo.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.UUID;
/**
* Сущность списка дел
*/
@Entity
@Table(name = "todoList")
@Data
public class ListEntityTodo {
/**
*... | true |
47b737a652fdb43e2e20e8c5681a00d60c3ee4a5 | Java | rodrigomolinamunhoz/trabalho-porto | /workspace/Trabalho-Porto/src/portoInterface/PainelInicio.java | UTF-8 | 586 | 2.609375 | 3 | [] | no_license | package portoInterface;
import javax.swing.JPanel;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.border.BevelBorder;
public class PainelInicio extends JPanel {
public Pa... | true |
91b20d832e4f71251a2dfc53e60f5ee5003a1982 | Java | gwojciechowski/MovieDoggyTranscribe | /src/main/java/app/moviedoggytranscribe/model/dao/SimpleStatusDao.java | UTF-8 | 155 | 1.5 | 2 | [
"MIT"
] | permissive | package app.moviedoggytranscribe.model.dao;
import app.moviedoggytranscribe.model.entity.Status;
public interface SimpleStatusDao extends Dao<Status> {}
| true |
c99182074e50f0aec0fffe573ca00049f51107ba | Java | Engomo/training-solutions | /src/test/java/martin/MatrixAverageTest.java | UTF-8 | 322 | 1.828125 | 2 | [] | no_license | package martin;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class MatrixAverageTest {
MatrixAverage matrixAverage = new MatrixAverage();
@Test
void matrixMaxAverageByRow() {
assertEquals(20.86, matrixAverage.matrixMaxAverageByRow(TestData.MATRIX));
}... | true |
440a1506912ae130ab55b44fa7af4eef927a4ad2 | Java | simonpetersen/Galgeleg | /app/src/main/java/petersen/simon/galgeleg/fragments/ReglerFragment.java | UTF-8 | 534 | 1.945313 | 2 | [] | no_license | package petersen.simon.galgeleg.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import petersen.simon.galgeleg.R;
/**
* Created by Simon on 16/11/15.
*/
public class ReglerFragment extends Fra... | true |
9b5753e3dfb6661c1b66e497e84142eed783057a | Java | MamboBryan/Day-6-challange | /app/src/main/java/com/mambobryan/day6/MainActivity.java | UTF-8 | 5,345 | 2.703125 | 3 | [] | no_license | package com.mambobryan.day6;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
CheckBox firstCheckBox;
CheckBox secondCheckBox;
CheckBox... | true |
d8b2c4a5437b60028c78c41821ccc27e9e2a41a6 | Java | KristopherCo/testSpringBoot | /springBootday01/src/main/java/com/pinyougou/controller/QuickController.java | UTF-8 | 429 | 1.710938 | 2 | [] | no_license | package com.pinyougou.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@Controller
public class QuickController {
... | true |
3b1b55e564342a724e0582c90ec4a352e1337075 | Java | ppicinic/CharliePlugins | /test/charlie/advisor/section4/Test01_22AA_26.java | UTF-8 | 1,437 | 2.90625 | 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 charlie.advisor.section4;
import charlie.advisor.BasicStrategy;
import charlie.card.Card;
import static charlie.card.Card.Sui... | true |
8162238abaf39c7663e972c13ae7963a7d262a8c | Java | mbarchfe/osgi-kasse-example | /org.osgiusers.germany.example.kasse.domain/src/org/osgiusers/germany/example/basar/domain/PositionType.java | UTF-8 | 102 | 1.5625 | 2 | [] | no_license | package org.osgiusers.germany.example.basar.domain;
public enum PositionType {
SALE,
STORNO
}
| true |
292bccbf408d226cad107e0e53eb3c4dd39a1a85 | Java | mP1/walkingkooka-spreadsheet | /src/main/java/walkingkooka/spreadsheet/tool/TextStylePropertyNameConstantJavaScriptSourceTool.java | UTF-8 | 1,417 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | true |
da5a7519a8f8e6cd3ef5c4d7d24a737b1c5cf158 | Java | wanbing/VivoFramework | /Vivo_y93/src/main/java/android/app/VivoSystemReflect.java | UTF-8 | 11,339 | 1.789063 | 2 | [] | no_license | package android.app;
import android.annotation.VivoHook;
import android.annotation.VivoHook.VivoHookType;
import android.content.ContentResolver;
import android.content.Context;
import android.hardware.usb.UsbManager;
import android.os.Handler;
import android.os.IBinder;
import android.os.ServiceManager;
import androi... | true |
cc2437f8e33c4131ee9218167070e91cfa0009f7 | Java | ibiss/breaking | /workForGPS/GPSLoc/src/com/example/gpsloc/MainActivity.java | WINDOWS-1250 | 6,315 | 2.0625 | 2 | [] | no_license | package com.example.gpsloc;
import java.util.ArrayList;
import java.util.List;
import Webservice.GameInstance;
import Webservice.Main;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
impor... | true |
9b2de3befacb2050b70dd7645e6a0626cabc7a4c | Java | javtau/Onwheels | /Proyecto Integrador/src/VistaDatos.java | ISO-8859-4 | 15,485 | 2.328125 | 2 | [] | no_license | import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLayeredPane;
i... | true |
2182165b358cb1379261255d2e74957bb470a440 | Java | CommerEnQuell/weather | /src/main/java/nl/commerquell/weather/service/ReportLogServiceImpl.java | UTF-8 | 1,087 | 2 | 2 | [] | no_license | package nl.commerquell.weather.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import nl.commerquell.weather.db.dao.ReportLogDAO;
import nl.commerquell.weathe... | true |
4f49816375625381f20d8588b0dd6380bc16dfc0 | Java | Mayur-vaghasiya/Photo_Picker_Git-master | /app/src/main/java/ffmpeg/raj/com/gallery/model/Photo.java | UTF-8 | 369 | 2.125 | 2 | [] | no_license | package ffmpeg.raj.com.gallery.model;
/**
* Created by root on 3/6/16.
*/
public class Photo {
public String getImagePath() {
return imagePath;
}
public void setImagePath(String imagePath) {
this.imagePath = imagePath;
}
public Photo(String imagePath) {
this.imagePa... | true |
7b47d50a1045cdaeececdfa612434d21c96b36dd | Java | kdk-pkg-soft/freehep-ncolor-pdf | /heprep/freehep-heprep1/src/main/java/hep/graphics/heprep1/HepRepTypeInfo.java | UTF-8 | 497 | 1.84375 | 2 | [] | no_license | /// Copyright FreeHEP 2000-2005.
package hep.graphics.heprep1;
import java.util.Enumeration;
/**
*
* @author M.Donszelmann
*
* @version $Id: HepRepTypeInfo.java 8584 2006-08-10 23:06:37Z duns $
*/
public interface HepRepTypeInfo extends HepRepAttribute {
/**
* @return name
*/
public String ge... | true |
8b8337d63437d75c565c154579f1b87417aad74e | Java | jprvishal/Java | /src/com/sharma/designpattern/strategy/problemcode/StrategyTest.java | UTF-8 | 826 | 3.609375 | 4 | [] | no_license | package com.sharma.designpattern.strategy.problemcode;
public class StrategyTest {
public static void main(String[] args) {
Vehicle vehicle = new Vehicle();
Vehicle car = new Car();
Vehicle raceCar = new RaceCar();
Vehicle helicopter = new Helicopter();
Vehicle jet = new J... | true |
2738d07a9a5ea2a558d4b25c4df8fa369a098438 | Java | K5Magami/box_test | /src/main/java/api/box/service/impl/BoxFileCreateService.java | UTF-8 | 1,841 | 2.484375 | 2 | [] | no_license | package api.box.service.impl;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.springframework.web.multipart.MultipartFile;
import com.box.sdk.BoxDeveloperEditionAPIConnection;
import com.box.sdk.BoxFile;
import com.box.sdk.BoxFolder;
impor... | true |
99bc6acd57789c6d48c4ae2c89222344dffc1dc0 | Java | hyong15/android | /src/com/jovision/CoreService.java | UTF-8 | 1,568 | 2.203125 | 2 | [] | no_license |
package com.jovision;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import com.jovision.commons.MyLog;
public class CoreService extends Service implements IHandlerLikeNoti... | true |
0d1592836e093a2e1a868bcf76d1ce8b132d1b57 | Java | hurnjoolee/eoshub | /src/main/java/io/eoshub/mapper/AdAirdropMapper.java | UTF-8 | 302 | 1.859375 | 2 | [] | no_license | package io.eoshub.mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import io.eoshub.model.AdAirdrop;
@Repository
public interface AdAirdropMapper {
int insertAdAirdrop(AdAirdrop adAirdrop);
AdAirdrop getAdAirdrop(@Param("id") Integer id);
}
| true |
cec6bcaade9c830dc47ee2a16c94c4ac64f07048 | Java | christine1zhu/Algorithm | /chapter2/s2_5/src/p2_5_27.java | UTF-8 | 1,300 | 3.203125 | 3 | [] | no_license | import java.util.Arrays;
/**
* Created with IntelliJ IDEA.
* User: dexctor
* Date: 12-12-14
* Time: 下午12:56
* To change this template use File | Settings | File Templates.
*/
public class p2_5_27 {
public static int[] sort(Comparable[] a)
{
int N = a.length;
int[] index = new... | true |
101398208e23c92f23b3fc9b4374f72f1370b808 | Java | MauricioQueiros/TesteInmetrics | /src/main/java/utils/DataHelper.java | UTF-8 | 453 | 2.125 | 2 | [] | no_license | package utils;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import java.util.Date;
public class DataHelper {
private DateTime data;
private DateTimeFormatter fmt;
public DataHelper(){
this.data = new DateTime();
}... | true |
8c5ef4fa43399f6704d4807a1bf1b2476e207309 | Java | liujianping0329/leetCode | /src/Main2.java | UTF-8 | 2,636 | 3.40625 | 3 | [] | no_license | import vo.ListNode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class Main2 {
// https://leetcode-cn.com/problems/add-two-numbers/
public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {
ListNode l1Temp=l1;
ListNode... | true |
92127a56768e4d0cf9be79a2b61435110a1ec09d | Java | lmm095hyf/basic-code | /month02-code/src/cn/java/day16/InterfaceTest.java | UTF-8 | 688 | 2.78125 | 3 | [] | no_license | package cn.java.day16;
import cn.java.day16.Demo03;
public class InterfaceTest {
public static void main(String[] args) {
//demo03 d=new demo03();
Demo03 d=null;
d.fun1();
d.fun2();
d.fun3();
}
}
class A implements Demo03{
public void fun1(){
}
public void f... | true |
1cfbb53fdf533f43a96e1c0894a2cbb23d043f63 | Java | atuloec/WelcomeJava | /MyCoreJavaProgram/src/com/rahul/String1.java | UTF-8 | 378 | 2.921875 | 3 | [] | no_license | package com.rahul;
public class String1 {
public static void main(String[] args) {
int count = 0;
String srt = "aaashasuidgisdugygaaahhaaaa";
int length = srt.length();
for (int i = 0; i < length; i++) {
if (srt.charAt(i) == 'a' && i + 1 < length && srt.charAt(i + 1) == 'a') {
count++;
... | true |
1e14b19e3832cc4ff164cd30adf1712dadd18c4c | Java | gwinda/A_GIT_MANTI | /workspace-server-master/src/main/java/com/workspace/server/model/UserEntity.java | UTF-8 | 4,479 | 2.21875 | 2 | [] | no_license | package com.workspace.server.model;
import javax.persistence.*;
import java.sql.Date;
import java.sql.Timestamp;
/**
* Created by 51998 on 2018/2/26.
*/
@Entity
@Table(name = "user", schema = "shiro", catalog = "")
@IdClass(UserEntityPK.class)
public class UserEntity {
private long id;
private String email;... | true |
788389fe619914cb5cc6ddb0b4057ff71ceb2066 | Java | RayeWang/eyeWeb | /eye/controller/src/main/java/com/ray/task/CrawlerTask.java | UTF-8 | 2,413 | 2.546875 | 3 | [] | no_license | package com.ray.task;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.ray.dao.AlertDao;
import com.ray.dao.ResLinkDao;
i... | true |
7e0ee0073a33d3b5df4ce70fd79fd31e07cb4c56 | Java | junsoodark/-ssafy-final-PJT | /backend/src/main/java/com/activityx/allei/service/CategoryServiceImpl.java | UTF-8 | 472 | 1.890625 | 2 | [] | no_license | package com.activityx.allei.service;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.activityx.allei.dao.CategoryDao;
import com.activityx.allei.dto.CategoryDto;
@Service
public class CategoryServiceImpl implements ... | true |
249d3c62a188cdcb22b2dc5540701d7e4db28dc6 | Java | alvenplay/A_EQDrop_BETA | /src/me/AlvenxPlay/EQDrop/Listeners/onQuit_DB_Reset.java | UTF-8 | 681 | 2.140625 | 2 | [
"MIT"
] | permissive | package me.AlvenxPlay.EQDrop.Listeners;
import me.AlvenxPlay.EQDrop.Main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
public class onQuit_DB_Reset implements Listener{
@EventHandler()
public void... | true |
2decbf419b4cb187123ef840b9ea2115e8f8915d | Java | PresidentWarfield/SpiCall_Artemide_Exodus | /spicall_artemide_spartacus_exodus/org/apache/commons/net/ftp/parser/a.java | UTF-8 | 889 | 2.15625 | 2 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | package org.apache.commons.net.ftp.parser;
import org.apache.commons.net.ftp.f;
import org.apache.commons.net.ftp.g;
import org.apache.commons.net.ftp.h;
public class a
extends h
{
private final g[] a;
private g b = null;
public a(g[] paramArrayOfg)
{
this.a = paramArrayOfg;
}
public f a(Strin... | true |
eae95ec4b5bbf650973fb8d52acc66347255e9e4 | Java | bhamail/sdk-java | /api/src/main/java/io/serverlessworkflow/api/deserializers/ScheduleDeserializer.java | UTF-8 | 2,343 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020-Present The Serverless Workflow Specification 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 re... | true |
aa557bba25500824976b1b82a0862cabd7646169 | Java | talekaryogita/NewRepoForSelenium | /Documents/workspace-spring-tool-suite-4-4.9.0.RELEASE/OneToManyExample/src/main/java/com/capgemini/Company.java | UTF-8 | 1,549 | 2.9375 | 3 | [] | no_license | package com.capgemini;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
//import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
public class Company {
public static void main(String[] args) {
EntityMana... | true |
911911791c01a132b147e2ae66af7a8b32095c80 | Java | gary9716/gripForceProjectNew | /gripAndTipForce/src/main/java/com/mhci/gripandtipforce/presenter/BTDeviceInfoAdapter.java | UTF-8 | 1,867 | 2.359375 | 2 | [] | no_license | package com.mhci.gripandtipforce.presenter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.mhci.gripandtipforce.R;
public class BTDeviceInfoAdapter extends Arra... | true |
fffdfecfbe54969a6dcda4797a3c81d06ea5f0ed | Java | oferby/talker-server | /src/main/java/com/toga/netbrain/model/db/entities/hw/MainBoard.java | UTF-8 | 989 | 2.453125 | 2 | [] | no_license | package com.toga.netbrain.model.db.entities.hw;
import com.toga.netbrain.model.db.entities.sw.OperatingSystem;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Property;
import org.springframework.data.neo4j.core.schema.Relationship;
@Node
public class MainBoar... | true |
ffa6f7e95371f8bff7bcc19d964f868527d5314d | Java | Benji8500/Patrones1Parcial | /PatronesParcial1/src/Pregunta4/Client.java | UTF-8 | 567 | 2.40625 | 2 | [] | no_license | package Pregunta4;
public class Client {
public static void main(String[] args) {
Director dir = new Director();
Bife bife = new Bife();
Lomito lomito = new Lomito();
Tira tira = new Tira();
dir.setBuilderPlato(bife);
dir.prepararPlato();
Plato platobife = dir.getPlato();
platobife.showData();
... | true |
a1e6c09adace58457b5d64054988a0febe59e02d | Java | hjc851/SourceCodePlagiarismDetectionDataset | /Entire Dataset/4-42/Organizer/Views/DownstreamCallback.java | UTF-8 | 2,834 | 2.09375 | 2 | [
"MIT"
] | permissive | package Organizer.Views;
import Yardmaster.Regulator;
import Synchronization.Timer;
import Synchronization.Appendage;
import java.util.ArrayDeque;
public class DownstreamCallback extends Timer {
public synchronized String plannerNominate() {
return "FB:";
}
private synchronized boolean primedIsVacant() {
... | true |
855def05265a4106a493ede7f31ac251f17212b8 | Java | abashev/spring-modules | /projects/spring-modules-cache/src/main/java/org/springmodules/cache/interceptor/caching/MetadataCachingAttributeSource.java | UTF-8 | 2,184 | 1.96875 | 2 | [] | no_license | /*
* Created on Sep 21, 2004
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
8207826493c156de62a141c786cfcf27b9349691 | Java | hyperwallet/hyperwallet-android-sdk | /core/src/test/java/com/hyperwallet/android/model/transfer/TransferTest.java | UTF-8 | 12,656 | 1.851563 | 2 | [
"MIT"
] | permissive | package com.hyperwallet.android.model.transfer;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.notNullValue;
import static com.hyperwal... | true |
ed03dee2ca099655848637540e268760c985cb1b | Java | sefauncu/spring-data-security | /SpringDataUserRole/src/main/java/com/service/UserServiceImpl.java | UTF-8 | 1,390 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.service;
import java.util.List;
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.userdetails.UsernameNotFoundExc... | true |
62b24590960aee6a05dad51bad831d20e4dbb783 | Java | BrianViviers/University-Coursework | /2nd Year/Object-Oriented Software Engineering with Design Patterns/FastCourierServiceGui/lib/FastCourierService/src/datamodel/Customer.java | UTF-8 | 5,882 | 3.0625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package datamodel;
import java.util.ArrayList;
import observerpattern.IObserver;
import observerpattern.ISubject;
import observerpattern.ISubjectImpl;
/**
* This class represents a customer who has signed up to use th... | true |
3e5ae423727f95ea9380e5689a72ecd772819e93 | Java | murraycu/gwt-bigoquiz | /src/main/java/com/murrayc/bigoquiz/client/application/userstatus/UserStatusModule.java | UTF-8 | 400 | 1.617188 | 2 | [] | no_license | package com.murrayc.bigoquiz.client.application.userstatus;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
/**
* Created by murrayc on 1/21/16.
*/
public class UserStatusModule extends AbstractPresenterModule {
@Override
protected void configure() {
//TODO? bindPresenter(UserStatusPr... | true |
da001c1a5d838690e6e2da91d26b02854c396c24 | Java | ketankumar1979/Withoutmaven | /src/ketanselanium/TescoWithFirefox.java | UTF-8 | 443 | 1.90625 | 2 | [] | no_license | package ketanselanium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TescoWithFirefox {
public static void main (String[]args){
WebDriver driver = new FirefoxDriver();
driver.get("https://www.tesco.com/");
... | true |
28d0fe5eb9e0b52bacdd3d7654773066c929349e | Java | Venohum/WiFi_Direct_based_VideoStream_wzy | /app/src/main/java/com/example/dell/wi_fi_direct_based_videostream_ltf/Coder/TestEncoder.java | UTF-8 | 11,107 | 1.796875 | 2 | [] | no_license | package com.example.dell.wi_fi_direct_based_videostream_ltf.Coder;
import android.annotation.TargetApi;
import android.hardware.Camera;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.media.MediaFormat;
import android.os.Build;
import android.te... | true |
ef022704662fecf9c933ca0f327c17f17677ebaf | Java | jgbell100/scottish-munros | /src/test/java/com/arkhelais/scottishmunros/controller/MunroControllerTest.java | UTF-8 | 1,815 | 1.984375 | 2 | [] | no_license | package com.arkhelais.scottishmunros.controller;
import static org.mockito.Mockito.*;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import com.arkhel... | true |
441a007edd4eb3043aaae30a1846f4ac105b4e17 | Java | AbdElrahmanMuhammedNasr/SpringBoot__AskFm | /src/main/java/com/example/demo/MainController/GET_Controller.java | UTF-8 | 5,329 | 2.359375 | 2 | [] | no_license | package com.example.demo.MainController;
import com.example.demo.ServiceInterface.*;
import com.example.demo.ZModel.Questions;
import com.example.demo.ZModel.QuestionsAnswer;
import com.example.demo.ZModel.User;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
... | true |
4109a012546cb2a92b1b6dacdee117b669fa43ce | Java | paulnguyen/design | /aspectj/book/aspectj-in-action-code/ch09/workspace/org.springframework.samples.jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewCartAction.java | UTF-8 | 1,798 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2009 Ramnivas Laddad
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | true |
d44ef48e8c845914e1c01867eff7a38a1041b241 | Java | beltranbot/javaMasterClass | /section_8/001/LinkedList/src/Main.java | UTF-8 | 828 | 3.515625 | 4 | [] | no_license | import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Customer customer = new Customer("Tim", 54.96);
Customer anotherCustomer;
anotherCustomer = customer;
anotherCustomer.setBalance(12.18);
System.out.println("Balanace for customer: " + c... | true |
a594b95b5099f32e2ae83db1bc3261cb21a16622 | Java | ojy95/study | /Main_B_2580_스도쿠.java | UTF-8 | 1,712 | 3 | 3 | [] | no_license | package Solution_B_1005_ACM_Craft;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.StringTokenizer;
public class Main_B_2580_스도쿠 {
static int map[][]= new int[9][9], count=0;
static LinkedL... | true |
91cb5210f6f91fa303f371fd91b31497af433b2f | Java | blundell/ArrowLogger | /demo/src/main/java/com/blundell/example/DemoActivity.java | UTF-8 | 2,157 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.blundell.example;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.blundell.logger.arrow.ArrowLog;
import com.blundell.logger.arrow.Level;
import com.blundell.logger.arrow.ProArrowLog;
public class Dem... | true |
af6e6019077358ab6d58907b4faed932f4e04561 | Java | aleksandrakoziel/Collective | /app/src/main/java/com/collective/collective/Model/Last/fm/Results.java | UTF-8 | 2,811 | 1.898438 | 2 | [] | no_license | package com.collective.collective.Model.Last.fm;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.w3c.dom.Attr;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
@Generated("org.jsonschema2pojo")
public class Results {
private String opensearchTotalResults;
... | true |
7e24d2391223361f469bfe89f8a8749ad885a52a | Java | junlonl/waterbackstage | /src/main/java/com/hhh/fund/waterwx/webmodel/RiverMasterBoardListJsonBean.java | UTF-8 | 876 | 1.929688 | 2 | [] | no_license | package com.hhh.fund.waterwx.webmodel;
import java.util.List;
public class RiverMasterBoardListJsonBean {
private int count = 0;
private List<SwjRivermasterboardBean> RivermasterboardList = null;
private SwjRivermasterboardBean swjRivermasterboardBean;
public int getCount() {
return count;
}
public voi... | true |
594cb2dbdde2198d76e1265ebfaa12bb767866dd | Java | opmiss/LintCode | /src/median/MaximumSubarray2.java | UTF-8 | 1,475 | 3.671875 | 4 | [] | no_license | package median;
import java.util.*;
/*
* Given an array of integers, find two non-overlapping subarrays which have the largest sum.
* The number in each subarray should be contiguous.
* Return the largest sum.
* Example
* For given [1, 3, -1, 2, -1, 2], the two subarrays are [1, 3] and [2, -1, 2] or [1, 3, -1, 2... | true |
c5b3dd8b55aef27f14f01da715d670262113b9bc | Java | the-ant/ServerChat | /src/mysql/StructureDB.java | UTF-8 | 1,907 | 1.84375 | 2 | [] | no_license | package mysql;
public class StructureDB {
/*
* Table Message
*/
public static final String TABLE_MESSAGE = "message";
public static final String MESSAGE_ID = "message_id";
public static final String MESSAGE_GROUP_ID = "group_id";
public static final String MESSAGE = "message";
public static final String MES... | true |
fd08a5e55b59af327a4ce183bd22afd7dea2ca94 | Java | meatgh/syerahmajava | /java/src/com/company/PerfectNumber.java | UTF-8 | 718 | 3.9375 | 4 | [] | no_license | package com.company;
public class PerfectNumber {
public static boolean isPerfectNumber(int number){
if(number < 1)
return false;
//2, 3, 1, divides the number in whole, so, we're checking for all the numbers that divide the argument in whole and making a sum of them
//if tha... | true |
6e74839d21e0ab2650dd7a557c5c6154b6729c33 | Java | isabella232/fat-lining | /src/test/java/com/github/xabgesagtx/fatlining/common/validation/UserPasswordDTOValidatorTest.java | UTF-8 | 981 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.github.xabgesagtx.fatlining.common.validation;
import static org.mockito.Mockito.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.validation.Errors;
import com.gith... | true |
edd891a64f581863a4676f34e3be4bcf64d59785 | Java | everit-org/atlassian-restclient-jiracloud | /src/main/java/org/everit/atlassian/restclient/jiracloud/v3/model/FailedWebhooks.java | UTF-8 | 5,133 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright © 2011 Everit Kft. (http://www.everit.org)
*
* 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 ap... | true |
dbbc98c2e43264d38f1e917bdc96d6dce9ee47c3 | Java | Duankan/onemap | /src/main/java/com/kingtopware/framework/controller/PermissionController.java | UTF-8 | 2,957 | 2.078125 | 2 | [] | no_license | package com.kingtopware.framework.controller;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bi... | true |
25e4208fcbcc5ea075ad61fe909b005ed15520be | Java | yangruoyang/budbreakCloud | /cjpan-service/src/main/java/com/budbreak/pan/service/WebUtil.java | UTF-8 | 842 | 2.109375 | 2 | [] | no_license | package com.budbreak.pan.service;
import com.budbreak.pan.service.pan.shiro.JwtUtils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author Sandeepin
* 2018/2/12 0012
*/
public class WebUti... | true |
4c268b45dfb6f25415f1915d82abd9413b5970d4 | Java | JKAGBao/mes | /app/src/main/java/com/yxst/inspect/rx/manager/WaitInspectManager.java | UTF-8 | 8,527 | 2.015625 | 2 | [] | no_license | package com.yxst.inspect.rx.manager;
import android.content.Context;
import android.content.Intent;
import com.yxst.inspect.activity.InspectActivity;
import com.yxst.inspect.database.model.InspectDevice;
import com.yxst.inspect.database.model.Item;
import com.yxst.inspect.database.Manager.InspectDevicQueryUtil;
impor... | true |
31bd57b87c41c628ae2c928578a7e7f3ddccb372 | Java | KingCodeST/MementoPatternDemo22 | /src/main/java/za/ac/cputweek/DietInfo.java | UTF-8 | 1,391 | 3.140625 | 3 | [] | no_license | package za.ac.cputweek;
public class DietInfo {
String personName;
int dayNumber;
int weight;
public DietInfo(String personName, int dayNumber, int weight) {
this.personName = personName;
this.dayNumber = dayNumber;
this.weight = weight;
}
@Override
public String ... | true |
d19e62897575c702de20cdcfc66c82b98997551b | Java | DaviCorreia/PadraodeProjeto-FactoryMethod | /src/factory/method/Gastos.java | UTF-8 | 80 | 1.703125 | 2 | [] | no_license | package factory.method;
public interface Gastos {
void exibirMenssagem();
}
| true |
157299dbc98bf9c5344e0473f69cfb665b465031 | Java | egorovantony/smartHome | /MbusServer/src/main/java/me/aegorov/smarthome/mbusserver/dao/DataSourceFactory.java | UTF-8 | 1,430 | 2.75 | 3 | [] | no_license | package me.aegorov.smarthome.mbusserver.dao;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
import javax.sql.DataSource;
/**
* Created by anton on 2/14/17.
*/
public class DataSourceFactory {
public static DataSource getDataSource(
String strTypeDS,
String URL,
String... | true |