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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6bb42c9c3c963b48f6fcec7aebe4a23e18c9ed04 | Java | ldecorps/EventProcessor | /EventProcessor/src/test/java/decorps/eventprocessor/rules/ProgramEditBufferDumpRequestTest.java | UTF-8 | 712 | 2.03125 | 2 | [] | no_license | package decorps.eventprocessor.rules;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.notNullValue;
import org.junit.Test;
import decorps.eventprocessor.utils.BaseUtils;
public class ProgramEditBufferDumpRequestTest {
final ProgramEditBufferDumpRequest programEditBufferDump... | true |
dc81a583271aa128959856ebaf30d74433a52811 | Java | teartao/books-and-codes | /crazy-java-3rd/task/src/main/java/org/neotao/ch16/my/print/sample01/sync/PrintLowerThread.java | UTF-8 | 696 | 2.65625 | 3 | [] | no_license | package org.neotao.ch16.my.print.sample01.sync;
import org.neotao.ch16.my.print.sample01.lock.PrintConst;
import java.util.Map;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
public class PrintLowerThread extends AbstractPrintThread {
public PrintLowerThread(Map<String, Int... | true |
8e7aa9843e92b5240d7d90134354d05d443628ff | Java | csandys/spotifySearch | /app/src/main/java/com/spotifysearch/adapter/AlbumsAdapter.java | UTF-8 | 2,792 | 2.421875 | 2 | [] | no_license | package com.spotifysearch.adapter;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import com.spotifysearch.view.ImageTitleView;
import com.spotifysearch.BuildConfig;
import com.spotifysearch.model.AlbumImage;
import com.spotifysearch.mo... | true |
4199d2f06ba75c6dbff41085896d2af38175d4b9 | Java | JacekAmbroziak/Ambrosoft | /src/main/java/com/ambrosoft/exercises/MinSwapsIntoPairs.java | UTF-8 | 4,705 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | package com.ambrosoft.exercises;
import java.util.Arrays;
import java.util.concurrent.ThreadLocalRandom;
/**
* Created by jacek on 10/10/16.
* <p>
* http://www.geeksforgeeks.org/minimum-number-of-swaps-required-for-arranging-pairs-adjacent-to-each-other
* <p>
* Numbers 1 through 2n: n *pairs* but initially not p... | true |
ec697d5a2c5d68e50863736624c60b794422991f | Java | RickyHaryanto/springboot-mahavihara2 | /src/main/java/com/example/client/service/AdminKebaktianService.java | UTF-8 | 806 | 2.046875 | 2 | [] | no_license |
package com.example.client.service;
import java.util.List;
import com.example.client.repository.AdminKebaktianRepository;
import com.example.client.model.Kebaktian;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.ann... | true |
1f650d2dcbba7f0abdd57fa7f00d3384d3f871c5 | Java | meghanachevula/NGODonationPortal | /src/main/java/com/cg/ndp/service/DonationServiceImpl.java | UTF-8 | 698 | 2.015625 | 2 | [] | no_license | package com.cg.ndp.service;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cg.ndp.model.DonationModel;
import com.cg.ndp.model.DonorModel;
import com.cg.ndp.repo.DonationRepo;
@Service
public class Do... | true |
7873f865fe7687f517e30f59ace35e33e1c26286 | Java | theelk801/mage | /Mage.Sets/src/mage/cards/h/HaakonStromgaldScourge.java | UTF-8 | 7,144 | 2.21875 | 2 | [] | no_license | /*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this lis... | true |
eec374f0cae246a230008be10c5b4e33b66b2a21 | Java | DavidBlasVazquez/APAW-ECP2-DavidBlas | /src/test/java/es/upm/miw/apaw/user/UserResourceFunctionalTesting.java | UTF-8 | 3,263 | 2.3125 | 2 | [] | no_license | package es.upm.miw.apaw.user;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import es.upm.miw.apaw.user.api.daos.DaoFactory;
import es.upm.miw.apaw.user.api.daos.memory.DaoMemoryFactory;
import es.upm.miw.apaw.user.api.resources.SportResource;
import es.upm.mi... | true |
4d63c2dc9610aa32203420d9fbfcd7597e52c93f | Java | 180254/miasi-activiti-services | /ServiceTasks/src/test/java/JenkinsTest.java | UTF-8 | 1,398 | 1.90625 | 2 | [] | no_license | import mock.DeMock;
import org.activiti.engine.delegate.DelegateExecution;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.miasi.jenkins.*;
import repeat.Repeat;
import repeat.RepeatRule;
public class JenkinsTest {
public DelegateExecution deMock = new DeMock();
public boole... | true |
4f0609b34a68c9568eb63772c034a4399c775428 | Java | roy3221/SpaceFighter | /app/src/main/java/example/com/spacefighter/model/flights/Flights.java | UTF-8 | 1,914 | 2.765625 | 3 | [] | no_license | package example.com.spacefighter.model.flights;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Rect;
import java.util.Random;
/**
* Created by churong1 on 4/15/17.
*/
public abstract class Flights {
protected Bitmap bitmap;
protected int x;
protected int y;
... | true |
0b52b13b86c8e0598e6f954eb2a7d0a17a802883 | Java | onepiece-xu/netty-action | /ctp-paas/ctp-paas-control/src/main/java/com/ydw/control/controller/StreamController.java | UTF-8 | 927 | 1.976563 | 2 | [] | no_license | package com.ydw.control.controller;
import com.ydw.control.model.vo.ResultInfo;
import com.ydw.control.service.IStreamService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.sp... | true |
20627911a6a6169243e0da36d1930b748659cd40 | Java | chlwltn0219/UUPlex | /src/main/java/spring/mvc/uuplex/admin/dao/BoardNoticeDAOImpl.java | UTF-8 | 3,668 | 2.109375 | 2 | [] | no_license | package spring.mvc.uuplex.admin.dao;
import java.util.ArrayList;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import spring.mvc.uuplex.admin.dto.BoardNoticeDTO;
@Repository
public c... | true |
447f9be259ff895307d60d75bfff142a116aabff | Java | cenbow/Daisy | /yourong-backend/src/main/java/com/yourong/backend/co/service/impl/CompanyProfileServiceImpl.java | UTF-8 | 3,637 | 2.0625 | 2 | [] | no_license | package com.yourong.backend.co.service.impl;
import com.yourong.backend.co.service.CompanyProfileService;
import com.yourong.common.domain.ResultDO;
import com.yourong.common.pageable.Page;
import com.yourong.common.util.Collections3;
import com.yourong.core.co.manager.CompanyProfileManager;
import com.yourong.core.co... | true |
e1bfad6d614960b3c22cc7b9fb6638acfbec2c67 | Java | lenadank/tibetan-matching | /src/main/java/tau/cs/wolf/tibet/percentage_apbt/data/slicable/SlicableParserIntPath.java | UTF-8 | 472 | 2.3125 | 2 | [] | no_license | package tau.cs.wolf.tibet.percentage_apbt.data.slicable;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Scanner;
import java.util.regex.Pattern;
public class SlicableParserIntPath extends SlicableParserInt<Path> {
public SlicableParserIntPath(Pattern delimiter) {
super(delimiter);
}
p... | true |
1c0d1ebaa1b0c9dc58f99a65b2a6b502f7198e07 | Java | swaroopsonline/RubiconWaterHomeAssignment | /src/main/java/pages/locators/FlumGatePageLocators.java | UTF-8 | 534 | 1.742188 | 2 | [] | no_license | package pages.locators;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
public class FlumGatePageLocators {
@FindBy(how=How.LINK_TEXT, using="Specifications")
public WebElement SpecificationsLink;
@FindBy(how=How.XPATH, using="//*[@id=\"t... | true |
a0a0b83543e1cd9f6cd215e081ba7069d0b16b74 | Java | tonipelovski/znaka | /src/com/znaka/Tokens/TokenMatches/TokenAccessTypeMatch.java | UTF-8 | 329 | 2.421875 | 2 | [] | no_license | package com.znaka.Tokens.TokenMatches;
public class TokenAccessTypeMatch extends TokenMatch {
private String[] keywords = {"non-var"};
public TokenAccessTypeMatch() {
super("access");
}
@Override
public int nextTokenEndIndex(String s) {
return nextTokenFromStringArray(keywords, s);... | true |
45c52b0ff278a52edc15c2bbad098d6b84cd154c | Java | pradeep1618/ICIX_Testing | /src/test/java/icix/Tests/TC9667_Test.java | UTF-8 | 852 | 2.1875 | 2 | [] | no_license | package icix.Tests;
import java.lang.reflect.Method;
import icix.Modules.LoginOut;
import icix.Modules.Product;
import icix.TestData.LoginOutTestData;
import icix.TestData.ProductTestData;
import icix.Utils.ConsoleLog;
import icix.Utils.Log;
import icix.Utils.TestBase;
import org.testng.annotations.Test;
//Scenario: ... | true |
d65d886ee54e3279697a943851dc218c72cc3a6e | Java | modulovalue/vaida_archived | /Vaida/app/src/main/java/com/modestasvalauskas/vaida/Fassade/AimaKnowledgeBase.java | UTF-8 | 850 | 2.21875 | 2 | [] | no_license | package com.modestasvalauskas.vaida.Fassade;
import java.util.ArrayList;
import java.util.List;
import aima.core.logic.fol.StandardizeApartIndexicalFactory;
import aima.core.logic.fol.domain.FOLDomain;
import aima.core.logic.fol.inference.InferenceProcedure;
import aima.core.logic.fol.kb.FOLKnowledgeBase;
/**
* Cre... | true |
cd8d87c0d2487e1a5833199e75b5e6b8d1bae148 | Java | vert-x3/vertx-docgen | /src/test/java/io/vertx/test/postprocessors/language/package-info.java | UTF-8 | 429 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /**
* This document should be different according to the language.
*
* [language,java]
* ----
* This is only displayed for java. But it can have...
* Several lines.
* ----
*
* [language, javascript, ruby]
* ----
* This is only displayed for javascript and ruby.
* ----
*
* This is some text. Very important... | true |
4d55bbaf2a834af8f6b65af12a2832e809910178 | Java | AkatsukiTeam-tech/MyJavaProject | /src/main/java/com/springbootdemo/home_task7/HomeTask7Application.java | UTF-8 | 328 | 1.59375 | 2 | [] | no_license | package com.springbootdemo.home_task7;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HomeTask7Application {
public static void main(String[] args) {
SpringApplication.run(HomeTask7Application.class, args)... | true |
a016fc00e9a89cdec028d20845b9bcb6ff2c6bc5 | Java | AlessaVoid/studyCode | /0429update/src/com/boco/PUB/controller/tbPlanadjStripe/TbLoanPlanadjStripeController.java | GB18030 | 18,520 | 1.734375 | 2 | [] | no_license | package com.boco.PUB.controller.tbPlanadjStripe;
import com.alibaba.fastjson.JSON;
import com.boco.PM.service.IFdOrganService;
import com.boco.PUB.service.ITbTradeParamService;
import com.boco.PUB.service.loanPlan.TbPlanService;
import com.boco.PUB.service.loanPlanadj.TbPlanadjDetailService;
import com.boco.PUB.servic... | true |
6290e346d768a8f0e9eb5c5b6c6f2567114f4c7a | Java | mohammedali777/quadcopter_apps | /app/src/main/java/operator/operatorapp/select.java | UTF-8 | 2,469 | 2.171875 | 2 | [] | no_license | package operator.operatorapp;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView... | true |
dea61e8e108f53c6c91c19caf974bc60cd0b0405 | Java | benwjhack/GodsForge | /src/templates/TextField.java | UTF-8 | 2,604 | 2.6875 | 3 | [] | no_license | package templates;
import helpers.Graphics;
import org.newdawn.slick.Color;
import org.newdawn.slick.opengl.Texture;
public class TextField extends Interface{
public String text;
private int drawnBy = 0;
@Deprecated
public TextField(Texture tex, String words, int x, int y, int width, int height){
super(tex,... | true |
c89ebb7f214a3cf7a7ac6cefefce78dcba139436 | Java | duoyonghao/base | /src/main/java/com/kqds/service/base/visit/KQDS_VisitLogic.java | UTF-8 | 16,569 | 1.710938 | 2 | [] | no_license | package com.kqds.service.base.visit;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
i... | true |
2b2f0d9735d6fe061030b3fbd242e4f0745c1d4e | Java | GlobalWebTunisie/app-crud-android-mysql | /Loker3/app/src/main/java/com/example/welcomebos/loker3/ViewActivity.java | UTF-8 | 3,045 | 2.21875 | 2 | [] | no_license | package com.example.welcomebos.loker3;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Pr... | true |
f439a3b6ea0365f8a93ffd39c9a9c5fe9fc158b8 | Java | mickey0524/leetcode | /1346.Check-If-N-and-Its-Double-Exist.java | UTF-8 | 647 | 3.15625 | 3 | [
"MIT"
] | permissive | // https://leetcode.com/problems/check-if-n-and-its-double-exist/
// algorithms
// Easy (42.22%)
// Total Accepted: 6,319
// Total Submissions: 14,967
// beats 100.0% of java submissions
class Solution {
public boolean checkIfExist(int[] arr) {
HashSet<Integer> set = new HashSet<>();
for (int n :... | true |
2b1e6fbee33e37751022724c8fe31dc9948d4ea5 | Java | aerow-xcp2/xCP-xCelerator-ExcelUtility | /Source/src/iface/java/com/emc/community/xcelerators/excelutil/params/ReadCell.java | UTF-8 | 500 | 2.84375 | 3 | [] | no_license | package com.emc.community.xcelerators.excelutil.params;
/**
* Represents cell read from a sheet
* @author Michal.Malczewski
*
*/
public class ReadCell {
private final String address;
private final String value;
public ReadCell(String address, String value) {
this.address = address;
this.value = value;
}... | true |
57a5ef4e2b9dbc3874be121e1d39d205d2e7bf71 | Java | Zhaoxianxv/zhao_sheng1 | /zhao_sheng/src/main/java/com/yfy/net/loading/task/ParamsTask.java | UTF-8 | 3,171 | 2.1875 | 2 | [] | no_license | /**
*
*/
package com.yfy.net.loading.task;
import android.util.SparseArray;
import com.yfy.net.SoapAccessor;
import com.yfy.net.loading.interf.Dialog;
import com.yfy.net.loading.interf.Indicator;
import com.yfy.net.loading.interf.WcfTask;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;... | true |
5dba025b3756e551d0a07499ac8fb4baf80c0c6a | Java | rizwanofficial/VmetryWorkspace | /webdrivertest/src/webelements/Checkboxtext.java | UTF-8 | 812 | 2.390625 | 2 | [] | no_license | package webelements;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Checkboxtext {
public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver wd = new FirefoxDri... | true |
a5fcbfd23583b7b6ec4c06874f8072b8f81cfacf | Java | zhouyuancc/Pattern | /FactoryDesignPattern/src/com/zy/factory/Basic/MerryXmasGirl.java | UTF-8 | 272 | 2.5625 | 3 | [] | no_license | package com.zy.factory.Basic;
/**
* 圣诞系列的女孩
* @author Zhou
*
*/
public class MerryXmasGirl implements Girl {
@Override
public void drawGirl() {
// TODO Auto-generated method stub
System.out.println("--------draw MerryXmasGirl--------");
}
}
| true |
b91dcbbf9dcfc1b7bdfadde1c95c5713b134ecfc | Java | Meee3/uri-online-judge-java | /1037/Main.java | UTF-8 | 944 | 3.34375 | 3 | [] | no_license | import java.util.Locale;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner scan = new Scanner (System.in);
float n;
String a, b, c, d;
n = scan.nextFloat();
a = "[0... | true |
2e6321f1c56790822bc2a33fe37a4b09edff8a43 | Java | amoz871/charplan | /app/src/main/java/com/daoc/charplan/ui/common/AbstractListItem.java | UTF-8 | 984 | 3.03125 | 3 | [
"MIT"
] | permissive | package com.daoc.charplan.ui.common;
/**
* Abstract base implementation of Appointment item.
*/
public abstract class AbstractListItem implements ListItem {
/**
* ViewType of the Item.
*/
private ListType mViewType;
/**
* The title of the Separator.
*/
private String mTitle;
... | true |
d86a682bab66245db0fcf684de2b8f12e79c1960 | Java | igor-dmitriev/spring-petclinic-rest-micromonolith | /customer/src/main/java/org/springframework/samples/petclinic/customer/repository/PetRepository.java | UTF-8 | 267 | 1.742188 | 2 | [] | no_license | package org.springframework.samples.petclinic.customer.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.samples.petclinic.customer.model.Pet;
public interface PetRepository extends JpaRepository<Pet, Integer> {
}
| true |
31a169420ceaeb38fec3fbcfdd97aa2966e4723f | Java | joyjoyboy/leetcode | /Longest Substring Without Repeating Characters/Longest Substring Without Repeating Characters.java | UTF-8 | 1,554 | 3.34375 | 3 | [] | no_license | /*
public class Solution {
public int lengthOfLongestSubstring(String s) {
int len = s.length();
int max = 0;
for(int i = 1; i <= len; ++i){
Set<Character> find = new HashSet<Character>();
for(int j = i - 1; j >= 0; --j){
String word = s.substring... | true |
c1932b8e1c47ef63e23186237baa4deb6a6047ef | Java | sahithipeddi/learning | /src/com/learning/DataStructures/BinaryTrees/AVLTree.java | UTF-8 | 1,049 | 3.59375 | 4 | [] | no_license | package com.learning.DataStructures.BinaryTrees;
public class AVLTree {
BinaryNodeAVL root;
public AVLTree() {
this.root = null;
}
public BinaryNodeAVL insert(int value){
BinaryNodeAVL newNode = insert(root, value);
return null;
}
private BinaryNodeAVL insert(Bina... | true |
abca68800aec5d6f235793d8c049143f5908e3bf | Java | rrohitramsen/ems | /src/main/java/com/ems/api/APIResponse.java | UTF-8 | 961 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.ems.api;
import io.swagger.annotations.ApiModelProperty;
/**
* Created by rohitkumar on 28/01/18.
*/
public class APIResponse<T> {
@ApiModelProperty(notes = "API Response message.")
private final String message;
public APIResponse(String message, int returnCode, T entity) {
this.me... | true |
d1f2afad56fc9db6de20cb1416997390c04f7f55 | Java | stonesteps/gateway | /spa-gateway-agent/src/test/java/com/tritonsvc/httpd/BaseRegistrationInfoHolder.java | UTF-8 | 938 | 2.1875 | 2 | [] | no_license | package com.tritonsvc.httpd;
/**
* Created by holow on 4/8/2016.
*/
public class BaseRegistrationInfoHolder implements RegistrationInfoHolder {
private String regKey;
private String regUserId;
private String spaId;
private String serialNumber;
@Override
public String getRegKey() {
r... | true |
791cb9eeefc9b726291299ab02d3d9ce5a5137dd | Java | zhanght86/HSBC20171018 | /LIS/sinosoft-parents/lis-business/src/main/java/com/sinosoft/lis/easyscan/service/BaseService.java | UTF-8 | 1,761 | 2.359375 | 2 | [] | no_license | package com.sinosoft.lis.easyscan.service;
import org.apache.log4j.Logger;
import com.sinosoft.lis.easyscan.EasyScanService;
import com.sinosoft.lis.schema.ES_DOC_MAINSchema;
import com.sinosoft.lis.vschema.ES_DOC_MAINSet;
import com.sinosoft.lis.vschema.ES_DOC_PAGESSet;
import com.sinosoft.utility.CError;
import com.... | true |
f7b462875c6c8b38a4c75fcda44b578144fb7d37 | Java | bittest0268/solution-type-b | /src/main/java/problem01/Main.java | UTF-8 | 564 | 3.390625 | 3 | [] | no_license | package problem01;
public class Main {
public static void main(String[] args) {
int[] arr = { -10, -3, 5, 6, -20 };
findMaxProduct(arr);
}
public static void findMaxProduct(int[] arr) {
//
// 코드를 완성 하십시오.
//
int num1 = 0;
int num2 = 0;
int temp = 0;
for(int i=0; i<arr.length; i++) {
for(int... | true |
aef2d7d33aa6995b4a51af2fd9ce65b440a6449c | Java | dujiliang/jxc_parent | /.svn/pristine/79/79ebf4ee5074cda3f4a1f4c451211e7b0f61b85f.svn-base | UTF-8 | 575 | 1.734375 | 2 | [] | no_license | package com.jxc.employment_center.service;
import com.jxc.common.bean.AuthorizationUser;
import com.jxc.common.bean.R;
import com.jxc.employment_center.entity.DriverResume;
public interface DriverResumeService {
R addResume(AuthorizationUser user, DriverResume resume);
R getDriverResumeListForDriver(Authorization... | true |
f87fccb05f350a3eb94bb9ae762bbbd13a330274 | Java | mal67/DungeonCraft | /src/main/java/greenteam/dungeoncraft/Game/Controller/LeaderBoardUtility.java | UTF-8 | 3,571 | 2.484375 | 2 | [] | no_license | package greenteam.dungeoncraft.Game.Controller;
import greenteam.dungeoncraft.Game.Main;
import greenteam.dungeoncraft.Game.Model.PlayerData;
import greenteam.dungeoncraft.Game.Model.PlayerDataList;
import java.io.File;
import java.io.IOException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JA... | true |
1e68cda3d1ef5263e98c6b60a127ab595014c193 | Java | softweaver/artificer | /s-ramp-shell/src/main/java/org/overlord/sramp/shell/util/FileNameCompleter.java | UTF-8 | 6,549 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 JBoss 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 agreed to i... | true |
a9eed61a7008b358f53be74a28010b3d4d2e66ed | Java | letaoli123/hibernate-semantic-query | /src/test/java/org/hibernate/sqm/test/hql/WhereClauseTests.java | UTF-8 | 6,307 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: Apache License, Version 2.0
* See the LICENSE file in the root directory or visit http://www.apache.org/licenses/LICENSE-2.0
*/
package org.hibernate.sqm.test.hql;
import org.hibernate.query.sqm.domain.SqmPluralAttributeIndex.IndexClassificati... | true |
126159e9c1c2de253b162bf912150a96c0f3022e | Java | lpxz/grail-APIDesigner | /soot24/paddlesrc/soot/jimple/paddle/queue/Qvar_objSet.java | UTF-8 | 1,296 | 1.898438 | 2 | [] | no_license | package soot.jimple.paddle.queue;
import soot.util.*;
import soot.jimple.paddle.bdddomains.*;
import soot.jimple.paddle.*;
import soot.jimple.toolkits.callgraph.*;
import soot.*;
import soot.util.queue.*;
import jedd.*;
import java.util.*;
public final class Qvar_objSet extends Qvar_obj {
public Qvar_objSet(Strin... | true |
0eeecd6e87b67f1e53e1d0373fdbf92ec3b3dbe7 | Java | k2studio/k2-jpa | /src/in/k2s/jpa/entity/BaseEntity.java | UTF-8 | 173 | 1.617188 | 2 | [] | no_license | package in.k2s.jpa.entity;
import in.k2s.core.interfaces.Entity;
public abstract class BaseEntity implements Entity {
private static final long serialVersionUID = 1L;
}
| true |
23790bbb61560c3c1101a630ce9b8c8c200df5d9 | Java | MrShawnYoung/readingCourse | /Spring源码深度解析/Spring/src/springmvc/MyDataContextListener.java | UTF-8 | 786 | 2.484375 | 2 | [] | no_license | package springmvc;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class MyDataContextListener implements ServletContextListener {
private ServletContext context = null;
public MyDataContextListener() {
}
@Override
// 该方法在Servl... | true |
3618a3fcd326d213c29af3b8250c76d9cbd0123a | Java | jasonnth/AirCode | /sources/com/airbnb/android/core/models/Photo$$Lambda$1.java | UTF-8 | 550 | 2.09375 | 2 | [] | no_license | package com.airbnb.android.core.models;
import com.airbnb.p027n2.primitives.imaging.ImageSize;
import com.google.common.base.Predicate;
final /* synthetic */ class Photo$$Lambda$1 implements Predicate {
private final Photo arg$1;
private Photo$$Lambda$1(Photo photo) {
this.arg$1 = photo;
}
p... | true |
914c250bce1cfb76898eee8ce7d8d5814a9c5724 | Java | ksmpartners/ernie | /ernie-java-api/src/main/java/com/ksmpartners/ernie/api/ErnieController.java | UTF-8 | 20,090 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
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 agreed to in writing, software
distributed under the License is d... | true |
553961e73ddc5e88e0ae26e1e152379bb81ad10c | Java | manoj-git-eng/ELF-06June19-Covalense-ManojKumarBehera | /springcore/src/main/java/com/covalense/springcore/beans/EmployeeInfoBean.java | UTF-8 | 782 | 2.359375 | 2 | [] | no_license | package com.covalense.springcore.beans;
import org.springframework.beans.factory.annotation.Autowired;
public class EmployeeInfoBean {
String name;
int id;
@Autowired
private DepartmentBean departmentBean;
/*
* public EmployeeInfoBean(String name, int id, DepartmentBean departmentBean) {
* super(); this... | true |
afd2ebefed116bd96090ecb578f2e3127dcf8d00 | Java | Olegpanch17/crystal-client-src | /minegame159/minegame159/meteorclient/gui/screens/ModulesScreen.java | UTF-8 | 6,049 | 2.125 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*/
package minegame159.meteorclient.gui.screens;
import java.util.List;
import minegame159.meteorclient.gui.GuiTheme;
import minegame159.meteorclient.gui.tabs.TabScreen;
import minegame159.meteorclient.gui.tabs.Tabs;
import minegame159.meteorclient.gui.utils.Cell;
import minegame159.m... | true |
49ee6b4bd00779ef2159e0c1867f121d82e58e0d | Java | VNeufeld/testGis | /com.dev.gis.task/src/com/dev/gis/task/execution/impl/EmlTask.java | UTF-8 | 245 | 1.671875 | 2 | [] | no_license | package com.dev.gis.task.execution.impl;
import com.dev.gis.task.execution.api.IEditableTask;
public class EmlTask implements IEditableTask {
@Override
public String getViewID() {
return "com.dev.gis.app.task.EmlView";
}
}
| true |
465e6501981c6d7590199a7b241e927b09dbf9f4 | Java | JULIANCHO923/CeibaEstacionamientoJulianHenao | /src/main/java/co/com/ceiba/estacionamiento/julian/henao/dominioparqueadero/Vigilante.java | ISO-8859-1 | 5,295 | 2.1875 | 2 | [] | no_license | package co.com.ceiba.estacionamiento.julian.henao.dominioparqueadero;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import co.com.ceiba.estacionamiento.julian.henao.excepcion.ExcepcionSobre... | true |
bb32bc8c8e0768ca8b56f880005e0a30b473bbb4 | Java | qph438667395/OnlineDebug | /src/com/spring/model/TestCaseModel.java | UTF-8 | 1,494 | 2.25 | 2 | [] | no_license | package com.spring.model;
import java.io.Serializable;
public class TestCaseModel implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String input;
private String expectedOutput;
private int functionPointScore;
private long timeLimit;
public String getInput()... | true |
9cd96a8ad5426179f8a642df467cfcfdd8c47a08 | Java | abhishekgem35/AccountTest07082020 | /account/src/main/java/com/anz/account/ui/controller/AccountController.java | UTF-8 | 5,014 | 2.21875 | 2 | [] | no_license | package com.anz.account.ui.controller;
import java.util.List;
import java.util.stream.Collectors;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframew... | true |
9c9a0ab1501cb73e06d66cd18a1972aae09a0919 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/103/875.java | UTF-8 | 860 | 2.59375 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static String q = new String(new char[1200]);
public static char lastQ;
public static int head;
public static int length;
public static char MT(char q)
{
if ((q >= 'a') && (q <= 'z'))
{
return q - 'a'+'A';
}
}
public static int Main()
{
q = Consol... | true |
b9eea7f5894d771e56f13a8146eb52ca74bdecde | Java | humlab-sead/sead_bugs_import | /src/test/java/se/sead/model/TestEcocode.java | UTF-8 | 621 | 2.296875 | 2 | [
"MIT"
] | permissive | package se.sead.model;
import se.sead.bugsimport.ecocodedefinition.seadmodel.EcocodeDefinition;
import se.sead.bugsimport.ecocodes.seadmodel.Ecocode;
import se.sead.bugsimport.species.seadmodel.TaxaSpecies;
public class TestEcocode extends Ecocode {
private TestEcocode(Integer id){
setId(id);
}
... | true |
06633718396e1416d3853df5e48093f220f1f6a7 | Java | henriezhang/WordSegServer | /src/main/java/com/qq/servers/AnsjWordSegmenter.java | UTF-8 | 1,933 | 2.5625 | 3 | [] | no_license | package com.qq.servers;
import com.google.common.collect.Lists;
import com.qq.servers.tfidfproducer.StopWordDict;
import org.ansj.domain.Term;
import org.ansj.recognition.NatureRecognition;
import org.ansj.splitWord.analysis.ToAnalysis;
import java.util.List;
/**
* This class use Ansj word segmenter to segment word... | true |
f2aa1460768a03f53dac2bed8481bd4c32034712 | Java | shesharm/GitPom_Project | /PageObjectModel_WithPageFactory/src/main/java/com/selenium/facebook/pom/pages/testfire/MyAccount.java | UTF-8 | 1,057 | 2.109375 | 2 | [] | no_license | package com.selenium.facebook.pom.pages.testfire;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.Status;
import com.selenium.facebook.pom.base.BasePage;
... | true |
d9fd500b2413207feef60ba578b8eeb70328d96d | Java | jiangp2018/study2019 | /src/main/java/com/aibaba/standard/oop/CalStudy.java | UTF-8 | 958 | 3.625 | 4 | [] | no_license | package com.aibaba.standard.oop;
import org.junit.Test;
/**
* @Description : || 、| 、 & 、&& 的区别
* @Author : jiangpan
* @Date : 2019/6/5 16:34
**/
public class CalStudy {
/**
* || 、| ,都为false,才会变成false ,或者
*/
@Test
public void test() {
boolean a = false;
boolean b = true;
... | true |
8be1d0d28e6d2b800c0b99a8774cc126e147aa3d | Java | saphya-el-ouahabi/Epapotage | /InterfaceConcierge.java | ISO-8859-1 | 6,693 | 3.0625 | 3 | [] | no_license | /*CLASSE DE L'INTERFACE CONCIERGE*/
import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
import javax.swing.*;
import javax.swing.border.Border;
public class InterfaceConcierge extends JFrame implements ActionListener {
/*VARIABLES*/
private Concierge concierge;
private String messag... | true |
23032e4f4d0f32e5e074a4378dd9fa6789e42b41 | Java | thiagofb84jp/automation-project | /java-training/src/br/com/javaForBeginners/CounterClass.java | UTF-8 | 638 | 3.921875 | 4 | [] | no_license | package br.com.javaForBeginners;
public class CounterClass {
int i = 0;
static int j = 0;
public CounterClass() {
i++;
j++;
System.out.println("Value of i: " + i);
System.out.println("Value of j: " + j);
}
public static void main(String[] args) {
CounterClass counter = new CounterClass();
Cou... | true |
7f352af6d11e643feae13fd36c8da2cbf79b0885 | Java | AnthraX1/basys | /techsupport/src/com/aisino2/publicsystem/dao/IClxx_zpDao.java | UTF-8 | 927 | 1.921875 | 2 | [] | no_license | package com.aisino2.publicsystem.dao;
import java.util.List;
import java.util.Map;
import com.aisino2.core.dao.Page;
import com.aisino2.publicsystem.domain.Clxx_zp;
public interface IClxx_zpDao {
/** @param 车辆信息_照片(t_clxx_zp) 增加 */
Clxx_zp insertClxx_zp(Clxx_zp clxx_zp);
/** @param 车辆信息_照片(t_clxx_zp) 删除 */
int d... | true |
9d754b223ce5e56135ee57ead4f2870f8b44bf76 | Java | yunxiaoxie/ORMapping | /iti-sysmgr/backend/src/main/java/com/crab/service/impl/PermissionImpl.java | UTF-8 | 938 | 2.234375 | 2 | [] | no_license | package com.crab.service.impl;
import com.crab.domain.Permission;
import com.crab.mapper.PermissionMapper;
import com.crab.service.IPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PermissionImpl imp... | true |
f23d3205345527b92297d3d062a203f6923d76f1 | Java | RyanTech/Android-Apprentissage | /workspace_apprentissage/googleplus/src/com/google/android/apps/plus/iu/GDataUploader.java | UTF-8 | 59,744 | 1.640625 | 2 | [] | no_license | package com.google.android.apps.plus.iu;
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
i... | true |
7f5f1e781332171a89f76a030bfdb92dc9fb4bbd | Java | aditya204/G-s-store | /app/src/main/java/com/gaurishankarprashad/gsstore/Adapters/productDetailsViewPagerAdapter.java | UTF-8 | 1,277 | 2.46875 | 2 | [] | no_license | package com.gaurishankarprashad.gsstore.Adapters;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.viewpager.widget.PagerAdapter;
import com.bumptech.glide.Glide;
import java.util.List;
public class productDetailsViewPager... | true |
cb1cdac9ad3feca7dd69344f32074be5b86268cd | Java | H48530/JavaSE_code | /牛客网oj题目/字符串/Test3.java | UTF-8 | 1,108 | 3.671875 | 4 | [] | no_license | package com;
import java.util.Scanner;
/**
* 来源:牛客网链接:https://www.nowcoder.com/questionTerminal/784efd40ed8e465a84821c8f3970b7b5
* 输入一个字符串,求出该字符串包含的字符集合
* 输入描述:
* 每组数据输入一个字符串,字符串最大长度为100,且只包含字母,不可能为空串,区分大小写。
* 输出描述:
* 每组数据一行,按字符串原有的字符顺序,输出字符集合,即重复出现并靠后的字母不输出。
* 示例1
* 输入
* abcqweracb
* 输出
* abcqwer
*/
publ... | true |
ba6cdcf207f38129e9c174f5351e18796e8a69f8 | Java | hellton2/desafio | /src/main/java/com/desafio/tech/model/Vendedor.java | UTF-8 | 1,261 | 2.515625 | 3 | [] | no_license | package com.desafio.tech.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class Vendedor {
private String cpf;
private String name;
private double salary;
//
//
// public static class VendedorBuilder
// {
// private int id;
//... | true |
078dd92ce3d26f4102934de621bcb2cdd9b1ebad | Java | paulatumwine/mixtream-web-api | /src/main/java/org/mixtream/mixtreamwebapi/service/TrackService.java | UTF-8 | 1,292 | 2.203125 | 2 | [] | no_license | package org.mixtream.mixtreamwebapi.service;
import org.mixtream.mixtreamwebapi.adapter.TrackAdapter;
import org.mixtream.mixtreamwebapi.dto.TrackDTO;
import org.mixtream.mixtreamwebapi.model.Track;
import org.mixtream.mixtreamwebapi.repository.TrackRepository;
import org.springframework.beans.factory.annotation.Autow... | true |
3fc705cb36ac6407c04f5a5852bc13cbda787eee | Java | muchafel/wojatzki | /semEvalTask6/src/test/java/util/CollococationMeasureHelperTest.java | UTF-8 | 2,595 | 2.140625 | 2 | [] | no_license | package util;
import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription;
import org.apache.uima.analysis_engine.AnalysisEngineDescription;
import org.apache.uima.collection.CollectionReaderDescription;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit... | true |
d088625c95279fbefcb154fbba63d44447aed1b0 | Java | lgazda/sellenide-allure-junitrules | /src/test/java/pl/net/gazda/test/rule/SelenideTargetConfiguration.java | UTF-8 | 298 | 1.671875 | 2 | [] | no_license | package pl.net.gazda.test.rule;
import com.codeborne.selenide.Configuration;
import org.junit.rules.ExternalResource;
public class SelenideTargetConfiguration extends ExternalResource {
@Override
protected void before() {
Configuration.reportsFolder = "target/selenide";
}
}
| true |
d4ea1d8b9670491e8e5319627b506fd7db71bc80 | Java | queerner002/HelloSpring | /src/com/java/注解注入属性/anno/UserDao.java | UTF-8 | 287 | 1.875 | 2 | [] | no_license | package com.java.注解注入属性.anno;
import org.springframework.stereotype.Repository;
/**
* Created by Administrator on 2018/8/18 0018.
*/
@Repository(value = "userDao")
public class UserDao {
public void add() {
System.out.println("UserDao Add Method.");
}
}
| true |
0041d7cd4ca209d9c027d21f379e7fb163180a5e | Java | laihui0207/GPSSpeedWidget | /app/src/main/java/com/huivip/gpsspeedwidget/viewutil/ItemViewFactory.java | UTF-8 | 19,466 | 1.929688 | 2 | [
"MIT"
] | permissive | package com.huivip.gpsspeedwidget.viewutil;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Point;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
im... | true |
cce3d452e1a8fd35433cac29c8439d27ff8e4b66 | Java | percussion/percussioncms | /rest/src/main/java/com/percussion/rest/util/Examples.java | UTF-8 | 7,327 | 1.671875 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, 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 applicabl... | true |
094ad4848c8724813e7ea8b6510c4bd159291f4d | Java | mishaelharry/MishTube | /app/src/main/java/com/app/mishtube/services/FloatingViewService.java | UTF-8 | 9,843 | 2.25 | 2 | [] | no_license | package com.app.mishtube.services;
import android.app.Service;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.view.Gravity;... | true |
2306e59810d9a71debe13893090f27b16a071d4d | Java | jackyhaoli/abc | /JastAddExtensions/JastAddModules/module_tests/CLASSGEN_JRAG_INH/Main.java | UTF-8 | 582 | 2.46875 | 2 | [] | no_license | public class Main {
public static void main(String args[]) {
m1.m2.BType btype = new m1.m2.BType();
m1.m3.CType ctype = new m1.m3.CType();
m1.AType atype = new m1.AType("Main_AType", btype, ctype);
m1.A a = new m1.A();
m1.AType2 atype2 = new m1.AType2(new m1.AType3(new m1.AType4()));
System.out.println(a... | true |
893f2ff7c53c3af90cdeca18d6f2e279b2b2b559 | Java | willijk/blueprint | /src/main/java/cn/will/mapper/AlbumMapper.java | UTF-8 | 654 | 1.851563 | 2 | [] | no_license | package cn.will.mapper;
import cn.will.po.Album;
import cn.will.po.User;
import cn.will.vo.AlbumVO;
import cn.will.vo.MusicResultVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Created on 2018-01-13 1:00 AM
* Author: Bowei Chan
* E-mail: bowei_chan@163.com
* Project: blueprint
* Des... | true |
59fa1f7d45296d42bf784afc22e8c0ceb43902fa | Java | europeana/contrib | /ait/tags/BASIC_INTEGRATION/image-annotation-frontend/src/main/java/at/researchstudio/dme/imageannotation/client/image/ImageFragmentContainer.java | UTF-8 | 554 | 2.25 | 2 | [] | no_license | package at.researchstudio.dme.imageannotation.client.image;
/**
* An image fragment container is any class that contains an {@link ImageFragment}
*
* @author Christian Sadilek
*/
public interface ImageFragmentContainer {
/**
* retrieve the contained image fragment
*
* @return image fragment
... | true |
e9ce0ed70ad88ce17337734824ba293e8c72cd58 | Java | ghillert/jrecruiter | /src/main/java/org/jrecruiter/model/User.java | UTF-8 | 9,238 | 1.773438 | 2 | [] | no_license | /*
* Copyright 2006-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
17eaa6db1d1d8cb410e308cc04c774a9ccf80af6 | Java | lhbasura/DesignPattern | /src/main/java/Proxy/StaticProxy/UserServiceImp.java | UTF-8 | 427 | 2.625 | 3 | [] | no_license | package Proxy.StaticProxy;
import Proxy.StaticProxy.model.User;
public class UserServiceImp implements UserService{
@Override
public boolean login(User user) {
if(user.getUsername().equals("admin")&&user.getPassword().equals("secret"))
{
System.out.println("login success");
... | true |
508a39c023046b049ac27e645246feb859df659a | Java | Wandering/statistics | /statistics-domain/src/main/java/cn/thinkjoy/jx/statistics/pojo/OrderStatisticsPojo.java | UTF-8 | 2,464 | 2.28125 | 2 | [] | no_license | package cn.thinkjoy.jx.statistics.pojo;
import java.io.Serializable;
import java.util.List;
/**
* Created by yangguorong on 16/4/15.
*
* 订单统计
*/
public class OrderStatisticsPojo implements Serializable {
/**
* 部门名称
*/
private String departmentName;
/**
* 部门编码
*/
private long ... | true |
fb16a69287c4952db7dbd1e46b54ff45aff40b8c | Java | kjooyoung/springcontainer | /src/main/java/config/mixing/videosystem/DVDConfig.java | UTF-8 | 735 | 2.109375 | 2 | [] | no_license | package config.mixing.videosystem;
import java.util.Arrays;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.douzone.springcontainer.videosystem.Avengers;
import com.douzone.springcontainer.videosystem.BlankDisc;
@Configuration
pu... | true |
18e75d3a8b1e68119b2d0c8574350184f012baca | Java | mobarakice/okhttp_demo | /OkHttpDemoApp/app/src/main/java/w3/com/okhttpdemo/mediagallerydemo/loader/ImageLoader.java | UTF-8 | 5,705 | 2.203125 | 2 | [] | no_license | package w3.com.okhttpdemo.mediagallerydemo.loader;
import android.app.ActivityManager;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import andr... | true |
d57aa4b8333ae0d9b716af322287703cae8435a4 | Java | victorrr8963/ForProject | /PetSitterApp/src/petsitterapp/services/ClientService.java | UTF-8 | 942 | 2.34375 | 2 | [] | no_license | package petsitterapp.services;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import petsitterapp.DAO.ClientCRUD;
import petsitterapp.entities.Client;
@Service
publ... | true |
c654efb167d6d2615966617ff2aa33d384fd9794 | Java | mali-code/algorithm008-class02 | /Week_08/LRUCache.java | UTF-8 | 2,178 | 3.140625 | 3 | [] | no_license | package week8;
import java.util.HashMap;
import java.util.Map;
public class LRUCache {
class DLinkNode {
int val;
int key;
DLinkNode prev;
DLinkNode next;
public DLinkNode() {
}
public DLinkNode(int key, int val) {
this.key = key;
... | true |
4e90187960450d47da49270e24c584324be6f03e | Java | kpreid/e-on-java | /src/jsrc/org/erights/e/elib/base/Ejection.java | UTF-8 | 2,833 | 2.265625 | 2 | [
"MIT"
] | permissive | package org.erights.e.elib.base;
import org.erights.e.develop.exception.EBacktraceException;
import org.erights.e.develop.exception.ThrowableSugar;
/*
The contents of this file are subject to the Electric Communities E Open
Source Code License Version 1.0 (the "License"); you may not use this file
except in complianc... | true |
24b061344b3e1ab4c4d9f71afd84130a7733413b | Java | wuhui8914/springboot-web | /src/main/java/com/xgxx/springboot/dao/EmployeeDao.java | UTF-8 | 2,483 | 2.4375 | 2 | [] | no_license | package com.xgxx.springboot.dao;
import java.util.Collection;
import com.xgxx.springboot.entities.Employee;
import com.xgxx.springboot.mapper.DepartmentMapper;
import com.xgxx.springboot.mapper.EmpLoyessMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.ann... | true |
d1e3e05776577b8a8b8307baead98ae852aa9c6d | Java | ducklingcloud/umt | /src/main/java/cn/vlabs/umt/ui/controller/IsLoginController.java | UTF-8 | 2,852 | 1.921875 | 2 | [] | no_license | /*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling project.
*
* 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 Li... | true |
a2d93806aae5dcb299f9e8e879d8418b7dd3ef8d | Java | Timesailer/SimpleAndroidLooper | /app/src/main/java/ema/simpleaudiolooper/WavExport.java | UTF-8 | 4,876 | 2.53125 | 3 | [] | no_license | package ema.simpleaudiolooper;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Created by milan_000 on 25.01.2018.
* Adapted from http://www.edumobil... | true |
d1adbe033fdc0056d5a87cc9bcb772563ff266cc | Java | netx-ulx/varanus | /sdncontroller/src/main/java/net/varanus/sdncontroller/monitoring/submodules/probing/LinkProbingModule.java | UTF-8 | 437 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | package net.varanus.sdncontroller.monitoring.submodules.probing;
import net.varanus.sdncontroller.monitoring.submodules.probing.internal.LinkProbingManager;
import net.varanus.sdncontroller.monitoring.util.AbstractServiceableSubmodule;
/**
*
*/
public final class LinkProbingModule extends AbstractServiceableSubm... | true |
b435ac95e38486bf549f1aa4f57e456c6e02cca4 | Java | piyushshekhar/archetypes | /phresco-sitecore-archetype/src/main/resources/archetype-resources/test/functional/src/test/java/com/photon/phresco/testcases/WelcomeSiteCoreTest.java | UTF-8 | 2,690 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.photon.phresco.testcases;
import java.io.IOException;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import com.photon.phresco.Screens.WelcomeScreen;
import com.photon.phresco.uiconstants.SiteData;
import com.photon.phresco... | true |
052a09713c2e9d6c9d2c67cc804e2341163126f5 | Java | Corey-Richmond/Riddler-Android | /src/com/richmond/riddler/http/HttpGetListOfRiddles.java | UTF-8 | 1,887 | 2.28125 | 2 | [] | no_license | package com.richmond.riddler.http;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.Defaul... | true |
a0a37acd1aae3c13589fa9f83740466a467cfa70 | Java | kylinsoong/teiid-test | /simba/src/main/java/com/simba/jdbc/common/JDBCObjectFactory.java | UTF-8 | 2,039 | 2.03125 | 2 | [] | no_license | package com.simba.jdbc.common;
import com.simba.dsi.core.interfaces.IConnection;
import com.simba.dsi.core.interfaces.IStatement;
import com.simba.exceptions.JDBCMessageKey;
import com.simba.support.ILogger;
import com.simba.support.exceptions.GeneralException;
import java.sql.SQLException;
import javax.sql.PooledConn... | true |
609f4db0b04c04c03deaf760881aaccd5e52b740 | Java | mihaialexandruanghel/PrivateMeetings | /EventAppServer/src/main/java/com/unitbv/utilitypackage/response/ShowNotificationsResponse.java | UTF-8 | 469 | 1.921875 | 2 | [] | no_license | package com.unitbv.utilitypackage.response;
import com.unitbv.data.NotificationData;
import java.util.List;
public class ShowNotificationsResponse {
private List<NotificationData> notificationDataList;
public List<NotificationData> getNotificationDataList() {
return notificationDataList;
}
... | true |
462782878cf7a33028d8d7c3f3bfdf7add9cabbb | Java | ozzerz/colisweb | /colisweb/microservice/src/test/java/com/colisweb/microservice/entity/CarrierTest.java | UTF-8 | 3,270 | 2.34375 | 2 | [] | no_license | package com.colisweb.microservice.entity;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.Set;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.autoconfigure.orm.j... | true |
dcba7ad5ac32e9a69ec416167641a8f2fb09a8ca | Java | TroyMichael/Webots | /src/BangBangFollowTheBallController.java | UTF-8 | 3,838 | 3.109375 | 3 | [] | no_license | import com.cyberbotics.webots.controller.DifferentialWheels;
import com.cyberbotics.webots.controller.DistanceSensor;
public class BangBangFollowTheBallController extends DifferentialWheels {
//setup values
private static int TIME_STEP = 16;
private static int MAX_SENSOR_VALUE = 200;
private static int... | true |
d4d72c7ad65fd7f620ca76ab0a72a6670aaca3da | Java | AnthonyMJ/WhackyHacky | /FoodPointTech/app/src/main/java/io/github/anthonymj/foodpointtech/DatabaseHelper.java | UTF-8 | 4,697 | 2.28125 | 2 | [] | no_license | package io.github.anthonymj.foodpointtech;
import android.util.Log;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Scanner;
import java.io.InputStreamReader;
imp... | true |
cb02b1506c16fb1a86e73c9bd30a430ccb1666b8 | Java | Djaxu/Pawe--Kochanek-kodilla-java | /kodilla-patterns/src/test/java/com/kodilla/patterns/strategy/social/UserTestSuite.java | UTF-8 | 1,570 | 2.71875 | 3 | [] | no_license | package com.kodilla.patterns.strategy.social;
import org.junit.Assert;
import org.junit.Test;
public class UserTestSuite {
@Test
public void testDefaultSharingStrategies(){
//Given
User millenials = new Millenials("Milenials");
User yGeneration = new YGeneration("YGeneration");
... | true |
e4ce6762e10bd683f16c6c530e4c3240d857e55b | Java | liuniannaxia/CRM-project | /src/main/java/com/bjpowernode/crm/base/bean/Permission.java | UTF-8 | 400 | 1.742188 | 2 | [] | no_license | package com.bjpowernode.crm.base.bean;
import lombok.Data;
import javax.persistence.Id;
import java.util.List;
@Data
public class Permission {
@Id
private String id;
private String pname;
private String code;
private String url;
private String create_time;
private String parent_id;//父菜单
... | true |
cb591e952eebf773496ea4694a0736ce5233dff3 | Java | dzoli/FireApp | /app/src/main/java/android/dmi/pmf/novica/fireapp/view/MessageItemView.java | UTF-8 | 2,637 | 2.15625 | 2 | [] | no_license | package android.dmi.pmf.novica.fireapp.view;
import android.content.Context;
import android.dmi.pmf.novica.fireapp.R;
import android.dmi.pmf.novica.fireapp.model.Message;
import android.dmi.pmf.novica.fireapp.model.User;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import an... | true |
e044cd45801af43bc3def2fe3e1a23af572b5d3d | Java | jmagicdev/jmagic | /cards/src/main/java/org/rnd/jmagic/cards/MoxJet.java | UTF-8 | 349 | 2.28125 | 2 | [] | no_license | package org.rnd.jmagic.cards;
import org.rnd.jmagic.engine.*;
@Name("Mox Jet")
@Types({Type.ARTIFACT})
@ManaCost("0")
@ColorIdentity({Color.BLACK})
public final class MoxJet extends Card
{
public MoxJet(GameState state)
{
super(state);
// (T): Add (B) to your mana pool.
this.addAbility(new org.rnd.jmagic.abi... | true |