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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ddf80609c504438468dc3b12c8be47ba5df7c137 | Java | lachua/cobblr2 | /src/java/ReportYearEndActivity/ActivityReport.java | UTF-8 | 12,676 | 2.34375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ReportYearEndActivity;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
/**
*
* @author user
*/
public class ActivityReport {
//Constants
private static int AVAILABLE = ... | true |
32fd3391872fe60976ba16cc24ffe410e48ae62d | Java | sadjehwty/afo | /src/java/org/macrobug/afo/servlet/newImage.java | UTF-8 | 3,470 | 2.375 | 2 | [] | no_license | package org.macrobug.afo.servlet;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.zip.ZipFile;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apac... | true |
cb51ee4a2353e0388d9dcc9fbebaaaf9743f16e7 | Java | kbernst30/keystash | /auth-core/src/main/java/io/keystash/core/exceptions/authorization/AuthorizationException.java | UTF-8 | 849 | 2.46875 | 2 | [] | no_license | package io.keystash.core.exceptions.authorization;
import io.keystash.common.exceptions.OAuth2Exception;
import io.keystash.common.models.error.ErrorType;
public class AuthorizationException extends OAuth2Exception {
public AuthorizationException(String message) {
super(message, ErrorType.OAuth2.SERVER_E... | true |
5b72f26f4b827f8eb3bd7a63fe2b45a371953aba | Java | dianeyuan/introduction-to-java-programming-10th-edition | /chapter06/Exercise_6_34.java | UTF-8 | 671 | 3.25 | 3 | [
"MIT"
] | permissive | package com.company;
public class Exercise_6_34 {
/* get the start day of month/1/year */
public static int getStartDay(int year, int month) {
int q = 1;
int m;
if (month == 1) {
m = 13;
year -= 1;
}
else if (month == 2) {
... | true |
0083b596906a9c7d2b3b31fb4c53f370a7dd5c0d | Java | sahoosunilkumar/Assignment | /RedmartAndroidAssignment/RedmartAssignment/inventorycontroller/src/main/java/com/sunilsahoo/inventorycontroller/ProductListController.java | UTF-8 | 903 | 2.25 | 2 | [] | no_license | package com.sunilsahoo.inventorycontroller;
import com.sunilsahoo.inventorycontroller.entity.ProductListResponse;
import com.sunilsahoo.inventorycontroller.utils.ControllerConstants;
public final class ProductListController extends Controller{
private static final String END_POINT = "https://api.redmart.com... | true |
46441c04df73b6427296efe8d8166a07378280d4 | Java | KingCat-study/java_basic | /Chapter04/src/section02/Term.java | UTF-8 | 542 | 3.53125 | 4 | [] | no_license | package section02;
public class Term {
public int coef;
public int expo;
public Term(int coef, int expo) {
this.coef = coef;
this.expo = expo;
}
public int calc(int x) {
return coef * power(x, expo);
}
private int power(int a, int b)
{
int result = 1;
for (int i = 0; i < b; i++) {
result ... | true |
30b203b575d4a3aa21fb4b377e31a96b03a26a82 | Java | Visog/Job-Portal-Api | /visog-job-portal-api/src/main/java/com/visog/jobportal/service/master/CityService.java | UTF-8 | 432 | 1.84375 | 2 | [] | no_license | package com.visog.jobportal.service.master;
import java.util.List;
import com.visog.jobportal.req.master.CityReq;
import com.visog.jobportal.res.master.CityRes;
public interface CityService {
public Boolean saveCity(CityReq req);
public Boolean updateCity(CityReq req, String cityId);
public List<C... | true |
1bf390f3b781c2ead71c1094d00517d62b54a881 | Java | smdg2010/26AprFinal | /src/gipsy/lang/context/UnorderedInfinitePeriodicTagSet.java | UTF-8 | 1,461 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | package gipsy.lang.context;
import gipsy.lang.GIPSYType;
import java.util.Vector;
import marf.util.FreeVector;
public class UnorderedInfinitePeriodicTagSet extends TagSet implements IUnordered, IInfinite, IPeriodic{
public UnorderedInfinitePeriodicTagSet()
{
super();
}
public UnorderedInfinitePeriodicTagSe... | true |
0dca775ae7cf559614b3d8722de76f284ac2963f | Java | floating-cat/S1-Next | /app/src/main/java/cl/monsoon/s1next/view/activity/OpenSourceLicensesActivity.java | UTF-8 | 947 | 2.21875 | 2 | [
"Unlicense"
] | permissive | package cl.monsoon.s1next.view.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import cl.monsoon.s1next.R;
import cl.monsoon.s1next.view.fragment.OpenSourceLicensesFragment;
/**
* An Activity shows the libraries and files we use in our app.
*/
public final class O... | true |
2548f7de1648c1857e82b364472219c1a67e0af8 | Java | gongwanquan/BaseApplication | /baseproject/src/main/java/com/dms/base/baseproject/net/NetProvider.java | UTF-8 | 648 | 1.914063 | 2 | [] | no_license | package com.dms.base.baseproject.net;
import okhttp3.CookieJar;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
/**
* Created by wanglei on 2016/12/24.
*/
public interface NetProvider {
String configBaseUrl();
long configConnectTimeoutSeconds();
... | true |
e02f8974aef7d5f7592e5cd3142047e9f83c88c7 | Java | mloine/auths | /src/main/java/com/mloine/auth/auths/entity/UserInfoVO.java | UTF-8 | 2,627 | 2 | 2 | [] | no_license | package com.mloine.auth.auths.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Transient;
import java.util.Date;
/**
* Author : Luda Zhuang
* Date : 2017/12/20
* History :
*/
public class UserInfoVO extends UserLoginInfo {
... | true |
395ff7cb7c9adf017588c1038fce679f58abcbbc | Java | pradeep90/POPL | /CPS-Transformer/Generated-Nanojava/TA-MicroJava-Test-Cases/NextedWhile.java | UTF-8 | 4,906 | 2.71875 | 3 | [] | no_license | class NextedWhile {
public static void main ( String [ ] a ) {
new NWTest ( ) . ____Main____ ( new Continuation() ) ; } } class NWTest { int
a ; int b ; int c ; int sum ; public void ____Main____ (
Continuation ___k ) { boolean check ; NWTest nx ; int i ; NWTest
___pseudoThis ; ___Continuat... | true |
7887732113a73aa440d46fdb25aae02b83faf0f6 | Java | duanmuhan/webspider | /src/main/java/com/cgs/spider/vo/CompanyBaseVO.java | UTF-8 | 10,205 | 2.203125 | 2 | [] | no_license | package com.cgs.spider.vo;
import com.cgs.spider.entity.CompanyBase;
import java.io.UnsupportedEncodingException;
import java.util.Date;
/**
* Created by Administrator on 2017/5/29.
*/
public class CompanyBaseVO {
private static String REPLACE_STRING = "%|万|亿";
private static String REPLACE_BOOLEAN_STRING... | true |
08105de5f226d10bc3505b3d0d6f42154f9c87f8 | Java | h2oai/h2o-3 | /h2o-core/src/main/java/water/api/AssemblyHandler.java | UTF-8 | 1,843 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package water.api;
import water.DKV;
import water.Key;
import water.api.schemas3.KeyV3;
import water.api.schemas99.AssemblyV99;
import water.rapids.Assembly;
import water.rapids.transforms.Transform;
import water.fvec.Frame;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
public class... | true |
5c0ed2e2e7b830ea80409a8f60e8da0af1527583 | Java | opencode-it/practika2021-shop | /backend/src/main/java/app/repositories/impl/FeatureRepository.java | UTF-8 | 242 | 1.507813 | 2 | [] | no_license | package app.repositories.impl;
import app.entities.Feature;
import app.repositories.LongKeyRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface FeatureRepository extends LongKeyRepository<Feature> {
}
| true |
50f2fa43cfcb440741579d3fe32066af0d7c53b7 | Java | jenkins-infra/update-center2 | /src/main/java/io/jenkins/update_center/json/PlatformCategory.java | UTF-8 | 249 | 1.625 | 2 | [] | no_license | package io.jenkins.update_center.json;
import com.alibaba.fastjson.annotation.JSONField;
import java.util.List;
public class PlatformCategory {
@JSONField
public String category;
@JSONField
public List<PlatformPlugin> plugins;
}
| true |
f9a87e74c34aeab0e7f1a94b63a579b785e46451 | Java | pvuk/learnjava | /src/main/java/com/java/interview/cognizent/ConvertMapStringToMapIntegerUsingStreams.java | UTF-8 | 836 | 3.453125 | 3 | [] | no_license | package com.java.interview.cognizent;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
/**
*
* @author udaykiran pulipati
*
* Q 8. How do you convert Map<String, Object> to Map<Integer, Object> using streams
*
*/
@Slf4j
publ... | true |
f37425223a7e26af0f05940cb3ba00917ba985e8 | Java | jake32321/CSC-175 | /Pizza Party Tester/PizzaPartyTester.java | UTF-8 | 995 | 3.265625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pizzapartytester;
/**
*
* @author LH1139
*/
public class PizzaPartyTester {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
... | true |
f74367bf07937d768a61ee444ea77f1481005665 | Java | aliaksandr-budnikau/segments | /src/test/java/my/test/EfficientIntersectionFounderTest.java | UTF-8 | 221 | 1.804688 | 2 | [] | no_license | package my.test;
public class EfficientIntersectionFounderTest extends IntersectionFounderTest {
@Override
protected IntersectionFounder getFounder() {
return new EfficientIntersectionFounder();
}
}
| true |
2fc15b5859a26d48c4ecf5baed40ba6f5753889e | Java | MasonQAQ/DesignPattern | /src/com/p12_state_pattern/tv/_Init_.java | UTF-8 | 351 | 2.1875 | 2 | [] | no_license | package com.p12_state_pattern.tv;
/**
* Created by yangyue on 2017/3/9.
*/
public class _Init_ {
public static void main(String[] args) {
TVContext tvContext = new TVContext();
tvContext.setState(new StartState());
tvContext.doAction();
tvContext.setState(new StopState());
... | true |
96d908feef7e9b7e7296ff5bde18507dfa0f9b44 | Java | shrimpshell/ShellService | /src/service/reservation/ReservationDao.java | UTF-8 | 293 | 1.90625 | 2 | [] | no_license | package service.reservation;
import java.util.List;
public interface ReservationDao {
Reservation insertReservation(Reservation reservation);
int insertRoomStatus(String roomNumber, int customerId);
public String findRoomNumber(String checkInDate, String checkOutDate, int roomTypeId);
}
| true |
26df30063117345aef25d6a0bbf25d4b0bb67262 | Java | serbars89/gcp-dataflow-pipeline | /src/main/java/com/serhii/test/PublisherExample.java | UTF-8 | 2,560 | 2.765625 | 3 | [] | no_license | package com.serhii.test;
import com.google.api.core.ApiFuture;
import com.google.cloud.pubsub.v1.Publisher;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.ByteString;
import com.google.pubsub.v1.PubsubMessage;
import com.google.pubsub.v1.TopicName;
import java.io.IOException;
import java.uti... | true |
57211bc567d30b50750c65679cc64caaad4c7b35 | Java | QuantumInfinity/CodeWalr.us-Post-Notifier | /Walrifier/src/us/codewalr/walrifier/bb/BBParser.java | UTF-8 | 4,373 | 2.21875 | 2 | [] | no_license | package us.codewalr.walrifier.bb;
import java.util.HashMap;
import java.util.Map;
import org.xml.sax.XMLReader;
import us.codewalr.walrifier.feed.WalrusAdapter;
import android.content.Context;
import android.graphics.Color;
import android.text.Editable;
import android.text.Html;
import android.text.Html.TagHandler;
... | true |
fd8072b20e6cbe6f0e3c8343607738b1b935ceef | Java | billy1380/blogwt | /src/main/java/com/willshex/blogwt/server/api/search/action/SearchAllActionHandler.java | UTF-8 | 4,460 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | //
// SearchAllActionHandler.java
// xsdwsdl2code
//
// Created by William Shakour on July 20, 2016.
// Copyright © 2016 WillShex Limited. All rights reserved.
//
package com.willshex.blogwt.server.api.search.action;
import static com.willshex.blogwt.server.helper.PersistenceHelper.keyToId;
import java.util.Has... | true |
34fd78e428f9e66683ed70d0dea67bfe49f84de2 | Java | STAMP-project/Cling-application | /results/randoop10/closure-com.google.javascript.jscomp.NodeUtil-com.google.javascript.rhino.Node-20/RegressionTest45.java | UTF-8 | 1,134,973 | 1.9375 | 2 | [] | no_license | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest45 {
public static boolean debug = false;
@Test
public void test09001() throws Throwable {
if (debug)
System.out.for... | true |
08193950f409b8ecf8d5b4920e4adc85053bcc91 | Java | kingroma/CompanyNoti | /src/main/java/com/mydefault/app/common/util/DateUtil.java | UTF-8 | 2,633 | 3.015625 | 3 | [] | no_license | package com.mydefault.app.common.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class DateUtil {
/**
* 17자리의TIMESTAMP값을 구하는 기능
* @return Timestamp 값
* @exception Exception
*/
public static ... | true |
a275ab6e57ca8930e9ef86fefc8c2b0cd2f5a736 | Java | gagan144/CompilerAutomationTool | /src/commanLib/Dialog_ExceptionHandler.java | UTF-8 | 10,651 | 2.265625 | 2 | [] | no_license | package commanLib;
import commanLib.CATFeedback.CATFeedback;
import java.awt.Component;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.UIManager;
import javax.swing.border.Border;
public class Dialo... | true |
08eee4f17963ef40b3149e41e9145e2d72e599dc | Java | tik5213/myWorldBox | /app/src/main/java/com/simple/colorful/setter/j.java | UTF-8 | 3,785 | 1.78125 | 2 | [] | no_license | package com.simple.colorful.setter;
import android.content.res.Resources.Theme;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import com.simple.colorful.b;
import com.simple.colorful.setter.f.a;
import java.lang.reflect.Field;
import java.lang.refl... | true |
a22d64a80204c82a8ec82840ef96caf5bc9ebab7 | Java | Chetan031093/Cunstructors | /Cunstructor7.java | UTF-8 | 752 | 3.640625 | 4 | [] | no_license | class Programm
{
int a;
Programm(int a)
{
System.out.println("running cunstructor of programm");
this.a = a;
System.out.println(this.a);
}
}
class Programme1 extends Programm
{
double b;
Programme1(double b)
{
super(25);
System.out.println("running cunstructor of programm1");
this.... | true |
09d1a20a933c17077a4ac2e5ca25772226776e6f | Java | amir9979/pattern-detector-experiment | /benchmark/icse15/880706/buggy-version/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java | UTF-8 | 5,274 | 2.359375 | 2 | [] | no_license | package org.apache.lucene.benchmark.byTask.tasks;
/**
* 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 Apac... | true |
9acd5722d71b5668ec9e0a77d353b3f226ba939b | Java | easy-oj/core | /src/main/java/ac/eoj/core/web/controller/SubmissionController.java | UTF-8 | 2,004 | 1.9375 | 2 | [] | no_license | package ac.eoj.core.web.controller;
import ac.eoj.core.object.response.BaseSubmissionResponse;
import ac.eoj.core.object.response.SubmissionResponse;
import ac.eoj.core.service.SubmissionService;
import ac.eoj.core.web.response.PageResourceResponse;
import ac.eoj.core.web.response.ResourceResponse;
import ac.eoj.core.... | true |
96e4a420f45df611a8c30c990d55bd69e593c758 | Java | maciejscislowski/simple-data-warehouse | /src/main/java/com/maciejscislowski/simpledatawarehouse/infrastructure/config/ElasticsearchConfig.java | UTF-8 | 1,879 | 2.09375 | 2 | [] | no_license | package com.maciejscislowski.simpledatawarehouse.infrastructure.config;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.impl.client.BasicCredentialsProvider;
import... | true |
01ea56aa53daae714fe3c35e7c05396868bdc9f1 | Java | LemonDeity/Dominos-Graph | /src/Graph.java | UTF-8 | 1,547 | 3.453125 | 3 | [] | no_license | import java.util.ArrayList;
public class Graph {
//basically just an ArrayList of Domino's Graph Representation
ArrayList<Domino> graph;
public Graph(){
graph = new ArrayList();
}
public boolean contains(Domino d){
for(Domino i : graph){
if (i == d){
ret... | true |
3b2fed147db5c7dfd73410b1e0c89d2f7f0bd9d1 | Java | codingEdge/codingEdge | /AWESOME Hello World/src/stdin/MainStdin.java | UTF-8 | 794 | 4.1875 | 4 | [] | no_license | // Package name
package stdin;
// Import the Scanner class from the java.util package
import java.util.Scanner;
// Class definition of MainStdin
public class MainStdin {
// Main method signature
public static void main(String[] args) {
// Print out "Please enter your name"
System.out.println("Please enter y... | true |
6167782eba8f858085a1e7e3ddb869124e7091c1 | Java | bachmeb/che-hello | /Java2/java2_Project6/src/ComputeFigure.java | UTF-8 | 7,295 | 3.640625 | 4 | [] | no_license | import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.text.NumberFormat;
/**
* This is an applet that allows you to draw a circle or a square
* @instructions On the applet, you should display the following information
* for the geometric figure drawn: area, perimeter, center point(x... | true |
d8c02d189540aa16fa22bfc512f1f06e3fe1060e | Java | evanarkko/Space_Balls | /SpaceBalls/app/src/main/java/com/evan/eamiller/spaceballs/game/entities/ShipDispenser.java | UTF-8 | 2,053 | 2.96875 | 3 | [] | no_license | package com.evan.eamiller.spaceballs.game.entities;
import android.content.Context;
import com.evan.eamiller.spaceballs.game.entities.characters.ships.*;
/**
* Dispenses enemy ships into gameworld
* Created by eamiller on 21.12.2016.
*/
public class ShipDispenser{
private Context context;
private int amou... | true |
cd5063e42e39a7071ad35d2d93bf49ccda72c63e | Java | joshchoo/concurrency-benchmarks | /javaws/src/JavaAsyncHTTPServer.java | UTF-8 | 3,451 | 3.0625 | 3 | [] | no_license | import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.Co... | true |
057b4d36b99ead6918e2e8cf4a59f11330103631 | Java | okomeki/SoftLibRFC | /src/test/java/net/siisise/abnf/rfc/HTTP9112Test.java | UTF-8 | 1,672 | 2.078125 | 2 | [] | no_license | /*
* Copyright 2023 okome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
281891714d48e89d1bba79c7011f5f5c4d590bb5 | Java | SandDeep/InterviewQuest | /src/com/pkgS/P11.java | UTF-8 | 635 | 3.484375 | 3 | [] | no_license | package com.pkgS;
public class P11 {
public static void main(String[] args) {
char set[] = { 'a', 'b', 'c' };
P11 test = new P11();
test.printPowerSet(set, set.length);
}
private void printPowerSet(char[] set, int size) {
int n = (int) Math.pow(size, 2);
for (int i = 0; i < n; i++) {
System.out.pri... | true |
3fed6ce0f42310702ee54e56f54e263694801ac0 | Java | LazarSaravolac/BarrelSpringApp | /src/main/java/jwd/barrel/web/dto/OtpisDTO.java | UTF-8 | 1,230 | 2.34375 | 2 | [] | no_license | package jwd.barrel.web.dto;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import jwd.barrel.model.PomocnaKlasa;
public class OtpisDTO {
private Long id;
private String naziv;
private Double kolicina;
private String datums;
private String ds;
private Long bure;
... | true |
a912aa0bb16e0c17d4c7b80891efaf1be74282dc | Java | bborzechowski/java-mongodb | /src/main/java/src/Main.java | UTF-8 | 3,392 | 2.671875 | 3 | [] | no_license | package src;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.Filters;
import org.bson.Document;
import org.bson.conversions.Bson;
import java.util.Arrays;
import static com.mongo... | true |
a79119e0f98c0654fc0ae8b4c3967d99ea29b073 | Java | iuvei/lottery-10 | /src/com/wintv/lottery/bet/service/impl/CanyuBuyServiceImpl.java | UTF-8 | 16,229 | 1.8125 | 2 | [] | no_license | package com.wintv.lottery.bet.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.math.BigDecimal;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com... | true |
d188f6bf3ec2922acf621ac97617675a0af9355b | Java | marinellysfigueroa/Web-App-Orden-de-compra-y-WS-SOAP | /AppMarinellysFigueroa/src/main/java/com/beitech/informamos/dao/ProductDAO.java | UTF-8 | 814 | 2.40625 | 2 | [] | no_license | package com.beitech.informamos.dao;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import com.beitech.informamos.model.Product;
public class ProductDAO {
static EntityManager entity = JPAUtil.getEntityManagerFactory().createEntityManager()... | true |
1651fde313f7f49ac6647a7aa52ea2b4b24a1e3c | Java | johnojetunde/valueplus | /src/main/java/com/valueplus/domain/model/AccountRequest.java | UTF-8 | 340 | 1.734375 | 2 | [] | no_license | package com.valueplus.domain.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountRequest {
@NotBlank
private String accountNumber;
@NotBlank
private... | true |
756107b2f5f9d7c036515802aedec1e850cbcf24 | Java | NoEnv/vertx-wiremongo | /src/main/java/com/noenv/wiremongo/mapping/collection/DropCollection.java | UTF-8 | 469 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.noenv.wiremongo.mapping.collection;
import com.noenv.wiremongo.command.collection.DropCollectionCommand;
import io.vertx.core.json.JsonObject;
public class DropCollection extends WithCollection<Void, DropCollectionCommand, DropCollection> {
public DropCollection() {
super("dropCollection");
}
... | true |
a47300f82673f36f2d615d5060dd1ea20e8623f2 | Java | YihaiDuan/SE_Final_Report | /backstage/BorrowBook/src/dao/AdminDao.java | UTF-8 | 1,349 | 2.265625 | 2 | [] | no_license | package dao;
import org.hibernate.Session;
import org.hibernate.Transaction;
import util.HibernateUtil;
import entity.Admin;
import entity.BorrowTable;
import entity.User;
/**
*
* @author hjm
* @todo 管理员数据访问层
*/
public class AdminDao {
public boolean AdminLogin(String username,String password)... | true |
ce23b2e571b6b88bae4e4add20f3412139a76eed | Java | Devjare/Chambee | /app/src/main/java/com/gps/chambee/ui/fragmentos/NotificacionesFragment.java | UTF-8 | 1,497 | 2.0625 | 2 | [] | no_license | package com.gps.chambee.ui.fragmentos;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | true |
965961d92ae245a5fada90b569df91eb900f255c | Java | Yun-unique/java_study | /java/javase_code/src/com/grammar/array/武器数组作业/Army.java | UTF-8 | 1,454 | 3.96875 | 4 | [] | no_license | package com.grammar.array.武器数组作业;
/*
军队
*/
public class Army {
//武器数组
private Weapon[] weapons;
/**
* 创建军队的构造方法
* @param count 武器的数量
*/
public Army(int count){
//动态初始化中每一个元素默认值为null,武器数组中还没有加入武器
weapons = new Weapon[count];
}
public void addWeapon(Weapon weapon)... | true |
413ba17bbfea05e56d3a641f42249cbd897799e3 | Java | mg6maciej/hrisey-intellij-plugin | /test-manual/lombok/src/main/java/de/plushnikov/getter/FieldGetterWithAnnotations.java | UTF-8 | 539 | 2.65625 | 3 | [
"BSD-3-Clause"
] | permissive | package de.plushnikov.getter;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
public class FieldGetterWithAnnotations {
@Getter
private Integer int1Property;
@Getter
@Setter
@NonNull
private Integer int2Integer;
public Integer setInwet2Integer() {
return 1;
... | true |
b003fca5c7fef42b722b2bc9d7c512cfcbe89acb | Java | khoseamol/newwfasttransfer | /app/src/main/java/com/example/webplat/amoldesigning/model/TravelModel.java | UTF-8 | 1,160 | 2.203125 | 2 | [] | no_license | package com.example.webplat.amoldesigning.model;
/**
* Created by webplat on 2/2/18.
*/
public class TravelModel {
int imageID;
String transactionID;
String Date;
String amount;
String status;
String mobileNumber;
public int getImageID() {
return imageID;
}
public voi... | true |
9049b7fbbd334ff55909a9840b97544663ee803f | Java | magdamargineanu/LibraryApp | /src/main/java/model/UtilizatorSistem.java | UTF-8 | 3,570 | 2.453125 | 2 | [] | no_license | package model;
import model.UserType;
import javax.persistence.*;
import java.util.*;
/**
*
*/
@Entity
public class UtilizatorSistem extends Entitate<Long>{
/**
* Default constructor
*/
public UtilizatorSistem() {
}
public UtilizatorSistem(String CNP, String nume, String adresa, Strin... | true |
d0853a46e3eafed6959a8d15666ace70c89c870a | Java | AirKuma/Hostel | /Hostel/src/ServletHostel/Evaluate_hostelServlet.java | BIG5 | 2,641 | 2.15625 | 2 | [] | no_license | package ServletHostel;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import DBHos... | true |
4fbc33ca9ab3f8e7cf33601787ac668b10b0b09d | Java | miniloin/Git_Repository | /Match/src/com/java/match/service/IBaseService.java | UTF-8 | 745 | 2.125 | 2 | [] | no_license | package com.java.match.service;
import com.java.match.plugin.Page;
import java.util.List;
public interface IBaseService<T> {
/**
* @param id 根据id查询
* @return 返回单个对象
*/
T queryOne(Integer id);
/**
* 添加
* @param t
* @return
*/
int insert(T t);
/**
* 修改
... | true |
829340bb9bd17c3ee4f586c94f0c401dd48d17b8 | Java | kkarthikprasad/DataStructures | /src/com/dataStructures/nodePath/BinaryTreeTest.java | UTF-8 | 901 | 2.890625 | 3 | [] | no_license | package com.dataStructures.nodePath;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import com.dataStructures.nodePath.BinaryTree.Node;
class BinaryTreeTest {
BinaryTree<Integer> tree = new BinaryTree<>() ;
@Test
void dfsTest() {
Node<Integer> one = new N... | true |
8c27faa36069ed362a4d6c00d5d37d83b12822e8 | Java | truongquangkhai99/WebBanHang-3 | /WEBSITE/LTWWWJAVA_DHKTPM13A_BAITAPLON_NHOM12/src/main/java/fit/se/controller/DangKiController.java | UTF-8 | 5,313 | 1.898438 | 2 | [] | no_license | package fit.se.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowir... | true |
ef5abe856be8fc9da6a86e41061c51ca57c1544a | Java | JENDARNELLBROWN/w9-d2-Game-Piece | /src/TIY/company/Main.java | UTF-8 | 946 | 3.5625 | 4 | [] | no_license | package TIY.company;
public class Main {
public static void main(String[] args) {
// write your code here
GamePiece newGamePiece = new GamePiece();
//Verify that if the game piece is not frozen then the call to freeze sets the frozen variable to true.
System.out.println("Before freezing is ... | true |
6843a3a27f840f64956202bbed8ac9fb1191b7fd | Java | Yedhu1991/Cucumber | /XmlReadData/src/org/xmlvaluestest/Pojoclass.java | UTF-8 | 464 | 2.3125 | 2 | [] | no_license | package org.xmlvaluestest;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Pojoclass {
private int id;
private String name;
private long mob;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void... | true |
3bee356b9e3f0b26e77acb2b5754d56241f4774d | Java | aritrabasu104/URA-Parking-Management- | /src/main/java/com/hcl/poc/dto/vehicle/VehicleCategoryRequestDto.java | UTF-8 | 390 | 1.882813 | 2 | [] | no_license | package com.hcl.poc.dto.vehicle;
import javax.validation.constraints.NotNull;
import com.hcl.poc.model.VehicleCategory.VEHICLE_SIZE;
import com.hcl.poc.model.VehicleCategory.VEHICLE_TYPE;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter
public class VehicleCategoryRequestDto {
@NotNull
private VEHICLE... | true |
852e46881dd413b3d3187cfee18aca6b575bc62c | Java | t-usui1408/framework_task | /src/main/java/jp/co/example/dao/LoginDao.java | UTF-8 | 157 | 1.890625 | 2 | [] | no_license | package jp.co.example.dao;
import jp.co.example.entity.Login;
public interface LoginDao {
public Login findByIdAndPass(String id,String pass);
}
| true |
f48838017b5bcf7b2fa79c0a7eb39472c30a8d76 | Java | bellmit/ncms | /in.nic.cmf.util/src/main/java/in/nic/cmf/util/ExceptionHandler.java | UTF-8 | 3,061 | 2.875 | 3 | [] | no_license | package in.nic.cmf.util;
import in.nic.cmf.exceptions.GenericException;
import in.nic.cmf.logger.LogTracer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.aspectj.lang.JoinPoint;
public class ExceptionHandler {
private Lo... | true |
057c010161eb723d98e4221ad6e6de106a28faa0 | Java | petrov9/microservices-example | /checker/src/main/java/org/example/checker/service/CheckerService.java | UTF-8 | 541 | 2.1875 | 2 | [] | no_license | package org.example.checker.service;
import lombok.extern.slf4j.Slf4j;
import org.example.checker.events.source.SimpleSourceBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class CheckerService {
@Autowired
private Simp... | true |
d2b3f7f2e30e2aad8b49199e113d21857ec10a21 | Java | RabeaGleissner/second-http-server | /src/main/java/de/rabea/ServerWorker.java | UTF-8 | 1,013 | 2.359375 | 2 | [] | no_license | package de.rabea;
import de.rabea.communication.SocketReader;
import de.rabea.communication.SocketWriter;
import de.rabea.logger.Logger;
import de.rabea.request.HttpRequest;
import de.rabea.response.HttpResponse;
public class ServerWorker implements Runnable {
private final SocketReader socketReader;
private... | true |
312f101db3a6bde7e1130008669a98b3851b0b33 | Java | hallvard/jexercise | /no.hal.jex.collection/src-gen/objectstructures/CardTest.java | UTF-8 | 18,054 | 3.046875 | 3 | [] | no_license | package objectstructures;
import junit.framework.TestCase;
import no.hal.jex.runtime.JExercise;
import objectstructures.Card;
@JExercise(description = "Tests objectstructures.Card")
@SuppressWarnings("all")
public class CardTest extends TestCase {
private Card c;
private Card _init_c() {
return null;
}
... | true |
bfee3ae66cc9337e525a93a9b99e047dd54c6cf9 | Java | Faith-Holden/picture-scratchoff | /picture-scratchoff/src/solution/ScratchoffPictures.java | UTF-8 | 8,750 | 2.703125 | 3 | [] | no_license | package solution;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.*;
import javafx.scene.control.Button;
import javafx.scene.control.Menu;
import javafx.scene... | true |
e1d4867b6487ab6d38caead23450922501af4dd9 | Java | btbuxton/java-midi-gen | /src/main/java/net/blabux/midigen/midi/PitchBend.java | UTF-8 | 2,049 | 2.703125 | 3 | [] | no_license | package net.blabux.midigen.midi;
import javax.sound.midi.InvalidMidiDataException;
import javax.sound.midi.MidiEvent;
import javax.sound.midi.ShortMessage;
import java.util.function.Consumer;
/**
* http://www.midikits.net/midi_analyser/pitch_bend.htm
* https://music.stackexchange.com/questions/47995/midi-pitch-bend... | true |
7d1961d3fad249c0135aae735573104b687894dc | Java | Guoqiangxu1992/SeHandCarManager | /src/main/java/com/xu/manager/service/AccountService.java | UTF-8 | 460 | 1.851563 | 2 | [] | no_license | /**
*
*/
package com.xu.manager.service;
import com.xu.manager.bean.LoginUser;
import com.xu.manager.bean.RegisterUser;
/**
* @author Create By Xuguoqiang
* @date 2016年7月31日--下午3:44:48--
*
*/
public interface AccountService {
/**
* 保存新建用户以及其角色
* @param LoginUser
* @param
* @autho... | true |
0a78faac651733e9b02a0cb85f2a459a956c5aca | Java | vZome/vzome | /core/src/main/java/com/vzome/core/construction/Point.java | UTF-8 | 1,517 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package com.vzome.core.construction;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.vzome.core.algebra.AlgebraicField;
import com.vzome.core.algebra.AlgebraicVector;
/**
* @author Scott Vorthmann
*/
public abstract class Point extends Construction
{
private AlgebraicVector mLocation;
... | true |
839ae8784f431a01b7632a1963b44d61f2ff7f0b | Java | eburlingame/TutorVersity | /app/src/main/java/com/example/eric/tutorversity/activities/ViewTutor.java | UTF-8 | 1,243 | 2.40625 | 2 | [] | no_license | package com.example.eric.tutorversity.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RatingBar;
import com.example.eric.tut... | true |
e0a12cae4c3e4bf1b1157afc93319aaddc4a56a4 | Java | edwardwang1/artisynth_core | /maspack/render/GL/GL3/GL3Drawable.java | UTF-8 | 1,345 | 2.953125 | 3 | [] | no_license | package maspack.render.GL.GL3;
import javax.media.opengl.GL3;
/**
* GL resource that can be drawn
*/
public interface GL3Drawable {
// /**
// * Use whatever internal resources that exist and draw to provided context
// * @param gl
// */
// public void draw(GL3 gl);
/**
* R... | true |
02476900df410268b5d3fdc3008c94d2be4b4983 | Java | eFOIA-12/eFOIA | /com/google/android/gms/drive/realtime/internal/event/c.java | UTF-8 | 2,982 | 1.78125 | 2 | [] | no_license | package com.google.android.gms.drive.realtime.internal.event;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.drive.realtime.internal.event.ParcelableEvent;
import com.google.android... | true |
e6fc800fbb1fa134cc907b5c1723bb277e32fcc3 | Java | NettyTeam/nagroda-minecraft | /src/main/java/net/wajwuz/rewards/basic/updater/PluginUpdate.java | UTF-8 | 1,067 | 2.40625 | 2 | [] | no_license | package net.wajwuz.rewards.basic.updater;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.net.MalformedURLException;
import java.net.URL;
public class PluginUpdate {
private String updateName;
private URL updateLink;
PluginUpdate(JsonObject object) {
this.updat... | true |
86bdaa1cca081987b80635f6e5a470c38c961229 | Java | nivetha-r/mock_hackathon_projects | /ProductApplication/src/main/java/com/hcl/store/service/UserServiceImpl.java | UTF-8 | 1,071 | 2.265625 | 2 | [] | no_license | package com.hcl.store.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hcl.store.dto.UserRequestDto;
import com.hcl.store.entity.User;
import com.hcl.store.exception.UserNotFoundException;
import com.hcl.store.repository.UserRepository;
... | true |
bcb93be8c4b1a612f0fbc1b3499d1bb26efc7a2d | Java | gaozhenxiao/S4J | /S4J/src/pinche/BackUp.java | GB18030 | 3,950 | 2.59375 | 3 | [] | no_license | package pinche;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServl... | true |
e1a2fd95a890acfbc4f9d97267c6db025320a36c | Java | SNEEManchester/snee | /snee/snee-core/src/main/java/uk/ac/manchester/cs/snee/compiler/queryplan/expressions/TrueAttribute.java | UTF-8 | 5,921 | 2.21875 | 2 | [] | no_license | /****************************************************************************\
* *
* SNEE (Sensor NEtwork Engine) *
* http://code.google.com/p/snee *
... | true |
ac27a5f65123a9306d1e5f7f1e980f80de4d088f | Java | espress91/autoset | /app/src/main/java/com/mod/sunjae/assist/ListAdapter.java | UTF-8 | 687 | 2.234375 | 2 | [] | no_license | package com.mod.sunjae.assist;
import android.content.Context;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class ListAdapter {
ListView listView = null;
ArrayAdapter<String> adapter= null;
public void ListSetB(Context context) {
adapter = new ArrayAdapter<String>(co... | true |
ce76ccbf28730886b5ad97094c4390e2f97ab190 | Java | pablo-johnson/PopularMovies | /app/src/main/java/com/johnson/pablo/popularmovies/helpers/DataBaseHelper.java | UTF-8 | 7,911 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.johnson.pablo.popularmovies.helpers;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.NonNull;
import com.johnson.pab... | true |
618e0a7276e5b89a16aa68ff9a06084956e49c8b | Java | P79N6A/icse_20_user_study | /methods/Method_1009839.java | UTF-8 | 273 | 2.71875 | 3 | [] | no_license | /**
* Tells an item fullfill the search method.
* @param item the item to test
* @param pattern the pattern
* @return true if match the search method
*/
private static boolean match(ParticipantAdapterItem item,String pattern){
return item.startsWith(pattern);
}
| true |
95b278bd436ae9aab7c1f31fa4636b9e9d8de242 | Java | YuriiRomanchuk/ReservationHotel | /src/main/java/com/reservation/controller/UserController.java | UTF-8 | 5,086 | 2.296875 | 2 | [] | no_license | package com.reservation.controller;
import com.reservation.exception.ServiceException;
import com.reservation.model.dto.UserDto;
import com.reservation.model.entity.User;
import com.reservation.model.enums.Role;
import com.reservation.service.RequestRoomService;
import com.reservation.service.UserService;
import com.r... | true |
7b1ba7cd2de8a09822949cdc2a5e47f5c084783b | Java | apache/hive | /ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTFJSONTuple.java | UTF-8 | 7,505 | 1.859375 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Python-2.0",
"BSD-2-Clause"
] | 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 ... | true |
7218acd560f0bbff2182df337dce25ef3092ab12 | Java | amaryniuk/Chain-Notes | /ChainNotes/src/SmokerGI/ImportFile.java | UTF-8 | 4,535 | 2.75 | 3 | [] | no_license | package SmokerGI;
import printtools.PrintUtilities;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
import java.lang.*;
import java.util.Vector;
public class ImportFile extends JFrame
{
public ImportFile(String client, String logoPath, String prospec... | true |
726bebb996fd4a5c0dcb8f4bd27572f68f3b937e | Java | rayest/ant-science-banckend | /src/main/java/com/antScience/model/user/VerificationCode.java | UTF-8 | 238 | 1.5625 | 2 | [] | no_license | package com.antScience.model.user;
import lombok.Data;
import java.util.Date;
/**
* Created by lirui on 2017/12/27.
*/
@Data
public class VerificationCode {
private String code;
private String phone;
private Date date;
}
| true |
2ed8e12bf88689381c6792fdaa84ded96d70af04 | Java | amupoti/supermanager | /supermanager-viewer/src/main/java/org/amupoti/sm/main/model/PrivateLeagueTeamData.java | UTF-8 | 772 | 1.859375 | 2 | [] | no_license | package org.amupoti.sm.main.model;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Value;
import java.util.List;
@Value
@EqualsAndHashCode(callSuper = true)
public class PrivateLeagueTeamData extends UserTeamViewData {
String user;
String updatedAt;
@Builder
public PrivateLeag... | true |
b1ec84a3403539599c7cebd11b08ec52bdc59127 | Java | dankunlee/Where-Am-I | /src/main/java/com/memorydream/whereami/AppWidget.java | UTF-8 | 6,217 | 2.109375 | 2 | [] | no_license | package com.memorydream.whereami;
import android.Manifest;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Vibrato... | true |
f79a4472de9d2b5b9a4afa139481436d32126ec7 | Java | Siarhei95/ProgrammingWithClasses---2.1 | /src/task2_1/Main.java | UTF-8 | 1,277 | 3.578125 | 4 | [] | no_license | //Создать объект класса Текст, используя классы Предложение, Слово. Методы: дополнить текст, вывести на
//консоль текст, заголовок текста.
package task2_1;
public class Main {
public static void main(String[] args) {
Text text = new Text();
String str = "1234";
String str2 = "dgf";
... | true |
76084770fb9dba6d6e46196f3f4a80e9e1eb5a4d | Java | manniloff/AriAster | /src/main/java/com/asterisk/controller/MonitoringController.java | UTF-8 | 1,879 | 2.046875 | 2 | [] | no_license | package com.asterisk.controller;
import ch.loway.oss.ari4java.tools.RestException;
import com.asterisk.ari.AriManager;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import javax.inject.Inject;
import javax.ws.rs.GET;
import java... | true |
248b12cd15c78975377adb447a9f25120737948a | Java | ahoorab/rest-api-example | /ex-persistence-layer/src/main/java/com/example/ex/repository/admin/FixSessionMpidRepository.java | UTF-8 | 664 | 1.9375 | 2 | [] | no_license | package com.example.ex.repository.admin;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.ex.model.entity.admin.FixSessionMpid;
/**
* Data access object for the Fix Session Mpid entity
*
* It covers only basi... | true |
7d75e0c10c0d169e236b0073088f277568242628 | Java | Titpost/TestAuto-Workshop | /src/main/java/workshop/day08_jdi/sections/Summary.java | UTF-8 | 806 | 2.6875 | 3 | [] | no_license | package workshop.day08_jdi.sections;
import com.epam.jdi.uitests.web.selenium.elements.complex.RadioButtons;
import com.epam.jdi.uitests.web.selenium.elements.complex.Selector;
import com.epam.jdi.uitests.web.selenium.elements.composite.Section;
import com.epam.jdi.uitests.web.selenium.elements.pageobjects.annotations... | true |
63e617c82c454f72953f3ae6570a2cb25627dad9 | Java | jiangwei19920723/axis2 | /src/cn/jcloud/srm/dao/sap/WsDeliverInfoRiseDao.java | UTF-8 | 399 | 1.679688 | 2 | [] | no_license | package cn.jcloud.srm.dao.sap;
import cn.jcloud.srm.dao.BaseDao;
import cn.jcloud.srm.entity.sap.WsDeliverInfoRise;
/**
* @author 蒋维
* @date 创建时间:2017年9月16日 下午2:24:46
* @version 1.0
* @parameter
* @since
* @return
*/
public interface WsDeliverInfoRiseDao extends BaseDao<WsDeliverInfoRise> {
public ... | true |
5205175249e1c9cbbef99697bc12c80814279c55 | Java | kenjen/GroupProject_Group_2 | /GroupProject_Group2/src/main/java/com/project/service/FailureClassServiceEJB.java | UTF-8 | 750 | 2.140625 | 2 | [] | no_license | package com.project.service;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;
import com.project.dao.FailureClassDAO;
import com.project.entities.FailureClass;
@Local
@Stateless
public class FailureClassServiceEJB im... | true |
da5ab23c763a59d4440dbb4dd1deb898ec35fb70 | Java | HaiFengZhiNeng/FanFan | /app/src/main/java/com/fanfan/robot/ui/setting/act/face/FaceDataActivity.java | UTF-8 | 10,040 | 1.75 | 2 | [] | no_license | package com.fanfan.robot.ui.setting.act.face;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import an... | true |
37e37753504e16a6354659ccf3987554ee01e500 | Java | concuachua/android | /assigmment_huyphpk00628/app/src/main/java/com/example/suphuy/assigmment_huyphpk00628/Fragment/SetTing/Fragment_SettingMore_ChangePassWord.java | UTF-8 | 2,804 | 1.929688 | 2 | [] | no_license | package com.example.suphuy.assigmment_huyphpk00628.Fragment.SetTing;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
imp... | true |
32b92ea69126152c6721cf14bbf602ffe0fa2ca0 | Java | nrszc/Hotal | /src/USearchRoom.java | GB18030 | 5,206 | 2.578125 | 3 | [] | no_license |
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Resu... | true |
c1aceb596928e9bfae8a77cd36156e89e3b20062 | Java | huangzhenhui494/data-tructure-algorithm-learn | /src/main/java/com/hzh/chapter14/algorithm/kmp/ViolenceMatch.java | UTF-8 | 2,214 | 4 | 4 | [] | no_license | package com.hzh.chapter14.algorithm.kmp;
/**
* https://www.zhihu.com/question/21923021
* @description:
* @Author huangzhenhui
* @Date 2021/3/15 9:27
*/
public class ViolenceMatch {
public static void main(String[] args) {
System.out.println(violenceMatch("XXXXXXXXX ABDEASDD ADFVCX ABDEASDE ADVED", "F... | true |
6dd5687dbbeb6a65e65c8e7ce44ae1de9d4e37ba | Java | yeamin21/AirportDMW | /src/warehouse/admin/TravelClasses.java | UTF-8 | 416 | 2.34375 | 2 | [] | no_license | package warehouse.admin;
public class TravelClasses {
private String class_code;
private Float class_description;
TravelClasses(String code, Float description) {
this.class_code = code;
this.class_description = description;
}
public String getclass_code() {
return class_c... | true |
1c72584a35be10e58eec9df7b8df947d6e127bc5 | Java | Fatsali/javat-rkce2020 | /src/day26encapsulation/Inheritance02.java | ISO-8859-9 | 628 | 3.40625 | 3 | [] | no_license | package day26encapsulation;
// nheritance 01 inheritance02 nin parenti olacak
//"extends" den sonraki parent nceki child olur
public class Inheritance02 extends Inheritance01 {
public static void main(String[] args) {
// Child in birden fazla parenti olur mu?
//cevap :olmaz java "multiple inheritance"i destekl... | true |
7efb6714c10ced373eb44cc9157ae4154930f196 | Java | alxsoares/DWITE-programming-contest-solutions | /solution/dwite200602p3.java | UTF-8 | 1,007 | 3.171875 | 3 | [] | no_license | /*
* DWITE - February 2006 - Problem 3: UPC Check Digit
* Solution by Nayuki Minase
*
* http://nayuki.eigenstate.org/page/dwite-programming-contest-solutions
* https://github.com/nayuki/DWITE-programming-contest-solutions
*/
public final class dwite200602p3 extends DwiteSolution {
public static void main(S... | true |
df02987dde4482fb607ad50145404286e979eff7 | Java | nando2301/SistemaInscripciones | /inscripciones/src/main/java/me/tania/inscripciones/entity/Maestro.java | UTF-8 | 4,072 | 1.898438 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package me.tania.inscripciones.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import jav... | true |
7fb3302dec793c13b1c71cb5657a5513f143f6e5 | Java | ssouzaaa/GerenteDeExercicios | /GerenteDeExerciciosNovo/src/Exception/ExercicioInexistenteException.java | UTF-8 | 150 | 2.359375 | 2 | [] | no_license | package Exception;
public class ExercicioInexistenteException extends Exception {
public ExercicioInexistenteException(String e){
super(e);
}
}
| true |
56fe6fd2d62b00a55015d49185afba6d3887c8e2 | Java | un-knower/ubk_Spider_50 | /ubk_Spider_50/src/com/unbank/robotspider/processor/WebPageWorkShop.java | UTF-8 | 1,400 | 2.609375 | 3 | [] | no_license | package com.unbank.robotspider.processor;
import java.util.concurrent.LinkedBlockingQueue;
import com.unbank.robotspider.entity.NewsInfoMiddleWare;
import com.unbank.robotspider.worker.WebPageProducer;
public class WebPageWorkShop extends BaseWorkShop implements Runnable {
protected LinkedBlockingQueue<Obje... | true |
7d4bbdc1e2f8592b2ac484912df131b251db009d | Java | Heatao/myLeetCode | /src/medium/CoinChange322.java | UTF-8 | 1,146 | 3.375 | 3 | [] | no_license | package medium;
import java.util.Arrays;
/**
* 完全背包和01背包的区别就是每个东东可以无限个
*/
public class CoinChange322 {
public int coinChange(int[] coins, int amount) {
if (amount == 0) return 0;
int len = coins.length;
int[][] dp = new int[len+1][amount+1];
Arrays.fill(dp[0], amount+1); ... | true |