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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
15ab1bf64d0f98a88b09ee56fbf835409e6bea3b | Java | Kutty39/WebApps | /SpringMvc/src/main/java/com/blbz/springmvc/controller/controller.java | UTF-8 | 4,434 | 2.359375 | 2 | [] | no_license | package com.blbz.springmvc.controller;
import com.blbz.springmvc.model.LoginDetail;
import com.blbz.springmvc.model.ProfileDetail;
import com.blbz.springmvc.model.RegDetail;
import com.blbz.springmvc.model.UserSession;
import com.blbz.springmvc.service.UserService;
import org.springframework.beans.factory.annotation.A... | true |
131d4e3c878102a05585962ea60bdfb53376480e | Java | williamsSoftwareLimited/MRSLMaintenanceV1.0 | /app/src/main/java/org/codebehind/mrslmaintenance/ReportNewActivity.java | UTF-8 | 2,359 | 2.171875 | 2 | [] | no_license | package org.codebehind.mrslmaintenance;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import org.codebehind.mrslmaintenance.Abstract.ActionBarActivityBase;
import org.codebehind.mrslmaintenance.Entities... | true |
bdaec20d8ea1190fa028a5827c1f46fc8748da25 | Java | Realovka/Lesson_7_task_1 | /src/com/company/Ground.java | UTF-8 | 971 | 3.375 | 3 | [] | no_license | package com.company;
public class Ground extends Transport {
private int numberOfWheels;
private int fuelConsumption;
public Ground(int power, int maxSpeed, int weight, String model, int numberOfWheels, int fuelConsumption) {
super(power, maxSpeed, weight, model);
this.numberOfWheels = n... | true |
c5a92021469abd4ac7d4bf0b4702c224a2cf26d0 | Java | cckmit/erp-4 | /Maven_Accounting_Libs/mavenAccCommonLibs/src/main/java/com/krawler/accounting/integration/common/IntegrationDAO.java | UTF-8 | 1,233 | 1.757813 | 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.krawler.accounting.integration.common;
import com.krawler.common.service.ServiceException;
import com.krawler.spring.commo... | true |
c651c1a02faaf43b959367f37cae6e227bdaa8be | Java | zzk2020/jianzixing-wechat | /src/main/java/com/jianzixing/webapp/template/JZXUrl.java | UTF-8 | 3,764 | 2.125 | 2 | [] | no_license | package com.jianzixing.webapp.template;
import org.mimosaframework.core.utils.RequestUtils;
import freemarker.ext.servlet.HttpRequestHashModel;
import freemarker.template.SimpleScalar;
import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;
import org.apache.commons.lang.St... | true |
82c56a83fc810a9b301f35887955aeae1cfb620a | Java | Spartak3/Final-OOP-Project | /fExam/src/service/ConeService.java | UTF-8 | 1,550 | 3.046875 | 3 | [] | no_license | package service;
import model.Cone;
import model.Cube;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class ConeService {
public static List<Cone> createConesFromFile(L... | true |
4e47f2aad8a82b5f37e123903f209967558ebb9a | Java | dkbalachandar/grizzly-rest-custom-injection | /src/main/java/com/CustomerService.java | UTF-8 | 415 | 2.671875 | 3 | [] | no_license | package com;
public class CustomerService {
public Customer getCustomerById(String id) {
//This is a sample code to know how can we implement the custom injection so I am returning some default value
Customer customer = new Customer();
customer.setId(id);
customer.setFirs... | true |
c0aefb7a8defb91cccc8cc098d80c032b2a546e9 | Java | Dimitvp/Java-Fundamentals | /JavaSyntaxHomework/src/_10_ExtractWords.java | UTF-8 | 603 | 3.375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class _10_ExtractWords {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String text = input.nextLine();
Pattern pattern = Pattern.c... | true |
fe6526a85d9ba856a6c66d4da2fd7111b0461280 | Java | hongquang1799/OOP-111557 | /src/data/Agreement.java | UTF-8 | 238 | 2.09375 | 2 | [] | no_license | package data;
public class Agreement extends Entity {
public Agreement() {
}
public Agreement(String id, String name, String description) {
super(id, name, description);
}
public Agreement(Agreement copy) {
super(copy);
}
}
| true |
64464a4e1396cf84f3b110b89a35b4f0fd416914 | Java | Sushmithasmurthy/fun_with_algorithms | /src/test/java/com/ss/leetcode/easy/BinarySearchTest.java | UTF-8 | 1,588 | 2.859375 | 3 | [] | no_license | package com.ss.leetcode.easy;
import org.testng.annotations.Test;
public class BinarySearchTest {
BinarySearch bs;
public BinarySearchTest(){
bs = new BinarySearch();
}
@Test
public void testSingleNumberSameAsTarget(){
assert bs.search(new int[]{1}, 1) == 0;
}
@Test
p... | true |
cfa65ea30adb902882aa25eba4c7d5aba94c9808 | Java | mostafa0232/2018 | /src/org/usfirst/frc/team6417/robot/commands/LiftRobotUpTeleoperated.java | UTF-8 | 1,081 | 2.3125 | 2 | [] | no_license | package org.usfirst.frc.team6417.robot.commands;
import org.usfirst.frc.team6417.robot.OI;
import org.usfirst.frc.team6417.robot.Robot;
import org.usfirst.frc.team6417.robot.RobotMap;
import edu.wpi.first.wpilibj.command.Command;
public final class LiftRobotUpTeleoperated extends Command {
int interval = 1... | true |
695895f5a70ff3ac22726db5936a202449b5dbd6 | Java | adiffpirate/estudos | /qa/testes-web-irts01/src/main/java/pages/HomePage.java | UTF-8 | 2,272 | 2.5 | 2 | [
"MIT"
] | permissive | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.ArrayList;
import java.util.List;
public class HomePage {
List<WebElement> listaProdutos = new ArrayList();
private WebDriver driver;
private By produtos... | true |
051fed0735d29b6ad425936b3fa00fc3459d2388 | Java | IgorKonovalovAleks/Lotopo | /app/src/main/java/com/igorvenv/lotopo/GameField.java | UTF-8 | 4,810 | 2.3125 | 2 | [] | no_license | package com.igorvenv.lotopo;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import java.util.Random;
public clas... | true |
b484cd41ff85bc61e54b0e1d3f9c454748051404 | Java | alldatacenter/alldata | /olap/kylin/src/common-server/src/main/java/org/apache/kylin/rest/advice/BaseExceptionHandler.java | UTF-8 | 2,612 | 1.945313 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | 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 |
efb2482a110b91a72048870cf9762d8877a95a65 | Java | Ligerx/SSUI_Final | /app/src/main/java/com/example/admin/ssuifinalproject/BeatData.java | UTF-8 | 2,516 | 2.921875 | 3 | [] | no_license | package com.example.admin.ssuifinalproject;
import android.util.Log;
import java.util.ArrayList;
import java.util.Collections;
public class BeatData {
private final String TAG = "BeatData";
private final ArrayList<Double> beatTiming;
private final ArrayList<Double> beatIntervals;
// FIXME can I nud... | true |
5b785265ca1aa78f4633df3fb16624ce836e18b4 | Java | yummykang/spring_dubbo | /provider/src/main/java/me/yummykang/SystemDetails.java | UTF-8 | 1,287 | 2.84375 | 3 | [] | no_license | package me.yummykang;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
/**
* desc the file.
*
* @author demon
* @Date 2016/11/28 15:29
*/
public class SystemDetails {
public static void printDetails() {
timeZone();
currentTime();
... | true |
27b9485c5696ec59a02bc2fbd3947f98d277e143 | Java | karthickRajendran03/TravelOnline | /KarthickTravelOnline/src/main/java/com/travel/online/model/TravelSummaryResponse.java | UTF-8 | 1,927 | 2.15625 | 2 | [] | no_license | package com.travel.online.model;
import java.sql.Timestamp;
/*@Entity
@Table(name = "TravelSummary")*/
public class TravelSummaryResponse {
/*@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)*/
private Long id;
//@Column(name="USER_ID")
private String userId;
//@Column(name="FROM_PLACE")... | true |
4c2237fcd490063a0cea9a3ac7c820291d055e77 | Java | shwetakanchan89/rysecamp_android_shweta | /app/src/main/java/com/rysecamp/api/RetrofitConfig.java | UTF-8 | 2,546 | 2.109375 | 2 | [] | no_license | package com.rysecamp.api;
import com.rysecamp.utils.RxErrorHandlingCallAdapterFactory;
import com.rysecamp.BuildConfig;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by sahil on 10/10/18.
*/... | true |
4cf6a036f1b333330f8913a74937ff9c3101e92a | Java | MobyRx/MobyRx-web | /src/main/java/com/MobyRx/java/service/wso/GenderWSO.java | UTF-8 | 234 | 1.679688 | 2 | [] | no_license | package com.MobyRx.java.service.wso;
/**
* Created by IntelliJ IDEA.
* User: ashqures
* Date: 9/6/16
* Time: 5:50 PM
* To change this template use File | Settings | File Templates.
*/
public enum GenderWSO {
MALE, FEMALE
}
| true |
b4af5a285d76fe49f4a000d3e8d14b7f7bdf9303 | Java | miseongshin/DRENGINEER_SPRING_PROJECT | /spring_web_step3/src/test/java/springtest/spring_web_step3/BookServiceTest.java | UTF-8 | 859 | 2.234375 | 2 | [
"MIT"
] | permissive | package springtest.spring_web_step3;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
@RunWith(SpringRunner.class)
public clas... | true |
5c17e08dfad542851669edf3ea28ef7b960dbaa3 | Java | Nandakumar-Kadavannoore/Dynamic-Programming | /entringerNumber.java | UTF-8 | 370 | 3.28125 | 3 | [] | no_license | class MainClass {
// Return Entringer Number E(n, k)
public static int Entringer(int n, int k)
{
// Base Case
if (n == 0 && k == 0)
return 1;
// Base Case
if (k == 0)
return 0;
// Recursive step
return Entringer(n, k - 1) +... | true |
625783c6e4f0142e85363fb4f1c5ea688049cfc2 | Java | 4Lisandr/LiSQL | /src/main/java/ua/com/juja/lisql/view/View.java | UTF-8 | 257 | 1.585938 | 2 | [] | no_license | package ua.com.juja.lisql.view;
import java.util.List;
/*
* Lisandr 2017
* */
public interface View {
String read();
void write(String message);
void write(String... messages);
void write(List<List<?>> table);
boolean confirm();
}
| true |
9e915aa4244243e6e0979eec4da8f3b3850b2329 | Java | 13048694426/familiy-cook-menu | /src/com/example/familiycookmenu/base/BasePage.java | UTF-8 | 1,149 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.familiycookmenu.base;
import java.io.Serializable;
import com.example.familiycookmenu.R;
import android.app.Activity;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;
public class BasePage imp... | true |
9bd9d50cbfb74277ee5be03c1c3168f27dc37c20 | Java | IlyaHalsky/dkvs | /src/replica/Replica.java | UTF-8 | 7,299 | 2.046875 | 2 | [] | no_license | package replica;
import utility.Entry;
import java.net.InetSocketAddress;
import java.util.*;
/**
* Created by Ilya239 on 05.09.2016.
*/
public class Replica {
private InetSocketAddress[] configuration;
private int numberOfReplicas;
private int replicaNumber;
private int viewNumber;
private Re... | true |
7276c074cfced3e59ec31af37643f8c92d22ea6e | Java | sselin-co/unicorn | /app/src/main/java/edu/tjrac/swant/douyin/widget/Selectedable.java | UTF-8 | 242 | 1.835938 | 2 | [] | no_license | package edu.tjrac.swant.douyin.widget;
/**
* Created by wpc on 2018/3/2 0002.
*/
public interface Selectedable {
boolean isSelected();
void select();
void unSelected();
void selectAnimate();
void unselectAnimate();
}
| true |
eb9c2c7f296693d5c65a22e876c94f139f3dd899 | Java | yangc22/UW_CSE373 | /HW3_TextAssociator/src/TextAssociator.java | UTF-8 | 6,670 | 3.625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Set;
/* Chaoyi Yang
* 02/10/17
* CSE373
* TA: Raquel Van Hofwegen
*
* TextAssociator represents a collection of associations between words.
* See write-up for implementation details and hints
*
*/
public class TextAssociator {
private WordI... | true |
8864e4d7cc9f1b4a7ff1ac53aa5d55877f90f02a | Java | virgil-andreies/bookstore-backend | /src/main/java/com/bookstore/resource/ShippingResource.java | UTF-8 | 2,326 | 2.296875 | 2 | [] | no_license | package com.bookstore.resource;
import java.security.Principal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import ... | true |
a3230864580636514209978b4164239b499ec640 | Java | orthocresol/ManageYourPasswords | /app/src/main/java/com/manageyourpassword/SettingsActivitySQL.java | UTF-8 | 3,413 | 1.9375 | 2 | [] | no_license | package com.manageyourpassword;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SwitchCompat;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import com... | true |
d61f069415e3ca67ae3b19ffa0dbd6226163c1a8 | Java | RahulRanjan-TPL/Mario | /package/gamemaster/src/com/lemi/controller/lemigameassistance/config/LotteryReturnValues.java | UTF-8 | 381 | 1.742188 | 2 | [] | no_license | package com.lemi.controller.lemigameassistance.config;
/**
* @author zhengjinguang@letv.com (shining).
*/
public class LotteryReturnValues {
public static final int LOTTERY_NOT_START = -12;
public static final int LOTTERY_STOP = -13;
public static final int LOTTERY_OVER_LIMIT = -14;
public static final int L... | true |
6bd7896244cff639b3a63c7b121b77e139069724 | Java | zetingzhu/AppFrame | /app/src/main/java/frame/zzt/com/appframe/ui/login/LoginView.java | UTF-8 | 224 | 1.835938 | 2 | [] | no_license | package frame.zzt.com.appframe.ui.login;
import frame.zzt.com.appframe.mvp.mvpbase.BaseView;
public interface LoginView extends BaseView {
void onLoginSucc();
String getUserName();
String getPassword();
}
| true |
1e6c43cfe17680169c14c17e03c43dec15c2175d | Java | zhaolan2099/ccmanage2 | /src/main/java/com/cc/manage/utils/DateUtil.java | UTF-8 | 24,413 | 2.15625 | 2 | [] | no_license | package com.cc.manage.utils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Pattern;
public class DateUtil {
public fi... | true |
f6c33deb21227fdb6f13d2aa08605c1823eb231e | Java | yuexing89757/personal_account | /personal_account/src/com/zzy/biz/ISendMail.java | UTF-8 | 923 | 2.078125 | 2 | [] | no_license | /**
* Project name:ads-mail
*
* Copyright Pzoomtech.com 2011, All Rights Reserved.
*
*/
package com.zzy.biz;
import org.apache.commons.mail.EmailException;
/**
* @name ISendMail
*
* @description CLASS_DESCRIPTION
*
* MORE_INFORMATION
*
* @author lijing
*
* @since 2011-2-17
*
* ... | true |
f8a62619f96a207f57ac5b836847c9a6b1823b16 | Java | google/j2objc | /jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/MessagePatternUtilTest.java | UTF-8 | 25,031 | 2.140625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"APSL-1.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-red-hat-attribution",
"ICU",
"MIT",... | permissive | /* GENERATED SOURCE. DO NOT MODIFY. */
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
*******************************************************************************
* Copyright (C) 2011-2012, International Business Machines
* Corporation a... | true |
73309383a8c7ae59d658fcc8e830b574753777fd | Java | r0g3r5/AdministracionVistasApringAngular | /CODIGO/VistaAdminAppBackEnd/VistaAdminRepositoryModule/src/main/java/com/myapps/vista_admin/repository/MenuRepository.java | UTF-8 | 610 | 1.898438 | 2 | [] | no_license | package com.myapps.vista_admin.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.myapps.vista_admin... | true |
262a06e2b58c63152a804e82413befac7848eb73 | Java | HaifaFeddaoui/CRM-JEE | /ProjetCRM/ProjetCRM/ProjetCRM-ejb/src/main/java/model/Competition.java | UTF-8 | 2,755 | 2.1875 | 2 | [] | no_license | package Entities;
import java.io.Serializable;
import javax.persistence.*;
import java.util.List;
/**
* The persistent class for the Competitions database table.
*
*/
@Entity
@Table(name="Competitions")
@NamedQuery(name="Competition.findAll", query="SELECT c FROM Competition c")
public class Compet... | true |
c50faf82a2065656b990dfc6a017c7eae7e2b49c | Java | luckyXingYan/MVPDemo | /app/src/main/java/com/example/mvpdemo/fragment/ProductPageFragment.java | UTF-8 | 1,271 | 2.171875 | 2 | [] | no_license | package com.example.mvpdemo.fragment;
import android.util.Log;
import android.view.View;
import com.example.mvpdemo.R;
import com.example.mvpdemo.base.mvp.BaseFragment;
import com.example.mvpdemo.bean.ProductDataBean;
import com.example.mvpdemo.iview.IProductPageView;
import com.example.mvpdemo.presenter.ProductPageP... | true |
88c89a4afa2a684a9ee81dd9c8e054bb81b1b7b5 | Java | 1424234500/walker | /walker-core/src/main/java/com/walker/core/encode/RSAUtil.java | UTF-8 | 4,098 | 2.9375 | 3 | [] | no_license | package com.walker.core.encode;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.slf4j.LoggerFactory;
import javax.crypto.Cipher;
import java.security.*;
/**
* RSA 工具类。提供加密,解密,生成密钥对等方法。
*
* <dependency>
* <groupId>org.bouncycastle</groupId>
* <artifactId>bcpkix-jdk15on</artifac... | true |
291b0c6155055a79abf54acbaa467a304fbe287b | Java | ArturoCercadillo/uam | /src/main/java/es/hazerta/uam/beans/Asignatura.java | UTF-8 | 828 | 2.515625 | 3 | [] | no_license | package es.hazerta.uam.beans;
public class Asignatura {
private String descripcion;
private String profesor;
private int id;
private double media;
public Asignatura(String descripcion, String profesor, int id, double media) {
super();
this.descripcion = descripcion;
this.profesor = profesor;
this.id = id... | true |
a8266536a9511973e75f2c9292b22d259fd0454e | Java | 18482138228/Heima20200430_2 | /day3/src/Demo2/ForTest4.java | UTF-8 | 376 | 3.1875 | 3 | [] | no_license | package Demo2;
public class ForTest4 {
public static void main(String[] args) {
int count = 0;
for(int x=1;x<1000;x++){
int ge = x%10;
int shi = x/10%10;
int bai = x/100%10;
if(ge*ge*ge+shi*shi*shi+bai*bai*bai==x){
count++;
... | true |
e433b24aac5f0c891319bccde7dabf97d2e6f77c | Java | syanima/TCP-conversation | /TCPChitChat/src/CommunicatingServer.java | UTF-8 | 1,170 | 3.421875 | 3 | [] | no_license | import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class CommunicatingServer {
public static void main(String[] args) throws Exception {
String receiveMessage, sendMessage;
ServerSocket serverSocket = new ServerSocket(6789);
System.out.println("Server ready for ... | true |
ae6d645b98cc33a258a4942157c2cc7a2d76183f | Java | Sampathkonka/UserAdminServices | /src/main/java/com/okta/UserAdminServices/controller/AdminServiceController.java | UTF-8 | 2,020 | 2.046875 | 2 | [] | no_license | package com.okta.UserAdminServices.controller;
import java.io.IOException;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMa... | true |
ee24566419f7c7a3d575aede5f861f3bc4bd367e | Java | VCOUTURIER-MADNOT/JavaProjet | /src/java/JavaRMI/Classes/Boutique.java | UTF-8 | 2,425 | 2.640625 | 3 | [] | no_license | package JavaRMI.Classes;
import JavaRMI.Gestionnaires.Gestionnaire;
import java.io.Serializable;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Objects;
public class Boutique implements Serializable{
private static final long serialVersionUID = 1... | true |
f04666221b497289d15192fdd89259bf8a55ae9a | Java | 12711/Exam-12711-20161229-1 | /src/main/java/com/lsm/App.java | UTF-8 | 1,168 | 2.71875 | 3 | [] | no_license | package com.lsm;
import java.util.Arrays;
import java.util.Scanner;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.lsm.dto.Film;
import com.lsm.service.FilmService;
/**
* Hello world!
*
*/
public class App {
public static void main(String[] args) {
Clas... | true |
19543bf3cb22d2b2dbbc92cf1a095100dd82c078 | Java | zbtmaker/LeetCode | /test/dp/StoneGameVII1690Test.java | UTF-8 | 372 | 2.203125 | 2 | [] | no_license | package dp;
import junit.framework.TestCase;
import org.junit.Assert;
/**
* @author Baitao Zou
* date 2020/12/25
*/
public class StoneGameVII1690Test extends TestCase {
private StoneGameVII1690 game = new StoneGameVII1690();
public void test1() {
int result = game.stoneGameVII(new int[]{5, 3, 1, ... | true |
c5946d888103d8e707b7c12d38f06311a497c564 | Java | VicenTYC/LabSafety | /src/main/java/com/ssm/pojo/Question.java | UTF-8 | 1,388 | 1.921875 | 2 | [] | no_license | package com.ssm.pojo;
import org.springframework.stereotype.Component;
@Component
public class Question {
int question_id;
String question_content;
String question_item;
String question_answer;
int question_type;
int bank_id;
String question_analysis;
public String getQuestion_analys... | true |
2b32750e8ec8795c73c0d618499818f3dd50da0b | Java | willenfoo/headfirst | /src/com/strategy/Cat.java | UTF-8 | 754 | 3.578125 | 4 | [] | no_license | package com.strategy;
public class Cat implements Comparable {
public Cat(Integer age) {
super();
this.age = age;
}
private Integer age;
private Comparator comparator = new CatAgeComparator();
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = a... | true |
8eb6f543f03d21e337c84ca4724eaf4134f2373f | Java | eevans/sstable-util | /metadata-json/src/main/java/org/wikimedia/cassandra/SSTableMetadataJson.java | UTF-8 | 1,157 | 2.53125 | 3 | [] | no_license | package org.wikimedia.cassandra;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
public class SSTableMetadataJson {
private static ObjectMapper mapp... | true |
ef0f5eb3647fb28dfb1973f4c3b3a0f5eaeff125 | Java | Partner-CN/demo4logback | /src/main/java/cn/partner/joe/demo/logback/HelloWorld.java | UTF-8 | 494 | 2.28125 | 2 | [] | no_license | package cn.partner.joe.demo.logback;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class HelloWorld {
public static void main(String[] args) {
new Thread(new Runnable() {
@Override
public void run() {
for (;;) {
log.info("why are you so busy ?aaasdfas");
try {
//TODO You ... | true |
a87a74877982e3d175a9201f18790da2e21fd164 | Java | marianblaj/angular | /fullstack-curs13-course-app/course-api-client/src/test/java/ro/fasttrackit/curs13/course/client/CourseApiClientIT.java | UTF-8 | 433 | 2 | 2 | [] | no_license | package ro.fasttrackit.curs13.course.client;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class CourseApiClientIT {
private CourseApiClient client;
@BeforeEach
void setup() {
this.client = new CourseApiClient("http://localhost:8001");
}
@Test
void addSt... | true |
19cfa33280bfe5c9fa29b4436dce3d66b32c5cda | Java | TeemoJUN/Rebuild-Java | /offer/Solution.java | WINDOWS-1252 | 636 | 3.078125 | 3 | [] | no_license | package test;
import java.util.Arrays;
//ȫ
public class Solution {
static int k=0;
public static void fullSort(int[] array,int lo,int hi){
if(lo==hi){
System.out.println(Arrays.toString(array));
k++;
}
else{
for(int i=lo;i<=hi;i++){
swap(array,i,lo);
fullSort(array,lo+1,h... | true |
3d61e7b46633f93b15339b500ca3c6e06c1c486a | Java | zurl/OJ | /src/leetcode/p405.java | UTF-8 | 697 | 3.28125 | 3 | [] | no_license | package leetcode;
public class p405 {
public String toHex(int num) {
if( num == 0) return "0";
StringBuilder sb = new StringBuilder();
long val = num;
if( val < 0 ) val = Integer.MAX_VALUE + val + 0x80000001L;
while(val > 0){
if( val % 16 >= 10){
... | true |
867f06a8aea83f2a630a695bc6d97784fd3c3adf | Java | Shikharini-Basu/BoardProject2020 | /polyProg.java | UTF-8 | 616 | 3 | 3 | [] | no_license | public class polyProg
{ int i,j;
void polygon(int n, char ch)
{ for(int i=1;i<=n;i++)
{ for(int j=1;j<=n;j++)
{ System.out.print(ch+" ");
}
System.out.println();
}
}
void polygon(int x, int y)
{ for(int i=1;i<=x;i++)
{ for(int j=1;j<=y;j++)... | true |
3e73993d8f38406d0c7bf186c6c55c076a913017 | Java | fengzihub/Financial | /core/src/main/java/cn/fengzihub/p2p/base/mapper/LogininfoMapper.java | UTF-8 | 655 | 2.015625 | 2 | [] | no_license | package cn.fengzihub.p2p.base.mapper;
import cn.fengzihub.p2p.base.domain.Logininfo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface LogininfoMapper {
//登录用户只需要添加方法,删除...等等都不需要
int insert(Logininfo record);
int selectCountByUsername(String usern... | true |
a5c935b3f72992ce6d63fd9c8516cfb939f5d770 | Java | GDBMedia/testApiAndroid | /app/src/main/java/com/example/guest/apitest/Church.java | UTF-8 | 536 | 2.6875 | 3 | [] | no_license | package com.example.guest.apitest;
/**
* Created by Guest on 6/29/16.
*/
public class Church {
private String mName;
private double mRating;
private String mVicinity;
public Church(String name, double rating, String vicinity){
this.mName = name;
this.mRating = rating;
this.m... | true |
fca529036e02ce3a614eee309cbdc0541f5dfa81 | Java | tasiomendez/middleware-akka | /src/main/java/it/polimi/middleware/akka/messages/storage/GetPartitionBackupResponseMessage.java | UTF-8 | 468 | 2 | 2 | [] | no_license | package it.polimi.middleware.akka.messages.storage;
import java.io.Serializable;
import java.util.Map;
public class GetPartitionBackupResponseMessage implements Serializable {
private static final long serialVersionUID = 1L;
private final Map<String, String> backup;
public GetPartitionBackupResponseMes... | true |
966c66e73d05f4588c5d0fc4acb4a37a374e033f | Java | encinas008/pokar-game | /src/com/company/ColorScale.java | UTF-8 | 842 | 3.296875 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
public class ColorScale implements CheckDeckOfCard {
private static final int DIFFERENCE_OF_ONE = 1;
private static final int INDEX_FIRST_ELEMENT = 0;
@Override
public List<Card> execute(List<Card> c... | true |
233aeaf55ad0b0446cd48d3815ef967391d9767e | Java | sachinprajapati8604/DSA-Newton-School- | /Max_subArray_Kadane.java | UTF-8 | 1,332 | 3.609375 | 4 | [] | no_license | package com.company;
import java.util.Scanner;
public class Max_subArray_Kadane {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int arr[] = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = sc.nextInt();
}
... | true |
46645f3d6fef4ae21f8d1dac3fc302942be434e0 | Java | AayeshaFirdoz/Cisco_Training | /Demo1/src/test/java/test/NewTest.java | UTF-8 | 461 | 2.015625 | 2 | [] | no_license | package test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class NewTest {
WebDriver driver;
String url ="https://www.google.com/";
@Test
public void f() {
System.setProperty("webdriver.chrome.driver","C:\\Users\\aayeshafirdoz... | true |
a71fd1b6d9725c838e60937dbaeae687add2dfa1 | Java | rockie1004/SpringHotels | /src/main/java/dmacc/beans/Hotel.java | UTF-8 | 1,338 | 2.671875 | 3 | [] | no_license | package dmacc.beans;
import javax.persistence.Id;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import org.springframework.beans.factory.annotation.Autowired;
@Entity
public class Hotel {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
pri... | true |
2c787586bb68a28de12b69a80af1ecca9329365a | Java | u-kou/GAO | /FR/src/ndn/message/Interest.java | UTF-8 | 318 | 2.09375 | 2 | [] | no_license | package ndn.message;
/**
* NDN における Interest メッセージ
* @author taku
*
*/
public class Interest extends NDNMessage {
public Interest(String name) {
super(name, MessageType.INTEREST);
}
public Interest(String name, boolean cacheFlag) {
super(name, MessageType.INTEREST, cacheFlag);
}
}
| true |
46af0380949187db6ef6b2adaa7e3f78182c3905 | Java | jeffersonar/mobilidade | /src/main/java/br/com/dimed/mobilidade/repository/TaxiRepository.java | UTF-8 | 428 | 1.8125 | 2 | [] | no_license | package br.com.dimed.mobilidade.repository;
import java.math.BigInteger;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import br.com.dimed.mobilidade.entity.OnibusEntity;
import br.com.dimed.mobilidade.entity.TaxiEntity;
public interface TaxiRepository extends JpaRep... | true |
eae5bd0e8a13fb3ec4861928d2e336bb21b8b027 | Java | vZome/vzome | /core/src/main/java/com/vzome/core/math/symmetry/Symmetry.java | UTF-8 | 2,374 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive |
package com.vzome.core.math.symmetry;
import java.util.Collection;
import com.vzome.core.algebra.AlgebraicField;
import com.vzome.core.algebra.AlgebraicMatrix;
import com.vzome.core.algebra.AlgebraicVector;
import com.vzome.core.math.RealVector;
/**
* @author Scott Vorthmann
*
*/
public interface Symmetry extend... | true |
eb62368d4911bc36da7973f026166261423c8ccc | Java | flame-stream/FlameStream | /examples/src/main/java/com/spbsu/flamestream/example/bl/index/ops/WikipediaPageToWordPositions.java | UTF-8 | 2,660 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.spbsu.flamestream.example.bl.index.ops;
import com.expleague.commons.text.lexical.StemsTokenizer;
import com.expleague.commons.text.lexical.Tokenizer;
import com.expleague.commons.text.stem.Stemmer;
import com.spbsu.flamestream.core.graph.SerializableFunction;
import com.spbsu.flamestream.example.bl.index.... | true |
62a921fe6669cc0733afb9b763afb849f8d2fd06 | Java | arnorymir/FreeFlow | /app/src/main/java/com/example/flowflow/freeflow/Dot.java | UTF-8 | 509 | 2.890625 | 3 | [] | no_license | package com.example.flowflow.freeflow;
/**
* Created by bjornorri on 13/09/14.
*/
public class Dot {
private Coordinate mCell;
private int mColorID;
public Dot(Coordinate cell, int colorID) {
mCell = cell;
mColorID = colorID;
}
public Dot(int x, int y, int colorID) {
mC... | true |
6b9c04e1dbb745ca56be6406ac24298b657aa6de | Java | chandratan03/Design-Pattern-Learning | /Observer/src/subjects/WeatherData.java | UTF-8 | 1,323 | 3.140625 | 3 | [] | no_license | package subjects;
import java.util.ArrayList;
import observers.Observer;
public class WeatherData implements Subject{
private ArrayList<Observer> observers = new ArrayList<Observer>();
private Float temperature, humidity, pressure;
@Override
public void registerObserver(Observer observer) {
observers.add(obser... | true |
ecc3862e7fcc5c2ed009dfde8c967715610094d3 | Java | tyyx1228/study_all | /bd_hadoop/study-mr/src/main/java/com/ty/study/wordcount/WordCount.java | UTF-8 | 3,328 | 2.4375 | 2 | [] | no_license | package com.ty.study.wordcount;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Random;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.lib.CombineTextInpu... | true |
6addd61741c037d012f59e88a23b428380b2f100 | Java | fishr/lightdj | /SoundExpressor/src/Signals/FFTEngine.java | UTF-8 | 4,362 | 3.625 | 4 | [] | no_license | package Signals;
/**
* Represents a faster Fast Fourier Transform (FFT) engine. Specific to a given FFT size.
* The size must range from 2 to 2^31, and be a power of 2.
*
* Trades away memory and pre-computation time, in favor of fast FFT computation time.
*
* Upon being initialized, the FFT does a bunch of pr... | true |
27c601e32fc5abc0ee7bee07564f926a69242454 | Java | jimenabpose/TPE-POD | /src/main/java/ar/edu/itba/pod/signal/source/PredefinedSource.java | UTF-8 | 717 | 2.953125 | 3 | [] | no_license | package ar.edu.itba.pod.signal.source;
import java.util.List;
import ar.edu.itba.pod.api.Signal;
/**
* Source file that has a predefined number of signals.
* After all the signals are exhausted, the source will reset and
* start with the first one
*/
public class PredefinedSource implements Source {
public fin... | true |
888500729a989aceb7ed1e855ff8fc3d8b1994ac | Java | wzhonggo/LiferayDemo | /Oauth2-portlet/docroot/WEB-INF/service/com/labimo/portlet/tincan/model/Oauth2TokenClp.java | UTF-8 | 11,713 | 1.75 | 2 | [] | no_license | /**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | true |
0be643231c843e512b2aaa53cef3550362356d19 | Java | ndilworth/SuperClickStar | /SuperClickStar/src/com/ndilworth/superclickstar/Star.java | UTF-8 | 1,798 | 2.625 | 3 | [] | no_license | package com.ndilworth.superclickstar;
import java.util.Random;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
public class Star {
public float mX;
public float mY;
private int mSpeedX;
private int mSpeedY;
... | true |
eeddf759dc37d55658391ddcf27bead31d74d743 | Java | ysyha2/git2.javastudy | /src/quiz/A06_GuessAge.java | UTF-8 | 648 | 3.84375 | 4 | [] | no_license | package quiz;
import java.util.Scanner;
public class A06_GuessAge {
/*
사용자로부터 태어난 해와 올해의 년도를 입력받으면
그 사람의 한국 나이를 계산하여 몇 살인지 알려주는 프로그램을 만들어보세요
*/
public static void main(String[] agrs) {
Scanner sc = new Scanner(System.in);
System.out.print("당신이 태어난 해는 몇 년도입니까? ");
int birth = sc.nextIn... | true |
379944ae71fca9ddeb74bb75cad25afbae958de7 | Java | ValeriiaPershakova/SpringbootLearning | /src/main/java/world/model/CountryUpdate.java | UTF-8 | 1,661 | 2.09375 | 2 | [] | no_license | package world.model;
import world.service.Updatable;
import javax.validation.constraints.Positive;
public class CountryUpdate implements Updatable {
private String name;
private Continent continent;
private String region;
@Positive
private Double surfacearea;
private String localname;
... | true |
8bcb927bb7ecd6eeaa602c4afb83f217a51cafa9 | Java | rduarte25/primeros-pasos-java | /src/Uso_Tallas.java | UTF-8 | 277 | 2.25 | 2 | [] | no_license |
public class Uso_Tallas {
enum Talla {Pequena, Mediana, Grande, Muy_grade};
public static void main(String[] args) {
// TODO Auto-generated method stub
Talla s = Talla.Pequena;
Talla m = Talla.Mediana;
Talla l = Talla.Grande;
Talla xl = Talla.Muy_grade;
}
}
| true |
fc55b295873e9535690bd85be7d8acc0ce78c31e | Java | flywind2/joeis | /src/irvine/oeis/a094/A094002.java | UTF-8 | 348 | 2.5625 | 3 | [] | no_license | package irvine.oeis.a094;
import irvine.oeis.LinearRecurrence;
/**
* A094002 <code>a(n+3) = 3*a(n+2) - 2*a(n+1) + 1</code> with <code>a(0)=1, a(1)=5</code>.
* @author Sean A. Irvine
*/
public class A094002 extends LinearRecurrence {
/** Construct the sequence. */
public A094002() {
super(new long[] {2, -5... | true |
02cf97ab5062229ab75a9c334e44c59cffe7d5dd | Java | connectwithsagun/eMall | /app/src/main/java/com/savatechnology/emall/Fragments/DarkModeFragment.java | UTF-8 | 4,542 | 2.15625 | 2 | [] | no_license | package com.savatechnology.emall.Fragments;
import android.content.Context;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ToggleButton... | true |
6f9b1e833cd5576c00833bde1dd64cb605423557 | Java | ebrain-mirambeau/fullStackDevelopment | /FirstDemo/src/inheritanceExercise/MathTeacher.java | UTF-8 | 369 | 3.265625 | 3 | [] | no_license | package inheritanceExercise;
public class MathTeacher extends Person{
protected void teachesMath() {
System.out.println("Math teacher teaches");
}
@Override
protected void walk() {
System.out.println("Math teacher walks");
}
public static void main(String args[]) {
MathTeacher mt = new MathTeach... | true |
242d8d647a473f0cc55c405bfb457d48fee09911 | Java | lanhuawei/LHWTest | /app/src/main/java/baifu/www/lhwtest/activity/ReplecePhoneNumber.java | UTF-8 | 12,314 | 2.03125 | 2 | [] | no_license | package baifu.www.lhwtest.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.TextWatcher;
import androi... | true |
d9cee85bd58514382ca9af481831e8e10f8ccd8f | Java | MrSpock182/crypto4j | /src/main/java/io/github/mrspock182/encryption/EncryptionSymmetrical.java | UTF-8 | 3,198 | 2.765625 | 3 | [
"MIT"
] | permissive | package io.github.mrspock182.encryption;
import io.github.mrspock182.Encryption;
import io.github.mrspock182.exception.CryptographyException;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.Lo... | true |
4fb5abe33fd066860c7852100aac0d06ab0fc593 | Java | stuckless/sagetv-sagex-api | /src/tools/java/org/jdna/url/CookieHandler.java | UTF-8 | 1,633 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.jdna.url;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.log4j.Logger;
import org.jdna.url... | true |
bd9c82a7078fcbeea6e524b15a7c1c19493ff380 | Java | carolineGarcias/hbsales | /src/main/java/br/com/hbsis/fornecedor/FornecedorDTO.java | UTF-8 | 2,806 | 2.53125 | 3 | [] | no_license | package br.com.hbsis.fornecedor;
public class FornecedorDTO {
private Long idFornecedor;
private String razaoSocial;
private String cnpj;
private String nomeFantasia;
private String endereco;
private String telefone;
private String email;
public FornecedorDTO() {
}
public For... | true |
dd7ed32fbd0a9e71052b679c3ac61d4a54205059 | Java | nimingzhanghu/gmall0319 | /gmall-manage-service/src/main/java/com/atguigu/gmall/manage/mapper/BaseAttrInfoMapper.java | UTF-8 | 554 | 1.953125 | 2 | [] | no_license | package com.atguigu.gmall.manage.mapper;
import com.atguigu.gmall.bean.BaseAttrInfo;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
* 平台属性表
*/
public interface BaseAttrInfoMapper extends Mapper<BaseAttrInfo> {
/**
* day05 平台属性功能动态加载
*/
//根据三级分类id查询属性表 -- 通用 Mapper只针对简单查询
... | true |
e82c8cdf0c6b59db105ba9f39490f2c67e5b241e | Java | Yaroslav97/cdp | /module4/hw13/src/main/java/com/epam/cdp/dao/impl/TicketDAO.java | UTF-8 | 2,099 | 2.265625 | 2 | [] | no_license | package com.epam.cdp.dao.impl;
import com.epam.cdp.dao.CrudRepository;
import com.epam.cdp.model.Event;
import com.epam.cdp.model.Ticket;
import com.epam.cdp.model.User;
import com.epam.cdp.storage.Storage;
import com.epam.cdp.storage.StorageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import ... | true |
09186729df6e9407cbba5528e342ad09c0d2d7eb | Java | nansyg21/AmusingMuseum | /app/src/main/java/com/Anaptixis/AmusingMuseum/OtherMuseumsSQLiteDB.java | UTF-8 | 2,958 | 2.640625 | 3 | [] | no_license | package com.Anaptixis.AmusingMuseum;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created by panos on 18/10/2015.
*/
public class OtherMuseumsSQLiteDB extends SQLiteOpenH... | true |
ab22758007749e79300dc9f135511b00f6df1c9f | Java | AndreiLazarchik/FreeIT | /lesson_03/Task02.java | UTF-8 | 631 | 3.421875 | 3 | [] | no_license | package lesson_03;
public class Task02 {
public static void main(String[] args) {
int quantity = 1; // кол-во клеток в стартовый момент
for (int i = 0; i < 25; i=i+3) { // цикл до 24 часов включительно с шагом в 3 часа
System.out.println("Через " + i + " ч. будет " + quanti... | true |
f5978a80c60f19c82bf9816d04f44128727d88c2 | Java | vampire-studios/VehiclesAndTheKitchenSink-Fabric | /src/main/java/io/github/vampirestudios/vks/entity/LandVehicleEntity.java | UTF-8 | 9,245 | 2.265625 | 2 | [
"CC0-1.0"
] | permissive | package io.github.vampirestudios.vks.entity;
import io.github.vampirestudios.vks.client.render.Wheel;
import io.github.vampirestudios.vks.common.entity.PartPosition;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.Livi... | true |
6dda26be7874edc536ec5be2b37d45bc6b1971dc | Java | bilalcaliskan/postgres-demo | /src/main/java/com/bcaliskan/postgresdemo/persistence/repository/AnswerRepository.java | UTF-8 | 416 | 1.835938 | 2 | [] | no_license | package com.bcaliskan.postgresdemo.persistence.repository;
import com.bcaliskan.postgresdemo.persistence.entity.AnswerEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface AnswerRepository extends J... | true |
9ccd4fa9262805f3a3b493df081276df569df334 | Java | landcoder/DesignPattern | /src/com/mustang/factory/abs/Provider.java | UTF-8 | 142 | 1.875 | 2 | [] | no_license | package com.mustang.factory.abs;
/**
* 提供者
* Created by Mustang on 17/2/5.
*/
public interface Provider {
Sender produce();
}
| true |
f30c449da4bba21c05b6e9cb73a961a64c763183 | Java | Avokado-an/OwnProject | /OwnProject/src/main/java/com/example/OwnProject/service/Implementation/ContactsServiceImplementation.java | UTF-8 | 836 | 2.125 | 2 | [] | no_license | package com.example.OwnProject.service.Implementation;
import com.example.OwnProject.Entites.Contact;
import com.example.OwnProject.Entites.User;
import com.example.OwnProject.repos.ContactsRepo;
import com.example.OwnProject.service.ContactsService;
import org.springframework.beans.factory.annotation.Autowired;... | true |
19b2719df84b32870d5852f9054485b67e9d6aa0 | Java | zeropay2019/ZeroPay_2019 | /src/server/src/main/java/com/seoul/zero/app/service/impl/BoardServiceImpl.java | UTF-8 | 1,645 | 2.359375 | 2 | [] | no_license | package com.seoul.zero.app.service.impl;
import com.seoul.zero.app.model.mapper.BoardMapper;
import com.seoul.zero.app.model.vo.Board;
import com.seoul.zero.app.model.wrapper.ResponseWrapper;
import com.seoul.zero.app.service.BoardService;
import org.springframework.stereotype.Service;
import javax.annotation.Resourc... | true |
84b00cf4e2583c89de9735ab7a9790ea53aff7c7 | Java | DefNeoRoman/vk-chat-manager | /src/main/java/config/MyProperties.java | UTF-8 | 476 | 2.625 | 3 | [] | no_license | package config;
import java.util.*;
@SuppressWarnings("serial")
public class MyProperties extends Properties {
public Enumeration<Object> keys() {
Enumeration<Object> keysEnum = super.keys();
Vector<Object> keyList = new Vector<Object>();
while (keysEnum.hasMoreElements()) {
... | true |
f6be2a40fbda855ca740290a0b8edf36d1fb892d | Java | EverGreen7112/PowerUp-2018 | /PowerUp-2018/src/com/spikes2212/robot/Commands/commandGroups/autonomousCommands/MiddleToSwitchAuto.java | UTF-8 | 3,327 | 2.375 | 2 | [] | no_license | package com.spikes2212.robot.Commands.commandGroups.autonomousCommands;
import java.util.function.Supplier;
import com.spikes2212.dashboard.ConstantHandler;
import com.spikes2212.genericsubsystems.commands.MoveBasicSubsystem;
import com.spikes2212.genericsubsystems.drivetrains.commands.DriveArcade;
import com.spikes2... | true |
add277fc6b089436756631d986c95290687b4d69 | Java | axrkozlov/AmazingDay | /app/src/main/java/com/portfex/amazingday/presenters/trainings/TrainingEditDialog.java | UTF-8 | 8,134 | 2.15625 | 2 | [] | no_license | package com.portfex.amazingday.presenters.trainings;
import android.app.TimePickerDialog;
import android.support.v7.app.AlertDialog;
import android.app.Dialog;
import android.support.v4.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.But... | true |
65aabb0f70b2f71383b924ebdcd9bed25d78c2db | Java | kucro3/Jam2 | /Jam2/src/org/kucro3/jam2/util/context/visitable/VisitableClassContextRestrictedModifiableCompound.java | UTF-8 | 1,893 | 2.265625 | 2 | [] | no_license | package org.kucro3.jam2.util.context.visitable;
import org.kucro3.jam2.util.ClassContext;
import org.objectweb.asm.ClassVisitor;
public class VisitableClassContextRestrictedModifiableCompound extends VisitableClassContextCompound
implements ClassContext.RestrictedModifiable {
public VisitableClassContextRes... | true |
ae68dd5b805b3f3476e5ca027196a0a1a7de417e | Java | ZacharyMennona/Movie | /mennonaIMDB.java | UTF-8 | 4,866 | 3.25 | 3 | [] | no_license | import java.text.DecimalFormat;
class Movie
{
public String title;
public int year;
public String director;
public int duration;
public String actors;
public String genre;
public double rating;
Movie(String title, int year, String director,
int duration, S... | true |
6518e4ec92417c12dca47ece7a96809929f61a80 | Java | ZztPlus/teach_online_server | /src/com/zzt/servlet/adminner_operate_manager_delupdateServlet.java | UTF-8 | 3,872 | 2.53125 | 3 | [] | no_license | package com.zzt.servlet;
import com.zzt.jdbc.SqlConnection;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.... | true |
3eca20b038fc19f2d88b7ec7e9d0474ea01f194b | Java | firepho92/RandomNumbersIO | /src/randomnumersio/RandomNumbersOutput.java | UTF-8 | 1,543 | 3.28125 | 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 randomnumersio;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayLi... | true |
c705b13e296467d3fa6df2fdacc35b8186c26074 | Java | natiassefa/2048 | /2048/src/net/mygame/Tile.java | UTF-8 | 573 | 3.015625 | 3 | [] | no_license | package net.mygame;
public class Tile {
int value;
public Tile (){
value = 0;
}
public Tile (int val){
value = val;
}
public int getVal(){
return this.value;
}
public boolean isEmpty(){
if(this.getVal()==0){
return true;
}
else
return false;
}
public void setVal(int... | true |
fbbf0de60f554d43eeb689b62eab8ab2b6572db2 | Java | xp-zhao/learn-java | /learn-test/src/main/java/com/xp/thread/FutrueDemo/FutrueExample.java | UTF-8 | 1,696 | 2.984375 | 3 | [
"MIT"
] | permissive | package com.xp.thread.FutrueDemo;
import com.xp.utils.FileUtils;
import java.io.File;
import java.util.concurrent.*;
/**
* Created by xp-zhao on 2018/9/7.
*/
public class FutrueExample
{
public static void main(String[] args) throws InterruptedException, ExecutionException
{
deleteFile();
// long startTime = ... | true |
dad8a6781e8388ccd15cd418b74ba24be410f7f7 | Java | zhuyu126/SortAlgorithm | /09-LSDSort/LSDSortMain.java | UTF-8 | 512 | 2.890625 | 3 | [
"MIT"
] | permissive | import java.util.Arrays;
public class LSDSortMain {
public static void main(String[] args) {
// int n = 100000, w = 200;
int n = 1000000, w = 2;
String[] arr = ArrayGenerator.generateRandomStringArray(n, w);
String[] arr2 = Arrays.copyOf(arr, arr.length);
String[] arr3 = Arr... | true |
253cf621fe1db145f80da7661142950ab64c69a9 | Java | regwhitton/dynamator | /container-support/src/main/java/component/util/ComponentsImpl.java | UTF-8 | 1,847 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package component.util;
import static util.Verify.argNotNull;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import component.Components;
import provider.Commissioner;
import provider.Decommissioner;
import provider.Provider;
class ComponentsImpl imp... | true |