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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c8fff91be9e0675a2843ba3e786da7fd20ea185f | Java | tarantelot/AdrenalinCity | /app/src/main/java/project/taras/ua/adrenalincity/Activity/MovieMVC/StarView/StarView.java | UTF-8 | 4,112 | 2.375 | 2 | [] | no_license | package project.taras.ua.adrenalincity.Activity.MovieMVC.StarView;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Re... | true |
2d1ba1c32b91c15b1e9e513f3e1e273bd9adb65a | Java | muneendrag/javaprograms | /eclipse-workspace/Learnjava/src/oopsConcept/HybridInheritance.java | UTF-8 | 536 | 3.6875 | 4 | [] | no_license | package oopsConcept;
class A1{
void m1() {
System.out.println("A1");
}
}
interface I1{
void m2();
}
interface I2{
void m3();
}
public class HybridInheritance extends A1 implements I1,I2{
@Override
public void m3() {
System.out.println("m3 method from interfece I2");
}
@Override
publi... | true |
5956a2409d50fa4a64ead6f1b3b4afbdc48def78 | Java | StephenChio/deyan | /OneTech_common/src/main/java/com/OneTech/common/util/CodeUtils/SaltUtils.java | UTF-8 | 233 | 1.90625 | 2 | [] | no_license | package com.OneTech.common.util.CodeUtils;
import org.apache.commons.codec.digest.DigestUtils;
public class SaltUtils {
public static String getSalt(String str){
return DigestUtils.md5Hex(str).substring(0,10);
}
}
| true |
2614552228a6349a0509b55c78b8c3aea2fe063a | Java | airufei/xCode | /src/main/java/com/cn/cooxin/admin/entity/Role.java | UTF-8 | 546 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.cn.cooxin.admin.entity;
import com.cn.cooxin.code.entity.BaseEntitys;
/**
* 角色信息Entity
* @author airufei
* @version 2017-01-18
*/
public class Role extends BaseEntitys {
private st... | true |
9583c95fd94173e2799cd0f57d2a9bc7e482c1cd | Java | ahmadshakla/postPc_ex4 | /app/src/main/java/com/example/fun/UnCompletedTodoActivity.java | UTF-8 | 4,079 | 2.59375 | 3 | [] | no_license | package com.example.fun;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast... | true |
ab681136895c059f5b8642261c18037c25b9a07a | Java | hmntstr/File-Classification-java | /Fileclassification1.java | UTF-8 | 9,173 | 3.046875 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.io.File;
import javax.swing.*;
class Dictionary
{
File folder;
File[] listOfFiles;
LinkedHashSet<String> hs=new LinkedHashSet<String>();
int res[][],size;
String ans="";
Dictionary(File folder)
{
this.folder=folder;
File[] listOfFiles... | true |
fd8ab2d8562e027a8ddeeb70dc6fbe2bf3609446 | Java | jeong-chan/SocialRunClub | /app/src/main/java/com/example/registerloginexample/User_DB.java | UTF-8 | 1,996 | 2.640625 | 3 | [] | no_license | package com.example.registerloginexample;
import java.util.ArrayList;
// 사용자의 개인정보와 현재 달린 경도와 위도
public class User_DB {
private String member_id;
private String member_name;
private int member_age;
private int member_height;
private double member_weight;
private String member_gender;
priv... | true |
e3f499374a8b8bb0c7821417c290c81133682c43 | Java | magicalpuffin/2018-APCSA | /Tetris/LBlockRight.java | UTF-8 | 7,603 | 2.71875 | 3 | [] | no_license | package Tetris;
import java.awt.Color;
import java.awt.Graphics;
public class LBlockRight extends Block implements Locatable
{
private int xPos=200;
private int yPos=0;
private int width=40;
private int height=120;
private int speed=1;
private int orientation=0;
private Color color;
public LBl... | true |
ad97a649ae8441bf928d88e46935fda96b49aee3 | Java | YuvrajVijay/Android-Studio-Java | /IntroFirestore/app/src/main/java/com/example/introfirestore/Journal.java | UTF-8 | 542 | 2.671875 | 3 | [] | no_license | package com.example.introfirestore;
public class Journal {
String title;
String thoughts;
public Journal() {
}
public Journal(String title, String thoughts) {
this.title = title;
this.thoughts = thoughts;
}
public String getTitle() {
return title;
}
publi... | true |
6f165fff7d234ece83bb4156810b41ab72652720 | Java | Housum/javaporject | /ActOfJava/src/com/hotusm/designpattern/MediatorTest.java | GB18030 | 6,360 | 3.625 | 4 | [] | no_license | package com.hotusm.designpattern;
/**
*
* @author Hotusm
* ģʽ->ͣģʽ
* 1.ͣģʽǶΪģʽͣģʽװһϵжõķʽ
* ʹЩáӶʹǿԽɢϡЩеijЩ
* ֮÷ıʱӰ쵽һЩ֮áӶ
* ֤ЩÿԱ˴˶ر仯
* 2.ͨĽһĵĵи֮Э,ǽֱӵ,д
* ϵ
* 3.,Կ,CPUֹ֮ϵ:帺Щĺ,ֱ֮ͨãͼƬ:ͣģʽ2
* 4.Эͬ
*
* ͣģʽе:
* ɢ
*ͣģʽͨѶͬ¶֮Ľװͣ߶棬Ӷʹͬ¶֮ɢϣϿ
* һͬ¶ͿԶر仯ãǰǣһȫˡ
* ڼпƽ
* ͬ¶Ľװڵͣ߶漯йʹЩΪ仯ʱֻҪ... | true |
0e52b4a13f82cde6a493560de8cef3c3f473fb38 | Java | GeekAlliance/TaurusPlatform | /taurus-api-service/taurus-core/src/main/java/com/geekalliance/taurus/rdb/dialects/DbDialect.java | UTF-8 | 639 | 2.09375 | 2 | [] | no_license | package com.geekalliance.taurus.rdb.dialects;
import org.apache.ibatis.mapping.BoundSql;
/**
* @author maxuqiang
*/
public interface DbDialect {
/**
* 处理Like模糊查询特殊字符
* @param sql 原始sql
* @param parameterObject mybatis参数对象
* @param boundSql mybatis boundSql
* @return 处理后的s... | true |
45e2de65f9029fd15675b79bc7f613ee6feef0a9 | Java | Sivakron-FM/FF2 | /app/src/main/java/com/example/appication/ui/ViewAdaptor/Viewtype.java | UTF-8 | 124 | 1.554688 | 2 | [] | no_license | package com.example.appication.ui.ViewAdaptor;
public class Viewtype {
public static final int TYPE_MAIL_VIEW = 1;
}
| true |
4bf364866a7855c3c9cbf517bef575f0e418379b | Java | Good-Old-Living/app-platform | /infra/Infra-Scheduler/src/main/java/meru/scheduler/provider/quartz/QuartzScheduler.java | UTF-8 | 1,672 | 2.1875 | 2 | [] | no_license | package meru.scheduler.provider.quartz;
import java.util.Random;
import meru.scheduler.Job;
import meru.scheduler.JobId;
import meru.scheduler.Scheduler;
import meru.scheduler.SchedulerLifyCycleListener;
import meru.scheduler.Trigger;
import org.quartz.JobBuilder;
import org.quartz.JobDetail;
import org.... | true |
d558ba6ccf51d9cc87f5866f152edef02862b4f4 | Java | wongainia/sanguo | /src/com/vikings/sanguo/protos/MsgReqItemBuy.java | UTF-8 | 4,109 | 2.03125 | 2 | [] | no_license | // Generated by http://code.google.com/p/protostuff/ ... DO NOT EDIT!
// Generated from client.proto
package com.vikings.sanguo.protos;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import com.dyuproject.protostuff.GraphIOUtil;
import com.dyuproje... | true |
7adcfff2aa281c76f4190ae037d67c38d0f6fddc | Java | sadvit/csvexample | /src/main/java/com/sadvit/exam/ui/mvp/contenteditor/ContentEditorPresenter.java | UTF-8 | 1,801 | 2.328125 | 2 | [] | no_license | package com.sadvit.exam.ui.mvp.contenteditor;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.layout.BorderPane;
import com.sadvit.exam.ui.mvp.baseeditor.BasePresenter.TypeViewer;
import com.sadvit.exam.ui.mvp.contentviewer.ContentViewerPresenter;
import com.sadvit.exam.ui.mvp.skeleton.... | true |
21d8f973539bbb3fa68618bbdeededff4ed06478 | Java | ValeryTsybulka/JavaBatch6 | /src/com/syntax/class03/HwAnnF15_01.java | UTF-8 | 299 | 2.953125 | 3 | [] | no_license | package com.syntax.class03;
public class HwAnnF15_01 {
public static void main(String[] args) {
double a=55.88;
double b=33.11;
if(a>b) {
System.out.println("Double value " + a + " is larger than " + b);
}else {
System.out.println("Double value "+a+" is smaller than "+b);
}
}
}
| true |
a221b0cd8c2c0133dcc2244d3d89c9610a4a125c | Java | buithienai/DApp | /dapp/src/main/java/dapp/dapp/dto/SignedMessageDto.java | UTF-8 | 679 | 2.390625 | 2 | [] | no_license | package dapp.dapp.dto;
public class SignedMessageDto {
private int v;
private String r;
private String s;
public SignedMessageDto(int v, String r, String s) {
this.v = v;
this.r = r;
this.s = s;
}
public int getV() {
return v;
}
public SignedMessage... | true |
eb0e8041141e74617919032c176028e1eba5a4f8 | Java | sudheertest/sud-work | /seleniumMaven/src/main/java/org/selenium/framework/pages/CastLightPage.java | UTF-8 | 1,336 | 1.609375 | 2 | [] | no_license | package org.selenium.framework.pages;
import org.openqa.selenium.By;
import org.selenium.framework.baseModules.BasePage;
/**
* Created by sudheerl on 6/10/14.
*/
public class CastLightPage extends BasePage {
public String loginPage_emailid = "#email_login";
public String loginPage_password = "#password_lo... | true |
3667e619f5feffb56c9edbc8b903ac528decedd5 | Java | FutureSoldiers/gulimall | /gulimall-seckill/src/main/java/com/atguigu/gulimall/seckill/config/MyRabbitConfig.java | UTF-8 | 937 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.atguigu.gulimall.seckill.config;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springfram... | true |
78f5970bebba8abf4eda67983e461aa098089c51 | Java | VictorSithole/SasaiAssignmentResponse | /electronic-payments-business/src/test/java/com/econetwireless/epay/business/services/impl/CreditsServiceImplTest.java | UTF-8 | 3,080 | 2.09375 | 2 | [] | no_license | package com.econetwireless.epay.business.services.impl;
import com.econetwireless.epay.dao.subscriberrequest.api.SubscriberRequestDao;
import com.econetwireless.epay.domain.SubscriberRequest;
import com.econetwireless.utils.constants.SystemConstants;
import com.econetwireless.utils.enums.ResponseCode;
import com.econe... | true |
c03572c30711631351e008471d4ff28f20aecfb5 | Java | dreamer888/zhihuinongmao | /zhnm/zhnm-miniapp/api/mallseller/src/main/java/com/wqwy/zhnm/seller/controller/SellerDynamicController.java | UTF-8 | 5,175 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2015-2018 <a href="">wqwy</a> All rights reserved.
*/
package com.wqwy.zhnm.seller.controller;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
... | true |
5b305f155c6a7a9ac4404f1a165be7946360504e | Java | rexen-lq/SpringBoot-Learning | /springboot2-demo-thymeleaf/src/main/java/com/bsutility/cert/exception/BusinessException.java | UTF-8 | 793 | 2.515625 | 3 | [] | no_license | package com.bsutility.cert.exception;
/**
* @author adminytf
*
*/
public class BusinessException extends Exception {
private static final long serialVersionUID = 1L;
private ExceptionEnum exceptionEnum;
public BusinessException() {
}
public BusinessException(String msg) {
this.exceptionEnum = ExceptionEn... | true |
bd3aa9c3324674721223c79b11eadf2e20acfc72 | Java | davidromesp/D02 | /workspace/Acme-Explorer/src/main/java/domain/Sponsorship.java | UTF-8 | 1,477 | 2.1875 | 2 | [] | no_license |
package domain;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.SafeHtml;
impor... | true |
800fb4e26f4ed297d22a30025fd55b2778a06215 | Java | josephhao/clientDemo | /socket-client/src/main/java/com/cw/client/udp/UdpSocketClient.java | UTF-8 | 1,135 | 3.078125 | 3 | [] | no_license | package com.cw.client.udp;
import java.io.*;
import java.net.*;
public class UdpSocketClient {
public static void main(String[] args) {
try {
InetAddress inetAddress = InetAddress.getByName("localhost");
DatagramSocket ds = new DatagramSocket( 8809);
byte[] bytes = "tt... | true |
5cf4f99f173ef5b1c37345fb0b9495b14c35e80d | Java | jambestwick/HackWechat | /app/src/main/java/com/tencent/mm/plugin/freewifi/ui/a$2$1$1$1.java | UTF-8 | 6,857 | 1.679688 | 2 | [] | no_license | package com.tencent.mm.plugin.freewifi.ui;
import com.tencent.mm.hardcoder.HardCoderJNI;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import com.tencent.mm.plugin.freewifi.ui.a.2.1.1;
import com.tencent.mm.plugin.report.service.g;
import com.tencent.mm.sdk.platformtools.ag;
import com.tencent.mm.sdk.platform... | true |
f77741bd5662ea99b5648d97ff7f286fdbad2d39 | Java | zengyufei/dc-single | /src/main/java/com/zyf/lf/service/impl/OsOrderShipmentServiceImpl.java | UTF-8 | 542 | 1.53125 | 2 | [] | no_license | package com.zyf.lf.service.impl;
import com.zyf.lf.models.entity.OsOrderShipment;
import com.zyf.lf.mapper.OsOrderShipmentMapper;
import com.zyf.lf.service.IOsOrderShipmentService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 订单配送表 服务实现类
* </... | true |
7b65c9f2d290fc7a410c64e4d319df61d249f16b | Java | quocvuphamdinh/Android-Music-App | /MusicAppCuaVu/app/src/main/java/vu/pham/musicappcuavu/song/SongsListAdapter.java | UTF-8 | 2,364 | 2.4375 | 2 | [] | no_license | package vu.pham.musicappcuavu.song;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;... | true |
dd4a6d45740a70b9a414dab50c4ac7314206db14 | Java | kleekich/Lyber | /app/src/main/java/com/example/lyber/LyftApiService.java | UTF-8 | 1,768 | 2.328125 | 2 | [] | no_license | package com.example.lyber;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Headers;
/**
* Created by kangsik_kevin_lee on 8/31/17.
*/
public class LyftApiService {
private LyftService lyftApi;
private Call<LyftModel> mCall;
... | true |
b3fa055694d447249dc8817fb7b4ab58d685f174 | Java | nskrobonja95/IsaProjekat | /IsaProjekat/src/main/java/edu/ftn/isa/dto/HotelDTO.java | UTF-8 | 461 | 2.375 | 2 | [] | no_license | package edu.ftn.isa.dto;
import edu.ftn.isa.model.Hotel;
import lombok.Data;
public @Data class HotelDTO {
private Long id;
private String name;
private String address;
private String promo;
private Long admin;
public static HotelDTO parseHotel(Hotel hotel) {
HotelDTO temp = new HotelDTO();
temp.setId(ho... | true |
041b751a113fc4a73f188120a0f3b272805b489a | Java | bhagvatbhosle/Java_Practice | /Collection Demos/src/com/seed/inheritancedemos/MarketingExecutive.java | UTF-8 | 723 | 2.921875 | 3 | [] | no_license | package com.seed.inheritancedemos;
public class MarketingExecutive extends Manager {
private double kmTravelled;
private double TA;
public MarketingExecutive(int empId, String empName, double basSal, double pA, double fA, double OA,
double kmTravelled) {
super(empId, empName, basSal, pA, fA, OA);
this.kmTra... | true |
35d72b1f6e7f242932667890b53014765cd97bdc | Java | mobgen/halo-android | /sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/toolbox/bus/EventId.java | UTF-8 | 902 | 2.78125 | 3 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | package com.mobgen.halo.android.framework.toolbox.bus;
import android.support.annotation.NonNull;
import com.mobgen.halo.android.framework.common.annotations.Api;
/**
* The event id for a given event.
*/
public class EventId {
/**
* The id of the event.
*/
private String mEventId;
/**
... | true |
6578e53e77d57ed0d4329cdb641b5c3734739981 | Java | nkoterba/swagger-jaxrs-doclet | /swagger-doclet/src/test/resources/fixtures/classpathparamrequired/ClassPathParamRequiredResource.java | UTF-8 | 1,063 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package fixtures.classpathparamrequired;
import fixtures.paramrequired.*;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.DELETE;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
/**
* The ClassPathParamRequiredResource represents a ja... | true |
f21b0cd6ab0a03284b7db984e50f079a4340958a | Java | ufctester/plex-pvr | /src/main/java/io/askcloud/plex/pvr/utorrent/domain/ChangedTorrentList.java | UTF-8 | 4,494 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive |
package io.askcloud.plex.pvr.utorrent.domain;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javax.annotation.Generated;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons... | true |
27c00a3ce3f894e62e68e2f078c921eae4a15a1b | Java | maningbo/testjavacode | /testjavacode/src/thinkinginjava/chapter10innerclasses/E18_NestedClass.java | UTF-8 | 671 | 3.296875 | 3 | [] | no_license | package thinkinginjava.chapter10innerclasses;
import thinkinginjava.chapter10innerclasses.E18_NestedClass.Nested;
/**
* E18_NestedClass.java
* Description:
*
* CreateDate: 2015年11月9日 上午8:46:54
*
* @author 马宁波
*/
public class E18_NestedClass {
static class Nested{
void f(){System.out.pr... | true |
a88d4e79739ccaf7f87b52e78fe809e28c9afa1d | Java | canberkak/selsoft-demo | /src/main/java/com/kft2/selsoftdemo/application/exception/advice/ErrorResponse.java | UTF-8 | 431 | 1.96875 | 2 | [] | no_license | package com.kft2.selsoftdemo.application.exception.advice;
import lombok.Data;
import lombok.NonNull;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
@Data
public class ErrorResponse {
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
@NonNull
privat... | true |
6d50777c28e3d3eb7e98979e0de53e9cf0f746db | Java | sumit4-ttn/SDK | /molecule/java/src/main/java/com/hydrogen/molecule/model/CurrencyBalanceUpdateParams.java | UTF-8 | 2,719 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Molecule API Documentation
* The Hydrogen Molecule API
*
* OpenAPI spec version: 1.3.0
* Contact: info@hydrogenplatform.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com... | true |
e0eb1cb707b3a97203bbc24796b5317efdbfafe0 | Java | Android-Academy/7_AC_InstaCreative | /app/src/main/java/com/vullnetlimani/instacreative/Adapters/NotificationAdapter.java | UTF-8 | 5,385 | 2.03125 | 2 | [] | no_license | package com.vullnetlimani.instacreative.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActiv... | true |
eb472c93141d74695fb41053ac6eeb0cefdedea1 | Java | Jingdan-Z/algorithm-practice | /sudoku.java | UTF-8 | 2,723 | 3.5625 | 4 | [] | no_license | import java.util.*
public class sudoku {
public static int[][] sudoku(int[][]matrix) {
int r = matrix.length;
int c = matrix[0].length;
int[][] result = new int[r][c];
int[] toStart = toFill(matrix);
helper(matrix, toStart[0], toStart[1]);
return result;
}
pr... | true |
150a2949bca59ca0a0eb349385a34798d80ea154 | Java | muCkk/MCPC-1.4 | /src/net/minecraftforge/event/entity/player/EntityInteractEvent.java | UTF-8 | 396 | 1.9375 | 2 | [] | no_license | package net.minecraftforge.event.entity.player;
import net.minecraft.server.Entity;
import net.minecraft.server.EntityHuman;
import net.minecraftforge.event.Cancelable;
@Cancelable
public class EntityInteractEvent extends PlayerEvent
{
public final Entity target;
public EntityInteractEvent(EntityHuman var1, ... | true |
8eb103510bf7d1ec6f4cff89a24c03d9c1d3d7dd | Java | designreuse/GAPP | /src/main/java/edu/isep/controllers/AttribRoleController.java | UTF-8 | 2,151 | 2.28125 | 2 | [] | no_license | package edu.isep.controllers;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
i... | true |
02f7c459a9f0adb9e5268cb2bd7ca6bacf99ba74 | Java | jecy-8/project-of-jecy | /src/jecy/test/algorithm/sort/SortUtils.java | UTF-8 | 375 | 2.5 | 2 | [] | no_license | package jecy.test.algorithm.sort;
public class SortUtils {
public static String getArrayElements(int[] a) {
StringBuffer sb = new StringBuffer("{");
for (int i = 0; i < a.length; i ++) {
sb.append(a[i]).append(",");
}
sb.deleteCharAt(sb.toString().length() - 1);
... | true |
d1c0fa59238feccd93a408e4be22591927e572e9 | Java | laenan/projetJEE-smartphone-A3 | /JEE/src/main/java/fr/exia/repository/Menu_RestaurantRepository.java | UTF-8 | 305 | 1.703125 | 2 | [] | no_license | package fr.exia.repository;
import fr.exia.domain.Menu_Restaurant;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Menu_Restaurant entity.
*/
public interface Menu_RestaurantRepository extends JpaRepository<Menu_Restaurant,Long> {
}
| true |
dfb4668a790d17bce9af8233be5d93958e055995 | Java | MatthewSamms/teksme | /tests/org.teksme.model.test/test/org/teksme/client/test/persistence/PersistenceTest.java | UTF-8 | 1,478 | 2 | 2 | [] | no_license | package org.teksme.client.test.persistence;
import java.util.Properties;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.teneo.PersistenceOptions;
import org.hibernate.cfg.Environment;
import org.junit.Before;
import org.teksme.mode... | true |
b59a10da8ad32a2554b9fb3840ca3d4813d55a80 | Java | Nothingtaro/Java-C | /ConditionalStatement/src/loop1.java | UTF-8 | 1,850 | 3.6875 | 4 | [] | no_license | public class loop1 {
public static void demo1() {
// int i;
for (int i = 1; i <= 10; i++) {
System.out.println(i);
System.out.println("--");
}
System.out.println("BYE");
}
public static void demo2() {
for (int i = 10; i >= 1; i--) {
... | true |
850444fe93960ee92f1b4e6848d700d04a3926d4 | Java | nayangandhi1987/EasyImageUpload | /internal/JungleeCommonLib/src/com/junglee/commonlib/location/LocationTracker.java | UTF-8 | 11,265 | 2.390625 | 2 | [] | no_license | package com.junglee.commonlib.location;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
... | true |
5aa784069d291b7d23c73753f33916fa5329b104 | Java | patrykacc/progress-tracker | /src/main/java/fit/body/tms/repositories/TrainingDayExerciseRepository.java | UTF-8 | 480 | 2 | 2 | [] | no_license | package fit.body.tms.repositories;
import fit.body.tms.entities.TrainingDayExercise;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
@RepositoryRestResource(path = "TrainingDayExercise")
public interface Tr... | true |
477f18066b2d63c145a721d0ef890eb9aef7aff2 | Java | JetBrains/azure-tools-for-intellij | /Utils/AzureAuthenticationFilter/src/main/java/com/microsoft/azure/oidc/filter/configuration/authentication/AuthenticationConfigurationFactory.java | UTF-8 | 547 | 1.507813 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.azure.oidc.filter.configuration.authentication;
import java.util.List;
import java.util.Map;
public interface AuthenticationConfigu... | true |
6baa58836062dfc3790e3297547ea1e65d64c367 | Java | RajarshiBhattacharya-JA-17/JA-17-Lab-and-Assignments | /Lab_7/src/com/cg/eis/pl/UserInput.java | UTF-8 | 2,633 | 3.328125 | 3 | [] | no_license | /**
*
*/
package com.cg.eis.pl;
import java.util.Scanner;
import com.cg.eis.beans.Employee;
import com.cg.eis.service.EmployeeInsuranceSystem;
/**
* @author Rajarshi
*
*/
public class UserInput {
static Scanner sc = new Scanner(System.in);
static Long empId;
static String empName, empDes... | true |
7f3d33de15145823afb5cb40949dae10af1a7e8e | Java | robertcannon/jldLEMS | /src/org/lemsml/jlems/core/lite/model/OnEvent.java | UTF-8 | 265 | 1.726563 | 2 | [] | no_license | package org.lemsml.jlems.core.lite.model;
public class OnEvent extends OnAbstract {
public String port;
public OnEvent(String pn) {
super();
port = pn;
}
public OnEvent() {
super();
}
public String getPortName() {
return port;
}
}
| true |
939189b90086b4b0972cbd797e9566e031a0b71f | Java | danielsvr/crossv | /java/CrossV/src/org/crossv/strategies/StrategicIterableByContext.java | UTF-8 | 356 | 2.234375 | 2 | [] | no_license | package org.crossv.strategies;
import org.crossv.Evaluator;
public class StrategicIterableByContext extends StrategicIterable {
public StrategicIterableByContext(Iterable<? extends Evaluator> evaluators) {
super(evaluators);
}
@Override
public StrategicIterator iterator() {
return new StrategicIteratorByCon... | true |
ac5b60b517e92bb7fb1555c6e5a61c13996206db | Java | YunYungSeok/yys | /proxy/OldClient.java | UTF-8 | 189 | 1.679688 | 2 | [] | no_license | package proxy;
public class OldClient {
public static void main(String[] args) {
HelloWorld hello = new HelloWorldImpl();
System.out.println(hello.sayHello("JCLEE"));
}
} | true |
9afe9c5c43aa2beab67edb1e6eca9165ac3d433d | Java | guccio618/myLeetcode | /I_Facebook_LeetCode/src/Q013_Roman_to_Integer.java | UTF-8 | 1,684 | 3.8125 | 4 | [] | no_license | import java.util.*;
/*******
*
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
*
* */
public class Q013_Roman_to_Integer {
/*******************************************/
// solution1: using int[] hash
public int romanToInt(String s) {
if (s == ... | true |
fbeb51958d23b054317565d5f190e878984f911a | Java | louiskoo520/RestFulAPI | /src/main/java/com/lungcare/dicomfile/service/IUserService.java | UTF-8 | 778 | 1.914063 | 2 | [] | no_license | package com.lungcare.dicomfile.service;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.lungcare.dicomfile.entity.Login;
import com.lungcare.dicomfile.entity.User;
public interface IUserService {
public String login(HttpServletRequest request, String user_account,
String user_pas... | true |
acb5ea20990b68678c51988f5f5307884740bcc7 | Java | clyao/mcms | /mcms/src/com/mingsoft/weixin/entity/OauthEntity.java | UTF-8 | 3,933 | 2.296875 | 2 | [] | no_license | /**
The MIT License (MIT) * Copyright (c) 2016 铭飞科技(mingsoft.net)
* 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 rights to
* use, c... | true |
c20b68957b7c2785e732452fe2e0cca283033138 | Java | moushao/WorkManager-master | /workmanager_lib/src/main/java/com/moushao/workmanager/lib/injection/Injection.java | UTF-8 | 299 | 1.773438 | 2 | [] | no_license | package com.moushao.workmanager.lib.injection;
import com.moushao.workmanager.lib.ReportRepository;
import com.moushao.workmanager.lib.work.ReportRepositoryImpl;
public class Injection {
public static ReportRepository getReportRepository() {
return new ReportRepositoryImpl();
}
}
| true |
0ef97d0cc8cc528337e245fc2dda6566b3f689b1 | Java | HenriqueDario/Ecommerce | /src/br/com/darioprod/ecommerce/controller/UpdateProduct.java | UTF-8 | 2,329 | 2.359375 | 2 | [] | no_license | package br.com.darioprod.ecommerce.controller;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ja... | true |
9cf1f688001cf0fd251afa33068bb705fb278c1a | Java | zksun/sunspace | /space-jini-platform/src/main/java/net/jini/core/lease/LeaseException.java | UTF-8 | 233 | 2.015625 | 2 | [] | no_license | package net.jini.core.lease;
/**
* Created by zksun on 25/01/2017.
*/
public class LeaseException extends Exception {
public LeaseException() {
}
public LeaseException(String reason) {
super(reason);
}
}
| true |
fd8ae5e02f79373647bd75d14ec44e506fe585bb | Java | Viren-P/blogforum | /src/main/java/com/springdemo/springrestforum/controller/CategoryController.java | UTF-8 | 1,745 | 2.1875 | 2 | [] | no_license | package com.springdemo.springrestforum.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;... | true |
6af5c26572b0060ebf92dd3deeec1ffa99f6025e | Java | DmitryKober/SchedulingProblem | /BaseAlgorithms/src/main/java/services/fitness/IndividualFitnessFunction.java | UTF-8 | 213 | 2.0625 | 2 | [] | no_license | package services.fitness;
import domain.ga.Individual;
/**
* User: dmitry
* Date: 28.01.12
* Time: 19:15
*/
public interface IndividualFitnessFunction {
public long evaluate(Individual individual);
}
| true |
d41465440344273140b79ae925161235b2d42158 | Java | OwlinLight/DB_proj | /src/main/java/pers/shayz/crud/bean/Problem.java | UTF-8 | 1,617 | 2.1875 | 2 | [] | no_license | package pers.shayz.crud.bean;
import java.util.Date;
public class Problem {
private Integer id;
private String title;
private String description;
private Integer topicId;
private Date publishedDate;
private Integer updatedDate;
private Integer click;
private String state;
p... | true |
336eecf496ee1cf88d8f840ec770617cfb5d2f4f | Java | logandillard/game-players | /src/com/dillard/nn/LayerBatchActivation.java | UTF-8 | 868 | 2.03125 | 2 | [] | no_license | package com.dillard.nn;
import java.io.Serializable;
import java.util.List;
public class LayerBatchActivation implements Serializable {
private static final long serialVersionUID = 1L;
public final List<double[]> inputs;
public final List<double[]> outputs;
public final double[] means;
public fina... | true |
6a340d07899cb76e9c6d214a91a4cca6c20c78ff | Java | julienlinder/StockArc | /StockArc/src/main/java/ch/hearc/stockarc/service/UserService.java | UTF-8 | 3,277 | 2.265625 | 2 | [] | no_license | package ch.hearc.stockarc.service;
import java.util.ArrayList;
import java.util.Arrays;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import ch.hear... | true |
ab466007ecaba68966ecd1423b4a5b1c9b232ca5 | Java | Eversor11/TiraLabra | /Tiralabra/src/gui/Kayttoliittyma.java | UTF-8 | 91,178 | 2.265625 | 2 | [] | no_license | package gui;
import apuneuvot.MatriisienLukija;
import apuneuvot.MatriisienTallentaja;
import java.util.Scanner;
import javax.swing.JOptionPane;
import logiikka.Matriisilaskin;
/**
* Kayttoliittyma-luokka, joka perii JFrame-luokan ja toimii matriisilaskimen
* graafisena käyttöliittymänä. Toteutettu Netbeansin GUI-... | true |
173d9a193b02bcfce308bcb29f65fb2ff1b7e9ba | Java | lisboy/blog | /src/main/java/lisboyblog/service/admin/impl/PendingServiceImpl.java | UTF-8 | 788 | 1.960938 | 2 | [] | no_license | package lisboyblog.service.admin.impl;
import lisboyblog.mapper.PendingMapper;
import lisboyblog.pojo.Pending;
import lisboyblog.service.admin.PendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author FAN BOY
*... | true |
08e59eca87a264546a34442f327271d5e5fc7a88 | Java | hongweichang/mise-temp | /rmp-platform/src/main/java/com/neteast/rmp/rpc/serializer/impl/DateSerializer.java | UTF-8 | 4,828 | 2.53125 | 3 | [] | no_license | package com.neteast.rmp.rpc.serializer.impl;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import net.sf.json.JSONException;
import net.sf.json.JSONObject;
import com.neteast.rmp.rpc.serializer.AbstractSerializer;
import com.neteast.rmp.rpc.serializer.MarshallEx... | true |
bf5ad60b0304e09f25449a72331d8630e4c95821 | Java | kunkun777/lyjz | /ihrm-attendance/src/main/java/com/zxc/attendance/dao/ExtraDutyConfigDao.java | UTF-8 | 567 | 2.0625 | 2 | [] | no_license | package com.zxc.attendance.dao;
import com.zxc.model.atte.entity.ExtraDutyConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
public interface ExtraDutyConfigDao extends JpaRep... | true |
4718a27f8fe7a9f3d44bf044c7e4f761e8120b29 | Java | landtlord/HoGentStarter | /src/main/java/be/hogent/landtlord/hogentstarter/domain/service/mappers/UserMapper.java | UTF-8 | 1,111 | 2.453125 | 2 | [] | no_license | package be.hogent.landtlord.hogentstarter.domain.service.mappers;
import be.hogent.landtlord.hogentstarter.domain.bussines.User;
import be.hogent.landtlord.hogentstarter.domain.service.dto.UserDTO;
import static java.util.Objects.isNull;
public class UserMapper implements Mapper<User, UserDTO> {
@Override
pu... | true |
f4d38f0fb4700d02d0f2f85354bf34ccbf566b83 | Java | beckmarc/ProductMatchingDataset | /src/main/java/wdc/productcorpus/util/DeduplicatorSerial.java | UTF-8 | 3,664 | 2.625 | 3 | [] | no_license | package wdc.productcorpus.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import org.json.JSONObject;
import com.beust.jcommander.Parameter;
import com.beust.jcommande... | true |
87fff123bb4c4e91d0d4ecee6822b1d498bf6252 | Java | weikog/leyou-advance | /ly-search/src/main/java/com/leyou/search/utils/HighlightUtils.java | UTF-8 | 3,796 | 2.421875 | 2 | [] | no_license | package com.leyou.search.utils;
import com.leyou.common.utils.JsonUtils;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.SearchHits;
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.elasticsearch.sear... | true |
ea80d6d60840b91489cf8dd485cabc39833faa3c | Java | ruchiraw/product-es | /modules/components/social/org.wso2.carbon.social.cassandra/src/main/java/org/wso2/carbon/social/cassandra/Constants.java | UTF-8 | 1,408 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package org.wso2.carbon.social.cassandra;
public class Constants {
public static final String BODY_COLUMN = "payload_body";
public static final String ID_COLUMN = "payload_id";
public static final String CONTEXT_ID_COLUMN = "payload_context_id";
public static final String TIMESTAMP_COLUMN = "Timestamp"... | true |
3e43ec4cc17d386401de339c24dbc12732deef61 | Java | evilhawk00/AppGroup | /PzADSDK/src/com/prize/prizeappoutad/view/SlotAdView.java | UTF-8 | 6,407 | 1.875 | 2 | [] | no_license | package com.prize.prizeappoutad.view;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.Gravity;
import andro... | true |
1422471e77c1b239de5ed25b56a21c446af8723b | Java | AdrianVinatoru/jpa | /src/main/java/com/tutorial/hibernate/service/UserService.java | UTF-8 | 344 | 2.09375 | 2 | [] | no_license | package com.tutorial.hibernate.service;
import com.tutorial.hibernate.entitites.UserEntity;
import java.util.List;
public interface UserService {
void saveUser(UserEntity userEntity);
List<UserEntity> getUsers();
void updateUser(UserEntity userEntity);
UserEntity getUserById(int id);
void de... | true |
acd70c35c7a0fcf7d2bcb027fa25bf53a8d6dfa9 | Java | BuyoDe/ClassicAlgorithm | /数组中只出现一次的数.java | UTF-8 | 572 | 3.1875 | 3 | [] | no_license | package 剑指offer;
import java.util.ArrayList;
import java.util.List;
public class 数组中只出现一次的数 {
public void FindNumsAppearOnce(int [] array,int num1[],int num2[]){
List<Integer> list = new ArrayList<Integer>();
for(int i=0;i<array.length;i++){
if(!list.contains(array[i]))
list.add(array[i]);
e... | true |
62d14b22e66bf061d3445f43bc17aff499bd5467 | Java | Gayaprasad786/javacoreall | /JavaCore/src/com/javaBasics/www/PrimeOrNot.java | UTF-8 | 512 | 3.59375 | 4 | [] | no_license | package com.javaBasics.www;
import java.util.Scanner;
public class PrimeOrNot {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
System.out.println("Enter the Number : ");
int num=sc.nextInt();
int temp=0;
for (int i = 2; i<= num ; i++)
{
... | true |
6795301ddfa298cd17718fe3a09e18bd1a642b98 | Java | messi1913/jdfaster | /jdfaster/src/main/java/com/jdfaster/test/services/run/RunTestIn.java | UTF-8 | 528 | 1.921875 | 2 | [] | no_license | package com.jdfaster.test.services.run;
import com.jdfaster.test.services.get_list.GetTestListOut.TestInfo;
import com.jdfaster.test.services.set_configs.SetTestConfigsIn;
public class RunTestIn extends SetTestConfigsIn {
public RunTestIn() {
}
public RunTestIn(TestInfo testInfo) {
super();
... | true |
7afd1c1b244c09501ca790bc54d8ad4cc2c94a5a | Java | shubhamv108/microservices-architectural-design-patterns | /saga/orchestrator/services/payment/src/main/java/architectures/microservices/design/saga/orchestrator/services/payment/events/PaymentsEventsHandler.java | UTF-8 | 1,575 | 2.1875 | 2 | [] | no_license | package architectures.microservices.design.saga.orchestrator.services.payment.events;
import architectures.microservices.design.saga.orchestrator.library.commons.events.PaymentCancelledEvent;
import architectures.microservices.design.saga.orchestrator.library.commons.events.PaymentProcessedEvent;
import architectures.... | true |
91f7d98a4b81dcbd92621b2fce1056cd1c1153e1 | Java | Rulso/IBM-practicas | /Ej2/src/main/java/com/example/controller/Ej2Controller.java | UTF-8 | 857 | 1.929688 | 2 | [] | no_license | package com.example.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframewo... | true |
34e7a3ba6d578929675b59ebfde8a918ce8c4eed | Java | tyang98/APCS | /CarProject/src/CarTester.java | UTF-8 | 1,515 | 4.0625 | 4 | [] | no_license |
public class CarTester {
public static void main(String[] args)
{
Car car1 = new Car("2017 BMW M3", "Sedan" , 6, 15, 30);
System.out.println(car1);
System.out.println("Your car will drive now");
car1.driveCar(15); //Car drives 15 miles
System.out.println("Your car has drive... | true |
0c0ce413b19f03ebbc82cf8ee5c0f8dd56b8a7a8 | Java | BeYkeRYkt/MinecraftServerDec | /src/net/minecraft/BlockHay.java | UTF-8 | 987 | 1.90625 | 2 | [] | no_license | package net.minecraft;
public class BlockHay extends baa {
public BlockHay() {
super(Material.GRASS);
this.setBlockState(this.L.b().a(M, el.b));
this.a(CreativeModeTab.BUILDING_BLOCKS);
}
public IBlockState setData(int var1) {
el var2 = el.b;
int var3 = var1 & 12;
if (var3 == 4) {
var2 = el.a;
} ... | true |
2c316909516de1ed99323e39aa9742e14e4dbfaa | Java | BourgeoisThibault/PDS_Ing1 | /pdsApp/src/app/models/other/datasetPieChart.java | UTF-8 | 1,144 | 2.859375 | 3 | [] | no_license |
package app.models.other;
import java.util.ArrayList;
import org.jfree.data.general.DefaultPieDataset;
public class datasetPieChart {
private String key;
private int value;
private ArrayList<datasetPieChart> collect;
public datasetPieChart() {
this.key = "";
this.... | true |
fde1f5896c1cf1303415ad7a28747b8e917b4f82 | Java | team7android/TugasAndroid | /app/src/main/java/com/andlab/tugasandroid/Result/Result.java | UTF-8 | 1,452 | 2.125 | 2 | [] | no_license | package com.andlab.tugasandroid.Result;
import com.google.gson.annotations.SerializedName;
/**
* Created by greatsoft on 09/11/18.
*/
public class Result {
@SerializedName("id_user")
String id_user;
@SerializedName("username")
String username;
@SerializedName("nama_user")
String nama_user... | true |
f796a1f45405d32625375dc18220f41029d08b06 | Java | Cscotttaakan/Data-Structures | /Google Drive/Dixon 430 2017/BinaryTree/src/BTreeNode.java | UTF-8 | 1,179 | 2.796875 | 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.
*/
/**
*
* @author user
*/
public class BTreeNode extends GenericItemType{
private StringDataItem data = new StringDataItem();
... | true |
b741d88e3f139a622205d2a68340146b9aa9222e | Java | moutainhigh/foss | /pkp/pkp-waybill-share/src/main/java/com/deppon/foss/module/pickup/waybill/shared/dto/ModifyBillWriteoffDto.java | UTF-8 | 5,561 | 1.835938 | 2 | [] | no_license | /**
* initial comments.
*/
/*******************************************************************************
* Copyright 2013 PKP
*
* 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
*
... | true |
7f4ea71ead00ed5c9a76e93f7d4778d762122a7d | Java | DULYhoit/Project2 | /src/main/java/kr/or/eutchapedia/main/entity/MovieInfoVo.java | UTF-8 | 3,090 | 2.171875 | 2 | [] | no_license | package kr.or.eutchapedia.main.entity;
public class MovieInfoVo {
private String movieDocId;
private String title;
private String titleOrg;
private String nation;
private String movieRunningTime;
private String rating;
private String prodYear;
private String posterUri;
private String genre;
private String ... | true |
cc140dee5d9083462551e504553f2260491346f7 | Java | ksgergis/hackerranck | /algorithms/graph/JourneyToTheMoon.java | UTF-8 | 1,798 | 3.03125 | 3 | [] | no_license | //question link https://www.hackerrank.com/challenges/journey-to-the-moon
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int numOfAstronuts = in.nextInt();
int numOfConnections ... | true |
62accb2b5ba3a6c6e40f53f8f782602afbcef0fa | Java | zubair193/CountryFlag | /app/src/main/java/com/example/muhammadzubair/countryflag/MyAdapter.java | UTF-8 | 2,474 | 2.359375 | 2 | [] | no_license | package com.example.muhammadzubair.countryflag;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import androi... | true |
27417b5d1239c0cd7f493e7a0a7a0a0e2c96c9f8 | Java | GabrielVilen/software-analytics | /src/main/java/asm/R1/CoreFeatureChecker.java | UTF-8 | 2,343 | 2.703125 | 3 | [] | no_license | package asm.R1;
import java.io.*;
import java.nio.file.*;
import java.text.Collator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by gabriel on 2017-11-02.
*/
public class CoreFeatureChecker {
private final Path path;
private List<String> c... | true |
31a78cab81f7d92ee9bff24ac8a2e21abe5b43a0 | Java | ozgengunay/goldennode-group | /goldennode-client/src/main/java/com/goldennode/client/service/ConditionService.java | UTF-8 | 1,006 | 2.21875 | 2 | [] | no_license | package com.goldennode.client.service;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import com.goldennode.client.GoldenNodeException;
public interface ConditionService {
public void await(String lockId, String conditionId, String threadId) throws GoldenNodeException;
public void awaitUninterr... | true |
5629a77f193d567cbe22745d929e1d82c18bf575 | Java | Yat3s/Caper | /app/src/main/java/com/yat3s/demo/caper/widget/ViewWrapper.java | UTF-8 | 751 | 2.53125 | 3 | [] | no_license | package com.yat3s.demo.caper.widget;
import android.view.View;
/**
* Created by Yat3s on 17/12/2016.
* Email: hawkoyates@gmail.com
* GitHub: https://github.com/yat3s
*/
public class ViewWrapper {
private View targetView;
public ViewWrapper(View targetView) {
this.targetView = targetView;
}
... | true |
6d98c8b2d06f84b400bd835b89fbea0c15978ae7 | Java | BaseMax/PopularAndroidSource | /cab.snapp.passenger.play_184.apk-decompiled/sources/com/raizlabs/android/dbflow/structure/a/c.java | UTF-8 | 590 | 2.0625 | 2 | [] | no_license | package com.raizlabs.android.dbflow.structure.a;
public abstract class c<TModel, CacheClass> {
/* renamed from: a reason: collision with root package name */
private CacheClass f5199a;
public abstract void addModel(Object obj, TModel tmodel);
public abstract void clear();
public abstract TMode... | true |
a453dd2abe534bf887231d3d2f01f04b112b0f0c | Java | chuileyiyefeng/CustomerView | /app/src/main/java/com/example/rico/customerview/layoutManager/CardTouchListener.java | UTF-8 | 1,242 | 2.359375 | 2 | [] | no_license | package com.example.rico.customerview.layoutManager;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.ItemTouchHelper;
import com.example.rico.customerview.adapter.BaseAdapter;
public class CardTouchListener extends ItemTouchHelper.SimpleCallb... | true |
d1fa37b9ddbfde89cbbfb1e6a32db815d2c21f66 | Java | vanchpuck/StegoTest | /src/ru/jonnygold/stego/ImageStegoFactory.java | UTF-8 | 5,796 | 2.484375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ru.jonnygold.stego;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.Raster;
import java.awt.image.SampleModel;
import java.awt.image.WritableRaster;
import... | true |
55f8f07dd5aaf57c4de77bd2057da23c8d88edfe | Java | ipholo/crackingTheCodeInterviewPersonalSolutions | /test/crackingthecodinginterviewpersonalsolutions/stacksAndQueues/StackWithMinTest.java | UTF-8 | 1,496 | 3.171875 | 3 | [] | no_license | /*
* Test to Stack With Min class.
*/
package crackingthecodinginterviewpersonalsolutions.stacksAndQueues;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
/*
* @author Leopoldo Hernandez
* @linktourl http://www.ipolo.hol.es
*/
public class StackWithMinTest {
... | true |
744272cb280f9d93333fdec1fdecc00dc454b499 | Java | nelson1122/SigeodepSIG | /src/java/model/dao/RelationVariablesFacade.java | UTF-8 | 1,200 | 2.0625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model.dao;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import model.pojo.RelationVariables;
/**
*
* @a... | true |
7165a5c07faac04f562d5f5c586f2e53b5c85c3f | Java | kirillmega000/Java_labs | /CalculatorSource/src/Calculator.java | UTF-8 | 4,527 | 3.140625 | 3 | [] | no_license | import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.util.Scanner;
//парсинг строки в выражение
public class Calculator {
public static void main(String[] args) throws ScriptException {
Scanner sc=new Scanner(System.in);
Stri... | true |
7027d184fd055a74b9860dde6e5cfaa50380078c | Java | sunjiecheng/java-web | /01-mall-servlet/src/main/java/service/PropertyService.java | UTF-8 | 1,373 | 2.546875 | 3 | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | package service;
import bean.Product;
import bean.Property;
import bean.PropertyValue;
import dao.PropertyDAO;
import dao.PropertyValueDAO;
import java.util.HashMap;
import java.util.List;
public class PropertyService {
private PropertyDAO dao = new PropertyDAO();
public int getTotal(int cid) {return dao.get... | true |
f144f7ae4a9cda631d2faac4a306b70bfa43d9ea | Java | SofiaBrittoSchwartz/CWLTScheduleGenerator | /Algorithm/Algorithm/src/Master.java | UTF-8 | 31,779 | 2.921875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.Scanner;
import com.google.gson.*;
public class Master {
private static final int FAILED_SHIFT_SCORE... | true |
b1f65c79c21f7cab16a9bc8c2341bc255887669c | Java | pericasimic/DjoleAPP | /src/djoleapp/business/model/Occupant.java | UTF-8 | 4,268 | 2.390625 | 2 | [] | no_license | package djoleapp.business.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Occupant implements Serializable {
private long id;
private String firstNameOccupant;
private String lastNameOccupant;
private String identificationNumber;
pri... | true |
9ec720e346968c948d86df64d779eefe97ee0e31 | Java | stuxo/REDAndroid | /app/src/main/java/ch/redacted/data/model/Artist.java | UTF-8 | 4,849 | 1.820313 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package ch.redacted.data.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by sxo on 16/02/17.
*/
public class Artist {
@SerializedName("status")
public String status;
@SerializedName("response")
public Response response;
public static class Tags ... | true |
6cc0618fecc52566aa7b3a01df614bc2d7927b77 | Java | krendil/asi-estimator | /src/asi/server/GetHistoryServlet.java | UTF-8 | 2,590 | 2.5 | 2 | [] | no_license | package asi.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.serv... | true |