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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0b20faac251e7ce8a64674b7a81bab4a5288b131 | Java | xutongle/jwhwxt | /src/main/java/com/muran/aop/annotation/BussAnnotation.java | UTF-8 | 702 | 2.25 | 2 | [] | no_license | package com.muran.aop.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface BussAnnotation {
/**
*
* @ret... | true |
5f645553a71297859c161cd11b4bafb3cf29ea43 | Java | nandan-pai/Abdul-Bari-Java-Course-Udemy-Challenges | /Practice Problems/GCD/GCD.java | UTF-8 | 248 | 3.09375 | 3 | [] | no_license | class GCD {
public static int getgreatestCommonDivisor(int a, int b) {
if(a < 10 || b < 10) return -1;
int gcd = 1;
for(int i = 2; i <= a && i <= b; i++) {
if(a % i == 0 && b % i == 0) {
gcd = i;
}
}
return gcd;
}
} | true |
b8675e3a189f8234bdef741ec5c4825f45be978a | Java | Diego-Varela-Silva/TATS-Respostas | /Atividade03/src/tdd01/Calculadora.java | UTF-8 | 1,080 | 3.0625 | 3 | [] | no_license | package tdd01;
import java.util.ArrayList;
import java.util.List;
public class Calculadora {
public List<Proposta> calcular(float salario, float valorEmprestimo) {
ArrayList<Proposta> propostas = new ArrayList<>();
if (salario <= 1000F) {
propostas.add(new Proposta(2 * va... | true |
b442846b1e04f791174faf828ee9bb329d348247 | Java | yizhuan/tradingapp | /src/main/java/mobi/qubits/tradingapp/query/QuoteEntityRepository.java | UTF-8 | 252 | 1.84375 | 2 | [] | no_license | package mobi.qubits.tradingapp.query;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface QuoteEntityRepository extends MongoRepository<QuoteEntity, String> {
public QuoteEntity findBySymbol(String symbol);
}
| true |
e87b94d9cbcfa0e88bf6ab288931630dcee87a7b | Java | PRL-PRG/scala-implicits-analysis | /scripts/tools/sccpreprocessor/src/Helpers.java | UTF-8 | 844 | 2.765625 | 3 | [
"MIT"
] | permissive | import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
/**
* Created by peta on 19.12.16.
*/
public class Helpers {
public static void writeRow(ArrayList<String> row, Writer writer) throws IOException {
writer.write(row.get(0));
for (int i = 1; i < row.size(); ++i) {
... | true |
f5f1996779116e3d784f0e546a0c05d1f5c23db6 | Java | ClaudioFsan01/Projeto-Classes-e-Metodos-Abstratos | /GerenciarBonificacao.java | ISO-8859-1 | 434 | 2.609375 | 3 | [] | no_license |
public class GerenciarBonificacao {
protected int totalBonificacoes =0;
public void setBonificacao(Funcionario funcionario) // a variavel funcionario pode fazer referencia a objetos de outros tipos e no somente da classe Funcionario
{
totalBonificacoes += fu... | true |
834f634708aa99e04f70e2a84afedce342fe59a0 | Java | xiaomingmuzi/SingleSina | /app/src/main/java/com/lixm/singlesina/bean/PicUrlsBean.java | UTF-8 | 500 | 1.90625 | 2 | [] | no_license | package com.lixm.singlesina.bean;
import java.io.Serializable;
/**
* @author Lixm
* @date 2018/1/30
* @detail
*/
public class PicUrlsBean implements Serializable {
/**
* thumbnail_pic : http://wx1.sinaimg.cn/thumbnail/006HMUtTly1fnslk6k47hj30by0by0tk.jpg
*/
private String thumbnail_pic;
p... | true |
3d4de959d34193eee8bcfedabeb44d7ebad7fbcd | Java | hahagioi998/OnlineEdu-9 | /edu-microservice-center/src/main/java/com/onlineEdu/sysuser/service/CourseService.java | UTF-8 | 883 | 1.789063 | 2 | [] | no_license | package com.onlineEdu.sysuser.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.onlineEdu.sysuser.dto.CourseInfoDto;
import com.onlineEdu.sysuser.dto.CoursePublishDto;
import com.onlineEdu.sysuser.dto.CourseSearchDto;
impo... | true |
60c0743dfab3ea8d1d20a2962dc2bd03d9daa815 | Java | GoSteven/9321-Assignment | /src/com/entities/RecommendMovie.java | UTF-8 | 468 | 2.140625 | 2 | [] | no_license | package com.entities;
/**
* RecommendMovie entity. @author MyEclipse Persistence Tools
*/
public class RecommendMovie extends AbstractRecommendMovie implements
java.io.Serializable {
// Constructors
/** default constructor */
public RecommendMovie() {
}
/** full constructor */
public RecommendMovie(String... | true |
a950062a1c9dc56947afcfec06ed873d8204e0bd | Java | fabriciooc/MySales | /MySales/src/main/java/br/com/revisaotextual/logica/EditarServicosLogica.java | UTF-8 | 696 | 2.296875 | 2 | [] | no_license | package br.com.revisaotextual.logica;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class EditarServicosLogica implements Logica {
@Override
public String executa(HttpServletRequ... | true |
898cc2859d9451a90fbc19bd9f882c847759ab90 | Java | joelcn/MyApplication | /app/src/main/java/com/example/rafaelsinosaki/myapplication/MainActivity.java | UTF-8 | 1,744 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.rafaelsinosaki.myapplication;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
public Button btnServicos;
p... | true |
7fea7c9739421f30dc4f3f5835c06363ec88ab13 | Java | hianzuo/android-dbaccess | /LibDBAccess/src/main/java/com/hianzuo/dbaccess/sql/SQLiteUpdateSQLHandler.java | UTF-8 | 1,032 | 2.46875 | 2 | [] | no_license | package com.hianzuo.dbaccess.sql;
import android.content.ContentValues;
import android.text.TextUtils;
import com.hianzuo.dbaccess.util.ContentValues2xUtil;
/**
* User: Ryan
* Date: 14-4-3
* Time: 上午10:41
*/
public class SQLiteUpdateSQLHandler {
public static String create(String table, ContentValues values,
... | true |
7d6b88a981d47bf76a46784a5fcc4e2767867c06 | Java | RenjithKI/deSignPatternJava | /src/FactoryPattern/FactoryPatternAnimalDemo.java | UTF-8 | 374 | 3.125 | 3 | [] | no_license | package FactoryPattern;
public class FactoryPatternAnimalDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
AnimalFactory af = new AnimalFactory();
Animal a1 = af.createAnimal("DOG");
Animal a2 = af.createAnimal("CAT");
Animal a3 = af.createAnimal("DUCK"... | true |
58aaa1f61123c53567fb133f23d189063f92592e | Java | shuixi2013/AmapCode | /app/src/main/java/com/alipay/mobile/inside/h5/insideh5adapter/IInsideH5Service.java | UTF-8 | 179 | 1.507813 | 2 | [] | no_license | package com.alipay.mobile.inside.h5.insideh5adapter;
import com.alipay.mobile.h5container.service.H5Service;
public interface IInsideH5Service {
H5Service getH5Service();
}
| true |
2b8cbbc0efd36792e0a841a1e231ce343c3a085b | Java | p0po/user | /others/crawer/src/main/java/net/yongpo/crawer/Sql.java | UTF-8 | 3,372 | 2.734375 | 3 | [] | no_license | package net.yongpo.crawer;
import java.sql.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by p0po on 15-3-2.
*/
public class Sql {
private static String connectStr = "jdbc:mysql://localhost:3306/fangger";
private static String username = "... | true |
ba092bf3047f98667fc434cb7e86c8f003d330df | Java | DrRico/LeetCode | /src/com/rico/YueWen/fun.java | UTF-8 | 584 | 3.046875 | 3 | [] | no_license | package com.rico.YueWen;
/**
* @author Rico_dds
* @date 2020/11/24 14:53
*/
public class fun {
public static void main(String[] args) {
System.out.println(function(4));
}
private static int function(int n){
int[] dp = new int[n + 1];
dp[0] = 1;
dp[1] = 1;
for (in... | true |
1e20778fc9d52a7c1ffc93c84aaa13f29b17ef5d | Java | crysehillmes/smoothnovelreader | /app/src/main/java/org/cryse/novelreader/view/ContentViewEx.java | UTF-8 | 216 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package org.cryse.novelreader.view;
/**
* Created by cryse on 11/20/14.
*/
public interface ContentViewEx extends ContentView {
public boolean isLoadingMore();
public void setLoadingMore(boolean value);
}
| true |
8efc0505b2d2c45355a6a9dd46386164a8d4e938 | Java | SergioDiaz99/UTNPhonesDiazFtMurrie | /src/main/java/com/utnphones/UTNPhonesDiazFtMurrie/dao/LineTypeDao.java | UTF-8 | 315 | 1.679688 | 2 | [] | no_license | package com.utnphones.UTNPhonesDiazFtMurrie.dao;
import com.utnphones.UTNPhonesDiazFtMurrie.model.domain.LineType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface LineTypeDao extends JpaRepository<LineType, Integer> { }
| true |
349af610dd0796697f958f9867f9348ae3a56bf5 | Java | Domiciano/FirestoreEjemplo | /app/src/main/java/edu/co/icesi/firestoreejemplo/MainActivity.java | UTF-8 | 2,744 | 2.4375 | 2 | [] | no_license | package edu.co.icesi.firestoreejemplo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.textfield.TextInputEditText... | true |
49cf69aec8cd52282f4b38cb84bc6190dc87dfe7 | Java | SindhuKarnic/ELF-06June19-Techchefs-SindhuKarnic | /CoreJava/src/com/techchefs/javaapp/conditions/Language.java | UTF-8 | 326 | 2.671875 | 3 | [] | no_license | package com.techchefs.javaapp.conditions;
public class Language {
public static void main(String[] args) {
int langOption = 3;
String msg;
switch (langOption) {
case 1: msg = "Kannade";
break;
case 2: msg = "English";
break;
case 3: msg ="Telugu";
break;
default : msg = "Invalid";
}
System.out.println(msg)... | true |
ad547fad41c7340938569932cab1d94ba3915e6b | Java | MikeLang520/lang | /src/myservlet/control/PostMan.java | UTF-8 | 802 | 2.234375 | 2 | [] | no_license | package myservlet.control;
import java.io.*;
import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
@WebServlet("/ch5/postman")
public class PostMan extends HttpServlet{
private static final long serialVersionUID = 4557103380658377142L;
public void doPost(HttpServletRequest... | true |
ba6df9e3a776a700cc20ea02712b9edb541463c2 | Java | gurhann/radyodinlenir | /src/main/java/com/itaki/radyodinlenir/service/UserService.java | UTF-8 | 277 | 1.875 | 2 | [] | no_license | package com.itaki.radyodinlenir.service;
import com.itaki.radyodinlenir.exception.UserNotFoundException;
import com.itaki.radyodinlenir.persistence.model.User;
public interface UserService {
public User getUserByUserName(String userName) throws UserNotFoundException;
}
| true |
410b1a45c30941fc4b562d9950d1d75858ecd4fb | Java | devoxx/WatsonSherlockProject | /src/main/java/com/devoxx/watson/service/AlchemyLanguageService.java | UTF-8 | 9,696 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.devoxx.watson.service;
import com.devoxx.watson.exception.ArticleTextExtractionException;
import com.devoxx.watson.model.AlchemyContent;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.jsoup.Connection;
i... | true |
ab00e17c2668fff284a0e1884f5acc08f637c122 | Java | OlegChapurin/lesson18 | /task/work/NewTables.java | UTF-8 | 1,279 | 2.5625 | 3 | [] | no_license | package lesson.task.work;
import lesson.task.dao.TableDdl;
import lesson.task.dao.TablePostgres;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* delete create tables
* @author Oleg_Chapurin
*/
public class NewTables {
private static final Logger logger = LogManager.ge... | true |
09d0ee0f116c258c6e3abe97f6a4f22e7ad82552 | Java | zoltanaty/Common-Project-ubbse2016 | /techinterview_backend/src/main/java/com/halcyonmobile/model/Privileges.java | UTF-8 | 649 | 2.171875 | 2 | [] | no_license | package com.halcyonmobile.model;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@Entity
@Table(name = "privileges")
public class Privileges {
@Id
@Column(name = "idprivileges")
private String idprivileges;
@Column(name = "nameprivileges")
private String nameprivi... | true |
276b4473280809c7a4ee193ed9453cbefb33576c | Java | Softtanck/MultiTypeRecycleView | /Cheweishi/app/src/main/java/com/cheweishi/android/utils/mapUtils/MapSearchUtil.java | UTF-8 | 7,363 | 2.109375 | 2 | [] | no_license | package com.cheweishi.android.utils.mapUtils;
import com.baidu.mapapi.model.LatLng;
import com.baidu.mapapi.search.geocode.GeoCodeOption;
import com.baidu.mapapi.search.geocode.GeoCoder;
import com.baidu.mapapi.search.geocode.OnGetGeoCoderResultListener;
import com.baidu.mapapi.search.geocode.ReverseGeoCodeOption;
imp... | true |
9272f9077d36ebf149adb34ab34e1a52690cb78e | Java | fbazzouz/Estival-Club | /src/Utils/Constants.java | UTF-8 | 1,190 | 1.703125 | 2 | [] | no_license | package Utils;
public class Constants {
public static final String MAIN = "/views/accueil.fxml";
public static final String MAINVIEW = "/views/main.fxml";
public static final String SIDEMENUVIEW = "/views/sideMenu.fxml";
public static final String LISTERCLIENTHEBERG = "/views/listerClientHeberg... | true |
093ecb26a1b45e75ad04ca214ae25f53a729ed50 | Java | GameKuchen/vrchatapi-java | /src/main/java/io/github/vrchatapi/model/FileStatus.java | UTF-8 | 1,668 | 2.375 | 2 | [
"MIT"
] | permissive | /*
* VRChat API Documentation
*
* The version of the OpenAPI document: 1.4.2
* Contact: me@ruby.js.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.github.vrchatapi.model;
import... | true |
b521a1e852fa28a4d7b0109495975bd1bcf6a681 | Java | swati2904/E-WHOLESALE-APPLICATION-JSP-SERVLET | /src/controller/LoginController.java | UTF-8 | 1,652 | 2.46875 | 2 | [] | no_license | package controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import DAO.Use... | true |
5cd88e216a3357fa7b8de4ae533c3ee2e449836d | Java | SAtanasovv/onlineShop | /src/main/java/com/satanasov/onlineShop/model/enums/ShipmentMethod.java | UTF-8 | 115 | 1.8125 | 2 | [] | no_license | package com.satanasov.onlineShop.model.enums;
public enum ShipmentMethod {
ECONOMY,
STANDARD,
FAST
}
| true |
4c062d55a65063f95a48f51ff913a3b17dafd020 | Java | jjurm/fbp | /src/main/java/net/talentum/fbp/hardware/drivers/VirtualDisplay.java | UTF-8 | 405 | 2.453125 | 2 | [] | no_license | package net.talentum.fbp.hardware.drivers;
/**
* This class is used besides and never without a {@link DisplayDriver}. It simulates a real display with the
* parameters specified in the {@link DisplayDriver}.
* @author padr31
*/
public class VirtualDisplay {
private DisplayDriver displayDriver;
public Virtual... | true |
0ce777ef058c5d3509fe150f4f06a704c7999052 | Java | BartvaiErika/i4-backend | /javaprogramming_before_specialisation/week8programming/Week8/reflectionWeek8/ThermostatTest.java | UTF-8 | 1,069 | 3.3125 | 3 | [] | no_license | //package Week8.reflectionWeek8;
//
//import org.junit.jupiter.api.Assertions;
//import org.junit.jupiter.api.Test;
//
//class ThermostatTest {
// private Thermostat thermostat = new Thermostat(temp -> temp < 0, temp -> temp + " degrees Celsius.");
// private Thermostat thermostat2 = new Thermostat(temp -> temp >... | true |
4982f3cd8c78194996fbbcbf69353c34e32d9239 | Java | wongshandev/tob_mall | /tob-goods/src/main/java/com/service/AttrService.java | UTF-8 | 500 | 1.835938 | 2 | [] | no_license | package com.service;
import com.entities.AttrDO;
import java.util.List;
import java.util.Map;
/**
*
*
* @author chglee
* @email 1992lcg@163.com
* @date 2018-12-25 14:40:29
*/
public interface AttrService {
AttrDO get(Integer attrId);
List<AttrDO> list(Map<String, Object> map);
int count(Map<String, ... | true |
b33ca5c20945e8056461ccea7fead7c65c2309a5 | Java | koczkak98/JavaWSDLFahrenheitConverter | /JavaWSDLFahrenheitConverter/src/main/java/JavaWSDLFahrenheitConverter/forras/AFDTempConverterEndpointServiceSoapBinding.java | UTF-8 | 8,383 | 2.140625 | 2 | [] | no_license | package JavaWSDLFahrenheitConverter.forras;
//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.10.3.0
//
// Created by Quasar Development
//
//----------------------------------------------------
import org.ksoap2.HeaderProperty;
import org.ksoap2.serializati... | true |
e09aefd3311068902622ba3fe9dc0841b614efd9 | Java | hutomadotAI/web-api | /service/core-service/src/main/java/com/hutoma/api/connectors/aiservices/AiServicesQueue.java | UTF-8 | 9,894 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.hutoma.api.connectors.aiservices;
import com.hutoma.api.common.JsonSerializer;
import com.hutoma.api.common.Tools;
import com.hutoma.api.connectors.*;
import com.hutoma.api.connectors.db.Database;
import com.hutoma.api.connectors.db.DatabaseException;
import com.hutoma.api.containers.ServiceIdentity;
impor... | true |
cd46b15bd386cbb4356c6eb6e97d7f30cd129690 | Java | 180254/Battleship44 | /battleship-back-end/src/test/java/pl/nn44/battleship/util/other/StringsTests.java | UTF-8 | 1,287 | 2.609375 | 3 | [
"MIT"
] | permissive | package pl.nn44.battleship.util.other;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import pl.nn44.battleship.util.Strings;
public class StringsTests {
@Test
public void safeSubstringTest1_whole() {
String subStr = Strings.safeSubstring("ala", 0, 3);
Assertions.assertEquals... | true |
6b4650a2b7b8963383905124ea521b24583cd089 | Java | yangyusong1121/Android-car | /app/src/main/java/com/tgf/kcwc/me/dealerbalance/DealerBalanceActivity.java | UTF-8 | 5,259 | 1.835938 | 2 | [] | no_license | package com.tgf.kcwc.me.dealerbalance;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.tgf.kcwc.R;
import com.tgf.kcwc.base.BaseActiv... | true |
6d1cea7db18da663dc42b0af826474a28cd8b071 | Java | bharathd/AdhaServices | /src/main/java/com/app/adha/dao/UserDAO.java | UTF-8 | 399 | 2.140625 | 2 | [] | no_license | package com.app.adha.dao;
import java.util.List;
import com.app.adha.entity.User;
public interface UserDAO{
List<User> getUserByPhoneNumber(String phoneNumber);
List<User> getAllUsers();
List<User> getAllUsersByUserRole(int userRole);
User getUserById(int userId);
void addUser(User user);
void updateU... | true |
05abc675ab159d608560c76cf9ef5774a7945357 | Java | sunflowersoft/hudup | /3_implementation/src/net/hudup/core/client/Server.java | UTF-8 | 12,621 | 2.4375 | 2 | [
"MIT"
] | permissive | /**
*
*/
package net.hudup.core.client;
import java.rmi.Remote;
import java.rmi.RemoteException;
import net.hudup.core.data.DataConfig;
/**
* {@code Server} interface defines abstract model of recommendation server. {@code Server} is responsible for creating {@code service} represented by {@code Service} interfa... | true |
73c65adac5502803c1eb3d3acddfb3156177a192 | Java | keepinmindsh/sample | /templates/reactive-queue-command-handling/reactive-command-handling/src/main/java/lines/model/ResponseVO.java | UTF-8 | 173 | 1.625 | 2 | [] | no_license | package lines.model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class ResponseVO {
private String itemKey;
}
| true |
554639a4b460e237c3d6a05a56913d20af6fbbef | Java | AYashchuk/java-training | /ITC/src/Design_Pattern/FactoryMethod/PizzaStore/California/CaliforniaStyleCheesePizza.java | UTF-8 | 723 | 3.328125 | 3 | [] | no_license | package Design_Pattern.FactoryMethod.PizzaStore.California;
import Design_Pattern.FactoryMethod.PizzaStore.Pizza;
public class CaliforniaStyleCheesePizza extends Pizza {
public CaliforniaStyleCheesePizza() {
name = "California style Deep dish clam Pizza";
dough = "Extra thick crust dough";
... | true |
44d2c02f67be9f61ce2de5457a9ec85062972d95 | Java | xueqiya/chromium_src | /out/release/gen/services/network/public/mojom/mojom_java/generated_java/input_srcjars/org/chromium/network/mojom/LoadInfo.java | UTF-8 | 3,981 | 1.859375 | 2 | [
"BSD-3-Clause"
] | permissive | // LoadInfo.java is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom... | true |
5ed77c1750a79075c09a3581572b50e6dd80b87e | Java | ian-a-brown/utility | /src/test/java/usa/browntrask/utility/impl/FactoryFinderImplTest.java | UTF-8 | 1,171 | 2.515625 | 3 | [] | no_license | /**
* Copyright 2011 by Ian Andrew Brown<br>
* All Rights Reserved
*/
package usa.browntrask.utility.impl;
import static org.junit.Assert.assertEquals;
import usa.browntrask.utility.AbstractFactoryFinderCheck;
import usa.browntrask.utility.Factory;
/**
* Extended {@link AbstractFactoryFinderCheck} test for {@link... | true |
4b8922ce58b5e21ac863e835d840e2764de3d93d | Java | buom0701/EmployeeServices | /src/main/java/com/empservices/EmployeeServices/Model/TimeCard.java | UTF-8 | 1,265 | 2.234375 | 2 | [] | no_license | package com.empservices.EmployeeServices.Model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.Non... | true |
cd9977f9e990e34b83207b24d6da76cc1bc324c5 | Java | diyiliu/little-pet | /pet-gw/src/main/java/com/dyl/gw/netty/handler/codec/PetEncoder.java | UTF-8 | 575 | 2.25 | 2 | [] | no_license | package com.dyl.gw.netty.handler.codec;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import lombok.extern.slf4j.Slf4j;
/**
* Description: PetEncoder
* Author: DIYILIU
* Update: 2018-07-06 09:51
*/
@Slf4j
public class PetEncoder... | true |
482aff2f4d9bd7f042b597634268f5955d385bdb | Java | Kimtaein931/Biz_2021_01_403_java | /Java_025A_Student/src/com/callor/student/Ex_08.java | UTF-8 | 650 | 3.78125 | 4 | [] | no_license | package com.callor.student;
import java.util.Random;
/*
* 정수형 배열 100개를 선언하여
* 10 ~ 100까지 임의의 정수를 생성하여 저장
* 100개의 배열에 담긴 정수 중에 소수들만 찾아서
* Console에 출력
*/
public class Ex_08 {
public static void main(String[] args) {
Random rnd = new Random();
int[] num = new int[100];
int j = 0;
for (int i = 0; i < num... | true |
3163c058fe48ed97722869ef79189758f6b09e90 | Java | henqqqcs/catalogonet | /catalogonet/src/main/java/com/catalogonet/model/SubCategoria.java | UTF-8 | 1,918 | 2.296875 | 2 | [] | no_license | package com.catalogonet.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import j... | true |
674176209947277ee62b84e1015c8a581ab69514 | Java | wubian120/JavaBasic | /src/main/java/cn/brady/generic/BridgePair.java | UTF-8 | 587 | 3.078125 | 3 | [] | no_license | package cn.brady.generic;
/**
* Created by Brady on 2017/5/5.
*/
public class BridgePair<T> {
private T first;
private T second;
public BridgePair(){
first = null;
second = null;
}
public BridgePair(T first, T second){
this.first = first;
this.second = second;
... | true |
f2a8a9ef39d1187b3612976c1407d3580a232ff9 | Java | namtrung2212/android-taxi-driver | /app/src/main/java/com/sconnecting/driverapp/ui/taxi/search/lateorder/LateOrderMap.java | UTF-8 | 15,449 | 1.601563 | 2 | [] | no_license | package com.sconnecting.driverapp.ui.taxi.search.lateorder;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.location.Location;
import android.os.Bundle;
import android.supp... | true |
e2814ab61b5269e3ccf594581feb9a70426820ae | Java | freewind/everrest | /everrest-core/src/test/java/org/everrest/core/impl/header/AcceptMediaTypeTest.java | UTF-8 | 4,273 | 1.992188 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
2c3ac47bc18234abc1eb2f819af9a80071635624 | Java | Ford-gxq/javaSE | /com.xxx.oop01/src/equals_toStringDemo/Employee.java | UTF-8 | 2,027 | 3.84375 | 4 | [] | no_license | package equals_toStringDemo;
/**
* 自定义员工类, 姓名, 编号, 身高...
* 要求: 比计较员工是否相等要求比较所有成员属性的值,都想等true, 任何一个不相等返回false
* */
/**
员工类
*/
public class Employee {
private int id;
private String name;
private int height;
//alt+insert -> constructor ->select none |选中对应要赋值的属性 enter
//空构造
public Employ... | true |
ef1d153b5583efe613d3960c92530e25daec0e92 | Java | amadeus1029/chapter02 | /src/com/javaex/ex15/addGoodsApp.java | UTF-8 | 620 | 3.390625 | 3 | [] | no_license | package com.javaex.ex15;
public class addGoodsApp {
public static void main(String[] args) {
Goods[] goodsArray = new Goods[3];
Goods computer = new Goods("엘지그램",1000000);
Goods camera = new Goods("캐논",500000);
Goods cup = new Goods("머그컵",10000);
goodsArray[0] = computer;
... | true |
384334b7fb7c0552f76d640d5f819f90cebc06a1 | Java | wojciechwaldon/users | /users-api/src/main/java/com/wojciechwaldon/users/api/authorizeduser/AuthorizedUserHttpEndpoints.java | UTF-8 | 2,203 | 2.078125 | 2 | [] | no_license | package com.wojciechwaldon.users.api.authorizeduser;
import com.wojciechwaldon.cqrs.api.command.CommandExecutor;
import com.wojciechwaldon.cqrs.api.query.QueryExecutor;
import com.wojciechwaldon.users.api.UsersModuleHttpEndpoint;
import com.wojciechwaldon.users.domain.api.authorizeduser.AuthorizedUser;
import com.wojc... | true |
8941fd9dc6d23cdbce78de44e0013cc5a2bcc358 | Java | markus-17/object-oriented-programming-course | /src/main/java/com/lab7/Square.java | UTF-8 | 418 | 3.71875 | 4 | [] | no_license | public class Square extends Figure {
private double width;
public Square(double width) {
this.width = width;
}
@Override
public double getArea() {
return this.width * this.width;
}
@Override
public double getPerimeter() {
return this.width * 4;
}
@Over... | true |
1cda6f141a3a2943b97e5db78412a420ef845973 | Java | 22896/mombo | /app/src/main/java/com/example/mombo/call.java | UTF-8 | 1,735 | 2.140625 | 2 | [] | no_license | package com.example.mombo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
public class call extends AppCompatAc... | true |
344283bd201b141a539f5e25f0e1ca5d05c0aad4 | Java | pmabiala/sabbath-school-android-legacy | /app/src/main/java/com/cryart/sabbathschool/ui/activity/SSBibleVerseActivity.java | UTF-8 | 3,825 | 1.757813 | 2 | [] | no_license | /*
* Copyright (c) 2015 Vitaliy Lim <lim.vitaliy@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | true |
8bd16fc703cb7560412a53fefc9e4d456e8389fc | Java | aarongraham9/IPCTracker | /src/com/kronius/IPCTracker/IPCTrackerDataV2.java | UTF-8 | 8,838 | 2.34375 | 2 | [] | no_license | package com.kronius.IPCTracker;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
public class IPCTrackerDataV2 implements Serializable {
private static final long serialVersionUID = 6969604483485414104L;
private int SUTotal;
private int GerTotal;
private int UKTotal;
private i... | true |
ed0a0362d41d485158e506b20eb4f7f8b33aa821 | Java | xeviff/balancer-service | /src/main/java/com/npaw/service/balancer/model/Account.java | ISO-8859-1 | 992 | 2.890625 | 3 | [] | no_license | package com.npaw.service.balancer.model;
import java.util.HashMap;
/**
* Clase de modelo para las cuentas de cliente
* @author Xavier
*
*/
public class Account {
//Los dispositivos que tiene asociados
private HashMap<String,DeviceConfiguration> devicesInfo;
public Account () {
devicesInfo = new HashMap<St... | true |
9d33a5fa458ca764f03d478f5d2d5eacce2d3154 | Java | HyalwW/CustomViewStuff | /app/src/main/java/com/example/customviewstuff/customs/eyes/Eye.java | UTF-8 | 1,696 | 2.796875 | 3 | [] | no_license | package com.example.customviewstuff.customs.eyes;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RadialGradient;
import android.graphics.Shader;
/**
* Created by Wang.Wenhui
* Date: 2020/5/25
* Description: blabla... | true |
16540fbe1cd5c17e47007021e575e4a1f1312107 | Java | smartaid1980/STOutsource | /src/main/java/com/servtech/servcloud/app/controller/shengtai_pdf/ShengTaiPDFController.java | UTF-8 | 11,363 | 2.15625 | 2 | [] | no_license | package com.servtech.servcloud.app.controller.shengtai_pdf;
import com.servtech.servcloud.app.controller.iiot.IiotFileUploadController;
import com.servtech.servcloud.core.util.RequestResult;
import com.servtech.servcloud.core.util.SysPropKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfr... | true |
6d577e91e1f4bb9aa7018059f33bc3bdeb2bd87a | Java | Cong96/basic-skill | /algorithm/src/main/java/com.leetcode/string/ZconvertSolution.java | UTF-8 | 1,981 | 3.796875 | 4 | [] | no_license | package com.leetcode.string;
import java.util.ArrayList;
import java.util.List;
/**
* @ClassName ZconvertSolution
* @Description
* @Author BryantCong
* @Date 2020/2/1 21:17
* @Version V1.0
* 将一个给定字符串根据给定的行数,以从上往下、从左到右进行 Z 字形排列。
* <p>
* 比如输入字符串为 "LEETCODEISHIRING" 行数为 3 时,排列如下:
* <p>
* L C ... | true |
cb5ddab561e6f583c47b09be6c49a87d9d6073e8 | Java | PaulVenter94/curs22-fighttournament | /src/main/java/org/fasttrackit/chuninexam/ChuninExamApplication.java | UTF-8 | 327 | 1.609375 | 2 | [] | no_license | package org.fasttrackit.chuninexam;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ChuninExamApplication {
public static void main(String[] args) {
SpringApplication.run(ChuninExamApplication.class, args);... | true |
6fa4085938ee0b4be7c7fa75c587fed4e23a5cc9 | Java | TaitonProject/TaitonBank | /src/main/java/com/taiton/jsonConverter/UserSerializer.java | UTF-8 | 1,004 | 2.0625 | 2 | [] | no_license | package com.taiton.jsonConverter;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.taiton.entity.UserEntity;
import java.io.IOException;... | true |
ef5db6a5e862c8759a700b8eb3f07c958ef131ff | Java | Ernakh/AulaAtosUFNRestAPISpring | /src/main/java/com/fabriciolondero/AulaAtosUFNRestAPISpring/Models/Disciplina.java | UTF-8 | 751 | 2.34375 | 2 | [] | no_license | package com.fabriciolondero.AulaAtosUFNRestAPISpring.Models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Disciplina
{
@Id
@GeneratedValue(strategy = GenerationTy... | true |
b7f8bcd3084e523080464924b306a1df5f20ab17 | Java | khanhchi96/Ad_Team10_Mobile | /app/src/main/java/com/example/ad_team10/storeActivities/ViewDisbursementByDeptActivity.java | UTF-8 | 4,503 | 2.109375 | 2 | [] | no_license | //Author: Phung Khanh Chi
package com.example.ad_team10.storeActivities;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCo... | true |
fcfe2dcf690c308cf339a70ed850da363c8b78c0 | Java | nadia-mm/Java-WeatherAPI | /src/main/java/com/nadia/weather/configuration/WeatherDBConfiguration.java | UTF-8 | 2,607 | 2.109375 | 2 | [] | no_license | package com.nadia.weather.configuration;
import com.nadia.weather.repository.weather.WeatherProviderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationPropert... | true |
e5004790f8058b017f253a223ea946a6934f8b2c | Java | kamalkumar1729/data-structures | /src/main/java/first/java/collection/Maps.java | UTF-8 | 1,284 | 3.71875 | 4 | [] | no_license | package first.java.collection;
import java.util.*;
public class Maps {
public static void main(String[] args) {
Map<String,Student> map = new HashMap<>();
Student student1 = new Student("AA",null,12);
Student student2 = new Student("BB",102,13);
Student student3 = new Student("C... | true |
f7a57ab425db7dfc02f8586f7997cc968e40633a | Java | nexodrone/algo3-2013-2c-tp2 | /src/modelo/Vehiculo.java | UTF-8 | 3,589 | 2.734375 | 3 | [] | no_license | package modelo;
import modelo.excepciones.CalleBloqueadaPorPiqueteExcepcion;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import control.Logger;
public abstract class Vehiculo {
@Element(name = "posicionActual")
private Posicion posicion;
@Attribute
... | true |
652736707b5f21d1ee5f26b8344b56ebcbf5a3ec | Java | cvetan/bookstore | /src/BookstoreWEB/src/main/java/com/github/cvetan/bookstore/mb/category/CategoryListMB.java | UTF-8 | 2,936 | 2.15625 | 2 | [] | no_license | package com.github.cvetan.bookstore.mb.category;
import com.github.cvetan.bookstore.model.Category;
import com.github.cvetan.bookstore.sb.configuration.ConfigurationSBLocal;
import com.github.cvetan.bookstore.util.Redirector;
import com.github.cvetan.bookstore.util.ResourceBundleLoader;
import java.io.Serializable;
im... | true |
10b0e6739bf716446b5ebfc5efce0e62a380dbe0 | Java | mberezuieva/Study | /Study/src/com/course/onseo/Vector.java | UTF-8 | 1,605 | 3.625 | 4 | [] | no_license | package com.course.onseo;
public class Vector {
private double x;
private double y;
private double z;
Vector (double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
//System.out.println("Thank you for the input");
}
// finding vector length
pub... | true |
d0cf8e35a118a423e9887e1425253db048628933 | Java | pavanhp001/Spring-boot-proct | /Spring-proctice/src/SCenter/viper-client-api/src/main/java/com/allconnect/viper/service/auth/AuthenticationService.java | UTF-8 | 1,188 | 2.1875 | 2 | [] | no_license | package com.A.V.service.auth;
import java.util.Calendar;
import com.A.V.domain.User;
import com.A.V.gateway.jms.UAMClientJMS;
import com.A.vo.UserAuthorization;
public enum AuthenticationService {
INSTANCE;
private static final String END_POINT_NAME = "endpoint.uam.in";
public UserAuthorization a... | true |
f5bc1e6d69145b4c0ef59f1c7d644eb47c5eb711 | Java | MrNocTV/Algorithms | /SolvedProblems/HackerRank/src/EvenTree.java | UTF-8 | 2,037 | 3.8125 | 4 | [
"MIT"
] | permissive | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
/**
*
* @author Loc Truong Van
* @category Algorithm
* @site HackerRank
* @link https://www.hackerrank.com/challenges/even-tree/problem
* @idea While inserting ed... | true |
befde3294c0aa564db56fdd07448fcdacbedb3f4 | Java | cuba-platform/reports | /modules/core/src/com/haulmont/reports/role/ReportsMinimalRoleDefinition.java | UTF-8 | 3,009 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2020 Haulmont.
*
* 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 |
102981aa08f841fc65fbf38e5a2c0131005c925a | Java | sparrowflyer/jishu | /src/main/java/com/wanmoxing/jishu/util/CellphoneUtil.java | UTF-8 | 1,791 | 2.03125 | 2 | [] | no_license | package com.wanmoxing.jishu.util;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com.... | true |
5e6520dce4d4a86705d62e1b4a3b6471e189a449 | Java | pieczatek/mtg-search | /app/src/main/java/com/icyjars/mtgcards/Service/MtgioService.java | UTF-8 | 578 | 2.046875 | 2 | [] | no_license | package com.icyjars.mtgcards.Service;
import com.icyjars.mtgcards.Model.Mtgio;
import com.icyjars.mtgcards.Model.MtgioSingleCard;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
public interface MtgioService {
String SERVICE_EN... | true |
084b6ae5b78d94dc96a66a80baf77ba0c12323e2 | Java | piskorzm/PseudoCube | /app/src/main/java/com/example/pseudoqube/MainActivity.java | UTF-8 | 1,163 | 2.28125 | 2 | [] | no_license | package com.example.pseudoqube;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import com.example.pseudoqube.views.PseudoCube;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle sa... | true |
0a3ad75b5358ec052281d32c5e8f89532a59f575 | Java | ammarbarafwala/cs3220 | /Homework01/src/cs3220/servlet/homework01/CreateFolder.java | UTF-8 | 3,158 | 2.6875 | 3 | [] | no_license | package cs3220.servlet.homework01;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet... | true |
0fb1cbd8e00a1176712a54bce69ebc042ee1aa27 | Java | eamv-hi/foobot | /foobot.ejbClient/ejbModule/foobot/ejb/domain/Batch.java | UTF-8 | 1,252 | 2.21875 | 2 | [] | no_license | package foobot.ejb.domain;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class Batch implements Serializable {
private static final long serialVersionUID = 1L;
private String uuid;
private LocalDateTime start;
private LocalDateTim... | true |
bcb2fbfb206c0e92ee0378f78df82fd696a067b5 | Java | NRolfe/Cornucopia | /src/edu/clarkson/catalfmr/ee363/project3/Main.java | UTF-8 | 1,028 | 2.84375 | 3 | [] | no_license | package edu.clarkson.catalfmr.ee363.project3;
import java.util.Random;
import edu.clarkson.rolfens.ee363.cornucopia.decorators.Carrot;
import edu.clarkson.rolfens.ee363.cornucopia.decorators.Produce;
import edu.clarkson.rolfens.ee363.cornucopia.decorators.Vegetable;
public class Main {
public static void main(Stri... | true |
23eaabbbf98c7b72fa7470c5d8efe50db8126136 | Java | TimelyD/Timely-master | /easeui/src/com/hyphenate/easeui/widget/EaseContactList.java | UTF-8 | 6,281 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.hyphenate.easeui.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.... | true |
c4a01148882c36e5c53e8b19c46ab6df6fb4baff | Java | Vinniefern99/Java3 | /Assignment_1/src/Modules/InsertIntoArrayMain.java | UTF-8 | 3,216 | 3.359375 | 3 | [] | no_license | package Modules;
//Main file for iTunes project - insertion example.
//CS 1C, Foothill_Main1 College, Michael Loceff, creator
import cs_1c.*;
import java.util.*;
import java.text.*;
//------------------------------------------------------
public class InsertIntoArrayMain
{
// ------- main --------------
publi... | true |
b8dcb78b1e26e3d0bb7652a2f5219f583bec9946 | Java | GodofMunch/Algorithms-and-Data-Structures | /Lab 5/src/Person.java | UTF-8 | 1,642 | 3.21875 | 3 | [] | no_license | import java.text.SimpleDateFormat;
import java.util.Date;
public class Person implements Comparable<Person> {
private String forename;
private String surname;
private Date dob;
public String getForename() {
return forename;
}
public String getSurname() {
return surname;
}... | true |
e08d459350158369d5db334e0e997f148fbb5fe3 | Java | kimsc93/ssafy_algo_lecture | /algo_lecture/src/day9/BattleField.java | UTF-8 | 3,255 | 3.15625 | 3 | [] | no_license | package day01;
import java.io.InputStream;
import java.util.Scanner;
public class BattleField {
public static void main(String[] args) {
InputStream input = BattleField.class.getResourceAsStream("input.txt");
System.setIn(input);
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for(i... | true |
abcdc35ad237fd407d5cda9ad133fadda7a3aae5 | Java | lpeano/WebWorkLoadd | /src/com/workload/PatternSpecs.java | UTF-8 | 2,296 | 2.765625 | 3 | [] | no_license | package com.workload;
import java.util.HashMap;
import java.util.Map;
public class PatternSpecs {
private double Elapsed;
private String PatternName;
/**
* @return the elapsed
*/
private Map<String,String> PatternVariable;
public PatternSpecs(String PatternName,double Elapsed) {
this.Elapse... | true |
e44716379cd86f674f82d0dbf7b190d4f72ea1e6 | Java | aucd29/nvapp | /libhsp-permission/src/main/java/com/hanwha/libhsp_permission/RxPermissionResult.java | UTF-8 | 828 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) Hanwha Systems Corp. 2018. All rights reserved.
*
* This software is covered by the license agreement between
* the end user and Hanwha Systems Corp. and may be
* used and copied only in accordance with the terms of the
* said agreement.
*
* Hanwha Systems Corp. assumes no responsibility or
... | true |
8470fb139245ed3342c28732290f99122ee2817c | Java | xinglonglu/Spring-Authorization | /src/main/java/com/lxl/config/MainController.java | UTF-8 | 636 | 1.96875 | 2 | [] | no_license | package com.lxl.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.lxl.authorization.manager.TokenManager;... | true |
48bfc054ba19be1a44e4df789ca7f05dbd9a3cd8 | Java | CTAJlb/project-PDA-Selenide | /src/test/java/ru/st/selenium/test/testPda/DocumentsTest.java | UTF-8 | 5,746 | 1.921875 | 2 | [] | no_license | package ru.st.selenium.test.testPda;
import com.codeborne.selenide.testng.TextReport;
import ru.st.selenium.model.Administration.Directories.Directories;
import ru.st.selenium.model.DocflowAdministration.DictionaryEditor.DictionaryEditor;
import ru.st.selenium.model.DocflowAdministration.DocumentRegistrationCards.*;
i... | true |
ca4a1e43c33ad1594141d05b164c9c0b39511dbe | Java | kksb0831/javaStudy | /src/my/day08/b/DOWHILE/FactorialMain2.java | UTF-8 | 1,266 | 3.8125 | 4 | [] | no_license | package my.day08.b.DOWHILE;
import java.util.Scanner;
public class FactorialMain2 {
public static void main(String[] args) {
// === 입사문제 ===
/*
>> 알고 싶은 팩토리얼 수 입력 => 5 Enter
>> 5! = 120
// 5 * 4 * 3 * 2 * 1
*/
Scanner sc = new Scanner(System.... | true |
67902d39684030b66767a2fcc62feb8ace6713ba | Java | daveogle85/planit-food-api | /rest-api/src/test/java/com/planitfood/typeConverters/QuantitiesTypeConverterTests.java | UTF-8 | 3,180 | 2.890625 | 3 | [] | no_license | package com.planitfood.typeConverters;
import com.planitfood.enums.Unit;
import com.planitfood.models.Dish;
import com.planitfood.models.Ingredient;
import com.planitfood.models.Quantity;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
i... | true |
957c7a007dbeeb7ea60e95c9ea8090a7a34a7183 | Java | smmckee22/cucumber-java-toy | /src/main/java/org/maxwu/jrefresh/greenHook/GreenHook.java | UTF-8 | 250 | 1.90625 | 2 | [
"MIT"
] | permissive | package org.maxwu.jrefresh.greenHook;
import java.lang.annotation.*;
/**
* Created by maxwu on 1/17/17.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface GreenHook {
public String value() default "";
}
| true |
e64f3181e11aab07906e18a84b53f6685e974ac4 | Java | TencentCloud/tencentcloud-sdk-java-intl-en | /src/main/java/com/tencentcloudapi/tdmq/v20200217/TdmqErrorCode.java | UTF-8 | 12,141 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.tencentcloudapi.tdmq.v20200217;
public enum TdmqErrorCode {
// CAM authentication failed.
AUTHFAILURE_UNAUTHORIZEDOPERATION("AuthFailure.UnauthorizedOperation"),
// Operation failed.
FAILEDOPERATION("FailedOperation"),
// An exception occurred while calling the transaction ... | true |
8607c3a79f8f8b0a8e3d32beff5925cb2d8961e6 | Java | TimaPaps/test_21_century | /src/main/java/ru/ptv/test21century/controllers/OrdersController.java | UTF-8 | 2,570 | 2.328125 | 2 | [] | no_license | package ru.ptv.test21century.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Pos... | true |
9035491374f89407b2635ff00f5d91b9de7b1dbb | Java | GIIRRII/myHackerRankSolutions | /30 Days of Code/Day 12 - Inheritance/Solution.java | UTF-8 | 1,417 | 3.5625 | 4 | [] | no_license | class Student extends Person{
private int[] testScores;
/*
* Class Constructor
*
* @param firstName - A string denoting the Person's first name.
* @param lastName - A string denoting the Person's last name.
* @param id - An integer denoting the Person's ID number.
* @para... | true |
ce766ebbec4e3e6ffe0ab34ef7c0c2b4355a05ee | Java | satasoy6/Selenium | /src/com/syntax/class07/SimpleWindowHandle.java | UTF-8 | 1,573 | 3.296875 | 3 | [] | no_license | package com.syntax.class07;
import java.util.Iterator;
import java.util.Set;
import org.openqa.selenium.By;
import com.syntax.utils.drivers;
public class SimpleWindowHandle extends drivers{
public static void main(String[] args) {
drivers("chrome");
driver.get("https://accounts.google.com/signup/v2/webcrea... | true |
33356514abd44c0726b68ae0dca6839223e8fe4d | Java | ZoroSpace/Coursera | /src/Week4/Solver.java | UTF-8 | 6,952 | 3.15625 | 3 | [] | no_license | package Week4;
import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.MinPQ;
import edu.princeton.cs.algs4.Stack;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by Zoro on 17-7-12.
*/
public class Solver {
private class SearchNode implements Comparable<SearchNode> {
Board currentBoard;
... | true |
d9d39e0f2cbc2bab696e66c8dc71d7a07c64c835 | Java | jhonattas/e-deploy | /app/src/main/java/com/soucriador/edeploy/jhonattas/ui/activities/SearchActivity.java | UTF-8 | 1,560 | 2.09375 | 2 | [] | no_license | package com.soucriador.edeploy.jhonattas.ui.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.soucriador.edeploy.jhonattas.R;
public class ... | true |
46404b3def0eddb70003faab0eb575470827437b | Java | MichaelWangC/WEB_Demo | /CRM_API/src/com/api/service/CustomerService.java | UTF-8 | 322 | 1.796875 | 2 | [] | no_license | package com.api.service;
import com.api.beans.Customer;
import java.util.List;
/**
* Created by wangc on 2017/8/24.
*/
public interface CustomerService {
String addCustomer(Customer customer);
List<Customer> getCustomerList(Integer start, Integer limit, String custname, String ownerId, String customerId);
... | true |
411581486500a7e6a57f1505510fc91c3e2f7c1f | Java | IoTUDresden/proteus | /bundles/utils/eu.vicci.process.client/src/main/java/eu/vicci/process/client/subscribers/FeedbackServiceSubscriber.java | UTF-8 | 647 | 1.96875 | 2 | [] | no_license | package eu.vicci.process.client.subscribers;
import eu.vicci.process.model.util.configuration.TopicId;
import eu.vicci.process.model.util.messages.core.CompensationRequest;
import eu.vicci.process.model.util.messages.core.IMessageReceiver;
import ws.wamp.jawampa.PubSubData;
public class FeedbackServiceSubscriber exte... | true |
8948d80fa3b454abed8d9288e2048cdc59f8aef5 | Java | roverxiafan/service | /service-core/src/main/java/com/example/util/encrypt/AES.java | UTF-8 | 2,589 | 3.15625 | 3 | [] | no_license | package com.example.util.encrypt;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.security.NoSuchAlgorithmException;
import java.security.Se... | true |
507ce11d269a1e69cad931c4d75bab8568592030 | Java | hyj911208/AndroidLibs | /common/src/main/java/com/kunpeng/common/base/ui/BaseActivity.java | UTF-8 | 5,128 | 2.03125 | 2 | [] | no_license | package com.kunpeng.common.base.ui;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import andr... | true |