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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1b9550547413b6df3008b16035c27c7c41d7744e | Java | nuoyiai/tqsql | /core/src/main/java/tpsql/sql/mapping/SqlItemSet.java | UTF-8 | 490 | 2.21875 | 2 | [
"BSD-2-Clause"
] | permissive | package tpsql.sql.mapping;
import tpsql.sql.builder.SqlString;
public class SqlItemSet extends SqlItemContent implements ISqlItemClone<SqlItemSet> {
@Override
public SqlString toString(SqlItemArgs arg)
{
arg.setHidePrepend(true);
SqlString sql = super.toString(arg);
return new SqlString(" set ").contact(sq... | true |
ad5f6356062eb581968f7a653e171921108e3a73 | Java | CarlosBean/Backend-Parqueadero | /src/main/java/com/adsi/parqueadero/rest/services/PagosREST.java | UTF-8 | 5,382 | 2.234375 | 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.adsi.parqueadero.rest.services;
import com.adsi.parqueadero.jpa.entities.Carros;
import com.adsi.parqueadero.jpa.entities.... | true |
11aa8fb4a504f727f37cc770a3d7ae54f4d31979 | Java | luiz158/monitoracoes | /src/main/java/planilhaAT/ComparadorPlanilha.java | UTF-8 | 3,695 | 2.5625 | 3 | [] | no_license | package planilhaAT;
public class ComparadorPlanilha implements java.util.Comparator
{
protected int m_sortCol;
protected boolean m_sortAsc;
public ComparadorPlanilha(int sortCol, boolean sortAsc) {
this.m_sortCol = sortCol;
this.m_sortAsc = sortAsc;
}
public int compare(Object o... | true |
e4a9e8fc09e4536c966f5f7c11705b3c327b9174 | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/business/orderSearch/info/OrdarchCopier.java | UTF-8 | 1,026 | 2.265625 | 2 | [] | no_license | package br.com.mind5.business.orderSearch.info;
import java.util.List;
import br.com.mind5.info.InfoCopier;
import br.com.mind5.payment.payOrder.info.PayordInfo;
import br.com.mind5.payment.refundOrderItem.info.RefemInfo;
public final class OrdarchCopier {
public static OrdarchInfo copyFromPayord(PayordIn... | true |
b8de57f2293d78e114b077e7718e85f4ee86a2f9 | Java | likeyewan/Demo | /app/src/main/java/com/shoulashou/demo/tcp/ApplicationUtil.java | UTF-8 | 1,104 | 2.515625 | 3 | [] | no_license | package com.shoulashou.demo.tcp;
/**
* Created by likeye on 2020/7/23 9:59.
**/
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import android.app.Application;
public class ApplicationUtil extends Application... | true |
3954c7ff7f4d49575958a6e3ad4e9200a3785a61 | Java | MHarbi/algorithm-design | /Assignment4/MergesortRecord.java | UTF-8 | 972 | 3.3125 | 3 | [] | no_license | /***************************************************************************************
************ Defines Objects to be used by the non-recursive Mergesort routine *********
************ Programmed by Olac Fuentes *********
************ Last modified September 12, 2011 ... | true |
bf5e8769e008e152f6d25825b79258fda6c338e1 | Java | NewbieFlyOver/zbm | /zbm/src/main/java/wmq/fly/thread/concurrent/CyclicBarrierDemo.java | UTF-8 | 1,059 | 3.71875 | 4 | [] | no_license | package wmq.fly.thread.concurrent;
import java.util.concurrent.CyclicBarrier;
class ThreadDemo extends Thread{
CyclicBarrier cyclicBarrier;
public ThreadDemo(CyclicBarrier cyclicBarrier) {
this.cyclicBarrier = cyclicBarrier;
}
@Override
public void run() {
System.out.println("开始处理数据喽喽喽..........");
try {
... | true |
1dd89a3a6b30ee00055cff564c7000b3f9a9dba1 | Java | indraoct/sgo_android | /app/src/main/java/com/indraoctamaindra/library/UrlHit.java | UTF-8 | 1,011 | 2.140625 | 2 | [] | no_license | package com.indraoctamaindra.library;
import android.content.Context;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
/**
* Created by Indra Octama on 7/16/2015.
*/
public class UrlHit {
private static final St... | true |
1a4cb5c54718dc26dbe22e3f2ad8f0b4b1c2390a | Java | imflyn/Location | /TestLocation/src/com/flyn/location/service/MyItemizedOverlay.java | UTF-8 | 1,391 | 2.234375 | 2 | [] | no_license | package com.flyn.location.service;
import java.util.ArrayList;
import java.util.List;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.MapView;
import com.googl... | true |
e28c16211f7a1b6246fe6516838bc920f1e19470 | Java | BeyondSkyCoder/BeyondCoder | /leetcode/java/DataStructureStrArrayDeque/EncodeAndDecode_STR.java | UTF-8 | 2,312 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | package DataStructureStrArrayDeque;
import java.util.ArrayList;
import java.util.List;
public class EncodeAndDecode_STR {
/**
* Design an algorithm to encode a list of strings to a string.
* The encoded string is then sent over the network and is decoded back to
* the original list of strings.
... | true |
f76f5487ab767cdbebe49e19c80f2836a7493874 | Java | jselbie/ScheduleBuilder | /src/com/selbie/schedulebuilder/Resolver.java | UTF-8 | 14,162 | 2.15625 | 2 | [] | no_license | package com.selbie.schedulebuilder;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
public class Resolver
{
static final St... | true |
6592a61424d8b0e5b017a13e2772abcbbb7ebd0a | Java | jemoii/je-veri | /src/main/java/me/voler/jeveri/controller/IndexController.java | UTF-8 | 3,299 | 2.171875 | 2 | [] | no_license | package me.voler.jeveri.controller;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereot... | true |
8af8ff30ab329634a36a116b5e806fb5016bca82 | Java | bingoohuang/spring-redis-cache | /src/main/java/com/github/bingoohuang/springrediscache/RedisCacheNameGenerator.java | UTF-8 | 206 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.github.bingoohuang.springrediscache;
import org.aopalliance.intercept.MethodInvocation;
public interface RedisCacheNameGenerator {
String generateCacheName(MethodInvocation invocation);
}
| true |
801182373b61d8680706ac8d87afeccb0a79edca | Java | ChinnaVishnu/CORE | /CORE/src/test/java/com/jocata/core/existingfuctions/AddruleChangesFuctionaltiy.java | UTF-8 | 20,744 | 1.90625 | 2 | [] | no_license | package com.jocata.core.existingfuctions;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.Keys;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.se... | true |
25321021a13da614a9826572262a4ac361fe94e4 | Java | asaow/FlightServer | /src/main/java/com/mycompany/flightserver/service/BookingServices.java | UTF-8 | 1,218 | 2.484375 | 2 | [] | no_license | package com.mycompany.flightserver.service;
import com.mycompany.flightserver.hibernate.HibernateQueries;
import com.mycompany.flightserver.model.Booking;
import java.util.List;
/**
*
* @author Grupp 2
*/
public class BookingServices {
HibernateQueries hibernateQueries = new HibernateQueries();
public Bo... | true |
f7cba4ca3ac3a1e74a97a40c03a23a20e73d2040 | Java | AndroidTVDeveloper/com.google.android.tvlauncher | /HOLD/sources/defpackage/atr.java | UTF-8 | 1,095 | 1.90625 | 2 | [] | no_license | package defpackage;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
/* renamed from: atr reason: default package */
/* compiled from: PG */
final class atr implements atp {
private final int a;
private MediaCodecInfo[] b;
public atr(boolean z, boolean z2) {
int i = 1;
... | true |
4451ab7bf6c399f58b0a6d381c14929eb9b394ed | Java | pombredanne/lsh-for-source-code | /Big_Clone_Bench_files_used/bcb_reduced/3/selected/797815.java | UTF-8 | 14,175 | 2.03125 | 2 | [
"MIT"
] | permissive | package com.entelience.tomcat;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Enumeration;
import java.util.ArrayList;
import java.util.List;
import java.util.Iterator;
import java.util.Map;
import java.util.HashMap;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
im... | true |
4d0a054877a25c7464f1ecc9f63ad6c439eba212 | Java | zely20/java-developer-test-azelenko | /src/main/java/com/vizor/mobile/ConfigTweet.java | UTF-8 | 1,342 | 2.578125 | 3 | [] | no_license | package com.vizor.mobile;
import com.google.gson.annotations.SerializedName;
import com.vizor.mobile.twitter.Rule;
import com.vizor.mobile.twitter.Tweet;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class ConfigTweet implements Tweet {
private String text;
private List... | true |
2866ed2c465dba0636ed825f4dc82a23096b39cf | Java | AndreasNiederschick/weckdengeparden | /src/main/java/com/gepardec/wdg/guiRunner/RestGUI.java | UTF-8 | 11,837 | 2.265625 | 2 | [] | no_license | package com.gepardec.wdg.guiRunner;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.gepardec.wdg.challenge.model.ConstraintViolationResponse;
import com.gepardec.wdg.client.personio.Source;
import org.jboss.logging.Logger;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.A... | true |
ed45b933bc101568cc5ec68e4bcae2ee28266155 | Java | tungbkit/TSP-genetic-algorithm | /src/com/tungbk/tsp/Population.java | UTF-8 | 836 | 2.890625 | 3 | [] | no_license | package com.tungbk.tsp;
public class Population {
private static final int POP_SIZE = 200;
public Individual[] ins;
private int minDistance;
private Individual bestInv;
public Population(boolean init) {
ins = new Individual[POP_SIZE];
if (init) {
for (int i = 0; i < POP_SIZE; i++) {
Individual new... | true |
b1292b2cb0afe2ec2a82aa112b2b9d4819b7f3b1 | Java | lesps/Voice | /Voice/src/edu/upenn/cis350/voice/ConfirmationActivity.java | UTF-8 | 875 | 2.28125 | 2 | [] | no_license | package edu.upenn.cis350.voice;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ConfirmationActivity extends Activity{
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setConten... | true |
0b3903b236032a0dac4890a2aabd7178af57e8a0 | Java | praveenmunagapati/ms-registration-server | /server/modules/commonAssays/luminex/src/org/labkey/luminex/AnalyteImportHelper.java | UTF-8 | 1,793 | 1.9375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2007-2018 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
5561ac9ae4306c38700be6ca350ff976d9092d4c | Java | olegs-volaks/java2_thursday_online_2020_autumn | /team_healthy_tooth/src/main/java/dental_clinic/core/services/ContainsDatabaseIdService.java | UTF-8 | 1,317 | 2.4375 | 2 | [] | no_license | package dental_clinic.core.services;
import dental_clinic.core.requests.ContainsDatabaseIdRequest;
import dental_clinic.core.responses.ContainsDatabaseIdResponse;
import dental_clinic.core.responses.CoreError;
import dental_clinic.core.validators.ContainsDatabaseIdValidator;
import dental_clinic.core.database.patient.... | true |
6a09bd9f26bad2c5fe7fb6dc1d6a8e1c0d0d67df | Java | KeKeKuKi/IACAA30 | /base/support-jpa/src/main/java/com/gapache/jpa/OpByRecordEntity.java | UTF-8 | 870 | 2.03125 | 2 | [] | no_license | package com.gapache.jpa;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.Column;
import javax.persistence.Ent... | true |
a739610b2acbdd00cf63af70c82f772a7b7ba0f7 | Java | Caaarlowsz/StyleSkills | /src/me/liu/Listeners/KillStreaks.java | WINDOWS-1252 | 5,713 | 2.78125 | 3 | [] | no_license | package me.liu.Listeners;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerLevelChangeEvent;
i... | true |
5fab6ff0470c433ebad0e2615237583776ca62c9 | Java | xm-online/xm-lep | /xm-lep-api/src/main/java/com/icthh/xm/lep/api/LepProcessingListener.java | UTF-8 | 205 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package com.icthh.xm.lep.api;
import java.util.function.Consumer;
/**
* The {@link LepProcessingListener} interface.
*/
public interface LepProcessingListener extends Consumer<LepProcessingEvent> {
}
| true |
b10f30d894731c7922ead13cbfee534cfda25e99 | Java | xly8482/sw-table-edit | /sw-table-edit/src/main/java/com/example/demo/util/PoiExcelReport.java | UTF-8 | 8,524 | 2.59375 | 3 | [] | no_license | package com.example.demo.util;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;
import org.apache.poi.EncryptedDocumentException;
import org.apache.poi... | true |
3e4823b5fe91c8ba3d014351e0f0fd738d5d8052 | Java | unclebryan719/design-pattern | /src/main/java/com/unclebryan/builder/House.java | UTF-8 | 283 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.unclebryan.builder;
import lombok.Data;
/**
* @program: design-pattern
* @description: 房子-->Product
* @author: UncleBryan
* @created: 2021/05/29 20:41
*/
@Data
public class House {
private String basic;
private String wall;
private String roof;
}
| true |
d48dc76716ca01151df1033023ae3037493157d7 | Java | adaptris/interlok | /interlok-core/src/test/java/com/adaptris/naming/adapter/ContextFactoryTest.java | UTF-8 | 2,950 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Adaptris Ltd.
*
* 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 agree... | true |
d567de5c478f3e02c934e7d50facdb1161f1e60c | Java | gmazzali/com.common.util | /code/src/main/java/com/common/util/domain/model/entity/AuditablePersistence.java | ISO-8859-1 | 1,564 | 2.5 | 2 | [] | no_license | package com.common.util.domain.model.entity;
import java.io.Serializable;
import java.util.Date;
/**
* La interfaz que extiende {@link ActivePersistence} y que define las entidades auditables.
*
* @see Persistence
* @see ActivePersistence
*
* @since 02/07/2014
* @author Guillermo Mazzali
* @version 1.0
*
... | true |
c5f8d7b64131d696d40f3d8a694e67b16736679b | Java | garfieldua/google-appengine-training | /000_Hello_Endpoints/src/main/java/com/google/training/helloworld/Time.java | UTF-8 | 330 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.google.training.helloworld;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Time {
public String timeFormatted = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(Calendar.getInstance().getTime());
public Time() {
}
public String getTimeFormatted() {
return timeFormat... | true |
4ad8357d3eb54d0727de974e55c1a8ec259dbcdb | Java | xxxiaom/bluewhite | /src/main/java/com/bluewhite/product/primecost/tailor/service/TailorService.java | UTF-8 | 1,186 | 1.851563 | 2 | [] | no_license | package com.bluewhite.product.primecost.tailor.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.bluewhite.base.BaseCRUDService;
import com.bluewhite.common.entity.PageParameter;
import com.bluewhite.common.entity.PageResult;
import com.bluewhite.product.primecost.tai... | true |
a6004759977c0727305f54811b67ddc61478e4b8 | Java | wedgithubming/testDemo | /src/yaninst.java | UTF-8 | 269 | 2.046875 | 2 | [] | no_license | /**
* fileName:yaninst
* description:
* author:zz
* createTime:2019/3/8 11:07
*/
public class yaninst {
public static void main(String[] args) {
System.out.println("郭启明行健分子");
System.out.println("郭启明行健分子1");
}
}
| true |
26ca897a72e16d1482f5e5ac2c8f7340b164e27e | Java | bellmit/seed-project | /system/src/main/java/com/cody/seed/modules/system/entity/SysUser.java | UTF-8 | 2,366 | 1.96875 | 2 | [] | no_license | package com.cody.seed.modules.system.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cody.common.aspect.annotation.Stringify;
import com.cody.common.entity.SysLogicDeleteModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import... | true |
1ec328ec5813118e6875dfb66655da502e18e10e | Java | OuFungWah/FungWahToolsDemo | /app/src/main/java/com/example/fungwahtoolsdemo/animdemo/frament/Tween1Fragment.java | UTF-8 | 1,812 | 2.078125 | 2 | [] | no_license | package com.example.fungwahtoolsdemo.animdemo.frament;
import android.support.design.widget.FloatingActionButton;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import com.example.fungwahtools.fragment.BaseFragment;
imp... | true |
00e5dcccef3109063f04607a04bad59c6b0c934d | Java | merbauraya/lportal6.2 | /Eis-portlet/docroot/WEB-INF/src/com/idetronic/eis/model/impl/MasterFileCacheModel.java | UTF-8 | 4,927 | 1.804688 | 2 | [] | no_license | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | true |
607c295ca87ea6db911677bfa77d2b8809acad89 | Java | xpoll/qxx | /gui/src/main/java/cn/blmdz/search/Hits.java | UTF-8 | 292 | 1.6875 | 2 | [] | no_license | package cn.blmdz.search;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
@Data
public class Hits implements Serializable {
private static final long serialVersionUID = -8033128358999935071L;
private Long total;
private Float max_score;
private List<Hit> hits;
} | true |
68a8cb64a83956c293456f38e43aac2290dec1eb | Java | M4TH1EU/Flan-s-Mod-Updater | /src/main/java/ch/m4th1eu/flansupdater/Logger.java | UTF-8 | 867 | 2.921875 | 3 | [] | no_license | package ch.m4th1eu.flansupdater;
public class Logger {
public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String RED... | true |
611907431b429be2041cbc1e1d24e5d575b75f1f | Java | lucasreginato/DiffApi | /src/main/java/com/assignment/rest/v1/EndpointV1.java | UTF-8 | 9,540 | 2.6875 | 3 | [] | no_license | package com.assignment.rest.v1;
import javax.ws.rs.Consumes;
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 javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.apache.log4j.Logger;
import org.codehaus.jet... | true |
b28986f6b498563561050012113bbf155fce1e04 | Java | Krassimir-ILLIEV/Programming101-Java | /week03/1.Monday/Week03Monday_3011/src/_04_SummationFunction/SummationFunction.java | UTF-8 | 430 | 3.484375 | 3 | [] | no_license | package _04_SummationFunction;
public class SummationFunction {
public static <T1 extends Number, T2 extends Number> double add(T1 first, T2 second){
//return first.doubleValue()+second.doubleValue();
return (Double) first+(Double) second;
}
public static void main(String[] args){
SummationFunction sf=new ... | true |
de2d918c483d5dbe70ac50e27f6bf690a5f23827 | Java | lanye123/litemall-master | /litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/CsTestController.java | UTF-8 | 10,142 | 2.015625 | 2 | [
"MIT"
] | permissive | package org.linlinjava.litemall.wx.web;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.*;
import org.linlinjava.litemall.db.service.*;
import org.linlinjava.litemall.db.util.ResponseUtil;
import org.springframework.beans.factory.annotat... | true |
433634335a5f8467a4544104e145f2c45fbb5de2 | Java | christinakornilova/hillel-qa-auto-hometasks | /src/main/java/hometask03/ReplaceLastDCharacter.java | UTF-8 | 1,621 | 3.109375 | 3 | [] | no_license | package hometask03;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import utils.Utils;
import java.io.*;
import java.util.List;
public class ReplaceLastDCharacter {
private static Logger log = LogManager.getLogger(ReplaceLastDCharacter.class);
private final static String... | true |
f5727241529daae0f99a0a8998f80c36ba18071a | Java | ArrenBryan/TasksReminders_V2 | /app/src/main/java/com/example/tasksreminders/ui/tasks/TasksListAdapter.java | UTF-8 | 1,415 | 2.671875 | 3 | [] | no_license | package com.example.tasksreminders.ui.tasks;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.ListAdapter;
import android.view.ViewGroup;
public class TasksListAdapter extends ListAdapter<Tasks, TasksViewHolder> {
private OnNoteListener onNoteL... | true |
89dd6ca7812c58d0415d389c16304de5e0a99830 | Java | sanyaade-speechtools/capilla | /PrototipoLucene/src/es/sinai/ujaAsistVirtual/modelo/FactorySimpleAnalyzer.java | UTF-8 | 543 | 2.296875 | 2 | [] | no_license | /**
* SimpleAnalyzer.java
* @author Eugenio Martínez Cámara
* @date 07/06/2010
* @version
*/
package es.sinai.ujaAsistVirtual.modelo;
import java.io.IOException;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.SimpleAnalyzer;
/**
* @author Eugenio Martínez Cámara
*
*/
public cla... | true |
9e9adfd6c732d7cb05901b8255e5081adebca1f0 | Java | chris065/188GitHubRepo | /FINAL_PRODUCT/SEPVultureSoftware/src/VultureSoftware/FinalInspectionUI.java | UTF-8 | 13,647 | 2.203125 | 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 VultureSoftware;
import databaseui.DataBaseToolkit;
import databaseui.JobObject;
import static java.lang.Integer.parseInt;
imp... | true |
f86b2af79771040e06c47b4b183b9b8bc5ef2862 | Java | kaka17/SmartLock | /app/src/main/java/com/sht/smartlock/ui/activity/hourroom/BookingHourRoomActivity.java | UTF-8 | 5,179 | 2.140625 | 2 | [] | no_license | package com.sht.smartlock.ui.activity.hourroom;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android... | true |
cb88be8546246f171dc95d9e57d716596323bd8a | Java | tectronics/apollo | /apollo-ws/service-skeletons/java/tags/2.0/apollo-service-client/src/main/java/edu/pitt/apollo/apolloclient/TutorialChapter2_BasicRunSimulationExample.java | UTF-8 | 15,381 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2012 University of Pittsburgh
*
* 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 a... | true |
94baafa336112ad721c3929426fd33a0824595a4 | Java | pc5211/match1.0 | /nefu/src/main/java/nefu/itgardener/judge/core/model/WorkVo.java | UTF-8 | 759 | 1.9375 | 2 | [] | no_license | package nefu.itgardener.judge.core.model;
public class WorkVo {
private Integer isScore;
private String workName;
private Integer workId;
private Integer page;
public Integer getIsScore() {
return isScore;
}
public void setIsScore(Integer isScore) {
this.isScore = isScore;... | true |
c188ec496e02692106b6cd177b4f63462e797117 | Java | hunterhector/lti-event-coref | /event-coref-core/src/main/java/edu/cmu/lti/event_coref/analysis_engine/io/WekaARFFBinaryClassFeatureOutputWriter.java | UTF-8 | 6,101 | 1.820313 | 2 | [] | no_license | package edu.cmu.lti.event_coref.analysis_engine.io;
import edu.cmu.lti.event_coref.type.EventCoreferenceCluster;
import edu.cmu.lti.event_coref.type.EventMention;
import edu.cmu.lti.event_coref.type.PairwiseEventCoreferenceEvaluation;
import edu.cmu.lti.event_coref.type.PairwiseEventFeature;
import edu.cmu.lti.event_c... | true |
1d0d6fca662f6d62af4ff570936c78a56ec3d7cd | Java | fatroom/hemingway | /src/main/java/com/upday/hemingway/service/AuthorRepository.java | UTF-8 | 340 | 1.59375 | 2 | [] | no_license | package com.upday.hemingway.service;
import com.upday.hemingway.domain.Author;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource
public interface AuthorRepository extends PagingAndSortingRepositor... | true |
f1dd4711fdd0f0c70dfc9d481fe75135aed2374a | Java | teodoraj/Book-Shop | /src/BookSpecification.java | UTF-8 | 1,122 | 3.1875 | 3 | [] | no_license | import java.util.*;
public class BookSpecification {
private String title;
private int year, pages;
private double price;
private ArrayList<Person> authors;
private ArrayList<Notice> notices;
public BookSpecification(String t, int y, int p, double pr, ArrayList<Person> a, ArrayList<Notice> n) {
this.title = t... | true |
6e90df6caea4faea85bead92512344d725576245 | Java | Kev0204/DoldiMeter0.6 | /app/src/main/java/com/kevali/doldimeter04/besoffenActivity.java | UTF-8 | 392 | 1.773438 | 2 | [] | no_license | package com.kevali.doldimeter04;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
* Created by defaultuser0 on 09/08/2016.
*/
public class besoffenActivity extends AppCompatActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | true |
cc731a114277dd00c843897e074f186ef00d63d9 | Java | xundian360/HuaQiaoTong | /HuaQiaoTong/src/com/xundian360/huaqiaotong/activity/b03/B03V01Activity.java | UTF-8 | 3,547 | 2.078125 | 2 | [] | no_license | /**
*
*/
package com.xundian360.huaqiaotong.activity.b03;
import java.util.List;
import org.json.JSONException;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLa... | true |
d1a48932ae32a204c47b89be5fc028f3132f6277 | Java | fullWaveRectifier/wecare | /coachMS/src/main/java/com/infosys/coachms/service/CoachService.java | UTF-8 | 521 | 1.976563 | 2 | [] | no_license | package com.infosys.coachms.service;
import com.infosys.coachms.dto.BookingDTO;
import com.infosys.coachms.dto.CoachDTO;
import com.infosys.coachms.dto.LoginDTO;
import com.infosys.coachms.exception.WeCareException;
import java.util.List;
public interface CoachService {
CoachDTO getCoachById(String coachId);
... | true |
58dc5b554a6bc5de8538c3ed1e45c65d37fdb13f | Java | moutainhigh/Fexie-Spring-MVC-Backend | /fexie_openservice/fexie-service-provider/src/main/java/com/yuzhidi/service/impl/payment/OrderCancelServiceImpl.java | UTF-8 | 3,032 | 2.078125 | 2 | [] | no_license | package com.yuzhidi.service.impl.payment;
import com.yuzhidi.dao.account.commission.CommissionDetailDao;
import com.yuzhidi.dao.payment.OrderDao;
import com.yuzhidi.enums.core.mns.MnsNotifyTypes;
import com.yuzhidi.enums.payment.TradeStatusTypes;
import com.yuzhidi.global.ActionResultRO;
import com.yuzhidi.global.Retu... | true |
ca4237c9729df1e50d016781702e9efa6e1c4bac | Java | jiangjihui/springboot-web-frame | /springboot-web-frame-jpa-business-shiro/src/main/java/com/jjh/business/system/user/controller/SysUserController.java | UTF-8 | 4,801 | 2.0625 | 2 | [] | no_license | package com.jjh.business.system.user.controller;
import com.jjh.business.common.file.controller.form.UploadFileForm;
import com.jjh.business.system.user.controller.form.QueryUserForm;
import com.jjh.business.system.user.controller.form.ResetPasswordForm;
import com.jjh.business.system.user.controller.form.UserFrozenFo... | true |
06200238709c1375c8459b02679ce8c07cf5dbf3 | Java | KnoWsea/sell | /src/main/java/com/imook/sell/service/impl/SellerServiceImpl.java | UTF-8 | 667 | 2 | 2 | [] | no_license | package com.imook.sell.service.impl;
import com.imook.sell.dataobject.SellerInfo;
import com.imook.sell.repository.SellerInfoRepository;
import com.imook.sell.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author KnoWsea
* ... | true |
025dca07ded3c8752b3fb08a11e8c0ed43047376 | Java | Auch-Auch/avito_source | /sources/com/google/android/gms/internal/measurement/zzji.java | UTF-8 | 560 | 1.5625 | 2 | [] | no_license | package com.google.android.gms.internal.measurement;
public final class zzji {
private static final zzjg zza = zzc();
private static final zzjg zzb = new zzjf();
public static zzjg zza() {
return zza;
}
public static zzjg zzb() {
return zzb;
}
private static zzjg zzc() {
... | true |
7f344f4aadd3d5280ccbfa2bc46a24228b2aeb5c | Java | yevheniishestakov/DeliveryApp | /app/src/main/java/com/example/yevhenii/deliveryapp/DirectionDataModel/Polyline.java | UTF-8 | 215 | 1.882813 | 2 | [] | no_license | package com.example.yevhenii.deliveryapp.DirectionDataModel;
/**
* Created by Yevhenii on 23-Jul-17.
*/
public class Polyline {
public String getPoints() {
return points;
}
String points;
}
| true |
867fba0b899ccd252dce52ee856b1b7bef88835c | Java | amnaghori/SL-Assignments | /EmailAPI-JDBC/emailWithJDBC-WithRefresh/src/main/java/com/jdbc/test/dao/EmailDAO.java | UTF-8 | 246 | 1.84375 | 2 | [] | no_license | package com.jdbc.test.dao;
import java.util.List;
import com.jdbc.test.entities.Email;
public interface EmailDAO {
public void update(Email recvr);
public int[] batchUpdate(List<Email> emails);
public List<Email> getAll();
}
| true |
f66a29b4a55623f6a2c5044d8c60b295f5cf29de | Java | 12gw/Library | /library/src/main/java/com/library/manage/service/CategoryService.java | UTF-8 | 706 | 1.9375 | 2 | [] | no_license | package com.library.manage.service;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.library.manage.entity.Category;
import com.library.manage.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@... | true |
3300326aa3cb9aee76f7b07ad81f759575c064c5 | Java | achowdhury80/leetcode | /src/comp/prep2019/less2000/Prob1154.java | UTF-8 | 654 | 3.171875 | 3 | [] | no_license | package comp.prep2019.less2000;
public class Prob1154 {
public int dayOfYear(String date) {
String[] arr = date.split("-");
int[] days = new int[] {31, 28, 31, 30, 31, 30, 31,31, 30, 31, 30, 31};
int result = Integer.valueOf(arr[2]);
int cur = 1;
int month = Integer.valueOf(arr... | true |
fc309a907ffb883983c84364cc35187312abb601 | Java | Hadesky/CACW-Android | /app/src/main/java/com/hadesky/cacw/ui/fragment/InvitePersonFragment.java | UTF-8 | 4,349 | 1.867188 | 2 | [] | no_license | package com.hadesky.cacw.ui.fragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import and... | true |
4434eacacd38e399793a5d8dced2b77291897b13 | Java | Danial7777777/addentence | /attendance_common/src/main/java/com/w/attendance/exception/BusinessException.java | UTF-8 | 1,639 | 2.859375 | 3 | [] | no_license | package com.w.attendance.exception;
/**
* 业务异常
*
* @author linkai(31876) xmlinkai@gmail.com
* @since 2019-05-22 09:10
*/
public class BusinessException extends RuntimeException {
private final String msg;
private final int code;
/**
* 目前只有中台的错误才有tip
*/
private final String tip;
pub... | true |
3975d7c885c5a5f9be61ac82ad682753d4156465 | Java | yyhLogin/hengjia | /hengjia-scheduler/src/main/java/com/baibei/hengjia/scheduler/tasks/DeliveryMatchTimeTask.java | UTF-8 | 1,617 | 2.234375 | 2 | [] | no_license | package com.baibei.hengjia.scheduler.tasks;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baibei.hengjia.common.tool.api.ApiResult;
import com.baibei.hengjia.common.tool.constants.Constants;
import com.baibei.hengjia.scheduler.feign.ApiFeign;
import lombok.extern.slf4j.Slf4j;
imp... | true |
8e0d4597be7cdc168626e1e3638320605ebfb95b | Java | siddharthasingh/accountsummary | /src/main/java/com/cub/ao/vo/LoanAccountVO_.java | UTF-8 | 2,172 | 1.875 | 2 | [] | no_license | package com.cub.ao.vo;
import java.io.Serializable;
import java.math.BigDecimal;
/**
*
* @author Niraja Deshpande
*
*/
public class LoanAccountVO_ implements Serializable{
private static final long serialVersionUID = 545993571579708976L;
private String accountTypeCodeDesc;
private String l... | true |
072d9fcca5828245d59ddc957930a51bf95ba969 | Java | manikandanprabhu91/RaboAssignment | /src/main/java/com/rabo/assignment/domain/Records.java | UTF-8 | 534 | 2.203125 | 2 | [] | no_license | package com.rabo.assignment.domain;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "records")
@XmlAccessorType (XmlAccessType.F... | true |
47843830b031d3f18723a82b22f4e5a14ece64e9 | Java | MikeDLab/Epam_Pre-Training | /Task5/com_Epam_Pre_Training/Task5/Model/entity/cars/Car.java | UTF-8 | 2,716 | 3.3125 | 3 | [] | no_license | package com_Epam_Pre_Training.Task5.model.entity.cars;
import com_Epam_Pre_Training.Task5.model.entity.fuel.Fuel;
public class Car {
protected final String DEFAULT_BRAND = "Unknown brand";
protected String type;
protected String brand = DEFAULT_BRAND;
protected Fuel fuel;
protected int cost;
protected double ta... | true |
3efc52c650fbd521a2ff82ed4c753113ae9f93fc | Java | cgroc/flipside-api | /src/main/java/uk/co/grokemon/flipside/domain/Deck.java | UTF-8 | 170 | 1.648438 | 2 | [] | no_license | package uk.co.grokemon.flipside.domain;
public class Deck {
private int deck_id;
private int user_id; // is this even necessary? how to structure this stuff?
}
| true |
fd7d08c62a9a9e6e1801d9f7b72ce09ad8f5e11e | Java | solon-aguiar/coding_problems | /UVA/Problems/src/p11878.java | UTF-8 | 851 | 3.015625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class p11878 {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
int correctAnswers = 0;
while(true) {
String line = bf... | true |
6b6d2356cf116651d6dd0bc09a165655b27694b2 | Java | bakdoolotkeldibekova/homeworksItacademy | /57 - [Задание]- Многопоточность/Thread3.java | UTF-8 | 165 | 1.890625 | 2 | [] | no_license | public class Thread3 extends Thread {
@Override
public void run() {
System.out.println("working Thread3 => + ");
Result.result += 2;
}
}
| true |
b7116cea1607360c7316cbf9da2a09382157de9a | Java | cloudgyb/spring-boot-strategy | /src/main/java/com/gyb/spring/springbootstrategy/service/OrderService.java | UTF-8 | 672 | 2.234375 | 2 | [] | no_license | package com.gyb.spring.springbootstrategy.service;
import com.gyb.spring.springbootstrategy.dto.OrderDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class OrderService implements IOrderService {
private OrderHandlerContext orderHan... | true |
662ad288eebbfbe3edecc662ae068cdaad4d3212 | Java | nati7828/Financly | /app/src/main/java/nati/financly/ResetPasswordDialog.java | UTF-8 | 2,845 | 2.203125 | 2 | [] | no_license | package nati.financly;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatDialogFragment;
import android.widget.Toast;
... | true |
ef098202b31ff1d9ff4cd9b3be233ade0efd615a | Java | robinsonbrz/estudos | /design-pattern/src/br/com/alura/designpattern/Finalizado.java | ISO-8859-1 | 644 | 2.859375 | 3 | [] | no_license | package br.com.alura.designpattern;
public class Finalizado implements EstadoDeUmOrcamento {
@Override
public void aplicaDescontoExtra(Orcamento orcamento) {
throw new RuntimeException("No h descontos para oramento finalizado!!!");
}
@Override
public void aprova(Orcamento orcamento) {
throw new R... | true |
664445b31df701fd0ba2af21d4a2ca380b3fa239 | Java | easemob/kefu-android-demo | /app/src/main/java/com/easemob/helpdeskdemo/ui/TestDemoActivity.java | UTF-8 | 482 | 1.65625 | 2 | [] | no_license | package com.easemob.helpdeskdemo.ui;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.easemob.helpdeskdemo.R;
import com.hyphenate.helpdesk.easeui.ui.BaseActivity;
/**
* author liyuzhao
* email:liyuzhao@easemob.com
* date: 04/05/2018
*/
public class TestDemoActivity extends BaseA... | true |
9429fc500417087c6d32bab446cbddcc7ef43ada | Java | Jihaishu/ssm-CRUD | /src/main/java/com/atguigu/ssm/controller/EmployeeController.java | UTF-8 | 4,424 | 2.625 | 3 | [] | no_license | package com.atguigu.ssm.controller;
import com.atguigu.ssm.bean.Employee;
import com.atguigu.ssm.bean.Msg;
import com.atguigu.ssm.service.EmployeeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
c0645c95c06a3dd5aba61dbd241e2a5545b6d8c2 | Java | dileepan/ImageLoader | /demo/src/com/novoda/imageloader/demo/activity/ImageLongList.java | UTF-8 | 2,734 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.novoda.imageloader.demo.activity;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.SimpleCursorAdapter.ViewBinder;
import com.novo... | true |
6c596a5aaeaf362eee3c19fee1217c9f56259a04 | Java | wso2/product-ei | /migration/migration-service/src/main/java/org/wso2/carbon/ei/migration/migrate/RegistryTaskDeletionClient.java | UTF-8 | 3,039 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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... | true |
39b1a20e7465bd9a7de27cae327b64895c06dbec | Java | DonaldY/coding2017 | /group12/247565311/week3_fileDownloader/api/Connection.java | UTF-8 | 582 | 2.53125 | 3 | [] | no_license | package week3_fileDownloader.api;
import java.io.IOException;
import java.net.HttpURLConnection;
public interface Connection{
/**
* 缁欏畾寮�鍜岀粨鏉熶綅缃紝 璇诲彇鏁版嵁锛�杩斿洖鍊兼槸瀛楄妭鏁扮粍
* @param startPos 寮�浣嶇疆锛�浠�寮�
* @param endPos 缁撴潫浣嶇疆
* @return
*/
public byte[] read(int startPos,int endPos) throws IOException;
/**
... | true |
9dd4a0cc15ef4fb1d6e05d9760ee97c6cb9b0cc6 | Java | pjieder/TRiP | /TRiP/src/trip/dal/dbmanagers/dbdao/ProjectDBDAO.java | UTF-8 | 21,197 | 2.59375 | 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 trip.dal.dbmanagers.dbdao;
import trip.dal.dbmanagers.dbdao.Interfaces.IProjectDBDAO;
import java.sql.Connection;
import java.... | true |
4f2c0753193174e02e07b7943c06a268e11a369d | Java | erakai/VinBlood | /src/main/java/com/kai/vinblood/display/Hoverable.java | UTF-8 | 202 | 2.21875 | 2 | [] | no_license | package com.kai.vinblood.display;
/**
* @author Kai on Mar 20, 2019
*/
public interface Hoverable {
void onHover();
void onNotHovered();
boolean checkCollision(int otherX, int otherY);
}
| true |
26025f7bedbf4f172ee30a330ec0af677208875f | Java | pearez/step4 | /src/main/java/es/unileon/repository/OfficeDao.java | UTF-8 | 203 | 1.890625 | 2 | [] | no_license | package es.unileon.repository;
import es.unileon.domain.Office;
import java.util.List;
public interface OfficeDao {
public List<Office> getOfficeList();
public void saveOffice(Office off);
}
| true |
fb2073a380ae0742fbe2d4e38e53d5041974a8c6 | Java | RealMozog/AnalisadorLexico | /src/br/uefs/ecomp/AnalisadorLexico/model/TokenError.java | UTF-8 | 865 | 2.71875 | 3 | [] | no_license | package br.uefs.ecomp.AnalisadorLexico.model;
/**
*
* @author Alessandro Costa
*/
public class TokenError {
private String codigo;
private String mal_formed_lexema;
private int line;
public TokenError(int line){
this.line = line;
}
@Override
public String toString() {
... | true |
29d6055fbb13714aa736879bbcbd0dfeb6761857 | Java | Aleksey25/HomeWork | /src/lesson17/animal/HorseSer.java | UTF-8 | 959 | 3.3125 | 3 | [] | no_license | package lesson17.animal;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Created by student on 6/18/2017.
*/
public class HorseSer {
public static void main(String[] args) {
Horse horse = new Horse("Slevin");
... | true |
59c9c35cf3f21252cad750d1d195f53276b08d36 | Java | grzegorz-aniol/graphomance | /src/main/java/org/gangel/graphomance/ObjectApi.java | UTF-8 | 1,135 | 2.203125 | 2 | [
"MIT"
] | permissive | package org.gangel.graphomance;
import java.util.Map;
public interface ObjectApi {
void startTransaction();
void commit();
void rollback();
Object getNode(final String clsName, final NodeIdentifier nodeId);
long shortestPath(final NodeIdentifier start, final NodeIdentifier end);
default NodeIdentifi... | true |
d739504f53e69fcc10df65a2601a32d5ba4c3093 | Java | couchbase/couchbase-jvm-clients | /core-io/src/main/java/com/couchbase/client/core/env/LoggingMeterConfig.java | UTF-8 | 3,251 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
ead040a6de0c72c6f64926bb52bc05946fbf2ce6 | Java | FISTPERFECT/JSONSchmea-UI-Generation | /src/main/java/com/sai/test/JsonSchema/MyClass.java | UTF-8 | 1,691 | 2.609375 | 3 | [] | no_license | package com.sai.test.JsonSchema;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
public class MyClass {
... | true |
7f32ffcab3638241c2f9fecf35cb04cff3728bd7 | Java | weylar/Sentinel | /app/src/main/java/com/android/sentinel/HealthCheck/Connectivity/TestHeadphoneJack.java | UTF-8 | 7,170 | 1.71875 | 2 | [] | no_license | package com.android.sentinel.HealthCheck.Connectivity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppC... | true |
46f3838aa9d3c2a8a42daf02922793bbfe8c7b3d | Java | maengseungju/sampleProject | /src/javaEx/CConverterApp.java | UTF-8 | 616 | 3.125 | 3 | [] | no_license | package javaEx;
public class CConverterApp {
public static void main(String[] args) {
double dollar;
double won;
dollar = 1000000;
won = 100;
CConverter.setRate(1099.00);
System.out.println("백만원은 " +
... | true |
df375af24514702281fce031c99b52966374b7fb | Java | GauravGupta27/Drdo-project1 | /InterviewResult.java | UTF-8 | 3,029 | 2.65625 | 3 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class InterviewResult extends HttpServlet
{
@Overr... | true |
08597775cda735796c7a0132b60107875461090b | Java | mozammel/vBoard | /src/main/java/com/livingoncodes/vboard/repository/BoardRepository.java | UTF-8 | 267 | 1.882813 | 2 | [] | no_license | package com.livingoncodes.vboard.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.livingoncodes.vboard.entity.Board;
public interface BoardRepository extends JpaRepository<Board, Long> {
public Board findByName(String name);
} | true |
e5a98c5d212db93ae6d55601e176ad84ca9506b1 | Java | SeanQinSolver/X | /LintCode/Rotate Array.java | UTF-8 | 632 | 3.21875 | 3 | [] | no_license | public class Solution {
public void rotate(int[] nums, int k) {
if (nums.length == 0 || nums == null) return;
k = k % nums.length;
System.out.println(k);
rotate(nums, nums.length - k, nums.length - 1);
rotate(nums, 0, nums.length - k - 1);
rotate(nums, 0, nums.length... | true |
ae9ac0dfbbd6ebd4ff538897030e31e80eaebb11 | Java | ben-barks/java_themepark | /day3/dealership/src/main/java/DealershipComponents/Mechanic.java | UTF-8 | 430 | 2.828125 | 3 | [] | no_license | package DealershipComponents;
import Vehicles.Vehicle;
public class Mechanic {
private int hoursWorked;
public Mechanic(){
this.hoursWorked = 0;
}
public void repairDamage(Vehicle vehicle){
this.hoursWorked = vehicle.getDamage() - 1;
vehicle.setDamage(1);
vehicle.set... | true |
fe6429ed2199ca4a15c304557869ce16d1724b48 | Java | Ravi1674/Task1-Booking-System-JWT | /src/main/java/com/bookingsystem/api/controller/JwtController.java | UTF-8 | 758 | 2.046875 | 2 | [] | no_license | package com.bookingsystem.api.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.bookingsystem.api.e... | true |
b83452820ea555b011b3eb18544fc7d69114c41b | Java | farhanarnob/Android_App_Development_Unit_Testing_Go_Through_From_Lynda | /app/src/test/java/com/mycompany/example/myapplication/SimpleMathTest.java | UTF-8 | 2,597 | 2.609375 | 3 | [] | no_license | package com.mycompany.example.myapplication;
import com.mycompany.example.myapplication.categories.FastTests;
import com.mycompany.example.myapplication.categories.GoogleMapsIntegrationTests;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.... | true |
18df1f903ca1b2292f1b4dc866b76d5e11243192 | Java | djulbicb/teamvote | /src/main/java/com/bojan/teamvote/model/exceptions/UserNotFound.java | UTF-8 | 196 | 1.648438 | 2 | [] | no_license | package com.bojan.teamvote.model.exceptions;
/**
* Used in rest services. Double checks if user email exists in database
* @author Bojan
*
*/
public class UserNotFound extends Exception {
}
| true |
0b2711cb974e26e6acbfad3120667bf753719f2b | Java | XStrawhatCrew/meliodas | /Order/src/main/java/vn/aliviet/order/common/StatusType.java | UTF-8 | 927 | 2.296875 | 2 | [] | no_license | package vn.aliviet.order.common;
/**
* Created by windluffy on 10/1/2015.
*/
public class StatusType {
public static final int PRODUCT_REJECTED = 12;
public static final int PRODUCT_NOT_DONE = 11;
public static final int PRODUCT_DONE = 10;
public static final int ORDER_REJECTED = 22;
public stati... | true |
edb2b16b2a8f221880ed8bdf5730166ac1bdc554 | Java | HeyBanditoz/mchelper | /src/main/java/io/banditoz/mchelper/weather/darksky/AlertsItem.java | UTF-8 | 214 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package io.banditoz.mchelper.weather.darksky;
import java.util.List;
public record AlertsItem(String severity, int expires, List<String> regions, String description, int time, String title,
String uri) {
} | true |
f70a9c1722cce54268d097f89a21f1c028ea299b | Java | huutrongtdtp/roomie | /src/main/java/com/hcmut/roomie/rest/ReplyAPI.java | UTF-8 | 1,006 | 1.953125 | 2 | [] | no_license | package com.hcmut.roomie.rest;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bi... | true |
7263251a1ece7f3baa0b2bbd82884932e93c144b | Java | DEBOJYOTI11/Mini-projects-in-Java | /7. Airline Reservation System in servlets and JSP/src/com/nissan/training/corejava/project/controller/AdminRegistrationController.java | UTF-8 | 2,352 | 2.640625 | 3 | [] | no_license | package com.nissan.training.corejava.project.controller;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.nissan.training.corejava.project.enums.Validators;
import com.nissan.training.corejava.project.int... | true |