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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
aa0ffd9bd8182dab2cdce0464460d6c74fc09ecf | Java | dxh9845/GroceryAppSpring | /src/main/java/desbytes/controllers/ManageController.java | UTF-8 | 3,540 | 2.25 | 2 | [] | no_license | package desbytes.controllers;
import desbytes.Repositories.AppUserRepository;
import desbytes.Repositories.EmployeeRepository;
import desbytes.Repositories.ManageProductRepository;
import desbytes.Repositories.StoreRepository;
import desbytes.models.App_User;
import desbytes.models.ProductInfo;
import desbytes.models.... | true |
0fe1400f90e5f2c10771094f1f08689bdc467793 | Java | hekairong/myrepository | /ssm-maven/src/main/java/com/jk/controller/user/UserController.java | UTF-8 | 4,771 | 2.1875 | 2 | [] | no_license | /**
* <pre>项目名称:ssm-maven-hkr
* 文件名称:UserController.java
* 包名:com.jk.controller.user
* 创建日期:2018年9月12日上午11:26:03
* Copyright (c) 2018, yuxy123@gmail.com All Rights Reserved.</pre>
*/
package com.jk.controller.user;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
... | true |
3ca5ede559a3b9d70b4ebef249a3e450a9ddaf3a | Java | andrewgari/Damage-App | /src/main/java/com/damagesimulator/equipment/weapon/core/RangedWeapon.java | UTF-8 | 445 | 2.203125 | 2 | [] | no_license | package com.damagesimulator.equipment.weapon.core;
import com.damagesimulator.PlayerCharacter.AbilityScore;
public abstract class RangedWeapon extends Weapon {
private int minRange;
private int maxRange;
private boolean loading;
public RangedWeapon(AbilityScore.AbilityScores abs) {
super(abs)... | true |
dfdc46eda79e266c387fa9ee083ed26a9efb94c0 | Java | andy6809/Moocfi | /part02-Part02_16.FromWhereToWhere/src/main/java/FromWhereToWhere.java | UTF-8 | 547 | 3.40625 | 3 | [] | no_license |
import java.util.Scanner;
public class FromWhereToWhere {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Where to? ");
int end = Integer.valueOf(scanner.nextLine());
System.out.print("Where from? ");
int beginning =... | true |
f506f265db992db6654417d4d863112bdab61e01 | Java | RomanovskijAlexandr/JavaTweetProject | /src/com/company/Parser_sentiments.java | UTF-8 | 555 | 2.9375 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
public class Parser_sentiments {
static ArrayList<Sentiments> Parser_mood(ArrayList<String> humor){
ArrayList<Sentiments> list_mood=new ArrayList<Sentiments>();
for(int i=0; i<humor.size(); i++){
Sentiments sentiments = new Sentiments(... | true |
325b05243207dc7e30b3499071629f1e7041aabb | Java | LeeSssong/ChatRoom | /lib-clink/src/main/java/library/clink/core/Packet.java | UTF-8 | 424 | 2.46875 | 2 | [] | no_license | package src.main.java.library.clink.core;
import java.io.Closeable;
/**
* @Desc: 公共的数据封装,提供了类型以及基本的长度的定义
* @authonr: LeeSongsheng
* @create: 2020/07/14
**/
public abstract class Packet implements Closeable {
protected byte type;
protected int length;
public byte type () {
return type;
}
... | true |
09e2fd03ca96850a465251fa8e0930b2bbade802 | Java | Hepc622/practice | /chat/src/main/java/com/practice/chat/security/CurrentUser.java | UTF-8 | 520 | 2.28125 | 2 | [] | no_license | package com.practice.chat.security;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
/**
* @author Administrator
* 当前用户
*/
public class CurrentUser {
public static OurUser getCurrentUser() {
//获取当前用户的信息
Object principal... | true |
487ca892977df26138804377ce3fc27f04813444 | Java | voodoo-patch/progetto-lft-2020 | /LEXER/Word.java | UTF-8 | 2,296 | 3.15625 | 3 | [] | no_license | package LEXER;
public class Word extends Token {
public String lexeme = "";
public Word(int tag, String s) {
super(tag);
lexeme = s;
}
public static Word GetIdentifier(String s) {
switch (s) {
case "cond":
return cond;
case "when":
... | true |
78e460864bc6dbddb39d6f1537a33da270447d91 | Java | AbdielChavez/examenUnidad2Subido | /src/sample/Main.java | UTF-8 | 4,552 | 3.109375 | 3 | [] | no_license | package sample;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.concurrent.Task;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.Te... | true |
f078c65e8883670707075c43b96800587b075722 | Java | speane/fairy-battles-client | /core/src/com/speanegames/fairybattles/rendering/RendererImpl.java | UTF-8 | 1,057 | 2.96875 | 3 | [] | no_license | package com.speanegames.fairybattles.rendering;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.utils.Array;
public class RendererImpl implements Renderer {
private Batch batch;
private Array<Drawable> drawables;
public RendererImpl(Batch batch) {
this.batch = batch;
... | true |
bbb89eae71d81221caf33a392f9763addde6d193 | Java | mleduque/plugin-java | /java-jseditor/src/main/java/com/codenvy/ide/jseditor/java/client/editor/JavaPartitionerFactory.java | UTF-8 | 2,117 | 1.859375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
a4d2494a2401d96e80eb4568d5283c499c79b9d0 | Java | OldiCui/School-Archive | /CS 1030 Intro to CS/CS 1030 - Spring 2019/src/assignment07/OverflowTest.java | UTF-8 | 592 | 3.3125 | 3 | [] | no_license | package assignment07;
public class OverflowTest {
public static void main(String[] args)
{
int x;
int y;
int sum;
x = 2_000_000_000;
y = 147_483_647;
sum = x + y;
System.out.print ("X contains ");
System.out.print (x);
... | true |
974b00fabba5e79f3e407518b11bc95389dbe63d | Java | mpsgit/JOOQTest | /src/main/java/org/jooq/tables/PlsqlProfilerUnits.java | UTF-8 | 3,965 | 1.796875 | 2 | [] | no_license | /**
* This class is generated by jOOQ
*/
package org.jooq.tables;
import java.math.BigDecimal;
import java.sql.Date;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.Wetrn;
import org.jooq.impl.TableImpl;
import org.jooq.tables.records.Pl... | true |
1e39d74659c342276ab564cae613b2a93971a475 | Java | jqorz/HfutNavigation | /app/src/main/java/com/hfut/navigation/base/BaseApplication.java | UTF-8 | 314 | 1.695313 | 2 | [] | no_license | package com.hfut.navigation.base;
import android.app.Application;
import com.baidu.mapapi.SDKInitializer;
public class BaseApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
SDKInitializer.initialize(getApplicationContext());//加载so文件
}
}
| true |
18b92408af7cfff3cef3bfa10196b01e11b27800 | Java | TechieFrogs-Achievers/JavaBasics | /Sreeja/src/SumOfNumbers.java | UTF-8 | 453 | 3.40625 | 3 | [] | no_license | public class SumOfNumbers
{
public static void main(String[] args)
{
/*
int data = 1;
int sum = 0;
while(data<=5)
{
sum = sum+data;
data++;
}
System.out.println("Sum of natural numbers is "+sum);
*/
int sum=0;
for(in... | true |
4f65d1fa3a45544072b002e992e7ddba0b772caf | Java | danianmercado/domino-eclipse-collaborator-demo | /logic/ApplicationBase/src/aku/demo/application/base/DemoDocument.java | UTF-8 | 516 | 2.3125 | 2 | [] | no_license | package aku.demo.application.base;
import lotus.domino.Document;
public class DemoDocument {
private static final String ITEM_FORM = "Form";
private Document document;
public DemoDocument(Document document){
this.document = document;
}
public String getForm() throws Exception{
return document.getItemVa... | true |
c231723f93701863a07c8d46897e64140d4a7896 | Java | fiay1991/LocalApi | /51park-localapi-master/51park-localapi-service/src/main/java/com/park/localapi/service/filter/CheckSignFilter.java | UTF-8 | 4,364 | 2.0625 | 2 | [] | no_license | package com.park.localapi.service.filter;
import java.io.IOException;
import java.util.Map;
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.s... | true |
ec8ec688704d57be17ab367c7f5e855caec8917d | Java | przemo539/Java_GCL07_lato_2018_Przemyslaw_Szymoniak | /07. MULTITHREADING/MULTI/src/wspolbieznosc/Task1.java | UTF-8 | 514 | 2.421875 | 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 wspolbieznosc;
public class Task1 implements Task {
@Override
public void run(int taskNumber) throws InterruptedExce... | true |
213ed20c56168104efd4437eaf81037787475edb | Java | UjwalE/React-SBoot | /ShoppingApp/src/main/java/com/springboot/shoppingapp/exception/CartServiceException.java | UTF-8 | 199 | 1.929688 | 2 | [] | no_license | package com.springboot.shoppingapp.exception;
public class CartServiceException extends RuntimeException {
public CartServiceException(String message) {
super(message);
}
}
| true |
a5a5c2f5cdf6d2e5649b86d860005e21b1b180f1 | Java | rateyu/camel-elasticsearch-http | /src/main/java/com/sarwarbhuiyan/camel/component/elasticsearch/http/ElasticsearchHTTPClient.java | UTF-8 | 12,054 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.sarwarbhuiyan.camel.component.elasticsearch.http;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.cl... | true |
0fc923453532175fbb99daa7647e4c395be8f57a | Java | monishukla/RestAssured | /src/main/java/requests/RestUtils.java | UTF-8 | 515 | 2.203125 | 2 | [] | no_license | package requests;
import java.util.ArrayList;
import java.util.List;
public class RestUtils {
public static String getname()
{
String name = "Ritvick";
return name;
}
public static String getLocation()
{
String location = "Kanpur";
return location;
}
public static String getemail()
{
String emai... | true |
f99618fddd60cd7aee0e9159f7104c8302f24b90 | Java | markedward82/coursera | /Algorithmic toolbox/week4/majority_element/MajorityElement.java | UTF-8 | 1,890 | 3.53125 | 4 | [] | no_license | import java.util.*;
import java.io.*;
public class MajorityElement {
private static int getMajorityElement(int[] a, int left, int right) {
if (left == right) {
return a[left];
} else if (left + 1 == right) {
return a[left] == a[right] ? a[left] : -1;
}
int mi... | true |
a74cd226f59c24c33796562505c4cbfc416b1176 | Java | hosniah/Lattice-Miner | /src/fca/gui/context/table/BinaryContextTable.java | ISO-8859-1 | 6,608 | 2.578125 | 3 | [] | no_license | package fca.gui.context.table;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import fca.core.context.Context;
import fca.core.context.binary.BinaryContext;
import fca.gui.context.tabl... | true |
8d9d1cb3fd10bf02d94f6ffb2c32735a49b5d920 | Java | adcoolguy/GoogleAppEngine | /src/tapp/model/sgc/WorkOrder.java | UTF-8 | 13,948 | 2.015625 | 2 | [] | no_license | package tapp.model.sgc;
import java.io.Serializable;
import java.util.Date;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import com... | true |
45ccf2095cff0b944b431682076fcdb45eeda1e0 | Java | harjeet-me/tmsreactapp | /src/main/java/com/jiotms/tmsreactapp/web/rest/ContainerResource.java | UTF-8 | 4,929 | 2.421875 | 2 | [] | no_license | package com.jiotms.tmsreactapp.web.rest;
import com.jiotms.tmsreactapp.domain.Container;
import com.jiotms.tmsreactapp.service.ContainerService;
import com.jiotms.tmsreactapp.web.rest.errors.BadRequestAlertException;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.ResponseUtil;
impor... | true |
7e38f5b342a1046e96a310a5f3af487038830e27 | Java | JoePue/rest-mock-app | /src/main/java/de/puettner/rest_mock_app/matcher/rest/MatcherRestController.java | UTF-8 | 1,574 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package de.puettner.rest_mock_app.matcher.rest;
import de.puettner.rest_mock_app.matcher.model.RestRequest;
import de.puettner.rest_mock_app.matcher.service.RequestMatcherService;
import de.puettner.rest_mock_app.matcherconfig.AppConfigurationBuilder;
import de.puettner.rest_mock_app.matcherconfig.model.AppConfigurati... | true |
e5a4191e8478b53d4622bc4846e8bccd942b819f | Java | mpasture/accord | /odetteftp/camel-oftp/src/main/java/org/neociclo/odetteftp/camel/OftpClientConsumer.java | UTF-8 | 1,659 | 2.03125 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /**
* The Accord Project, http://accordproject.org
* Copyright (C) 2005-2013 Rafael Marins, http://rafaelmarins.com
*
* 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 |
4381fdc2141b7fd945bc6a963e105318eb446bd8 | Java | nigamg/tryNot2BeBored | /AllSolution.java | UTF-8 | 46,075 | 2.890625 | 3 | [] | no_license | package com.facebook;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Set;
import... | true |
c3b061f47d84b83253b220b9ea8cedd4859513cb | Java | billgockeler/Looker | /src/com/kogeto/looker/db/VideosDataSource.java | UTF-8 | 3,758 | 2.53125 | 3 | [] | no_license | package com.kogeto.looker.db;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import com.kogeto.looker.model... | true |
235bc0db66aa8f6b1b12787515c3c969dd249b96 | Java | demonwang/eachOne | /src/com/hf/module/impl/LocalModuleInfoContainer.java | UTF-8 | 4,940 | 2.296875 | 2 | [] | no_license | package com.hf.module.impl;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import android.content... | true |
b41f50e6ab31e1247590eb0f2066bfa307ea0559 | Java | shnooga/jmocktutorial | /src/main/java/com/oogie/Category.java | UTF-8 | 307 | 1.648438 | 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.oogie;
/**
*
* @author hueyng
*/
public enum Category {
MEDICAL,
GROCERY,
TOBACCO,
PROCESSED_FOOD
};
| true |
395b8ed1c31e6b862bad2b796eed3962c27d82d5 | Java | AADONAIS/serial-port-program | /serial-port-gui/src/main/java/com/ado/serial/pro/core/service/ExecuteService.java | UTF-8 | 152 | 1.539063 | 2 | [
"Apache-2.0"
] | permissive | package com.ado.serial.pro.core.service;
import java.util.Map;
public interface ExecuteService {
boolean dealData(Map<String , String> map) ;
}
| true |
52862789aaf3673330082b2455417b526c029670 | Java | alexmalev/gitBySpectra | /src/main/java/FileStatus.java | UTF-8 | 138 | 1.617188 | 2 | [] | no_license | /**
* Created by alexanderm on 24/02/2018.
*/
public enum FileStatus {
Added, Changed, Conflicting, Untracked, Modified, UptoDate
}
| true |
b7c7ee44d2cd57929a3f3dbcca1f8a2f0cc25466 | Java | maboglia/CorsoJava_FT2019 | /Prj_06_Biblioteca/src/model/Scaffale.java | UTF-8 | 625 | 2.546875 | 3 | [] | no_license | package model;
import java.util.ArrayList;
public class Scaffale {
private ArrayList<Libro> libriSuScaffale;
private int numScaffale;
public Scaffale(int numero) {
this.libriSuScaffale = new ArrayList<>();
this.numScaffale = numero;
}
public ArrayList<Libro> getLibriSuScaffale() {
retu... | true |
07130cac843e221046fbadf439a9316c90f1a790 | Java | cxj110/YY | /yy-baseplatform/yy-auth-server/src/main/java/com/yy/cloud/baseplatform/authserver/service/AcmeUserDetailsService.java | UTF-8 | 1,951 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.yy.cloud.baseplatform.authserver.service;
import lombok.extern.slf4j.Slf4j;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.... | true |
4a8858bf11f7fbe8e7845b7294ac465e3085571f | Java | mathcompelte/microservice-healthy | /context/src/main/java/com/zqkh/healthy/context/controller/ProgramActionController.java | UTF-8 | 883 | 1.945313 | 2 | [] | no_license | package com.zqkh.healthy.context.controller;
import com.zqkh.healthy.context.appservice.inter.ProgramActionService;
import com.zqkh.healthy.feign.ProgramActionClient;
import com.zqkh.healthy.feign.dto.program.app.ProgramActionDto;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.... | true |
febb2b463125150348ece0a47b33fa0d9c5db69f | Java | roopautomation/automation-framwork | /src/test/java/com/optum/synergy/reference/ui/stepDefinitions/DashboardStepDefinition.java | UTF-8 | 1,072 | 2.078125 | 2 | [] | no_license | package com.optum.synergy.reference.ui.stepDefinitions;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import com.optum.synergy.reference.ui.pageobjects.CommonHelper;
import com.optum.synergy.refer... | true |
f40855eb5489c8b6f31aa06dc709c8adc294e0d9 | Java | cicimagicai/LeetCode | /Java/LinkedList/src/Solution86.java | UTF-8 | 828 | 3.890625 | 4 | [] | no_license |
public class Solution86 {
/* 86. Partition List:
* Given a linked list and a value x, partition it such that all nodes less than x
* come before nodes greater than or equal to x.
*
* Input: 1->4->3->2->5->2, x = 3
* Output: 1->2->2->4->3->5
*/
public static ListNode partition(ListNode head, int x){
... | true |
7a26ff8de65dfc75bc8fc07086fe85b1df3c7220 | Java | TitaniumCortez/cotacao-acoes-v1 | /src/main/java/com/crawler/app/CotacaoAcoesApplication.java | UTF-8 | 911 | 1.851563 | 2 | [] | no_license | package com.crawler.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableSchedu... | true |
07ac4342f69a429302c3f8616d4422d1a157596e | Java | arjunswaj/minesweeper | /src/com/asb/ms/exceptions/MinesweeperException.java | UTF-8 | 244 | 2.21875 | 2 | [] | no_license | package com.asb.ms.exceptions;
/**
* Minesweeper Exception.
* Created by arjun on 23/04/16.
*/
public abstract class MinesweeperException extends Exception {
public MinesweeperException(String message) {
super(message);
}
}
| true |
b6f90b232c0d2127ff3bffdeab606dd8433c3164 | Java | Muhthoriqas/LABPP2020 | /H071201077/PRAKTIKUM-4/ArrayNomor2.java | UTF-8 | 1,236 | 3.390625 | 3 | [] | no_license | import java.util.Scanner;
public class ArrayNomor2 {
public static void main(String[] args) {
int i, j, k, m, n, p;
int matriks1[][] = new int[10][10];
int matriks2[][] = new int[10][10];
int hasil[][] = new int[10][10];
Scanner input = new Scanner(System.in);
System.out.print("Masukk... | true |
5445d42027e2e83e9fe4064aaee345b25011e58c | Java | kumarmanoj0000/gb1-healthcheck | /gb1-healthcheck/src/main/java/com/gb1/healthcheck/domain/meals/MealInactivityNotifier.java | UTF-8 | 129 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.gb1.healthcheck.domain.meals;
public interface MealInactivityNotifier {
void notifyUsersOfMealInactivity();
}
| true |
b7be538b45ba09a7f8a483e3ddb974cdfc4d190a | Java | ahajun96123/final | /final/src/main/java/com/jkl/hpot/dao/impl/ChatDaoImpl.java | UTF-8 | 2,066 | 2.140625 | 2 | [] | no_license | package com.jkl.hpot.dao.impl;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.jkl.hpot.dao.ChatDAO;
import com.jkl.hpot.vo.ChatMemberVO;
import com.jkl.hpot.vo.Ch... | true |
bd3d04189fddce4563a7702fc1b415b331d8c517 | Java | MasterOogwayis/spring | /zsw-elastic/api-service01/src/main/java/com/zsw/Service01App.java | UTF-8 | 510 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package com.zsw;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author Shaowei Zhang on 2020/9/20 15:11
*/
@SpringBootApplication
@EnableDiscoveryClient
public cla... | true |
f5f0f92b92b6d9ed4def2121f9bbfc4fe783a568 | Java | zhangbiao97/rabbitmq-api | /src/main/java/co/zhangbiao/rabbitmq/limit/Producer.java | UTF-8 | 943 | 2.59375 | 3 | [] | no_license | package co.zhangbiao.rabbitmq.limit;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
public class Producer {
public static void main(String[] args) throws Exception {
// 1、创建ConnectionFactory并进行配置
ConnectionFactory connectionFactory = new... | true |
04b2e266142b43da7969122ff62c1c3d5c939c0f | Java | Softgreen/SISTCOOP_REST | /src/main/java/org/sistemafinanciero/entity/TransaccionCheque.java | UTF-8 | 4,862 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package org.sistemafinanciero.entity;
// Generated 02-may-2014 11:48:28 by Hibernate Tools 4.0.0
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedVal... | true |
fb6b86e87f14b591370edf0a31bb902a0b386e97 | Java | aSrivastaava/DataStructures-Basic | /functions.java | UTF-8 | 641 | 3.59375 | 4 | [] | no_license | import java.util.Scanner;
public class functions {
public static int fact(int x) {
int result = 1;
for (int i = 1; i <= x; i++) {
result *= i;
}
return result;
}
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
Sy... | true |
872076d8f044fdf2509fa271ef14f9d6c8695a31 | Java | Tregz/academic-list | /app/src/main/java/com/tregz/mvc/data/user/UserModel.java | UTF-8 | 2,655 | 2.34375 | 2 | [] | no_license | package com.tregz.mvc.data.user;
import android.os.Parcel;
import android.os.Parcelable;
import com.tregz.mvc.data.DataModel;
import java.util.Date;
public class UserModel extends DataModel {
public static final String TAG = UserModel.class.getSimpleName();
public UserModel() {}
private boolean allerg... | true |
5ec99466d636327f50b99dc28f823fdefa840bc1 | Java | yx2512/aim-framework | /src/main/java/com/aim/mvc/processor/RequestProcessor.java | UTF-8 | 196 | 1.6875 | 2 | [] | no_license | package com.aim.mvc.processor;
import com.aim.mvc.RequestProcessorChain;
public interface RequestProcessor {
boolean process(RequestProcessorChain requestProcessorChain) throws Exception;
}
| true |
5cc4434d94c8e973d90a0a2876332eac2df5dbdf | Java | raeleus/skin-composer | /core/src/com/ray3k/skincomposer/dialog/PopAbout.java | UTF-8 | 2,400 | 2.421875 | 2 | [
"OFL-1.1",
"MIT"
] | permissive | package com.ray3k.skincomposer.dialog;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.... | true |
9c086b5f6de4b5e755d50f9e3db277e6e31afabd | Java | wks/jhql | /src/test/java/org/github/wks/jhql/ErrorsTest.java | UTF-8 | 2,555 | 2.484375 | 2 | [] | no_license | /*
* Copyright 2011,2012 Kunshan Wang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | true |
65ff87d89cdf92218e8448a110d63a7bd24cfd6e | Java | JorgeRuizDev/UBU-Aplicaciones-Bases-Datos | /Entrega 04 - JPA/JPA/src/es/ubu/lsi/model/asociacion/DireccionPostal.java | UTF-8 | 1,581 | 2.59375 | 3 | [] | no_license | package es.ubu.lsi.model.asociacion;
import java.io.Serializable;
import java.lang.String;
import java.math.BigInteger;
import java.util.Objects;
import javax.persistence.*;
/**
* Entity implementation class for Entity: DireccionPostal
*
*/
@Embeddable
public class DireccionPostal implements Serializable {
privat... | true |
a7446065d8ed5a5e952dc95705fe0627b652f4d6 | Java | P79N6A/icse_20_user_study | /methods/Method_39292.java | UTF-8 | 1,742 | 2.25 | 2 | [] | no_license | /**
* The main email receiving method.
*/
ReceivedEmail[] receiveMessages(final EmailFilter filter,final Flags flagsToSet,final Flags flagsToUnset,final boolean envelope,final Consumer<Message[]> processedMessageConsumer){
useAndOpenFolderIfNotSet();
final Message[] messages;
try {
if (filter == null) {
... | true |
087aa69bc3be0668a04fc191c5a7a27c9a6d2684 | Java | CleverTap/apns-http2 | /src/main/java/com/clevertap/apns/internal/JWT.java | UTF-8 | 4,407 | 2.484375 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2016, CleverTap
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of conditions ... | true |
3f12f1587dacbd0008ba63d98ddf2d5297900470 | Java | jonaylor89/CMSC256 | /projects/Project4/Song.java | UTF-8 | 3,671 | 3.734375 | 4 | [] | no_license | /**************************************************
* John Naylor
* CMSC 256 Section 2 Spring
* Project 4 Song project
* Class to excapsulate details about songs
***********************************************/
public class Song implements Comparable {
private String album;
private String title;
priv... | true |
479201868469fb4ea845e0a545576d37688a4235 | Java | ikedanatsuko/ServerSide_Projects | /SpringBoot_Twitter_OAuth/src/main/java/io/github/oauth/controller/HomeController.java | UTF-8 | 3,732 | 1.914063 | 2 | [] | no_license | package io.github.oauth.controller;
import java.sql.Date;
import java.util.List;
import javax.inject.Inject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.social.connect.ConnectionRepository;
import org.springframework.social.twitter.api.Tweet;
import org.springframework.s... | true |
0ee4a148f6ab53c141fc4fbe50dbb25b40041ae6 | Java | Narayan-Dhingra/Payment-App | /app/src/main/java/com/example/paymentapp/RechargeMobile.java | UTF-8 | 4,360 | 1.734375 | 2 | [] | no_license | package com.example.paymentapp;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import andr... | true |
47e350a3451fb2a608f125140e7ecd1c8b00b65d | Java | chen6820163/task6 | /src/main/java/com/jnshu/task4/common/aop/JedisTest.java | UTF-8 | 948 | 2.703125 | 3 | [] | no_license | package com.jnshu.task4.common.aop;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
/**
* @program: task6
* @description:
* @author: Mr.Chen
* @create: 2019-03-12 16:18
* @contact:938738637@qq.com
**/
public class JedisTest {
// public static void main(String[] args) {
// Jedis... | true |
fdbf71b4f8aa3f4090f9c7abc54283defa89683d | Java | stupaq/cloud-atlas | /src/main/java/stupaq/cloudatlas/attribute/values/CAString.java | UTF-8 | 5,238 | 2.421875 | 2 | [] | no_license | package stupaq.cloudatlas.attribute.values;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.TimeZone;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import javax.annotation.concurrent.Immutable;
import stupaq.cloudatlas.attribute... | true |
35d113132c3e01ae405c3090066d44f425c59c0d | Java | tomg12345/Distributed-Banking-System | /InvalidAccount.java | UTF-8 | 168 | 2.53125 | 3 | [] | no_license | // exception for when user enters invalid bank account number
public class InvalidAccount extends Exception
{
public InvalidAccount(String m){
super(m);
}
}
| true |
1eab5a4316862b8e46fbb5363eb6712103353e95 | Java | shurik1686/graduation | /src/main/java/ru/shurik16/graduation/repository/CrudVoteRepository.java | UTF-8 | 905 | 2.0625 | 2 | [] | no_license | package ru.shurik16.graduation.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotat... | true |
e205bce170e4eae044863f18fbd1c4e7d374ce83 | Java | dhuang05/Business-Calendar-Full-Stack | /buscal_server/bus-calendar-service/src/main/java/com/nusino/microservices/dao/businesscalendar/repository/UsersRepository.java | UTF-8 | 2,003 | 2.0625 | 2 | [] | no_license | /**
* copyright © Nusino Technologies Inc, 2021, All rights reserved.
* dhuang05@gmail.com
*/
package com.nusino.microservices.dao.businesscalendar.repository;
import com.nusino.microservices.model.buscalendar.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.re... | true |
b753af9538d7eb33c76243a8f3bae37a1ba5ce68 | Java | ravi26067/Coding | /Algorithms/DP/LCS/PrintLCS.java | UTF-8 | 2,786 | 3.125 | 3 | [] | no_license | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;
cla... | true |
d91bd4e77149b81dff6280bc23f8bb496ff6df12 | Java | smingari/UltaTracker | /app/src/main/java/com/example/ultratracker/Weightlifting.java | UTF-8 | 3,111 | 2.90625 | 3 | [] | no_license | package com.example.ultratracker;
import java.time.LocalDate;
public class Weightlifting {
private String exerciseName, woName;
private int sets, reps, weight, key, workoutKey;
private LocalDate date;
// Constructor for database retrieval
public Weightlifting(String exerciseName, int ... | true |
a3e079ba8e7386ead15f90ede500d0c2a375a6ab | Java | zhongxingyu/Seer | /Diff-Raw-Data/15/15_aaa1fc5c8bfaa12f011629275587cdf001f16804/ZipfSong/15_aaa1fc5c8bfaa12f011629275587cdf001f16804_ZipfSong_t.java | UTF-8 | 2,630 | 3.96875 | 4 | [] | no_license | package interviews.sorts;
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;
/**
* Zipf's song.
*
* Return the m best songs from a set of n songs in O(nlogm) time and O(m) space.
* Quality is defined as being listened to more often than predic... | true |
09e4d085554649527af1db54875ebf90821d359c | Java | zl-pangu/emsboot | /bootmanage/src/main/java/com/zhph/redis/BaseRedisDao.java | UTF-8 | 254 | 2.140625 | 2 | [] | no_license | package com.zhph.redis;
import java.util.concurrent.TimeUnit;
public interface BaseRedisDao<K, V> {
public void add(K key, V value);
public void add(K key, V value, long timeout, TimeUnit unit);
public void delete(K key);
public V get(K key);
}
| true |
92c244bc144ac8f6b4df7df998304335117bf2b5 | Java | tinyj/tinyj-lava-api | /src/main/java/org/tinyj/lava/LavaBiConsumer.java | UTF-8 | 1,377 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | package org.tinyj.lava;
/**
* An operation on two input values.
* <p>
* This is the exception declaring version of {@link java.util.function.BiConsumer}
* <p>
* Usually invoking a bi-consumer results in side effects. Subsequent
* invocations may or may not result in further side effects.
* <p>
* This is a func... | true |
c9cc990fd480926b4d99214ba7f3717b8f111ca9 | Java | ankitbhayani/ApplicationEngineeringDevelopment-Fall2015 | /Assignment#4/src/UserInterface/ManufacturerRole/LoginManufacturer.java | UTF-8 | 4,934 | 2.328125 | 2 | [] | no_license | package UserInterface.ManufacturerRole;
import Business.Manufacturer;
import Business.ManufacturerDirectory;
import java.awt.CardLayout;
import java.io.File;
import java.io.IOException;
import java.util.List;
import javax.swing.JPanel;
import javax.swing.text.Document;
import javax.swing.text.Element;
import org.jdom2... | true |
4a251c2fdb3a6541783ca691371f018132713317 | Java | atlanhq/marmaray | /marmaray/src/main/java/com/uber/marmaray/common/metadata/HDFSDatePartitionManager.java | UTF-8 | 6,247 | 1.96875 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2018 Uber Technologies, Inc.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, p... | true |
6c482bfeb4354ab8a089ca99987e9f080e932852 | Java | amlietti87/java-bootcamp | /finalprojectSB/src/main/java/com/globant/finalproject/controllers/UserRestController.java | UTF-8 | 2,854 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.globant.finalproject.controllers;
import com.globant.finalproject.model.User;
import com.globant.finalproject.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springfram... | true |
600066856d0d85d69179c6208a917972b54ebb34 | Java | GameGeezer/DogWood | /src/framework/scene/components/graphics/SpriteComponent.java | UTF-8 | 2,940 | 2.78125 | 3 | [] | no_license | package framework.scene.components.graphics;
import framework.graphics.Image;
import framework.graphics.Mesh;
import framework.graphics.opengl.ShaderProgram;
import framework.graphics.opengl.Texture;
import framework.graphics.opengl.uniform.FloatVectorUniform;
import framework.graphics.opengl.uniform.VectorUniform;
im... | true |
18b0e5c28f614cf2266f86252f66f5638df3ad5c | Java | wugx1992/some-case | /src/main/java/indi/gxwu/testCode/TreeMaxDepthTest.java | UTF-8 | 1,344 | 3.40625 | 3 | [] | no_license | package indi.gxwu.testCode;
/**
* @Author: gx.wu
* @Date: 2020/1/3 10:18
* @Description: 二叉树最大深度
*/
public class TreeMaxDepthTest {
public static void main(String[] args) {
TreeMaxDepthTest t = new TreeMaxDepthTest();
TreeNode n1 = new TreeNode(1);
TreeNode n2 = new TreeNode(2);
... | true |
9659c4b6f354e6072088089d45629b4949529da0 | Java | FairhavenHHC/Fairhaven | /src/main/java/com/fairhaven/utils/encryption/Encoding.java | UTF-8 | 637 | 2.46875 | 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.fairhaven.utils.encryption;
/**
*
* @author XUG590
*/
public enum Encoding {
/**
*
... | true |
3da613e859c2e28e7576a038e0afc1c43319e8d4 | Java | Lucas-Cerqueira/AppCare | /app/src/main/java/com/lf/appcare/InternalStorage.java | UTF-8 | 1,072 | 2.53125 | 3 | [] | no_license | package com.lf.appcare;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import jav... | true |
669b828e07c03e1bc73a49fad71e81841eb32e56 | Java | NBajanca/POO | /src/userInterface/Main.java | UTF-8 | 3,256 | 2.8125 | 3 | [
"MIT"
] | permissive | package userInterface;
import fileRead.DataSet;
import fileRead.TestData;
import bayseanNetwork.*;
/**
* The Class Main runs the program
*/
public class Main {
public static void main(String[] args) {
if (args.length < 4){
System.out.println("Correct program call has the following arguments: train test s... | true |
9f4dc96ee1fb6d260b2b9f7aa17112d2bdfb63ae | Java | pompan129/DietTrackerApp | /src/test/java/edu/uml/diet/DbBuilderTest.java | UTF-8 | 2,616 | 2.65625 | 3 | [] | no_license | package edu.uml.diet;
import edu.uml.diet.persistence.DatabaseBuilder;
import edu.uml.diet.persistence.DatabaseConnector;
import edu.uml.diet.persistence.DatabaseConnectorException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.juni... | true |
b5935f35463f27badf445e000d954a5888bd3c30 | Java | Nightscrawl/itc115 | /Assn8_Ex11_IsUnique.java | UTF-8 | 2,205 | 4.09375 | 4 | [] | no_license | /* Assn8_Ex11_IsUnique
* Assignment 8 - IsUnique
* Accepts array of ints from usr unput, returns true/false according to
* whether all values are unique
* Kira Abell
* 11/17/2019
* ITC 115
*/
import java.util.*;
public class Assn8_Ex11_IsUnique {
public static void main(String[] args) {
... | true |
950ab2360810cf1430479d8570507e4436a1dd70 | Java | LupenWonse/InClass11Tutorial | /app/src/main/java/com/group32/inclass11tutorial/MessageListAdapter.java | UTF-8 | 4,777 | 2.34375 | 2 | [] | no_license | package com.group32.inclass11tutorial;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.annotation.Non... | true |
ca295c94689ae25a80d472d5e38ad7db21cd0564 | Java | xyj155/EbuyShop | /module_home/src/main/java/com/example/home/contract/GoodsShareContract.java | UTF-8 | 756 | 1.882813 | 2 | [] | no_license | package com.example.home.contract;
import com.example.commonlib.base.BaseGson;
import com.example.commonlib.base.BaseView;
import com.example.commonlib.gson.GoodsShareGson;
import java.util.List;
import rx.Observable;
public interface GoodsShareContract {
interface Model {
Observable<BaseGson<GoodsShare... | true |
3e468478b017a4c667c55daa285f1f17e2780ff1 | Java | bacovjir/azurekube | /src/main/java/com/bacovjir/kube/dto/Version.java | UTF-8 | 188 | 1.59375 | 2 | [] | no_license | package com.bacovjir.kube.dto;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class Version {
private String hostname;
private String ip;
private String version;
}
| true |
d0e877256feadeb08b368762a4a22809dd6a1b2b | Java | cdadr/icfp2016 | /src/com/srsw/icfp2016/Main.java | UTF-8 | 534 | 2.859375 | 3 | [] | no_license | package com.srsw.icfp2016;
import java.io.FileInputStream;
public class Main {
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("usage: <this> problem_file");
System.exit(1);
}
final String filename = args[0];
final FileInputStream in = new FileInpu... | true |
57c1440d9ed7527932d8ec46187485645b17cbdc | Java | vellvisher/Networker | /src/vsp/networker/SocialActivity.java | UTF-8 | 5,950 | 2.296875 | 2 | [] | no_license | package vsp.networker;
import org.scribe.builder.ServiceBuilder;
import org.scribe.builder.api.TwitterApi;
import org.scribe.model.OAuthRequest;
import org.scribe.model.Response;
import org.scribe.model.Token;
import org.scribe.model.Verb;
import org.scribe.model.Verifier;
import org.scribe.oauth.OAuthService;
import... | true |
fa8fc76ed8eea537813907eedef07679118f9662 | Java | alucarded/meals | /src/main/java/com/devpeer/calories/core/query/QueryFilterParseException.java | UTF-8 | 226 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package com.devpeer.calories.core.query;
public class QueryFilterParseException extends RuntimeException {
public QueryFilterParseException(Throwable cause) {
super("Failed to parse query filter", cause);
}
}
| true |
a7fa2af771936c3032ef42ff51dbab108e74815d | Java | p-hyeonjung/ojt_v2s4m3c | /src/main/java/dev/mvc/answer/AnswerCont.java | UTF-8 | 692 | 1.914063 | 2 | [] | no_license | package dev.mvc.answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class AnswerCont {
@Autowired
@Q... | true |
13ad53b26acd55e89e264a5b3fbacc99ad06acee | Java | wangjingf/idea-database-navigator | /src/com/dci/intellij/dbn/generator/action/GenerateDDLStatementAction.java | UTF-8 | 1,778 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.dci.intellij.dbn.generator.action;
import java.sql.SQLException;
import org.jetbrains.annotations.Nullable;
import com.dci.intellij.dbn.common.util.StringUtil;
import com.dci.intellij.dbn.connection.ConnectionHandler;
import com.dci.intellij.dbn.generator.StatementGeneratorResult;
import com.dci.i... | true |
6b8e0b077e1f415922b0e50b4f6be0f776c74342 | Java | cha63506/CompSecurity | /Photography/pic_collage_source/src/com/cardinalblue/android/piccollage/model/gson/MediaListResponse.java | UTF-8 | 693 | 1.84375 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.cardinalblue.android.piccollage.model.gson;
// Referenced classes of package com.cardinalblue.android.piccollage.model.gson:
// ... | true |
bf481d5146d58cdaefdb7962759eb5b8df11e571 | Java | dMitsopoulou/PLC2021 | /lab9-sync/java/TopUp.java | UTF-8 | 2,422 | 3.890625 | 4 | [] | no_license | public class TopUp
{
public static void main(String[] args)
{
PhoneAccount acc1 = new PhoneAccount("Account 1");
new Thread(new MakingCalls(acc1)).start();
new Thread(new ToppingUp(acc1)).start();
PhoneAccount acc2 = new PhoneAccount("Account 2");
new Thread(new MakingCa... | true |
6fb365334ea5e5586ec2c3450d19e7e9d299e353 | Java | paha141/game | /src/main/java/com/game/service/PlayerService.java | UTF-8 | 773 | 2.03125 | 2 | [] | no_license | package com.game.service;
import com.game.entity.*;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.Optional;
@Service
public interface PlayerService {
Page<Player> getPlayers(PlayerSearchCriteria playerSearchCriteria, PlayerPag... | true |
7c3c343d9d3b155e2ad8dbee30c352fe7fa2e2bb | Java | zxy065X/springboot | /src/main/java/com/boshuo/contorller/FileContorller.java | UTF-8 | 4,041 | 2.375 | 2 | [] | no_license | package com.boshuo.contorller;
import java.io.File;
import java.util.Date;
import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Ge... | true |
9dbf1cef3e01a7aaa8cd67b0693ef2b39905cdf4 | Java | junwei0000/all | /longcheng_app/trunk_V2.4.0/app/src/main/java/com/longcheng/lifecareplan/modular/im/Plugin/SampleExtensionModule.java | UTF-8 | 879 | 1.820313 | 2 | [] | no_license | package com.longcheng.lifecareplan.modular.im.Plugin;
import java.util.ArrayList;
import java.util.List;
import io.rong.imkit.DefaultExtensionModule;
import io.rong.imkit.emoticon.IEmoticonTab;
import io.rong.imkit.plugin.IPluginModule;
import io.rong.imlib.model.Conversation;
/**
* 作者:jun on
* 时间:2020/5/29 19:58
... | true |
66c22387cd150c99661d79542ff73f6d0a100f27 | Java | LovelyLM/tencent_jdk-test | /src/main/java/com/leiming/tencent_jdktest/controller/UserController.java | UTF-8 | 2,914 | 2.25 | 2 | [] | no_license | package com.leiming.tencent_jdktest.controller;
import com.github.qcloudsms.SmsSingleSender;
import com.github.qcloudsms.SmsSingleSenderResult;
import com.github.qcloudsms.httpclient.HTTPException;
import com.leiming.tencent_jdktest.entity.User;
import com.leiming.tencent_jdktest.service.UserService;
import com.leimin... | true |
341d656c2459136bbde574fc065e6a17b815fd99 | Java | onap/policy-models | /models-provider/src/main/java/org/onap/policy/models/provider/impl/ModelsProvider.java | UTF-8 | 3,310 | 1.78125 | 2 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | /*-
* ============LICENSE_START=======================================================
* Copyright (C) 2021,2023 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file excep... | true |
3e598efd39a0fdf868eec59004cd8a5c8d381b19 | Java | YasminLuz/LocadoraBicicletas | /src/sgbd/EscolherSGBD.java | UTF-8 | 102 | 1.546875 | 2 | [] | no_license | package sgbd;
/**
*
* @author Yasmin
*/
public enum EscolherSGBD {
POSTGRES, DERBY, SQLITE;
}
| true |
67f12bc3977efe3d9ab6a021809e4f73666e15eb | Java | elstringer/StarmadeWrapper | /src/com/gravypod/wrapper/server/commands/ReloadCommand.java | UTF-8 | 566 | 2.046875 | 2 | [] | no_license | package com.gravypod.wrapper.server.commands;
import com.gravypod.starmadewrapper.User;
import com.gravypod.starmadewrapper.plugins.PluginManager;
import com.gravypod.starmadewrapper.plugins.commands.AdminCommand;
public class ReloadCommand extends AdminCommand {
private final PluginManager manager;
public Relo... | true |
df4e2a37f75cc6d56eb251c7084917ec49d85b47 | Java | FrancisTan2014/Guoli.Anroid | /app/src/main/java/zj/com/mc/DailyBreakRulsDetails.java | UTF-8 | 18,157 | 1.789063 | 2 | [] | no_license | package zj.com.mc;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.w... | true |
2277eb2dabd06bc49bba35679664393346463f7a | Java | isabella232/android-sdk-sources-for-api-level-11 | /java/security/cert/CertPathValidatorSpi.java | UTF-8 | 678 | 1.921875 | 2 | [] | no_license | /* */ package java.security.cert;
/* */
/* */ import java.security.InvalidAlgorithmParameterException;
/* */
/* */ public abstract class CertPathValidatorSpi
/* */ {
/* */ public CertPathValidatorSpi()
/* */ {
/* 4 */ throw new RuntimeException("Stub!");
/* */ }
/* */
/* */ public a... | true |
f270b7778c08d1a2b01c85eb02f478f27d79c0d4 | Java | BharathPalanivelu/repotest | /src/main/java/com/shopee/app/react/sync/BundleSyncService.java | UTF-8 | 2,635 | 1.84375 | 2 | [] | no_license | package com.shopee.app.react.sync;
import android.os.AsyncTask;
import com.firebase.jobdispatcher.r;
import com.firebase.jobdispatcher.s;
import com.garena.reactpush.d.e;
import com.shopee.app.react.g;
import java.lang.ref.WeakReference;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Block... | true |
fcafb58ed47700563fd13fca16e676903daeab6d | Java | ben-schroeder/assertj-extension | /src/test/java/eu/benschroeder/assertj/WithBDDAssertionsTest.java | UTF-8 | 1,923 | 2.453125 | 2 | [
"MIT"
] | permissive | package eu.benschroeder.assertj;
import org.assertj.core.api.BDDAssertions;
import org.assertj.core.api.WithAssertions;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Objects;
import java.util.Optional;
class WithBDDAssertionsTest implements WithAssertio... | true |
0bae56264f877e31fd8a2166cf781da3213e951e | Java | ASHIMTOM7/paintappjavaawt | /paint app using awt and event/paintex.java | UTF-8 | 969 | 3 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
public class paintex extends Frame implements MouseMotionListener
{
paintex()
{
addMouseMotionListener(this);
setSize(300,300);
setLayout(null);
setVisible(true);
Image icon = Toolkit.getDefaultToolkit().getImage(".\\icon.png");
setIconIm... | true |
af45d31f5e1da79cfd7d772722ee44a93563071d | Java | algkazakov/2019-08-otus-spring-kazakov | /spring15ht/src/main/java/ru/otus/spring/controller/BookController.java | UTF-8 | 8,755 | 2.265625 | 2 | [] | no_license | package ru.otus.spring.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import ru.otus.spring.dao.AuthorDao;
import ru.otus.spring.dao.BookDao;
import ru.ot... | true |