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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b8e55e6137dbc4a5f65e70bd8a89adc910a45b90 | Java | julian-pl/university-housing-app | /src/edu/ncsu/sarj/dbproj/User.java | UTF-8 | 1,949 | 3.15625 | 3 | [
"MIT"
] | permissive | package edu.ncsu.sarj.dbproj;
import java.util.Scanner;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class User {
private Connection conn = null;
private Scanner scanner = null;
private int loginId = -1;
private UserType userType = UserTy... | true |
2517c5d38e5b8c7e9c91e159fbfed6b00f749f87 | Java | nenafay/veggies | /src/main/java/org/wecancodeit/veggies/TagRepository.java | UTF-8 | 408 | 1.9375 | 2 | [] | no_license | package org.wecancodeit.veggies;
import java.util.Collection;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
public interface TagRepository extends CrudRepository<Tag, Long> {
Optional<Tag> findFirstByTagName(String tagName);
Collection<Tag> findByVeggiesContains(Veggie ve... | true |
a12faec413f5c2178d1fb1b7d3cbd8883d6dceaa | Java | DraggonZ/wicket-ddd | /src/main/java/promolo/wicket/core/ui/bootstrap/BootstrapFeedbackMessageFilter.java | UTF-8 | 279 | 1.703125 | 2 | [] | no_license | package promolo.wicket.core.ui.bootstrap;
import org.apache.wicket.feedback.IFeedbackMessageFilter;
/**
* TODO javadoc
*
* @author Александр
*/
public interface BootstrapFeedbackMessageFilter extends IFeedbackMessageFilter {
public String getAlertClass();
}
| true |
7c285c01981b4b6d956a14170771ba8df6ab8f75 | Java | jbender8/guccl | /src/main/java/edu/depaul/cdm/se352452group4/groupProject/controller/InventoryItemsController.java | UTF-8 | 1,245 | 2.28125 | 2 | [] | no_license | package edu.depaul.cdm.se352452group4.groupProject.controller;
import edu.depaul.cdm.se352452group4.groupProject.model.entity.InventoryItems;
import edu.depaul.cdm.se352452group4.groupProject.model.repository.InventoryItemsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | true |
48816192f01a06fc0a374016d02b61b0d2340227 | Java | yooni1903/DDIT | /3.HighJava/workspace/threadTest/src/kr/or/ddit/basic/ThreadTest21.java | UTF-8 | 2,090 | 3.828125 | 4 | [] | no_license | package kr.or.ddit.basic;
public class ThreadTest21 {
public static void main(String[] args) {
DataBox databox = new DataBox();
ProducerThread pt = new ProducerThread(databox);
ConsumerThread ct = new ConsumerThread(databox);
pt.start();
ct.start();
}
}
// 데이터를 공통으로 사용하는 클래스
class DataBox{
priva... | true |
4d475e510c42ef19439607e43e7818d188f767f0 | Java | corlin/streamline | /streams/runners/storm/runtime/src/main/java/com/hortonworks/streamline/streams/runtime/storm/bolt/rules/WindowRulesBolt.java | UTF-8 | 7,777 | 1.757813 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /**
* Copyright 2017 Hortonworks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... | true |
601f7dea80d763f05937b1692227b2930a7a0ceb | Java | magichill/whatslive | /whatslive-api/src/main/java/com/letv/whatslive/server/http/WeiBoRequestHandler.java | UTF-8 | 5,316 | 2.15625 | 2 | [] | no_license | package com.letv.whatslive.server.http;
import com.alibaba.fastjson.JSON;
import com.letv.whatslive.common.http.weibo.RespBody;
import com.letv.whatslive.common.http.weibo.data.CustomData;
import com.letv.whatslive.common.http.weibo.data.ImageData;
import com.letv.whatslive.common.http.weibo.data.StreamData;
import co... | true |
5a4553ee9f5641c5c1bff73aa5736c30f525615f | Java | annuh/android-batavierenrace | /BataApp/src/com/ut/bataapp/fragments/InfoAlgemeenFragment.java | UTF-8 | 2,567 | 2.390625 | 2 | [] | no_license | package com.ut.bataapp.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.actionbarsherlock.app.SherlockFragment;
import com.ut.bataapp.R;
import com.ut.bataa... | true |
f4266ffa013c5b0d82196a594fae62327ca75b33 | Java | dither001/DooglamooWorlds | /src/main/java/dooglamoo/dooglamooworlds/world/gen/feature/FallenTreeFeature.java | UTF-8 | 2,918 | 1.945313 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2014-2020 Dooglamoo
*
* Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License, (the "License");
* you may not use this file except in compliance with the License. ... | true |
52a254e080075427c134ea7c4b81130190c9e1ed | Java | jsdelivrbot/microservice-k8s | /card-management/src/main/java/com/epam/cardmanagement/card/converter/CardDetailsToCardDetailsEntityConverter.java | UTF-8 | 3,338 | 2.328125 | 2 | [] | no_license | package com.epam.cardmanagement.card.converter;
import com.epam.cardmanagement.card.repository.model.*;
import com.epam.contract.api.card_management.model.CardDetails;
import org.springframework.core.convert.converter.Converter;
import java.time.Month;
import java.time.Year;
import java.time.format.DateTimeFormatter;... | true |
92aa3cb62204560b95a6a9659f30ea4b8ebc8cd4 | Java | arinamomot/vacation_planning_system | /notification_service/src/main/java/holidayPlannerNotificationService/facade/NotificationFacade.java | UTF-8 | 2,726 | 2.3125 | 2 | [] | no_license | package holidayPlannerNotificationService.facade;
import holidayPlannerNotificationService.model.Notification;
import holidayPlannerNotificationService.model.User;
import holidayPlannerNotificationService.model.VacationChangeNotification;
import holidayPlannerNotificationService.rest.dto.VacationChangeDTO;
import holi... | true |
2a262c65229b89f06fa7f76c1053a25c91368c0e | Java | KsushaShlapakova/lesson7 | /src/main/java/Student.java | UTF-8 | 719 | 3.0625 | 3 | [] | no_license | public class Student {
private String name;
private String surname;
private String middleName;
private String bday;
private String group;
public Student(String name, String surname, String middleName, String bday, String group){
this.name = name;
this.bday = bday;
this.g... | true |
44186b54bb843bffc2496f9efb7a862388a0989c | Java | sergeipwnu/Connect4SeniorProject | /connect4/Position.java | UTF-8 | 1,297 | 3.84375 | 4 | [] | no_license | /**
* class <code>Position</code> - a custom class for storing an x and y coordinantes
* that corresponds to the location of a piece on the board
*
* @author Sergei Levashov
* @version 1.0.0
*/
public class Position
{
private int myX;
private int myY;
/**
* constructor <code>Position</co... | true |
aadc25e56595ef1a02f81a6bc63d6fe87adff501 | Java | aurbroszniowski/jbcn2016 | /src/main/java/org/jsoftbiz/repository/SomeRepository.java | UTF-8 | 659 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package org.jsoftbiz.repository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Random;
/**
* Some Repository
*/
public class SomeRepository {
private static final Logger LOGGER = LoggerFactory.getLogger("org.jsoftbiz.Demo");
Random rnd = new Random();
/**
* Simulates a DB wr... | true |
c065250ee63ac4bab2112fe5e3a826e0364e661b | Java | RasheedaK/Exercise4 | /src/Grid.java | UTF-8 | 410 | 3.078125 | 3 | [] | no_license | class Grid {
private final int max_x;
private final int max_y;
Grid(int max_X, int max_Y) {
this.max_x = max_X;
this.max_y = max_Y;
}
boolean isValidPosition(Position position) {
return (position.getXcoordinate() <= this.max_x && position.getYcoordinate() <= this.max_y
... | true |
d3ed2c5599fde3111b18c5503af6c955a75dc21e | Java | lungerWang/GradiantStatusBar | /app/src/main/java/com/lunger/gradiantstatusbar/activity/MainActivity.java | UTF-8 | 784 | 2.03125 | 2 | [] | no_license | package com.lunger.gradiantstatusbar.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.lunger.gradiantstatusbar.R;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bu... | true |
5a04dfb859b52a5e15bfc2b16e0ad424574f54dd | Java | meadot01/android-case-study | /app/src/main/java/com/target/dealbrowserpoc/dealbrowser/deallist/DealListActivity.java | UTF-8 | 4,224 | 1.960938 | 2 | [] | no_license | package com.target.dealbrowserpoc.dealbrowser.deallist;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearL... | true |
8f4d3e7e1e8352f305314719a9ab738490bcf907 | Java | Knb-Falcot/CutFile | /src/alt/util/OSArgument.java | UTF-8 | 2,274 | 3.375 | 3 | [] | no_license | /** *********************** OSArgument **************************************
*
* @author Eduard Calveras
* @version @(#)OSArgument.java 1.0, 04 Aug 1999
*
* Aquesta classe facilita el tractament de par�metres que se li passen al
* programa a trav�s del OS (Sistema Operatiu). Aquesta els tracta ... | true |
95425d34fec22a8f579a5e2c18e21fdd48f684d1 | Java | Dszshen/weixinDEV | /src/main/java/com/dszshen/wxsdk/bean/weixin/Menu.java | UTF-8 | 1,519 | 1.96875 | 2 | [] | no_license | package com.dszshen.wxsdk.bean.weixin;
import com.alibaba.fastjson.JSONObject;
import com.dszshen.wxsdk.bean.JsonBean;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.List;
/**
* Created by zhangbin on 2017/5/31 0031.
*/
@Entity
@Table(name = "weixin_menu")
public cl... | true |
fc7ad883aba7e9b8d2676d29c8800d87e19e9452 | Java | DominicBreuker/RegPFA | /src/Framework/Algorithm/EmMapAlgorithm.java | UTF-8 | 20,690 | 2.53125 | 3 | [] | no_license | /*
* Copyright (c) 2014, Dominic Breuker
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | true |
636c3d59e55ffe18ee5fba1075115519bb619dbc | Java | emrys62134/CleanCacheMemory | /app/src/main/java/com/pei/cleancachememory/MainActivity.java | UTF-8 | 4,470 | 2.09375 | 2 | [] | no_license | package com.pei.cleancachememory;
import android.animation.Animator;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.... | true |
203849bb5ff61f1b5ee60a667af2177aff928ff7 | Java | stalb/MyMusicApp | /MyMusicAppp/app/src/main/java/fr/usmb/iutc/mmi/s4/mymusicappp/MyAudioService.java | UTF-8 | 7,750 | 2.421875 | 2 | [] | no_license | package fr.usmb.iutc.mmi.s4.mymusicappp;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.media.MediaPlayer;
impo... | true |
cf4759f56134e9e4e2dcf7294b64515dc376fb6b | Java | govindclickdesk/web-visitors | /src/com/visitors/timeout/Timeout.java | UTF-8 | 4,011 | 2.34375 | 2 | [] | no_license | package com.visitors.timeout;
import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import com.google.appengine.api.datastore.Query;
import com.google.appengine.api.taskqueu... | true |
1ee323e63d82200cf7301e5cb9760244357451eb | Java | NuclearShamanHakunin/svetosavskiKvizFinal | /pr/src/bazapodataka/BazaPodataka.java | UTF-8 | 3,937 | 3.1875 | 3 | [] | no_license | package bazapodataka;
/**
* Created by Marko on 27-Dec-17.
*/
import javax.swing.*;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Ova klasa omogucava rad sa bazom podata, sadrži osnovne metode za komunikaciju sa bazom.
*/
public class BazaPodataka {
private java.sql.Connection conn;
pri... | true |
f47b503374612f6a2df99c274d380db3e47fff57 | Java | sundarina/SerializationGUIProject | /src/AbstractFigureFabric.java | UTF-8 | 169 | 2.234375 | 2 | [] | no_license | public abstract class AbstractFigureFabric {
public abstract Figure rand();
public abstract int[] randColor();
public abstract Figure getFigure(int n);
} | true |
a40867177e5134766ce2b7ac2ba9961087067d1c | Java | sq1235/Mobile-Office | /src/com/mo/mobileoffice/function/checkin/contract/MapContract.java | UTF-8 | 1,025 | 1.859375 | 2 | [
"MIT"
] | permissive | package com.mo.mobileoffice.function.checkin.contract;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.widget.ListView;
import com.mo.mobileoffice.common.adapter.CommonAdapter;
import com.mo.mobileoffice.common.mvp.MvpPresenter;
import... | true |
744cc4a7772c9dea2a11642cf02301e130608552 | Java | Thanking/company-manage | /src/main/java/com/example/company/vo/reponse/PermissionRespNode.java | UTF-8 | 1,251 | 2.0625 | 2 | [] | no_license | package com.example.company.vo.reponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author : LSD
* @version : 1.0
* @ClassName : PermissionRespNode
* @Description : TODO
* @date : 2021/9/1 21:36
**/
@Data
public class PermissionRespNode {
@ApiModelPrope... | true |
ca6bb4b8890c0695460eae1280e2231d5b5b4077 | Java | GoodDingo/ontrack | /ontrack-job/src/main/java/net/nemerosa/ontrack/job/JobKey.java | UTF-8 | 664 | 2.421875 | 2 | [
"MIT"
] | permissive | package net.nemerosa.ontrack.job;
import lombok.Value;
import java.util.Objects;
@Value
public class JobKey {
private final JobType type;
private final String id;
public static JobKey of(JobType type, String id) {
return new JobKey(type, id);
}
public boolean sameType(JobType type) {
... | true |
5531342cbbe39bbbc6c9e99d99966581bbcfdf04 | Java | pedroDelmano/zupchallenge | /app/src/main/java/br/com/delmano/zupchallenge/callback/ResponseCallback.java | UTF-8 | 258 | 2.015625 | 2 | [] | no_license | package br.com.delmano.zupchallenge.callback;
import br.com.delmano.zupchallenge.rest.model.RestError;
/**
* Created by pedro.oliveira on 10/02/17.
*/
public interface ResponseCallback<T> {
void success(T t);
void error(RestError restError);
}
| true |
7e67f5b32e404ccf1928b9e564ad5b603f61c710 | Java | vitalif/openesb-components | /ojc-core/component-common/bpelmodel/src/com/sun/bpel/model/SunExtExpression.java | UTF-8 | 3,225 | 1.679688 | 2 | [] | no_license | /*
* BEGIN_HEADER - DO NOT EDIT
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the "License"). You may not use this file except
* in compliance with the License.
*
* You can obtain a copy of the license at
* https://open-jbi-components.dev.java.n... | true |
df0357beae77cd0bf6a5f49e3bba6ac002af918d | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/com/tencent/mm/pluginsdk/k/a/a/k.java | UTF-8 | 5,780 | 1.828125 | 2 | [] | no_license | package com.tencent.mm.pluginsdk.k.a.a;
import com.tencent.mm.pluginsdk.k.a.c.g;
import com.tencent.mm.pluginsdk.k.a.c.g.b;
import com.tencent.mm.pluginsdk.k.a.c.u;
import com.tencent.mm.sdk.platformtools.be;
import com.tencent.mm.sdk.platformtools.v;
import java.util.concurrent.SynchronousQueue;
import java.util.conc... | true |
9dffa45af08af6d1547272e83bbb97749861c1cb | Java | sjsr03/gith2_moaandmore | /src/budget/model/dao/LeftMoneyDAO.java | UTF-8 | 916 | 2.234375 | 2 | [] | no_license | package budget.model.dao;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;
public interface LeftMoneyDAO {
//회원의 남은 돈 정보 가져오기
public List selectAllById(String id) throws SQLException;
//마지막 로그인날짜(남은돈 계산날짜)
public String selectLastLoginReg(String id) throws SQLException;
//예산생성시... | true |
819c625c0808d1d585e1797e8b33e566b8d47a6b | Java | joedyli/gmall-0805 | /gmall-item/src/main/java/com/atguigu/gmall/item/controller/ItemController.java | UTF-8 | 805 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.atguigu.gmall.item.controller;
import com.atguigu.core.bean.Resp;
import com.atguigu.gmall.item.service.ItemService;
import com.atguigu.gmall.item.vo.ItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.... | true |
d86888f9b7c9e55e75d4d7dd617a2b400a8e3148 | Java | QiAnXinCodeSafe/aws-sdk-java | /aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/BlueGreenUpdatePolicy.java | UTF-8 | 7,227 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
1d895b0ad6734efc73ea4839ab80d412f9689aec | Java | chakra-coder/aliyun-log-flink-connector | /src/main/java/com/aliyun/openservices/log/flink/util/Consts.java | UTF-8 | 662 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package com.aliyun.openservices.log.flink.util;
public class Consts {
public static String READONLY_SHARD_STATUS = "readonly";
public static String READWRITE_SHARD_STATUS = "readwrite";
public static int DEFAULT_NUMBER_PER_FETCH = 100;
public static long DEFAULT_FETCH_INTERVAL_MILLIS = 100;
public... | true |
ab0134a0d066b71589b36b5f49863b145a63993c | Java | Heifara/maohifx | /maohifx.server/src/main/java/com/maohi/software/maohifx/server/webapi/AuthenticationService.java | UTF-8 | 1,765 | 2.140625 | 2 | [] | no_license | /**
*
*/
package com.maohi.software.maohifx.server.webapi;
import java.util.UUID;
import javax.annotation.security.PermitAll;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
... | true |
19899bf127160ae18d8d01286f344be7ddadd330 | Java | mdmarshmallow/random-passage-generator | /src/markov/SecondOrderMarkovModel.java | UTF-8 | 3,175 | 3.234375 | 3 | [] | no_license | package markov;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class SecondOrderMarkovModel {
private ArrayList<String> wordList = new ArrayList<String>();
private double[][][] probabilityMatrix;
private static void addTo3dArray(ArrayList<ArrayList<ArrayList<Integer>>>... | true |
e0ac90b09f3d3c4155e38b1620cb6c0fca7052b9 | Java | shikha1982/egen-be-challenge | /src/main/java/com/egen/dao/AlertDaoImpl.java | UTF-8 | 1,236 | 2.5 | 2 | [] | no_license | package com.egen.dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.query.MorphiaIterator;
import org.mongodb.morphia.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
impo... | true |
76eac159aff11447326502d09868f82d74eaa2e3 | Java | viniciusasm/CC | /Calc protected final/src/Modelo/Validacao.java | UTF-8 | 753 | 2.921875 | 3 | [] | no_license | package Modelo;
public class Validacao extends absPropriedades
{
public Validacao(String num1, String num2, String op)
{
super(num1, num2, op);
Validar();
}
private final void Validar()
{
this.mensagem = "";
try
{
this.n1... | true |
803a39f301ed6ebad5563a3575cecb59a6775bd3 | Java | liuyngchng/ants.admin | /src/main/java/ants/admin/model/Pagination.java | UTF-8 | 1,736 | 2.28125 | 2 | [] | no_license | /**
* Copyright (c) 2014-2017, test.com
* All rights reserved.
*/
package ants.admin.model;
import com.alibaba.dubbo.common.json.JSON;
import java.io.IOException;
import java.io.Serializable;
import java.util.List;
public class Pagination<T> implements Serializable {
private static final long serialVersionU... | true |
8ac49c70abfe0dc72656a852677370b5b3941586 | Java | maikeps/Ghomaime | /src/ghomaime/Player1.java | UTF-8 | 2,737 | 2.5 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ghomaime;
import Personagens.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import javaPlay.GameEngine;
import javaPlay.GameObject;
import javaPlay... | true |
4d925d26ea59093f75163096a0791c9a71c472dd | Java | fmoutinho/Simulador | /src/EscalonaEvt.java | UTF-8 | 580 | 2.75 | 3 | [] | no_license |
/**
* Classe que modela o evento do escalonador.
*
* @author gvpm
*/
public class EscalonaEvt extends Evento {
int idEscalonador;
Escalonador escalonador;
/**
* Metodo Construtor
* @param t tempo na simulacao
* @param e estrutura da simulacao
*/
public EscalonaEvt(int t, Estru... | true |
d3fd7daa733104a327e9974e4401c07c0370fe9e | Java | kpodberezin/testTask | /test-task/test-task-client/src/main/java/mailTask/config/MailWebConfig.java | UTF-8 | 195 | 1.804688 | 2 | [] | no_license | package mailTask.config;
import org.aeonbits.owner.Config;
@Config.Sources("classpath:mail.properties")
public interface MailWebConfig extends Config {
@Key("mail.url")
String url();
} | true |
f8eeabf41b0471a71b2004dd1ef3aec11fe811c2 | Java | tuisme/CO3038_2018 | /CO3038/Project_checked/Android/app/src/main/java/com/xuhao/didi/oksocket/DemoActivity.java | UTF-8 | 4,190 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.xuhao.didi.oksocket;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import com.google.gson.JsonObject;
import com.google.g... | true |
fc0e4ca289313482ca16f9cc725b88e7e9e563cb | Java | retropipes/older-java-games | /Worldz/src/net/worldwizard/io/ResourceStreamReader.java | UTF-8 | 2,377 | 2.890625 | 3 | [
"Unlicense"
] | permissive | package net.worldwizard.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class ResourceStreamReader implements DataConstants {
// Fields
private final BufferedReader br;
// Constructors
public ResourceStreamReader(fina... | true |
8f21d6686f355ee81966b223e65ddd2ffc78c9d0 | Java | jmrodpei/GestionRA | /RepuestosAutoGestion/src/es/studium/RepuestosAutoGestion/ModificarAlmacen.java | ISO-8859-1 | 8,672 | 2.40625 | 2 | [] | no_license | package es.studium.RepuestosAutoGestion;
import java.awt.Button;
import java.awt.Choice;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.e... | true |
17f749a5e3a317bcda085460b6ad6763290c45d1 | Java | h2oai/jacocoHighlight | /src/main/java/jacoco/report/internal/html/parse/util/SLL.java | UTF-8 | 1,710 | 2.9375 | 3 | [] | no_license | package jacoco.report.internal.html.parse.util;
import java.util.NoSuchElementException;
/**
* Created by nkalonia1 on 3/28/16.
*/
public class SLL<T> {
protected Node _root;
protected Node _end;
public SLL() {
_root = new Node();
_end = _root;
}
public void add(T t) {
... | true |
847e3cc679617c9c7020da60a2a1783fbac80950 | Java | jcheron/net.ko.creator | /src/net/ko/creator/editors/map/properties/PropertiesDescriptor.java | UTF-8 | 4,499 | 1.867188 | 2 | [] | no_license | package net.ko.creator.editors.map.properties;
import net.ko.creator.editors.map.model.MoxFile;
import net.ko.creator.editors.map.utils.PropertyUtils;
import org.eclipse.gmf.runtime.common.ui.services.properties.extended.ExtendedBooleanPropertyDescriptor;
import org.eclipse.gmf.runtime.common.ui.services.properties.e... | true |
17194508d4d41e21e64aca998243f51022e1c4aa | Java | mings0401/QuickCopy | /app/src/main/java/com/sunming/quickcopy/AllListTab.java | UTF-8 | 4,019 | 1.960938 | 2 | [] | no_license | package com.sunming.quickcopy;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.L... | true |
d0a1fd1d9a314ba146bb3cbd45b5e5514ee973bd | Java | praneethk2094/Assessment | /src/main/java/com/java/assessment/DesignPattern/FactoryPattern/NetflixClasses/Basic.java | UTF-8 | 919 | 3.15625 | 3 | [] | no_license | package com.java.assessment.DesignPattern.FactoryPattern.NetflixClasses;
/**
* Netflix Package Basic with custom details.
* Implements Package Interface
*/
public class Basic implements Package {
private String type = "Basic";
private double cost = 7.99;
private String timeline = "1 Month";
private ... | true |
13312870bebf4d92089c66a580b6d19ef78caa0b | Java | codinglin/leetcode | /src/JZOffer2/Main4.java | UTF-8 | 1,231 | 3.671875 | 4 | [] | no_license | package JZOffer2;
/**
* 二分查找
*/
public class Main4 {
public boolean findNumberIn2DArray(int[][] matrix, int target) {
for (int[] ints : matrix) {
if (findSearch(ints, target)) {
return true;
}
}
return false;
}
private boolean findSearch(in... | true |
8da6f41d5e77ef987af77d9e6f1bcb14f1d31848 | Java | lionelrrivas/design-patterns | /src/main/java/com/lionel/rivas/designpatterns/behavioral/mediator/ScreenDirectorImpl.java | UTF-8 | 595 | 3.09375 | 3 | [] | no_license | package com.lionel.rivas.designpatterns.behavioral.mediator;
/**
* This class simulates a screen component that is interested in updating the value of a {@link TextField}.
*
* @author lionelrivas
*/
public class ScreenDirectorImpl implements ScreenDirector {
private TextField textField;
public ScreenDi... | true |
e9d1e8ce5f5772a7fb3cba4b3315282597ea3c70 | Java | AleksProv/JavaRush | /src/javasyntax/level6/lectore_5/Cat1.java | UTF-8 | 216 | 1.820313 | 2 | [] | no_license | package javasyntax.level6.lectore_5;
/*
Метод finalize класса Cat/
*/
public class Cat1 {
protected void finalize () throws Throwable {
}
public static void main (String[] args) {
}
}
| true |
c9212cfcb32d579487c5d0abf283ebb8fc6dc5cb | Java | jambestwick/HackWechat | /app/src/main/java/com/tencent/mm/plugin/sns/storage/AdLandingPagesStorage/d$4$2.java | UTF-8 | 396 | 1.804688 | 2 | [] | no_license | package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage;
import com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.d.4;
class d$4$2 implements Runnable {
final /* synthetic */ String hnj;
final /* synthetic */ 4 rnW;
d$4$2(4 4, String str) {
this.rnW = 4;
this.hnj = str;
... | true |
01ad04877b0ebf20fa7e8a3b3bbcbd17f4583c40 | Java | irfanahmedqau/tayee | /estore_Feb_20/src/main/java/com/bleum/canton/myaccount/dao/impl/CustomerProfileDaoImpl.java | UTF-8 | 673 | 1.898438 | 2 | [] | no_license | package com.bleum.canton.myaccount.dao.impl;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.bleum.canton.common.dao.impl.BaseDaoHibernateImpl;
import com.bleum.canton.myaccount.dao.ICustomerProfileDao;
import com.bleum.canton.myacco... | true |
7e4e6978751279a170e112cb9a3cbdeeae6b9a70 | Java | emersonBarreiro/trabalhoMTA-QSW | /hotel-master/src/model/Ingrediente.java | UTF-8 | 780 | 2.3125 | 2 | [] | no_license | package model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="ingrediente")
public class Ingrediente {
@Id
@GeneratedValue(strategy=Ge... | true |
47f1b8dfde973429011336dd5e38d2d4a3f1b242 | Java | forget-the-bright/DemoCloud | /seata-storage-service2002/src/main/java/com/mr/wh/SeataStorageApplication2002.java | UTF-8 | 765 | 1.703125 | 2 | [] | no_license | package com.mr.wh;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.... | true |
58e3fb9414eaedfc72240c5c3cae4baf7faaee8e | Java | hari-canada/Samples | /Appium/Java/testng_sample/src/main/java/com/perfecto/commons/utils/PerfectoCloudInformation.java | UTF-8 | 1,676 | 2.203125 | 2 | [] | no_license | package com.perfecto.commons.utils;
import java.util.Properties;
public class PerfectoCloudInformation {
private static PerfectoCloudInformation perfectoConst;
private Properties cloudProperties;
private String availableDeviceUrl;
private String listDeviceUrl;
private String hubUrl;
private PerfectoCloudInfor... | true |
7fd4e448ca4df81672b3c0024a9381e5ed46ea31 | Java | JayDumpling/PatternStu | /DelegateAndStrategyPattern/src/main/java/com/stu/pattern/strategy/pay/PayTest.java | UTF-8 | 351 | 2.0625 | 2 | [] | no_license | package com.stu.pattern.strategy.pay;
import com.stu.pattern.strategy.pay.payport.PayStrategyManager;
/**
* @Auther : Dumpling
* @Description
**/
public class PayTest {
public static void main(String[] args) {
Order order = new Order("1","201801020558",500);
System.out.println(order.pay(PayStra... | true |
8b3e9b4967382179f331c78984dfed16444bb29b | Java | Nibro87/Project | /CarRental/src/fuelVehicle.java | UTF-8 | 1,438 | 2.65625 | 3 | [] | no_license | public class fuelVehicle extends Car {
public float oktantal;
public float kmPrl;
public fuelVehicle(String regNr, String brand, String model, int year, float numDoors) {
super(regNr, brand, model, year, numDoors);
this.oktantal = oktantal;
this.kmPrl = kmPrl;
}
public float getKmPrl() {
return ... | true |
1d4535bd6fd92999595bdbbe8fa6b58335db9347 | Java | dmadan86/Prueba | /doc-web/src/main/java/com/laamware/ejercito/doc/web/repo/ProcesoReinicioContDetalleRepository.java | UTF-8 | 298 | 1.507813 | 2 | [] | no_license | package com.laamware.ejercito.doc.web.repo;
import com.laamware.ejercito.doc.web.entity.ProcesoReinicioContDetalle;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ProcesoReinicioContDetalleRepository extends JpaRepository<ProcesoReinicioContDetalle, Integer> {
}
| true |
2a17b082c203d40c01c9c363c2bd543e2eedab81 | Java | League-Level0-Student/level-0-module-2-adrianwallacemx | /src/_14_rollercoaster/rollercoaster.java | UTF-8 | 477 | 2.96875 | 3 | [] | no_license | package _14_rollercoaster;
import javax.swing.JOptionPane;
public class rollercoaster {
public static void main(String[] args) {
// TODO Auto-generated method stub
String roller = JOptionPane.showInputDialog("how tall are you in inches");
int num = Integer.parseInt(roller);
if (num > 48) {
JOptionPane.sh... | true |
834aa155f1b4b1ac2eacbb8326b90603ea4ab7eb | Java | deepsoft-haolifa/haolifa | /src/main/java/com/deepsoft/haolifa/service/FileRecordService.java | UTF-8 | 940 | 2.046875 | 2 | [] | no_license | package com.deepsoft.haolifa.service;
import com.deepsoft.haolifa.model.domain.FileRecord;
import com.deepsoft.haolifa.model.dto.file.FileRecordConditionDTO;
import com.deepsoft.haolifa.model.dto.ResultBean;
import com.deepsoft.haolifa.model.dto.file.FileRecordDTO;
public interface FileRecordService {
/**
... | true |
389c329f361b6ff19b0461be14c5287cae9df9b0 | Java | lonelyarcher/goshare-comment-services | /src/main/java/goshare/repository/PostRepository.java | UTF-8 | 311 | 1.679688 | 2 | [] | no_license | package goshare.repository;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import goshare.domain.Post;
public interface PostRepository extends MongoRepository<Post, String> {
List<Post> findByPoiId(String poiId);
void deleteByPoiId(String poiId);
}
| true |
5437ef1119bbb2e51664cd9e09c467bceb81a8f5 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/vx_connectbot/src/com/trilead/ssh2/crypto/CryptoWishList.java | UTF-8 | 766 | 1.5 | 2 | [] | no_license | // isComment
package com.trilead.ssh2.crypto;
import com.trilead.ssh2.compression.CompressionFactory;
import com.trilead.ssh2.crypto.cipher.BlockCipherFactory;
import com.trilead.ssh2.crypto.digest.MAC;
import com.trilead.ssh2.transport.KexManager;
/**
* isComment
*/
public class isClassOrIsInterface {
public ... | true |
07967b5d5449a535e639e56f934d8cc75577357a | Java | znagxy/DesignPattern | /src/main/java/proxypattern/dynamicpattern/DynamicProxyFactory.java | UTF-8 | 1,063 | 3.21875 | 3 | [] | no_license | package proxypattern.dynamicpattern;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class DynamicProxyFactory {
private Object target;
public DynamicProxyFactory(Object target){
this.target = target;
}
public Object getPro... | true |
5efb06f689e6c05c178417ca919134d5984a6af6 | Java | enjoyproduct/dribbler-android | /app/src/main/java/com/mg/dribbler/activities/ExceptionActivity.java | UTF-8 | 644 | 2.3125 | 2 | [] | no_license | package com.mg.dribbler.activities;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.mg.dribbler.R;
public class ExceptionActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | true |
075dcc88681a71ef3bd7d87ec1ef141246bc265f | Java | hotpads/datarouter | /datarouter-storage/src/main/java/io/datarouter/storage/stream/BaseStreamRecord.java | UTF-8 | 1,293 | 1.960938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright © 2009 HotPads (admin@hotpads.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
*
* Unless required by applicable... | true |
afa9ce1795ed20c4889994a0a39681189ac6f833 | Java | lanrenke/Java | /LevelCode/Program01/day02/src/basecode/_03迭代器使用/Demo03.java | UTF-8 | 3,389 | 4.3125 | 4 | [] | no_license | package basecode._03迭代器使用;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
/**
目标:能够使用迭代器对集合进行遍历
讲解:
1. 什么是迭代器
* 一个实现了Iterator接口实现类的对象
* 用来遍历集合
2. 为什么要使用迭代器
不同体系的集合特点不一样
* List接口有索引,我... | true |
3861c7448826d12cde8bb63033bf26db92229e72 | Java | Rami-Sabbagh/Codeforces-API | /src/main/java/com/github/rami_sabbagh/codeforces/api/objects/ProblemSet.java | UTF-8 | 237 | 1.789063 | 2 | [
"MIT"
] | permissive | package com.github.rami_sabbagh.codeforces.api.objects;
/**
* Represents a problem set in Codeforces.
*/
public class ProblemSet extends CFObject {
public Problem[] problems;
public ProblemStatistics[] problemStatistics;
}
| true |
b9ad2462cf64f680531e605e95287d199bed1c85 | Java | bellmit/ypayment | /ypayment/ypayment-web/src/main/java/com/yiji/ypayment/web/info/PaymentRecordBean.java | UTF-8 | 3,120 | 1.921875 | 2 | [] | no_license | /*
* www.yiji.com Inc.
* Copyright (c) 2014 All Rights Reserved.
*/
/*
* 修订记录:
* @author xinqing@yiji.com 上午10:37:44 创建
*/
package com.yiji.ypayment.web.info;
import java.util.Date;
import com.yiji.ypayment.facade.enums.PayWayEnum;
import com.yiji.ypayment.facade.enums.PaymentItemStatusEnum;
import com.yiji.yp... | true |
3716367ceb91ee0a8070d48ee230b5b8e34d5f86 | Java | saeedmozaffari/saeed-repository | /Dictionary/src/project/office/dictionary/tools/ImageWithShape.java | UTF-8 | 3,300 | 2.359375 | 2 | [] | no_license | package project.office.dictionary.tools;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
impor... | true |
46b964e30993f3929b433c318f4b4af9b2e0e93e | Java | cmsingh007/Movie_Finder_Premium | /app/src/main/java/com/esoxjem/moviefinderpremium/OnBorading.java | UTF-8 | 2,052 | 1.851563 | 2 | [
"MIT"
] | permissive | package com.esoxjem.moviefinderpremium;
//using github library 'com.github.msayan:tutorial-view:v1.0.10'
// and github URL github.com/msayan/tutorial-view
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import com.esoxjem.moviefinderpremium.listing.MoviesListingActivity;
impo... | true |
b0a8062502f68e4325aac57f8c38d0fb64e3a577 | Java | thetreeofH/mylearning | /spm/spm-bizs/src/main/java/com/ts/spm/bizs/mapper/jzpftgmnt/TblDutyManAttendMapper.java | UTF-8 | 2,921 | 1.773438 | 2 | [] | no_license | package com.ts.spm.bizs.mapper.jzpftgmnt;
import com.github.wxiaoqi.security.common.mapper.CommonMapper;
import com.ts.spm.bizs.entity.jzpftgmnt.TblDutyManAttend;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
public interface TblDutyManAttendMap... | true |
f67dae09942c2fff0ca80d94e2dd4c2b6dac2a6e | Java | IamJiming/JavaDemos | /daily-demos/src/main/java/com/jiming/daily/utils/JsonUtils.java | UTF-8 | 1,458 | 2.703125 | 3 | [] | no_license | package com.jiming.daily.utils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import java.util.List;
/**
* 功能:alibaba JSON 工具类
* 说明:
* @author Mr.tjm
* @date 2020-5-20 11:25
*/
public class JsonUtils {
public JsonUtils() {
}
public static <T> T parseObject(String js... | true |
3a460eee02e59a0407e1436884b2a1f4d29b389d | Java | githubgmk/GSExplore | /GeisaAndro/GeisaApp/app/src/main/java/com/gmk/geisa/model/mUnit.java | UTF-8 | 798 | 2.28125 | 2 | [] | no_license | package com.gmk.geisa.model;
import java.io.Serializable;
/**
* Created by kenjinsan on 7/25/17.
*/
public class mUnit implements Serializable {
private String UnitId;
private String UnitName;
private int Status;
public mUnit(String unitId, String unitName, int status) {
UnitId = unitId;
... | true |
e9b1c8633324920926a5c8807ae0ac69c7bb383b | Java | wuhuaixi/dunyun | /modules/mainapp/src/main/java/net/dunyun/framework/android/mainapp/activity/gate/GateUserAddActivity.java | UTF-8 | 3,396 | 2.015625 | 2 | [] | no_license | package net.dunyun.framework.android.mainapp.activity.gate;
import android.content.Context;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.ListView;
import com.psoft.framework.android.base.ui.view.DialogUtil;
import com.psoft.framework.android.base.ui.view.ToastUtil;
import com.psoft.... | true |
1aa80791fc9322e1651c16460587fc64eff4e793 | Java | xxAcer/car | /src/cn/prince/pojo/Customers.java | UTF-8 | 2,692 | 2.46875 | 2 | [] | no_license | package cn.prince.pojo;
public class Customers {
private int id;
private String cname;
private String cpwd;
private String custname;
private String sex;
private String address;
private String phone;
private String career;
private int roleid ;
/**
* @return the id
*/
public int getId() {
return id;
}
... | true |
e0b135b7de4284017800797dd9b9abb9d04d309d | Java | Jayancv/njoba | /src/main/java/com/portal/service/AdvertisementService.java | UTF-8 | 291 | 2.046875 | 2 | [] | no_license | package com.portal.service;
import com.portal.model.User;
public interface AdvertisementService {
/**
* Advertisement code : this code generates using team code,user code and user advertisement Count
* @param usr
* @return
*/
String generateAdCode(User usr);
}
| true |
c599e460a5161497efd44370de9b512433a89604 | Java | Ailab403/iiimmsNLPerModule | /src/ims/crawlerLog/dao/TaskLogMapper.java | UTF-8 | 496 | 1.90625 | 2 | [] | no_license | package ims.crawlerLog.dao;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;
import ims.crawlerLog.model.TaskLog;
public interface TaskLogMapper {
void add(TaskLog taskLog);
void deleteById(String taskLogId);
void update(TaskLog taskLog);
void updateTaskStatusById(T... | true |
85522416034a8b27aacc4a569a945e1b56b25d0a | Java | mowangblog/MyBatis-Demo | /MyBatis_Parameter/src/test/java/top/mowang/ParameterTest.java | UTF-8 | 1,298 | 2.296875 | 2 | [] | no_license | package top.mowang;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import top.mowang.dao.UserDao;
import top.mowang.pojo.User;
import top.mowang.utils.MyBatisUtil;
import java.io.IOException;
import java.util.List;
/**
* MyBatis-Demo
*
* @author : Xuan Li
* @website : https://mowangblog.top
... | true |
6a8912bc61e6a2cc8d5236d709e1be8cd26e4ca3 | Java | fawad1997/mes | /src/main/java/com/wulf/systems/mes/entity/ProductAttribute.java | UTF-8 | 1,752 | 2.140625 | 2 | [] | no_license | package com.wulf.systems.mes.entity;
import lombok.Data;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
import javax.persistence.*;
import java.util.List;
import java.util.Objects;
@Data
@Entity(name = "ProductAttribute")
@Table(name = "mes_product_attribute")... | true |
8563d9cbf54d40b9ccbea720ff67f743b0ef9534 | Java | cs-543/RpcFramework | /Rpc/src/Rpc/Compiler/Token.java | UTF-8 | 2,177 | 3.46875 | 3 | [] | no_license | package Rpc.Compiler;
/**
* Represents a token.
*/
class Token {
public enum TokenType {
// Simple tokens.
TT_OPENBRACE,
TT_CLOSEBRACE,
TT_OPENBRACKET,
TT_CLOSEBRACKET,
TT_OPENPARENS,
TT_CLOSEPARENS,
TT_COMMA,
TT_SEMICOLON,
// Keywo... | true |
b0bd37a5b72f5d7bbb8677b46a121100f86ced54 | Java | Thadchet/Final_Project_v1 | /src/Logic/Rock.java | UTF-8 | 205 | 2.453125 | 2 | [] | no_license | package Logic;
public class Rock {
private int score;
public Rock() {
this.score = 30;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
}
| true |
c3792d9f60fcf7bc0441516061b69753bda0c2d1 | Java | yjh123ty/ckl_release | /src/main/java/tech/youmu/ckl/service/IServiceTypeService.java | UTF-8 | 970 | 2.125 | 2 | [] | no_license | /**
* Project Name:ckl
* File Name:IServiceTypeService.java
* Copyright (c) 成都友木科技 2016
*/
package tech.youmu.ckl.service;
import java.math.BigDecimal;
import java.util.List;
import tech.youmu.ckl.domain.ServiceType;
/**
* <p>Title:IServiceTypeService</p>
* @author zh
* @version v1.0
* <p>Date:2016年8月25日上午9:... | true |
59f58411aba3fba464ca058e4c421c18e85fcfef | Java | raphapaulino/java-studies | /App/src/CompSortImpl.java | UTF-8 | 645 | 3.390625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class CompSortImpl {
public static void main(String[] args) {
List<Person> arr = new ArrayList<Person>();
arr.add(new Person("Michael", 21));
arr.add(new Person("Jhonatan", 30));
arr.add(new Person("Ramirez", 31));
ar... | true |
94eea3f977e3f66d489602bcbf62d175c5e944d6 | Java | wsgan001/OnlineParticipation | /SImpleChallenges/SPOJ/src/Subs.java | UTF-8 | 1,701 | 2.875 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created with IntelliJ IDEA.
* User: shiwangi
* Date: 7/7/13
* Time: 1:23 PM
* To change this template use File | Settings | File Templates.
*/
class Subs {
public static void main(String[] args) thr... | true |
c1a24e664a7e8dea0ec826083f9dd381910c631d | Java | duswo/Algorithm | /src/BOJ_2562.java | UTF-8 | 556 | 2.84375 | 3 | [] | no_license | import java.util.Scanner;
public class BOJ_2562 {
/* url : https://www.acmicpc.net/problem/2562 */
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int[] arr = new int[9];
int max = -10000, n = 0;
for(int i = 0; i < 9; i++){
arr[i] = sc.ne... | true |
baf7f3f821da9c4b28149f59f892213ade8e65f7 | Java | geogiadim/rStarTree-implementation | /src/Distribution.java | UTF-8 | 527 | 2.9375 | 3 | [] | no_license | /**
* Class that holds the distroGroups for chooseSplitIndex Algorithm
*/
class Distribution {
private DistroGroup firstGroup; // The first distribution group
private DistroGroup secondGroup; // The second distribution group
Distribution(DistroGroup firstGroup, DistroGroup secondGroup) {
this.fir... | true |
113e70a4f8e88a6a5d9f301e810f5e265c7a5eb9 | Java | jairorodrigues/agendador | /src/main/java/br/ufms/facom/agendador/repository/Repository.java | UTF-8 | 306 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.ufms.facom.agendador.repository;
/**
*
* @author jairo
*/
public interface Repository<T, T2> {
T get(T2 id);
void add(T t);
void update(T t);
void remove(T t);
}
| true |
f026ac318c57dfdf79e865016bfca8061171c964 | Java | fieldenms/tg | /platform-web-ui/src/main/java/ua/com/fielden/platform/web/centre/api/front_actions/IFrontActions.java | UTF-8 | 571 | 1.796875 | 2 | [
"MIT"
] | permissive | package ua.com.fielden.platform.web.centre.api.front_actions;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.web.centre.api.actions.EntityActionConfig;
/**
* A contract for front action that will be displayed in selection criteria view.
*
* @author TG Team
*
* @param <T>
*/... | true |
4c9fe16774515c5149117bb4b36c88ea62ec1c8a | Java | thanhduy26091995/Maid | /app/src/main/java/com/hbbsolution/maid/utils/SessionManagerForAnnouncement.java | UTF-8 | 1,090 | 2.328125 | 2 | [] | no_license | package com.hbbsolution.maid.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by buivu on 29/06/2017.
*/
public class SessionManagerForAnnouncement {
SharedPreferences pref;
// Editor for Shared preferences
SharedPreferences.Editor editor;
// Context
... | true |
f34f2492a2c60a0336950b5dfc7ed986e4e1d421 | Java | nguyenthucthangcntt/QuanLyChiTieu | /AppProject_MoneyManager/app/src/main/java/com/example/mac/appproject_moneymanager/Actions/Khoanthu.java | UTF-8 | 963 | 1.914063 | 2 | [] | no_license | package com.example.mac.appproject_moneymanager.Actions;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import com.example.mac.appproject_moneymanager.MainActivity;
import com.example.mac.appproject_m... | true |
212869ef222b3391966fab2cd8e4d52f56bd169d | Java | musejianglan/Android_modules | /app_material_design/src/main/java/com/musejianglan/app4md/activity/ImageBehavior.java | UTF-8 | 1,633 | 2.578125 | 3 | [] | no_license | package com.musejianglan.app4md.activity;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
/**
... | true |
b97f0e18bea17a9759fee3f46c3713b1ca56e075 | Java | machinecode-io/chainlink | /core/src/test/java/io/machinecode/chainlink/core/util/StringsTest.java | UTF-8 | 1,296 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package io.machinecode.chainlink.core.util;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
/**
* @author <a href="mailto:brent.n.douglas@gmail.com">Brent Douglas</a>
* @since 1.0
*/
public class StringsTest extends Assert {
public static final Strings.T... | true |
1ce67daffaa63bc63de021f36881a70e10d9b901 | Java | Alan-pan/erp_mybatisplus | /src/main/java/com/zgjy/erp/service/impl/GoodsServiceImpl.java | UTF-8 | 448 | 1.507813 | 2 | [] | no_license | package com.zgjy.erp.service.impl;
import com.zgjy.erp.bean.Goods;
import com.zgjy.erp.mapper.GoodsMapper;
import com.zgjy.erp.service.GoodsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author yupan
* @since 2019-... | true |
603c89af309e9cb329c30fc1c90822b4265a7f7b | Java | iamrahulyadav/iwms | /other_app_source_code/OlaCabs_V3.3.07/com/google/android/m4b/maps/bj/Grid.java | UTF-8 | 4,314 | 2.125 | 2 | [] | no_license | package com.google.android.m4b.maps.bj;
import android.opengl.Visibility;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.CharBuffer;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL10;
/* rename... | true |
a50f8917ee7d6eb6f550665bc49df4c5955c44c8 | Java | AlissonNavarro/spw | /src/java/RelatorioMensal/RelatorioPortaria1510.java | UTF-8 | 2,391 | 2.3125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package RelatorioMensal;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author amsgama
*/
public class RelatorioPortaria1510 implements Serializable {
p... | true |
bc064dbff3f1ff2dee57b30cc9a9bdcd735339b7 | Java | zilonglym/xinyu | /store-core/src/test/java/com/graby/store/portal/rule/TestMain.java | UTF-8 | 1,401 | 2.296875 | 2 | [] | no_license | //package com.graby.store.portal.rule;
//
//import org.drools.RuleBase;
//import org.drools.RuleBaseFactory;
//import org.drools.StatefulSession;
//
//public class TestMain {
//
// /**
// * @param args
// */
// public static void main(final String[] args) {
//
//// final PackageBuilder builder = new PackageBuilder(... | true |
caf33121f6643c049d6e195083e5a37de115ed19 | Java | ysj2015/Mobile110 | /safecitypolice/src/com/inforun/safecitypolice/request/XJsonListener.java | UTF-8 | 451 | 1.703125 | 2 | [] | no_license | package com.inforun.safecitypolice.request;
import com.lidroid.xutils.exception.HttpException;
public interface XJsonListener {
/**
* 请求成功 statusCode == 200
*
* @param res
*/
public void onRequestSuccess(XResponse res);
/**
* 请求失败,请求地址不存在,或者网络错误
*
* @param error
* @pa... | true |