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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6813c1e26266a82b8fcfcbb54e2642d625147874 | Java | GoogleCloudPlatform/cloud-debug-java | /third_party/antlr/antlr/ActionElement.java | UTF-8 | 792 | 2.328125 | 2 | [
"Apache-2.0",
"ANTLR-PD"
] | permissive | package antlr;
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.cs.usfca.edu
* Software rights: http://www.antlr.org/license.html
*
* $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/ActionElement.java#2 $
*/
class ActionElement extends AlternativeElement {
protected String acti... | true |
2f8d9ce2404b92e48ab156aeb70fc6d60037576e | Java | SweeftyZz/ManhuntCompass | /src/me/mcuper/compass/events/eventHandler.java | UTF-8 | 3,363 | 2.546875 | 3 | [] | no_license | package me.mcuper.compass.events;
import me.mcuper.compass.Main;
import org.bukkit.*;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import ... | true |
ab0c0b3212b478ddd356ec760e9866e6393ce4af | Java | zhazhahui666/grabby-back | /src/main/java/com/zzh/grabby/activiti/service/ActProcessService.java | UTF-8 | 359 | 1.703125 | 2 | [] | no_license | package com.zzh.grabby.activiti.service;
import com.zzh.grabby.activiti.entity.ActProcess;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author zzh
* @since 2019-01-06
*/
public interface ActProcessService extends IService<ActProcess> {
void addProcess(Integer ca... | true |
98f02ead8a9446fbcf56ab22e2634b9555f55518 | Java | vitaware/penpi2.0 | /penpi/src/main/java/org/penpi/subsys/search/OrderExceptionRecordSearchRepository.java | UTF-8 | 483 | 1.835938 | 2 | [] | no_license | package org.penpi.subsys.search;
import java.util.List;
import org.penpi.subsys.entity.OrderExceptionRecord;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
public interface OrderExceptionRecordSearchRepository extends ElasticsearchRepository<OrderExceptionRecord, Integer>{
OrderE... | true |
ea975bb3edcc1e725c3b10ce6b5dc6e3701ff158 | Java | Afrozaar/util-graphicsmagick | /src/main/java/com/afrozaar/util/graphicsmagick/GraphicsMagickImageIO.java | UTF-8 | 12,838 | 1.9375 | 2 | [] | no_license | package com.afrozaar.util.graphicsmagick;
import static java.lang.String.format;
import static java.util.Optional.ofNullable;
import com.afrozaar.util.Regex;
import com.afrozaar.util.graphicsmagick.data.ImageInfo;
import com.afrozaar.util.graphicsmagick.exception.GraphicsMagickException;
import com.afrozaar.util.grap... | true |
7b2f63bb5f036d2d8060b9d0ad839000a8ec3cda | Java | xiangxixids/pandaDoctorAndroid | /src/com/myReocrd/adapter/RecordActivityAdapter.java | UTF-8 | 2,917 | 2.328125 | 2 | [] | no_license | package com.myReocrd.adapter;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.pandadoctor.pandadoctor.R;
import com.utils.PandaGlobalName;
... | true |
fea9220d7035bbd373cc19fbd82284fca88e5dc8 | Java | suchitapatel116/Smart_Portables | /WEB-INF/classes/DealMatches.java | UTF-8 | 5,541 | 2.515625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.WebServlet;
@WebServlet("/DealMatches")
public class DealMatches extends HttpServlet
{
public static String HOME_DIR = System.getenv("ANT_HOME");
public static String DEAL_MATCHES_FILE = HOME_D... | true |
be769a409cd9440e4c59ba548b8bb054f0473ad9 | Java | meiwulang/spring-boot-distributed | /web/src/main/java/com/jdy/b2b/web/util/exception/ParamUnExpectException.java | UTF-8 | 301 | 1.734375 | 2 | [] | no_license | package com.jdy.b2b.web.util.exception;
/**
* Created by dugq on 2017/9/23.
*/
public class ParamUnExpectException extends RuntimeException {
private static final long serialVersionUID = -697463005000626191L;
public ParamUnExpectException(String message) {
super(message);
}
}
| true |
e4a5823ab08f2a6352824844303033963eb4fc8d | Java | flipkart-incubator/jersey2-guice | /jersey2-guice-impl/src/main/java/com/squarespace/jersey2/guice/GuiceServiceLocatorFactory.java | UTF-8 | 3,583 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2016 Squarespace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | true |
8a22660fa67a4e0e52bb1f76ff5c3a57cc56fbf3 | Java | calin-bodnar/weather-app | /WeatherApp/app/src/main/java/calin/bodnar/weatherapp/data/source/WeatherDataRepository.java | UTF-8 | 888 | 2.453125 | 2 | [] | no_license | package calin.bodnar.weatherapp.data.source;
import android.support.annotation.NonNull;
import calin.bodnar.weatherapp.data.model.WeatherData;
import calin.bodnar.weatherapp.data.source.remote.WeatherRemoteDataSource;
import io.reactivex.Flowable;
import static com.google.common.base.Preconditions.checkNotNull;
/**... | true |
c381b14f2b6ee1bbad604ab20a4b3b3f7a5722c4 | Java | jimm/babble | /src/test/ed/js/engine/TestHelper.java | UTF-8 | 250 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | // TestHelper.java
package ed.js.engine;
public class TestHelper {
public Object bar( Scope s ){
return 1;
}
public Object foo(){
return 3;
}
public Object foo( Scope s ){
return s.get( "y" );
}
}
| true |
7d01f34e9d65160e8b7ef5a1642eb0991afbfa9e | Java | supportingII/job4j_elementary | /test/ru/job4j/condition/PointTest.java | UTF-8 | 1,495 | 3.046875 | 3 | [] | no_license | package ru.job4j.condition;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class PointTest {
@Test
public void whenNotZero() {
Point firstP = new Point(15, 3);
Point secondP = new Point(12, 5);
double expect = 3.605551275463989;
doubl... | true |
b99bcc0abbdff3385afe4831a2f321b7bee5f543 | Java | aniu2002/myself-toolkit | /sparrow-supports/sparrow-service/src/main/java/com/sparrow/service/interceptor/MethodInterceptorProxy.java | UTF-8 | 2,501 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.sparrow.service.interceptor;
import java.util.ArrayList;
import java.util.List;
import com.sparrow.core.aop.MethodInterceptor;
import com.sparrow.core.utils.ClassUtils;
import com.sparrow.service.bean.BeanInitialize;
import com.sparrow.service.bean.ContextAware;
import com.sparrow.service.config.AopConfig... | true |
ffd714fb76b8c63ef68e4ad82a9fd10d6a120f2b | Java | nuxeo-archives/maven-nuxeo-plugin | /src/main/java/org/nuxeo/build/filters/CategoryFilter.java | UTF-8 | 2,394 | 1.828125 | 2 | [] | no_license | /*
* (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www... | true |
5ea9f6a23ee5c0deb865c53196d9187cd32361ee | Java | cckmit/crmd-platform | /.svn/pristine/5e/5ea9f6a23ee5c0deb865c53196d9187cd32361ee.svn-base | UTF-8 | 1,429 | 2.015625 | 2 | [] | no_license | package com.ffcs.crmd.platform.meta.service;
import java.util.List;
import com.ffcs.crmd.platform.core.ddd.service.ICrmDomGenericService;
import com.ffcs.crmd.platform.meta.entity.DynamicStyle;
/**
* @author LAIYONGMIN-PC
*
*/
public interface IDynamicStyleService extends ICrmDomGenericService<DynamicStyle, Long>... | true |
7337ac7eba8ab75950ecabc17067402940d78899 | Java | deusxmach1na/GroupMembership | /GroupMembership/src/com/kleck/GroupMembership/MembershipList.java | UTF-8 | 1,289 | 2.9375 | 3 | [] | no_license | package com.kleck.GroupMembership;
import java.io.Serializable;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
//stores the membershiplist for 1 process
//access by processId
public class MembershipList implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
p... | true |
4046d53929af8cd6507f7762c52fda78ce91855b | Java | milensky/sparql-composer | /src/main/java/bg/semantic/sparql/querybuilder/blocks/BlockFactory.java | UTF-8 | 1,182 | 2.25 | 2 | [] | no_license | package bg.semantic.sparql.querybuilder.blocks;
import java.util.List;
import bg.semantic.sparql.resources.QueryVariable;
import bg.semantic.sparql.resources.RdfResource;
import bg.semantic.sparql.resources.URIResource;
import bg.semantic.sparql.statements.FilterStatement;
import bg.semantic.sparql.statements.QueryCo... | true |
824328d0a696dc2155e7f9672c34ea2c9a67c8bf | Java | tzfun/vr360-panorama-web | /src/main/java/com/beifengtz/vr360/POJO/DO/User.java | UTF-8 | 3,083 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.beifengtz.vr360.POJO.DO;
/**
* @Author: beifengtz
* @Desciption:
* @Date: Created in 18:36 2018/5/12
* @Modified By:
*/
public class User {
private int user_id;//用户表id (对应数据库)
private String user_name;//用户名
private String user_sex;//用户性别
private String authentication_type_id;//(int... | true |
642381de5fb189d5d84781bebb46f863a249a0ca | Java | mrthomas108/core-Wakanda | /Server/tests/waf/widgets/component/src/test/java/org/wakanda/qa/widgets/component/bugs/TestCasesAdvanced.java | UTF-8 | 3,124 | 2.09375 | 2 | [] | no_license | package org.wakanda.qa.widgets.component.bugs;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.net.URISyntaxException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.wakanda.common.Paths;
import org.wakanda.common.server.AdminComma... | true |
ac2fe44af6091a7388ac31310ba78a34013df0ab | Java | Mardas/coordinates-converter-sb | /src/main/java/com/coordinatesconvertersb/coordinatesconvertersb/toolsForConvertion/ConverterFactory.java | UTF-8 | 517 | 2.375 | 2 | [] | no_license | package com.coordinatesconvertersb.coordinatesconvertersb.toolsForConvertion;
import com.coordinatesconvertersb.coordinatesconvertersb.model.CoordinatesFormat;
public class ConverterFactory {
public Converter produce (CoordinatesFormat coordinatesFormat){
if(CoordinatesFormat.DMS.equals(coordinatesFormat))... | true |
a4b23a7e201a6ab430c2c54e502ec1c8703536bc | Java | mkassaian/Croadslist | /app/src/main/java/io/ocf/matink/croadslist/Main.java | UTF-8 | 1,852 | 1.867188 | 2 | [] | no_license | package io.ocf.matink.croadslist;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class Main extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | true |
8a58e216b8ed6d4a0aa06fe12db9966ba255689f | Java | flywind2/joeis | /src/irvine/oeis/a163/A163615.java | UTF-8 | 354 | 2.515625 | 3 | [] | no_license | package irvine.oeis.a163;
import irvine.oeis.LinearRecurrence;
/**
* A163615 <code>a(n) = ((1 + 3*sqrt(2))*(4 + sqrt(2))^n + (1 - 3*sqrt(2))*(4 - sqrt(2))^n)/2</code>.
* @author Sean A. Irvine
*/
public class A163615 extends LinearRecurrence {
/** Construct the sequence. */
public A163615() {
super(new lo... | true |
668647c4971dc886cda51b3491f7314e30c34440 | Java | bartprokop/security-converter | /src/test/java/com/example/appengine/vertxhello/JwkToPemTest.java | UTF-8 | 1,362 | 2.171875 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2019 Bart Prokop
*
* 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 ... | true |
88883b72777b171c54d0c43e63303af0958154d6 | Java | WalterHolley/FunSlingers | /src/com/redwrench/funslingers/GameLib.java | UTF-8 | 1,625 | 3.171875 | 3 | [] | no_license | package com.redwrench.funslingers;
import java.util.Random;
public class GameLib {
public static final int TIMER_MINIMUM = 1000;
public static final int TIMER_MAXIMUM = 10000;
private boolean gameOver = false;
private boolean canShoot = false;
private boolean shotFired = false;
private boolean gameStarted = fal... | true |
dd9ae28c0cad5b0e38080a97dec0860874022c8d | Java | YINJIALING/developReview | /algorithm/src/medium/二叉搜索树中第K小的元素.java | UTF-8 | 840 | 3.5 | 4 | [] | no_license | package medium;
import java.util.ArrayList;
import java.util.List;
import common.TreeNode;
import medium.test.TreeNodeCreator;
/**
* 二叉搜索树的中序遍历就是升序输出
*
* @author yinjialing
*
*/
public class 二叉搜索树中第K小的元素 {
public static void main(String[] args) {
TreeNode root=new TreeNodeCreator().creator();
System.out.... | true |
8be1267804a2af394d6c6704afdc5e6d91a34813 | Java | DashaShabalina/lab5-socks-DashaShabalina-main | /lab5-socks-DashaShabalina-main/src/main/java/StartProxy.java | UTF-8 | 785 | 2.75 | 3 | [] | no_license | import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class StartProxy {
private static final Logger log = LoggerFactory.getLogger(StartProxy.class);
private static final String host = "127.0.0.1";
private static final int dnsPort = 12346;
public static void main (String[] args) {
Pr... | true |
10d281cba94f07b4e4dc06188ff8697bbbb48b32 | Java | abhinavkrdeeps/hp-gaurav | /src/main/java/com/virtusa/happinessbasket/dao/ProductDao.java | UTF-8 | 335 | 2.0625 | 2 | [] | no_license | package com.virtusa.happinessbasket.dao;
import java.util.List;
import com.virtusa.happinessbasket.model.Product;
public interface ProductDao {
List<Product> getAllProduct();
Product deleteProduct(Product product);
Product addProduct(Product product);
Product updateProduct(Product product);
Product getProductB... | true |
1abf89a353b9e9de997c7939c6aa4baefa88aaa7 | Java | 0x8801/commit | /contributions/odys1528/Java/Fundamentals/2016-10-24.java | UTF-8 | 209 | 2.078125 | 2 | [] | no_license | The distinction between overloading and overriding methods
The trade-off between short and descriptive names
Metadata: creating a user-defined file attribute
Constant notation
Using an interface as a parameter | true |
194171ba73c395ce5281126c76650da2659c8ea8 | Java | dbcoder91/myspringSource | /src/main/java/com/dbcoder/enumtest/TestMain.java | UTF-8 | 1,665 | 3.015625 | 3 | [] | no_license | package com.dbcoder.enumtest;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
public class TestMain {
public static AtomicLong stressDataCursor = new AtomicLong(0);
public static void main(String[] args) {
List<Long> stres... | true |
62a9df6d2bcf2acd20eea1ad3c51da8d887462b9 | Java | Ankita-Malani/Vm-employee-api | /src/main/java/com/vm/demo/boundary/Task.java | UTF-8 | 604 | 2.21875 | 2 | [] | no_license | package com.vm.demo.boundary;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
@Data
@Getter
@Setter
@Entity
@RequiredArgsConstructor
@Table(name = "task")
public class Task {
@Id
@GeneratedValue
@Column(name = "TaskId")
... | true |
1b56aea39cc548de6543f4e5a5cbb876d6a015d3 | Java | tekmark/MediaHub | /app/src/main/java/com/example/chao/mediahub/ClockChoosePlaylistDialog.java | UTF-8 | 4,491 | 2.484375 | 2 | [] | no_license | package com.example.chao.mediahub;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog;
import android.util.Log;
impo... | true |
e6d12052079ee6aa420d8da06831bcfeac35a731 | Java | joshminton/Advent-Devotionals | /app/src/main/java/com/example/adventuality/DevotionalActivity.java | UTF-8 | 6,030 | 2.109375 | 2 | [] | no_license | package com.example.adventuality;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.SharedPreferences;
import android.media.Image;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
imp... | true |
b7f3abe2cacf1ae417caa561a7200159bd62e879 | Java | Siyubu/OffiCient | /app/src/main/java/edu/cmu/officient/networktasks/CoursesListTask.java | UTF-8 | 2,383 | 2.171875 | 2 | [] | no_license | /*
*
* * @author Segla Boladji Vinny Trinite Adjibi
* * AndrewID : vadjibi
* * Program : MSIT
* *
* * On my honor, as a Carnegie-Mellon Africa student, I have neither given nor received unauthorized assistance on this work.
*
*/
package edu.cmu.officient.networktasks;
import android.view.View;
import and... | true |
743010e8b27a0cd72f107c63394a869dcf1693af | Java | patrickjh/DataStructuresAndAlgorithms | /chapter2Arrays/Question_2_1Test.java | UTF-8 | 716 | 3.1875 | 3 | [] | no_license | package dataStructuresAndAlgorithms.chapter2Arrays;
import static org.junit.Assert.*;
import org.junit.Test;
public class Question_2_1Test {
@Test
public void getMaxReturnsHighestKey() {
HighArray2_1 arr = new HighArray2_1(50);
arr.insert(77);
arr.insert(99);
arr.insert(44);
arr.insert(55);
arr.insert... | true |
d6f7e481e378ab88d4426b798bdbd6da136a015b | Java | ca4los-palalia/vd-cpl4 | /VoltageDrop/src/main/java/com/cplsys/aisa/dao/ConductorTypeDAO.java | UTF-8 | 432 | 1.953125 | 2 | [] | no_license | package com.cplsys.aisa.dao;
import java.util.List;
import com.cplsys.aisa.domain.ConductorType;
public interface ConductorTypeDAO {
void save(ConductorType conductorType);
void delete(ConductorType conductorType);
public List<ConductorType> getAll();
public String[] getAllOnlyNombres();
... | true |
cbd4d5985068b416afe7dea1821becf007af3be0 | Java | bfiorito/core-v2 | /workspace/libraries/javax.measure_0.9.5/src/javax/measure/unit/SystemOfUnits.java | UTF-8 | 1,613 | 2.84375 | 3 | [] | no_license | /**
* Copyright (c) 2005-2010, Jean-Marie Dautelle, Werner Keil
* All rights reserved.
*
* See LICENSE.txt for the Specification License
*/
package javax.measure.unit;
import java.util.HashSet;
import java.util.Set;
/**
* <p> This class represents a system of units, it groups units together
* for his... | true |
2e1d42685e0444581858fc24b7089c479ec4bcbd | Java | unrealgamer/Java-JPS | /JavaJPS/src/com/unreal/jps/Grid.java | UTF-8 | 5,396 | 3.40625 | 3 | [] | no_license | package com.unreal.jps;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Shane
*/
public class Grid {
private GridNode[][] myNodes;
private G... | true |
56961b0fd17de5541377062767a226921bb8de7a | Java | Sreekrishna2001/Employee_Attendance_Monitoring_System | /empAttendancemanagementsystem/src/main/java/empAttendancemanagementsystemadminpkd/addempservlet.java | UTF-8 | 2,145 | 2.3125 | 2 | [] | no_license | package empAttendancemanagementsystemadminpkd;
import java.io.IOException;
import java.sql.*;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;... | true |
f7d6db03f1d3fa72f3e433c5727acb4723f7e13c | Java | rookiezq/DesignPatterns | /src/main/java/com/rookied/dp/factory/simplefactory/AbstractFactory.java | UTF-8 | 550 | 3.140625 | 3 | [] | no_license | package com.rookied.dp.factory.simplefactory;
/**
* @author zhangqiang
* @date 2021/4/26
*/
public class AbstractFactory {
public AbstractKeyBoard creatKeyBoard(String brand){
if("HP".equals(brand)){
return new HPKeyboard();
}else if("DELL".equals(brand)){
return new DELL... | true |
d4b50522c8d76fb9d46cbc8f973d5761101c631a | Java | ChoiBin/study | /springboot/aop/src/main/java/com/choi/aop/UserController.java | UTF-8 | 663 | 1.914063 | 2 | [] | no_license | package com.choi.aop;
import com.choi.aop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author : choibin
* @date : 13:38 2019/11/26 0026
*/
@RestCo... | true |
cd9c0728173af3598ba06fa6cac7f551d4a622fe | Java | excbt/rusmetrics | /src/main/java/ru/excbt/datafuse/nmk/data/model/V_LastDataDateAggr.java | UTF-8 | 952 | 2.046875 | 2 | [] | no_license | package ru.excbt.datafuse.nmk.data.model;
import org.hibernate.annotations.Subselect;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
@Entity
@Subselect("select cont_zpoint_id, last_data_date, last_data_date_time, data_type, mv_refresh_date " +
" from portal.mv_last_data_... | true |
2fef6ddc7ae4f5705d0a05ac3f9045fa80c71ceb | Java | tonyfountaine/salesforce | /salesforce/src/main/java/nz/co/trineo/salesforce/BackupDAO.java | UTF-8 | 934 | 2.21875 | 2 | [] | no_license | package nz.co.trineo.salesforce;
import java.io.Serializable;
import java.util.List;
import javax.inject.Inject;
import org.hibernate.HibernateException;
import org.hibernate.SessionFactory;
import org.jvnet.hk2.annotations.Service;
import io.dropwizard.hibernate.AbstractDAO;
import nz.co.trineo.model.Backup;
@Ser... | true |
5a4a4522a21755c79963b933c4a24eb9b71ee23f | Java | bellmit/eye-demo | /app/src/main/java/com/cheersmind/cheersgenie/main/entity/TopicDetail.java | UTF-8 | 1,320 | 2.15625 | 2 | [] | no_license | package com.cheersmind.cheersgenie.main.entity;
import com.cheersmind.cheersgenie.main.ioc.InjectMap;
/**
* 话题详细
*/
public class TopicDetail {
//话题ID
@InjectMap(name = "topic_id")
private String topicId;
//话题名称
@InjectMap(name = "topic_name")
private String topicName;
//图片
@Inject... | true |
25d81e5b674d6785ff1eb8583b91ddc94895d780 | Java | Valak8/Entornos-Git | /TrabajoEntornos/src/paqtrabajo/Trabajo.java | UTF-8 | 403 | 2.375 | 2 | [] | no_license | package paqtrabajo;
public class Trabajo {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hola mundo!!!");
System.out.println("Esto es un cambio");
System.out.println("Esto es un cambio de el usuario1");
System.out.println("Hola soy Marta");
System.out.pri... | true |
b172bc0315bbb630076fe4dab6be7f982f76c9c8 | Java | qsy0000001/com.xh.workcode.demo | /mybatis_demo/src/main/java/com/xh/mybatis/demo/Server.java | UTF-8 | 609 | 1.773438 | 2 | [] | no_license | package com.xh.mybatis.demo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
/**
* 转码模板微服务程序入口
* @author : zhouliming
* @version 1.0
... | true |
3133efe7d7edf37f873ea10ea1d889151aa79ef9 | Java | khowal2502/PractCodes | /src/cc/DISHLIFE.java | UTF-8 | 857 | 3.171875 | 3 | [] | no_license | package cc;
import java.util.HashMap;
import java.util.Scanner;
public class DISHLIFE {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int T = scan.nextInt();
for(;T>0;--T){
int N = scan.nextInt();
int K = scan.nextInt();
int maxCount = 0;
boolean all = true;
... | true |
fb21a718bf65309f71809f65e6fbe099da8cf763 | Java | chengluxi1818/program-practising | /Substring with Concatenation of All Words - Java/src/Solution.java | UTF-8 | 1,783 | 3.203125 | 3 | [] | no_license | import java.util.*;
public class Solution {
public static List<Integer> findSubstring(String s, String[] words) {
List<Integer> res = new ArrayList<Integer>();
if(words.length == 0) return res;
HashMap<String, Integer> map = new HashMap<>();
int multi = wo... | true |
be4f03b51d42532eeb9fbae74d3999cb422dbd2d | Java | AntonVoloshyn92/JsonSer | /src/scratch_1.java | UTF-8 | 543 | 2.46875 | 2 | [] | no_license | import java.lang.reflect.Method;
import java.util.Map;
enum scratch_1 {
Instance;
int A1 = 5;
interface In1{
void get();
}
In1 sh1 = new In1() {
String myString = "ha - ha";
@Override
public void get() {
}
};
In1 a = ()->{
//
};
... | true |
fb3a3291528651ff4e2171ec5ef82eaaf554c1da | Java | jneug/schule-projekte | /OOP/Java/05-Vererbung_Kirchen/KatholischeKirche.java | UTF-8 | 1,774 | 2.890625 | 3 | [
"MIT"
] | permissive |
/*aufg*
public class KatholischeKirche {
private int anzahlPlaetze;
private String prediger;
private int naechsterGottesdienst;
private int naechsteFirmung;
public KatholischeKirche( String pPrediger, int pAnahlPlaetze,
int pNaechsterGottesdienst, int pNaechsteFi... | true |
0a55a96cb1dd9865d48cfa3d47bc5635221c8389 | Java | chatzbabis/bootcamp | /askisakiaWeekend/MonthSeason.java | UTF-8 | 569 | 3.078125 | 3 | [] | no_license | public class MonthSeason{
public static void main(String [] args){
String x=args[0];
if (x.equals("Jenaury") || x.equals("febraury") || x.equals("December"))
System.out.println("Winter");
else if (x.equals("March") || x.equals("April") || x.equals("May"))
System.out.println("Spring");
else if (x.... | true |
c4ce830fbf5155302c2f9a3107017290c3510692 | Java | sonuahluwalia/DataStructuresAndAlgorithmsInJava | /structure/Pedigree.java | UTF-8 | 1,797 | 3.34375 | 3 | [] | no_license | import structure.*;
public class Pedigree
{
public static void main(String args[])
{
// ancestors of George H. W. Bush
// indentation is provided to aid in understanding relations
BinaryTree JSBush = new BinaryTree("Rev. James");
BinaryTree HEFay = new BinaryTree("Harriet"... | true |
f63a764ad8c16bf1ef67d6c73be708df3e6cdef5 | Java | betaload/LeetCode | /src/main/java/com/squallsun/leetcode/AtoI2.java | UTF-8 | 973 | 3.25 | 3 | [] | no_license | package com.squallsun.leetcode;
public class AtoI2 {
public int atoi(String str) {
if (str == null || str.length() == 0) {
return 0;
}
str = str.trim();
int len = str.length();
int neg = 1;
int startIndex = 0;
if(str.charAt(0) == '-') {
... | true |
c450b36c4c8eb3caf3e89cc2e2178212d5135002 | Java | ItaiKatz1/Engine | /Engine/src/Model/Term.java | UTF-8 | 4,118 | 3.625 | 4 | [] | no_license | package Model;
public class Term {
private String word;
private int tf; // the amount of times a word appeared in a document
private String docOfAppearance; // the name of the doc where the term was observed at
private boolean bigLetterStarter;
private boolean isHeader; //checks if the ter... | true |
aacb9394e8127c2c9c10ef4a0c5ce3600ad6f5fb | Java | mertkolgu/JavaGuide | /src/com/javase/_54/staticnestedclass/OuterClassTest02.java | UTF-8 | 492 | 3.546875 | 4 | [] | no_license | package com.javase._54.staticnestedclass;
class Mathematic {
private static double PI = Math.PI;
public static class Alan {
public static void daireAlan(int yariCap) {
System.out.println("Dairenin alanı = " + (PI * yariCap * yariCap));
}
}
}
public class OuterClassTest02 {
... | true |
c34220ba9cfb3bb5742b75bdb039c70ad21b3bb5 | Java | My-Belief/MyBlog | /src/main/java/cn/lijinbo/mapper/BlogImfMapper.java | UTF-8 | 315 | 1.671875 | 2 | [] | no_license | package cn.lijinbo.mapper;
import cn.lijinbo.pojo.BlogImf;
import cn.lijinbo.pojo.PageInfo;
import java.util.List;
public interface BlogImfMapper {
List<BlogImf> selectAllBlog();
void insertBlogArticle(BlogImf record);
void deleteByBno(Integer bno);
BlogImf showArticleByBno(Integer bno);
} | true |
25955a10fa82d0d3c503731ca6d944dd95aa2dec | Java | octawizard/game-backend | /repository-contract/src/main/java/com/robertomanca/game/repository/ScoreRepository.java | UTF-8 | 350 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.robertomanca.game.repository;
import com.robertomanca.game.model.Score;
import com.robertomanca.game.model.User;
import java.util.List;
/**
* Created by Roberto Manca on 11-May-18.
*/
public interface ScoreRepository {
void saveScore(int levelId, int score, User user);
List<Score> getHighestS... | true |
f0f56af4dbb547bafc254f8cf8d25b7e22988bf8 | Java | onWayLa/Java_learning_Code | /src/treeSet/TreeSetTest.java | UTF-8 | 659 | 2.9375 | 3 | [] | no_license | package treeSet;
import java.util.*;
/**
* @ClassName:TreeSetTest
* @Description:
* @Author: liuanhai
* @Date 2020/8/25 0025
* @Version 1.0
*/
public class TreeSetTest {
public static void main(String[] args){
SortedSet<Item> parts = new TreeSet<>();
parts.add(new Item("Toaster", 1234));
... | true |
6f87dd9d4b4f5b0a76f0d721160bf199c3d684d4 | Java | zion64/cas | /cas-management-webapp-support/src/test/java/org/jasig/cas/services/web/ManageRegisteredServicesMultiActionControllerTests.java | UTF-8 | 3,365 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.jasig.cas.services.web;
import org.jasig.cas.services.DefaultServicesManagerImpl;
import org.jasig.cas.services.InMemoryServiceRegistryDaoImpl;
import org.jasig.cas.services.RegisteredServiceImpl;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUni... | true |
c4b4c924b19c2188c68e37415ae89b4fed6d5e6e | Java | yudahendriawan/TugasPCDImageColouring | /src/tugaspcdimagecolouring/Main.java | UTF-8 | 40,876 | 1.984375 | 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 tugaspcdimagecolouring;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Frame... | true |
2b04009e177ef3cf91784e98432838882bccfd09 | Java | MichelSc/common.moplaf | /common.moplaf.job/com.misc.common.moplaf.job.emf/src/com/misc/common/moplaf/job/Job.java | UTF-8 | 7,629 | 1.710938 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2017, 2018 Michel Schaffers and others.
* 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 distributio... | true |
b297aade8e90dc96b8237d9275ab3cb3f1fdf2b2 | Java | WillySeahh/main | /src/main/java/seedu/eylah/diettracker/storage/MyselfStorage.java | UTF-8 | 1,414 | 2.9375 | 3 | [
"MIT"
] | permissive | package seedu.eylah.diettracker.storage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import seedu.eylah.commons.exceptions.DataConversionException;
import seedu.eylah.diettracker.model.Myself;
import seedu.eylah.diettracker.model.ReadOnlyMyself;
/**
* Represents a storage for {... | true |
b16c3c121283034714742b515c21adf03ff31582 | Java | GabLast/Proyecto-Final-P1 | /Proyecto Final P1/src/logica/Jurado.java | UTF-8 | 1,034 | 2.4375 | 2 | [] | no_license | package logica;
public class Jurado extends Persona {
private String areaEstudio;
private boolean presidente;
private int participaciones;
public Jurado(String cedula, String nombre, String telefono, String direccion, String sexo, String gradoAcademico,
Evento evento, String areaEstudio, boolean pres... | true |
7aee7ccf25ac3f05a594fdbe01e2b2a6e11fc7ea | Java | harshchiki/Algorithms-Practise | /src/main/java/otherproblems/GCD.java | UTF-8 | 448 | 3.5 | 4 | [] | no_license | package otherproblems;
public class GCD {
int a,b;
GCD(int a, int b){
this.a = a;
this.b = b;
}
int getGCD(int x, int y) {
if(x == 0 || y == 0) {
return 0;
}
if(x == 1 || y == 1) {
return 1;
}
if(x == y) {
return x;
}
if(x>y) {
return getGCD(x-y, y);
}else {
return getGCD(y-x... | true |
e89514798a28366c96a74471b6174e0ba61bf296 | Java | hacidoganilbars/vetorelDersler | /Vektorel/srcyeni/haci/dogan/ilbars/ders4/ornek3/Araba.java | UTF-8 | 642 | 2.796875 | 3 | [] | no_license | package haci.dogan.ilbars.ders4.ornek3;
public class Araba {
private float motor;
private String marka;
private String renk;
protected float getMotor() {
return motor;
}
protected void setMotor(float motor) {
this.motor = motor;
}
protected String getMarka() {
return marka;
}
pro... | true |
07572a23adf728043d8b34e5b5ad1b6cc233fdcb | Java | JakduK/jakduk-batch | /src/main/java/com/jakduk/batch/processor/GalleryCheckNameProcessor.java | UTF-8 | 1,132 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.jakduk.batch.processor;
import com.jakduk.batch.common.Constants;
import com.jakduk.batch.model.db.Gallery;
import org.apache.commons.lang3.StringUtils;
import org.springframework.batch.item.ItemProcessor;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
/**
* Created by pyo... | true |
ac07006a4f1bdfe7e3ab32af08922e41d80f5d47 | Java | sunbenjin/hjyFileSystem | /src/main/java/opensource/capinfo/web/FileInputConverter.java | UTF-8 | 1,904 | 2.03125 | 2 | [] | no_license | package opensource.capinfo.web;
import opensource.capinfo.GsonUtils;
import opensource.capinfo.config.ApplicationProperties;
import opensource.capinfo.entity.FileOutInfo;
import opensource.capinfo.entity.FileOutUploader;
import opensource.capinfo.entity.SysResourcesFilesEntity;
import opensource.capinfo.utils.FileOutB... | true |
7f12fd7e7450f8e3014a3c3681514f1040f7485b | Java | gorcajo/hopla-techtest | /src/main/java/com/example/techtest/security/BearerTokenAuthorizationInterceptor.java | UTF-8 | 1,537 | 2.265625 | 2 | [] | no_license | package com.example.techtest.security;
import com.example.techtest.exception.UnauthorizedException;
import com.example.techtest.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterc... | true |
c6e53ca9af954366e0f628c672d6bdaf65bd8a6a | Java | nspduanlei/MsPro1 | /uilibrary/src/main/java/com/app/dl/uilibrary/tab/Tab.java | UTF-8 | 1,049 | 2.34375 | 2 | [] | no_license | package com.app.dl.uilibrary.tab;
public class Tab{
private int mIconNormalResId;
private int mIconPressedResId;
private int mNormalColor;
private int mSelectColor;
private String mText;
public Tab setText(String text){
mText = text;
return this;
}
public Tab setNormal... | true |
c8fafe883abed0e8eb9d15bdf50431357666c230 | Java | lihuajun526/integral | /common/src/main/java/com/operational/platform/common/constant/VipPlatform.java | UTF-8 | 546 | 1.84375 | 2 | [] | no_license | package com.operational.platform.common.constant;
public enum VipPlatform {
Youku("youku", "youku.com"),
Iqy("iqy", "iqiyi.com"),
Iqy1("iqy", "pps.tv"),
Txsp("txsp", "qq.com"),
PPLive("pplive", "pptv.com"),
Mgtv("mgtv", "mgtv.com"),
Ls("ls", "le.com"),
Souhu("souhu", "sohu.c... | true |
53b81289e374b43383c46b37c547311fe542eacc | Java | argesis13/iSpit | /src/iSpit/Bullet.java | UTF-8 | 3,316 | 3.734375 | 4 | [] | no_license | package iSpit;
import java.awt.Graphics2D;
import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;
/**
* Class used for creating bullet instances. A bullet hurts when touched.
* Ouch!
*
* @author Dan-Eduard Petrescu
*
*/
public class Bullet implements Commons {
// INSTANCE VARIABLES
// ... | true |
b74b33d77a9d417eeb2b6a61f2a6838b8b04cab5 | Java | ngonzalez91/examen-nicolas-gonzalez | /src/test/java/hellocucumber/steps/Flight/FlightPurchaseSteps.java | UTF-8 | 1,545 | 2.203125 | 2 | [] | no_license | package hellocucumber.steps.Flight;
import cucumber.api.PendingException;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import hellocucumber.Utils.Utils;
import hellocucumber.pageObjects.Accommodation.PurchaseAccommodationPage;
import hellocucumber.pageObjects.Flight.PurchaseFlightPage;
import he... | true |
02ed3a5fd24c1a098137dc71c86cba60e57dfa77 | Java | PQVy/Android | /MangementDocumentWithSQlite/MD/app/src/main/java/com/kemofo/md/AdapterDocList.java | UTF-8 | 2,561 | 2.21875 | 2 | [] | no_license | package com.kemofo.md;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... | true |
a2214f2508115b2c2dc24f5fc537dbf9d5aedc7b | Java | clojens/DiscoveryEnvironmentBackend | /libs/metadactyl/src/main/java/org/iplantc/workflow/integration/json/TitoIntegrationDatumUnmarshaller.java | UTF-8 | 1,202 | 2.40625 | 2 | [] | no_license | package org.iplantc.workflow.integration.json;
import org.iplantc.persistence.dto.data.IntegrationDatum;
import org.json.JSONException;
import org.json.JSONObject;
/**
*
* @author Kris Healy <healyk@iplantcollaborative.org>
*/
public class TitoIntegrationDatumUnmarshaller implements TitoUnmarshaller<Integrat... | true |
c1408a739fc7ea1599aaebd64785285053436fc0 | Java | supermao1013/study-demo | /dalomao-springboot/src/main/java/com/dalomao/springboot/core/service/impl/BaseServiceImpl.java | UTF-8 | 465 | 1.710938 | 2 | [] | no_license | package com.dalomao.springboot.core.service.impl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dalomao.springboot.core.service.BaseService;
/**
* 基础service实现类
*
* @param <M> mapper
* @param <T> 实体类
* @author maohw
* @since... | true |
3aef6f52af8a04aca5ed8fc2aaf47c8967c5b829 | Java | zhangyaox/tensquare | /tensquare_search/src/main/java/com/zhangyaoxing/search/service/ArticleService.java | UTF-8 | 1,125 | 1.875 | 2 | [] | no_license | package com.zhangyaoxing.search.service;
import com.tensquare.common.domain.StatusCode;
import com.zhangyaoxing.search.dao.ArticleDao;
import com.zhangyaoxing.search.pojo.Article;
import entity.PageResult;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.d... | true |
a5f4ef6e0f1be3aacbd2cfb4d73ebb3e2c0bac4e | Java | rjpacket/IFrameWork | /app/src/main/java/com/rjp/fastframework/FrameLayoutB.java | UTF-8 | 1,151 | 2.15625 | 2 | [] | no_license | package com.rjp.fastframework;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.FrameLayout;
/**
* author: jinpeng.ren create at 2019/11/13 16:25
* email: jinpeng.ren@11bee.com
*/
public class FrameLayoutB extends Fram... | true |
fca977475eaca70e66584fe769cae99d36e6dcc0 | Java | rubenski/ICTCursus-Spring | /src/main/java/nl/codebasesoftware/produx/domain/dto/entity/ExperienceEntityDTO.java | UTF-8 | 756 | 2.140625 | 2 | [] | no_license | package nl.codebasesoftware.produx.domain.dto.entity;
/**
* Created with IntelliJ IDEA.
* User: rvanloen
* Date: 27-8-13
* Time: 16:48
* To change this template use File | Settings | File Templates.
*/
public class ExperienceEntityDTO extends DomainEntityDTO {
private Long id;
private String message;
... | true |
da275fa8a9c02fe03d2a0704bb2c25558940607e | Java | EdwardChen28/Chess-Game | /Pieces/Superman.java | UTF-8 | 2,849 | 3.921875 | 4 | [] | no_license | import java.awt.*;
import java.util.ArrayList;
/**
* Created by Edward on 2/19/2015.
*/
public class Superman extends Piece {
/**
* Constructor to build a Rook piece with color and square position
* @param color
* @param newSquare
*/
public Superman(Color color, Square newSquare, String n... | true |
3252dff8ef5cdd096b14a8ad3096305e5a95bee7 | Java | Weimore/MyAndroidDemos | /MyModelDemos/app/src/main/java/com/example/mymodeldemos/utils/imageutils/IImageLoaderStrategy.java | UTF-8 | 337 | 1.882813 | 2 | [] | no_license | package com.example.mymodeldemos.utils.imageutils;
import android.content.Context;
import android.view.View;
/**
* Created by 吴城林 on 2017/8/21.
*/
public interface IImageLoaderStrategy {
void showImage( View v, String url, ImageLoaderOptions options);
void showImage(View v,int drawable,ImageLoaderOptions o... | true |
a959193711b8c76316fe208d436f4f37cad588ad | Java | albaaparicio12/sdi-entrega2-2021-102-2021-214 | /sdi-entrega2-test-2021-102-2021-214/src/com/uniovi/tests/pageobjects/PO_OffersView.java | UTF-8 | 4,998 | 2.125 | 2 | [] | no_license | package com.uniovi.tests.pageobjects;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class PO_OffersView extends PO_NavView{
public static void addOffer(WebDriver driver, String titulop, String detallesp, double preciop, bo... | true |
7dc411a9b4dfaa24e575b872f5e6bb6747219e3a | Java | kaernst/dartmouthcoach | /src/cs67proj/HanLebNLTicketInfo.java | UTF-8 | 29,306 | 2.3125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cs67proj;
/**
*
* @author kernst
*/
public class HanLebNLTicketInfo extends javax.swing.JFrame {
private String dept;
... | true |
b16cbc46c5f039d9e159965b2666b8f63bd1292f | Java | geekyarik/schedule-manager | /schedule-manager-impl/src/main/java/com/ystan/schedule/controllers/SchoolControllerImpl.java | UTF-8 | 1,315 | 2.328125 | 2 | [] | no_license | package com.ystan.schedule.controllers;
import com.ystan.schedule.models.SchoolDTO;
import com.ystan.schedule.services.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.Re... | true |
02b652a74ad013b371f94df4c921359ce25d4b5d | Java | kitsix/AllProMonitoring | /app/src/main/java/com/allpro_monitoring/ClientView.java | UTF-8 | 3,500 | 2.140625 | 2 | [] | no_license | package com.allpro_monitoring;
import android.content.Intent;
import android.view.View.OnClickListener;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
public class Clie... | true |
62399f66b224c5ccd2870739c436866b69481c4d | Java | quyf/maven_demo | /src/main/java/cn/quyf/demo/socket/rpcframework/HelloServiceImpl.java | UTF-8 | 198 | 2.078125 | 2 | [] | no_license | package cn.quyf.demo.socket.rpcframework;
public class HelloServiceImpl implements HelloService {
@Override
public String hello(String name) {
return "Hello " + name;
}
} | true |
fe095ff77ac61e784212f760b510e3cc1d436730 | Java | 1160732185/LEMS | /src/main/java/com/example/laboratory/web/service/FirmService.java | UTF-8 | 422 | 1.960938 | 2 | [] | no_license | package com.example.laboratory.web.service;
import com.example.laboratory.common.model.Firm;
import com.example.laboratory.common.model.Room;
import java.util.List;
public interface FirmService {
List<Firm> getAllFirm(Integer firstRow,Integer pageSize);
Firm getFirmByNo(Integer No);
void insertFirm(Firm ... | true |
9876d6f13547be18466c37803d596835402a2040 | Java | CaitlinKennedy/NickCageGame | /NickCageGame.java | MacCentralEurope | 29,904 | 3.75 | 4 | [] | no_license | import javax.swing.ImageIcon;
import java.awt.*;
import javax.swing.JOptionPane;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.Math;
public class NickCageGame {
private String name;
private int health = 5;
private int strength;
... | true |
93e01c720880ca4f6c450792a770aa9e62aa0e9d | Java | thilinamb/synopsis | /code/modules/impl/src/main/java/neptune/geospatial/core/protocol/msg/client/TerminateNode.java | UTF-8 | 637 | 2.09375 | 2 | [] | no_license | package neptune.geospatial.core.protocol.msg.client;
import ds.granules.communication.direct.control.ControlMessage;
import neptune.geospatial.core.protocol.ProtocolTypes;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
/**
* @author Thilina Buddhika
*/
public class Ter... | true |
8df3245665611661b24f7172ee6489091e7a2a32 | Java | cryos-epfl/slf-osper-api | /src/main/java/ch/epfl/cryos/osper/api/controller/CacheController.java | UTF-8 | 1,156 | 2.09375 | 2 | [] | no_license | package ch.epfl.cryos.osper.api.controller;
import ch.epfl.cryos.osper.api.configuration.CacheConfiguration;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.s... | true |
f9bd83622ac16d8d47cdd3693b71a16de210ac10 | Java | Larmik/MyTournament | /src/main/java/fr/wcs/mytournament/DeleteCookieServlet.java | UTF-8 | 1,068 | 2.34375 | 2 | [] | no_license | package fr.wcs.mytournament;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(... | true |
4c7a9f5067bffaa4fadff1126b9e1f4ae22246db | Java | FranticLOL/superchat-backend-challenge-arturs-klezovics | /src/main/java/com/klezovich/superchat/service/delivery/client/DeliveryClient.java | UTF-8 | 260 | 1.914063 | 2 | [] | no_license | package com.klezovich.superchat.service.delivery.client;
import com.klezovich.superchat.domain.Channel;
import com.klezovich.superchat.domain.message.Message;
public interface DeliveryClient {
Channel getChannel();
void deliverMessage(Message m);
}
| true |
b77c046ac7541ca4d2ca39e4e5d2041ac9148fb6 | Java | auberield/CACAO2016 | /PRIME_CACAO_2016/src/abstraction/equipe2/PlageInterne.java | UTF-8 | 523 | 2.609375 | 3 | [] | no_license | package abstraction.equipe2;
import abstraction.commun.*;
import java.util.HashMap;
public class PlageInterne {
private HashMap<Produit,Tarif> tarifproduit;
public PlageInterne() {
this.tarifproduit=new HashMap<Produit,Tarif>();
}
public HashMap<Produit, Tarif> getTarifproduit(){
return tarif... | true |
5f403fb027ff5543121bd8683d28061c01cd2d30 | Java | Minhoka/G16_IE_MaaS | /BPEL_Sprint3/customerEnrollment/RegisterClients/RegisterClientsPrj/src/registerclientsprj/NIFValidatorWebService.java | UTF-8 | 2,180 | 2.421875 | 2 | [] | no_license | package registerclientsprj;
import java.io.*;
import java.net.*;
import javax.jws.WebService;
import javax.xml.ws.BindingType;
import javax.xml.ws.soap.SOAPBinding;
@WebService(serviceName = "NIFValidatorWebService", portName = "NIFValidatorWebServiceSoap12HttpPort")
@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
p... | true |
03c3a9c03f8a1df3b86229aa13083073ccf295e3 | Java | mindol1004/df-shop | /df-api/df-member-api/src/main/java/com/df/service/MemberService.java | UTF-8 | 764 | 1.820313 | 2 | [] | no_license | package com.df.service;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.df.result.Result;
/**
* @author df
* @version 创建时间:2018年6月29日 下午3:38:01
* @Description 用户服务层
*... | true |
5b6a0d0410f9061b0067923c6d0ad5bdec7c79f1 | Java | Unidata/awips2 | /cave/com.raytheon.uf.viz.app.launcher/src/com/raytheon/uf/viz/app/launcher/bundle/Launcher.java | UTF-8 | 3,168 | 2.21875 | 2 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | true |
506aa7b37749feb3a45a4defa9b6e60dc03c9731 | Java | Allogeneous/PlaceItemsOnGroundRebuilt | /PlaceItemsOnGroundRebuilt/src/me/Allogeneous/PlaceItemsOnGroundRebuilt/Files/PlaceItemsPlayerPlaceLocation.java | UTF-8 | 736 | 2.453125 | 2 | [] | no_license | package me.Allogeneous.PlaceItemsOnGroundRebuilt.Files;
import java.util.UUID;
import org.bukkit.Location;
public class PlaceItemsPlayerPlaceLocation {
private UUID placer;
private Location location;
public PlaceItemsPlayerPlaceLocation(UUID placer, Location location) {
this.setPlacer(placer);
this.setLoc... | true |
1d70a94c92d098430e58c71d3954806a92f9cb73 | Java | dcabezas98/PDOO-Java | /DeepSpace/src/deepspace/SpecificDamage.java | UTF-8 | 2,021 | 2.875 | 3 | [
"MIT"
] | permissive | /*
* 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 deepspace;
/**
*
* @author David Cabezas Berrido
* @author Patricia Córdoba Hidalgo
*/
import java.util.ArrayList;
public... | true |
6906931f62f94496049adce1cdfbcb3a11d677c7 | Java | AnthonyMineo/MoodTracker | /app/src/main/java/com/denma/moodtracker/Controller/MyAlarmReceiver.java | UTF-8 | 877 | 2.359375 | 2 | [] | no_license | package com.denma.moodtracker.Controller;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.denma.moodtracker.Model.AutoSaveService;
public class MyAlarmReceiver extends BroadcastReceiver {
public static final int REQUEST_CODE = 50;
... | true |
4891e84b34e49651aff5d9461055b891cd37fbf4 | Java | xiaobao4955/ImagePicker | /ImagePicker/src/main/java/com/yokeyword/imagepicker/ImagePickerActivity.java | UTF-8 | 4,004 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.yokeyword.imagepicker;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget... | true |
1a4548ca15cb4aedf016e3995a86d16c1f17c0b0 | Java | yaroslavbon/TextMarkupApp2 | /src/main/java/ua/khpi/markup/util/ControllerUtils.java | UTF-8 | 432 | 2.28125 | 2 | [] | no_license | package ua.khpi.markup.util;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonType;
import java.util.Optional;
public class ControllerUtils {
public static Optional<ButtonType> showAlert(Alert.AlertType alertType, String title, String content) {
Alert alert = new Alert(alertType);
... | true |
924ef42cb6a9a1847ddbe10b18cd7c2477d6590c | Java | ingridsgit/Shelfie | /app/src/main/java/com/bazzillion/ingrid/shelfie/Utils/CrossAppFunctions.java | UTF-8 | 771 | 2.328125 | 2 | [] | no_license | package com.bazzillion.ingrid.shelfie.Utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.widget.Toast;
import com.bazzillion.ingrid.shelfie.R;
public class CrossAppFunctions {
public static int checkNetworkState(Context context){
... | true |