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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
166fb2d1fd387fb4b1443ec99cca44eab15c2280 | Java | MasterFan2/ICloudBook | /app/src/main/java/com/masterfan/cloudbook/activity/personal/entity/Comment.java | UTF-8 | 1,255 | 2.484375 | 2 | [] | no_license | package com.masterfan.cloudbook.activity.personal.entity;
/**
* 评论对象
* Created by szj on 2016/1/21.
*/
public class Comment {
private String bookName;//书名
private String time;//时间
private String content;//评论内容
public String getBookName() {
return bookName;
}
public void setBookName... | true |
b8777faecc9c1379186b10d62d9947d611d76372 | Java | apache/servicecomb-java-chassis | /swagger/swagger-generator/generator-spring-data/src/test/java/org/apache/servicecomb/swagger/generator/springdata/TestPageResponseTypeProcessor.java | UTF-8 | 2,539 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
53fe2d63eade3f0582afcc3d7cf674edf8f56364 | Java | aben328/java2novice.spring | /java2novice.spring.23DefineRequiredAnno/src/main/java/com/java2novice/beans/PaymentGateway.java | UTF-8 | 516 | 2.65625 | 3 | [] | no_license | package com.java2novice.beans;
import com.java2novice.utils.Mandatory;
public class PaymentGateway {
private String client;
private Order order;
@Mandatory
public void setOrder(Order ord) {
this.order = ord;
}
public String getClient() {
return client;
}
public void setClient(Strin... | true |
805e4d1c24fc4230986428f6f5ea1ce41572e736 | Java | bryanjimenez/empanada | /cache/cache/src/rest/CacheWebService.java | UTF-8 | 1,809 | 2.578125 | 3 | [] | no_license | package rest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import cache_controller.CacheController;
@Path("/")
public class CacheWebService {
private static final String EMPTY_JSON = "{\"t\":[],\"f\":[],\"r\":[]}";
... | true |
fbae53f6aec119354ab12bd419f57a7876e85399 | Java | amelieko/McDonalds-java | /sources/com/tencent/wxop/stat/C4461y.java | UTF-8 | 1,569 | 1.976563 | 2 | [] | no_license | package com.tencent.wxop.stat;
import android.content.Context;
import com.tencent.wxop.stat.p069a.C4380c;
/* renamed from: com.tencent.wxop.stat.y */
final class C4461y implements Runnable {
/* renamed from: a */
final /* synthetic */ String f7214a;
/* renamed from: b */
final /* synthetic */ C4380c f... | true |
5e63b256fbc0c28e6dd197261be6409c927b035e | Java | tbritt/wonder | /Frameworks/BusinessLogic/ERAttachment/Sources/com/drew/metadata/DefaultTagDescriptor.java | UTF-8 | 620 | 2.59375 | 3 | [] | no_license | /*
* Created by dnoakes on 22-Nov-2002 16:45:19 using IntelliJ IDEA.
*/
package com.drew.metadata;
/**
*
*/
public class DefaultTagDescriptor extends TagDescriptor
{
public DefaultTagDescriptor(Directory directory)
{
super(directory);
}
public String getTagName(int tagType)
... | true |
b36c471a377766390a9925bfcabef741091d7bcd | Java | i-robot/myshop | /javashop-eop/src/com/enation/app/base/core/service/solution/ISetupLoader.java | UTF-8 | 352 | 1.671875 | 2 | [] | no_license | package com.enation.app.base.core.service.solution;
import org.dom4j.Document;
public abstract interface ISetupLoader
{
public abstract Document load(String paramString);
}
/* Location: D:\project_resource\eop.jar
* Qualified Name: com.enation.app.base.core.service.solution.ISetupLoader
... | true |
b87fbc1668016f313b15594dfb33b30dc5b767d5 | Java | linian365boy/brightengold-util | /src/main/java/com/brightengold/util/FreemarkerUtil.java | UTF-8 | 1,703 | 2.703125 | 3 | [] | no_license | package com.brightengold.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template... | true |
5e6fb50252a3ee609955f5a2c2f6fc6c4594c633 | Java | Epimedo/EpamSecondTaskVersion2 | /src/by/epam/halavin/task02/entity/building/VacuumCleanerBuilder.java | UTF-8 | 1,657 | 2.75 | 3 | [] | no_license | package by.epam.halavin.task02.entity.building;
import java.util.regex.Pattern;
import by.epam.halavin.task02.entity.VacuumCleaner;
import by.epam.halavin.task02.entity.criteria.SearchCriteria;
import by.epam.halavin.task02.entity.Appliance;
import by.epam.halavin.task02.entity.factory.VacuumCleanerFactory;
public c... | true |
5178a24761e2ede93dc5175dd737337d910859bd | Java | sanzays/JPM-project | /JPMproject/src/main/java/exercise/library/BookNameNotCorrectException.java | UTF-8 | 675 | 2 | 2 | [] | no_license | /* * BookNameNotCorrectException * Version: 0.1 * * Copyright (c) Altran Europe 2008 *
This software is the confidential and proprietary information of * Altran Europe.
You shall not disclose such Confidential Information *
and shall use it only in accordance with the terms of the license
* agreement you entered in... | true |
501da51ce1c719c33ffdd1785d5b64c3c80c17d1 | Java | zhongxingyu/Seer | /Diff-Raw-Data/11/11_015f219f2c3195a4a2cd13c5433cf541ac5ae9ce/SecurityController/11_015f219f2c3195a4a2cd13c5433cf541ac5ae9ce_SecurityController_t.java | UTF-8 | 1,456 | 2.3125 | 2 | [] | no_license | package com.in6k.mypal.controller;
import com.in6k.mypal.form.RegistrationForm;
import com.in6k.mypal.service.RegistrationService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.anno... | true |
78928c6d08d83e87ad1a78ffe7f0b1baba315fc5 | Java | liumeng635/yinian_hive_increase_sqoop | /src/main/java/com/yinian/alysis/util/DBHelper.java | UTF-8 | 5,922 | 2.859375 | 3 | [] | no_license | package com.yinian.alysis.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DBHelper {
private... | true |
19408691c67c73a2b0daa38f645eeffa4d28cb61 | Java | yyCaiGH/AndroidForCyy | /GeihooGroups/src/com/geihoo/activity/SocietyDocumentActivity.java | UTF-8 | 3,467 | 2.125 | 2 | [] | no_license | package com.geihoo.activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.TextView;
import com.geihoo.base.BaseActivity;
import com.geihoo.base.BaseFragment;
import com.geihoo.fragment.zuzu.file.... | true |
9ecde617a8d2ca009dcc50a22a575630993d8b37 | Java | IvanStankov/spring-boot-examples | /hello-world/src/main/java/com/ivan/sbe/hw/RandomValues.java | UTF-8 | 1,129 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.ivan.sbe.hw;
public class RandomValues {
private int intValue;
private long longValue;
private String secret;
private String uuid;
private int lessThan20;
private int range300_400;
public int getIntValue() {
return intValue;
}
public void setIntValue(int intVa... | true |
6ceb516b643a70a6f0af6709b82731032e3700be | Java | suiyuan121/springboot_projects | /springboot_admin/src/main/java/com/fuwo/b3d/model/controller/rest/ModelPackRestController.java | UTF-8 | 1,938 | 2.125 | 2 | [] | no_license | package com.fuwo.b3d.model.controller.rest;
import com.fuwo.b3d.enums.PriceTyleEnum;
import com.fuwo.b3d.model.model.ModelPack;
import com.fuwo.b3d.model.service.ModelPackService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.C... | true |
00d8615871272663063a107c97dd9c7cd9304de3 | Java | pjzmove/Smart_Audio_Test | /SmartAudio/app/src/main/java/com/qualcomm/qti/smartaudio/fragment/BaseSettingsFragment.java | UTF-8 | 10,269 | 2.171875 | 2 | [] | no_license | /*
* *************************************************************************************************
* * © 2019 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved. *
* *************************************************************************************************
*/
package c... | true |
862c42e667f342b2907677d08a5c6637f548f0da | Java | ashleyesposito/TestingCodacy | /CarClass.java | UTF-8 | 954 | 2.875 | 3 | [] | no_license | import java.util.*;
/*
* Ashley Esposito
* Discussion Week 6
*/
package carclass;
/**
** @author Ashley
*/
public class CarClass {
private String carYear;
private String carMake;
private String carModel;
public carClass(String carYear, String carMake, ... | true |
cb868c4b733efb5958eba04c0d7d2aecb88c340d | Java | chaminhye/Algorithm | /src/programmers/stackQueue/FunctionDevelope.java | UTF-8 | 4,196 | 4.1875 | 4 | [] | no_license | package programmers.stackQueue;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* 문제 설명
프로그래머스 팀에서는 기능 개선 작업을 수행 중입니다. 각 기능은 진도가 100%일 때 서비스에 반영할 수 있습니다.
또, 각 기능의 개발속도는 모두 다르기 때문에 뒤에 있는 기능이 앞에 있는 기능보다 먼저 개발될 수 있고, 이때 뒤에 있는 기능은 ... | true |
817c0a07f2d88829d279f4aa9ee4cc211377caaf | Java | mbimbij/clean_code_applied | /src/main/java/com/example/cleancodeapplied/gateways/UserGateway.java | UTF-8 | 198 | 2.078125 | 2 | [] | no_license | package com.example.cleancodeapplied.gateways;
import com.example.cleancodeapplied.entities.User;
public interface UserGateway {
User save(User user);
User findUserByName(String username);
}
| true |
132009b1ab31b59570ee16a25059458ba43c9dd1 | Java | sjl421/AlgorithmUtil | /src/com/vaani/algo/ds/algos/list/linked/RemoveKFromList.java | UTF-8 | 669 | 3.0625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package com.vaani.algo.ds.algos.list.linked;
import com.vaani.algo.ds.core.list.ListNode;
public class RemoveKFromList {
static ListNode<Integer> removeKFromList(ListNode<Integer> l, int k) {
ListNode<Integer> curr = l;
ListNode<Integer> prev = null;
while (curr != null) {
if (... | true |
6fcfbd52033c8df704914e6810c03f4ef61d2bea | Java | witcom-gmbh/service-access-api | /src/main/java/de/witcom/itsm/serviceaccess/mapper/TagMapper.java | UTF-8 | 591 | 2.078125 | 2 | [] | no_license | package de.witcom.itsm.serviceaccess.mapper;
import org.mapstruct.CollectionMappingStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import de.witcom.itsm.serviceaccess.dto.CreateUpdateTagDTO;
import de.witcom.itsm.serviceaccess.dto.TagDTO;
import de.witcom.itsm.serviceaccess.entity.Tag;
@Ma... | true |
020ce56e7c45d4f6d2cbbaa16b0eafe311a48109 | Java | herrrahn/public_chat_backend | /src/main/java/com/rahn/demo/messagens/MessageRepository.java | UTF-8 | 427 | 1.882813 | 2 | [] | no_license | package com.rahn.demo.messagens;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.UUID;
@Service
public interface MessageRepository extends CrudRepository<Message, UUID> {
public Iterable<Message> findAllByTargetEqua... | true |
0c979b8978e5d1705ba7b6957396ef5b014251bd | Java | andeggs/samaritans-answerhub | /config/src/main/java/com/teamhub/themes/ahub/interceptors/IndexInterceptor.java | UTF-8 | 2,677 | 2.125 | 2 | [] | no_license | package com.teamhub.themes.ahub.interceptors;
import com.teamhub.infrastructure.store.SiteStore;
import com.teamhub.managers.node.NodeManager;
import com.teamhub.managers.node.NodeQueryPlanner;
import com.teamhub.models.node.Question;
import com.teamhub.models.site.Container;
import freemarker.template.*;
import freem... | true |
b1c94d310ee83d1f7a7c7f10975fde1c9b616d24 | Java | skzxx/ternary_operator | /Main.java | UTF-8 | 924 | 3.765625 | 4 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main (String[] args) {
int OperatorInput_user;
int Variabel_Ternary;
Scanner Input_Prompt = new Scanner (System.in);
System.out.print("Masukam digit angka \n");
OperatorInput_user = Input_Prompt.nextInt();
System.out.print("Digi... | true |
aebb48e79136bdcbb41e4d8b65762c71a1abdad7 | Java | nordic-institute/X-Road | /src/proxy/src/main/java/ee/ria/xroad/proxy/signedmessage/SignerSigningKey.java | UTF-8 | 3,389 | 1.984375 | 2 | [
"MIT"
] | permissive | /**
* The MIT License
* Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Autho... | true |
ae82037600d86762f181282d100c1fda55852cae | Java | willpyshan13/WifiClub1.0 | /app/src/main/java/cn/situne/itee/manager/jsonentity/JsonPromote.java | UTF-8 | 7,753 | 2.09375 | 2 | [] | no_license | /**
* Project Name: itee
* File Name: JsonPromote.java
* Package Name: cn.situne.itee.manager.jsonentity
* Date: 2015-03-21
* Copyright (c) 2015, itee@kenes.com.cn All Rights Reserved.
*
*/
package cn.situne.itee.manager.jsonentity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JS... | true |
b949503be278257de6ea0c0083a5a8bcf1586cac | Java | zhuangqianmin/snack | /.svn/pristine/b9/b949503be278257de6ea0c0083a5a8bcf1586cac.svn-base | UTF-8 | 812 | 1.515625 | 2 | [] | no_license | package com.snack.service;
import java.util.List;
import java.util.Map;
import com.snack.model.Orderdetail;
import com.snack.model.Receiptinfo;
import com.snack.model.domain.DoAdminOrder;
import com.snack.model.domain.DoExcelOrder;
import com.snack.model.domain.DoSnack;
import com.snack.utils.PageHelp;
p... | true |
cc042c5f1c79e6c4a7f4ef2cb75e571c09cca613 | Java | JEONG-BYUNGEUN/Yumyum | /src/main/java/com/yumyum/dto/OrderlistDTO.java | UTF-8 | 4,472 | 1.9375 | 2 | [] | no_license | package com.yumyum.dto;
public class OrderlistDTO {
private String seq;
private String users_seq;
private String shop_seq;
private String order_num;
private String status;
private String regdate;
private String cleardate;
private String division;
private String request_owner;
private String req... | true |
bd9d4349a223a07e56faa05bf19d2a79cd2a30c7 | Java | alexurumov/TruckProjectRepo | /src/main/java/truckmanagementproject/data/models/users/User.java | UTF-8 | 935 | 2.34375 | 2 | [] | no_license | package truckmanagementproject.data.models.users;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import truckmanagementproject.data.models.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.Pattern;
import java.util.List;
@Entit... | true |
2c10a93a91ca7920e7d8cb7623f58a35a2145294 | Java | josephinex/Automation | /Labs/src/main/java/com/usm/lab2/problem2/JsonToObjectWithGson.java | UTF-8 | 927 | 3.53125 | 4 | [] | no_license | package com.usm.lab2.problem2;
import com.google.gson.Gson;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
public class JsonToObjectWithGson {
public static void main(String[] args) {
Gson gson = new Gson();
try (Reader reader = new FileReader("Labs/src/main/java/... | true |
8f6c1a23dffc8ab8648d9743c6d8f6a8e75566a6 | Java | Nisha556/JTree | /printTopToBottomPath.java | UTF-8 | 2,581 | 4.09375 | 4 | [] | no_license | package Tree;
//Java program to Print root to leaf path WITHOUT
//using recursion
import java.util.Stack;
import java.util.HashMap;
class PrintPath1 {
/* Function to print root to leaf path for a leaf
using parent Node5s stored in map */
public static void printTopToBottomPath(Node5 curr, HashMap<Node5,Node5... | true |
0070f4c7f52e9a3740ac734ec55959a684e92e4b | Java | KryptonCaptain/Et-Futurum | /src/main/java/ganymedes01/etfuturum/items/RabbitRaw.java | UTF-8 | 569 | 2.0625 | 2 | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | package ganymedes01.etfuturum.items;
import ganymedes01.etfuturum.EtFuturum;
import ganymedes01.etfuturum.IConfigurable;
import ganymedes01.etfuturum.core.utils.Utils;
import net.minecraft.item.ItemFood;
public class RabbitRaw extends ItemFood implements IConfigurable {
public RabbitRaw() {
super(3, 0.3F, true);
... | true |
e39c96717c473bd1be203894d33ca0d078ed0b23 | Java | lwl-gif/PalmLibrary | /app/src/main/java/com/example/ul/adapter/PayWayAdapter.java | UTF-8 | 6,535 | 1.828125 | 2 | [] | no_license | package com.example.ul.adapter;
import android.annotation.SuppressLint;
import android.content.ContentResolver;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | true |
b8af3a9256b143420c07cac0506b6151113d24b0 | Java | jorgemf/java-util | /src/main/java/com/livae/util/math/Vector3i.java | UTF-8 | 5,971 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | package com.livae.util.math;
/**
* Vector with 3 floats
*/
public class Vector3i implements Vector {
public int x;
public int y;
public int z;
public Vector3i() {
this.x = 0;
this.y = 0;
this.z = 0;
}
public Vector3i(final int[] coordinates) {
this.x = coordinates[0];
this.y = coordinates[1];
... | true |
ff339e7df19ff5f6eae6f55a9e60d2abb8806c9b | Java | bellmit/Ch_study2_seaco | /tp-model/src/main/java/com/tp/model/app/DynamicConfiguration.java | UTF-8 | 2,131 | 2.21875 | 2 | [] | no_license | package com.tp.model.app;
import java.io.Serializable;
import java.util.Date;
import com.tp.common.annotation.Id;
import com.tp.model.BaseDO;
/**
* @author szy
*
*/
public class DynamicConfiguration extends BaseDO implements Serializable {
private static final long serialVersionUID = 1481186498451L;
/** 数... | true |
c593266a47bd4aca4485588c93dd73b5a209c6f3 | Java | WarmBeer/Diplomacy | /src/utilities/KeyHandler.java | UTF-8 | 1,328 | 2.859375 | 3 | [] | no_license | package utilities;
import application.Main;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URL;
public class KeyHandler {
private static final String ALPHA_NUMERIC_STRING = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678... | true |
8e5d9fc95057e4c1ef7437a4bfd1b955df8de17c | Java | dsczs/design-pattern-java-source-code | /Chapter 09 Singleton/sample01/Client.java | UTF-8 | 686 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | public class Client {
public static void main(String a[]) {
IdentityCardNo no1, no2;
no1 = IdentityCardNo.getInstance();
no2 = IdentityCardNo.getInstance();
System.out.println("���֤�����Ƿ�һ�£�" + (no1 == no2));
String str1, str2;
str1 = no1.getIdentityCardNo();
... | true |
77e0abb93398e8b3914a49351c0cb7b7065aea1b | Java | seanoshea/BluePlaquesLondon-Android | /BluePlaquesLondon/app/src/main/java/com/upwardsnorthwards/blueplaqueslondon/activities/MainActivity.java | UTF-8 | 13,384 | 1.554688 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | // Copyright (c) 2014 - 2016 Upwards Northwards Software Limited
// 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,... | true |
afa9e6b22a64deedc117d46218d8fd4478dee712 | Java | hosle/Eagle201803 | /src/com/hosle/basic/Utils.java | UTF-8 | 126 | 1.671875 | 2 | [] | no_license | package com.hosle.basic;
public class Utils {
int[] dataInt = new int[]{1,3,4,8,10,2};
public void sort(){
}
}
| true |
85658ba2ba168ba21ebb1d6141500ca5d156dadc | Java | MohammedTChy/G33_INTE | /RGL_G33_Java_Code/test/MapTest.java | UTF-8 | 15,098 | 3.125 | 3 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class MapTest {
@Test
void TestWidth() {
Map map = new Map(10, 15);
assertEquals(map.getWidth(), 10);
}
@Test
void TestBreadth() {
Map map = new Map(12, 14);
assertEquals(map.g... | true |
a9dc68dbea1c37fbfa1bf0b2faf7e218dd684059 | Java | tuyetngoc23/betour | /src/main/java/com/ngoc/tour/repository/CattourRepository.java | UTF-8 | 277 | 1.625 | 2 | [] | no_license | package com.ngoc.tour.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.ngoc.tour.entity.CatTour;
@Repository
public interface CattourRepository extends JpaRepository<CatTour, Integer>{
}
| true |
d54ce044c2ba2b3f8c01ba2d1b2f6e6c9a80599f | Java | julietadai/android-mvp-movies-app | /app/src/main/java/com/juliedai/android/movietrailers/presentation/view/activity/list/MoviesActivity.java | UTF-8 | 5,570 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.juliedai.android.movietrailers.presentation.view.activity.list;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support... | true |
cd06128506309b5c3f8984564cf50106fe460a4d | Java | arunphilip03/SalesAutomation | /Model/src/com/sfa/model/base/BaseEntityImpl.java | UTF-8 | 1,741 | 2.484375 | 2 | [] | no_license | package com.sfa.model.base;
import oracle.jbo.AttributeDef;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityImpl;
import oracle.jbo.server.TransactionEvent;
public class BaseEntityImpl extends EntityImpl {
public BaseEntityImpl() {
super();
}
private static final byt... | true |
99543df2d342414f179bb982c5d3bb76522273d0 | Java | atscott/Algorithms_Lab1 | /src/main/java/scottat/SortBenchmarker.java | UTF-8 | 1,866 | 2.671875 | 3 | [] | no_license | package main.java.scottat;
import main.java.Sorting.*;
import java.io.IOException;
/**
* User: atscott
* Date: 3/13/14
* Time: 6:56 PM
*/
public class SortBenchmarker {
private CsvFileWriter combinedResultWriter;
public SortBenchmarker(String outputFile) {
combinedResultWriter = new CsvFileWriter(output... | true |
dc19be020b5c00698e3bf4ab182be275b5c39789 | Java | leisurelyMan/igreen-platform | /igreen-common/src/main/java/com/igreen/common/model/FreezeStockRight.java | UTF-8 | 7,067 | 2.34375 | 2 | [] | no_license | package com.igreen.common.model;
import java.math.BigDecimal;
import java.util.Date;
/**
* 描述:freeze_stock_right表的实体类
* @version
* @author: Administrator
* @创建时间: 2017-04-17
*/
public class FreezeStockRight {
/**
* id
*/
private Integer id;
/**
* 登记信息ID
*/
private Integer re... | true |
e59e4497fa99f1fa6f61e8b54ec610e97327eaed | Java | MarceloAlm/ProcessaImagens | /ProcessaImagens/src/modulos/preProcessamento/TiposProcessadoresImagem/ProcessadorImagem.java | ISO-8859-1 | 9,953 | 3.203125 | 3 | [] | no_license | package modulos.preProcessamento.TiposProcessadoresImagem;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import modulos.ExceptionTipoImagemInvalido;
public abstract class ProcessadorImagem {
public static final int iCINZA = 0;
public static final int iVERMELHO = 0;
public static fin... | true |
176cdab6055acd4efbd65654aaa6e3e991a30f30 | Java | karol221-10/NewPKSTechnology | /pksmanager/busmanager/busmanager-business/src/main/java/pl/kompikownia/pksmanager/busmanager/business/service/queryhandler/GetBusListQueryHandler.java | UTF-8 | 821 | 2.015625 | 2 | [] | no_license | package pl.kompikownia.pksmanager.busmanager.business.service.queryhandler;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import pl.kompikownia.pksmanager.busmanager.business.projection.BusProjection;
import pl.kompikownia.pksmanager.busmanager.business.query.GetBusListQuery;
import pl.kompikowni... | true |
d575eb9c60b2b4aaaede214f0c5f84bbf4bdda10 | Java | KaciAhmed/App_GPEC_en_JEE | /gpecpf-ejb/src/main/java/dz/elit/gpecpf/administration/service/AdminModuleFacade.java | UTF-8 | 1,649 | 2.296875 | 2 | [] | no_license | package dz.elit.gpecpf.administration.service;
import dz.elit.gpecpf.administration.entity.AdminModule;
import dz.elit.gpecpf.commun.service.AbstractFacade;
import dz.elit.gpecpf.commun.util.StaticUtil;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.... | true |
1f29b8aabaab02ba0eff16f176bc7eb90e8fe89c | Java | Arjiit/GeeksForGeeks | /seriesFormer.java | UTF-8 | 1,339 | 3.234375 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.lang.*;
public class seriesFormer {
public static void main(String[] args) {
String s = "1-5, 8, 11-14, 18, 20, 26-29";
expand(s);
}
static String[] split(String st) {
int wc = countWords(st);
String w[] = new String[wc];
char[] c = st.toCharArray();
i... | true |
19f16a7c2acddb3d3deece8f76ceb2b747319384 | Java | ADU-21/myspringmvc | /src/test/java/adu/interceptor/FeatureToggleInterceptorTest.java | UTF-8 | 2,698 | 2.234375 | 2 | [] | no_license | package adu.interceptor;
import adu.featuretoggle.FeatureToggle;
import adu.featuretoggle.InMemoryFeatureToggles;
import org.apache.commons.httpclient.HttpStatus;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServ... | true |
8c1fa99c004b58ad3c73d06e4fe32aa10a345bb1 | Java | mihnsen/SimpleMysqlAdapterForJava | /src/com/oe/java/simplemodel/OELog.java | UTF-8 | 275 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.oe.java.simplemodel;
/**
*
* @author minhnt
*/
public class OELog {
public static void d(String msg) {
System.out.println("LOG: "+msg);
}
public static void e(String msg) {
System.err.println("ERROR: "+msg);
}
}
| true |
a9c47dc354b5a6ca96cde84ef3a72581e3aff82f | Java | biatlon84/4.1_Programming_with_classes | /Task_4/src/com/epam/training/task_4/Train.java | UTF-8 | 1,222 | 2.90625 | 3 | [] | no_license | package com.epam.training.task_4;
import java.sql.Date;
import java.util.List;
public class Train implements Comparable<Train> {
private long number;
private Station destination;
private String destinationName;// this field is not needed
private Date data = new Date(System.currentTimeMillis());
public Train(Li... | true |
be2836b0af83da1197f584253108f6fb72152212 | Java | Novus-Ultimus/Adventure | /Adventure of a lifetime/src/adventure/of/a/lifetime/gif.java | UTF-8 | 8,673 | 2.484375 | 2 | [] | no_license | package adventure.of.a.lifetime;
import java.awt.EventQueue;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.swing.Icon;
import javax.swing.... | true |
da6ff55c69d7fc1806c735837f241340a9ba9ed5 | Java | harvyalmeida/LabExer2Almeida | /app/src/main/java/com/harvy/labexer2almeida/SecondActivity.java | UTF-8 | 2,490 | 2.21875 | 2 | [] | no_license | package com.harvy.labexer2almeida;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
im... | true |
5f94229b4ec17270a7578b3e4ace3ab346151437 | Java | danstaines/filmer-srv | /src/main/java/uk/me/staines/filmer/FilmList.java | UTF-8 | 724 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package uk.me.staines.filmer;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collections;
import java.util.List;
public class FilmList {
public final List<Film> films;
public final long count;
@JsonCreator
publ... | true |
6b2a25ea9e9113a6bf37a6cf280879429633d23d | Java | pascalmouret/fantasyteams | /src/fantasyteams/AttackHandler.java | UTF-8 | 3,399 | 2.78125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fantasyteams;
/**
*
* @author 5im08luneukom
*/
public class AttackHandler {
private int size=20;
int x,y;
private Field from;
private boolean[][] template=null;
private boolean[][] mvte... | true |
3640fdfcdf0a85d6a4c394e235afb568740184e1 | Java | SilentWL/Rxjava | /uploadfrombreak2/src/main/java/DBHelper/DBHelper.java | UTF-8 | 2,253 | 2.375 | 2 | [] | no_license | package DBHelper;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.support.ConnectionSource;
import com.j256.ormlite.table.TableUtils;
import java.util.List;
import... | true |
0bccb546c5d4709d0b92abd1edc2ab8033e9fb0b | Java | diegopacheco/java-pocs | /pocs/spring-data-redis-mappings-boot2/src/main/java/com/github/diegopacheco/sandboxspring/controller/HelloController.java | UTF-8 | 857 | 2.375 | 2 | [
"Unlicense"
] | permissive | package com.github.diegopacheco.sandboxspring.controller;
import com.github.diegopacheco.sandboxspring.model.Person;
import com.github.diegopacheco.sandboxspring.repo.RedisPersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | true |
2ed0e72029bb1f3b662f35686b0fbb00080e83a0 | Java | grace-kalu/learning-system | /src/main/java/com/codeWithMerald/RoyalSealLearningSystem/models/course/Course.java | UTF-8 | 3,560 | 2.359375 | 2 | [] | no_license | package com.codeWithMerald.RoyalSealLearningSystem.models.course;
import com.codeWithMerald.RoyalSealLearningSystem.models.department.Department;
import com.codeWithMerald.RoyalSealLearningSystem.models.teacher.Teacher;
import com.codeWithMerald.RoyalSealLearningSystem.models.user.Student;
import com.fasterxml.jackson... | true |
610f8e19f9399d1aa477f34688c6a49fcb245bee | Java | cckmit/duo-doc | /doclet-server/src/main/java/com/fangdd/tp/helper/DubboGenericInvoker.java | UTF-8 | 3,758 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.fangdd.tp.helper;
import com.alibaba.dubbo.common.utils.StringUtils;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ReferenceConfig;
import com.alibaba.dubbo.config.RegistryConfig;
import com.alibaba.dubbo.rpc.service.GenericService;
import com.fangdd.tp.core.exceptions.... | true |
1290120fd7296ae7cd6e397e06f71a4251801396 | Java | drpicox/mons-fractals | /mgc/mf/filtre/ParametresTexturaAleatoria.java | UTF-8 | 746 | 2.578125 | 3 | [] | no_license | package mgc.mf.filtre;
import java.util.Enumeration;
import java.util.Random;
import java.util.Vector;
import mgc.mf.*;
/**
* Parametres per la textura aleatoria (basicament seed).
* Creation date: (12/01/01 03:27:49)
* @author: David Rodenas Pico
*/
public
class ParametresTexturaAleatoria
exte... | true |
381a6066bc28aefbd46523020274d87d745bd407 | Java | satand/Ldapper | /src/com/ldapper/context/control/ResponseControlFactory.java | UTF-8 | 2,180 | 2.40625 | 2 | [] | no_license | package com.ldapper.context.control;
import java.io.IOException;
import javax.naming.NamingException;
import javax.naming.ldap.Control;
import javax.naming.ldap.ControlFactory;
import javax.naming.ldap.PagedResultsResponseControl;
import javax.naming.ldap.SortResponseControl;
import org.apache.log4j.Logger... | true |
54be11a562f25ab0c9d9f0b00f9d0c67d6f3365d | Java | facundolinlaud/btuco | /src/main/java/com/fruta/btuco/service/api/actions/Action.java | UTF-8 | 403 | 1.953125 | 2 | [] | no_license | package com.fruta.btuco.service.api.actions;
import com.fruta.btuco.model.ActionParams;
import com.fruta.btuco.model.PictureMetadata;
import java.awt.image.BufferedImage;
/**
* Created by facundo on 12/17/15.
*/
public interface Action {
BufferedImage apply(PictureMetadata metadata, BufferedImage image, Action... | true |
3542c339a0bad4ebadc79c2c233e6a9cbd062a04 | Java | oldfagorg/2020-Anniversary | /src/main/java/org/oldfag/ResourcePackManager.java | UTF-8 | 1,074 | 2.1875 | 2 | [] | no_license | package org.oldfag;
import net.minecraft.server.v1_12_R1.EntityPlayer;
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.Playe... | true |
de03a45a017453468dd823de8320e14765dd7b29 | Java | TurboLowcode/seezoon-stack | /seezoon-admin-server/src/main/java/com/seezoon/admin/modules/sys/security/AdminUserDetailsServiceImpl.java | UTF-8 | 7,289 | 1.75 | 2 | [
"MIT"
] | permissive | package com.seezoon.admin.modules.sys.security;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
83dc3bc8e5efaa10e1e251cac834b1686e3ae48b | Java | crazy1235/JackShare | /jacksharelibrary/src/main/java/com/jacksen/sharelibrary/param/ShareWebPageParam.java | UTF-8 | 3,643 | 2.125 | 2 | [] | no_license | package com.jacksen.sharelibrary.param;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.TextUtils;
import com.jacksen.sharelibrary.R;
import com.jacksen.sharelibrary.exception.InvalidParamException;
import com.jacksen.sharelibrary.util.ImageType;
import co... | true |
a5e31697832c4064feec001f8aa15e8179a22106 | Java | shelsonjava/Synx | /WakfuClientSources/srcx/class_4291_bNr.java | UTF-8 | 1,942 | 1.554688 | 2 | [] | no_license | import com.ankamagames.framework.graphics.engine.VertexBufferPCT;
import com.ankamagames.framework.graphics.engine.VertexBufferPCT.ObjectFactory;
import javax.media.opengl.GL;
import org.apache.log4j.Logger;
public abstract class bNr extends cDv
{
protected static Logger K = Logger.getLogger(bNr.class);
protected... | true |
6c7355e75b1def6ec9819313869b6f5e89148c80 | Java | Nnubes256/UseLessMod | /src/UselessMod/proxies/ClientProxy.java | UTF-8 | 840 | 1.734375 | 2 | [] | no_license | package UselessMod.proxies;
import java.io.File;
import UselessMod.base;
import UselessMod.Auxiliares.Renders.RenderEntityThrowable;
import UselessMod.Configuracion.Datos;
import UselessMod.Items.BombAmbar.BombAmbar;
import UselessMod.Items.BombAmbar.EntityBomb;
import cpw.mods.fml.client.registry.RenderingRegistry... | true |
49378362ff0dc0ad4d2f1c5c7f339874682d0742 | Java | RBH123/parent | /provider/src/main/java/ruan/provider/common/WebFilterConfig.java | UTF-8 | 407 | 1.726563 | 2 | [] | no_license | package ruan.provider.common;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
/**
* Author: rocky Date: 2021/1/22 9:31 Project: parent1 Package: ruan.provider.common
*/
@ConditionalOnWebApplication
public class WebFilterConfig ... | true |
c8ea531678333cf63e12e9390326b3fc08e49d72 | Java | crosslivebob/study-books | /lite-spring/src/test/java/org/lite/spring/util/MessageTracker.java | UTF-8 | 446 | 2.15625 | 2 | [] | no_license | package org.lite.spring.util;
import java.util.ArrayList;
import java.util.List;
/**
* Created by bfq on 2020/3/27
*/
public class MessageTracker {
private static List<String> MESSAGES = new ArrayList<String>();
public static void clearMsgs() {
MESSAGES.clear();
}
public static List<Strin... | true |
c48ddd8616f00ff8033e6aa14e2ee58d505f1529 | Java | vishal901/storemanagerADMIN | /app/src/main/java/in/vaksys/storemanager/adapter/Ailments_Adapter.java | UTF-8 | 2,628 | 2.15625 | 2 | [] | no_license | package in.vaksys.storemanager.adapter;
import android.app.Activity;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.greenrobot.eventbus.EventBus;
imp... | true |
8b2ecc35b6876f4a11434db9ecf218ce793cb3fd | Java | yingfengchen/Bynnean_retrofit | /app/src/main/java/retrofit/android/bynnean/gennericity/beans/ParameterizedTypeBean.java | UTF-8 | 435 | 1.953125 | 2 | [] | no_license | package retrofit.android.bynnean.gennericity.beans;
import java.util.List;
import java.util.Map;
import java.util.Set;
import retrofit.android.bynnean.gennericity.Person;
public class ParameterizedTypeBean {
Map<String, Person> map;
Set<String> set1;
Class<?> clz;
Holder<String> holder;
List<String> list;
Str... | true |
27b07e16dc637fbaf9a8f770a38d3bae10bb52a6 | Java | dencgi/atelier | /atelier1/src/main/java/dad/atelier1/constructeur/peugeot/voiture/P307.java | UTF-8 | 366 | 2.015625 | 2 | [] | no_license | package dad.atelier1.constructeur.peugeot.voiture;
import dad.atelier1.constructeur.peugeot.ModelePeugeot;
import dad.atelier1.voiture.AbstractVoiture;
import dad.atelier1.voiture.Voiture;
public class P307 extends AbstractVoiture implements Voiture {
public P307(String cle, String numeroSerie) {
super(M... | true |
32da962b4a4859e8d66551faf34cda1aad0d57a5 | Java | Fang123456/DesignPatterns | /java练习/工厂模式/src/Pizza/Pizza.java | UTF-8 | 1,572 | 3.109375 | 3 | [] | no_license | package Pizza;
import PizzaIngredientFactory.source.Cheese.Cheese;
import PizzaIngredientFactory.source.Dough.Dough;
import PizzaIngredientFactory.source.Pepperoni.Pepperoni;
import PizzaIngredientFactory.source.Sauce.Sauce;
import PizzaIngredientFactory.source.Veggies.Veggies;
import java.util.ArrayList;
/**
* Cre... | true |
2c05d9129b00fce3788d3e766a272ce0b84559ca | Java | zhongxingyu/Seer | /Diff-Raw-Data/11/11_92aa61eb54407db2614b15c5441865fe4021727a/VoogaLevelEditorModel/11_92aa61eb54407db2614b15c5441865fe4021727a_VoogaLevelEditorModel_t.java | UTF-8 | 740 | 2.140625 | 2 | [] | no_license | /**
* @author Michael Zhou (Dominator008), Siyang Chen
*/
package leveleditor;
import java.awt.Point;
import java.io.File;
import java.util.Map;
import levelio.LevelState;
import levelio.SpriteWrapper;
public class VoogaLevelEditorModel
{
protected LevelState myLevelState;
public Voog... | true |
9ab4bc186912811ce3f54258f452982f2639f167 | Java | jpauley16/TeamProject | /CopCodeRestAPI/src/main/java/edu/matc/copcoderest/webservice/CodeToStringXML.java | UTF-8 | 5,416 | 2.515625 | 3 | [] | no_license | package edu.matc.copcoderest.webservice;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import edu.matc.copcoderest.entity.MedFireCodes;
import edu.matc.copcoderest.persistence.*;
import e... | true |
6e67cca5d0940119d424d5fd5ecde0bd895ed21b | Java | JobsSteve/MultiScreenGame | /MSPCClient/src/pcclient/events/GameStatusEvent.java | UTF-8 | 881 | 2.5625 | 3 | [] | no_license | package pcclient.events;
import org.json.simple.JSONObject;
public class GameStatusEvent extends JSONEvent{
public static String eventName = "GameStatusEvent";
static final String statusIDKey = "SID";
public int statusID;
public GameStatusEvent(String dest, String sender,int statusID) {
super(de... | true |
169a6cfb7ed9c328856c598a8ef9c0652b9a1b8e | Java | liuzhi779373844/Javabasic | /SampleAnswerQuestion02.java | GB18030 | 814 | 3.5625 | 4 | [] | no_license | package java43_javabasic_Homework;
import java.util.Scanner;
public class SampleAnswerQuestion02 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
System.out.println("ڼһգ");
String week = input.next();
switch(week){
ca... | true |
18751723045001ca35801533041770d3fbe057e8 | Java | rabbilegames/Santa-Jump | /Code/rabbilegames/src/main/java/org/rabbilegames/framework/StitchedEntity.java | UTF-8 | 2,490 | 2.65625 | 3 | [] | no_license | package org.rabbilegames.framework;
import org.andengine.entity.Entity;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.shader.ShaderProgram;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.rabbilegames.ResourceManager;
public class StitchedEntity extends Entity
{
protec... | true |
d7ea596dda8a61a6efbd0deceed79cf232f9df9f | Java | frankdressel/mqttcache | /src/main/java/de/moduliertersingvogel/mqttcache/Main.java | UTF-8 | 393 | 2.171875 | 2 | [] | no_license | package de.moduliertersingvogel.mqttcache;
import java.util.Scanner;
import javax.ws.rs.core.Application;
import org.apache.meecrowave.Meecrowave;
public class Main extends Application {
public static void main(String[] args) {
try (final Meecrowave meecrowave = new Meecrowave();final Scanner scanner=new Scanner... | true |
0fe60160f21e8db59200aa4b618bf20b52492f06 | Java | lpungh/App | /app/src/main/java/com/example/administrator/ekapp/Fragment_About.java | UTF-8 | 665 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.example.administrator.ekapp;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by YunJungsu on 2017-07-07.
*/
public class Fragment_About extends Fr... | true |
3163fd1c871e2225cfedb59a9e29901cdac7c2d0 | Java | karthik-git-user/SAP-Stage | /core-customize/hybris/bin/modules/sap-customer-data-cloud/gigyacpicustomerexchangemdm/src/de/hybris/platform/gigya/gigyacpicustomerexchangemdm/service/impl/GigyaCpiMDMCustomerDefaultConversionService.java | UTF-8 | 1,169 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.gigya.gigyacpicustomerexchangemdm.service.impl;
import de.hybris.platform.core.model.user.AddressModel;
import de.hybris.platform.core.model.user.CustomerModel;
import de.hybris.platform.sap.sapcpiadapter.m... | true |
40c5019486b5d77b18f9713ce1e3f4f385341a60 | Java | phalves/PHAMST3 | /src/view/panels/Register.java | ISO-8859-1 | 11,140 | 2.359375 | 2 | [] | no_license | package view.panels;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOE... | true |
72d55ea3590074a1cb9143516ac1a810e1bceb06 | Java | Lamba007/SeleniumGuiceFramework | /src/test/java/com/test/guice/stepdef/Navigation.java | UTF-8 | 501 | 2.046875 | 2 | [] | no_license | package com.test.guice.stepdef;
import com.google.inject.Inject;
import com.test.guice.World;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import cucumber.api.java8.En;
public class Navigation implements En {
private World world;
@Inject
public Navigation(World world) {
... | true |
0b46f56a7c7b7cea5a23df3cdd537ffc2c2b1a5d | Java | JonathanOppenheimer/2018-2019-AP-Comp-Sci-Code | /Testing/Finn.java | UTF-8 | 77 | 2.328125 | 2 | [
"MIT"
] | permissive | public interface Finn
{
public void doSomething();
public int doMore();
}
| true |
ea0f1e7458836a2cdfaa67b0bc7a1863242edaf0 | Java | ningwanglyx/mall | /src/main/java/com/ke/mall/config/Swagger2Config.java | UTF-8 | 1,674 | 2.203125 | 2 | [] | no_license | package com.ke.mall.config;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.... | true |
271642b71e897d5af7f03fa58068d487967f18ed | Java | HuangTianJie/Tonney | /guoren-market-dao/src/main/java/com/gop/mapper/UserRedeemActivityMapper.java | UTF-8 | 846 | 1.898438 | 2 | [] | no_license | package com.gop.mapper;
import org.apache.ibatis.annotations.Param;
import com.gop.domain.UserRedeemActivity;
import com.gop.domain.enums.UserRedeemActivityStatus;
public interface UserRedeemActivityMapper {
int insert(UserRedeemActivity record);
int insertSelective(UserRedeemActivity record);
UserRed... | true |
768946c59e8e55c9091e9f9a3c12a075fdecdba5 | Java | rgfretes/juego-walkers-of-the-city | /Soft/Walkers-of-the-city/unittest/test_coords.java | UTF-8 | 486 | 2.421875 | 2 | [] | no_license | import junit.framework.TestCase;
public class test_coords extends TestCase {
coords c;
public void setUp()
{
c = new coords(1,1);
}
public void testSet_posx() {
//fail("Not yet implemented");
c.set_posx(2);
assertEquals("La coordenada x deberia ser igual a 2", 2, c.get_posx());
}
p... | true |
fa2735fa4ac543a052cd7900cfccb7ac35645251 | Java | silverchairz/FFmpeg-Transcoding-To-Chromecast | /app/src/main/java/com/munix/httpd/utils/FileUtils.java | UTF-8 | 2,476 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.munix.httpd.utils;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.os.Environment;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOE... | true |
63073dbd2f43cbbe3e0252af824219de4e3accbf | Java | Iridium232/settlers-of-catan | /src/shared/communication/toServer/moves/Command.java | UTF-8 | 812 | 2.890625 | 3 | [] | no_license | package shared.communication.toServer.moves;
//import shared.definitions.String;
/**
* Michael Rhodes
* CS 340
* Section 2
* Team 10
*
* abstract String for command Strings
*/
public abstract class Command {
/** String representing the command */
private String type;
/** Who's sending this command ... | true |
692b9961626090d70e6f22f7f5deff9f7e167a6a | Java | cjc760160/sjlian | /src/main/java/com/spring/sjlian/service/IUserService.java | UTF-8 | 186 | 1.59375 | 2 | [] | no_license | package com.spring.sjlian.service;
import com.spring.sjlian.common.VO.UserVO;
/**
* Created by lian on 17/7/12.
*/
public interface IUserService {
Long addUser(UserVO userVO);
}
| true |
a916ec24911229a335c09a50f2789dd61a44927a | Java | PacktPublishing/jOOQ-Masterclass | /Chapter09/MySQL/Gradle/CRUD/DaoCRUDRecords/src/main/java/com/classicmodels/repository/ClassicModelsRepository.java | UTF-8 | 1,849 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.classicmodels.repository;
import java.util.List;
import static jooq.generated.tables.BankTransaction.BANK_TRANSACTION;
import jooq.generated.tables.daos.BankTransactionRepository;
import jooq.generated.tables.pojos.BankTransaction;
import org.jooq.DSLContext;
import org.springframework.stereotype.Repositor... | true |
38182afc8ceb77070c2e3287eb7ce3ac9eff25a7 | Java | 1160300906/MySemanticAnalysis | /src/SemanticAnalysis/semanticRule.java | WINDOWS-1252 | 59,587 | 2.421875 | 2 | [] | no_license | package SemanticAnalysis;
import java.util.ArrayList;
import Entity.AddrNum;
import Entity.CharTable;
import Entity.FourAddr;
import Entity.RreeSemanticRecord;
import Entity.LRTree;
public class semanticRule {
static int i=0;
// Ƭ1, T->X {t=X.type;w=X.width;} C
public void semanticRule_1(ArrayL... | true |
d7f38a65d4bf0917b15a05f97bb4e8d7751d66d8 | Java | rjpark-epe/etm | /etm/src/main/java/com/epe/etm/config/security/AdminLoginProvider.java | UTF-8 | 1,369 | 2.3125 | 2 | [] | no_license | package com.epe.etm.config.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication... | true |
9fc074e477c3be94a57baae0d15b12a5189280ed | Java | DiegoLoTre/TravelPath | /src/example/GrafoNoDirigido.java | UTF-8 | 1,304 | 3.515625 | 4 | [] | no_license | package example;
/*
* GrafoNoDirigido.java
*
* Trabajo Práctico Nro. 2
* Algoritmos y Estruturas de Datos III
* Autor: Cristhian Daniel Parra
*
* Fecha: 07 - 05 - 2005
*
* Esta clase implementa un grafo no dirigido de una manera muy simple
* y ahorrativa en código.
*
* Hacemos que la clase herede de la cla... | true |
165c4ab328dde3c217b194f93ddc788c4a8d99fd | Java | paopao2/Algorithm-Practice | /Maximum Subarray.java | UTF-8 | 2,286 | 3.890625 | 4 | [] | no_license | /*
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [−2,1,−3,4,−1,2,1,−5,4],
the contiguous subarray [4,−1,2,1] has the largest sum = 6.
click to show more practice.
More practice:
If you have figured out the O(n) solution, try codi... | true |
84a0c41b801647a934c4aa66523356becd71bd70 | Java | yusato0378/aa | /sources/com/google/android/gms/internal/zzfh.java | UTF-8 | 1,164 | 1.695313 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package com.google.android.gms.internal;
import java.util.concurrent.Future;
// Referenced classes of package com.google.android.gms.internal:
// zzfk
publ... | true |
09c533adf1b35cab8224cac88ad7e89e7f66dabc | Java | trojancao/SSM | /maven-service/src/main/java/ecloud/com/exception/UnLoginException.java | UTF-8 | 464 | 2.140625 | 2 | [] | no_license | package ecloud.com.exception;
import ecloud.com.base.exception.BaseException;
public class UnLoginException extends BaseException {
/**
*
*/
private static final long serialVersionUID = 1L;
public UnLoginException() {
super();
}
public UnLoginException(String message) {
super(message);
}
public UnL... | true |
a28a0c91523e6c05acf454189f9394f9d67f00a5 | Java | AndrewDockan/ChamplainAirFreight | /src/main/java/edu/cco/ChamplainAirFreight/Database/Client/DBDeleteClient.java | UTF-8 | 1,224 | 2.828125 | 3 | [] | no_license | package edu.cco.ChamplainAirFreight.Database.Client;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import edu.cco.ChamplainAirFreight.Database.DBConnection;
/**
*
* @author Andrew Dockan
* @Date: Nov 19, 2020
* @Description: DB... | true |
9b5b6f2009066dd2318cf62ec3dae0f78b3a7203 | Java | moutainhigh/sophia | /sophia-b2b-insight/sophia-b2b-insight-api/src/main/java/com/yz/sophia/insight/provider/LegalInstrumentProvider.java | UTF-8 | 1,681 | 2.140625 | 2 | [] | no_license | package com.yz.sophia.insight.provider;
import com.yz.sophia.business.api.entity.CommonResponse;
import com.yz.sophia.insight.model.po.LegalInstrumentInfo;
import com.yz.sophia.insight.model.response.LegalInstrumentResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springfr... | true |