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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2164ba51c248b1302780369f22c0e256e1338a16 | Java | googleinterns/play-movies-2020-intern | /MoviesTVSentiments/app/src/androidTest/java/com/google/moviestvsentiments/TestWebModule.java | UTF-8 | 663 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.google.moviestvsentiments;
import com.google.moviestvsentiments.service.web.WebService;
import com.google.moviestvsentiments.webTestUtil.TestWebService;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.Applicati... | true |
e5475d7a083404a31b8493a2c9e8098599c2b5ea | Java | doyongsung/ppelpp | /spring_project/Orl-Crew/src/main/java/com/bitcamp/orl/crew/controller/RestCrewCreateController.java | UTF-8 | 1,041 | 2.140625 | 2 | [] | no_license | package com.bitcamp.orl.crew.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bitcamp.orl.crew.... | true |
22374de30c8cc778143bbdbae1c52ebc9b8ba169 | Java | lmy1/zhks | /zhks-auth/src/main/java/com/cd/uap/controller/RevokeTokenEndpointController.java | UTF-8 | 1,102 | 2.15625 | 2 | [] | no_license | package com.cd.uap.controller;
import com.cd.uap.bean.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.oauth2.provider.endpoint.FrameworkEndpoint;
import org.springframework.security.oauth2.provid... | true |
9005b23baafdbf5afe904a7e4207e5b7999c7758 | Java | eallanjoseph123/menu-app-microservice | /Cart/src/main/java/com/menu/system/cart/controller/CartController.java | UTF-8 | 1,351 | 2.25 | 2 | [] | no_license | package com.menu.system.cart.controller;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | true |
7c4d6ac66225db8985e1d2643abeb6aa8fe708c2 | Java | mbeider/fizteh-java-2014 | /src/ru/fizteh/fivt/students/vladislav_korzun/JUnit/MyTableProvider.java | UTF-8 | 2,894 | 2.96875 | 3 | [] | no_license | package ru.fizteh.fivt.students.vladislav_korzun.JUnit;
import java.io.File;
import java.nio.file.Paths;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;
import ru.fizteh.fivt.storage.strings.Table;
import ru.fizteh.fivt.storage.strings.TableProvider;
public class MyTableProvider implements... | true |
4d224e327111248d1e36a089bf3342df038ef88f | Java | aruibukedang/myrepository | /shopweb/src/main/java/serviceImpl/orders_details_serviceImpl.java | UTF-8 | 1,074 | 1.914063 | 2 | [] | no_license | package serviceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import dao.orders_details_dao;
import entity.orders_details;
import service.orders_details_service;
@Service
public class orders_details_serviceImpl i... | true |
84bb6f667e2e2f2037dc2ec53329bad7106f04fa | Java | daihuabin/Ellias | /src/Ellias/rm/com/tencent/stat/a/h.java | UTF-8 | 1,337 | 1.695313 | 2 | [] | no_license | package com.tencent.stat.a;
import android.content.Context;
import com.tencent.stat.StatAppMonitor;
import com.tencent.stat.common.k;
import org.json.JSONObject;
public class h extends e
{
private static String l = null;
private static String m = null;
private StatAppMonitor a = null;
public h(Context paramC... | true |
757aa69e6eb5f32be6808800e7955c586c0dc122 | Java | RayaneBen/PPE | /PPE 2016/src/crud/Creation.java | UTF-8 | 609 | 2.1875 | 2 | [] | no_license | package crud;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import modele.Utilisateur;
public class Creation {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEntityM... | true |
d17fd31da2d565b517c5ff48adb8bbcbf9e59f6d | Java | coderwillyi/springBootWebsocket | /src/main/java/cn/hkfdt/xiaot/web/xiaot/service/XiaoTService.java | UTF-8 | 1,785 | 1.875 | 2 | [] | no_license | package cn.hkfdt.xiaot.web.xiaot.service;
import cn.hkfdt.xiaot.mybatis.model.ltschina.ForceAnalysis;
import cn.hkfdt.xiaot.mybatis.model.ltschina.TQuestionsNew;
import java.util.List;
import java.util.Map;
public interface XiaoTService {
/**
* @param fdtId
* @param market 0:期货 1:股票 2:外汇
* @return
* aut... | true |
273cb9ca83f6f41e6e95554f3b2ba7dca8b86b95 | Java | JSTjoa/PA2 | /ServerWithoutSecurity.java | UTF-8 | 3,722 | 2.671875 | 3 | [] | no_license | import java.awt.*;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.Base64;
import javax.crypto.Cipher;
import java.security.*;
public class ServerW... | true |
e0896350aa56613f1fbf34c03ec47bfc9b559a35 | Java | LucaZL/test_hello_world | /src/Lesson_5_2.java | UTF-8 | 1,020 | 3.28125 | 3 | [] | no_license | import java.util.Arrays;
public class Lesson_5_2 {
public static void main(String[] args) {
String S = "1234321241231231";
int[] P = {2,5,1,3,2,4};
int[] Q = {3,6,1,5,2,8};
int X = 2;
Lesson_5_2 les = new Lesson_5_2();
int[] result = les.solution(S, P, Q);
f... | true |
b92a8700691d69d43ef4c82cf78363124a139be4 | Java | Aucco/ApartmentSystem | /src/main/java/com/aoke/apartmentsystem/system/service/IUnitService.java | UTF-8 | 1,688 | 2.109375 | 2 | [] | no_license | package com.aoke.apartmentsystem.system.service;
import com.aoke.apartmentsystem.common.entity.DeptTree;
import com.aoke.apartmentsystem.common.entity.QueryRequest;
import com.aoke.apartmentsystem.system.entity.Unit;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service... | true |
a1072c36d4ba3880b04478a30a62d5f215a61b64 | Java | qianjiangyoushui/jinxiaocun-java | /src/main/java/com/ecfund/base/util/common/UUIDCreate.java | UTF-8 | 490 | 2.625 | 3 | [] | no_license | package com.ecfund.base.util.common;
import java.util.UUID;
/**
*
* 这里是文件说明注释
*
* @date Feb 6, 2012 2:08:56 PM
* @filename UUIDCreate.java
* @author 胡志刚
*
*/
public class UUIDCreate {
public static String get() {
UUID uuid = UUID.randomUUID();
return uuid.toString().replace("-", "").toUpperCase();
}... | true |
bc897fd0534b0fa95ade99609435558d96059229 | Java | pd-pmueller/cpa | /cpa-web/src/main/java/com/prodyna/pmu/cpa/web/client/ui/page/ConferenceListPage.java | UTF-8 | 1,653 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* $Id$
* Copyright 2013 PRODYNA AG
*/
package com.prodyna.pmu.cpa.web.client.ui.page;
import java.util.List;
import javax.inject.Inject;
import org.jboss.errai.common.client.api.Caller;
import org.jboss.errai.common.client.api.RemoteCallback;
import org.jboss.errai.ui.nav.client.local.DefaultPage;
... | true |
4cb28032e32fe4aad9eb7afef76dd91eb5103d8c | Java | 27Saidou/cours_python | /CyberSecurity.java | UTF-8 | 142 | 2.046875 | 2 | [] | no_license | public class CyberSecurity extends Staff_CSE {
public void Domain() {
System.out.println("Domaine de la cyber security");
}
}
| true |
9b53d5556812ba26e43348c17af25d35785e11fb | Java | morningblu/HWFramework | /MATE-20_EMUI_11.0.0/src/main/java/ohos/multimodalinput/eventimpl/KeyBoardEventImpl.java | UTF-8 | 19,314 | 1.929688 | 2 | [] | no_license | package ohos.multimodalinput.eventimpl;
import android.view.KeyEvent;
import java.util.HashMap;
import java.util.Map;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;
import ohos.media.camera.params.Metadata;
import ohos.media.camera.params.adapter.InnerMetadata;
import ohos.miscservices.inputmethod.Inpu... | true |
83970dff479c5c8b96a77a36e243ae07c37f2b34 | Java | xiaoyangzhang/harem | /palace-web/src/main/java/com/yimayhd/palace/controller/loginout/TestController.java | UTF-8 | 2,791 | 2.03125 | 2 | [] | no_license | package com.yimayhd.palace.controller.loginout;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... | true |
39c3acef6e13efdefa2aee2ba62f66a72b7c1208 | Java | AT-07/coding | /src/main/java/org/fundacionjala/coding/ana/Camel.java | UTF-8 | 594 | 3.125 | 3 | [] | no_license | package org.fundacionjala.coding.ana;
/**
* word invert when the word is major that 5.
*
* @author Ana Maria Mamani Zenteno.
*/
public class Camel {
/**
* Method to convert the first letter to capital.
*
* @param str bow in.
* @return the value String.
*/
public String camelCase(... | true |
096308298ea95fc10324ac1b1843bb36712796d8 | Java | Jasonandy/alpaca | /alpaca-common/src/main/java/cn/ucaner/alpaca/framework/utils/tools/script/ScriptUtil.java | UTF-8 | 3,390 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved.</p>
* <p> Created on 19941115</p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.alpaca.framework.utils.tools.script;
import javax.script.Bindings;
import javax.script.Compilable;... | true |
ebf2252a710555580043a1e1fc94504b99e759d8 | Java | anusha86rains/SeleniumProject | /MavenTestAutomation/src/main/java/com/htc/qa/reporting/ExtentManager.java | UTF-8 | 1,966 | 2.28125 | 2 | [] | no_license | package com.htc.qa.reporting;
import java.io.File;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTestInterruptedException;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
import com.aventstack.extentreports.reporter.ExtentXReporter;
import com.aventstack... | true |
6bc3b6522b6baa4e82c908f1e4733c197678fb67 | Java | proAhmed/Task | /app/src/main/java/com/ahmed/testforapp/util/DateUtil.java | UTF-8 | 745 | 2.859375 | 3 | [] | no_license | package com.ahmed.testforapp.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class DateUtil {
public static String convertDate(String inputDate){
Date parsed;
String outputDate;
String inputFormat = "yyyy-MM-dd";
String outputFormat... | true |
54c2bb96eaf06e5edadba2d1397d330c2a5c1e32 | Java | urunimi/codelab-library | /library/src/com/hovans/android/uuid/UUIDHelper.java | UTF-8 | 11,661 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.hovans.android.uuid;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Date;
import java.util.UUID;
/**
* Time based UUID를 위한 Helper Class
* 기본 UUID는 시간 기반이... | true |
9c9df24d24fb3651cd59d3f26b3157a8bff6fa04 | Java | bucc5062/DBTest | /app/src/main/java/com/technoapp/wmf/dbtest/eqDatabaseService.java | UTF-8 | 8,262 | 2.0625 | 2 | [] | no_license | package com.technoapp.wmf.dbtest;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
/**
* Cr... | true |
97a4610ce0e500934b9c31c6c7320ba5e13ebf39 | Java | adamacosta/dsa-inventory-project | /src/inventory/ItemRecord.java | UTF-8 | 4,656 | 3.375 | 3 | [] | no_license | /** Holds the record in memory for a single item */
package inventory;
import java.io.*;
import java.util.*;
import java.math.*;
public class ItemRecord {
// data members - all private
/** SKU number - also acts as key value */
private int SKU;
/** numInStore - # items currently in store */
private int num... | true |
cb43e51bf82fa5f0874f47b7f08da1609598f44c | Java | fmerino-indra/recibos | /src/main/java/es/cnc/suscripciones/domain/ParroquiaHasParroco.java | UTF-8 | 2,809 | 2.140625 | 2 | [] | no_license | package es.cnc.suscripciones.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import j... | true |
c35805f791570011a79c622649834350f423fa5d | Java | thanhmt-smd/AutoTraining | /src/day02/BeachHouses.java | UTF-8 | 453 | 2.890625 | 3 | [] | no_license | package day02;
/**
* @author thanhtruong
*
*/
public class BeachHouses {
private int numBeach;
private String nameBeach;
public BeachHouses(String name) {
this.nameBeach = name;
}
public int getNumBeach() {
return numBeach;
}
public void setNumBeach(int numBeach) {
this.numBeach = numBeach;
}
pub... | true |
fc3eee9445e5224c3db83bda1caa300645ba9f5d | Java | freshwork/workin | /Workin/workin-test/org/workin/test/ws/soap/client/AllEmployeeResult.java | UTF-8 | 3,969 | 2.125 | 2 | [] | no_license |
package org.workin.test.ws.soap.client;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for All... | true |
01118f48e946a42a637bac5009f6455c1af30235 | Java | indrabasak/spring-etcd-example | /src/main/java/com/basaki/data/repository/BookRepositoryImpl.java | UTF-8 | 6,787 | 2.640625 | 3 | [] | no_license | package com.basaki.data.repository;
import com.basaki.data.entity.Book;
import com.basaki.error.exception.DatabaseException;
import com.coreos.jetcd.Client;
import com.coreos.jetcd.data.ByteSequence;
import com.coreos.jetcd.data.KeyValue;
import com.coreos.jetcd.kv.DeleteResponse;
import com.coreos.jetcd.kv.GetRespons... | true |
f769cbe9f54865aab7302d2078102b18df9ec89c | Java | ahmetoguz1/Java-Spring-Boot | /src/main/java/Akgun/HumanResources/Business/Concretes/CustomUserDetailsService.java | UTF-8 | 1,124 | 2.328125 | 2 | [] | no_license | package Akgun.HumanResources.Business.Concretes;
import Akgun.HumanResources.DataAccess.Abstracts.UserRepository;
import Akgun.HumanResources.Entities.Concretes.MyUserDetails;
import Akgun.HumanResources.Entities.Concretes.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | true |
98d2ec92e95e8905813e2a55818a8c21fa73f567 | Java | jasonnth/AirCode | /sources/com/jumio/clientlib/impl/livenessAndTM/ImgWarp.java | UTF-8 | 1,233 | 1.851563 | 2 | [] | no_license | package com.jumio.clientlib.impl.livenessAndTM;
public class ImgWarp {
/* renamed from: a */
private long f3181a;
protected boolean swigCMemOwn;
protected ImgWarp(long j, boolean z) {
this.swigCMemOwn = z;
this.f3181a = j;
}
protected static long getCPtr(ImgWarp imgWarp) {
... | true |
b60dadc5982365e49e0b43f749af6a29de2e7f26 | Java | xbmchina/netty-learning | /rpc-server/src/main/java/cn/xbmchina/rpc/server/RPCServer_test.java | UTF-8 | 2,661 | 2.171875 | 2 | [] | no_license | package cn.xbmchina.rpc.server;
import cn.xbmchina.rpc.common.Const;
import cn.xbmchina.rpc.zk.ZkFactory;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import i... | true |
21f78af2a55f0ccbcddc0b4539836ce42b994d08 | Java | 19970924WZY/DeAnza | /CIS36A/HW8/Sub/src/Sub.java | UTF-8 | 625 | 3.875 | 4 | [] | no_license | /*
* @Zhengyu Wu
* CIS36A TTh 11:30am-01:20pm
*/
import java.util.Scanner;
public class Sub {
public static int sub(int num1, int num2) {
int difference = num1 - num2;
return difference;
//Alter the return variable from "sum" to "difference"
//int sum = num1 + num2;
//return sum;
}
publ... | true |
486f55cc7cc5e152faed1fc6b5f40804585c9692 | Java | ramcode/Coding-Practice | /interview-prep/src/main/java/com/interview/algos/strings/COuntAndSaySequence.java | UTF-8 | 709 | 3.734375 | 4 | [] | no_license | package com.interview.algos.strings;
public class COuntAndSaySequence {
public static String countAndSay(int n) {
if (n == 0)
return "";
String s = "1";
int loop = 1;
while (loop < n) {
StringBuffer sb = new StringBuffer();
char c = s.charAt(0);
System.out.println(c);
int count = 0;
for (in... | true |
09b42e01593321d73b0957175ee0c59d1cad2a23 | Java | gaoyida/fly | /fly-common/src/main/java/com/gaoyida/fly/common/util/ServerUtil.java | UTF-8 | 1,791 | 2.46875 | 2 | [] | no_license | package com.gaoyida.fly.common.util;
import com.gaoyida.fly.common.dt.ServerNode;
import com.gaoyida.fly.common.exception.InitExeception;
import com.gaoyida.fly.common.log.Logger;
import com.gaoyida.fly.common.log.LoggerFactory;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketExce... | true |
22a0a1f6421d4db527f79d6083467b46bf2c2347 | Java | janenik/ninja-sso-um | /src/main/java/controllers/sso/admin/users/UsersController.java | UTF-8 | 4,092 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package controllers.sso.admin.users;
import com.google.inject.persist.Transactional;
import controllers.annotations.SecureHtmlHeadersForAdmin;
import controllers.sso.filters.AuthenticationFilter;
import controllers.sso.filters.IpAddressFilter;
import controllers.sso.filters.LanguageFilter;
import controllers.sso.filte... | true |
3d749ec1a63e2ffa9043dc06e0ed08007529aadf | Java | pablito1410/acs-local-auth-service | /src/main/java/com/pablo/acs/local/auth/service/domain/proxy/ports/outgoing/UserGroup.java | UTF-8 | 532 | 1.921875 | 2 | [] | no_license | package com.pablo.acs.local.auth.service.domain.proxy.ports.outgoing;
import java.util.Collection;
public class UserGroup {
private Collection<Attribute> attributes;
private String id;
private String name;
private String type;
private UserGroup() { }
public String getId() {
return i... | true |
3b0dc4a881cbeefa16a2566d03884127d4fe3300 | Java | Housum/crawl | /src/main/java/com/hotusm/crawl/entity/Book.java | GB18030 | 1,903 | 2.71875 | 3 | [] | no_license | package com.hotusm.crawl.entity;
import java.io.Serializable;
import com.hotusm.crawl.excel.annotation.Row;
import com.hotusm.crawl.excel.annotation.Sheet;
@Sheet("")
public class Book implements Serializable,Comparable<Book>{
/**
*
*/
private static final long serialVersionUID = 1L;
//ַ
pri... | true |
638b624fa0fc84481d06e5e8cb45793e1d4a7a34 | Java | mehr-licht/designpatterns-hero | /src/test/java/com/aor/adapter/adapters/TextAdapterTest.java | UTF-8 | 726 | 2.359375 | 2 | [] | no_license | package com.aor.adapter.adapters;
import com.aor.adapter.Hero;
import com.aor.adapter.Position;
import com.aor.adapter.Screen;
import com.aor.adapter.textgui.ThirdPartyTextBasedGUI;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import static org.junit.jupiter.api.Assertions.*;
class TextAdapterTest ... | true |
2892d8d633b42d0c23136bbe639115cbdbffdf42 | Java | Speedwag00n/ISs_and_DBs_course_work | /src/main/java/sharing/dormitory/db/repository/ServiceRepository.java | UTF-8 | 364 | 1.921875 | 2 | [] | no_license | package sharing.dormitory.db.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import sharing.dormitory.db.model.Service;
import java.util.List;
@Repository
public interface ServiceRepository extends JpaRepository<Service, Integer> {
List<... | true |
99a805fb76d6a5f8afb4e58a0d7fe2ebec12b490 | Java | krisv/sandbox | /infra/src/main/java/com/redhat/service/bridge/infra/api/APIConstants.java | UTF-8 | 1,324 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.redhat.service.bridge.infra.api;
/**
* Some constants used for URL construction, parameter naming and defaults for the API
*/
public class APIConstants {
/**
* Base Path for the user-facing API
*/
public static final String USER_API_BASE_PATH = "/api/v1/bridges/";
/**
* Base ... | true |
296c1c96faa71663516b7a1b1215d644c4a7a6e8 | Java | moutainhigh/WINSHARE | /ec-core-trunk/src/main/java/com/winxuan/ec/model/order/OrderLogistics.java | UTF-8 | 2,744 | 2.03125 | 2 | [] | no_license | /*
* @(#)OrderLogistics.java
*
* Copyright 2011 Xinhua Online, Inc. All rights reserved.
*/
package com.winxuan.ec.model.order;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Genera... | true |
d2908843192b257a2a088bfa2d78ffc53cebef52 | Java | jiangfz1997/LeetCode | /src/华为机试/合并表记录.java | UTF-8 | 893 | 2.921875 | 3 | [] | no_license | package 华为机试;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;
public class 合并表记录 {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[][] cache = new int[n][2];
for(int i = 0; i < n; i++){
... | true |
c6f1bd6ee0db17e988debb6a89c3c6db4540837e | Java | jheimes-silveira/LocacaoVeiculo | /app/src/main/java/br/com/unitri/jheimesilveira/locacaoveiculo/views/FgtCliente.java | UTF-8 | 4,309 | 1.96875 | 2 | [] | no_license | package br.com.unitri.jheimesilveira.locacaoveiculo.views;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.helper.ItemTouchHelper;
import android.view.LayoutInflater;
import android.... | true |
229a233dc000e7a75c26afca90e66bc0a3b94ce7 | Java | kocko/algorithms | /src/codeforces/contests101_200/problemset106/CardGame.java | UTF-8 | 2,406 | 3.28125 | 3 | [] | no_license | package codeforces.contests101_200.problemset106;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
... | true |
eac143d3a5206fe277c49fb37bb68825c609763c | Java | atlanboa/algorithm-2020 | /0715~0812/20190717-21_algorithm_expert/Solution1288.java | UTF-8 | 683 | 3.203125 | 3 | [] | no_license | import java.util.Scanner;
public class Solution1288 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
int n, cnt, num;
boolean[] numCnt;
for(int t=1; t<=T; t++) {
numCnt = new boolean[10];
cnt = 0;
n = sc.nextInt();
//자릿수?
while(!check(numC... | true |
d784f3eab8718137f5f58d68cc7082d2328e65ce | Java | leelee1988/integration | /Integration2/src/welcome/Pizzaslice.java | UTF-8 | 450 | 3.421875 | 3 | [] | no_license | package welcome;
import java.util.Scanner;
import java.lang.Math;
/*
* Leemarie Collet
*/
public class Pizzaslice {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Tell me the size of your slice and I will tell");
System.out.println("you which... | true |
3e6d3973b46e1e34cd65c49f4d8bfa1d92458838 | Java | asvinnak/interviewkickstart | /src/com/ash/ik/recursion/PrintAllPossibleDecimalNumsInAsc.java | UTF-8 | 631 | 3.15625 | 3 | [] | no_license | package com.ash.ik.recursion;
public class PrintAllPossibleDecimalNumsInAsc {
public static void driver(int n) {
helper(n, new StringBuilder());
}
private static void helper(int n, StringBuilder soFar) {
//base case
if (n == 0) {
//print
System.out.printl... | true |
ef8a9ed20ad384248feca89871ca6ad3632d6ce1 | Java | francescotorregrossa/ifamuzza-server | /src/main/java/com/ifamuzza/ingegneriadelsoftware/ApiHandler.java | UTF-8 | 11,989 | 2.125 | 2 | [] | no_license | package com.ifamuzza.ingegneriadelsoftware;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet... | true |
3f5b92a54d35067f4bdb9efa889a30026282f66f | Java | ViniciusAudibert/crescer-2016-1 | /src/modulo-01-java-OO/projeto-lotr-bluej/DataTerceiraEraTest.java | UTF-8 | 945 | 2.234375 | 2 | [
"MIT"
] | permissive | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class DataTerceiraEraTest {
@Test
public void ehBissexto2016(){
DataTerceiraEra d1 = new DataTerceiraEra(25,2,2016);
assertEquals(d1.ehBissexto(), true);
}
@Test
pub... | true |
371f8b384d6d8138b172472b34d9bb6f8fdaec43 | Java | erodriguezg/spring-reactive-angular | /src/main/java/com/github/erodriguezgarq/springreactiveangular/controllers/RegionController.java | UTF-8 | 1,026 | 1.875 | 2 | [
"MIT"
] | permissive | package com.github.erodriguezgarq.springreactiveangular.controllers;
import com.github.erodriguezgarq.springreactiveangular.services.RegionProvinciaComunaService;
import com.github.erodriguezgarq.springreactiveangular.services.dto.RegionDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
58016797481b290700a1e54d70cc13571f2dca2f | Java | 7sco/RecyclerView | /app/src/main/java/com/example/franciscoandrade/recyclerview/controller/MovieAdapter.java | UTF-8 | 1,185 | 2.40625 | 2 | [] | no_license | package com.example.franciscoandrade.recyclerview.controller;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.franciscoandrade.recyclerview.Movie;
import com.example.franciscoandrade.recyclerview.R;
import c... | true |
e040ef6a8f16b20c3248bf3ef412a5ce4141e318 | Java | VU-libtech/OLE-INST | /ole-app/olefs/src/main/java/org/kuali/ole/sys/service/impl/AccountingLineServiceImpl.java | UTF-8 | 2,383 | 2.125 | 2 | [
"ECL-2.0"
] | permissive | /*
* Copyright 2007 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... | true |
f71fda3e2450fb262478f788da9fb4d84cf25003 | Java | Buccaneer/3d-mobi-05-eva-android-front-end | /EVA21DayChallenge/app/src/main/java/be/evavzw/eva21daychallenge/activity/profile_setup/ProfileWizardModel.java | UTF-8 | 2,861 | 2.21875 | 2 | [] | no_license | package be.evavzw.eva21daychallenge.activity.profile_setup;
import android.content.Context;
import be.evavzw.eva21daychallenge.R;
import be.evavzw.eva21daychallenge.models.profile_setup.AbstractWizardModel;
import be.evavzw.eva21daychallenge.models.profile_setup.AllergiesPage;
import be.evavzw.eva21daychallenge.model... | true |
bdb40cc692faa778c1574adfc30eb73121f4cdd5 | Java | prasanth-priyan/spring-mvc-exercises | /src/main/java/com/stackroute/UserController.java | UTF-8 | 767 | 2.296875 | 2 | [] | no_license | package com.stackroute;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Controller
public class UserCont... | true |
cb987fe817187434b453ba50177955d178f6e2e3 | Java | AnshulMalik/obscura3.5 | /src/main/java/com/obscuraconflu/api/controllers/NotificationController.java | UTF-8 | 1,125 | 2.140625 | 2 | [] | no_license | package com.obscuraconflu.api.controllers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.... | true |
80d0ad0d6b424af4b644829a7dfea7a389178650 | Java | nukesz/swcraft | /spring-framework/spring-framework-core/src/main/java/org/swcraft/springframework/core/knight/KnightAnnotationMain.java | UTF-8 | 507 | 2.109375 | 2 | [
"MIT"
] | permissive | package org.swcraft.springframework.core.knight;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.swcraft.springframework.core.knight.config.KnightConfig;
public class KnightAnnotationMain {
public static void main(St... | true |
16abf7dcf9376988f39c28d2320263aae9f2aa5d | Java | SeeYoung233/TwtSurvey | /src/main/java/cn/twt/survey/app/service/impl/RecordServiceImpl.java | UTF-8 | 680 | 1.984375 | 2 | [] | no_license | package cn.twt.survey.app.service.impl;
import cn.twt.survey.app.dao.RecordMapper;
import cn.twt.survey.app.entity.Record;
import cn.twt.survey.app.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
publi... | true |
ce2be0548c1cba1c81a99965e3bbeb8036abc431 | Java | szab100/bracelet | /Bracelet/src/hu/symlink/bracelet/AboutDialogBuilder.java | UTF-8 | 1,650 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package hu.symlink.bracelet;
import android.app.AlertDialog;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.text.SpannableString;
import android.text.util.Linkify;
i... | true |
bf5ec408615f6a81fb54f99613828ab75935ec44 | Java | zengjinliu/spring-barch | /spring-swagger/src/main/java/com/kiway/spring/swagger/springswagger/mapper/ProductMapper.java | UTF-8 | 236 | 1.765625 | 2 | [] | no_license | package com.kiway.spring.swagger.springswagger.mapper;
import com.kiway.spring.swagger.springswagger.bean.Product;
/**
* @author LiuZj
* @date 2019/9/20 17:33
*/
public interface ProductMapper {
int insert(Product product);
}
| true |
61cde59889f96192f0aa8df3de25da8c58601304 | Java | roshanrabadiya/android | /MainActivity.java | UTF-8 | 4,692 | 2.609375 | 3 | [] | no_license | package com.example.corepixmobileappp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.widget.Button;
import android.widget.Toast;
import com.example.corepixmobileappp.Database_Helper.DBHandler;
import java.io.Fi... | true |
cf81672de9fb74c2edb45f046981e01a34973c11 | Java | EsdrasVP/bora | /src/main/java/com/nilson/resource/AAInterceptor.java | UTF-8 | 654 | 1.875 | 2 | [] | no_license | package com.nilson.resource;
import java.io.IOException;
import javax.annotation.Priority;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.ext.Provider;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@... | true |
bf9a602756f5f2b8130d9aa5abd903e520d8ee0d | Java | jayarambaratam/Soroush | /com/p032a/p033a/p055e/C0815f.java | UTF-8 | 1,458 | 1.640625 | 2 | [] | no_license | package com.p032a.p033a.p055e;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/* renamed from: com.a.a.e.f */
class C0815f implements C0812c {
private final Context f2914a;
p... | true |
c06386fb766631dd6d58b41b4452f7ed1de33945 | Java | MidiasAndromeda/epsi.B3.java | /Canards/src/canards/Morillon.java | UTF-8 | 483 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package canards;
/**
*
* @author midia
*/
public class Morillon extends Canard {
public Morillon() {
this.... | true |
b365e431833e244fefabffeb55dec9dbce9d7e1e | Java | lliiffee/Tools | /src/main/java/com/fung/patern/vistor/Visitor.java | UTF-8 | 277 | 2 | 2 | [] | no_license | package com.fung.patern.vistor;
import java.util.Collection;
public interface Visitor {
// public void visitString(StringElement stringE);
// public void visitFloat(FloatElement floatE);
// public void visitCollection(Collection collection);
public void visit(Object o);
}
| true |
55951250533b31bc03d5abedaec1b4fbb14bc8d5 | Java | camelinaction/camelinaction2 | /chapter9/mock/src/test/java/camelinaction/SpringSecondMockTest.java | UTF-8 | 3,470 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package camelinaction;
import java.util.List;
import org.apache.camel.Exchange;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.junit.Test;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.cont... | true |
4e62cc998d6485866e43e0d52408ca36fb2b40cd | Java | jfongarini/epoweb | /src/main/java/com/epoweb/service/InversionDiarioService.java | UTF-8 | 1,742 | 2.359375 | 2 | [] | no_license | package com.epoweb.service;
import java.util.List;
import org.apache.log4j.Logger;
import com.epoweb.model.InversionDiario;
import com.epoweb.repository.InversionDiarioRepository;
public class InversionDiarioService {
final static Logger LOGGER = Logger.getLogger(InversionDiarioService.class);
private Inversi... | true |
d02224bc7a03c1b547634fbf91456007495952e9 | Java | zero-He/test | /leke-question/.svn/pristine/00/00d6c63b40991d731f99e27c15111ba059bedff0.svn-base | UTF-8 | 1,233 | 1.875 | 2 | [] | no_license | package cn.strong.leke.question.controller.workbook;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.strong.leke.framework.... | true |
1c41b16b128fbe04654691c023c3142bdef144e1 | Java | PhenomenX/ChatSpring | /src/main/java/com/epam/chatspring/config/ApplicationContextConfig.java | UTF-8 | 2,764 | 1.945313 | 2 | [] | no_license | package com.epam.chatspring.config;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
impor... | true |
f05b89c8123f1e61ea123bf38d00081aa650aba2 | Java | chenyi136/leetcode | /IdeaProjects/leetcode/src/FractionToRecuringDecimal.java | UTF-8 | 986 | 3.046875 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Map;
/**
* @ClassNameFractionToRecuringDecimal
* @Author jianwen
* @Date 19-11-2 下午8:55
* @Version V1.0
*/
public class FractionToRecuringDecimal {
public String fractionToDecimal(int numerator, int denominator){
if(numerator==0) return "0";
StringBu... | true |
bbe639d16330b505a42400f791461a8df1f7e184 | Java | kshine/demo | /test/src/main/java/com/freedom/okhttp/Demo01.java | UTF-8 | 2,196 | 2.234375 | 2 | [] | no_license | package com.freedom.okhttp;
import com.freedom.util.HttpUtils;
import com.google.gson.Gson;
import okhttp3.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* Created by kuiyuxiang on 2017/4/14.
* 商用域地址:211.138.118.14:1100
* Host:aep.api.cmccopen.cn
*
* 测试域地址:211.138.118.15:1... | true |
3b44580266f6cb3064b78dfdb0123ef7ae59c658 | Java | Ritesh-krr/hacktoberfest2020 | /GraphPath.java | UTF-8 | 3,366 | 3.171875 | 3 | [] | no_license | import java.util.Scanner;
import java.util.ArrayList;
import java.io.File;
import java.io.PrintStream;
class GraphPath{
static Scanner sc;
public static void main(String args[]){
try{
File file = new File("C:\\Users\\Tanisha\\Desktop\\inputGraph2.txt");
sc = new Scann... | true |
d926ea1021bc53100aea984bf7f100cff6b6ce9a | Java | xiongxcodes/haohope-security-oauth | /haohope-oauth/src/main/java/org/minbox/framework/oauth/response/DefaultAuthorizationDeniedResponse.java | UTF-8 | 1,136 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package org.minbox.framework.oauth.response;
import com.fasterxml.jackson.core.JsonGenerator;
import org.minbox.framework.oauth.exception.OAuth2Exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.util.HtmlUtils;
/**
* The default {@link AuthorizationDeniedResponse} support
* Provid... | true |
e2ac887fc1b7a8318b304ee18dac92551a27aa0c | Java | AhmedSobhy93/TaskManager | /src/com/beans/TaskBean.java | UTF-8 | 1,263 | 2.359375 | 2 | [] | no_license | package com.beans;
public class TaskBean {
private int taskID;
private String projectName;
private int owner;
private String title;
private String comment;
private String dateInserted;
private String generatedTaskId;
public String getGeneratedTaskId() {
return generatedTaskId;
}
public vo... | true |
b71f80f078ec83769ec4a1f419a5ccb06b0512e1 | Java | GitHub-Zlg/yangquan | /app/src/main/java/app/com/yangquan/adapter/TagSelectAdapter.java | UTF-8 | 1,048 | 2.40625 | 2 | [] | no_license | package app.com.yangquan.adapter;
import android.view.View;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import app.com.yangquan.R;
public class TagSelectAdapter extends BaseQuickAdapter<String> {
public TagSelectAdapter() {
super(R.layout.i... | true |
be2074642f0a3bea1caac73a020d64b9213adfbc | Java | LiamCoffey1/Algorithms | /src/GenericStack.java | UTF-8 | 813 | 3.421875 | 3 | [] | no_license | import java.util.ArrayList;
public class GenericStack<Type> {
int maxSize;
ArrayList<Type> elements;
public GenericStack(int maxSize) {
this.maxSize = maxSize;
elements = new ArrayList<Type>();
}
public int size() {
return elements.size();
}
public Type pop() {
if(isEmpty())
return null;... | true |
31e316d26f81a5b12a36cd62c768eca86de35ef6 | Java | DotOS/android_frameworks_base | /packages/CarSystemUI/tests/src/com/android/systemui/car/navigationbar/ButtonRoleHolderControllerTest.java | UTF-8 | 7,776 | 1.679688 | 2 | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 The Android Open Source 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
0b1c3e00586a62507473fc66dfbd49da9e9ae9be | Java | ievans3024/bosrewards | /src/ievans3024/bosrewards/main/Messages.java | UTF-8 | 2,151 | 2.6875 | 3 | [] | no_license | package ievans3024.bosrewards.main;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
public final class Messages {
// colors
public static final String COLOR_BAD = ChatColor.RED + "" + ChatColor.ITALIC;
public s... | true |
4c50f1fa745038b8f68822a81ab47d3b9b88ce1e | Java | squirlemaster42/Fantasy-FRC | /Libs/spreadsheet-2.0.1/vaadin-spreadsheet/src/test/java/com/vaadin/addon/spreadsheet/test/demoapps/TouchUI.java | UTF-8 | 648 | 2 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | package com.vaadin.addon.spreadsheet.test.demoapps;
import com.vaadin.addon.spreadsheet.Spreadsheet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.Viewport;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
@Viewport("width=device-width, ini... | true |
60f6b4037a876e010d5106c9d337a28dd1502d09 | Java | kakacordovil/javabank | /src/main/java/org/academiadecodigo/javabank/services/mock/MockAccountService.java | UTF-8 | 3,385 | 2.75 | 3 | [] | no_license | package org.academiadecodigo.javabank.services.mock;
import org.academiadecodigo.javabank.exceptions.AccountNotFoundException;
import org.academiadecodigo.javabank.exceptions.CustomerNotFoundException;
import org.academiadecodigo.javabank.exceptions.TransactionInvalidException;
import org.academiadecodigo.javabank.per... | true |
13d9f284e5a223b869de9949032cd583b6e8f4e0 | Java | LarsDietrich/eventmanager | /src/com/anudeep/eventmanager/activity/ListTicketsActivity.java | UTF-8 | 2,630 | 2.140625 | 2 | [] | no_license | package com.anudeep.eventmanager.activity;
import com.anudeep.eventmanager.R;
import com.anudeep.eventmanager.dao.EventDao;
import com.anudeep.eventmanager.dao.TicketDao;
import com.anudeep.eventmanager.model.Event;
import com.anudeep.eventmanager.model.Ticket;
import android.app.ListActivity;
import android.content.... | true |
f950e4ba0229776e87b9c95d57db1dae5c5a6ee5 | Java | zhiyuan4j/mahjong-zj | /src/main/java/red/zhiyuan/mahjongzj/MahjongZjApplication.java | UTF-8 | 332 | 1.554688 | 2 | [] | no_license | package red.zhiyuan.mahjongzj;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MahjongZjApplication {
public static void main(String[] args) {
SpringApplication.run(MahjongZjApplication.class, args... | true |
d22133cd50b8bd72b833bacd86e12d17bb6f88cc | Java | kricen/tennis | /src/main/java/com/tennis/util/wechat/TemplateUtil.java | UTF-8 | 2,976 | 1.976563 | 2 | [] | no_license | package com.tennis.util.wechat;
import com.tennis.handler.wechat.AccessTokenHandler;
import com.tennis.model.db.Match;
import com.tennis.model.db.User;
import com.tennis.model.wechat.TemplateData;
import com.tennis.model.wechat.TemplateMessage;
import com.tennis.util.common.CommonUtil;
import com.tennis.util.common.Da... | true |
a41f58444d8b4040b73c6f569c9783e6987b8243 | Java | zyjiahui/Myjava | /reStudyJava/src/cn/jiahui/IO/ZiJieShuZuOutput.java | UTF-8 | 1,156 | 3.453125 | 3 | [] | no_license | package cn.jiahui.IO;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
/**
* 字节数组输出流(4步)ByteArrayOutputStream
* 1、创建源:内部维护
* 2、选择流:不关联源
* 3、操作(写出操作)
* 4、释放资源:可以不用
*
* 增加:获取数据 toByteArray();方法获取
*
* */
public class ZiJ... | true |
f1f5ff0342725d6dc9714d6591831061d711d83a | Java | shinhermit/Projet-SD-M1 | /src/communication/ReliabilitySetting.java | UTF-8 | 3,711 | 2.984375 | 3 | [] | no_license | /* Coyright Eric Cariou, 2009 - 2011 */
package communication;
/**
* Set the reliabily settings for a communication element.
*/
public class ReliabilitySetting {
/**
* Precise if debug information, concerning message lost and transmission delays,
* must be printed on standard output
*/
priva... | true |
e4aad3f5b7226ecae512110b188418847f306cd0 | Java | Imperio-Inka/SO-Android | /app/src/main/java/com/android/showmeeapp/util/MeteorOAuthServices.java | UTF-8 | 1,618 | 2.0625 | 2 | [] | no_license | package com.android.showmeeapp.util;
import android.util.Base64;
import java.nio.charset.Charset;
/**
* Created by kushahuja on 6/15/16.
*/
public class MeteorOAuthServices {
public static String google(String clientId) {
String token = "YCE4ggWJ0n7h7ZnEOHCxSAoJDjqqCOaAYNq3x5hVpBJpNkZX8bCJYQLu4jZzSjE... | true |
3de4389b84345528674b21ef3bf6b4a064c2da6c | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/com/myfitnesspal/feature/addentry/ui/dialog/SearchViewItemContextualDialog.java | UTF-8 | 5,039 | 1.8125 | 2 | [] | no_license | package com.myfitnesspal.feature.addentry.ui.dialog;
import android.app.Dialog;
import android.os.Bundle;
import android.view.ContextThemeWrapper;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.myfitnesspal.android.R;
import com.myfitnessp... | true |
56f47db06a042e2a76d580a9108e407b72a4e277 | Java | rpmiskin/store-usage | /src/main/java/in/misk/timed/route/SlowConsumer.java | UTF-8 | 1,122 | 2.328125 | 2 | [] | no_license | package in.misk.timed.route;
import org.apache.camel.spring.SpringRouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class SlowConsumer extends SpringRouteBuilder {
public static final String QUEUE = "embedded-from:a.queue";
private static final String QUEUE2 = "embedded-from:an... | true |
b2210591f3820aab692a9268f1b3e95cd97b4644 | Java | huyhue/jsp_servlet | /website/src/ducky/listeners/WebsiteSession.java | UTF-8 | 543 | 2.53125 | 3 | [] | no_license | package ducky.listeners;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class WebsiteSession implements HttpSessionListener{
private static int numberofSession = 0;
@Override
public void sessionCreated(HttpSessionEvent se) {
se.getSession().getServletContext... | true |
928b942531222f7749fce4c3fac92e5b12570e30 | Java | Yunshuaiwei/Study | /2019_11_8/src/java3/NumThread.java | UTF-8 | 1,646 | 3.375 | 3 | [] | no_license | package java3;
import com.sun.media.sound.SoftTuning;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
/**
* @ProjectName Study
* @ClassName NumThread
* Description
* @Auther YunSW
* @Date 2019/11/10... | true |
268fecbe1211423fb0604addd309979f122e0b83 | Java | PlayersCommittee/gemp-swccg-public | /gemp-swccg-logic/src/main/java/com/gempukku/swccgo/logic/effects/PlaceHandInUsedPileEffect.java | UTF-8 | 544 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.gempukku.swccgo.logic.effects;
import com.gempukku.swccgo.logic.timing.Action;
/**
* An effect to put all cards from hand on Used Pile.
*/
public class PlaceHandInUsedPileEffect extends PutCardsFromHandOnUsedPileEffect {
/**
* Creates an effect that causes the player to put all cards from hand... | true |
24aabc95b46f659233237e5d8f451069c7370bc4 | Java | jngeiger/oop2 | /JAVA_FX/src/oop2/taschenrechner_properties/Person.java | UTF-8 | 104 | 1.53125 | 2 | [] | no_license | package oop2.taschenrechner_properties;
public class Person {
public String y;
public int x;
}
| true |
e45f4b5ad0af34ec77e63284974bc86f407578db | Java | jiachen1120/jiachenRepo | /InsertSort.java | UTF-8 | 310 | 3.015625 | 3 | [] | no_license | package jiachen.algorithm;
public class InsertSort {
public static void sort(int[] data) {
for(int x = 1; x < data.length; x++) {
int current = data[x];
int y = x - 1;
while(y >= 0 && data[y] >= current) {
data[y + 1] = data[y];
y--;
}
data[y + 1] = current;
}
}
}
| true |
b6b04f12780478063b98cb813ce406d6686b8699 | Java | dalalsunil1986/Jvav_Dumps_OCPJP | /src/ocpjp/dumps/excteptions/Exceptions.java | UTF-8 | 379 | 2.234375 | 2 | [] | no_license | package ocpjp.dumps.excteptions;
import java.io.IOException;
/**
* @author Alexander_Shushunov@epam.com.
*/
public class Exceptions {
public static void main(String[] args) {
try {
foo();
}
// wrong
// IOException - checked.
// catch (IOException e){
//
// }
... | true |
e4f884db0536302f90ae3af6fa2311ece5a6568b | Java | rakeshrana87/mektoubtools | /teachertools/web/src/main/java/org/teachertools/web/controller/EleveController.java | UTF-8 | 4,274 | 2.578125 | 3 | [] | no_license | package org.teachertools.web.controller;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
impo... | true |
1bb5dbc691004c3b35efbb36f86a21c365e68169 | Java | EnduranceCode/academia-java-agenda-digital | /playground/src/pt/com/everis/academia/java/ArrayIndexOutOfBoundsException.java | UTF-8 | 392 | 2.78125 | 3 | [] | no_license | package pt.com.everis.academia.java;
import java.util.ArrayList;
import java.util.List;
public class ArrayIndexOutOfBoundsException {
public static void main(String[] args) {
List<String> myArray = new ArrayList<>();
myArray.add("Valor 001");
myArray.add("Valor 002");
myArray.add("Valor 003");
myArray.a... | true |
bbd7912bc681dc010a60d2490a0ccc06d642d7c9 | Java | ArkilGaming/swingPaint | /Source/src/paint/FreeLine.java | UTF-8 | 862 | 2.84375 | 3 | [] | no_license | package paint;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
public class FreeLine extends Tool {
private boolean erease = false;
FreeLine() {
super();
}
FreeLine(Point p, Color c, float s) {
super(p, c, s);
}
public ... | true |
84a01b623ef69357fa72ee38978f8a046942da92 | Java | XCXCXCXCX/myshop-web | /divide-service/divide-api/src/main/java/com/xcxcxcxcx/myshop/dto/TopicPreFetchResponse.java | UTF-8 | 322 | 1.554688 | 2 | [] | no_license | package com.xcxcxcxcx.myshop.dto;
import com.xcxcxcxcx.service.support.core.response.AbstractResponse;
/**
* @author XCXCXCXCX
* @date 2018/11/2
* @comments
*/
public class TopicPreFetchResponse extends AbstractResponse{
@Override
public String toString() {
return "TopicPreFetchResponse{}";
}
... | true |
0cdae2bb840c6d0f1d642ab48659cba2e2529415 | Java | 795294/APCS_Apklopp | /Labs/Lab912/Lab912a - SimpleCalc/SimpleCalc.java | UTF-8 | 634 | 3.390625 | 3 | [] | no_license |
/**
* Write a description of class SimpleCalc here.
*
* @author (Peter Klopp)
* @version (Lab912)
*/
public class SimpleCalc
{
public SimpleCalc()
{
}
public double add(double a, double b){
return a+b;
}
public double subtract(double a, double b){
return a-b... | true |
8458a7b2c4fdaf28a64391b3dc254e5216f3605f | Java | nsimsiri/cp | /xo.java | UTF-8 | 2,223 | 3.421875 | 3 | [] | no_license | import java.util.*;
public class xo {
public static class board{
String[][] bd;
public board(){
bd = new String[3][3];
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
bd[i][j]="("+(i*3+j)+")";
}
}
}
... | true |
641e505f54d3960c79a7ee08be2d2d0f8d27f488 | Java | skrusche63/storm-samples | /src/main/java/de/kp/storm/util/TableInfo.java | UTF-8 | 623 | 2.453125 | 2 | [] | no_license | package de.kp.storm.util;
import java.util.List;
public class TableInfo {
private static TableInfo instance = new TableInfo();
private List<ColumnInfo> columnInfo;
private TableInfo() {
}
public static TableInfo getInstance() {
if (instance == null) instance = new TableInfo();
return instance;
}
pub... | true |