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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c86da7d021199f85540133a66290a0ba5bc9d6c9 | Java | SinoryWu/DaoqiManagement1.0 | /app/src/main/java/com/example/daoqimanagement/bean/PartnerPrepareListResponse.java | UTF-8 | 8,834 | 2.171875 | 2 | [] | no_license | package com.example.daoqimanagement.bean;
import java.util.List;
public class PartnerPrepareListResponse {
/**
* code : 0
* data : {"current_page":1,"data":[{"hospitalid":1,"protectTime":null,"prepareId":20,"status":1,"productName":"八戒睡眠-购买设备","hospitalName":"杭州市第一人民医院","truename":"荔枝面","hospitalPic":... | true |
f0716fd04365b9247f7d590a5ae13b845387e141 | Java | husainahmad/wings | /src/java/com/wings/web/struts/forms/JobsheetsoForm.java | UTF-8 | 10,384 | 1.835938 | 2 | [] | no_license |
package com.wings.web.struts.forms;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action... | true |
df1c63da65ccc8524d6c6378fb0b782eac076f3e | Java | omochi/IronCake-Android-Module | /src/main/java/com/omochimetaru/ironcake/Activity.java | UTF-8 | 2,196 | 2.328125 | 2 | [] | no_license | package com.omochimetaru.ironcake;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
/**
* Created by omochi on 2014/01/24.
*/
/*
onCreateでapplicationのLaunch,
eglDisplayの初期化
onCreateのユーザサイドで画面configを設定しておく
onSurfaceTex... | true |
c4b8a1eb191ceaead6db15d29d0777331d7b5af8 | Java | Vishal904/Machine-Learning | /Java Projects/HibernateProject/src/main/java/EditPost.java | UTF-8 | 2,647 | 2.59375 | 3 | [] | no_license | import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
i... | true |
a4c9a804e3a5ae61853773d89f75592b1b63f65b | Java | atthisaccount/SPay-inner-workings | /boot.oat_files/arm64/dex/out1/com/broadcom/fm/fmreceiver/IFmReceiverCallback.java | UTF-8 | 7,719 | 2.140625 | 2 | [] | no_license | package com.broadcom.fm.fmreceiver;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
public interface IFmReceiverCallback extends IInterface {
public static abstract class Stub extends Binder implements IFmReceiverCall... | true |
64b6e338cc40e9aa4e9c1d62d8b1f50f3b0b8269 | Java | mrbing47/KPIT | /app/src/main/java/garg/sarthik/kpit/POJO/Order.java | UTF-8 | 2,660 | 2.390625 | 2 | [] | no_license | package garg.sarthik.kpit.POJO;
import android.os.Parcel;
import android.os.Parcelable;
public class Order implements Parcelable {
//Order will be in the format of -> YYYYMMDDHHMMSS-SR
String orderId;
String bookedTime;
String arrivalTime;
String bookingStatus;
String userId;
int slots;... | true |
eb569bde05dd05cfa7e8a17c7b7adec54cd68efa | Java | loveuu715/ZFDemo | /app/src/main/java/com/loveuu/vv/api/core/ApiService.java | UTF-8 | 6,422 | 2.265625 | 2 | [] | no_license | package com.loveuu.vv.api.core;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.loveuu.vv.api.ICallback;
import com.loveuu.vv.api.JsonParser;
import com.loveuu.vv.utils.LogUtil;
import rx.Observable;
import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Sch... | true |
86ae1ae1f7f853d674f6cb5332a5a20926688f60 | Java | Trovy/health | /health_parent/health_dao/src/main/java/com/trovy/health/dao/CheckItemDao.java | UTF-8 | 374 | 1.945313 | 2 | [] | no_license | package com.trovy.health.dao;
import com.trovy.health.pojo.CheckItem;
import java.util.List;
/**
* @Author: Trovy
* @Date: 2020/10/23 10:18
*/
public interface CheckItemDao {
/**
* 查询所有检查项
* @return
*/
List<CheckItem> findAll();
/**
* 添加检查项
* @param checkItem
*/
voi... | true |
223ab6d090527fa01ed247435eb1203265e2c28b | Java | JetBrains/MPS | /languages/languageDesign/editor/source_gen/jetbrains/mps/lang/editor/editor/AttributeStyleClassItem_SubstituteMenu.java | UTF-8 | 3,662 | 1.570313 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.lang.editor.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.menus.substitute.SubstituteMenuBase;
import jetbrains.mps.lang.editor.menus.EditorMenuDescriptorBase;
import jetbrains.mps.smodel.SNodePointer;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import jetbra... | true |
ca63d7ee010cf4bc0a9574f6daca8191d7eb5010 | Java | guptamudit1992/Healthcare_DocnPat | /app/src/main/java/com/careons/app/Patient/Enums/AlbumTag.java | UTF-8 | 360 | 2.3125 | 2 | [] | no_license | package com.careons.app.Patient.Enums;
public enum AlbumTag {
Bills("Bills"),
Medicines("Medicines"),
LabReports("Lab Reports"),
Prescription("Prescription"),
Others("Others");
private final String albumTag;
AlbumTag(String s) {
albumTag = s;
}
public String getAlbumTag... | true |
1d9d7156b98fa443b0d3c791c5b3f65543c9d7d9 | Java | xtayicy/Dubbo | /dubbo-provider/src/main/java/harry/dubbo/service/impl/DemoService.java | UTF-8 | 455 | 2.109375 | 2 | [] | no_license | package harry.dubbo.service.impl;
import org.springframework.stereotype.Service;
import harry.dubbo.entity.Computer;
import harry.dubbo.entity.User;
import harry.dubbo.service.IDemoService;
/**
*
* @author harry
*
*/
@Service
public class DemoService implements IDemoService {
public User query... | true |
edeabb395e376f6f6a747011554f5b560238c6e1 | Java | ch-egli/logbook2 | /logbook-service/src/main/java/ch/egli/training/repository/BenutzerRepository.java | UTF-8 | 640 | 1.953125 | 2 | [] | no_license | package ch.egli.training.repository;
import ch.egli.training.model.Benutzer;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Repository for entity Benutz... | true |
5dbc185afda67c61099d1e91de0ab018583d9281 | Java | piyushagade/Coding-Interview-Preparation | /HashMaps/Practice.java | UTF-8 | 4,266 | 3.46875 | 3 | [] | no_license | public class Practice{
// MARK: Copy LinkedList with random pointers
public Node copyListWithRandomPointers(Node head){
HashMap<Node, Node> map = new HashMap();
for(Node cur = head; cur != null; cur = cur.next)
map.put(cur, new Node(Cur.value));
for(Node cur = ... | true |
d7e1cbb68010361b3aa8aad5d78b6b2cd4995cdd | Java | DhanviDesai/CodeShop | /app/src/main/java/com/example/codeshop/CheckOutActivity.java | UTF-8 | 1,922 | 2.296875 | 2 | [] | no_license | package com.example.codeshop;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.examp... | true |
8193fab1bba15d23534a5a172681c8824910759b | Java | musicalwave/artbureau | /web/src/main/java/com/itsoft/ab/controllers/tm/AdminController.java | UTF-8 | 4,114 | 2.21875 | 2 | [] | no_license | package com.itsoft.ab.controllers.tm;
import com.itsoft.ab.beans.AuthMaster;
import com.itsoft.ab.beans.JournalMaster;
import com.itsoft.ab.beans.UserMaster;
import com.itsoft.ab.exceptions.ApplicationException;
import com.itsoft.ab.model.JClientsModel;
import com.itsoft.ab.model.JLessonTransfer;
import com.itsoft.ab.... | true |
cd3ccaff2ae99adc416d1cad75ca41abde09183a | Java | Alibay74/AppleProject | /src/ClassOne.java | UTF-8 | 171 | 1.898438 | 2 | [] | no_license |
public class ClassOne {
public static void main(String[] args) {
System.out.println("Hello");
System.out.println("Hello Alibay");
System.out.println("Hello Alibay Aitov");
}
}
| true |
a776cba3b342dbd2ccc08d9ccaaa9bedd5351e8d | Java | mendor71/mhelper | /src/main/java/ru/pack/csps/entity/InvestRequests.java | UTF-8 | 10,220 | 1.828125 | 2 | [] | no_license | package ru.pack.csps.entity;
/**
* Created by Mendor on 24.10.2017.
*/
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.springframework.hateoas.ResourceSupport;
im... | true |
d428d5cc5b0625e04a8d0a628709e27bc297084d | Java | denghang1989/demo | /plugin_didi/src/main/java/dhcc/cn/com/plugin_didi/MainActivity.java | UTF-8 | 1,103 | 2.09375 | 2 | [] | no_license | package dhcc.cn.com.plugin_didi;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.didi.virtualapk.PluginManager;
import java.io.File;
public class MainActivity extends AppCompatActivity {
... | true |
f33aadb37349b366e001793117c549c2155062f2 | Java | bankass79/programmingExercices2 | /src/LinearSearch.java | UTF-8 | 1,242 | 3.796875 | 4 | [] | no_license | import javax.swing.JOptionPane;
public class LinearSearch {
/** Main method */
public static void main(String[] args) {
int[] list = new int[10];
// Declare and initialized output string
String output = "";
// Create the list randomly and display it
System.out.println("The li... | true |
026a53b2fd810f62b58952b9e04117e15cc3e7be | Java | bryanjglass/wake | /src/main/java/wake/repository/WebSocketTraceRepository.java | UTF-8 | 692 | 2.203125 | 2 | [] | no_license | package wake.repository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import wake.model.Trace;
import java.time.Instant;
import java.util.Collections;
import java.util.List;
import java.util.Map;
public class WebSocketTraceRepository ... | true |
16ac27fd1a3df02ea7e0405f262974fabba85ecd | Java | RyanWRowland/numeral-system-converter | /Numeral System Converter/task/src/converter/Main.java | UTF-8 | 663 | 3.296875 | 3 | [] | no_license | package converter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int sourceRadix = 0;
String sourceNumber = "";
int targetRadix = 0;
try {
sourceRadix = Integer.parseInt(scanner.... | true |
e59a414be37ead8f01042738281fdfc524e1f618 | Java | qiaoyansong/graduation_design_background | /src/main/java/com/qiaoyansong/controller/SeekHelpController.java | UTF-8 | 2,274 | 2.078125 | 2 | [] | no_license | package com.qiaoyansong.controller;
import com.qiaoyansong.entity.background.PageHelper;
import com.qiaoyansong.entity.background.ResponseEntity;
import com.qiaoyansong.entity.background.SearchCondition;
import com.qiaoyansong.entity.background.SeekHelp;
import com.qiaoyansong.service.SeekHelpService;
import org.slf4j... | true |
f155ea35b3bffcfe12352678b12c69efd6e952b9 | Java | wugeo0824/nickel_android | /app/src/main/java/com/media2359/nickel/history/HistoryMVPAdapter.java | UTF-8 | 2,252 | 2.34375 | 2 | [] | no_license | package com.media2359.nickel.history;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.media2359.nickel.R;
import com.media2359.nickel.model.NickelTransfer;
import com.media2359.nickel... | true |
b4b0a28e8e238727f07a31db1ee8e3541e0b1e72 | Java | pangkai59/dp_boot | /src/main/java/net/chenlin/dp/modules/goods/manager/impl/GoodsInformManagerImpl.java | UTF-8 | 1,461 | 1.875 | 2 | [] | no_license | package net.chenlin.dp.modules.goods.manager.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.goods.dao.GoodsI... | true |
f52302f9c00540cf72cc334355107d670acb84be | Java | whdnjsdyd111/backup | /이것이자바다/src/챕터11_기본API클래스/ㅎ_Date와Calendar클래스/ㄴ_Calendar클래스/PrintTimeZone.java | UHC | 1,430 | 3.4375 | 3 | [] | no_license | package é11_⺻APIŬ._DateCalendarŬ._CalendarŬ;
import java.util.TimeZone;
public class PrintTimeZone {
// ٸ ð뿡 شϴ ¥ ð ϱ ؼ ؾұ?
// ̱/ν ¥ ð ϱ ؼ ؾ ұ?
// ü ð븦 ٸ ð ٲٴ ͵ ,
// Calendar Ŭ ε ٸ getInstance() ҵ带 ̿ϸ ϰ ٸ ð Calendar ִ.
// ˰ ð java.util.TimeZone ü Calendar.getInstance() ҵ Ű Ѱָ ȴ.
// TimeZone ... | true |
b6d28e54620628049fab33ecb731679d2d8e7d68 | Java | gigauser/lsp | /src/main/java/com/home/ls/spring/config/SpringJavaConfiguration.java | UTF-8 | 973 | 1.960938 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.home.ls.spring.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.C... | true |
c42fed8a0c22ffd8994b53a2c3c97d6ff225acb0 | Java | stone-wall/pklite | /runelite-client/src/main/java/net/runelite/client/plugins/friendtagging/FriendTaggingPlugin.java | UTF-8 | 8,969 | 1.726563 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2019. PKLite - All Rights Reserved
* Unauthorized modification, distribution, or possession of this source file, via any medium is strictly prohibited.
* Proprietary and confidential. Refer to PKLite License file for more information on
* full terms of this copyright and to determine what consti... | true |
eb4d5acbc8d6780e864e1880dfdddb71570c0e18 | Java | MerzCheung/springcloud_demo | /serice-feign/src/main/java/com/example/demo/FeignServiceHystrix.java | UTF-8 | 438 | 2.125 | 2 | [] | no_license | package com.example.demo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author merz
* @Description: 熔断处理
* @date 2019/3/19 21:07
*/
@Component
public class FeignServiceHystrix implements FeignExampleService {
@Override
public String he... | true |
cb13677e9869996634adaf07c2b4adabb029ae99 | Java | basusingh/NSS-PGDAV-College | /database_preference/DatabaseManagement_Registration.java | UTF-8 | 1,053 | 2.1875 | 2 | [] | no_license | package com.basusingh.nsspgdav.database_preference;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by Basu Singh on 10/11/2016.
*/
public class DatabaseManagement_Registration extends SQLiteOpenHelper {
private stati... | true |
b7d1678f40afd898dc26b0876bb765dbc1c9cb06 | Java | zhang1998/browser | /second/quark/src/main/java/com/uc/weex/component/c/a/q.java | UTF-8 | 1,789 | 1.773438 | 2 | [] | no_license | package com.uc.weex.component.c.a;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import com.uc.imagecodec.export.IPictureView;
import com.uc.weex.component.c.a.a.a;
/* compiled from: ProGuard */
public abstract class q implements OnTouchListener, d {
protecte... | true |
a3d7604f2ffd9fbff26a06ddbae96be54382fa08 | Java | nantianyan/ExtMQTT | /p2pmqtt/src/main/java/com/cmteam/p2pmqtt/P2PMqttSyncRequest.java | UTF-8 | 2,000 | 2.453125 | 2 | [] | no_license | package com.cmteam.p2pmqtt;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by 阳旭东 on 2017/9/20.
*/
public class P2PMqttSyncRequest extends P2PMqttRequest{
private static final String TAG = "SimpleSyncRequest";
private final Object mRequestLock = new Obje... | true |
ab70fdd350ef9bfade2e587c425224c4c304262d | Java | Emysly/Department_model | /src/com/emysilva/util/CourseUtil.java | UTF-8 | 1,591 | 2.734375 | 3 | [] | no_license | package com.emysilva.util;
import java.util.Date;
public class CourseUtil {
private String name;
private int level;
private String department;
private String teacher;
private Date scheduledTime;
public CourseUtil(String name, int level, String department, String teacher, Date scheduledTime) {... | true |
73a402063c0f5b014ae42a45a64e4d74dee679ac | Java | ariyue/alsfrm | /AlsFramework-2.0.1/als-frm-2.0.0/com/als/frm/bas/ddl/RstMsgType.java | UTF-8 | 281 | 2.109375 | 2 | [] | no_license | package com.als.frm.bas.ddl;
/**
* web请求返回消息类型
* @author Vincent
*
*/
public enum RstMsgType {
info,//标准信息
warning,//警示
error,//错误
question;//疑问
public static void main(String[] args) {
System.out.println(RstMsgType.info);
}
}
| true |
69ad99534783d818339214999d1d6ce86c0742cf | Java | kenteg/BirdsStore | /src/com/luxoft/gui/StoreForm.java | UTF-8 | 4,427 | 2.515625 | 3 | [] | no_license | package com.luxoft.gui;
import com.luxoft.birdsstore.BirdsStore;
import com.luxoft.birdsstore.DAO.DAOGoods;
import com.luxoft.birdsstore.DAO.DAOGoodsFileImpl;
import com.luxoft.birdsstore.DAO.DAOOrder;
import com.luxoft.birdsstore.DAO.DAOOrderFileImpl;
import com.luxoft.birdsstore.Store;
import com.luxoft.birdsstore.m... | true |
556bd2b1c8fbc3e15d9e6e06ab4680a7c744afe0 | Java | dbs-leipzig/gradoop | /gradoop-temporal/src/main/java/org/gradoop/temporal/model/impl/functions/tpgm/TemporalGraphHeadToGraphHead.java | UTF-8 | 1,936 | 2.25 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | /*
* Copyright © 2014 - 2021 Leipzig University (Database Research Group)
*
* 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
*
* Unles... | true |
363544f65729bae15f0de82b655aea4002cf727d | Java | JonathanGiovanny/SpringBootJWTBase | /src/main/java/com/jjo/h2/dto/HTypeDTO.java | UTF-8 | 181 | 1.664063 | 2 | [] | no_license | package com.jjo.h2.dto;
import javax.validation.constraints.NotNull;
import lombok.Data;
@Data
public class HTypeDTO {
private Integer id;
@NotNull
private String name;
}
| true |
01cec2fb90574268fc0586458324d74b13708b95 | Java | nidsarora/RiskGameTeam8 | /src/risk/view/RiskPlayerDominationViewObserver.java | UTF-8 | 2,192 | 2.578125 | 3 | [] | no_license | package risk.view;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.ScrollPaneConstants;
import risk.model.RiskP... | true |
3fdd4b96cb903dcd8383aadb35b5c34f1761873c | Java | yswname/TP226POM | /JavaWebShopping/src/main/java/cn/com/demo/javaweb/shopping/entity/SpCatalogue.java | UTF-8 | 713 | 1.929688 | 2 | [] | no_license | package cn.com.demo.javaweb.shopping.entity;
public class SpCatalogue {
private int ctId;
private String ctName;
private String ctRemark;
private Integer ctParentId;
public int getCtId() {
return ctId;
}
public void setCtId(int ctId) {
this.ctId = ctId;
}
public String getCtName()... | true |
9a5e48f4a00b8c90d114b98db622fa8000156fa0 | Java | wangjiahua1/myRedWineStore | /redwineshop/src/main/java/com/igeek/service/imp/MessageServiceImpl.java | UTF-8 | 566 | 2.0625 | 2 | [] | no_license | package com.igeek.service.imp;
import com.igeek.dao.MessageDao;
import com.igeek.domain.Message;
import com.igeek.service.MessageService;
import com.igeek.utils.BeanFactory;
import java.util.List;
/**
* Created by LENOVO on 2019/10/17.
*/
public class MessageServiceImpl implements MessageService {
MessageDao d... | true |
d48c5d846aaa058473f22ecf6fe6dfa244a86717 | Java | thvphuc246/BakingApp | /app/src/main/java/com/example/vinhphuc/bakingapp/presentation/recipe_details/RecipeDetailsPresenter.java | UTF-8 | 1,386 | 2.515625 | 3 | [] | no_license | package com.example.vinhphuc.bakingapp.presentation.recipe_details;
import com.example.vinhphuc.bakingapp.data.model.Recipe;
import com.example.vinhphuc.bakingapp.presentation.base.BasePresenter;
import static com.google.common.base.Preconditions.checkNotNull;
public class RecipeDetailsPresenter
extends Base... | true |
91b7792ec30ffb0b17f637e1271aa940dc1a137d | Java | tateconlon/TerrainGenerator | /src/renderEngine/Loader.java | UTF-8 | 4,728 | 2.71875 | 3 | [] | no_license | package renderEngine;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.List;
import models.RawModel;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import... | true |
f521197c984c9d21e7e80e88490f71876f2306f1 | Java | szzsa/keepalive-core | /src/main/java/ro/szzsa/keepalive/RequestProvider.java | UTF-8 | 146 | 1.78125 | 2 | [
"MIT"
] | permissive | package ro.szzsa.keepalive;
import ro.szzsa.keepalive.model.Request;
/**
*
*/
public interface RequestProvider {
Request getRequest();
}
| true |
fd8b0045d2b463d2e44750005666ce5b4a3fa7b5 | Java | Linusdalin/Pukka3 | /src/data/dataBaseLayer/RemoteSQL/RemoteObjectInterface.java | UTF-8 | 278 | 1.804688 | 2 | [] | no_license | package data.dataBaseLayer.RemoteSQL;
/**
* Created with IntelliJ IDEA.
* User: Linus
* Date: 2015-06-30
* Time: 19:02
* To change this template use File | Settings | File Templates.
*/
public interface RemoteObjectInterface {
String[] getValues();
}
| true |
38ae659c733b6a238acbe5af591c58431028806a | Java | SunjinPeng2017/furniture-be | /src/main/java/com/sun/furniture/Application.java | UTF-8 | 2,564 | 2.1875 | 2 | [] | no_license | package com.sun.furniture;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.log4j.Logger;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.s... | true |
7869f1bc5a48ec025357ebfd3771e3b92be8920a | Java | devicedrivendev/apitest | /src/main/java/com/dd/service/HttpApi.java | UTF-8 | 835 | 2.296875 | 2 | [] | no_license | package com.dd.service;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.PreDestroy;
imp... | true |
a2cebe189be2602e3187aa6b07ba338d3d33d318 | Java | davidrud135/Quizzer | /src/main/java/controllers/QuizzesListController.java | UTF-8 | 5,540 | 2.375 | 2 | [] | no_license | package controllers;
import com.google.gson.reflect.TypeToken;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Cursor;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
impo... | true |
391d0a27017cc7208f5da27062a2c5f1840545d3 | Java | zd87/tournament | /tournament/src/tournament/App.java | UTF-8 | 1,270 | 3.296875 | 3 | [] | no_license | package tournament;
import java.util.ArrayList;
import java.util.List;
public class App {
public static void main(String[] args) {
// create individual matches
IndividualMatch indMatchOne = new IndividualMatch(
new Player("Superman"), new Player("Batman"));
IndividualMatch indMatchTwo = new Indiv... | true |
7af07031f71992717ef03d2a6b6fdc811a8e28e8 | Java | ayushmanmishra98/handson-assignments | /case-study/case-study/src/com/org/exception/NotFound.java | UTF-8 | 159 | 2.140625 | 2 | [] | no_license | package com.org.exception;
public class NotFound extends Exception{
public NotFound() {
super("Not Found");
}
public NotFound(String msg) {
super(msg);
}
}
| true |
078fe4fb2b357bc663880fbd83e50344b4c52514 | Java | XGKerwin/X_ETC_54_64 | /app/src/main/java/com/example/x_etc_54_64/activity/Activity_clwz2.java | UTF-8 | 8,141 | 1.945313 | 2 | [] | no_license | package com.example.x_etc_54_64.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.example.x_etc_54_64.R;
import com.example.x_etc_54_64.bean.CLWZ;
i... | true |
50e7391f23c53306895005cbd2ae91c9ffdbacc8 | Java | malvitvik/selenium-autotests-google | /src/main/java/cucumber/pages/GoogleHome.java | UTF-8 | 694 | 2.34375 | 2 | [] | no_license | package cucumber.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.springframework.stereotype.Component;
@Component
public class GoogleHome extends Page {
private By bySearchField = By.name("q");
public GoogleHome open() {
open(getUrl());
LOG.debug("Googl... | true |
4610b610b59601435813760757b7080977b8843d | Java | kalyan-anna/aws-fake-sqs-dev-impl | /src/test/java/com/example/SqsQueueServiceTest.java | UTF-8 | 2,094 | 2.28125 | 2 | [] | no_license | package com.example;
import com.amazonaws.services.sqs.AmazonSQSClient;
import com.amazonaws.services.sqs.model.CreateQueueResult;
import com.amazonaws.services.sqs.model.ListQueuesResult;
import com.amazonaws.services.sqs.model.Message;
import com.amazonaws.services.sqs.model.ReceiveMessageResult;
import org.junit.Be... | true |
583c3307b1091762764a5cc7cf86457df10082d2 | Java | CVXIV/springboot | /src/main/java/com/example/springboot/Mail/AuthMail.java | UTF-8 | 3,350 | 2.3125 | 2 | [] | no_license | package com.example.springboot.Mail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.mail.javamail.JavaMailSender;
import org.sp... | true |
8d5054ffcb397e5c27aa84a80236a950cfde1466 | Java | kmssankar/DesignPatterns | /src/org/designpattern/behavioral/command/HRMApplication.java | UTF-8 | 403 | 2.53125 | 3 | [] | no_license | package org.designpattern.behavioral.command;
public class HRMApplication {
String application = "Peoplesoft HRM for NA";
int namedUsers = 200;
public void licenseSoftware()
{
System.out.println( application + " licensed to " + namedUsers + " namedUsers !");
}
public void DeploySoftware()
... | true |
73cbf1a8bc3a82131f3392d172d4bdd535d18daa | Java | lucasestevesr/sistema-monitoramento-ru | /Sistema/MonitoramentoRU/src/main/java/ufjf/dcc025/monitoramentoru/model/MonitorarLotacao.java | UTF-8 | 2,138 | 2.546875 | 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 ufjf.dcc025.monitoramentoru.model;
import javax.swing.JOptionPane;
import ufjf.dcc025.monitoramentoru.dao.BancoDeDadosUsuario;... | true |
e1b649837e35a06f507998e6ebd6d18a19b2c588 | Java | mmiglia/thesis-ug | /thesis-ug/src/main/java/web/TaskResource.java | UTF-8 | 3,313 | 2.765625 | 3 | [] | no_license | package web;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.CookieParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import valueobject.SingleTask... | true |
0d07e0297d1d89b8dfea79c22bfc4d58e1c8aceb | Java | Team5830/Infinite-Recharge-Robot | /src/main/java/frc/robot/misc/SensorReset.java | UTF-8 | 544 | 2.328125 | 2 | [
"MIT"
] | permissive | /**
* @author Hunter Pugh
*/
package frc.robot.misc;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class SensorReset {
public void ResetSensors(){
//Place sensor reset code here. Some examples:
//RobotContainer.ahrs.enableBoardlevelYawReset(true);
//RobotConta... | true |
d856694e044815b18248584bf2e32f13c84def65 | Java | md-sabbir-ullah/FirebaseCloudPushNotification-Android | /app/src/main/java/esenteq/project/pushnotificationapp/MainActivity.java | UTF-8 | 5,174 | 2.140625 | 2 | [] | no_license | package esenteq.project.pushnotificationapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import andr... | true |
9a0d7b02de9355bcf40451a3c4ad12c84c54c478 | Java | genalt/training_cp | /uva/old_java/MaxRectangleSubmatrix/src/MaxRectangleSubmatrix.java | UTF-8 | 770 | 3.109375 | 3 | [] | no_license | public class MaxRectangleSubmatrix {
static int getOneSubmatrix(int[][] matrix) {
int r = matrix.length;
int c = matrix[0].length;
int max_area = 0;
for (int i = 1; i < r; ++i)
for (int j = 0; j < c; ++j)
if (matrix[i][j] != 0)
... | true |
ab27fe48ace05068c85d7c75207f4ecc64e34052 | Java | onebroccoli/Algorithm_Java | /src/Q407_Trapping_Rain_Water_II.java | UTF-8 | 841 | 3.328125 | 3 | [] | no_license | /*
Given an m x n integer matrix heightMap representing the height of each unit cell in a 2D elevation map, return the volume of water it can trap after raining.
Example 1:
Input: heightMap = [[1,4,3,1,3,2],[3,2,1,3,2,4],[2,3,3,2,3,1]]
Output: 4
Explanation: After the rain, water is trapped between the blocks.
We ... | true |
9ded4024d6742a6e10221b6bed1d4cb5a5d12eaf | Java | pepinocj/SADG | /SADG_BackEnd/src/backEnd/RegularMode.java | UTF-8 | 1,063 | 3.015625 | 3 | [] | no_license | package backEnd;
import java.util.ArrayList;
import java.util.Map;
public class RegularMode extends GameMode {
@Override
public Map<String, Integer> assignSongs(SongPicker songPicker,GameState gameState) {
ArrayList<Person> players = gameState.getPlayers();
int nbOfSongsNeeded = players.size()/2;
System.ou... | true |
b06455ddaf83f84aceaef4d2c7432f8911e104da | Java | shum979/ProjectCat | /src/main/java/com/sparkTech/cat/AppContext.java | UTF-8 | 1,500 | 2.84375 | 3 | [] | no_license | package com.sparkTech.cat;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
/**
* Created by Shubham A Gupta on 02-May-18.
*/
public class AppContext {
private static P... | true |
16c49bf322137679cb7fb9b85ffd5015ca82b837 | Java | yanbinwa/serviceManagerCommon | /src/main/java/yanbinwa/common/file/FileWatcherImpl.java | UTF-8 | 5,237 | 3.21875 | 3 | [] | no_license | package yanbinwa.common.file;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
/*
* 监控多个文件的创建,修改和删除,并通过callback发送结果
* (返回应该是一个Map,key为文件,value为其文件的状态)
*
* 内部结构是一个Map,key为文件,value为该文件的修改时间,初始时间是-1,会定期去遍历所有register的
* 文件
*
* 1. 如果初始时间为-1,则要查看文件是否存在,如果存在了,说明该... | true |
9d5d54d3201c71435d25cf21c5fb5fc296e41189 | Java | codemenivo/Java-Basics-2019-may | /src/Lec_02_SimpleOperationsAndCalculations/Pro01_USDToBGN.java | UTF-8 | 419 | 3.375 | 3 | [] | no_license | package Lec_02_SimpleOperationsAndCalculations;
import java.util.Scanner;
public class Pro01_USDToBGN {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете сумата в USD: ");
double usd = Double.parseDouble(scanner.nextLine());
... | true |
85c1decf515dbf5b198c984f64926d3db198c655 | Java | wang-shun/rainiee-core | /modules/bid/bid-experience-console-service/src/main/java/com/dimeng/p2p/modules/bid/console/service/entity/BidReturn.java | UTF-8 | 374 | 1.75 | 2 | [] | no_license | /**
*
*/
package com.dimeng.p2p.modules.bid.console.service.entity;
/**
* 投资、流标、放款返回对象
*
* @author guopeng
*
*/
public class BidReturn {
/**
* 投资返回订单ID
*/
public int[] bidOrderIds;
/**
* 体验金投资返回ID
*/
public String experOrderIds;
/**
* 加息券放款订单ID
*/
public String couponOrderIds;
} | true |
feab8dadf413d0c66b2e603f47009b61ac635850 | Java | osudroid/osu-droid | /AndEngine/src/org/anddev/andengine/util/SAXUtils.java | UTF-8 | 6,614 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package org.anddev.andengine.util;
import org.xml.sax.Attributes;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 22:02:09 - 21.07.2010
*/
public class SAXUtils {
// ===========================================================
// Constants
// =====================... | true |
f4654d9d7cc173f1a55694495a7b907ef55be393 | Java | zhongxingyu/Seer | /Diff-Raw-Data/13/13_22ecdb6b8a51111943b198676a499bec794dee63/AlarmsScheduler/13_22ecdb6b8a51111943b198676a499bec794dee63_AlarmsScheduler_t.java | UTF-8 | 7,839 | 2.1875 | 2 | [] | no_license | /*
* Copyright (C) 2012 Yuriy Kulikov yuriy.kulikov.87@gmail.com
*
* 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
*
* Unl... | true |
c1651362c98822ee70b40c7ab036a78402a9ff6b | Java | ramkondadasu/HrOnlineReports | /src/main/java/texas/dot/hronline/services/PsEducDegreeDataHistMvwService.java | UTF-8 | 629 | 1.617188 | 2 | [] | no_license | package texas.dot.hronline.services;
import java.util.List;
import org.springframework.data.repository.query.Param;
import texas.dot.hronline.domain.PsEducDegreeDataHistMvw;
public interface PsEducDegreeDataHistMvwService {
List<PsEducDegreeDataHistMvw> findAllRecords();
List<PsEducDegreeDataHistMvw>... | true |
0a434c872af59bd894b33b3d3f18e8a4164213a2 | Java | YayeAwa/BASECOL-VAMDC | /TAP-PLUG-BASECOL2012/.svn/pristine/0a/0a434c872af59bd894b33b3d3f18e8a4164213a2.svn-base | UTF-8 | 709 | 2.140625 | 2 | [] | no_license | package org.vamdc.basecol.mapping;
import org.apache.cayenne.exp.Expression;
import org.apache.cayenne.exp.ExpressionFactory;
import org.vamdc.dictionary.Restrictable;
import org.vamdc.tapservice.querymapper.KeywordMapperImpl;
import org.vamdc.tapservice.vss2.RestrictExpression;
public class CollisionCodeMapper exten... | true |
83837a411d38a5d544d428f603cbe77167fff48e | Java | benediktwerner/UNO | /src/de/benedikt_werner/UNO/HumanPlayer.java | UTF-8 | 2,842 | 3.5625 | 4 | [] | no_license | package de.benedikt_werner.UNO;
import java.util.Scanner;
public class HumanPlayer extends PlayerController {
private Scanner in = new Scanner(System.in);
public static void main(String[] args) {
Player[] players = new Player[2];
players[0] = new Player("Bene", HumanPlayer.class);
pl... | true |
45c766cd8ce9aab0c780194fdcfef3beb7126a5b | Java | alfredjava/ibk-pys-aperturatc-v2-ms | /src/test/java/pe/com/interbank/pys/aperturatcv2/microservices/server/ServerCustomizerTest.java | UTF-8 | 457 | 1.976563 | 2 | [] | no_license | package pe.com.interbank.pys.aperturatcv2.microservices.server;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
import org.junit.Test;
public class ServerCustomizerTest {
@Test
public void serverCustomizerConstructTest(){
Server server = new Server();
server.a... | true |
ab794e83330db134859f3d6f2f5449a35bb0ddbe | Java | saurabhbhagat123/crudapi | /src/main/java/com/rest/service/PersonService.java | UTF-8 | 2,085 | 2.515625 | 3 | [] | no_license | package com.rest.service;
import com.rest.entity.Person;
import com.rest.exception.PersonAlreadyExistException;
import com.rest.exception.PersonNotFoundException;
import com.rest.repository.PersonRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
65fa5bd43cb4d9875d563798f112425b5e7e25e9 | Java | SadykUlan/prof | /app/src/main/java/com/example/ulan/prof/MainActivity.java | UTF-8 | 2,657 | 1.921875 | 2 | [] | no_license | package com.example.ulan.prof;
import android.content.Intent;
import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Tex... | true |
9bb0542b0cd8619fca90f0f2cb19510d5ca2aff9 | Java | ultradns/java_rest_api_client | /src/main/java/com/ultradns/ultra/rest/dto/SecurityGroup.java | UTF-8 | 3,967 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.ultradns.ultra.rest.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import java.util.List;
/**
* The Class SecurityGroup.
*/
@JsonInclude(Include.NON... | true |
125cbe5dd2a4a5f916155a81fe01d94cca45ce23 | Java | shahadat-sust/bms | /bms-admin/src/main/java/com/bms/admin/controller/setup/GroupController.java | UTF-8 | 5,552 | 2.015625 | 2 | [] | no_license | package com.bms.admin.controller.setup;
import java.util.List;
import java.util.Locale;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springfr... | true |
2c81fe6eab18f12885d46fc5bd3590918a9940ac | Java | gerrymclarnon/PlayerManager-Retired-Trialist | /src/net/playermanager/games/services/PlayersService.java | UTF-8 | 2,050 | 2.515625 | 3 | [] | no_license | package net.playermanager.games.services;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import net.playermanager.games.dao.DAO;
import net.playermanager.games.dao.PlayerDAO;
import net.playermanager.games.model.Player;
import org.springframework.beans.factory.annotation.Aut... | true |
6a03530049af78a5931c938285d5afb56c7fc678 | Java | AdrianLeyva/theater_system | /src/model/persistence/dao/contracts/ShowDao.java | UTF-8 | 366 | 2.140625 | 2 | [] | no_license | package model.persistence.dao.contracts;
import model.persistence.Shows;
import java.util.List;
public interface ShowDao {
void register(Shows show) throws Exception;
void modify(Shows show) throws Exception;
void delete(Shows show) throws Exception;
List<Shows> listShows() throws Exception;
Lis... | true |
d227daae7a5b4cbdc62e1adec4d9f1f677cf795b | Java | ParaSwarm/House-Lannister | /app/src/main/java/edu/uco/houselannister/saveasingle/domain/Ethnicity.java | UTF-8 | 650 | 2.75 | 3 | [] | no_license | package edu.uco.houselannister.saveasingle.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Random;
public enum Ethnicity implements Serializable {
WHITE,
HISPANIC,
BLACK,
NATIVE,
ASIAN,
OTHER,
NONSPECIFIC;
public static Ethnicity getRandom() {
... | true |
c6063b1d6a9146495ba103c9ed9d71655c7cf240 | Java | Cliffe97/Multithread-Version-of-Unix-Shell-with_File_System- | /src/cs131/pa1/filter/concurrent/ConcurrentFilter.java | UTF-8 | 1,801 | 3.140625 | 3 | [] | no_license | package cs131.pa1.filter.concurrent;
//import java.util.LinkedList;
//import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;
import cs131.pa1.filter.Filter;
public abstract class ConcurrentFilter extends Filter implements Runnable{
// protected boolean flag;
protected boolean done = fals... | true |
1454c360a82b18df8f6a7fb0c5609d5d3b517fcd | Java | seventy-eight/web | /utilities/src/main/java/org/seventyeight/utils/EncodingUtils.java | UTF-8 | 2,018 | 3.109375 | 3 | [] | no_license | package org.seventyeight.utils;
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
/**
* @author cwolfgang
*/
public class EncodingUtils {
private static String DEFAULT_ENCODING = "UTF-8";
public static String decode( String s ) {
return decode( s, DEFAULT_ENCODING ... | true |
3ff56f47c6f25f04b07ca3798bcc8d730c914ff8 | Java | P79N6A/icse_20_user_study | /methods/Method_1005831.java | UTF-8 | 57 | 1.851563 | 2 | [] | no_license | public static void clear(){
THREAD_OBJECT.set(null);
}
| true |
313b42db21f07c2b45997a98b220e69eaa7d9c02 | Java | guishijin/onvif4java | /onvifclient/src/org/onvif/ver10/schema/IPAddressFilter.java | UTF-8 | 4,833 | 1.8125 | 2 | [] | no_license | package org.onvif.ver10.schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElem... | true |
9ed52992220864a6b5acf2c59f0f085a94905ca3 | Java | BerNarDoMelow/BSJ | /webapp-ejb/webapp-ejb-web-client/src/main/java/presentation/web/model/VendedorToSaleModel.java | UTF-8 | 640 | 2.125 | 2 | [] | no_license | package presentation.web.model;
import facade.handlers.IVendedorServiceRemote;
public class VendedorToSaleModel extends Model{
/**
*
*/
private static final long serialVersionUID = 1L;
private IVendedorServiceRemote VendedorService;
private int saleid;
private int number;
public void setVendedorServi... | true |
8aa0cc68b0401c6a1a5013b43c8acc47d0461ffe | Java | Ailsafr/LeetCode | /src/solution/list/LinkedListCycle.java | GB18030 | 1,981 | 4.0625 | 4 | [] | no_license | package solution.list;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* @author By RuiCUI
* 2018-03-30
* Easy
* Question 141:Linked List Cycle
* Given a linked list, determine if it has a cycle in it.
* Follow up:
* Can you solve it without using extra space... | true |
66d1df8a8b7e94cecd5054113a0cdb81cb65a3d8 | Java | forcedotcom/SalesforceMobileSDK-Android | /native/NativeSampleApps/AppConfigurator/src/com/salesforce/samples/appconfigurator/ui/ConfigureAppFragment.java | UTF-8 | 8,803 | 1.523438 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2014-present, salesforce.com, inc.
* All rights reserved.
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright noti... | true |
28a0259fad7f66bd42652c37fb31382ab42b746d | Java | Leozhi-nian/LeetCode | /src/com/leozhi/topic912/Solution02.java | UTF-8 | 571 | 2.5625 | 3 | [] | no_license | package com.leozhi.topic912;
/**
* @author leozhi
* 选择排序
* 通过
* 1179ms
*/
public class Solution02 {
public int[] sortArray(int[] nums) {
int minIndex, temp;
for (int i = 0; i < nums.length; i++) {
minIndex = i;
for (int j = i + 1; j < nums.length; j++) {
... | true |
43c8d5e0844b564ab9f716cadca46dd36ce4a865 | Java | song12138/sysmanager | /src/main/java/com/company/smartwater/utils/JsonUtil.java | UTF-8 | 1,296 | 2.546875 | 3 | [] | no_license | package com.company.smartwater.utils;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.ObjectWriter;
import org.codehaus.jackson.type.TypeReference;
import java.io.IOException;
public cl... | true |
ee77b87538819ed3a933239772d97a6dffc8ca90 | Java | Venkteshkavi/Algorithms-DataStructures-Efficient-Practices | /Trees/convertTreetoGreaterBST.java | UTF-8 | 1,562 | 3.46875 | 3 | [] | no_license | import java.util.LinkedList;
import java.util.Queue;
public class convertBSTtoGreaterTree {
public class Node{
int data;
Node left;
Node right;
Node(int data){
this.data = data;
this.left = left;
this.right = right;
}
}
public static Node convertToGBST(Node root) {
if(root == null)
re... | true |
8165ea6d0655982cfdac1b26f980aff7544a7233 | Java | maruoci/webdemo | /src/main/java/com/bluesky/web/service/CustomerService.java | UTF-8 | 1,407 | 2.234375 | 2 | [] | no_license | package com.bluesky.web.service;
import com.bluesky.web.helper.DatabaseHelper;
import com.bluesky.web.model.Customer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.... | true |
cb9124775a0acbf669d1d4c8712839067de725e2 | Java | javaCopyer/pay | /pay-agent/src/main/java/com/minghui/pay/agent/core/initialize/ApplicationInitializationBean.java | UTF-8 | 876 | 1.890625 | 2 | [] | no_license | package com.minghui.pay.agent.core.initialize;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.minghui.pay.agent.core.no... | true |
7e44c1ce3c0651b9ddda5e60a8158e307819e71b | Java | QiLinXue/project-euler | /Java/Problem021.java | UTF-8 | 1,196 | 3.828125 | 4 | [] | no_license | /*
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers.
For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; ... | true |
1757935a0b6cad5595639d016a46afa73aad3e78 | Java | Axel-Girard/WebServiceJava | /domaine/src/main/java/demo/ddd/domaine/cb/services/Service.java | UTF-8 | 619 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package demo.ddd.domaine.cb.services;
import demo.ddd.domaine.cb.exceptions.FunctionalException;
import demo.ddd.domaine.cb.rg.RegleGestion;
import demo.ddd.domaine.cb.services.IDomaineService;
public class Service implements IDomaineService {
RegleGestion rg = new RegleGestion();
@Override
public void validerPai... | true |
45bf011dc2231220bb8515c002145c59cf44e40c | Java | Sachin4200/github | /SportsBackend/src/main/java/com/niit/sportsbackend/dao/ProductDao.java | UTF-8 | 368 | 2.1875 | 2 | [] | no_license | package com.niit.sportsbackend.dao;
import java.util.List;
import com.niit.sportsbackend.model.Product;
public interface ProductDao
{
public boolean addProduct(Product product);
public boolean deleteProduct(int productId);
public boolean updateProduct(Product product);
public Product getProductById(int produc... | true |
ca9264a2cff646e846aaa0e91135dc97b2f9190f | Java | a-korzhov/multiplex | /src/main/java/andrew/korzhov/multiplex/service/ScreeningService.java | UTF-8 | 452 | 1.882813 | 2 | [] | no_license | package andrew.korzhov.multiplex.service;
import andrew.korzhov.multiplex.web.response.AvailableSeats;
import andrew.korzhov.multiplex.web.response.MovieInfo;
import java.time.LocalDateTime;
import java.util.List;
public interface ScreeningService {
List<MovieInfo> getScreeningsByInterval(LocalDateTime min, Loc... | true |
0c829f5c1111aa14465ac0f11cc65e573fb23183 | Java | alex-quiterio/quoruns-protocol | /src/main/java/anacom/shared/exceptions/phone/NoMadeCommunication.java | UTF-8 | 429 | 2.453125 | 2 | [] | no_license | package anacom.shared.exceptions.phone;
public class NoMadeCommunication extends PhoneException {
private static final long serialVersionUID = 4787732662636390207L;
/**
* Empty constructor
*/
public NoMadeCommunication() {}
/**
* Constructor of NullMadeCommunication
* @param number the number of the... | true |
31955aa71d8eff8ba1c73e1696debd3cb2f1afaa | Java | wow3065/spring-boot | /src/main/java/org/liudk/annotation/user/UserService.java | UTF-8 | 219 | 1.65625 | 2 | [] | no_license | package org.liudk.annotation.user;
import java.util.List;
/**
* Created by dengke.liu on 2016/08/12.
*/
public interface UserService {
//public void saveUser(User user);
public List<User> selectAllUser();
}
| true |
15de16a655710b23bf93921bdd51bc0442fed0ce | Java | cami-la/threads1-alura | /src/site/camila/cursoalura/threads1/classes/ImprimeString.java | UTF-8 | 185 | 2.265625 | 2 | [] | no_license | package site.camila.cursoalura.threads1.classes;
public class ImprimeString implements Runnable {
@Override
public void run() {
System.out.println("Imprimindo na thread");
}
}
| true |
7d5ed11fb3d7bd1b13354300fec74c0b4078e755 | Java | Game-Designing/Custom-Football-Game | /sources/com/google/android/gms/common/api/internal/zaav.java | UTF-8 | 1,669 | 1.578125 | 2 | [
"MIT"
] | permissive | package com.google.android.gms.common.api.internal;
import android.os.Bundle;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.Api.AnyClient;
import com.google.android.gms.common.api.Api.Client;
import com.google.android.gms.c... | true |
6b0fc589895559f25ac07d74736684828259ceb7 | Java | chocoai/TXEYXXK | /weixin_fruit/src/main/java/com/fruit/web/mapper/system/count/SystemLogMapper.java | UTF-8 | 563 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.fruit.web.mapper.system.count;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import com.fruit.web.model.SystemLog;
public interface SystemLogMapper {
@Delete("DELETE FROM system_log WHERE create_time>=#{begin_time... | true |
0e05e65cb65c5d9d66cb7da1abb23fca795e2c42 | Java | tuotu/TestNG | /TestNG/src/main/java/gen/mappers/commonproducts/WithdrawDetailConfigDAO.java | UTF-8 | 2,592 | 2.125 | 2 | [] | no_license | /**
*
* A dao interface provides methods to access database
* Dont modify any generated method!
* If you want to add a new method , plesae dont add mbggenerated annotation marked comment.
*
* @Filename WithdrawDetailConfigDAO.java
*
* @Description
*
* @Author bohr.qiu
*
* @Email qzhanbo@yiji.com
*
*/
p... | true |
c250e4fc61484d3745b3d7ea990e600c3f44425a | Java | Nepisat/Equivalent-Exchange-2-Reloaded | /src/main/java/ic2/core/block/wiring/TileEntityLuminatorOLD.java | UTF-8 | 10,607 | 2.015625 | 2 | [] | no_license | package ic2.core.block.wiring;
import ic2.api.Direction;
import ic2.api.energy.event.EnergyTileLoadEvent;
import ic2.api.energy.event.EnergyTileUnloadEvent;
import ic2.api.energy.tile.IEnergyConductor;
import ic2.api.energy.tile.IEnergySink;
import ic2.core.ExplosionIC2;
import ic2.core.IC2;
import ic2.core.Ic2Items;
... | true |