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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
408eef0a1ad5a7627570bfd61c755c9e5204f3af | Java | newshikeshengxian/ShiKe | /store/src/main/java/com/sk/store/po/ProducrTwo.java | UTF-8 | 612 | 1.945313 | 2 | [] | no_license | package com.sk.store.po;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Getter
@Setter
public class ProducrTwo {
private String ptId;
private String ptName;
private String poId;
private List<ProductThree> productThree;
public String getPtId() {
return ptId;
}
public void se... | true |
1edcc7f767498050f7ec413afd564a0b23166a14 | Java | Rhadamys/ddm-usach | /src/Otros/BotonImagen.java | UTF-8 | 10,047 | 2.734375 | 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 Otros;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseEvent;
im... | true |
4a13c419358ea6cf4950bcb3d973ab9519078068 | Java | jsogard/kata-vending-machine | /src/vending_machine/Tests.java | UTF-8 | 1,756 | 2.734375 | 3 | [] | no_license | package vending_machine;
import java.util.Map;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(JUnit4.class)
public class Tests {
private ... | true |
fd394f5c01c3e8929d277ce2193231821ee12820 | Java | srees16/Java-OOP | /ReviseJava/src/tut42practice.java | UTF-8 | 330 | 2.90625 | 3 | [] | no_license |
public class tut42practice {
private int day;
private int month;
private int year;
tut42practice (int i, int j, int k) {
day = i;
month= j;
year = k;
System.out.printf("We got Independence on%s \n" , this);
}
public String toString () {
return String.format("% d/%d/%d", day, month, year)... | true |
5c11404c804f5923f6dd20d14f6bf84c34e744a9 | Java | wqf6146/WooSport | /app/build/generated/source/apt/release/com/yhrjkf/woyundong/activity/PersonalActivity$$ViewBinder.java | UTF-8 | 4,236 | 1.65625 | 2 | [] | no_license | // Generated code from Butter Knife. Do not modify!
package com.yhrjkf.woyundong.activity;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.ViewBinder;
public class PersonalActivity$$ViewBinder<T extends com.yhrjkf.woyundong.activity.PersonalActivity> implements ViewBind... | true |
22d639a57492ad3c278df061c62e8e5814e294d4 | Java | ashok-hariharan/TicketingApplication | /src/main/java/com/ashok/TicketingApplication/repository/TicketingRepository.java | UTF-8 | 308 | 1.742188 | 2 | [] | no_license | package com.ashok.TicketingApplication.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.ashok.TicketingApplication.model.Ticket;
@Repository
public interface TicketingRepository extends JpaRepository<Ticket, Integer>{
} | true |
6d36098273e37a68e6f97f3913400ec0080b0ada | Java | mukesh89m/automation | /src/test/java/com/snapwiz/selenium/tests/staf/datacreation/apphelper/PracticeTest.java | UTF-8 | 109,186 | 2.140625 | 2 | [] | no_license | package com.snapwiz.selenium.tests.staf.datacreation.apphelper;
import com.mongodb.DBCollection;
import com.snapwiz.selenium.tests.staf.datacreation.uihelper.RandomNumber;
import com.snapwiz.selenium.tests.staf.datacreation.Driver;
import com.snapwiz.selenium.tests.staf.datacreation.ReadTestData;
import org.openqa.sel... | true |
d1226a367ba786dc99fcae53dfc16d0f2fed7fe7 | Java | NKCS-XSY/engpker | /engpker/src/main/java/edu/nk/pker/model/po/QuestionType.java | UTF-8 | 1,902 | 2.328125 | 2 | [] | no_license | package edu.nk.pker.model.po;
// Generated 2015-5-20 10:08:13 by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistenc... | true |
c9c2f0062db53aa5c310e52100d476b643a22cee | Java | rickshunph/distributed_system | /assignment4server/RabbitMq/src/main/java/RecvMT.java | UTF-8 | 3,876 | 2.375 | 2 | [] | no_license | import com.github.f4b6a3.uuid.UuidCreator;
import com.rabbitmq.client.AMQP.Queue.DeclareOk;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.DeliverCallback;
import com.rabbitmq.client.MessageProperties;
import io.swagger... | true |
0ea122f11e3e70acffd515ada1ce94ebd700e3f3 | Java | RicardoBenetero/academiaDespo | /HandsOnExcecoesNaPratica/src/Video1.java | UTF-8 | 493 | 2.921875 | 3 | [] | no_license |
public class Video1 {
public double porcao(double valor, double porCento) throws ForaDoIntervaloException {
if (porCento > 100 || porCento < 0) {
throw new ForaDoIntervaloException(String.valueOf(porCento));
}
return valor * porCento / 100;
}
public static void main(String[] a... | true |
10cb580912e3e5ea602b89861ec7f3d54b2581d3 | Java | chezkibot/Java-Project | /src/primitives/Limits.java | UTF-8 | 2,268 | 2.625 | 3 | [] | no_license | /*************************************************
* class
* Limits
* contains limit for geometry/s
* double value for Coordinates on x,y,x
* two for each (x for 1 to 7,y from 3,8, z from 9,-4)
**************************************************/
package primitives;
import geometries.Geometry;
import java.util.... | true |
abd0ac9c70f0739b69b6a1d5354ba0eac59ad437 | Java | Devil-ReaperL/Trash | /JavaEE项目成果物(2)/04 源码/cloud_oa/src/com/icss/oa/login/action/LoginAction.java | UTF-8 | 3,096 | 2.1875 | 2 | [] | no_license | package com.icss.oa.login.action;
import java.io.IOException;
import java.io.PrintWriter;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.... | true |
02799acf72ff09433ece3f92ac459beb855d8c25 | Java | jonhare/nativelibs4java | /libraries/BridJ/src/main/java/org/bridj/util/AnnotationUtils.java | UTF-8 | 5,211 | 2.046875 | 2 | [] | no_license | /*
* BridJ - Dynamic and blazing-fast native interop for Java.
* http://bridj.googlecode.com/
*
* Copyright (c) 2010-2013, Olivier Chafik (http://ochafik.com/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | true |
0b097957194c180e6cd3a6733805f40be526d1fe | Java | SurabheeSinha/DonateForGood | /app/src/main/java/com/surabheesinha/donateforgood/Model/JsonRespProposal.java | UTF-8 | 619 | 1.882813 | 2 | [] | no_license | package com.surabheesinha.donateforgood.Model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by surabheesinha on 10/26/18.
*/
public class JsonRespProposal {
@SerializedName("proposals")
@Expose
public ProjectsModel[] proposals;
public P... | true |
7dcbc0ce1ffbb7bd3872d558a1a69b3e29d68b6a | Java | lemontia/mockitoTest | /src/main/java/kr/sample/demo/entity/Member.java | UTF-8 | 473 | 2.4375 | 2 | [] | no_license | package kr.sample.demo.entity;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
import javax.persistence.*;
@Entity
@Table(name = "Member")
@Getter
@ToString
public class Member {
@Id @GeneratedValue
private Long id;
@Column(name = "name")
private String name;
@Column(name ... | true |
84d32d47ea43cf07494d527675c4f93ed845b71f | Java | openlookeng/hetu-core | /presto-spi/src/test/java/io/prestosql/spi/plan/SetOperationNodeTest.java | UTF-8 | 3,114 | 1.960938 | 2 | [] | no_license | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | true |
efa1c09e69f79771b4ce012b185ca35a578a0227 | Java | coolamit25vyas/microservice | /microservice2/microservice2/src/main/java/microservice2/config/EchoConfig.java | UTF-8 | 933 | 1.921875 | 2 | [] | no_license | package microservice2.config;
import org.springframework.cloud.sleuth.SpanExtractor;
import org.springframework.cloud.sleuth.SpanInjector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
imp... | true |
5f7239007f150b3052722da01e702c87e17b7860 | Java | SAO-Project/Minor-Bank-System | /simple/src/app/IBankDB.java | UTF-8 | 3,366 | 3 | 3 | [] | no_license | package app;
import java.util.Collection;
import java.util.Optional;
/**
* @author Alex Avila
* @version 1.0
* @since 10/10/20
* This interface was mostly implemented to be able to abstract the storage implementation and only cares
* about getting the right information and being able to update and create this in... | true |
e0d5afa053a1907b2406b99f97cf80ab2be98162 | Java | bitsofinfo/hazelcast-consul-discovery-spi | /src/main/java/org/bitsofinfo/hazelcast/discovery/consul/ConsulDiscoveryStrategyFactory.java | UTF-8 | 1,962 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package org.bitsofinfo.hazelcast.discovery.consul;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import com.hazelcast.config.properties.PropertyDefinition;
import com.hazelcast.logging.ILogger;
import com.hazelcast.spi.discovery.DiscoveryNode;
import com.hazelcast.spi.discovery.Discovery... | true |
5c642edfaa20c4e74004b6320c4ba52da14ec487 | Java | jasem41/android-Quran | /app/src/main/java/bego/com/alqowyy/db/surah/SurahHelper.java | UTF-8 | 3,666 | 2.265625 | 2 | [] | no_license | package bego.com.alqowyy.db.surah;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import bego.com.alqowyy.model.ItemSurah;
import static android.pro... | true |
efd326a2698e1e76816e36f7d8498cacbb5e7d77 | Java | YunXiuRZ/zeroJudge-Java | /a225/src/a225/a225.java | UTF-8 | 1,222 | 3.703125 | 4 | [] | no_license | package a225;
import java.util.Scanner;
import java.util.Arrays;
public class a225 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()) {
int n = Integer.parseInt(scanner.nextLine());
String[] input = scanner.nextLine().split(" ");
Element[] number... | true |
1302ec71d0b4de42cdbdaaec3d4d7a195f002853 | Java | phjwww97/phjwww97github.io | /src/Ch04진단문제/Ch04Ex02_16.java | UTF-8 | 557 | 3.03125 | 3 | [] | no_license | package Ch04진단문제;
import java.util.*;
public class Ch04Ex02_16 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b;
int c;
int d;
int q=0;
char ch='A';
if(a<=6) {
for (b=0;b<a;b++) {
for (c=a;c>b;c--){
... | true |
d022df1fef6ff72e1422c3c204e9fb8a62884044 | Java | franm3e/Distributed-Systems | /Practica2/Cliente/MsgConexion.java | UTF-8 | 2,658 | 2.78125 | 3 | [] | no_license | package remoto;
import javax.jms.*;
import javax.naming.*;
import java.util.Scanner;
/**
*
* @author Francisco Martínez Esteso, Julián Morales Núñez
*/
public class MsgConexion {
public String nombreCola = "jms/Noticias";
public Context contexto = null; // Contexto JNDI
public TopicConnectionFactory ... | true |
969c5824afb875b821bb247604ea570fb6b210a1 | Java | huangjixin/zhiwo-mall | /fushenlan-java/cloud-job/src/main/java/com/fulan/application/controller/ScheduleController.java | UTF-8 | 17,486 | 2.046875 | 2 | [] | no_license | package com.fulan.application.controller;
import static org.quartz.CronScheduleBuilder.cronSchedule;
import static org.quartz.JobBuilder.newJob;
import static org.quartz.SimpleScheduleBuilder.simpleSchedule;
import static org.quartz.TriggerBuilder.newTrigger;
import java.io.IOException;
import java.io.Unsuppo... | true |
1a6124d6a2f552aa39e02d258d5705adda0070ea | Java | ramy-git/politician-webservices-rest-soap | /facebook-graph-api-using-springboot-master/src/main/java/com/macrosoft/test/RestController.java | UTF-8 | 2,306 | 1.992188 | 2 | [] | no_license | package com.macrosoft.test;
import com.macrosoft.test.data.Place;
import com.macrosoft.test.service.facade.FacebookServiceFacade;
import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;
import com.restfb.Version;
import com.restfb.json.JsonArray;
import com.restfb.json.JsonObject;
import ... | true |
7700440d08356fec39cc50badbae4c47906e67ee | Java | dlcnd9401/phoenix | /src/main/java/kr/gudi/phoenix/service/MasterService.java | UTF-8 | 4,300 | 2.0625 | 2 | [] | no_license | package kr.gudi.phoenix.service;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | true |
dc164ad8ca157c9966f0e07f4658438d5366b0d8 | Java | nautysagar/MyCodingSpace | /designpattern/behaviour/template/GermanMeal.java | UTF-8 | 489 | 2.875 | 3 | [] | no_license | package behaviour.template;
public class GermanMeal extends Meal{
public GermanMeal() {
// TODO Auto-generated constructor stub
}
@Override
public void prepareIngredient() {
// TODO Auto-generated method stub
System.out.println("Adding german salt in cooking");
}
@Override
public void cook() {
// TOD... | true |
b0988c899e8284213889ca8585b7c63ab1c1d201 | Java | JainathJaiswal/sniper | /src/main/java/com/jai/world/rest/ITaskApi.java | UTF-8 | 1,305 | 2.15625 | 2 | [] | no_license | package com.jai.world.rest;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.an... | true |
f8a40caec0b8261a33af9722f247c4e8142b88e4 | Java | locnguyen95/Energy-Watch | /app/src/main/java/com/example/pc/energywatch/forget.java | UTF-8 | 2,011 | 2.21875 | 2 | [] | no_license | package com.example.pc.energywatch;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android... | true |
234912a184ec3a7990c678d5d7c427706b46712a | Java | wille/jrat | /modules/fs-controller/src/jrat/module/fs/packets/Packet34CustomDirectory.java | UTF-8 | 583 | 2.21875 | 2 | [] | no_license | package jrat.module.fs.packets;
import jrat.controller.Slave;
import jrat.controller.packets.incoming.IncomingPacket;
import jrat.module.fs.ui.PanelFileSystem;
public class Packet34CustomDirectory implements IncomingPacket {
@Override
public void read(Slave slave) throws Exception {
String where = slave.readLine... | true |
2fb7516e1575f123b634f6727a5aaf9f2a3739e5 | Java | mgmarques/Chess_Game | /src/chess/pieces/Queen.java | UTF-8 | 3,504 | 3.296875 | 3 | [] | no_license | package chess.pieces;
import board.Board;
import board.Position;
import chess.ChessPiece;
import chess.enums.Color;
public class Queen extends ChessPiece {
public Queen(Board board, Color color) {
super(board, color);
}
public Queen(Board board, Color color, int moveCount) {
super(board, color, moveCount);
... | true |
8040dbe05bb3955e33863808600d436e181674ac | Java | efsn/origin | /src/main/java/org/codeyn/util/MacAddress.java | UTF-8 | 7,982 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package org.codeyn.util;
import org.codeyn.util.file.FileUtil;
import org.codeyn.util.yn.ArrayUtil;
import org.codeyn.util.yn.StrmUtil;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 获取本机网卡物理地址... | true |
5e148f96c920693901a0002a93d1ac4117c51a4b | Java | llj668/HOCCSLATs | /src/models/test/pronun/PronunItems.java | UTF-8 | 3,600 | 2.453125 | 2 | [] | no_license | package models.test.pronun;
import java.util.*;
public class PronunItems {
public static List<String> priority_phoneme = Collections.singletonList(
"er"
);
public static List<String> consonants = Arrays.asList(
"b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "... | true |
2275c3b15d5ef49a79089f3876a04d6cd199cbf5 | Java | Jon-Soo/facecto-code-base-starter | /src/main/java/com/facecto/code/base/handler/CodeExceptionHandler.java | UTF-8 | 2,464 | 2.28125 | 2 | [] | no_license | package com.facecto.code.base.handler;
import com.facecto.code.base.CodeException;
import com.facecto.code.base.CodeResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.HttpMediaTypeNotSupportedException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.we... | true |
9ce72de0ece4b2959bb52d4df7ca56eba7118dab | Java | cdapio/cdap | /cdap-api/src/main/java/io/cdap/cdap/api/workflow/WorkflowForkNode.java | UTF-8 | 1,297 | 2.140625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright © 2015 Cask Data, 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 agreed t... | true |
dc4c6d3984de2c5c4c80fdd49d8a305de473d773 | Java | imamNurul/PENILAIN_SISWA | /src/MI_MAK/dao/Mapel.java | UTF-8 | 2,932 | 2.3125 | 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 MI_MAK.dao;
import com.stripbandunk.jwidget.annotation.TableColumn;
import java.sql.Timestamp;
import java.util.Objects;
/**
*... | true |
1960d2a9af283919e7370b4cc47bf406963e9c3c | Java | hiddenpower1/LeetCode | /GrayCode.java | UTF-8 | 586 | 3.140625 | 3 | [] | no_license | import java.util.ArrayList;
public class GrayCode {
public ArrayList<Integer> grayCode(int n) {
ArrayList<Integer> result = new ArrayList<Integer>();
if(n<0)
return null;
//n ==0
result.add(0);
//n>0
int base = 1;
for(int i = 1;i<=n;i++){
int index = res... | true |
59a381aa6a0c698971d2d40f2f177dfbde3cf228 | Java | AntonSemenov87/Cyb_Selenium | /src/test/java/synchronization_tests/ExplicitWaitTests.java | UTF-8 | 731 | 2.28125 | 2 | [] | no_license | package synchronization_tests;
import Pages.practice_cybertek_pages.DynamicLoading1Page;
import org.testng.annotations.Test;
import utilities.Driver;
public class ExplicitWaitTests {
@Test
public void waitForInputBoxTest () {
// 1 - get the page
Driver.getDriver().get("http://practice.cyberte... | true |
97711fbdba29909d3c76cf195e3f39d75660658e | Java | black-dog/uocolle-web | /src/main/java/jmason/fish/collection/ServletInitializer.java | UTF-8 | 444 | 1.851563 | 2 | [] | no_license | package jmason.fish.collection;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@SuppressWarnings("deprecation")
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBu... | true |
83473628f07536721b09c28f8dbcd7795b268bdb | Java | helciogc/auladeprogramacao2 | /webArquiteto/JavaSource/br/com/webarquiteto/basicas/Fisica.java | UTF-8 | 879 | 2.515625 | 3 | [] | no_license | package br.com.webarquiteto.basicas;
import java.util.Date;
public class Fisica extends Cliente {
// atributos primarios
private long codFisica;
private String numCpf;
// construtores
public Fisica(String nomePessoa, String telefoneResidencial,
String telefoneComercial, String t... | true |
a48d67e1ab11c402afd40d8a6b63128a0137e3fe | Java | adufilie/metaas-fork | /src/main/java/uk/co/badgersinfoil/metaas/impl/MXMLASBlockImpl.java | UTF-8 | 1,758 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package uk.co.badgersinfoil.metaas.impl;
import org.asdt.core.internal.antlr.AS3Parser;
import uk.co.badgersinfoil.metaas.dom.ASField;
import uk.co.badgersinfoil.metaas.dom.ASMethod;
import uk.co.badgersinfoil.metaas.dom.MXMLASBlock;
import uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTree;
import java.uti... | true |
6e230d0249d12e58871869b75bf2a4c568d55742 | Java | alexfabianojr/Store-Stock | /src/main/java/Application/services/RemoveProductLogic.java | UTF-8 | 2,180 | 2.625 | 3 | [] | no_license | package Application.services;
import org.json.JSONObject;
import javax.imageio.IIOException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.MessageFormat;
import java.util.InputMismatchException;
import java.util.stream.Stream;
import static Application.services.R... | true |
eee48cb8aeef435c6ff41c0d71db80faefdd0723 | Java | tgirard12/montpellierjug-spock | /src/main/java/com/jugmontpellier/TwitterServiceImpl.java | UTF-8 | 619 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.jugmontpellier;
import com.jugmontpellier.entity.Speaker;
import com.jugmontpellier.entity.Talk;
import org.springframework.stereotype.Component;
@Component
public class TwitterServiceImpl implements TwitterService {
@Override
public String getLastTweet(Speaker speaker) {
Talk talk = nu... | true |
5d0c178d3d48c915714df63d5de7e8b194de85b7 | Java | RCoccaro3/TirocinioSmart-2.0 | /webapp/src/main/java/it/unisa/di/tirociniosmart/web/ConvenzionamentoForm.java | UTF-8 | 1,765 | 2.203125 | 2 | [] | no_license | package it.unisa.di.tirociniosmart.web;
/**
* Oggetto utilizzato per la mappatura dei campi del form di richiesta convenzionamento HTML. Questo
* oggetto viene passato come parametro ai controller dalla dispatcher servlet quando un utente
* sottomette il modulo di richiesta di convenzionamento.
*/
public class Con... | true |
d00925942577cf78c37ebd645b934641e9053680 | Java | kingoneperson/spring-cloud-template | /spring-cloud-service-order/src/main/java/com/storm/spring/cloud/service/order/hystrix/AccountServiceHystrix.java | UTF-8 | 392 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.storm.spring.cloud.service.order.hystrix;
import com.storm.spring.cloud.service.order.feign.AccountService;
import com.storm.spring.cloud.service.order.pojo.User;
import org.springframework.stereotype.Component;
@Component
public class AccountServiceHystrix implements AccountService {
@Override
pu... | true |
b7e1212776c14121548dff60e8c0fa08034ca32d | Java | hive4bee/fitness | /fitness/src/main/action/OrderProductAction.java | UTF-8 | 1,261 | 2.140625 | 2 | [] | no_license | package main.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import cart.CartDAO;
import cart.CartDTO;
import command.CommandAction;
import member.MemberDAO;
import member.MemberDTO;
//OrderProductAction
public class OrderProductAction imple... | true |
0004460430664cd1cdda935c45d78b8cdb7218d3 | Java | fracz/refactor-extractor | /results-java/apereo--cas/6b121ab0b1c150db9781eca3c8b2c654c803e55f/before/YubiKeyApplicationContextWrapper.java | UTF-8 | 1,086 | 2.015625 | 2 | [] | no_license | package org.jasig.cas.adaptors.yubikey;
import org.jasig.cas.authentication.AuthenticationHandler;
import org.jasig.cas.web.BaseApplicationContextWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.... | true |
3e11facf8637f9f4afaf03c5a67c0aa186535e1c | Java | loafer/spring4-tutorials | /spring-event/src/test/java/com/github/loafer/hello/listener/order/ZhangsanListener.java | UTF-8 | 1,027 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.github.loafer.hello.listener.order;
import com.github.loafer.hello.listener.NiHaoEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.SmartApplicationListener;
import org.springframework.stereotype.Component;
/**
* 当eventType、sourceType都匹配时接收并处理消息
*
* @au... | true |
44883e5e5913040f49bae57aacebcd37b21b8c96 | Java | wonjin-do/DesignPattern | /designPattern/src/youtube/chap01_Stragy/kevinsVilliage/mode/DrivingMode.java | UTF-8 | 111 | 1.8125 | 2 | [] | no_license | package youtube.chap01_Stragy.kevinsVilliage.mode;
public interface DrivingMode {
void setupDrivingMode();
}
| true |
797b2ecb5645ded6920eac61c09e693c1e756267 | Java | SabujSana/MediCareApp | /app/src/main/java/com/example/medicare/RoktoSolpota.java | UTF-8 | 3,193 | 2.1875 | 2 | [] | no_license | package com.example.medicare;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class RoktoSolpota extends Activity{
TextView tvRoktoSolpota,tvRoktoSolpota1,tvRoktoSolpota2,tvRoktoSolpota3,tvRoktoSolpota4,tvRoktoSolpota5,tvRoktoSolpota6,tvR... | true |
3556747fa601e594d5c0511568762cae6d7b9b57 | Java | wangsf66/smt-app | /src/main/java/com/smt/app/SmtAppApplication.java | UTF-8 | 800 | 1.734375 | 2 | [] | no_license | package com.smt.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import com.douglei.orm.spring.boot.starter.Trans... | true |
a70487ac721858f76073ac7ae593f4e5f644b189 | Java | teslaCA/AP_ItemValidationService | /src/main/java/org/opentestsystem/ap/ivs/config/IvsProperties.java | UTF-8 | 629 | 1.515625 | 2 | [] | no_license | package org.opentestsystem.ap.ivs.config;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "ivs")
public class IvsPropert... | true |
2e2dfbd9149b73391993e952c217c7fcf76eedfd | Java | arjunshahi/CRUD-with-java-spring | /src/main/java/com/itn/controller/AdminController.java | UTF-8 | 404 | 1.648438 | 2 | [] | no_license |
package com.itn.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class AdminController {
@RequestMapping(value={"/Admin/Home","/admin/home"}, metho... | true |
c34ece5f54057ddd6551b8b0d129d19fd167e5dc | Java | bob313/CS3114Proj4 | /src/AirObject.java | UTF-8 | 4,134 | 3.203125 | 3 | [] | no_license | /**
* Air traffic control general object type interface
* All tracked objects must have a bounding prism and a name
* *
*
* @author {Your Name Here}
* @version {Put Something Here}
*
*/
public class AirObject implements Comparable<AirObject> {
private String obj;
private String name; // N... | true |
b349d194ac449a9cb882fbcf1d343c02561ef409 | Java | heroumcaslu/maratona-java | /src/com/devdojo/blocosdeinicializacao/Customer.java | UTF-8 | 778 | 3.8125 | 4 | [] | no_license | package com.devdojo.blocosdeinicializacao;
public class Customer {
//1 - Primeiro é alocado espaço na memória para o objeto
//2 - Cada atributo é criado com os valores default ou explicitados
//3 - Bloco de inicialização é executado
//4 - Construtor é executado
private int[] installments = { 1, 2, 3, 4, 5, 6, 7,... | true |
98067b9adf0c1b468e304271ec32b9a3202016cb | Java | ukiras123/DataStructure-Algorithm | /src/com/datastructure/treeNgraph/graph/EdgeList.java | UTF-8 | 457 | 3.09375 | 3 | [
"MIT"
] | permissive | package com.datastructure.treeNgraph.graph;
/**
* Created by Kiran on 9/26/18.
*/
public class EdgeList {
int[][] graph = {{0, 1}, {1, 2}, {1, 3}, {2, 3}};
// Since node 3 has edges to nodes 1 and 2, {1, 3} and {2, 3} are in the edge list.
// Sometimes it's helpful to pair our edge list with a list of a... | true |
3ab4399c133e20542ee7895a17fc82ad165523ec | Java | MarkoNad/Procedural-landscape-and-roads | /src/hr/fer/zemris/engine/texture/ModelTexture.java | UTF-8 | 2,488 | 2.671875 | 3 | [] | no_license | package hr.fer.zemris.engine.texture;
public class ModelTexture {
private static final int NO_ID = -1;
private final int textureID;
private final int normalMapID;
private float shineDamper = 1;
private float reflectivity = 0;
private boolean hasTransparency = false;
private boolean usesFakeL... | true |
a1646fbaaeed14bb94b38ee554806a63a48a7e9f | Java | NaeemHafiz/BookApp | /app/src/main/java/com/mtechsoft/bookapp/data/local/AppRoomDatabase.java | UTF-8 | 1,378 | 2.296875 | 2 | [] | no_license | //package com.mtechsoft.bookapp.data.local;
//
//import android.content.Context;
//
//import androidx.annotation.NonNull;
//
//import com.mtechsoft.bookapp.data.local.model.Chapter;
//
//
//@Database(entities = {Chapter.class}, version = 1, exportSchema = false)
//public abstract class AppRoomDatabase extends RoomDatab... | true |
d7ed751ef231dd2a6523888c1d4ed82bfadcd112 | Java | League-of-Legends-Math-Model/champStats | /calculated/src/calculated/runeTranslate.java | UTF-8 | 3,071 | 2.609375 | 3 | [] | no_license | package calculated;
import org.json.*;
import java.util.*;
public class runeTranslate {
JSONObject runeData;
ArrayList<Rune> statMods;
public ArrayList<Rune> getStats(){
return statMods;
}
private void setRuneInfo() throws JSONException {
for (Iterator<?> jkey = runeData.keys(); jkey.hasNext(); ){
St... | true |
03ce2ce020178b9c7df623ade06d3961c7e4a1b0 | Java | velevatanas/GeoGuide | /src/MainPackage/MainMenu.java | UTF-8 | 1,089 | 3.546875 | 4 | [] | no_license | package MainPackage;
import java.io.IOException;
public class MainMenu extends Menu {
private String startingWords;
public MainMenu() {
super();
setItems("1 - Continents", "2 - Countries", "9 - Exit");
startingWords = "LET ME SHOW YOU SOME OF THE WORLD!\n"
+ "CHOOSE FROM THE MENU WHETHER YOU W... | true |
d6a1fd8cdca72b2c48edf4a99656f3d30d62bf96 | Java | vpzomtrrfrt/theandrewmod | /java/net/reederhome/colin/theandrewmod/command/SevenEightNineCommand.java | UTF-8 | 3,954 | 2.140625 | 2 | [] | no_license | package net.reederhome.colin.theandrewmod.command;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.Entity;
import net.minecraft.entity... | true |
670d9324939c19cfdd04de6867b8156100b88e5c | Java | SarahCam/codeclan_work | /week_07/day_2/StereoLab/src/main/java/MP3.java | UTF-8 | 164 | 2.390625 | 2 | [] | no_license | public class MP3 implements IConnect {
public MP3() {
}
@Override
public String connect(Stereo stereo) {
return "Connected: MP3";
}
}
| true |
de5428de393a6d632c05abb96dc422867790ffa6 | Java | B-Z-Web-Developing-Inc/socialmedia-1 | /src/main/java/pl/coderslab/socialmedia/service/implementation/TweetServiceImpl.java | UTF-8 | 1,649 | 2.109375 | 2 | [] | no_license | package pl.coderslab.socialmedia.service.implementation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.coderslab.socialmedia.model.Tweet;
import pl.coderslab.socialmedia.model.User;
import pl.coderslab.socialmedia.repository.TweetRepository;
imp... | true |
82a7348f52087f4fc28f99db81386eea390e9b4e | Java | RomainGuarinoni/ImageJAVA | /Expr.java | UTF-8 | 1,545 | 3.75 | 4 | [
"MIT"
] | permissive | class Expr {
public double eval(double x, double y) {
return 0;
}
}
class X extends Expr {
public double eval(double x, double y) {
return x;
}
public String toString() {
return ("X");
}
}
class Y extends Expr {
public double eval(double x, double y) {
retu... | true |
65810fd65ce88bed216c8dca9d8902f13a1aa20f | Java | taraskovaliv/webcam_handler | /src/main/java/com/kovaliv/imageHandlers/Filters/Filter.java | UTF-8 | 165 | 2.171875 | 2 | [] | no_license | package com.kovaliv.imageHandlers.Filters;
import java.awt.image.BufferedImage;
public interface Filter {
BufferedImage filter(BufferedImage bufferedImage);
}
| true |
6832c63fcc5c5d4154e771ecd74d4ddafaed0a2c | Java | rhuanpablo13/BLVendasSimples | /src/sistemavendas/vendas/NCarrinhoCompras.java | UTF-8 | 16,582 | 2.6875 | 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 sistemavendas.vendas;
import infra.abstratas.NegocioSimples;
import java.math.BigDecimal;
import java.text.SimpleDate... | true |
a41e174fd45b22a22884a9f2012ac1f2981728fe | Java | sahak05/Bank-of-Abdoul | /ATM/src/Main.java | UTF-8 | 8,564 | 3.546875 | 4 | [] | no_license | import java.util.*;
public class Main {
public static void main(String[] args) {
// initialize the scanner
Scanner scan = new Scanner(System.in);
//init the bank
Bank theBank = new Bank("Bank of Abdoul");
//I got a bank now
//for testing to not create a user everyti... | true |
bc8a23f4423fd189331b787fb3ef32d57edd2ce9 | Java | KevinVanthuyne/simple-webshop | /src/main/java/ui/controller/handlers/RequestHandler.java | UTF-8 | 1,365 | 2.5 | 2 | [] | no_license | package ui.controller.handlers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import domain.Role;
import domain.ShopService;
import ui.controller.WebshopController;
public abstract class RequestHandler ... | true |
494c7a26ca856ec9b5c6b6e2bcba77add465979d | Java | fanweimei/JavaLearning | /src/p14collect/ArrayListTest_06.java | GB18030 | 1,819 | 4.09375 | 4 | [] | no_license | package p14collect;
import java.util.*;
/*
* ArrayListϰ⣺ȥArrayListеظԪ
* ԶҪдequalsΪArrayListͨequalsжǷͬ
*/
public class ArrayListTest_06 {
//ȥ
static ArrayList uniqueList(ArrayList list){
ArrayList newList = new ArrayList();
Iterator it = list.iterator();
while(it.hasNext()){
Object obj = it.next();
... | true |
c3c4b8016f6e4fc80011943d44ee798fa476f873 | Java | watertreestar/Design-Pattern | /src/com/ranger/design/principal/dependenceinvertion/Test.java | UTF-8 | 815 | 2.953125 | 3 | [] | no_license | /**
*
*/
package com.ranger.design.principal.dependenceinvertion;
/**
* @author Ranger
* 高层模块
*/
public class Test {
// v1
// public static void main(String[] args) {
// Ranger ranger = new Ranger();
// ranger.studyJavaCourse();
// ranger.studyFECourse();
// }
// v2 接口方法注入
// public static void main(Stri... | true |
a73ca5ef085d092ccd7a1c2110d441cf2b0658b3 | Java | GitsMuthukumarJ/Task5 | /Exception.java | UTF-8 | 728 | 3.6875 | 4 | [] | no_license | //Create separate package ExceptionHandling
package ExceptionHandling;
//create class Exception
public class Exception
{
//main method
public static void main(String[] args)
{
//create try block
try
{
int data = 50 / 0;
//integer array c has length of 1
int c[]= {1};
c[42]=99;
}
//cre... | true |
628f49637d14ed316536ea11645f7a123b48f6cd | Java | DanPizzini/BadgerSettleDownBST-List-Visualizer | /src/P9Tests.java | UTF-8 | 9,151 | 3.203125 | 3 | [] | no_license | //////////////////// ALL ASSIGNMENTS INCLUDE THIS SECTION /////////////////////
//
// Title: (P09 Badgers Settle Down)
// Files: (Sett.java, Badger.java, P9Tests.java)
// Course: (300, fall, 2018-2019)
//
// Author: (Dante Pizzni)
// Email: (pizzini@wisc.edu)
// Lecturer's Name: (Gary Dahl)
//
//////////////////// PAIR... | true |
bb80b0fe50215c8971631ea9757d669f1bc52c32 | Java | kaya151/develop | /src/main/java/com/tuomi/develop/service/TouristService.java | UTF-8 | 254 | 1.796875 | 2 | [] | no_license | package com.tuomi.develop.service;
import com.tuomi.develop.entity.Tourist;
import org.apache.ibatis.annotations.Param;
public interface TouristService {
Tourist selectByNameAndPwd(@Param("userName") String name, @Param("passWord") String pwd);
}
| true |
29e7d9004e8e4b8ebce63ebad2117aa7025fb9b0 | Java | SayScl/community | /src/main/java/com/shigan/controller/supermarket/SupermarketController.java | UTF-8 | 21,550 | 2.015625 | 2 | [] | no_license | package com.shigan.controller.supermarket;
import com.shigan.pojo.Limit;
import com.shigan.pojo.User;
import com.shigan.pojo.common.Common;
import com.shigan.pojo.supermarket.*;
import com.shigan.service.QiniuUploadService;
import com.shigan.service.UserService;
import com.shigan.service.supermarketservice.*;
import o... | true |
b66c80b0b6159094b3e0e13bdc798c2ea21aaf02 | Java | LIm-JY/aia202003 | /java_project/PhoneBook/src/ver01/PhoneBookMain.java | UTF-8 | 281 | 2.5625 | 3 | [] | no_license | package ver01;
public class PhoneBookMain {
public static void main(String[] args) {
PhoneInfor info = new PhoneInfor("손흥민", "000-8888-9999" , "2000.11.11");
info.showinfor();
info = new PhoneInfor("박지성","000-7777-5678");
info.showinfor();
}
}
| true |
bb6c4fa565b2ddb665002f5c0a584096fce7cf7f | Java | ma345564280/ivy-root | /src/main/java/com/ivy/root/service/impl/OrderServiceImpl.java | UTF-8 | 2,675 | 2.171875 | 2 | [] | no_license | package com.ivy.root.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ivy.root.common.exception.BusinessException;
import com.ivy.root.common.request.AppointmentRequest;
import com.ivy.root.common.rootenum.AppointmentStatusEnum;
import com.ivy.root.common.rootenu... | true |
4afac89838f8dedf212a37e65d8eed2d9c198721 | Java | barbupetcu/current-account | /src/main/java/com/test/current/account/infrastructure/security/jwt/JwtProperties.java | UTF-8 | 398 | 1.734375 | 2 | [] | no_license | package com.test.current.account.infrastructure.security.jwt;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Getter
@Setter
@Component
@ConfigurationProperties("application.security.jwt")
public ... | true |
9530da05bd8371992813a485b2fcaecdad95d9ef | Java | Arnauld/graphql-sandbox | /src/main/java/assetmngt/core/MarketPlace.java | UTF-8 | 499 | 2.5 | 2 | [] | no_license | package assetmngt.core;
/**
* @author <a href="http://twitter.com/aloyer">@aloyer</a>
*/
public class MarketPlace {
public static MarketPlace NYSE_PARIS = new MarketPlace("025", "NYSE EN PARIS", Country.FR);
public final String code;
public final String label;
public final Country country;
publ... | true |
5c16f42732928380ef91ee1433c1d3914b17adf0 | Java | JJCCGGRR24/Arreglos-2-parcial | /Acme-Newspaper/src/test/java/usecases/test1/UseCase06_3Test.java | UTF-8 | 4,981 | 2.265625 | 2 | [] | no_license |
package usecases.test1;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.transaction.Transactional;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | true |
ee1ae52d6958133b0b21bfbbb4a3f516872e9694 | Java | lochel/VANESA | /src/graph/jung/graphDrawing/MyVertexFillPaintFunction.java | UTF-8 | 3,222 | 2.578125 | 3 | [] | no_license | package graph.jung.graphDrawing;
import java.awt.Color;
import java.awt.Paint;
import java.util.Iterator;
import java.util.Set;
import com.google.common.base.Function;
import biologicalElements.Pathway;
import biologicalObjects.edges.BiologicalEdgeAbstract;
import biologicalObjects.nodes.BiologicalNodeAbs... | true |
fa19da492d411b77d383981927144e60fc9bb1c9 | Java | FelixBaensch/CdkDescriptorCalculator | /DescriptorCalculator/src/controller/MoleculePaneController.java | UTF-8 | 13,338 | 2.390625 | 2 | [] | no_license | package controller;
//<editor-fold defaultstate="collapsed" desc="imports">
import java.util.Map;
import java.util.Map.Entry;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Actio... | true |
6b30c79c683b1b7dba2cfbdb8843ab71daf9ee80 | Java | greyhawk/learning-akka | /akkademy-db-client/src/main/java/com/akkademy/messages/KeyNotFoundException.java | UTF-8 | 375 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.akkademy.messages;
import java.io.Serializable;
/**
* KeyNotFoundException
* @author ging wu
* @date 2018/12/5
*/
public class KeyNotFoundException extends Exception implements Serializable {
private final String key;
public KeyNotFoundException(String key) {
this.key = key;
}
... | true |
98dd76d54d390e50693bc0de958f79ae8a9353ce | Java | finos/legend-pure | /legend-pure-m3-core/src/test/java/org/finos/legend/pure/m3/tests/function/base/tracing/AbstractTestTraceSpan.java | UTF-8 | 7,373 | 1.945313 | 2 | [
"Apache-2.0",
"CC0-1.0"
] | permissive | // Copyright 2020 Goldman Sachs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | true |
5faf1e0bfde97d8a0c45198c127c93b720f9b082 | Java | SerenaMB1/FlockingApplication | /AssignmentHome/src/assignmentMain.java | UTF-8 | 7,413 | 3.015625 | 3 | [] | no_license |
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.Hashtable;
import Birds.randomBirds;
import dF.Utils;
import drawing.Canvas;
public class assignmentMain {
//... | true |
98170dfe41330628a79a2a3f1b96e386c86c0d09 | Java | olgaviho/otm-harjoitustyo | /MyStudies/src/test/java/dao/DatabaseUserDaoTest.java | UTF-8 | 1,871 | 2.71875 | 3 | [] | no_license |
package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import mystudies.dao.Database;
import mystudies.dao.DatabaseUserDao;
import mystudies.domain.User;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.... | true |
0374bc4f6f16ada19707089a4542782e1b20312a | Java | psoursos/Sir-examples | /SAGdesign/src/SAG/impl/GoalImpl.java | UTF-8 | 9,378 | 1.648438 | 2 | [] | no_license | /**
*/
package SAG.impl;
import SAG.Actor;
import SAG.Goal;
import SAG.SAGPackage;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclip... | true |
fd0716ad8becdecc12c659c3edadf9f29cde556c | Java | jyn199/mybatisdemo | /src/main/java/com/app/mybatis/plugins/pagable/dialects/OracleDialect.java | UTF-8 | 586 | 2.3125 | 2 | [] | no_license | package com.app.mybatis.plugins.pagable.dialects;
import com.app.mybatis.plugins.pagable.Dialect;
public class OracleDialect implements Dialect {
@Override
public String buildPaginationSql(String originalSql, int offset, int length) {
StringBuilder paginationSql = new StringBuilder(originalSql);
pagin... | true |
31c1feaab7a0446e5e598f2db734b236870f2571 | Java | octavian-h/npanday | /components/dotnet-executable/src/main/java/npanday/executable/impl/VersionComparer.java | UTF-8 | 2,328 | 2 | 2 | [
"Apache-2.0",
"zlib-acknowledgement"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
dae07087e1069ceece2bbe2a17765b681d1f2dfe | Java | marcusvpr/mprest | /src/main/java/com/mpxds/mprest/domain/xml/atox/SignatureMethod.java | UTF-8 | 474 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.mpxds.mprest.domain.xml.atox;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="SignatureMethod")
public class SignatureMethod {
//
@XmlAttribute(name="Algorithm")
private String Algorithm;
// ---
public String getAlgorithm() { r... | true |
f7dd85c875bbccf6dee3ab570d4f892496c30947 | Java | Sasikala0105/Assign1 | /Assignment1/src/StressRelief.java | UTF-8 | 321 | 2.515625 | 3 | [] | no_license |
public class StressRelief {
String sukhasana,balasana;
public StressRelief(String m,String n) {
}
public void setPoses(String m,String n) {
this.sukhasana=m;
this.balasana=n;
}
public String getsukhasana() {
return sukhasana;
}
public String getbalasana() {
return balasana;
}
... | true |
c228963a457b99945fedfcea43c11f7cd6cf4f62 | Java | novastosha/Sweet-Candy | /src/main/java/dev/nova/thecandybot/game/base/GameInstance.java | UTF-8 | 1,174 | 2.40625 | 2 | [] | no_license | package dev.nova.thecandybot.game.base;
import dev.nova.thecandybot.Main;
import dev.nova.thecandybot.commands.base.Command;
import dev.nova.thecandybot.game.pushboxes.Grid;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.TextChannel;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
i... | true |
33f432c11a8208249e1e0f24663291ea5ce7ac5f | Java | jacobfrose/Secret-Shopper-Application | /src/common/DynamicCombobox.java | UTF-8 | 1,400 | 2.796875 | 3 | [] | no_license | package common;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
public class DynamicCombobox {
/**
* Updates specified DefaultComboBoxModel "model" with the query determin... | true |
4cd08929e1564f0bf1931775db770a44bdb7ffa2 | Java | lastFeynman/Introduction_to_Algorithms | /src/part3/chapter10/section10_1/Practice10_1_5.java | UTF-8 | 998 | 3.25 | 3 | [] | no_license | package part3.chapter10.section10_1;
public class Practice10_1_5 {
}
class DoubleEndQueue{
int[] queue = new int[21];
int head = 0;
int tail = 0;
public boolean isEmpty(){
return head == tail;
}
public boolean isFull(){
return (tail+1)%queue.length == head;
}
public ... | true |
de9d22c745896a1843e862b5d742dd93266bffd9 | Java | itdatao/takeaway-client | /src/main/java/com/ruoyi/web/controller/CommentController.java | UTF-8 | 1,541 | 1.921875 | 2 | [] | no_license | package com.ruoyi.web.controller;
import com.ruoyi.web.common.AjaxResult;
import com.ruoyi.web.form.CommentForm;
import com.ruoyi.web.service.CommentService;
import com.ruoyi.web.vo.CommentVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | true |
819f0490a97860e16084b9b3f6497d9c9f9fc8bc | Java | mathck/BARK_it | /app/src/main/java/com/barkitapp/android/_main/SettingsFragment.java | UTF-8 | 1,439 | 1.585938 | 2 | [] | no_license | package com.barkitapp.android._main;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
impor... | true |
5aa9709031651ca2edd7576084fd536f38e04698 | Java | Sciss/bdb-je | /test/com/sleepycat/je/rep/impl/RepGroupImplTest.java | UTF-8 | 2,219 | 1.96875 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*-
* Copyright (C) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please ... | true |
47c8a88a07c0cda5c69526a9bc71dfd745170bb6 | Java | myeongin/findHero | /findhero/src/main/java/com/findhero/mapper/ReviewMapper.java | UTF-8 | 1,059 | 1.914063 | 2 | [] | no_license | package com.findhero.mapper;
import java.util.HashMap;
import java.util.List;
import com.findhero.vo.HeroVo;
import com.findhero.vo.ReviewVo;
import com.findhero.vo.RsVo;
import com.findhero.vo.UserVo;
public interface ReviewMapper {
List<ReviewVo> selectReview(HashMap<String,Object> select... | true |
67d3d7d0dde96d56dc86345a87755ccc8273595e | Java | nv3ob61/RSSFeed | /src/org/monmo/java/main/Main.java | UTF-8 | 1,403 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 nv3ob61
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribut... | true |
33d7fb0a8c581915c094ac663e929a9d110d4858 | Java | stupidcupid/multithreading | /src/com/multithreading/pc12/Test.java | UTF-8 | 396 | 2.484375 | 2 | [] | no_license | package com.multithreading.pc12;
/**
* Created by nanzhou on 2017/6/1.
*/
public class Test {
public static void main(String[] args) throws InterruptedException{
Task task = new Task();
MyThread1 myThread1= new MyThread1(task);
myThread1.start();
Thread.sleep(100);
My... | true |
f2ed96a4788bdb68a67777011386c626a0962ac5 | Java | todoee/todoee | /todoee-service/src/main/java/io/todoee/service/module/ServiceModule.java | UTF-8 | 439 | 1.84375 | 2 | [] | no_license | package io.todoee.service.module;
import com.google.inject.AbstractModule;
import io.todoee.service.provider.CircuitBreakerProvider;
import io.vertx.circuitbreaker.CircuitBreaker;
/**
*
* @author James.zhang
*
*/
public class ServiceModule extends AbstractModule {
@Override
protected void ... | true |