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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5a8ee9f5f0381954df6398b3cdc1d2048fe95ed1 | Java | sk-raheem/SocioTweet | /Sociotweet-2/src/main/java/com/Sociotweet/serv/MlaServ.java | UTF-8 | 208 | 1.570313 | 2 | [] | no_license | package com.Sociotweet.serv;
import org.springframework.stereotype.Service;
import com.Sociotweet.dto.MlaLogin;
@Service
public interface MlaServ {
public boolean login(MlaLogin log);
}
| true |
3b964aae883670cfab15bd69f0118e349bf1dde7 | Java | liukunlong1093/base-cloud | /template-manager/template-app/src/main/java/com/mes/common/web/MsgTemplateController.java | UTF-8 | 7,228 | 2.109375 | 2 | [] | no_license | package com.mes.common.web;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;... | true |
016079a2c0b0522e249ccee525618b79770dda14 | Java | schaefce/interviews | /CodingInterviews/src/arraysAndStrings/strings/ctci/Q8/Rotation.java | UTF-8 | 757 | 4.09375 | 4 | [] | no_license | package arraysAndStrings.strings.ctci.Q8;
/*
* 1.8 Assume you have a method isSubstring which checks if one word is a
* substring of another. Given two strings, s1 and s2, write code to check if s2
* is a rotation of s1 using only one call to isSubstring (e.g. "waterbottle" is
* a rotation of "erbottlewat")
*/
pu... | true |
ec714916152cb989969f23ea1681b455e2c1ce60 | Java | cassandracomar/VAFusion2 | /encog-java-core-2.5.3/src/org/encog/bot/browse/range/FormElement.java | UTF-8 | 2,966 | 2.453125 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*
* Encog(tm) Core v2.5 - Java Version
* http://www.heatonresearch.com/encog/
* http://code.google.com/p/encog-java/
* Copyright 2008-2010 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | true |
8accb459695c6b5a17ec72afd576331462d2e458 | Java | farida17/Sprint | /app/src/main/java/com/farida/sprint/initializer/Initializer.java | UTF-8 | 96 | 1.585938 | 2 | [] | no_license | package com.farida.sprint.initializer;
public interface Initializer {
void initialize();
}
| true |
1d03d3104ff42c28586266ffab93119b0605333b | Java | 15001167619/rongyi_healthy | /remote-interface/src/main/java/com/etycx/remote/entity/SysRoleMenu.java | UTF-8 | 537 | 1.765625 | 2 | [] | no_license | package com.etycx.remote.entity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
/**
* <p>
* 角色和菜单关联表
* </p>
*
* @author 武海升
* @date 2019-08-07
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleMenu extends Model<S... | true |
b8040f8d85d5660f18915909adb9ffa9b2ad3815 | Java | moruoyiming/Epen | /webview/src/main/java/com/hero/webview/WebViewActivity.java | UTF-8 | 3,973 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package com.hero.webview;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import androidx.annotation.Nullable;
import ... | true |
37f2c836d1763a5cd0946c6ef5bf0fb915cdba9a | Java | Mewel/PixelLogic | /core/src/de/mewel/pixellogic/util/PixelLogicLevelLoader.java | UTF-8 | 7,439 | 2.625 | 3 | [
"MIT"
] | permissive | package de.mewel.pixellogic.util;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Pixmap;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import de.mewel.pixellogic.model.PixelLogicLevel;
import de.m... | true |
289c4855f51184a7f4cf0e282791b8a50919d5e2 | Java | notoroius2pac/javaPractice | /Lab09_Tasks/src/tasks/Exercise2.java | UTF-8 | 510 | 3.3125 | 3 | [] | no_license | package tasks;
import java.util.Scanner;
import java.util.regex.Pattern;
public class Exercise2 {
boolean isValidString(String str) {
boolean isValid = false;
isValid = Pattern.matches("[a-z]{8,}[job]", str);
return isValid;
}
public static void main(String[] args) {
String username;
Scanner sc = ne... | true |
f310b1098c477cf21774e8cc5d6f9c63fa32d384 | Java | kayazas123/sandbox | /jdbclog/src/test/java/com/github/chrisgleissner/sandbox/sqllog/SqlLogTest.java | UTF-8 | 7,613 | 2.0625 | 2 | [] | no_license | package com.github.chrisgleissner.sandbox.sqllog;
import lombok.extern.slf4j.Slf4j;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdb... | true |
45ef28f6914d0340d301d36a0efe2e084b3f1872 | Java | Shiwoo-Park/study-designpattern | /src/headfirst/chp6/command/commands/FanOffCommand.java | UTF-8 | 268 | 2.421875 | 2 | [] | no_license | package headfirst.chp6.command.commands;
import headfirst.chp6.command.models.Fan;
public class FanOffCommand extends FanCommand{
public FanOffCommand(Fan fan) {
super(fan);
}
@Override
public void execute() {
prevMode = fan.getSpeed();
fan.off();
}
}
| true |
3eeaf3a999a620daad35d688f7cfc819eedb2f5d | Java | MrDiablon/GestionResto | /src/panelAide/DroitPanel.java | WINDOWS-1252 | 690 | 2.75 | 3 | [] | no_license | package panelAide;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
@SuppressWarnings("serial")
public class DroitPanel extends JPanel {
private JTextPane text;
public DroitPanel(){
String txt = "Les droit... | true |
07956158e20c33b4ec011c700352fe36fd099152 | Java | archana0393/Trivago | /src/test/java/Pages/Searchlocation.java | UTF-8 | 1,952 | 2.5625 | 3 | [] | no_license | package Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class Searchlocation {
WebDriver driver;
By icon_search=By.xpath("//header/div[1]/div[1]/div[2]");
By txt_search=By.xpath("//header/div[1]/div[1]/div[4]/div[1]/div[2]/input[1]");
By btn_destinations=By.xpath("//div[contai... | true |
77206de09f77c05d0050e62f9f7b394b1b298eb1 | Java | shaikezas/eventpool | /src/main/java/com/eventpool/web/forms/EventFormSettings.java | UTF-8 | 1,064 | 2.03125 | 2 | [] | no_license | package com.eventpool.web.forms;
import java.util.LinkedList;
import java.util.Map;
import com.eventpool.common.dto.EventInfoSettings;
import com.eventpool.common.dto.EventOrderSettings;
import com.eventpool.common.type.EventInfoType;
public class EventFormSettings {
private Long eventId;
private Map<String,Linke... | true |
5cc64e47727e61cd4291ba11c376c7657d86a79f | Java | BGCX067/ezwebcluster-svn-to-git | /trunk/modules/console/src/com/gorthaur/cluster/console/client/activities/upload/HasFileEvents.java | UTF-8 | 244 | 1.515625 | 2 | [] | no_license | package com.gorthaur.cluster.console.client.activities.upload;
import com.google.gwt.event.shared.HandlerRegistration;
public interface HasFileEvents {
HandlerRegistration addFileEventHandler(FileEvent.FileEventHandler handler);
} | true |
7df64da5f48c95e3b81ec6bdcfc5ca29ff2cd6ca | Java | zengyongsun/carwebsocket | /app/src/main/java/com/dm/carwebsocket/sip/LauncherActivity.java | UTF-8 | 2,470 | 2.765625 | 3 | [] | no_license | package com.dm.carwebsocket.sip;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
public class LauncherActivity extends AppCompatActivity {
private Handler mHandler;
@Override
protected void onCreate(Bundle savedInstan... | true |
65d38b5995c09b2c1f8d8156fa4b4bc2206c20e5 | Java | albi-c/PixelArter | /src/io/github/albi_c/pixelarter/settings/ShortcutSettings.java | UTF-8 | 845 | 1.96875 | 2 | [] | no_license | package io.github.albi_c.pixelarter.settings;
import java.awt.event.KeyEvent;
public class ShortcutSettings {
public int[] shortcutColor = {KeyEvent.VK_C, 0, 0, 0};
public int[] shortcutPencil = {KeyEvent.VK_P, 0, 0, 0};
public int[] shortcutEraser = {KeyEvent.VK_E, 0, 0, 0};
public int[] shortcutRect = {KeyEvent... | true |
29cff6be86d2090081684398e381ede10f2bad34 | Java | thundercrawl/GNServer | /ifarm-console/console-shared/src/main/java/com/ifarm/console/shared/domain/po/FundEfficientCompanyPO.java | UTF-8 | 389 | 2.15625 | 2 | [] | no_license | package com.ifarm.console.shared.domain.po;
public class FundEfficientCompanyPO extends BasePO {
private String company;
/**
* @return String return the company
*/
public String getCompany() {
return company;
}
/**
* @param company the company to set
*/
public void s... | true |
d4550403034b8f76d32629aefc2d15db736389f7 | Java | PangyiGo/lampblack-admin | /lampblack-common/src/main/java/com/osen/cloud/common/entity/dev_lampblack/DataHour.java | UTF-8 | 1,424 | 1.773438 | 2 | [] | no_license | package com.osen.cloud.common.entity.dev_lampblack;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.... | true |
d6b7975cff3bcc1d568450706a95e051de47cdf6 | Java | hbin99/myprj2_clothesShoppingMall | /myprj2/src/user/controller/content/UserMyPageEvt.java | UHC | 1,778 | 2.125 | 2 | [] | no_license | package user.controller.content;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import user.dao.ClientDAO;
import user.view.content.UserCardUploadView;
import user.view.content.UserCusDataView;
import user.view.content... | true |
17c7d9a14c3a1decddd2cdb2301c9f8b23296220 | Java | dysonzhang/iCaiBox | /src/com/icaihe/activity_fragment/FragmentBox.java | UTF-8 | 5,289 | 1.851563 | 2 | [] | no_license | package com.icaihe.activity_fragment;
import com.alibaba.fastjson.JSON;
import com.bigkoo.svprogresshud.SVProgressHUD;
import com.icaihe.R;
import com.icaihe.jpush.PushSetUtil;
import com.icaihe.manager.DataManager;
import com.icaihe.model.User;
import com.ichihe.util.HttpRequest;
import android.os.Bundle;
import and... | true |
326c55074c3b79a88d268a0bcf3c0a05642d9e83 | Java | Melfor/calc | /src/main/java/ru/rtmis/melfor/calc/dto/ResultDto.java | UTF-8 | 257 | 1.710938 | 2 | [] | no_license | package ru.rtmis.melfor.calc.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
public class ResultDto extends AbstractDto {
private int result;
}
| true |
3d7a6178c2f6c4a2b4ed2ac486e55202c9b0529d | Java | liukai38/new-liukaiproject | /musicTool/src/com/owner/dao/MusicDao.java | UTF-8 | 360 | 1.820313 | 2 | [] | no_license | package com.owner.dao;
import java.util.List;
import org.springframework.stereotype.Component;
import com.owner.model.MusicInfo;
@Component
public interface MusicDao {
List<MusicInfo> queryDataById(String id);
List<MusicInfo> queryData();
void addData(MusicInfo musicInfo);
void removeDataById(String id);
v... | true |
21079017818da2736b55156d53e58e5feac2d68e | Java | mohitrajvardhan17/java1.8.0_151 | /com/sun/xml/internal/ws/api/message/AddressingUtils.java | UTF-8 | 13,682 | 1.59375 | 2 | [] | no_license | package com.sun.xml.internal.ws.api.message;
import com.sun.istack.internal.NotNull;
import com.sun.xml.internal.ws.addressing.WsaTubeHelper;
import com.sun.xml.internal.ws.api.EndpointAddress;
import com.sun.xml.internal.ws.api.SOAPVersion;
import com.sun.xml.internal.ws.api.WSBinding;
import com.sun.xml.internal.ws.... | true |
f5fc8d4b1aaeff422baec5243f738250bbd7aa21 | Java | Jakob666/renlab_MATK | /src/main/java/SeqDataModel/NonSpecificEnrichment.java | UTF-8 | 614 | 2.390625 | 2 | [] | no_license | package SeqDataModel;
import org.apache.commons.math3.distribution.BetaDistribution;
@Deprecated
public class NonSpecificEnrichment {
private BetaDistribution bd;
public NonSpecificEnrichment(double a, double b) {
this.bd = new BetaDistribution(a, b);
}
public double density(double nonSpecif... | true |
15634216cda16170c15a4cc8efe44d7294e1acb4 | Java | nickaigi/kotlin-in-action | /src/nickson/vehicle/Bicycle.java | UTF-8 | 744 | 3.796875 | 4 | [
"Unlicense"
] | permissive | package nickson.vehicle;
public class Bicycle implements Vehicle{
int speed;
int gear;
@Override
public void changeGear(int newGear) {
gear = newGear;
}
@Override
public void speedUp(int increment) {
speed += increment;
}
@Override
public void applyBrakes(int ... | true |
0f7453f85aefd098af0aa0d278245e991dedc702 | Java | love0shagua/AssetManagement | /myasset/src/com/dao/impl/AssetClassDao.java | UTF-8 | 1,551 | 2.171875 | 2 | [] | no_license | package com.dao.impl;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import com.dao.IAssetClassDao;
import com.dao.IUserDao;
import com.entity.... | true |
c2e603f88a95e9c21bf8f662829ac59be86458e3 | Java | brunogabriel/algorithms-java | /AlgorithmsProject/src/br/com/algorithms/functions/test/EuclidesTest.java | UTF-8 | 400 | 2.28125 | 2 | [
"MIT"
] | permissive | package br.com.algorithms.functions.test;
import static org.junit.Assert.*;
import org.junit.Test;
import br.com.algorithms.functions.Euclides;
public class EuclidesTest {
@Test
public void test() {
// Recursive Euclides
assertEquals(6, Euclides.recursiveEuclides(6, 12));
assertEquals(6, Euclides.recursive... | true |
3e2416beb8a7a7d04d0be78898f2ce4a50e1c202 | Java | johnsmith1500/Classes-e-M-todos-Est-ticos | /OneDrive/Documentos/NetBeansProjects/Classes e Métodos Estaticos/AtividadeEstatico/src/atividadeestatico/Professor.java | UTF-8 | 728 | 2.171875 | 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 atividadeestatico;
/**
*
* @author Usuário
*/
public class Professor {
private String nome;
private String disciplina;
... | true |
39aa9b139de1d22088a00a153b1ce665b609179c | Java | hsu-yc/activebeans | /src/org/activebeans/Condition.java | UTF-8 | 261 | 1.953125 | 2 | [] | no_license | package org.activebeans;
public interface Condition<T, U> {
T gt(U val);
T lt(U val);
T gte(U val);
T lte(U val);
T not(U val);
T eql(U val);
T like(U val);
T in(U... val);
T nin(U... val);
T field();
T asc();
T desc();
}
| true |
17ee8bf70201412e59d29cbf06b3cc5ac85a27a8 | Java | chirag1210/MVPGetRequestWithRetrofit | /app/src/main/java/example/com/mvpexample/Login2/Match_.java | UTF-8 | 3,561 | 1.90625 | 2 | [] | no_license | package example.com.mvpexample.Login2;
/**
* Created by Win on 16-12-2017.
*/
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Match_ {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("title")
@Expose
private Strin... | true |
fa91a079988e16d554f315e1ed4734eb53ddca67 | Java | ssh352/ppt | /util/JAVA/Util/src/com/explosion/tactic/cta/pairarb/util/TacticAttr.java | UTF-8 | 5,262 | 1.960938 | 2 | [] | no_license | package com.explosion.tactic.cta.pairarb.util;
import java.io.File;
import java.util.ArrayList;
import java.util.Properties;
import java.util.Vector;
import org.apache.log4j.Logger;
import org.rosuda.JRI.REXP;
import org.rosuda.JRI.RVector;
import org.rosuda.JRI.Rengine;
import com.explosion.base.helper;
import com.... | true |
b81c93d7a221362448642deaaf9b6c6df20ef472 | Java | diopmayacine/catalogue | /src/main/java/com/test/catalogue/service/ShoppingProductService.java | UTF-8 | 546 | 2.125 | 2 | [] | no_license | package com.test.catalogue.service;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.springframework.validation.annotation.Validated;
import com.test.catalogue.model.ShoppingProduct;
@Validated
public interface ShoppingProductService {
ShoppingProduct create(@NotNull(message =... | true |
df03fe4fd8adaa9573b2a46dab104d38bbb2551e | Java | hellosky806/galaxyMerchant | /src/test/java/com/thoughtWorks/interview/merchant/business/implement/CountRomanSymbolValueImplTest.java | UTF-8 | 538 | 2.234375 | 2 | [] | no_license | package com.thoughtWorks.interview.merchant.business.implement;
import com.thoughtWorks.interview.merchant.business.ICountRomanSymbolValue;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CountRomanSymbolValueImplTest {
@Test
public void testCountRomanSymbolValue() throws E... | true |
db1c89418eb537f3f18a878b8446547d17d562fc | Java | litliang/ms | /code/app/src/main/java/com/yzb/card/king/ui/film/model/MoveMainImpl.java | UTF-8 | 2,242 | 2.140625 | 2 | [] | no_license | package com.yzb.card.king.ui.film.model;
import com.yzb.card.king.http.HttpCallBackData;
import com.yzb.card.king.http.SimpleRequest;
import com.yzb.card.king.http.DataCallBack;
import java.util.Map;
/**
* 类名: MoveMainImpl
* 作者: Lei Chao.
* 日期: 2016-09-20
* 描述:
*/
public class MoveMainImpl implements IMoveMain
... | true |
2f0c998fe5f38df1654327e4dbee7ebc00768416 | Java | moutainhigh/code | /system/tag/sandu-system-20190306-release/sandu-api-system/src/main/java/com/sandu/api/redis/RedisService.java | UTF-8 | 1,175 | 2.34375 | 2 | [] | no_license | package com.sandu.api.redis;
import java.util.List;
import java.util.Set;
public interface RedisService {
public Set<String> keys(String pattern);
public boolean set(String key, String value, int seconds);
public boolean set(String key, String value);
public String get(String key);
public List<... | true |
e01a3f219d680a56d32157e78d2230069df6bf3c | Java | odemapp/uberdust-android | /src/eu/uberdust/mobileclient/model/TestbedTree.java | UTF-8 | 373 | 2.40625 | 2 | [] | no_license | package eu.uberdust.mobileclient.model;
import java.util.ArrayList;
import java.util.List;
public class TestbedTree extends Testbed {
private List<RoomTree> rooms = new ArrayList<RoomTree>();
public void appendRoom(RoomTree r)
{
rooms.add(r);
}
public int getRoomnum(){
return rooms.size();
}
public R... | true |
2131df0857644dd125a376e12a49097f7a62e28e | Java | grisu/grisu-archetypes | /grisu-client-archetype/src/main/resources/archetype-resources/src/main/java/Client.java | UTF-8 | 3,467 | 2.40625 | 2 | [] | no_license | package ${groupId};
import grisu.control.ServiceInterface;
import grisu.control.exceptions.JobPropertiesException;
import grisu.control.exceptions.JobSubmissionException;
import grisu.frontend.control.login.LoginManager;
import grisu.frontend.model.job.GrisuJob;
import grisu.frontend.view.cli.GrisuCliClient;
import gr... | true |
a4665934f81e46867f8f74d2bf752e081e7d9c35 | Java | lkordis/Design-Patterns-Labs | /lab2/DesignPatternLabs/src/lab2/task4/NearestRankPercentile.java | UTF-8 | 409 | 3.046875 | 3 | [] | no_license | package lab2.task4;
public class NearestRankPercentile implements PercentileStrategy {
private int numberOfElements;
public NearestRankPercentile(int numberOfElements) {
this.numberOfElements = numberOfElements;
}
@Override
public double getPercentile(int percentileNumber) {
Double percentile = (... | true |
3bc48540558e54ac3c1e2e456c744dcd794afc8b | Java | ArchawinWongkittiruk/TheBackrowers | /src/test/java/dataprocessorstest/XMLDebuggerTest.java | UTF-8 | 2,354 | 3.015625 | 3 | [] | no_license | package dataprocessorstest;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import dataprocessors.XMLDebugger;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import j... | true |
7792e83359aecd899af84d4a8530b93c5a1533c3 | Java | guchuanhang/CustomLrcView-master | /lrcViewmaster/src/main/java/com/lg/lrcview_master/SplitRowBean.java | UTF-8 | 3,029 | 2.984375 | 3 | [] | no_license | package com.lg.lrcview_master;
import android.graphics.Paint;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
/**
* 为了解决LrcView,播放歌词的时候,实现对单词的自动换行功能,定义该结构体
*/
public class SplitRowBean {
/**
* 没有播放时,对应一行歌词进行的分割,实现多行展示
*/
private List<String> mNormalList = new Arr... | true |
a774eb2506c12a9afcbdffd06bb84fd2db6cce56 | Java | smaestri/springtest | /src/main/java/springtest/api/MyController.java | UTF-8 | 656 | 2.03125 | 2 | [] | no_license | package springtest.api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation... | true |
e1cd3964b6a4ffe732cbd08687f5ede9e4e8e801 | Java | JMayrbaeurl/azure-iotedge-boschnexo-sample | /nexoEdgeSolution/modules/nexoPublisher/src/main/java/com/microsoft/samples/nexo/process/TighteningFunction.java | UTF-8 | 835 | 2.65625 | 3 | [
"MIT"
] | permissive | package com.microsoft.samples.nexo.process;
/**
* TighteningFunction
*/
public final class TighteningFunction {
private String name;
private double nom;
private double act;
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the n... | true |
520040b8721c598073a3fe6feb64aa1e60ca0dd5 | Java | kicknback/unit-testing-lesson | /src/test/java/CarDetailsTests.java | UTF-8 | 1,755 | 3.265625 | 3 | [] | no_license | import org.junit.Assert;
import org.junit.Test;
public class CarDetailsTests {
@Test
public void getCarDetails_GivenValidCar_returnsExpectedString() {
// Arrange
Car car = new Car();
car.setColor("Gray");
car.setMake("Ford");
car.setModel("Mustang");
car.setYear... | true |
c28f039bed98a39a429d299d7aa285fa3537ec2e | Java | CodingCreeks/Spring-Projects | /Demo/src/demoOn11August2016_Part2/IS_A_Inheritance.java | UTF-8 | 397 | 3.125 | 3 | [] | no_license | package demoOn11August2016_Part2;
public class IS_A_Inheritance {
public static void main(String[] args) {
Student student=new Student(100, "Anish", "Ashford Street","Atlanta", "GA","USA",30030);
student.print();
System.out.println("******************");
Employee employee=new Employee(200, "Ram", ... | true |
02066ad4ab9dd2e6842148c243ca0901711999ac | Java | mrbajddi/Catalogues | /Divers/src/com/bajddi/generics/Noeud.java | UTF-8 | 111 | 2.1875 | 2 | [] | no_license | package com.bajddi.generics;
public class Noeud<T> {
T val;
Noeud<T> suivant;
Noeud(T v){
val = v;
}
}
| true |
8698042571145d8b4b3b9a2f25d29e3002b8b8ab | Java | stahani86/anagram | /restclient/src/main/java/com/anagram/restclient/AnagramResponse.java | UTF-8 | 565 | 2.234375 | 2 | [] | no_license | package com.anagram.restclient;
public class AnagramResponse {
private String anagram;
public String getAnagram() {
return anagram;
}
public void setAnagram(String anagram) {
this.anagram = anagram;
}
private int statusCode;
private String errorMessage;
public int getStatusCode() {
return statusCod... | true |
927315f06a610289c5eb6f976f73dbbcf0760383 | Java | kongqianchen/ddd-sample | /src/main/java/center/wxp/dddsample/domain/package-info.java | UTF-8 | 945 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | /**
* DDD: domain 领域层,这一层包含有关领域的信息,是业务的核心,领域模型的状态都直接或间接(持久化至数据库)存储在这一层。
* 领域层主要负责表达业务概念,业务状态信息和业务规则。
* Domain层是整个系统的核心层,几乎全部的业务逻辑会在该层实现。
* 领域模型层主要包含以下的内容:
* 实体(Entities):具有唯一标识的对象
* 值对象(Value Objects): 无需唯一标识的对象
* 领域服务(Domain Services): 一些行为无法归类到实体对象或值对象上,本质是一些操作,而非事物
* 聚合/聚合根(Aggregates,Aggregate Roots):
... | true |
dd4b064db9b5abcff580f03e95a773bf6854a3db | Java | ihomeyuan/MPTCP-1 | /code/MPTCP_TestPlatform/src/main/java/com/spring/elevator/utils/Spider.java | UTF-8 | 662 | 2.546875 | 3 | [
"MIT"
] | permissive | package com.spring.elevator.utils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.*;
import org.jsoup.select.Elements;
import java.io.IOException;
/**
* Created by AlexJIANG on 11/21/15.
*/
public class Spider {
public static void main(String args[]) {
try {
Spider spi =new Spider();
... | true |
35ecbb45d320e64bfeadbc32974e804e61db3f07 | Java | abc873693/AccessControl | /KeyWriteTool/app/src/main/java/rainvisitor/keywritetool/libs/SocketClient.java | UTF-8 | 1,632 | 3.015625 | 3 | [] | no_license | package rainvisitor.keywritetool.libs;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
/**
* Created by Ray on 2017/7/24.
*/
public class SocketClient {
private Socket socket;
... | true |
980841be732b7db87c136f3616f0eda8db7f969f | Java | MatheusGrenfell/java-projects | /netbeans-projects/TranspMecGuthnerLTDA/src/NovaOS/ItemOSControl.java | UTF-8 | 1,954 | 2.546875 | 3 | [] | no_license | package NovaOS;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import DAOFactory.DAOFactory;
import Modelo.ItensOS;
public class ItemOSControl {
private List<ItensOS> listaItensOS;
private DAOFactory daoFactory;
private Connection con;
public ItemOSControl(DAOFactory... | true |
4233ed3e1f1a0c9304374d53c40fded95db0cb50 | Java | mengleang-ngoun/todolist | /app/src/main/java/com/example/myapplication/adapter/TaskViewHolder.java | UTF-8 | 1,486 | 1.898438 | 2 | [] | no_license | package com.example.myapplication.adapter;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.... | true |
ed4576b24e071b5f226f7f396a25e31292e810e7 | Java | zzwanthony/smbms | /src/com/zzw/controller/ProviderController.java | GB18030 | 8,706 | 2.171875 | 2 | [] | no_license | package com.zzw.controller;
import com.alibaba.fastjson.JSON;
import com.zzw.pojo.Bill;
import com.zzw.pojo.Provider;
import com.zzw.pojo.User;
import com.zzw.service.ProviderService;
import com.zzw.util.UtilPage;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframew... | true |
3949415a3b03115c424f1bda1458dc85c90f99ae | Java | nextworks-it/nfv-sol-libs | /NFV_MANO_SOL001_LIBS_DESCRIPTORS/src/main/java/it/nextworks/nfvmano/libs/descriptors/vnfd/nodes/VduCp/VduCpProperties.java | UTF-8 | 3,613 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Nextworks s.r.l.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | true |
f9aa7bf041af97add609c3deadb6f90c9b46ace9 | Java | dgoldstein1/Sheepshead | /src/View/GameLogFrame.java | UTF-8 | 3,935 | 2.8125 | 3 | [
"MIT"
] | permissive | package View;
import Model.Game;
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.sql.Time;
import java.util.ArrayList;
/**
* Created by dave on 2/6/16.
*/
public class GameLogFrame extends JFrame {
private i... | true |
f7d3519285050ef44826b4bade47fe3826c5e65e | Java | sriethig/RMIExample | /src/server/Coffee.java | UTF-8 | 83 | 1.757813 | 2 | [] | no_license | package server;
public enum Coffee {
COFFEE,
MOCCACHINO,
LATTE,
FRAPPUCHINO
}
| true |
39739faa34bffdf3b317d00cb1ccd88a52984684 | Java | Merterm/CS319_Group-28_Project-Virion | /src/gamemanagement/IconManager.java | UTF-8 | 1,074 | 2.8125 | 3 | [] | no_license | package gamemanagement;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
/**
* CS319: Object-Oriented Software Engineering Course Project
* Project Virion
* Author: Irmak Yılmaz on 5.12.2016.
* Version: 1.0
* Description:
*/
public class IconManager {
public Image getPhoto(int i... | true |
44f3ef1bd423768583d9249fdd12fcd37a1b80c3 | Java | mmurari/sfg-di | /src/main/java/guru/springframework/sfgdi/controller/I18nController.java | UTF-8 | 549 | 2.296875 | 2 | [] | no_license | package guru.springframework.sfgdi.controller;
import guru.springframework.sfgdi.services.GreetingService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
@Controller
public class I18nController {
priva... | true |
06764177733469d3256c9244ed0a474577591194 | Java | qbait/TestClmPresentation2 | /TestClmPresentation/src/main/java/pl/farmaprom/DecompressService.java | UTF-8 | 4,193 | 2.328125 | 2 | [] | no_license | package pl.farmaprom;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.os.ResultReceiver;
import android.util.Log;
import org.apache.commons.io.IOUtils;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.i... | true |
267a1c7f2bfb4a65006dbc7cb4308e782e6cf895 | Java | zhuangjinxin/spring-boot-demo | /src/main/java/com/zhuangjinxin/demo/web/HelloThymeleaf.java | UTF-8 | 493 | 2.234375 | 2 | [] | no_license | package com.zhuangjinxin.demo.web;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Thymeleaf模板引擎
* 访问:http://localhost:8080/helloThymeleaf
* 返回:helloThymeleaf.html
*/
@Controller
public class HelloThymeleaf {
@Reques... | true |
97c3af258b0fffb2e0cbbab7f79ada520b967bcf | Java | tkatva/ttPortal | /TaskAndTimeService/TtUserService/TtUserService/src/main/java/katvat/tt/userservice/UserServiceImpl.java | UTF-8 | 3,961 | 2.03125 | 2 | [] | no_license |
package katvat.tt.userservice;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.User;
import java.util.List;
import katvat.tt.user... | true |
25fd18af3e175c17618ea5300cd004d1ab1f6536 | Java | wangbo1114034411/wangbo02-24 | /jcart-administration-back/src/main/java/com/wangbo/jcartadministrationback/service/impl/UserServiceImpl.java | UTF-8 | 1,683 | 2.25 | 2 | [] | no_license | package com.wangbo.jcartadministrationback.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wangbo.entity.User;
import com.wangbo.jcartadministrationback.dao.UserMapper;
import com.wangbo.jcartadministratio... | true |
7768e2f7bab86c8466339720fba50e03ec79a6b8 | Java | C-karthik/USTGlobal-16SEP19-c-karthik | /ust_corejava/eclipse-workspace/association/src/com/ustglobal/hasarelation/Car.java | UTF-8 | 136 | 2.1875 | 2 | [] | no_license | package com.ustglobal.hasarelation;
public class Car {
String brand;
void move() {
System.out.println("car move()");
}
}
| true |
9382a1eac21cb18a90af2e2cc34f8c215bff517d | Java | Chaimaef/CodeJam | /src/main/java/com/example/CodeJam/models/diagnosis/Issue.java | UTF-8 | 252 | 1.703125 | 2 | [] | no_license | package com.example.CodeJam.models.diagnosis;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Issue {
private int id;
private String name;
private String accuracy;
}
| true |
ba3875c1bb139bec285ceb83db2a35530f82ee79 | Java | surekha061993/hll_inventory_new | /hll_inventory_new/HLL_Inventory/src/main/java/com/hllinventory/demo/service/WarehouseMasterServiceImpl.java | UTF-8 | 1,141 | 2.265625 | 2 | [] | no_license | package com.hllinventory.demo.service;
import java.util.List;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hllinventory.demo.dao.WarehouseMasterDao;
import com.hllinventory.demo.model.WarehouseMaster;
@Servi... | true |
d094147ce7720a9716f03105d118da2628116c58 | Java | Aleks-Ya/spring_advanced_31-2 | /src/main/java/booking/web/config/MultipartConfig.java | UTF-8 | 387 | 1.84375 | 2 | [] | no_license | package booking.web.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
@Configuration
public class MultipartConfig {
@Bean
CommonsMultipartResolver commonsMultipartR... | true |
d8f3cdbdfb12dcd2a8a626c8f08989452c7a352a | Java | 0xaa4eb/ulyp | /ulyp-agent-tests/src/test/java/com/agent/tests/libs/util/hibernate/UserRepository.java | UTF-8 | 166 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | package com.agent.tests.libs.util.hibernate;
import java.util.List;
public interface UserRepository {
User save(User user);
List<User> all();
}
| true |
6127460118f5bd363df06289a44f1fa6a1178f2d | Java | MaCoredroid/leetcode | /643/20210521.java | UTF-8 | 368 | 2.921875 | 3 | [] | no_license | class Solution {
public double findMaxAverage(int[] nums, int k) {
int sum=0;
int ans=0;
for(int i=0;i<k;i++){
sum+=nums[i];
}
ans=sum;
for(int i=k;i<nums.length;i++){
sum+=nums[i];
sum-=nums[i-k];
ans=Math.max(ans,sum);... | true |
42dae7ea908ad006a63ccd8be75cfc0ebfcd362d | Java | meiconjun/ERP4M | /src/main/java/org/meiconjun/erp4m/bean/ProjectDocBean.java | UTF-8 | 1,838 | 2.09375 | 2 | [] | no_license | package org.meiconjun.erp4m.bean;
/**
* @author Lch
* @Title:
* @Package
* @Description: 项目文档Bean
* @date 2020/5/11 22:10
*/
public class ProjectDocBean {
/** 文档编号 */
private String doc_no;
/** 文档名称 */
private String doc_name;
/** 文档密级 */
private String secret_level;
/** 所属阶段 */
p... | true |
075beccacf4bdb4ba4402e35bcc7f282aa123fd2 | Java | raj-vishal/security-search-microservice | /src/main/java/com/optus/springboot/service/SearchMicroService.java | UTF-8 | 603 | 1.789063 | 2 | [] | no_license | package com.optus.springboot.service;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
@SpringBo... | true |
d755f4ed4dfd80b15c3ac6a7ef5e2d0f70d537f1 | Java | JEonjinwon/JAVA_STUDY | /project/IServise.java | UTF-8 | 558 | 1.796875 | 2 | [] | no_license | package project;
import java.util.Map;
public interface IServise {
/**
*로그인을 위한 메서드
*@param params mem_id 사람의 아이디, mem_pass 비밀번호
*@return id와 pw가 일치하는 환영의 아이디, 일차하는 사람이 없으면 null
*@author PC-NEW06
*@since 2020.09.04
*@see
*/
String log_in(Map<String, String> params);
String cr_id(Map<String, String... | true |
ff4d6bdec1d526f144d4f76c363d13a3d466ed5e | Java | ujhelyiz/debugvisualisation | /hu.cubussapiens.debugvisualisation/src/hu/cubussapiens/debugvisualisation/views/actions/ToggleOpenAction.java | UTF-8 | 851 | 2.40625 | 2 | [] | no_license | package hu.cubussapiens.debugvisualisation.views.actions;
import hu.cubussapiens.debugvisualisation.internal.api.IOpenCloseNodes;
import hu.cubussapiens.debugvisualisation.viewmodel.IDVValue;
import org.eclipse.zest.core.viewers.GraphViewer;
/**
* Action which opens or closes the selected nodes on a graph.
*
*/
... | true |
1ce8a8db1f7fa8659bfcb6ef8031f72cee42f78e | Java | jny9708/Annimation | /src/com/member/controller/MemberFrontController.java | UTF-8 | 3,943 | 2.296875 | 2 | [] | no_license | package com.member.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impo... | true |
9b5fd5d3fbb0a7467a22a5f8af22f1f44c921f40 | Java | xiongningwan/ski | /app/src/main/java/com/ski/box/utils/lottery/algorithm/play/marksix/LhcZhongXiaoPlayHandler.java | UTF-8 | 1,337 | 2.203125 | 2 | [] | no_license | package com.ski.box.utils.lottery.algorithm.play.marksix;
import com.ski.box.bean.lottery.IAllPlayCode;
import com.ski.box.utils.lottery.algorithm.play.ITicketPlayHandler;
import com.ski.box.utils.lottery.algorithm.utils.exception.GlobalServiceException;
import com.ski.box.utils.lottery.algorithm.utils.string.StringUt... | true |
770aaa46e01f7c8022ca4f16941a2762791ff1e8 | Java | manavkulshrestha/AP_CS | /Lab_6/src/Pseudocode.java | UTF-8 | 2,216 | 3.453125 | 3 | [] | no_license | public class Pseudocode {
public static void main(String[] args) {
}
public static boolean powerOf3(int n) {
if(n == 1)
return true;
else if(n <= 0)
return false;
else if(n%3 == 0)
return powerOf3(n/3);
else
return false;
... | true |
5791071b000ed4c9d21c79dde0aee8d25b036347 | Java | KucaMeow/javalab_rep_c2s4 | /sockjschat/src/main/java/ru/itis/model/Message.java | UTF-8 | 150 | 1.6875 | 2 | [] | no_license | package ru.itis.model;
import lombok.Data;
@Data
public class Message {
private int roomId;
private String from;
private String text;
}
| true |
f396e1ea5ea72a209298879588ed82e60bb94884 | Java | Viral-patel703/Testyourbond-aut0 | /lib/selenium-server-standalone-3.4.0/org/eclipse/jetty/websocket/common/extensions/WebSocketExtensionFactory.java | UTF-8 | 1,547 | 2.375 | 2 | [] | no_license | package org.eclipse.jetty.websocket.common.extensions;
import org.eclipse.jetty.util.DecoratedObjectFactory;
import org.eclipse.jetty.util.StringUtil;
import org.eclipse.jetty.websocket.api.WebSocketException;
import org.eclipse.jetty.websocket.api.extensions.Extension;
import org.eclipse.jetty.websocket.api.extension... | true |
86eccdc3c42059f0e6bdc3355fd710ca51889fb3 | Java | DmitryMVoevodin/Testing1 | /src/main/java/com/artezio/testing/ExceptionOfNegativeNumber.java | UTF-8 | 171 | 2.21875 | 2 | [] | no_license | package com.artezio.testing;
public class ExceptionOfNegativeNumber extends Exception {
ExceptionOfNegativeNumber(){
super("The number is negative");
}
}
| true |
07af481dab4e801c7a88ef68de323ba0e72ae7b9 | Java | youliang999/provider | /test-dubbo-provider/src/main/java/com/java1234/dao/RepairDao.java | UTF-8 | 127 | 1.867188 | 2 | [] | no_license | package com.java1234.dao;
import com.java1234.model.Repair;
public interface RepairDao {
public void add(Repair repair);
}
| true |
179c81d27157d6738e15ea257ad032cb5546f2b9 | Java | zhangluting123/ZhiLvClient | /client/ZhiLvDemo/app/src/main/java/cn/edu/hebtu/software/zhilvdemo/Fragment/Home/UserRecommendFragment.java | UTF-8 | 5,729 | 1.992188 | 2 | [] | no_license | package cn.edu.hebtu.software.zhilvdemo.Fragment.Home;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import andr... | true |
b6ea56b22f02bef7e21b663a981791138b4b3c56 | Java | llsok/ycdemo | /76/SpringCloud案例(易买网)/C76-S3-Ply-ebuy-index/src/main/java/com/yc/ebuy/biz/UserBiz.java | UTF-8 | 1,141 | 2.28125 | 2 | [] | no_license | package com.yc.ebuy.biz;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yc.ebuy.bean.EasybuyCart;
import com.yc.ebuy.bean.EasybuyUser;
import com.yc.ebuy.bean.EasybuyUserExample;
import com.yc.ebuy.dao.EasybuyCartMapper;
import com.yc.e... | true |
fe5155ebdc791d3b9886ba96d3d927a9dd416f53 | Java | Worsect/NIX_Solution | /src/Exercise17/Exercise17.java | UTF-8 | 646 | 3.140625 | 3 | [] | no_license | package Exercise17;
public class Exercise17 {
public static void main(String[] args) {
// int [] arr = {1, 2, 7, 30, 5, 70, 44};
// int [] arr1 = {1, 4, 17, 30, 28, 99};
// int [] arr2 = new int [arr.length];
// int carr1 = 0;
// for (int i = 0; i < arr.length ; i++) {
// ... | true |
a85426641e4a97afab4ec70e2fcdb5d295b554c5 | Java | mandiriwhatthehackorg/AppTeam4 | /app/src/main/java/id/co/mandiri/onepushservices/ui/verification/PhoneNumberActivity.java | UTF-8 | 1,586 | 2.15625 | 2 | [] | no_license | package id.co.mandiri.onepushservices.ui.verification;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import com.google.firebase.auth.FirebaseAuth;
import id.co.mandiri.onepushservices.R;
public cla... | true |
e6e2bb467a47c9217b6f9dd2d1fb19eb1f77b80d | Java | praekeltfoundation/gem-bbb-indo | /app/src/main/java/org/gem/indo/dooit/api/responses/WinnerResponse.java | UTF-8 | 513 | 2.15625 | 2 | [] | no_license | package org.gem.indo.dooit.api.responses;
import org.gem.indo.dooit.models.Badge;
import org.gem.indo.dooit.models.challenge.BaseChallenge;
/**
* Created by frede on 2017/01/26.
*/
public class WinnerResponse {
private boolean available;
private Badge badge;
private BaseChallenge challenge;
public... | true |
66445e48cdedbfe8a6be0d87b0998f7e85ecb1ef | Java | Julios1120/POO_UIA | /Practicas/P03/Ejercicio3.java | UTF-8 | 947 | 3.6875 | 4 | [] | no_license | import java.util.Scanner;
public class Ejercicio3{
public static void main(String[] args) {
Scanner reader = new Scanner (System.in);
int a=0,b=0;
int resultado;
System.out.println("Ingresa un multiplo de 5 para el valor de a:");
a=reader.nextInt();
if(a<=0)
System.out.println("valor no valido"... | true |
c9fccdb4109b09c6797b167fadcf28587aa9d74f | Java | karol-kaluza/Space-Challenge | /src/Rocket.java | UTF-8 | 3,075 | 3.03125 | 3 | [] | no_license | public class Rocket implements SpaceShip {
private int rocketCostMln;
private int weightOfRocketKg;
private int maxWeightWithCargo;
private double launchExplosionChancePercent;
private double landingCrushChancePercent;
private double maxCargoCarry;
private double currentCargoCarried... | true |
9e11266afba125966e5ba2319c495d90e65ce855 | Java | AndreyLatishko/testJDBC | /src/main/java/task/UniversityDataManager.java | UTF-8 | 3,956 | 2.8125 | 3 | [] | no_license | package task;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class UniversityDataManager implements AutoCloseable {
private Connection connection;
private Exercise exercise;
private Lesson lessons;
private Group groups;
ArrayList<Exercise... | true |
937b778d0e6e657d28edfb0125d2b33824366c15 | Java | zhuowei/appinventor-sources | /appinventor/blockslib/tests/openblocks/yacodeblocks/WorkspaceUtilsTest.java | UTF-8 | 4,774 | 2.28125 | 2 | [] | no_license | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the MIT License https://raw.github.com/mit-cml/app-inventor/master/mitlicense.txt
package openblocks.yacodeblocks;
import junit.framework.TestCase;
import org... | true |
0403a30f590bcb2a60794ef12e04c1394ed89d9a | Java | AHAzbh/Logistics-System-Simulator | /demo/src/test/java/com/example/demo/LogPointService.java | UTF-8 | 222 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package com.example.demo;
public interface LogPointService {
public String findAll();
public String findById(String id);
public String save(LogPoint logPoint);
public void deleteById(String id);
}
| true |
87d08eac537251ffae7528c5e12b5ed6a8479d66 | Java | jinkaiuse/IOT-Technical-Guide | /IOT-Guide-Token/src/main/java/iot/technology/token/jwt/JwtAuthenticationProvider.java | UTF-8 | 1,431 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package iot.technology.token.jwt;
import iot.technology.token.JwtAuthenticationToken;
import iot.technology.token.model.SecurityUser;
import iot.technology.token.model.token.JwtTokenFactory;
import iot.technology.token.model.token.RawAccessJwtToken;
import org.springframework.beans.factory.annotation.Autowired;
import... | true |
dc26f1997a74ec17ced173127bad584fdcca2efd | Java | Sridharreddy597/bcjdecember2016git | /HibernateInheritanceConcept/src/main/java/com/bcj/hibernate/Vechicle.java | UTF-8 | 702 | 2.421875 | 2 | [] | no_license | package com.bcj.hibernate;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
@Entity
public cl... | true |
c8e84cb29609294eec09d155f05369efdd5ba5f2 | Java | EducationActivity/Activity | /src/main/java/com/tryeverything/entity/Worker.java | UTF-8 | 1,169 | 2.578125 | 3 | [] | no_license | package com.tryeverything.entity;
import java.io.Serializable;
public class Worker implements Serializable {
private Integer workerId;
private String workerName;
private String identityCard;
private String phone;
public Integer getWorkerId() {
return workerId;
}
public void setWo... | true |
c23734aed6b3d5dc3c381e65b7c9443a022c0aad | Java | pdewan/util | /src/util/pipe/AConsoleModelStreamReader.java | UTF-8 | 1,042 | 2.9375 | 3 | [] | no_license | package util.pipe;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
// better for it to be an observable
public class AConsoleModelStreamReader implements Runnable {
BufferedReader bufferedReader;
String type;
ConsoleModel consoleMo... | true |
cef0a8a26597356fc968a077a0e4b742ad8433d9 | Java | be1zi/Notes | /src/main/java/notes/Helper/Enum/OperationEnum.java | UTF-8 | 80 | 1.867188 | 2 | [] | no_license | package notes.Helper.Enum;
public enum OperationEnum {
Success, Failure;
}
| true |
4647d70a0b704a32b839a9d0bf45e858d4be91f3 | Java | IPro7/Projet2017 | /ProjetSantiago2017/src/ControlleurSantiago/InterfacesController.java | UTF-8 | 1,425 | 2.4375 | 2 | [] | no_license | package ControlleurSantiago;
import BeanSantigao.*;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public abst... | true |
279e8ada7276e1b9241e63b0c5a9bd8e84ca933f | Java | sanjanag16/TravelG | /app/src/main/java/com/example/travelg/ScrollingActivity.java | UTF-8 | 5,740 | 2.078125 | 2 | [] | no_license | package com.example.travelg;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.ImageView;
import android.widget.TextView;
import ... | true |
b915cd536a0ebd7fc627d0ea6bdb4a686e6c7c96 | Java | zhongxingyu/Seer | /Diff-Raw-Data/20/20_d344db53fea2f09d4898eb9527ba9be9e594604f/Olap4jNodeConverter/20_d344db53fea2f09d4898eb9527ba9be9e594604f_Olap4jNodeConverter_s.java | UTF-8 | 12,172 | 2.25 | 2 | [] | no_license | /*
// $Id:$
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// Copyright (C) 2007-2009 Julian Hyde
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
... | true |
c5432503f0e3f62df0294d953619931f103ca2ad | Java | paarshan4800/dsa-problem-solving | /Binary Tree/FlattenBinaryTreeToLinkedList.java | UTF-8 | 2,726 | 4.09375 | 4 | [] | no_license | // Given the root of a binary tree, flatten the tree into a "linked list":
// The "linked list" should use the same TreeNode class where the right child
// pointer points to the next node in the list and the left child pointer is
// always null.
// The "linked list" should be in the same order as a pre-order traversal... | true |
8d5224ae50a37bd10869f58f1a8d5db989f104c3 | Java | Yzygenius/jianfuzengxiao | /output-code/com/jianfuzengxiao/pub/controller/AdminInfoController.java | UTF-8 | 3,333 | 1.851563 | 2 | [] | no_license | package com.jianfuzengxiao.pub.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotat... | true |
62b8471826a2f3b3bf8c6af7150b933479c8b922 | Java | bogdanghita/spotit-client-android | /SpotIT/app/src/main/java/com/it/spot/maps/main/MapUpdateCallbackClient.java | UTF-8 | 281 | 1.578125 | 2 | [
"MIT"
] | permissive | package com.it.spot.maps.main;
import com.it.spot.services.PolygonUI;
import java.util.List;
/**
* Created by Bogdan on 20/03/2016.
*/
public interface MapUpdateCallbackClient {
void updateMapStatus(List<PolygonUI> polygons);
void notifyRequestFailure();
}
| true |