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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ec0ee390ff37482a698a5aed9ba2443f89d27323 | Java | ankurupadhyay123/LinkSharingProject | /src/main/java/com/servicesapi/SubscriptionService.java | UTF-8 | 418 | 2.015625 | 2 | [] | no_license | package com.servicesapi;
import com.entities.Subscription;
import com.entities.Topic;
import com.entities.User;
import java.util.List;
/**
* Created by ankur on 15/7/17.
*/
public interface SubscriptionService {
boolean subscribe(User user, Topic topic, String seriousness);
Long getSubcriptionsOfUser(User ... | true |
cbe68f47d7a645b0e3b44ca8b63ecb5e6acb5348 | Java | arlinashah/integral | /integral-cas/src/test/java/my/com/myriadeas/cas/adaptors/jdbc/integral/SearchModeSearchDatabaseAuthenticationHandlerTest.java | UTF-8 | 990 | 2.0625 | 2 | [] | no_license | package my.com.myriadeas.cas.adaptors.jdbc.integral;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
public class... | true |
3a42cdc655ed545d1107ad5c66bd727b73142bfa | Java | khajum/Tutorial | /Java/ComboQuestionColl/DepthOfNumber.java | UTF-8 | 1,972 | 3.9375 | 4 | [] | no_license | import java.util.Scanner;
import java.util.Arrays;
public class DepthOfNumber {
public static void main(String[] args){
// input to find depth of given number
System.out.print("Enter number to find its depth : ");
int number = new Scanner(System.in).nextInt();
int depth;
depth = computeDepth(number);
... | true |
c791c2c355f1f4e24b4b861b9f43e3d3a24ee660 | Java | djuniorAlpha/design-patterns | /composite/src/com/composite/shapes/Rectangle.java | UTF-8 | 554 | 3.296875 | 3 | [] | no_license | package com.composite.shapes;
import java.awt.Color;
import java.awt.Graphics;
public class Rectangle extends BaseShape {
public int width;
public int heigth;
public Rectangle(int x, int y, int width, int heigth, Color color) {
super(x, y, color);
this.width = width;
this.heigth = heigth;
}
@Override
... | true |
3e7efd7c6ca8272af23230f463016748bd42db74 | Java | timknip/easel-gwt | /src/easeljs/client/display/impl/GraphicsImpl.java | UTF-8 | 17,346 | 2.546875 | 3 | [] | no_license | package easeljs.client.display.impl;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArrayNumber;
import com.google.gwt.core.client.JsArrayString;
public class GraphicsImpl extends JavaScriptObject {
protected GraphicsImpl() {}
/**
* Returns a CSS compatible color string b... | true |
735385acc7a78602c0fe83eea3dfd4c434c47efe | Java | doushimutou/testngDemoLearn | /src/test/java/com/ayt/listener/ListenerTest.java | UTF-8 | 1,104 | 2.359375 | 2 | [] | no_license | package com.ayt.listener;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.testng.ITestResult;
import org.testng.TestListenerAdapter;
import org.testng.annotations.Listeners;
/**
* @Auther: ayt
* @Date: 2018/8/18 00:41
* @Description: Don't worry ,just try
*/
public class ListenerTes... | true |
7b3992709aea6a69f60510db4fc85ed2d7619105 | Java | owenglahn/Software_Design_A6 | /src/activity6/LibraryObserver.java | UTF-8 | 464 | 2.671875 | 3 | [] | no_license | package activity6;
public interface LibraryObserver
{
/*
* Callback method for when a Playable has been added to a library
*
* @param pPlayable is the Playable to add
* @pre pPlayable != null
*/
public void playableAdded(Playable pPlayable);
/*
* Callback method for when a Playable has be... | true |
26c0b3b3a758c4e644adc38f903de4f055532894 | Java | Pradumann/HumLog | /app/src/main/java/com/example/praduman/humlog/LauncherActivity.java | UTF-8 | 2,578 | 2.421875 | 2 | [] | no_license | package com.example.praduman.humlog;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import com.parse.Parse;
import com.parse.ParseUser;
public class LauncherActivity extends Ac... | true |
2213e041542b89bbf9a93ae82f6e2b77c76a3de1 | Java | justin-wesley/mysportsfeeds-java-api | /src/main/java/com/wesleyhome/stats/feed/request/api/builder/plugins/GameIdentifierBuilderPlugin.java | UTF-8 | 1,501 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.wesleyhome.stats.feed.request.api.builder.plugins;
import com.wesleyhome.stats.feed.request.api.GameIdentifier;
import com.wesleyhome.stats.feed.request.api.builder.DefaultApiRequest;
import com.wesleyhome.stats.feed.request.api.builder.RequestBuilder;
import java.time.chrono.ChronoLocalDate;
import stat... | true |
3ef14867b69e02c77996c38d0379f1f0e7fd8579 | Java | githubybx/Timer | /Redis/RedisConfig.java | UTF-8 | 2,133 | 2.28125 | 2 | [] | no_license | package com.example.demo.Redis;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Service
@ConfigurationProperties(prefix = "redis")
... | true |
ef1d2361fc07991743c8f3933e1dd1a33b10f3c3 | Java | green-fox-academy/diana19921105 | /week-03/day-03/src/com/greenfox/encapsulationandconstructor/SharpieSet.java | UTF-8 | 732 | 3.03125 | 3 | [] | no_license | package com.greenfox.encapsulationandconstructor;
import java.util.ArrayList;
import java.util.List;
public class SharpieSet {
List<Sharpie> sharpies;
public SharpieSet() {
this.sharpies = new ArrayList<>();
}
public int countUsable() {
int useAble = 0;
for (Sharpie sharpie :... | true |
8e4cb53fd2cc743f8890359628c5a07ee30bec58 | Java | billial/sdk-java | /src/main/java/org/privacyidea/PIResponse.java | UTF-8 | 11,280 | 1.710938 | 2 | [] | no_license | /*
* Copyright 2021 NetKnights GmbH - nils.behlen@netknights.it
*
* 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 ... | true |
9b8805ee28462bd41e18b264b8a0a4bdb2955747 | Java | shyamaW/OPPL2 | /oppl2plugin/src/main/java/org/coode/oppl/protege/ui/message/AbstractMessage.java | UTF-8 | 710 | 2.8125 | 3 | [] | no_license | package org.coode.oppl.protege.ui.message;
import static org.coode.oppl.utils.ArgCheck.checkNotNull;
/**
* @author Luigi Iannone
*/
public abstract class AbstractMessage implements Message {
private final String messageText;
/**
* Build this AstractMessage starting from the input string.
*
... | true |
48b38bb319324643663154ab2d723db3055c513a | Java | AFLLAMA/MAS_Delivery_Project | /src/main/java/mas/delivery/DeliveryOrder.java | UTF-8 | 2,946 | 2.6875 | 3 | [] | no_license | package mas.delivery;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Entity
@Inheritance
@Table(name="delivery_order")
public class DeliveryOrder {
private static List<DeliveryOrder> orders =... | true |
6b2f91ae7bdef11ac7fdd2a3f2a66dd2987b98ea | Java | gunpreet4/Code-Chef | /REMISS.java | UTF-8 | 529 | 2.6875 | 3 | [] | no_license |
package codechef2017;
import java.io.IOException;
import java.util.Scanner;
public class REMISS {
public static void main (String[] args)throws IOException{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t!=0)
{
int a=sc.nextInt();
int... | true |
55f601c2c44061a6b5c7bfd358c5a0730f72fc1a | Java | Kimsangwon0509/SpringCore | /src/test/java/hello/core/scope/SingletonPrototypeTest1.java | UTF-8 | 4,465 | 2.890625 | 3 | [] | no_license | package hello.core.scope;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Scope;
im... | true |
eac4de6bac25b2868e921a48387c81b7d0f511d3 | Java | EyeSeeTea/dhis2-rule-engine | /src/main/java/org/hisp/dhis/rules/Utils.java | UTF-8 | 1,624 | 2.515625 | 3 | [] | no_license | package org.hisp.dhis.rules;
import org.hisp.dhis.rules.models.RuleDataValue;
import org.hisp.dhis.rules.models.RuleEvent;
import java.text.SimpleDateFormat;
import java.util.*;
public final class Utils
{
public static final SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd", Locale.US );
pri... | true |
c8ee89556552c79bc395a524c8fe9b91bbcb3044 | Java | sridhar256/King | /src/com/pom/POM_Integration.java | UTF-8 | 1,222 | 2.34375 | 2 | [] | no_license | package com.pom;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class POM_Integration {
public static WebDriver driver;
public LoginOhrmPOM loginpage;
public void... | true |
d28bf9917e26eaafc7421e7213d85e38adf60454 | Java | crtrt/javaee-final | /src/main/java/com/example/javaeefinal/aspect/MyAspect.java | UTF-8 | 3,743 | 2.546875 | 3 | [] | no_license | package com.example.javaeefinal.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.*;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;
impor... | true |
ccacedbf6e649b40f1eca7d6e02f2a5f9c2ae0da | Java | cbiafore822/NeuralNetwork | /src/InputNeuron.java | UTF-8 | 1,163 | 3.40625 | 3 | [] | no_license | import java.util.ArrayList;
/**
* @author Cole Biafore
* @version 1.0
*/
public class InputNeuron extends Neuron {
protected ArrayList<NeuralConnection> outputs;
/**
* Creates an Input Neuron
* @param value value calculated that is outputted to the next neuron
* @param outputs ArrayList of N... | true |
f7ba367d1c109f8a824a3540c36a251650f3d124 | Java | mohammadaliahmed/littlegarden | /app/src/main/java/com/appsinventiv/littlegarden/Models/ConfirmBookingModel.java | UTF-8 | 702 | 1.875 | 2 | [] | no_license | package com.appsinventiv.littlegarden.Models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class ConfirmBookingModel {
@SerializedName("bookings")
@Expose
private List<BookingModel> bookings = null;
@SerializedName("menu")... | true |
23b2cb229d71d94d388dc4c70b1106e41a9baf1d | Java | isabella232/vbroker | /broker/src/test/java/com/flipkart/vbroker/subscribers/GroupedPartSubscriberTest.java | UTF-8 | 2,276 | 2 | 2 | [] | no_license | package com.flipkart.vbroker.subscribers;
import com.flipkart.vbroker.core.PartSubscription;
import com.flipkart.vbroker.data.memory.InMemorySubPartDataManager;
import com.flipkart.vbroker.data.memory.InMemoryTopicPartDataManager;
import com.flipkart.vbroker.utils.DummyEntities;
import com.flipkart.vbroker.utils.Subsc... | true |
b3cad793f2190383e54d7bf36c01748e59a1f854 | Java | onurceliktas/jsf_Book | /src/main/java/com/DAO/memberDAO.java | UTF-8 | 285 | 1.867188 | 2 | [] | no_license |
package com.DAO;
/**
*
* @author onur
*/
import com.pojo.Member;
import java.util.List;
public interface memberDAO {
public List<Member> readMember();
public void save(Member member);
public void delete(Member member);
public void update(Member member);
}
| true |
3a69e18d800c8a2a14be1ecae5af02d1a6558d8e | Java | chance-study/mybatis-jpa-mapper | /mybatis-jpa-mapper-core/src/main/java/org/chance/jpamapper/core/sql/helper/ShardingSqlHelper.java | UTF-8 | 9,755 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package org.chance.jpamapper.core.sql.helper;
import java.util.Map;
import org.chance.jpamapper.core.entity.JpaModelEntity;
import org.chance.jpamapper.core.entity.ShardingEntity;
import org.chance.jpamapper.core.util.StringUtil;
public class ShardingSqlHelper extends SqlHelper {
/**
* 表名选择绑定方法
* @param jpaMod... | true |
10c2ce18eacdc1162927fc03aa8110887dc6c76c | Java | andreasgrams/fxmvp.sample | /src/main/java/de/dreamnetworx/fxmvp/sample/app/ui/view/PersonDetailPresenterImpl.java | UTF-8 | 1,643 | 2.171875 | 2 | [] | no_license | package de.dreamnetworx.fxmvp.sample.app.ui.view;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import de.dreamnetworx.fxmvp.api.FxMvpPresenter;
import de.dreamnetworx.fxmvp.sample.app.service.PersonService;
import de.dreamnetworx.fxmvp.sample.app.ui.event.PeopleSelectionEven... | true |
949551e0ce0bc8101b7a27d9cc991a2a1b2f799e | Java | davbend/ticketManager | /src/main/java/com/davbend/tickeTest/entity/Project/Project.java | UTF-8 | 1,146 | 2.46875 | 2 | [] | no_license | package com.davbend.tickeTest.entity.Project;
import java.util.ArrayList;
public class Project
{
private int idProject;
private String nameProject;
private int PMAssigned;
private ArrayList<Task> tasks;
public Project(){}
public Project(int idProject,String nameProject, ArrayList<Task> tasks... | true |
b6abeb9742b62dd22617b67c437499a44aeddf54 | Java | dexterchan/TreeQuery | /TreeQueryNodeRunner/src/main/java/org/treequery/service/RemoteProxyTreeQueryClusterRunner.java | UTF-8 | 2,801 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.treequery.service;
import lombok.Builder;
import lombok.extern.slf4j.Slf4j;
import org.treequery.exception.FailClusterRunException;
import org.treequery.model.Node;
import org.treequery.service.proxy.TreeQueryClusterRunnerProxyInterface;
import org.treequery.utils.AppExceptionHandler;
import org.treequery.... | true |
af3f5c6646bd10d3116baf025052cd4bb2eb9e09 | Java | krzysztof-osiecki/Grafika | /src/main/java/poc/forms/GammaForm.java | UTF-8 | 3,673 | 2.671875 | 3 | [] | no_license | package poc.forms;
import poc.functions.GammaFunction;
import poc.tools.ImageProcessor;
import poc.tools.ImageUpdater;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
public class GammaForm extends BaseForm {
private JSpinner vSpiner;
public GammaForm(ImageUpdater parent) {
super(parent);
in... | true |
67c9c70e3165abf3d3a07a7e1b47b4021f41663c | Java | wchristiansen/AssignmentTracker | /app/src/main/java/com/wchristiansen/assignmenttracker/adapters/AssignmentViewHolder.java | UTF-8 | 5,304 | 2.296875 | 2 | [] | no_license | package com.wchristiansen.assignmenttracker.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget... | true |
c719e24f590cdd3dfd44e80c204c191acb013e80 | Java | 2pibd/AmbulanceDriver | /app/src/main/java/com/twopibd/dactarbari/ambulance/drivers/model/RideRequestModel.java | UTF-8 | 2,689 | 2.140625 | 2 | [] | no_license | package com.twopibd.dactarbari.ambulance.drivers.model;
public class RideRequestModel {
String from,to,status,USER_ID;
boolean hasCancelled=false;
boolean hasTripStarted=false;
boolean hasArrived=false;
boolean hasRideCompleated=false;
Float estimated;
Double paid;
int distance;
... | true |
0c45b66a917d337461236ff5b2407df7eda019a7 | Java | aayandre/Jogo | /src/jogo/MiniJogos.java | UTF-8 | 309 | 2.359375 | 2 | [] | no_license | /*
* André de Amorim Yamamoto
* aay.andre@outlook.com
* Turma A
*/
package jogo;
/**
*
* @author andré.yamamoto <aayandre94@gmail.com>
*/
public class MiniJogos {
static boolean jogoDaVelha() {
//Jogo inteiro com saída boolean do resultado.
boolean resultado = false;
... | true |
4438a68b40dd0b165403f786ff2f1560d4e6eab5 | Java | FahdZargelaioun/projectBachelor2014-MedProcc | /MedicalProcess/src/com/example/medicalprocess/AddNewConsultationActivity.java | UTF-8 | 2,993 | 2.359375 | 2 | [] | no_license | package com.example.medicalprocess;
import java.security.NoSuchAlgorithmException;
import java.sql.Date;
import java.sql.SQLException;
import java.util.List;
import classes.Consultation;
import classes.Utilisateur;
import android.os.AsyncTask;
import android.os.Bundle;
import android.app.Activity;
import android.view.... | true |
c775e32a7eb0966fbe459c0d2e093729845946c5 | Java | huttarwar/Android_Applications | /KnowYourGovt/app/src/main/java/com/example/heramb/know_your_govt/About.java | UTF-8 | 424 | 1.734375 | 2 | [] | no_license | package com.example.heramb.know_your_govt;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
public class About extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState... | true |
29e74ce22c49f9ed453e7b93fe88312e59d189d0 | Java | ido11/NotesManagerProject | /NotesManager/app/src/main/java/com/example/notesmanager/DataAccessLayer/DBManager.java | UTF-8 | 8,196 | 2.46875 | 2 | [] | no_license | package com.example.notesmanager.DataAccessLayer;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
... | true |
17320b8a480a0756c22f31007f65eb0fd8c4e30b | Java | AmritanshVerma/artificial_Farm | /artificial_Farm/app/src/main/java/com/example/laviverma/intellifarm/AddPolyHouse.java | UTF-8 | 2,851 | 2.15625 | 2 | [] | no_license | package com.example.laviverma.intellifarm;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Vi... | true |
4bd9c6684d94324054609e8662fadd7b6adf07e1 | Java | soerenreichardt/CastlesIO | /game/src/test/java/io/castles/core/board/statistics/GraphTest.java | UTF-8 | 8,714 | 2.65625 | 3 | [
"Unlicense"
] | permissive | package io.castles.core.board.statistics;
import io.castles.core.board.Board;
import io.castles.core.graph.Graph;
import io.castles.core.tile.Matrix;
import io.castles.core.tile.MatrixTileLayout;
import io.castles.core.tile.Tile;
import io.castles.core.tile.TileContent;
import org.junit.jupiter.api.Test;
import stati... | true |
6ff662ad06009895291d159d266ff598643d9488 | Java | deebee07/coding-practice | /Companies/Microsoft/Arrays and Strings/Matrix/SetMatrixZeros.java | UTF-8 | 1,937 | 3.484375 | 3 | [] | no_license | /*
https://leetcode.com/problems/set-matrix-zeroes/solution/
*/
/*Use the first column and the first row as marker:
first scan through the whole matrix, and if one row i has zero, label matrix[i][0] = 0, if column j has zero, then label matrix[0][j] = 0.
if we find the first row has zero, then mark a boolean row = t... | true |
2a8b243756832939ddb5c22a7fc782ed54b1340a | Java | Kevin5025/IOT-obdii-wifi-android | /src/com/example/app/MainActivity.java | UTF-8 | 6,224 | 2.515625 | 3 | [] | no_license | package com.example.app;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu... | true |
aceb90ebddd118e49b4b426dc6386fd4de3804ce | Java | GeorgeKuzub/hillel-elementary-examples | /src/io/Car.java | UTF-8 | 822 | 2.90625 | 3 | [] | no_license | package io;
import java.io.Serializable;
public class Car implements Serializable {
// private static final long serialVersionUID = 1;
private final String brand;
private final String owner;
private final int year2;
private transient Tenant tenant;
public Car(String brand, int year, String own... | true |
9cf1abc703c0c5303eaa86db333a3c8067a97f5f | Java | emmanuelrs/BDll_TareaProgramada3 | /proyect/Proyecto/src/java/controlador/inventario.java | UTF-8 | 2,041 | 2.515625 | 3 | [] | no_license | package controlador;
/*
Elaborado por: Emmanuel Rosales Salas, Luis Serrano y Cristiam Flores Nuñez
Bases de Datos 2.
*/
public class inventario {
//Atributos de la clase inventarios
private String id;
private String Producto;
private String Descripcion;
private String Precio;
private String... | true |
feb174512ed47b86dbfea48fbe364cf2be42cd57 | Java | siddharthsonwane/Doctor-Patient-RestApi-Microservice | /PatientRestApi/src/main/java/com/patientapi/service/PatientService.java | UTF-8 | 178 | 1.765625 | 2 | [] | no_license | package com.patientapi.service;
import com.patientapi.model.Patient;
import java.util.List;
public interface PatientService {
public List<Patient> getPatientList();
}
| true |
7415ead0a00eef3108ed44eb20d6bb5f27882d6f | Java | ImroatuS/OKHConstruct | /src/javareadtextfile/BismillahTimeslot.java | UTF-8 | 4,286 | 2.71875 | 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 javareadtextfile;
import java.util.Arrays;
import java.util.Random;
/**
*
* @author admin
*/
public class Bi... | true |
af369766a655b322252fb1956c518bded8da6b76 | Java | lwonho92/SIUC-app | /SleepIfUCan/app/src/main/java/com/lwonho92/my/sleepifucan/DetailActivity.java | UTF-8 | 9,748 | 1.8125 | 2 | [] | no_license | package com.lwonho92.my.sleepifucan;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.media.RingtoneManager;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.LoaderM... | true |
e09ba686fde8aebb27b63b3224a2890a4320bbc7 | Java | cvielma/ProgrammingExercises | /src/LeetCode/Surrounded.java | UTF-8 | 2,937 | 3.390625 | 3 | [
"Apache-2.0"
] | 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 LeetCode;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
/**
* https://leetcode.com/problems/... | true |
c1f1e1a935b5e83508b2e0f9c231ac697be69f90 | Java | georgethms10/JobbleChallenge | /app/src/main/java/com/app/jobblechallenge/loginpackage/LoginBusinessLogic.java | UTF-8 | 2,520 | 2.1875 | 2 | [] | no_license | package com.app.jobblechallenge.loginpackage;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.transition.ChangeBounds;
import android.transition.Slide;
import android.util.Log;
import android.view.Gravity;
import android.view.Window;
import com.app.jobblechall... | true |
36754cdc094d42a8f65cbdd526da9eed1d474624 | Java | winnxiegang/save | /app/src/main/java/com/android/xjq/model/BubbleColorEnum.java | UTF-8 | 1,994 | 2.453125 | 2 | [] | no_license | package com.android.xjq.model;
import com.android.xjq.R;
/**
* Created by lingjiu on 2017/9/13.
*/
public enum BubbleColorEnum {
YELLOW_HORSE_BUBBLE("#fcee09", R.drawable.icon_yellow_horse_bubble_bg, R.drawable.icon_yellow_horse_bubble, "#000000"),
LEVEL_ELEVEN_BUBBLE("#7abefc", R.drawable.icon_l... | true |
72c2b16bdc809b29f4c3cb6500d8834955856f23 | Java | Eda1993/hms | /hms/src/main/java/hms/user/controllers/ResponseController.java | UTF-8 | 1,761 | 2.1875 | 2 | [] | no_license | package hms.user.controllers;
import static hms.user.actions.impl.UserActions.ACCEPTED;
import static hms.user.actions.impl.UserActions.PENDING;
import static hms.user.actions.impl.UserActions.REJECTED;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
... | true |
206901349ce03b449c2719f14fbe243e3c1c4118 | Java | Kardzhaliyski/Java-Advanced | /2.MultidimensionalArraysExercise/src/com/company/MatrixShuffling.java | UTF-8 | 1,927 | 3.515625 | 4 | [
"MIT"
] | permissive | package com.company;
import java.util.Arrays;
import java.util.Scanner;
public class MatrixShuffling {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
var sizes = Arrays.stream(sc.nextLine().split("\\s+"))
.mapToInt(Integer::parseInt)
.... | true |
e4f962f82b0b2a8e69ab032a9cfb8663504137e5 | Java | facedamon/Smart | /smart-quartz/src/main/java/com/facedamon/smart/quartz/task/TestTask.java | UTF-8 | 546 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.facedamon.smart.quartz.task;
import org.springframework.stereotype.Component;
/**
* @Description: 测试定时任务
* @Author: facedamon
* @CreateDate: 2018/11/27 14:01
* @UpdateUser: facedamon
* @UpdateDate: 2018/11/27 14:01
* @UpdateRemark: 修改内容
* @Version: 1.0
*/
@Component("testTask")
public class TestTa... | true |
25e420d1a2089e4b0b00bc28ea752651c76b3d9a | Java | AGESIC-UY/cliente-java-plataforma-interoperabilidad | /doc/Example/_fuentes/src/main/java/uy/gub/agesic/pge/core/config/PGEConfiguration.java | UTF-8 | 4,531 | 2.046875 | 2 | [] | no_license | package uy.gub.agesic.pge.core.config;
//import org.picketlink.identity.federation.core.util.StringUtil;
import uy.gub.agesic.pge.exceptions.ConfigurationException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
... | true |
0ab8b2648ebc02a32d54d4e6b48ee102b9e690e3 | Java | cdimascio/rsql-parser | /src/main/java/cz/jirutka/rsql/parser/ast/LogicalNode.java | UTF-8 | 3,262 | 2.546875 | 3 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2013-2014 Jakub Jirutka <jakub@jirutka.cz>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... | true |
0824a9139e18874c831efac9ca2382b3a0b9dabd | Java | guowee/FastAdapter | /fast-adapter/src/main/java/com/missile/fastadapter/BaseQuickAdapter.java | UTF-8 | 15,305 | 1.9375 | 2 | [] | no_license | package com.missile.fastadapter;
import android.animation.Animator;
import android.content.Context;
import android.support.annotation.IntDef;
import android.support.annotation.IntRange;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
i... | true |
4d988bdf4598c07486ad38863c998a685f443ea2 | Java | nramgit/problem-solved-scaler-java | /java-solved-problems/src/hack/challenge/DuplicateArray.java | UTF-8 | 862 | 3.46875 | 3 | [] | no_license | package hack.challenge;
public class DuplicateArray {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] a = {2,4,2,5,4,5};
//System.out.println("Do we have duplicates:"+findDuplicate(a));
System.out.println("Do we have duplicates:"+findDuplicateWithMinTime(a));
}
static bo... | true |
7d347d812f09e7c5c6ce07fa70c9f79ede8892b4 | Java | BasudevBharatBhushan/DS-Algo | /conditionalStatement/TernaryOperator.java | UTF-8 | 774 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | package conditionalStatement;
public class TernaryOperator { //shortened form of if else...
public static void main(String[] args) {
//General statement of ternary operator variable = condition ? expression true : expression false;
//here we have to create a class of... | true |
1d11162f6e418969d504e2c067658d96838501cc | Java | TiagoCaetanoPT/Algoritmos-e-Estrutura-de-Dados | /2019/Praticas/ProjetoBase/src/pt/ipleiria/estg/dei/aed/recursividade/utilizacao/MainPraticaFatorial.java | UTF-8 | 1,229 | 2.828125 | 3 | [] | no_license | package pt.ipleiria.estg.dei.aed.recursividade.utilizacao;
import pt.ipleiria.estg.dei.aed.recursividade.algoritmos.Fatorial;
import pt.ipleiria.estg.dei.aed.utils.Estatistica;
import pt.ipleiria.estg.dei.aed.utils.EstatisticaDeChamadas;
import pt.ipleiria.estg.dei.aed.utils.visualizacao.VisualizadorEstatisticas;... | true |
22a432bd9999ca960231b27cfd77d5ab03a8ab54 | Java | marcwgit/javaexmps | /pluss/tutorial/ChipActor.java | UTF-8 | 1,030 | 3.25 | 3 | [] | no_license | // ChipActor.java
// Dynamically created actor
import java.awt.*;
import java.awt.image.BufferedImage;
import ch.aplu.jgamegrid.*;
import java.awt.geom.*;
public class ChipActor extends Actor
{
private Color color;
public ChipActor(Color color)
{
super(createImage(color));
this.color = color;
}
... | true |
062713d9654626384fca51d45ea447d33e59bd90 | Java | agottschling/NBTLib | /src/main/java/net/drgnome/nbtlib/NPlugin.java | UTF-8 | 824 | 2.0625 | 2 | [] | no_license | // Bukkit Plugin "NBTLib" by Siguza
// The license under which this software is released can be accessed at:
// http://creativecommons.org/licenses/by/3.0/
package net.drgnome.nbtlib;
import org.bukkit.ChatColor;
import org.bukkit.command.*;
import org.bukkit.plugin.java.JavaPlugin;
public class NPlugin extends Java... | true |
f3dad84741e4afb5a11b954aba608391b790a183 | Java | cansou/HLM | /cf-service/src/main/java/com/lj/business/cf/dto/messagePush/MessagePushCodeDto.java | UTF-8 | 633 | 2.046875 | 2 | [] | no_license | package com.lj.business.cf.dto.messagePush;
import java.io.Serializable;
public class MessagePushCodeDto implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1752028751068271360L;
private String code;
private String pushDate;
public String getCode() {
return code;
}
pub... | true |
1e8f22b868cbff83c117a40a3b4d0259d5bb300b | Java | valeron181100/WTWApp | /app/src/main/java/com/valeron/wtwapp/network/api/Movie.java | UTF-8 | 3,650 | 2.453125 | 2 | [] | no_license | package com.valeron.wtwapp.network.api;
import android.annotation.SuppressLint;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
pu... | true |
67cddb1f31b71d3f6dd5c1c7fb7c69dfbf577b9d | Java | hangilyon/Git-Col | /src/HanGilYong/ATM.java | UTF-8 | 627 | 3.265625 | 3 | [] | no_license | package HanGilYong;
import java.util.Scanner;
public class ATM implements ATM_inter{
public void display() {
System.out.println("1. 입금 2. 출금 3. 잔액내역");
Scanner sc = new Scanner(System.in);
int choice = sc.nextInt();
switch(choice) {
case 1 : inputMoney();
break;
case 2 : outputMoney();
break;
c... | true |
e8a29724daf6266735385e6751c9b07daff934c0 | Java | fy-fenty/google-code | /prj_code/zjf/appkyClaims1/src/org/zjf/util/SimpleDateFormatString.java | UTF-8 | 266 | 2.28125 | 2 | [] | no_license | package org.zjf.util;
import java.text.SimpleDateFormat;
import java.util.Date;
public class SimpleDateFormatString {
public static String sfString(Date d){
SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
return sf.format(d);
}
}
| true |
8b138d79d47db2466950a7ee752d52dff72d79b2 | Java | Electronim/Android_University_Projects | /tema3/app/src/main/java/com/example/tema3/adapters/TodoAdapter.java | UTF-8 | 2,278 | 2.46875 | 2 | [] | no_license | package com.example.tema3.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.tema3.R;
import com.example.tema3.models.Todo;
impo... | true |
2b7edf278825db0cc8ff0dc13254d058b19b050e | Java | frostpig/maven-multi-module | /mulit-netty/src/main/java/com/lss/echo/protocol/domain/Header.java | UTF-8 | 2,309 | 2.046875 | 2 | [] | no_license | /*
* Copyright (C) 2018 jumei, Inc.
*
* 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... | true |
d7a9af96877f39d287e5535c2dcf32de53321b3d | Java | jnzbfgjd/Heroes-and-Monsters | /src/Hero.java | UTF-8 | 3,207 | 2.875 | 3 | [] | no_license |
public class Hero {
// name of hero
public String name;
// level of hero
public int level;
// HP of hero
public int hp;
// live or not
public boolean alive = true;
// mana of hero
public int mana;
// strength of hero
public int strength;
// agility of hero
public int agility;
// dexterity of hero
publi... | true |
24844dbd0119a23359c332571311471bc8b1db48 | Java | fhyfhy17/shoot | /common/src/main/java/com/exception/StatusException.java | UTF-8 | 429 | 2.84375 | 3 | [] | no_license | package com.exception;
public class StatusException extends Exception {
int tip;
public StatusException(Throwable t, int tip) {
super(t);
this.tip = tip;
}
public StatusException(int tip) {
super();
this.tip = tip;
}
public StatusException(String msg, int tip... | true |
eb415a20d909beb53568b9cdf80cfa26aab4af41 | Java | TrevorHinesley/Elements | /src/com/hack/elements/model/impl/Direction.java | UTF-8 | 183 | 2.46875 | 2 | [] | no_license | package com.hack.elements.model.impl;
public enum Direction {
NORTH(-1), SOUTH(1), WEST(-2), EAST(2);
public final int id;
Direction(int id) {
this.id = id;
}
} | true |
013c5ca7413c7bc22bf816c8c5ecd4056825063d | Java | Shail-1231/bankingsystem | /src/main/java/com/bean/AccountTypeBean.java | UTF-8 | 369 | 2.25 | 2 | [] | no_license | package com.bean;
public class AccountTypeBean {
int accountTypeId;
String accountType;
public int getAccountTypeId() {
return accountTypeId;
}
public void setAccountTypeId(int accountTypeId) {
this.accountTypeId = accountTypeId;
}
public String getType() {
return accountType;
}
public void setType(St... | true |
7637e8eb33ab9e32661c400987deb24e28d4fb30 | Java | muleforge/Mule-IDE | /src/main/org.mule.ide.config/src/org/mule/ide/config/mulemodel/impl/OutboundRouterImpl.java | UTF-8 | 5,647 | 1.859375 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.mule.ide.config.mulemodel.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.mule.ide.config.mulemode... | true |
64238eebbd129045f140175270d007646ff63e2d | Java | kostadinlambov/Java-Advanced | /04. 2. Data-Representation-and-Manipulation-Exercises/src/p08_Multiply_Big_Number.java | UTF-8 | 2,835 | 3.359375 | 3 | [
"MIT"
] | permissive | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class p08_Multiply_Big_Number {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String firstNumber = reader... | true |
ef5200def07e286a9c6cd00c589636df30f2de59 | Java | andriyanov-roman/base_1 | /mihael/src/main/java/lections/lesson18/IOTest.java | UTF-8 | 947 | 2.953125 | 3 | [] | no_license | package lections.lesson18;
import java.io.*;
/**
* Created by Programmer on 16.05.2015.
*/
public class IOTest {
public static void main(String[] args){
Writer outWriter=null;
try {
//Writer outWriter= new FileWriter("test.txt");
outWriter= new FileWriter("test18.txt");
... | true |
f61e7912eeb9117e77a73ac5b12baef05e988b0e | Java | UnitecSPS/Programacion2_2_4_2016 | /src/herencia/abstracta/Animal.java | UTF-8 | 502 | 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 herencia.abstracta;
/**
*
* @author Aula
*/
public abstract class Animal {
protected int patas;
public Animal(int ... | true |
f43c94ee09721d87c56ce1e7ac23b067084d6eb9 | Java | PopovMS/job4j | /chapter_001/src/test/java/ru/job4j/calculator/CalculatorTest.java | UTF-8 | 1,425 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.calculator;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
*
* @author Popov Mikhail (m.popov83@gmail.com)
* @version $Id$
* @since 0.1
*/
public class CalculatorTest {
/**
* Test метода add.
*/
@Test
... | true |
ee85e96d9499f22425d4793fcf366027792ee43b | Java | MHaidarRais/BitCoinNewsPortal | /app/src/main/java/com/rais/haidar/bitcoinnewsportal/main/activity/DetailActivity.java | UTF-8 | 1,407 | 1.890625 | 2 | [] | no_license | package com.rais.haidar.bitcoinnewsportal.main.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.rais.haidar.bitcoinnewsportal.R;
public class DetailActivity extends AppComp... | true |
f1eea4fb2bb0f9d481c64388b88d887f77fa9a2f | Java | semyonmi/extjsdemo | /src/main/java/ru/semyonmi/extjsdemo/repository/CompanyRepository.java | UTF-8 | 288 | 1.703125 | 2 | [] | no_license | package ru.semyonmi.extjsdemo.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import ru.semyonmi.extjsdemo.domain.Company;
@Repository
public interface CompanyRepository extends CrudRepository<Company, Long> {
}
| true |
d12abfbe18c04f90d162137365270aa3f93c82d5 | Java | hyungjun26/HappyHouse | /backend/src/main/java/com/ssafy/happyhouse/controller/NewsController.java | UTF-8 | 3,436 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.ssafy.happyhouse.controller;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.js... | true |
29bec14885d7a5b78d191032f6a9982f4e5c4e13 | Java | TAEKsCode/Weather_App | /app/src/main/java/com/example/weatherapp/data_models/city/DMS.java | UTF-8 | 116 | 1.601563 | 2 | [] | no_license | package com.example.weatherapp.data_models.city;
public class DMS{
public String lat;
public String lng;
}
| true |
76c3de6fa6c1656ace0b7bacae61d1ef8d75b932 | Java | romciak/Car-Park-Manager | /carparkmanager-service/src/test/java/cz/muni/fi/pa165/carparkmanager/service/facade/ServiceCheckFacadeTest.java | UTF-8 | 3,748 | 2.03125 | 2 | [] | no_license | package cz.muni.fi.pa165.carparkmanager.service.facade;
import cz.muni.fi.pa165.carparkmanager.api.dto.ServiceCheckDTO;
import cz.muni.fi.pa165.carparkmanager.api.facade.ServiceCheckFacade;
import cz.muni.fi.pa165.carparkmanager.persistence.entity.ServiceCheck;
import cz.muni.fi.pa165.carparkmanager.service.ServiceChe... | true |
18a24dee1adc39bb7ab09770a112098c824021cf | Java | chekhunov/HillelElem | /src/main/java/ua/ithillel/hw7/classes/FlowerBouquetBasketShop.java | UTF-8 | 8,639 | 3.09375 | 3 | [] | no_license | package ua.ithillel.hw7.classes;
import ua.ithillel.hw7.enums.EnumFlowerCategory;
import java.util.ArrayList;
import java.util.List;
/**
* Реализация магазина цветов
*/
public class FlowerBouquetBasketShop {
private List<FlowerBouquet> flowerBouquetList = new ArrayList<FlowerBouquet>();
private List<Flow... | true |
f455f06a0c097fcda372daf06f0009e96852063b | Java | 15307388990/street | /StreetApp_AS/streetApp/src/main/java/com/juxun/business/street/activity/StoreValueStaActivity.java | UTF-8 | 11,476 | 1.867188 | 2 | [] | no_license | package com.juxun.business.street.activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.ju... | true |
8a7fa620c811a8d7b110abc8415271675d1b5234 | Java | DerDeterminist/Abschlusspr-fung | /src/gui/TabbedPane.java | UTF-8 | 15,168 | 2.15625 | 2 | [] | no_license | package gui;
import app.Feld;
import app.I18n;
import app.Nutzer;
import app.Util;
import gui_handling.System_exit;
import gui_handling.TabbedPane_automatenHandling;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.geometry.Insets;
import... | true |
dea7bb2bc343c811a8416529f2ccfb01d24fc0ab | Java | xproject007/xproject | /XPCore/src/com/xproject/util/spider/ServerErrorException.java | UTF-8 | 457 | 2.296875 | 2 | [] | no_license | package com.xproject.util.spider;
import org.springframework.http.HttpStatus;
/**
* Created by Arei on 16/3/16.
*/
public class ServerErrorException extends HttpStatusException{
private final static String msg = "unknown server error";
public ServerErrorException() {
super(msg, HttpStatus.INTERNAL_S... | true |
c26f41e854c8cd286f5ea0ee80e2a03c5eb92a7d | Java | arjvik/Contests | /USACOTraining/crypt1.java | UTF-8 | 1,281 | 3.390625 | 3 | [] | no_license | /*
ID: arjvik1
LANG: JAVA
TASK: crypt1
*/
import java.io.*;
import java.util.*;
public class crypt1 {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(new BufferedReader(new FileReader("crypt1.in")));
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("crypt1.o... | true |
79969a805b976e7f229d9af9b742cc6ea91cbccc | Java | atMen/MicroEnterprise | /ChanBaapp/src/main/java/com/spring/chanba/views/CircleImageView.java | UTF-8 | 5,130 | 2.328125 | 2 | [] | no_license | package com.spring.chanba.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import an... | true |
2b2de93607be0bb40836453fd589c79f6dd6b746 | Java | AlvinFark/pulsa-be-order | /src/main/java/com/debrief2/pulsa/order/payload/request/TransactionRequest.java | UTF-8 | 356 | 1.546875 | 2 | [] | no_license | package com.debrief2.pulsa.order.payload.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TransactionRequest {
private long userId;
private long transactionId;
private long me... | true |
6f84d342401e63f95695c49dc58a370b751b23e1 | Java | AirspanNetworks/SWITModules | /airspan.netspan/src/main/java/Netspan/NBI_14_0/API/Status/ObjectFactory.java | UTF-8 | 14,971 | 1.65625 | 2 | [] | no_license |
package Netspan.NBI_14_0.API.Status;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* gene... | true |
04a3db3b1bc9d66fb9a7f1c52758b3f7b211a1ab | Java | Oisin-Headen/Java-Project | /src/lms/view/components/HoldingField.java | UTF-8 | 1,736 | 2.890625 | 3 | [] | no_license | package lms.view.components;
import java.awt.Color;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JViewport;
import javax.swing.border.LineBorder;
import lms.controller.LMSMainController;
import lms.controller.RemoveSingleHoldingController;
// This is the object for displaying hol... | true |
b968f0dcc020146a0af59af75b7cc1961fbc46ba | Java | gregory353a/BitCoinSimulator | /src/enviroment/SendBtc.java | UTF-8 | 2,150 | 2.90625 | 3 | [] | no_license | package enviroment;
import java.util.ArrayList;
import java.util.Random;
public class SendBtc implements Runnable{
private BitCoin btc;
private Server to;
private Server server;
private Random random = new Random();
public SendBtc(BitCoin btc, Server to, Server server){
this.btc=btc;
this.to=t... | true |
e3452e73edcac850abe3717d248cc8badfacc901 | Java | snzke-projects/server_vcat | /vcat-api/src/main/java/com/vcat/api/web/CustomerController.java | UTF-8 | 42,077 | 1.875 | 2 | [] | no_license | package com.vcat.api.web;
import com.alibaba.fastjson.JSONObject;
import com.vcat.api.service.*;
import com.vcat.common.cloud.QCloudClient;
import com.vcat.common.cloud.QCloudUtils;
import com.vcat.common.constant.ApiConstants;
import com.vcat.common.constant.ApiMsgConstants;
import com.vcat.common.persistence.Pager;
... | true |
6d6eb6d2a33d255958260b98485156077447db97 | Java | koa/wisp-manager | /src/main/java/ch/bergturbenthal/wisp/manager/service/provision/ProvisionImpl.java | UTF-8 | 4,776 | 1.96875 | 2 | [] | no_license | package ch.bergturbenthal.wisp.manager.service.provision;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.PostConstruct;
import or... | true |
47d1392fd1859ae7daf9ea500f2b4c7dd0876ac0 | Java | nligon/CCSF-CS-111B | /NumberGuesserRandom.java | UTF-8 | 1,766 | 3.671875 | 4 | [] | no_license | import java.util.Scanner;
import java.lang.Math;
public class NumberGuesserRandom {
static char hlc;
static char playAgain;
static int low = 1;
static int high = 101; // Because the Java interpreter rounds down, a value of 100 will never be reached unless this value incremented to be one integer highe... | true |
820410b60c80834aeee04f79b27f0936346d5f9f | Java | Oskrrt/SemesterOppgave | /src/test/java/com/sample/TestComputerComponents/TestSpeaker.java | UTF-8 | 1,306 | 2.609375 | 3 | [] | no_license | package com.sample.TestComputerComponents;
import com.sample.Exceptions.ValidationException;
import com.sample.Models.ComputerComponents.Speaker;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class Tes... | true |
0bfb4e8d2390148bea4bf1747baf5779737a6ee0 | Java | ITWall/AndroidTimDuongNhanh | /app/src/main/java/com/example/hungnv/directionmap/view/RatingFragment.java | UTF-8 | 9,047 | 1.71875 | 2 | [] | no_license | package com.example.hungnv.directionmap.view;
import android.Manifest;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support... | true |
db92c683f2ab065963d4b631f0bceb0f8a1e33e5 | Java | grutten/conscan | /conscan/src/main/java/com/tippingpoint/database/ColumnTypeSmallInteger.java | UTF-8 | 921 | 3.140625 | 3 | [] | no_license | package com.tippingpoint.database;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
/**
* ColumnTypeSmallInteger
*/
public class ColumnTypeSmallInteger extends ColumnType {
public static final String TYPE = "smallinteger";
/**
* This method is the default constructor... | true |
6b5c4e3f07c42613431ded3a3b77dd213b67a37b | Java | zxlworking/CasualLiving | /app/src/main/java/com/zxl/casual/living/custom/view/TodayWeatherLimitIconView.java | UTF-8 | 4,140 | 2.109375 | 2 | [] | no_license | package com.zxl.casual.living.custom.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet... | true |
2c3280b0715bf224e794a12a944290dfdf1f742a | Java | bakshidwarak/DSAndAlgo | /src/hackerrank/staircase/CountStairCase.java | UTF-8 | 2,125 | 3.890625 | 4 | [] | no_license | package hackerrank.staircase;
import java.util.Arrays;
import java.util.Scanner;
/**
* Davis has staircases in his house and he likes to climb each staircase , , or steps at a time. Being a very precocious child, he wonders how many ways there are to reach the top of the staircase.
Given the respective heights for... | true |
78ade72da612544d79c7f4b6c6054948844964c2 | Java | guanyibei1204/iLMS | /iLMS_PORTAL/src/com/hanthink/sw/dao/SwRecDao.java | UTF-8 | 1,460 | 2.046875 | 2 | [] | no_license | package com.hanthink.sw.dao;
import java.util.List;
import com.hanthink.sw.model.SwRecModel;
import com.hanthink.sw.model.SwSupplierGroupModel;
import com.hotent.base.db.api.Dao;
import com.hotent.base.db.mybatis.domain.DefaultPage;
import com.hotent.base.db.mybatis.domain.PageList;
/**
*
* <p>Title: SwR... | true |
5203f46cbb4b91b1e5c6094aa66ad259a4eeacce | Java | kswic/kyp-tasks | /src/main/java/ai/kyp/islands/service/IslandsAreaService.java | UTF-8 | 1,639 | 3.4375 | 3 | [] | no_license | package ai.kyp.islands.service;
/**
* Counts the number of island areas on given map.
*/
public class IslandsAreaService {
private final byte[][] map;
private final int height;
private final int width;
public IslandsAreaService(byte[][] map) {
this.map = map;
this.height = map.lengt... | true |
c53b43447938c977e821da8d7511af29b42fe3eb | Java | jsy579579/jh | /JHTransactionClearPro/src/main/java/cn/jh/clearing/business/WithDrawDealBusiness.java | UTF-8 | 100 | 1.859375 | 2 | [] | no_license | package cn.jh.clearing.business;
public interface WithDrawDealBusiness {
public void deal();
}
| true |
3e8a61ae06b5e08eb34a8ef47894b964d8ec6042 | Java | ekgren/sokoban | /sokoban/OneBoxMoveComparator.java | UTF-8 | 1,510 | 3.203125 | 3 | [] | no_license | /*
* Compare two states according
*/
package sokoban;
import java.util.Comparator;
public class OneBoxMoveComparator implements Comparator<State>{
private int targetGoalIndex;
private int boxToMoveIndex;
private boolean toClosestGoal;
private double h1;
private double h2;
public void setTargetGoalAndBo... | true |
f96c848a75401587e7f6dba9161e4c84a9cf0fe2 | Java | Panasonic17/MY | /Self/BIGDATA/BIG PROJECT SATORI WIKI/sparkStreamSocet/src/main/java/SocetOut.java | UTF-8 | 1,979 | 2.65625 | 3 | [] | no_license | import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.serialization.StringDeserializer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStre... | true |