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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2ef0ddb71194b84a1b91ef186fb888864ef6068f | Java | maodougansidui/Assignment_Design | /JMao_EcoliCount_S18/src/ecolicounts/Main.java | UTF-8 | 940 | 2.875 | 3 | [] | no_license | package ecolicounts;
import static sbcc.Core.*;
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static org.apache.commons.lang3.StringUtils.*;
public class Main {
public static void main(String[] args) throws IOException {
String input = readLine();
String dnaText = readFile(inp... | true |
5dad8ab699153de66b15a24e2228a4df89234bcd | Java | sergiolovillo/biblioteca | /biblioteca/GestionCdroms.java | ISO-8859-1 | 12,485 | 2.3125 | 2 | [] | no_license | package biblioteca;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.S... | true |
f63d22f5e158e254fc69651542ad3266a73d470b | Java | Kun-Kun/epam-homework | /src/main/java/ua/epam/homework/first/twentyone/Game.java | UTF-8 | 5,162 | 3.234375 | 3 | [] | no_license | package ua.epam.homework.first.twentyone;
import ua.epam.homework.first.tools.GameTools;
import java.io.InputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
public class Game {
private Deck deck ;
private PrintSt... | true |
63083ce3176ff7c0242978af363a7e702319cea0 | Java | zhangjiweiuser/hongdun-server | /src/main/java/com/hongdun/util/RsaUtil.java | UTF-8 | 4,206 | 2.828125 | 3 | [] | no_license | package com.hongdun.util;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import javax.crypto.Cipher;
import org.apache.commons.codec.binary.Bas... | true |
819cea699972cb30718a9f546b4e9606fe87f0d4 | Java | viniciusdv/dscatalog | /backend/src/main/java/com/dscatalog/dscatalog/resources/CategoryResource.java | UTF-8 | 3,235 | 2.40625 | 2 | [] | no_license | package com.dscatalog.dscatalog.resources;
import java.net.URI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.http.Respons... | true |
8732196266e076d903e56c85a6d6e34a900adf37 | Java | feesa/easyrec-parent | /easyrec-plugins/easyrec-plugins-profile-duke/src/main/java/org/easyrec/plugin/profileduke/ProfileDukeGenerator.java | UTF-8 | 13,425 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Research Studios Austria Forschungsgesellschaft mBH
*
* This file is part of easyrec.
*
* easyrec 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
... | true |
20f880c5f36faa8f8c8a5cd05b09c88514eb0ac2 | Java | gatajan/24BitrixAutomation | /src/test/java/com/bitrix24/step_definitions/LoginStepDefinitions.java | UTF-8 | 816 | 2.421875 | 2 | [] | no_license | package com.bitrix24.step_definitions;
import com.bitrix24.pages.LoginPage;
import com.bitrix24.utilities.ConfigurationReader;
import com.bitrix24.utilities.Driver;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class LoginStepDefinitions {
LoginPage lo... | true |
7d6beff2ecfa312511c4a1321fc9039f154cb0c9 | Java | dutrow/dutrowMarket | /dutrowSales/dutrowSalesEJB/src/main/java/dutrow/sales/dto/BidResultDTO.java | UTF-8 | 422 | 2.09375 | 2 | [] | no_license | /**
*
*/
package dutrow.sales.dto;
import java.io.Serializable;
/**
* @author dutroda1
*
*/
public class BidResultDTO implements Serializable{
private static final long serialVersionUID = 6748294577367615014L;
public BidDTO bid;
public String result;
/**
* @param bid
* @param result
*/
public B... | true |
0b0f4a2476e5c79cbea346fb24173647651968f1 | Java | kartikgola/well-known-problems | /practice/src/main/java/leetcode/LinkedListCycle.java | UTF-8 | 517 | 2.90625 | 3 | [] | no_license | /*
* Author: Kartik Gola
* Date: 1/2/22, 3:28 PM
* Copyright (c) 2021 | https://kartikgola.com
*/
package leetcode;
import linkedlist.ListNode;
public class LinkedListCycle {
public boolean hasCycle(ListNode head) {
if (head == null || head.next == null)
return false;
ListNode p1... | true |
5a8c5f935d0cf44bf36c32a789b70ecf00b00188 | Java | navi07/Java-i-systemy-mobilne | /StorageService/src/main/java/ComparatorAmount.java | UTF-8 | 298 | 2.765625 | 3 | [] | no_license | import java.util.Comparator;
public class ComparatorAmount implements Comparator<Item> {
public int compare(Item o1, Item o2) {
int result = o1.getQuantity() - o2.getQuantity();
if(result == 0){
return o1.compareTo(o2);
}
return result;
}
}
| true |
ea91c4d51197b1d67d78037d3bfce11da97c444d | Java | WonderBlack/Algorithm | /src/chap2/Change.java | UTF-8 | 1,399 | 4 | 4 | [] | no_license | package chap2;
import java.util.Random;
import java.util.Scanner;
public class Change {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
Random rnd = new Random();
System.out.println("要素数は:");
int n = stdIn.nextInt();
int[] num = new int[n];
for (int i = 0; i < n; i++) {... | true |
e1e799730fdfc175674f3d7180e7b22cd7959827 | Java | wwj912790488/supervisor | /web/src/main/java/com/arcsoft/supervisor/web/IndexController.java | UTF-8 | 575 | 2.046875 | 2 | [] | no_license | package com.arcsoft.supervisor.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Controller class for handling index.
*
* @author zw.
*/
@Controller
@RequestMapping("/index")
pu... | true |
9878771df19729f52c706c6a61084d864428b713 | Java | bbahaida/java-learn | /junit-learning/src/test/java/calculatorApp/CalculatorTest.java | UTF-8 | 1,352 | 2.859375 | 3 | [] | no_license | package calculatorApp;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import manualTest.TestCalculator;
public class CalculatorTest extends TestCase {
public CalculatorTest(String name) {
super(name);
}
public void testAdd(){
Calculator ca... | true |
814d1317eeec3d17b6235aefac101b468daab4be | Java | khoaihdkg3/SSHChecker-project | /src/main/java/SSHFunction/SSHCheckFresh.java | UTF-8 | 2,104 | 2.328125 | 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 SSHFunction;
import SSHChecker.Model.SSHsTableModel;
import static SSHChecker.Renderer.ProgressBLCheckingRenderer.TYPE... | true |
5ced6d626cb2042305b5ba1f74362945aa55ab95 | Java | wuhuiying/Video | /app/src/main/java/quarter/perfect/com/quarternew/util/Util.java | UTF-8 | 1,202 | 2.265625 | 2 | [] | no_license | package quarter.perfect.com.quarternew.util;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
/**
* Created by Administrator on 2018/3/24.
*/
public class Util {
private volatile static Util util=null;
private Util(){
}
public sta... | true |
341a1a202d5e5dbfd1f31d3f4b46e82f5f341b58 | Java | aicis/fresco-outsourcing | /core/src/main/java/dk/alexandra/fresco/outsourcing/server/ddnnt/DdnntOutputServer.java | UTF-8 | 6,316 | 2.125 | 2 | [
"MIT"
] | permissive | package dk.alexandra.fresco.outsourcing.server.ddnnt;
import dk.alexandra.fresco.framework.Application;
import dk.alexandra.fresco.framework.DRes;
import dk.alexandra.fresco.framework.builder.numeric.Numeric;
import dk.alexandra.fresco.framework.builder.numeric.NumericResourcePool;
import dk.alexandra.fresco.framework... | true |
f316f64c00b8456c6d139c0c93ee8148c67c387d | Java | RalfNick/DataStruct | /src/algorithm/sort/SortUtilTest.java | UTF-8 | 2,893 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | package algorithm.sort;
import org.junit.Assert;
import org.junit.Test;
/**
* DESCRIPTION
*
* @author lixin
* @create 2019-09-18 下午9:14
**/
public class SortUtilTest {
@Test
public void testMerge() {
// 输入: [[1,3],[2,6],[8,10],[15,18]]
// 输出: [[1,6],[8,10],[15,18]]
int[][] merge ... | true |
60229813400ee82fd7f5d088940a6edc5a0848e7 | Java | ZiqiaoLin/CPSC1150 | /src/Lab2First.java | UTF-8 | 898 | 3.625 | 4 | [] | no_license | /* The Program's Name: Lab2First;
** Name: Ziqiao(John) Lin
**Date:Sep,25,2015
**Course:CPSC1150
**Compiler:JDK1.7
**Purpose for each class: I only have one class for do the x,y calculation
*/
public class Lab2First{
public static void main (String[] args){
double a = 1.45; // Declare the data type a... | true |
d22fd714dc2bfc13590f9a96501c79ecc460cd35 | Java | jackmahuayun/blog | /src/main/java/com/decade/blog/mapper/BlogMapper.java | UTF-8 | 701 | 2.015625 | 2 | [] | no_license | package com.decade.blog.mapper;
import com.decade.blog.entity.Blog;
import com.decade.blog.entity.query.BlogQueryDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author decade
* @create 2019-12-21 09:56
*/
public interface BlogMapper {
/**
* 条件查询所有博客
*
* @param bl... | true |
c73e19f121405482f3eb53a6f45080da0a875c63 | Java | juniornff/Proyectos-Android-Studio-Sabado | /Practica_5_Entrega/app/src/main/java/com/example/registrodeestudiantes/EstudianteHelper.java | UTF-8 | 4,793 | 2.40625 | 2 | [] | no_license | package com.example.registrodeestudiantes;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.example.registrodeestudiantes.DB.EstudianteDBHelper;
import com.example.r... | true |
1b31e41166727742e2e10c51c15309092c6fb139 | Java | roxana413/Laborator1IP | /[IP] Lab1/src/com/company/Pasari.java | UTF-8 | 1,332 | 3.046875 | 3 | [] | no_license | package com.company;
public class Pasari extends Animal {
@Override
public void hrana() {
System.out.println(this.hrana);
}
@Override
public void viteza() {
System.out.println(this.viteza);
}
@Override
public void culoare() {
System.out.println(this.culoare)... | true |
cde02d719abfe558a561e7d9c831622ba6cfce0d | Java | PApatigers/music_app | /app/src/main/java/com/example/black/music/fabu_seach/record.java | UTF-8 | 315 | 1.757813 | 2 | [] | no_license | package com.example.black.music.fabu_seach;
import android.widget.TextView;
public class record {
public String username;
public String qkl_id;
public String filename;
public String date;
public record(){
username="";
qkl_id="";
filename="";
date="";
}
}
| true |
ad794fa64483db7290cc8786b9fbe97550191e9e | Java | anshul1927/SPECalculator | /src/test/java/Naturallog.java | UTF-8 | 485 | 2.46875 | 2 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class Naturallog {
private Main main;
@Before
public void setUp() {
main = new Main();
}
@Test
public void log()
{
assertTrue("testcase 4", 0.6931471805599453 == main.calcnatlog(2.0... | true |
5cc900f04bb1dc5254f676219b0b906f9f1e6cb8 | Java | jpsember/uncertain_voronoi | /src/gvorn/VornSite.java | UTF-8 | 880 | 2.796875 | 3 | [] | no_license | package gvorn;
import base.*;
import testbed.*;
/**
* Abstract class representing Voronoi sites
*/
public abstract class VornSite implements Renderable {
public void setId(int id) {
this.id = id;
}
public int id() {
return id;
}
private int id;
/**
* Calculate distance of a point from the s... | true |
9180eab4f0146898d0273675699821df64089b8f | Java | zhiru18/Akafa-1year | /AkafaBackUP/src/database/PeriodDBIF.java | UTF-8 | 641 | 2.234375 | 2 | [] | no_license | package database;
import java.util.List;
import model.Period;
import model.ScheduleType;
public interface PeriodDBIF {
public void insertPeriod(Period period, int scheduleId, ScheduleType scheduleType) throws DataAccessException;
public void updatePeriod(Period period) throws DataAccessException;
pub... | true |
e061526ba493dd4aefe02a50512c1c9426492d73 | Java | axin1240101543/jvm-service | /src/main/java/com/darren/service/jmm/T04_Disorder.java | UTF-8 | 1,382 | 3.421875 | 3 | [] | no_license | package com.darren.service.jmm;
/**
* <h3>jvm-service</h3>
* <p>cpu指令乱序执行</p>
*
* 美团工程师实现
*
* @author : Darren
* @date : 2020年06月29日 15:00:07
**/
public class T04_Disorder {
private static int x = 0, y = 0;
private static int a = 0, b = 0;
public static void main(String[] args) throws Interrupted... | true |
7c2bde7d7f29d9473fd81d707093229c19e8437a | Java | gitjinyubao/MyProject | /PreviousProjects/webFront/ajax/Ajax-text3/src/com/sqlSession/SQlSession.java | GB18030 | 1,051 | 2.671875 | 3 | [] | no_license | package com.sqlSession;
import java.io.InputStream;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
/**
* SqlSession,ṩSqlSessionķ
*/
public class SQlSession {
//徲̬˽SqlS... | true |
b63e4ad0f1e61e2c14983a10ff3b61918fdced19 | Java | QianruChen/lab_med | /src/main/ImageStack.java | UTF-8 | 14,767 | 2.390625 | 2 | [] | no_license | package main;
import java.util.*;
import java.io.*;
import javax.swing.*;
import misc.DiFile;
import misc.DiFileInputStream;
import misc.MyObservable;
/**
* The ImageStack class represents all DicomFiles of a series and its segments.
* It is the global data structure in YaDiV.
* This class is impleme... | true |
f0e9c4aaf609693ac1b1331951f189e49e71887f | Java | developer-choihongseok/WebDev_SpringBoard | /SpringBoard/src/main/java/com/koreait/sboard/user/UserService.java | UTF-8 | 4,544 | 2.09375 | 2 | [] | no_license | package com.koreait.sboard.user;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import com.koreait.sboard.common.Const;
import com.kore... | true |
3d09d9b068c43a6968975f3e3b9eeba6a1b48f97 | Java | HelloJay1995/helloJay | /src/main/java/cn/hello/jay/practice/leetcode/q_141/Solution.java | UTF-8 | 1,056 | 3.125 | 3 | [] | no_license | package cn.hello.jay.practice.leetcode.q_141;
import java.util.HashSet;
/**
* @author 周健以
* @Date 2020年05月20日
*/
public class Solution {
public static void main(String[] args) {
ListNode head = new ListNode(3);
head.next = new ListNode(2);
head.next.next = new ListNode(0);
head... | true |
d579c7d8da52e42a13d5a22e5622832b7de62a3c | Java | yuwu/AvooleChatServer | /src/Main.java | UTF-8 | 775 | 2.390625 | 2 | [] | no_license | import io.netty.handler.codec.mqtt.MqttConnectPayload;
import io.netty.handler.codec.mqtt.MqttMessageBuilders;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
MqttMessageBuilders.ConnectBuilder builder = MqttMessageBuilders.connect();
build... | true |
bb7ca17ed4746aaaa75f624ec3250099e99c22b2 | Java | SkyScraperTwc/HgShopSys | /src/main/java/indi/twc/hg/web/controller/admin/AdminListServlet.java | UTF-8 | 2,096 | 2.109375 | 2 | [] | no_license | package indi.twc.hg.web.controller.admin;
import indi.twc.hg.service.impl.AdminServiceImpl;
import indi.twc.hg.service.IAdminService;
import indi.twc.hg.entity.PageData;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.htt... | true |
9b9adbad36838f3c4e6487e1eabec165e3d7e635 | Java | craig-fox/Java8Demo | /src/main/java/lambda/DefaultMethodsDemo.java | UTF-8 | 1,305 | 3.578125 | 4 | [] | no_license | package main.java.lambda;
import java.io.PrintWriter;
import main.java.impl.InstantCoffeeMaker;
import main.java.impl.PoshCoffeeMaker;
import main.java.interfaces.CoffeeMaker;
import main.java.model.Coffee;
/**
* Created with IntelliJ IDEA.
* User: foxc
* Date: 20/06/14
* Time: 3:52 PM
* To change this template... | true |
c176b8d3828e1001178b2b3685a057961087c867 | Java | nonstriving/SistemaBancario | /src/GerenciamentoConta/ValoresContaInterface.java | UTF-8 | 184 | 1.914063 | 2 | [] | no_license | package GerenciamentoConta;
public interface ValoresContaInterface {
public int getNumero();
public void atualizarSaldo(double valor);
public void atualizarLimite(double valor);
}
| true |
1133c7d5a2bcfa0f93dbe9f72fee45e871c013be | Java | fengguangjing/commonmaven | /universalimageloaderlibrary/src/main/java/com/nostra13/universalimageloader/core/download/BaseImageDownloader.java | UTF-8 | 17,481 | 1.859375 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2011-2014 Sergey Tarasevich
*
* 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.... | true |
f68b43052731e3db801aba9111e6aa050d26a13f | Java | LonelyPriest/AndroidDiablo | /app/src/main/java/com/diablo/dt/diablo/view/DiabloCellView.java | UTF-8 | 1,052 | 2.34375 | 2 | [] | no_license | package com.diablo.dt.diablo.view;
import android.view.View;
import android.widget.EditText;
import com.diablo.dt.diablo.utils.DiabloEnum;
/**
* Created by buxianhui on 17/3/22.
*/
public class DiabloCellView {
private View view;
private DiabloCellLabel label;
public DiabloCellView(View view, DiabloC... | true |
3708d9babfbdaa07a06a3a94728d47369ab04c39 | Java | acercow/JavaPractice | /src/main/java/com/acercow/rxjava/Observer.java | UTF-8 | 141 | 1.8125 | 2 | [] | no_license | package com.acercow.rxjava;
public interface Observer<T> {
void onComplete();
void onError(Throwable t);
void onNext(T var1);
}
| true |
5caa114fb6cc8b5d1fc3ec139baac77a1c2b4e48 | Java | jamshedu/SyntaxClass | /src/com/syntax/class7/Task.java | UTF-8 | 618 | 3.6875 | 4 | [] | no_license | package com.syntax.class7;
public class Task {
public static void main(String[] args) {
// how to print odd number from 1 to 20
// 1 ways incrementing and if condition
System.out.println("==========");
int num= 1;
while (num < 20) {
System.out.println(num);
num+=2;
}
// 2 way using ... | true |
52cf40e87c89c88871aabcfc65eabeae1c64a08e | Java | antoniojr78/biblioteca | /biblioteca/src/main/java/br/com/viniciusmrosa/modelo/Colecao.java | UTF-8 | 800 | 2.21875 | 2 | [] | no_license | package br.com.viniciusmrosa.modelo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneTo... | true |
96d77e2a54e8b59d676fa28d467b32c854a50ebc | Java | yuanchi85/zrkj_android | /app/src/main/java/zrkj/project/entity/CmsSaleDetailed.java | UTF-8 | 4,578 | 2.078125 | 2 | [] | no_license | package zrkj.project.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
/**
* @Description: 销售销货表
* @Author: jeecg-boot
* @Date: 2021-02-04
* @Version: V1.0
*/
public class CmsSaleDetailed implements Serializable {
private s... | true |
dfac3a250ea39ba5ae879c4f51e7a6d804eeba88 | Java | tkaveen/Database-Management-System-Sports-Council | /src/Add_info.java | UTF-8 | 62,662 | 2.546875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author hp
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Stateme... | true |
a2e2f18521c849b18a295f8cf62d9baf74ebae3f | Java | gomboskriszta/warehouseManagement | /homework3/src/main/java/Model/Warehouse.java | UTF-8 | 4,267 | 3.5 | 4 | [] | no_license | package Model;
import java.util.ArrayList;
import java.util.Set;
import java.util.TreeMap;
/**
* Clasa ce contine obiectele produse si cantitatile acestora si implementeaza operatiile specifice unui depozit
* @author Gombos Kriszta
*/
public class Warehouse {
private TreeMap<Product, Integer> stock;
/**
* Co... | true |
11491501e2e44beb7bbece41a7f3f5f4e04742aa | Java | i-novus-llc/n2o-framework | /backend/n2o/n2o-access/src/test/java/net/n2oapp/framework/access/metadata/transform/ApplicationAccessTransformerTest.java | UTF-8 | 12,528 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | package net.n2oapp.framework.access.metadata.transform;
import net.n2oapp.framework.access.integration.metadata.transform.ApplicationAccessTransformer;
import net.n2oapp.framework.access.metadata.Security;
import net.n2oapp.framework.access.metadata.pack.AccessSchemaPack;
import net.n2oapp.framework.api.metadata.appli... | true |
7e157275a287f3bda63f8b8e3d189b365c4d16a6 | Java | joaoteixeira/Padroes-Projeto | /src/br/padroes/strategy/CalculaImpostos.java | UTF-8 | 823 | 2.890625 | 3 | [
"MIT"
] | permissive | package br.padroes.strategy;
import br.padroes.strategy.impostos.Imposto;
import br.padroes.strategy.views.OpcaoImpostos;
/**
*
* @author João Teixeira
* @lesson Design Patterns
*
*/
public class CalculaImpostos {
private double valor;
private Imposto imposto;
public CalculaImpostos(double... | true |
200f48cbc50cff78e7e7fe55f7707a6c4b768d7f | Java | dmitrii-bogdanov/warehouse | /src/main/java/bogdanov/warehouse/configs/AdminAccountConfig.java | UTF-8 | 1,363 | 1.929688 | 2 | [] | no_license | package bogdanov.warehouse.configs;
import bogdanov.warehouse.database.entities.UserEntity;
import bogdanov.warehouse.database.repositories.RoleRepository;
import bogdanov.warehouse.database.repositories.UserRepository;
import bogdanov.warehouse.dto.UserAccountDTO;
import bogdanov.warehouse.services.interfaces.RoleSer... | true |
fb6aba6d1974d2f4bf7afe32d82956464c9f8c20 | Java | P1u1p1/formalGreeter | /src/formalgreeting1/formalGreetinFrame.java | UTF-8 | 10,246 | 2.671875 | 3 | [] | no_license | /*
* Seth James England
* 18/04/2018
* The formal greeter
*/
package formalgreeting1;
/**
* Seth England
*/
public class formalGreetinFrame extends javax.swing.JFrame {
/**
* Creates new form formalGreetinFrame
*/
public formalGreetinFrame() {
initComponents();
}
/**
* T... | true |
293945b5d491858b1a67fce467269cedee851282 | Java | conanlee88/personal_demos | /app/src/main/java/com/daydayup/mydemo/activity/game/puzzle/ui/PuzzleGameActivity.java | UTF-8 | 3,055 | 2.0625 | 2 | [] | no_license | package com.daydayup.mydemo.activity.game.puzzle.ui;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.databinding.DataBindingUtil;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.ThumbnailUtils;
import android.os.Bundle;
import androi... | true |
0d2ad02fd3fe5e13c4d7f7c05b5751daf8a4c184 | Java | Unidata/awips2 | /cave/com.raytheon.uf.viz.app.launcher/src/com/raytheon/uf/viz/app/launcher/bundle/HydroDefaults.java | UTF-8 | 4,085 | 2.421875 | 2 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | true |
b0c107bccdd63943ecd431bd9cb95e8d2d24cafa | Java | Huang9527/ServletFilterListener | /src/main/java/com/hcc/filter/LoginFilter.java | GB18030 | 2,303 | 2.71875 | 3 | [] | no_license | package com.hcc.filter;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.... | true |
aeb7972c9fa4ca48b195da4ad151385e501848b5 | Java | mummareddy/JavaCodies | /src/main/java/com/nats/Arrays/ArrayRotation.java | UTF-8 | 2,007 | 3.875 | 4 | [] | no_license | package com.nats.Arrays;
/**
* Created by nataraja.maruthi on 1/6/18.
*/
public class ArrayRotation {
public static void main(String[] args) {
int array[] = {1,2,3,4,5,6,7};
new ArrayRotation().printArray(array);
new ArrayRotation().rotateLeft(array,3);
new ArrayRotation().printAr... | true |
53e43a763bdc93c72bd11e2ac704dfa97becf435 | Java | heeeeing/kakao_dglee | /kakao_ex1/src/main/java/com/kakao_ex1/demo/model/entity/Transaction.java | UTF-8 | 569 | 1.867188 | 2 | [] | no_license | package com.kakao_ex1.demo.model.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Transaction {
privat... | true |
4772abe78f71505e9c0374e520f8ca1aa6927131 | Java | ControlSystemStudio/org.csstudio.askap.product | /plugins/org.csstudio.askap.utility.icemanager/src/org/csstudio/askap/utility/icemanager/MonitorPointListener.java | UTF-8 | 228 | 1.867188 | 2 | [] | no_license | package org.csstudio.askap.utility.icemanager;
import askap.interfaces.monitoring.MonitorPoint;
public interface MonitorPointListener {
public void onUpdate(MonitorPoint point);
public void disconnected(String pointName);
}
| true |
a99f994a40c74328e2f79082376d7d27349ac060 | Java | lizhongze123/YuYunMeiYe | /app/src/main/java/cn/yuyun/yymy/base/BaseActivity.java | UTF-8 | 5,912 | 2.015625 | 2 | [] | no_license | package cn.yuyun.yymy.base;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import andro... | true |
c888d99763bcce2c15842fc2ec9c93590663befe | Java | psergiopoli/museu_flora_fauna_src | /MuseuWeb/JavaSource/museu/servlet/Logo.java | UTF-8 | 1,436 | 2.171875 | 2 | [] | no_license | package museu.servlet;
import java.io.IOException;
import java.io.InputStream;
import javax.ejb.EJB;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
i... | true |
f2c7b091fbdfb7d997dd0d43bc4e59e46cfcfe4e | Java | zhongxingyu/Seer | /Diff-Raw-Data/35/35_66bef0a99bace055608a7f8920b5b07bbf7c5427/IntMap/35_66bef0a99bace055608a7f8920b5b07bbf7c5427_IntMap_s.java | UTF-8 | 21,353 | 2.71875 | 3 | [] | no_license | package mikera.persistent;
import java.io.ObjectStreamException;
import java.util.Iterator;
import java.util.Map;
import mikera.persistent.impl.KeySetWrapper;
import mikera.persistent.impl.ValueCollectionWrapper;
import mikera.util.Bits;
import mikera.util.TODOException;
import mikera.util.Tools;
/**
... | true |
358b1550b65afe13c029318d87a84b6fea7ea95a | Java | Ismailalkouz94/Biller | /Biller_BackEnd/src/main/java/com/mycompany/biller/dao/TemplateRepDAO.java | UTF-8 | 618 | 1.921875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.biller.dao;
import com.mycompany.biller.dto.TemplateRep;
import java.util.List;
/**
*
* @author ismail
*/
pu... | true |
547c8d3de4e68ab504b9207ae65c6575001b5eec | Java | HyoungUk/spring | /관련자료/springSrc2/ch01/src/main/java/samp09/Vehicle.java | UTF-8 | 77 | 2.0625 | 2 | [] | no_license | package samp09;
public interface Vehicle {
void ride(); // public abstract
} | true |
95a647c1abc5d3a39e7dbc0b2eee9657d4718076 | Java | travelnxt/appacitive-android-sdk | /core/src/main/java/com/appacitive/core/model/AppacitiveEndpoint.java | UTF-8 | 2,483 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.appacitive.core.model;
import com.appacitive.core.AppacitiveDevice;
import com.appacitive.core.AppacitiveEntity;
import com.appacitive.core.AppacitiveObject;
import com.appacitive.core.AppacitiveUser;
import com.appacitive.core.apjson.APJSONException;
import com.appacitive.core.apjson.APJSONObject;
import ... | true |
c5ea6ec111de41247bbcb6e331b428807886f232 | Java | zzlzlizhen/springBoot | /src/main/java/lz/com/springBoot/chapter02/test04/Main.java | UTF-8 | 625 | 2.234375 | 2 | [] | no_license | /**
*
*/
package lz.com.springBoot.chapter02.test04;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @author lizhen_pc
*123
*/
public class Main {
/**
* 描述:
* 作者:李震
* 时间:2016年12月19日 下午6:13:39
* @param args
*/
public static void main(String[... | true |
16bd9905b66799a4586864354f16804effc127dd | Java | green-fox-academy/kalloaa | /week04/day3/src/sum/summerize.java | UTF-8 | 275 | 3.109375 | 3 | [] | no_license | package sum;
import java.util.ArrayList;
public class summerize {
public int summerize(ArrayList<Integer> myNumbers) {
int sum = 0;
for (int i = 0; i < myNumbers.size(); i++) {
sum += myNumbers.get(i);
}
return sum;
}
}
| true |
ae0517e87bc740bfdd560c0b56db154c8c93b9cd | Java | atlassian/hazelcast | /hazelcast/src/main/java/com/hazelcast/topic/impl/TopicService.java | UTF-8 | 7,123 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | true |
3bc78982850c98ae10634817dcec75676f85fdaf | Java | mrgrew/contest | /contest/src/main/java/com/drf/contest/web/ContestController.java | UTF-8 | 1,549 | 1.9375 | 2 | [] | no_license | /*
* Copyright 2012-2013 the original author or authors.
*
* 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 ap... | true |
bd11699280c49d46239e2eba66feb72a35957409 | Java | Ludo69/abb | /app/src/main/java/a/w/abb_mat/activity/creationdetendeur/CreerDetendeurPresenter.java | UTF-8 | 1,654 | 2.078125 | 2 | [] | no_license | package a.w.abb_mat.activity.creationdetendeur;
import a.w.abb_mat.api.ApiClient;
import a.w.abb_mat.api.ApiInterface;
import a.w.abb_mat.model.Bloc;
import a.w.abb_mat.model.Stab;
import androidx.annotation.NonNull;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class CreerDetende... | true |
2ee4a863e897347f76c4b81c930932ec955aa78f | Java | sepiroth887/KinectHomer | /libs/comfyJ/samples/MSOffice/src/ExcelIntegrationSample.java | UTF-8 | 9,912 | 2.125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-1.1",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2000-2009 TeamDev Ltd. All rights reserved.
* TeamDev PROPRIETARY and CONFIDENTIAL.
* Use is subject to license terms.
*/
import com.jniwrapper.Int32;
import com.jniwrapper.win32.automation.Automation;
import com.jniwrapper.win32.automation.IDispatch;
import com.jniwrapper.win32.automatio... | true |
df1a59545f26a6918a3322710560b274de281e9f | Java | dkranzl/DesignPatterns | /adapter/src/CSVToStringListPrinterAdapter.java | UTF-8 | 514 | 2.984375 | 3 | [] | no_license | import java.util.Arrays;
import java.util.List;
public class CSVToStringListPrinterAdapter implements CSVPrinter {
private StringListPrinter adaptee;
public CSVToStringListPrinterAdapter(StringListPrinter adaptee) {
this.adaptee = adaptee;
}
@Override
public void printEntries(String csv)... | true |
f648e6d911b4b9e262ca5a1e73a3a048c246b2b2 | Java | liuxizheng11/lib | /TestLib/rcdevicelib/src/main/java/com/mitac/ble/MitacActivityData.java | UTF-8 | 634 | 2.546875 | 3 | [] | no_license | package com.mitac.ble;
import java.util.Date;
public class MitacActivityData
{
public int mStep = 0;
public int mCalorie = 0;
public float mDistance = 0.0F;
public int mActivityTime = 0;
public Date mDate = null;
public MitacActivityData(int step, int calorie, int activityTime, float distance)
{
... | true |
380141abd375939e05bdcfb8469937d7e8691e97 | Java | MSochals/PAMO | /LAB3/app/src/main/java/com/example/bmicalculator/GraphActivity.java | UTF-8 | 1,172 | 2.3125 | 2 | [] | no_license | package com.example.bmicalculator;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.series.BarGraphSeries;
import com.jjoe64.graphview.series.DataPoint;
import com.jjoe64.graphview.series.LineGraphSeries;
import com.jjoe64.g... | true |
5a49da59c5046f3505477e2ad37520c46889cb06 | Java | genghaihua/user_click | /dmpproject_bak/src/cn/clickwise/liqi/mapreduce/app/ewa_analysis/EWAECServer.java | UTF-8 | 2,323 | 2.4375 | 2 | [] | no_license | package cn.clickwise.liqi.mapreduce.app.ewa_analysis;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class EWAECServer {
public EWAPredict ewa;
public static void main(String[] args) throws Exception {
EWAECServer ewa_se = new EWAECServer();
... | true |
fc1dcdce1c234b86b7e22036c5b5e0fb4ce2181f | Java | SergiiGrechukha/ModuleApp | /astream/src/main/java/com/loki/astream/stubs/SampleClass738.java | UTF-8 | 371 | 2.25 | 2 | [] | no_license | package com.loki.astream.stubs;import com.jenzz.pojobuilder.api.Builder;import com.jenzz.pojobuilder.api.Ignore;
@Builder public class SampleClass738 {
@Ignore private SampleClass739 sampleClass;
public SampleClass738(){
sampleClass = new SampleClass739();
}
public String getClassName() {... | true |
42957c37613e50848525f7699a60e81a600c6b7d | Java | mdherath/DerbyX | /src/main/java/DerbyApp.java | UTF-8 | 294 | 2.09375 | 2 | [] | no_license | import java.sql.SQLException;
/**
* Created by Jayz on 23/02/2017.
*/
public class DerbyApp {
public static void main(String[] args) throws SQLException, ClassNotFoundException, IllegalAccessException,
InstantiationException {
QuearyDB qdb = new QuearyDB();
}
}
| true |
af18cb502caa20d0337996dfca3e47d9436e1a64 | Java | mindgame73/CallAnalyzer | /src/main/java/Controller/UserInterfaceController.java | WINDOWS-1251 | 6,562 | 2.609375 | 3 | [] | no_license | package Controller;
import Model.*;
import View.UserInterface;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Paths;
import java.text.Simple... | true |
3b4159df74bbe0ac28cdc602bd90f39ad22a55c9 | Java | harshil1417/jpmSalesMessageProcessorWithRestEP | /src/main/java/com/harshil/salesnotificationprocessor/inmemorystorage/InMemoryStorage.java | UTF-8 | 1,584 | 2.9375 | 3 | [] | no_license | package com.harshil.salesnotificationprocessor.inmemorystorage;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;
import com.harshil.salesnotificationprocessor.exceptions.InvalidMessageException;
import com.harshil.salesnotificationprocessor.... | true |
aa494b5591f088eb372a0a04ae965f43484ebda8 | Java | zhanght86/cloudmanagerweb | /src/main/java/com/cloudking/cloudmanagerweb/entity/TemplateEntity.java | UTF-8 | 4,725 | 2.328125 | 2 | [] | no_license | /**
* Copyright(c) 2012 ShenZhen CloudKing Technology Co., Ltd
* All rights reserved.
* Created on Oct 15, 2012 2:17:56 PM
*/
package com.cloudking.cloudmanagerweb.entity;
import java.util.Date;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.... | true |
50b18a615e082682dde4b0db6d854408935b7907 | Java | UmlClassDigram/AssignLabProject | /AssigLabProject/src/java/DAO/QueueDAO.java | UTF-8 | 932 | 2.125 | 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 DAO;
import Interfaces.QueueInt;
import Pojo.Course;
import Pojo.Lab;
import Pojo.Trainee;
import Pojo.User;
impor... | true |
50c5de0bf461bb0955e7debc8e1175140f8d58db | Java | kwdfmzhu/springboot-demo | /springboot-swagger/src/main/java/com/kwdfmzhu/github/springbootswagger/api/TestController.java | UTF-8 | 981 | 1.992188 | 2 | [] | no_license | package com.kwdfmzhu.github.springbootswagger.api;
import com.kwdfmzhu.github.springbootswagger.beans.Answer;
import com.kwdfmzhu.github.springbootswagger.beans.TestDTO;
import com.kwdfmzhu.github.springbootswagger.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
impo... | true |
af2e44352cbf58df2732e9948c2b185cf3f1f504 | Java | wcedla/Weather | /app/src/main/java/com/wcedla/wcedlaweather/adapter/CityManageList.java | UTF-8 | 1,033 | 2.3125 | 2 | [] | no_license | package com.wcedla.wcedlaweather.adapter;
import com.wcedla.wcedlaweather.CityManage;
/*
* 城市管理listview的数据类型类
* */
public class CityManageList {
private String cityName;
private String weatherText;
private String temperatureText;
public CityManageList(String cityName,String weatherText,String tem... | true |
f0c088d1015c07669850897146e51e1cd389070d | Java | HelloHang/security | /security-demo/src/main/java/com/dan/dto/UserQueryCondition.java | UTF-8 | 474 | 2.1875 | 2 | [] | no_license | package com.dan.dto;
/**
* Created by dangao on 3/5/2019.
*/
public class UserQueryCondition
{
private String name;
private int age;
private int ageTo;
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public int getAge()
{
return age;
}
public v... | true |
ec0e7d1976b6ad6bffa143ee65bbdb7ea8da176d | Java | CheyanneC/Lesson6_2 | /src/LibraryInterface.java | UTF-8 | 2,116 | 3.40625 | 3 | [] | no_license | import hsa.*;
public class LibraryInterface
{
public static void main(String[] args)
{
Console c = new Console();
Patron p;
Book b1, b2, b3, b4, b5;
b1 = new Book("From Russia With Love", "Greg Hines");
b2 = new Book("Living Smart", "Rita Langill"... | true |
8a2e8914799dc6943afc0e3d32daa80a0f11c4ca | Java | muhd-ali/Processing | /particleSim/src/main/java/venom/Particle.java | UTF-8 | 7,218 | 2.703125 | 3 | [] | no_license | package venom;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import processing.core.PVector;
import venom.colorProvider.*;
import venom.contract.*;
import venom.drawer.*;
@Builder(toBuilder = true)
public class Particle implements LiveDrawable, Moving, Charged, Springed, Steerable, Gravitational ... | true |
1eb6d1dfa12656fd6bd71cf2715d1a6074b7e9d1 | Java | quangtd95/Photo-Boost | /app/src/main/java/com/quangtd/photoeditor/view/component/CustomCropBar.java | UTF-8 | 1,175 | 2.125 | 2 | [] | no_license | package com.quangtd.photoeditor.view.component;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import com.quangtd.photoeditor.R;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EViewGroup;
/**
* Created by HuynhSang... | true |
d8ef370556c59891f52939e14ed8ac2de69b7a0d | Java | sorra/sage-system-java | /src/main/java/sage/domain/service/NotifService.java | UTF-8 | 4,578 | 2.078125 | 2 | [] | no_license | package sage.domain.service;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
... | true |
3914f0b9c67afd1509d46aca8b119fc659d592be | Java | jatserias/jsst | /jsst-core/src/main/java/tagger/learning/ET_BIO_UNK.java | UTF-8 | 4,310 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package tagger.learning;
import java.util.Vector;
import tagger.data.SstTagSet;
import tagger.data.TrainingData;
/**
* extend ET_BIO with UNK labels
* probably is not a good dessign, the BIO and UNK sould be two classes
* @author jordiatserias
*
*/
public class ET_BIO_UNK extends ET_BIO {
/*
* treat UNK la... | true |
98ac9679dbac8fe7222d060834089d6e59cf31b7 | Java | samtingleff/jchronic | /src/main/java/com/mdimension/jchronic/repeaters/EnumRepeaterDayPortion.java | UTF-8 | 1,865 | 3.03125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.mdimension.jchronic.repeaters;
import com.mdimension.jchronic.utils.Range;
public class EnumRepeaterDayPortion extends RepeaterDayPortion<RepeaterDayPortion.DayPortion> {
private static final Range AM_RANGE = new Range(0, 12 * 60 * 60); // 12am-12pm
private static final Range PM_RANGE = new Range(12 *... | true |
72013c6fb7a0bbac9087638fedb47d3510a0005a | Java | TurnoffyourTV/springboot_bigdata | /src/main/java/com/example/springboot_bigdata/service/UserService.java | UTF-8 | 210 | 1.703125 | 2 | [] | no_license | package com.example.springboot_bigdata.service;
import java.util.Map;
/**
* @author TurnoffyourTV
* @create 2021-08-16-21:05
*/
public interface UserService {
int save(Map<String,String> userInfo);
}
| true |
147f51f48e1099c29c90ca85e2c75276d45cdcb9 | Java | KevinMallon/Scavenger_Hunt | /src/com/example/scavengerhunt/Players.java | UTF-8 | 685 | 2.40625 | 2 | [] | no_license | package com.example.scavengerhunt;
public class Players {
private String Userid;
private String Username;
private boolean selected;
public Players(String username) {
this.Username = username;
selected = false;
}
public String getUserid() {
return Userid;
}
public v... | true |
3e00ed93897adb5f2db484ab192ea599835163f8 | Java | dorindan/quick-order | /quick-order-backend/src/main/java/ro/quickorder/backend/converter/MenuItemCommandConverter.java | UTF-8 | 2,109 | 2.421875 | 2 | [] | no_license | package ro.quickorder.backend.converter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import ro.quickorder.backend.model.MenuItemCommand;
import ro.quickorder.backend.model.dto.MenuItemCommandDto;
import java.util.List;
import java.util.stream.Collect... | true |
718b52d98c75fd3594ff10163f153a3149768e11 | Java | MrabEzreb/BestLineApproximation | /com/ezreb/math/SlopeIntercept.java | UTF-8 | 1,986 | 3.109375 | 3 | [] | no_license | package com.ezreb.math;
public class SlopeIntercept implements MathFunction {
public SlopeIntercept() {
}
public String calculate(double x1, double y1, double x2, double y2) {
//FileInputStream values = new FileInputStream("/BestLineApproximation/com/ezreb/math/slopeInt.txt");
//Scanner reader = new Scanner(val... | true |
ae7b1fe2c3ce7da08fa3bf1d69818350a7b0db87 | Java | D-a-r-e-k/Code-Smells-Detection | /Preparation/processed-dataset/data-class_4_305/22.java | UTF-8 | 257 | 2.578125 | 3 | [] | no_license | // isInvalidLiteral(int): boolean
// returns true if the given character is
// a valid nameChar with respect to the version of
// XML understood by this scanner.
protected boolean isValidNameChar(int value) {
return (XMLChar.isName(value));
}
| true |
540b1af19163982eebc01922348bb6e8b46b34a7 | Java | dianagmunteanu/pao-lab | /laborator7-10/src/main/java/library/tool/DataExtractor.java | UTF-8 | 1,066 | 2.8125 | 3 | [] | no_license | package library.tool;
import library.domain.entity.User;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashSet;
import java.util.Set;
public class DataExtractor {
public static User extractSingleUserFrom(ResultSet rs) throws SQLException {
if (rs.next()) {
User us... | true |
3ea2ab6206ac306246a0dc559f4c530c8954af3f | Java | halevin/aquaqa0 | /src/main/java/alma/obops/aqua/qa0/controllers/CoverageRestController.java | UTF-8 | 2,739 | 1.695313 | 2 | [] | no_license | /*******************************************************************************
* ALMA - Atacama Large Millimeter Array
* Copyright (c) ESO - European Southern Observatory, 2018
* (in the framework of the ALMA collaboration).
* All rights reserved.
*
* This library is free software; you can redistribute it and/o... | true |
a0dc336a43a1d0ba87a2d907b91404e9ecad98dc | Java | rkiddy/Orange | /Sources/com/webobjects/directtoweb/ConfirmPageInterface.java | UTF-8 | 1,213 | 2.671875 | 3 | [] | no_license | package com.webobjects.directtoweb;
/**
* This interface is implemented by pages returned by the D2W method confirmPageForEntityNamed. Use methods defined in this interface to initialize a newly created confirm page.
*/
public interface ConfirmPageInterface{
/**
* Sets the receiver's cancel delegate. When th... | true |
3fa0372d877013377c94869b8671341496c72601 | Java | sufadi/decompile-hw | /decompile/app/Mms/src/main/java/com/google/android/gms/common/internal/zzk.java | UTF-8 | 7,433 | 1.960938 | 2 | [] | no_license | package com.google.android.gms.common.internal;
import android.os.Bundle;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleAp... | true |
7db18895cd406b535a4020a14002c5de8a4b6482 | Java | pu6istiy/PropertiesChecker | /src/main/java/com/xalmiento/desknet/checkstyle/checker/CheckerFactory.java | UTF-8 | 1,180 | 2.109375 | 2 | [] | no_license | package com.xalmiento.desknet.checkstyle.checker;
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
import com.puppycrawl.tools.checkstyle.api.Configuration;
/**
* Revision Info : $Author$ $Date$
* Author : a.laguta
* Created : 17.12.2014 11:26
*
* @author a.laguta
*/
public class CheckerFactory {... | true |
5d96f78f0a0ad7af54119b6505a2936c056d49e6 | Java | aarora3/studentOrientation | /src/studentOrientation/enums/BuyBooksChoice.java | UTF-8 | 164 | 1.671875 | 2 | [] | no_license | package studentOrientation.enums;
/**
*
* @author Ankush & Purva
* enum to buy books choice
*
*/
public enum BuyBooksChoice {
UNIVSTORE,
MANDOBOOKS
};
| true |
c3ef73bbe959adbf2b781584643a1c6a57195016 | Java | Dusay2697/fbshop_Article-5 | /site/src/main/java/com/spring/fbshop/admin/product/controller/ProductController.java | UTF-8 | 1,797 | 2.078125 | 2 | [] | no_license | package com.spring.fbshop.admin.product.controller;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
impo... | true |
ee4cc40282cc36461b85987f9d5e05bcf8edb549 | Java | RaaziaT/DaggerExample | /app/src/main/java/com/raaziat/daggerdemo/login/LoginActivity.java | UTF-8 | 2,231 | 2.421875 | 2 | [] | no_license | package com.raaziat.daggerdemo.login;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.raaziat.daggerdemo.R;... | true |
e37fe3b78a8bd5db1087a66f2fc0b90810c8a003 | Java | RedElect/ses-server | /ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/vo/factory/FactoryPage.java | UTF-8 | 670 | 1.929688 | 2 | [
"MIT"
] | permissive | package com.redescooter.ses.web.ros.vo.factory;
import com.redescooter.ses.api.common.vo.base.PageEnter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
@ApiModel(value = "代工厂修改", description = "代工厂修改")
@Data //生成getter,setter等函数
@AllArgsConstructor //生成全参数构造函数... | true |
4014426c03ab9c9b79e36493a4106aab4f7fa78b | Java | gebbz/sippi | /controlador/planificacion/GestorPlanificacionDatosGenerales.java | UTF-8 | 3,212 | 2.140625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controlador.planificacion;
import java.util.Date;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelo.Planificacion;
import modelo.TareaPlanificacion;
impor... | true |
66e87a8fce846baff2db6e8e7b55aaaaf95c7515 | Java | chenjienan/java-leetcode | /dfs/AllPermutationsOfSubsets.java | UTF-8 | 703 | 3.1875 | 3 | [] | no_license | package dfs;
import java.util.*;
public class AllPermutationsOfSubsets {
public List<String> allPermutationsOfSubsets(String set) {
List<String> res = new ArrayList<>();
if (set == null) {
return res;
}
char[] charArr = set.toCharArray();
dfs(charArr, 0, res);
return res;
}
... | true |
dfe29bf1d6b00cd26dd3657946743810fecfeda3 | Java | sorabh2008/pay-calculator | /src/main/java/com/calc/utils/ValidationUtils.java | UTF-8 | 674 | 2.671875 | 3 | [] | no_license | package com.calc.utils;
import com.calc.constants.CalcConstants;
import java.math.BigDecimal;
public class ValidationUtils {
public static boolean isPositive(BigDecimal toCheck) {
return (toCheck.compareTo(BigDecimal.ZERO) > 0);
}
public static boolean isEmpty(String toCheck) {
return t... | true |