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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
319c45e79b70e333e6e56b4003bef91417e2d935 | Java | softwarekitty/ISSTA-16-AE-6Artifacts | /src/recreateArtifacts/similarityMatrix/MatchTask.java | UTF-8 | 418 | 2.484375 | 2 | [] | no_license | package recreateArtifacts.similarityMatrix;
import java.util.concurrent.Callable;
public class MatchTask implements Callable<Boolean> {
private final Regex regex;
private final String input;
public MatchTask(Regex regexToUse, String stringToMatch) {
this.regex = regexToUse;
this.input = stringToMatch;
}
@O... | true |
e4b70622e1229f83f9097e2b36c74ccea0a97c2c | Java | RahulG997/RahulG | /Full cms without design/restservice/canteenmanagement/src/main/java/com/hexaware/MLP173/util/MenuRest.java | UTF-8 | 912 | 2.625 | 3 | [] | no_license | package com.hexaware.MLP173.util;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import com.hexaware.MLP173.model.Menu;
import com.hexaware.MLP173.factory.MenuFactory;
/**
* This class provides a REST interface for the em... | true |
810c250286c4dd19c77398fc4ba313aa2fb72737 | Java | AdrianoGuterres/automation.practiceV3 | /src/main/java/db/trainning/automationpractice/utils/DevTools.java | UTF-8 | 3,150 | 2.484375 | 2 | [] | no_license | package db.trainning.automationpractice.utils;
import java.util.Random;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.suppor... | true |
3208f05fcb650036ebb97aea2e21fa269df91913 | Java | kiragujohn/pesapi | /src/main/java/com/pesa/epesa/mastercard/EpesaApplication.java | UTF-8 | 746 | 1.726563 | 2 | [] | no_license | package com.pesa.epesa.mastercard;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@SpringBootAppli... | true |
c37990883da2078ea59c3f3fc1fceca56ad6d686 | Java | MarinGeorgiev98/Supermarket | /supermarket/src/main/java/com/endava/supermarket/dto/response/GetSupermarketByIdResponseDto.java | UTF-8 | 421 | 1.851563 | 2 | [] | no_license | package com.endava.supermarket.dto.response;
import com.endava.supermarket.model.Item;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
@Getter
@Setter
@NoArgsConstructor
public class GetSupermarketByIdResponseDto {
private String name;
private String addre... | true |
d1c90a8f19685bdc011238d720ab251aa5739ead | Java | JefeSimpson/backend-serivce | /src/main/java/org/github/jefesimpson/backend/service/service/VipAppService.java | UTF-8 | 671 | 2.1875 | 2 | [] | no_license | package org.github.jefesimpson.backend.service.service;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.dao.DaoManager;
import org.github.jefesimpson.backend.service.configuration.DatabaseUtils;
import org.github.jefesimpson.backend.service.model.VipApp;
import java.sql.SQLException;
public class VipAppServ... | true |
043a7ce6dd9a8fa185ff42ebb8fbf483c5f65c06 | Java | hoong123/mtbatistest | /src/proxyJDK/HelloServiceImpl.java | UTF-8 | 228 | 2.296875 | 2 | [] | no_license | package proxyJDK;
/**
* @author weihoong
* @since 2017/11/23
*/
public class HelloServiceImpl implements HelloService {
@Override
public void sayHello(String name) {
System.err.println("hello"+name);
}
}
| true |
5fd3e29bedad853c5f64e7a978646fb8e41ebe15 | Java | ranganak/mobiperf_new | /app/src/main/java/com/mobiperf/OptimizedMeasurementResult.java | UTF-8 | 1,242 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.mobiperf;
import java.util.HashMap;
/**
* Created by rangk on 3/15/2016.
*/
public class OptimizedMeasurementResult {
private String deviceId;
private long timestamp;
public String networkType;
public String carrier;
public String ip;
private HashMap<String, String> values;
... | true |
c4b285f8f6e4dc5812ddcd9a9c214527089e4844 | Java | happylynx/prick | /src/main/java/com/github/happylynx/prick/lib/model/FsEntryType.java | UTF-8 | 107 | 1.539063 | 2 | [] | no_license | package com.github.happylynx.prick.lib.model;
public interface FsEntryType {
String getCode();
}
| true |
8021af1be6067b547db33e6965d323f89929728d | Java | DavidDimon/alert-challenge | /server/src/main/java/com/involves/selecao/alerta/Alerta.java | UTF-8 | 1,560 | 2.4375 | 2 | [] | no_license | package com.involves.selecao.alerta;
import java.time.LocalDate;
import java.util.Objects;
public class Alerta {
private String pontoDeVenda;
private String descricao;
private String produto;
private Integer flTipo;
private Integer margem;
private LocalDate dataResposta;
public String getPontoDeVenda() {
r... | true |
1815fade0a17c7fdbbb089235b3bb607f5ff68f7 | Java | marcora/biomart | /src/java/org/biomart/objects/objects/types/FilterDisplayType.java | UTF-8 | 592 | 2.953125 | 3 | [] | no_license | package org.biomart.objects.objects.types;
public enum FilterDisplayType {
TEXTFIELD ("textfield"),
BOOLEAN ("boolean"),
LIST ("list"),
TREE ("tree");
private String value = null;
private FilterDisplayType() {
this(null);
}
private FilterDisplayType(String value) {
this.value = value;
}
pu... | true |
d944977ea658962680f5822f1ac3520118e2a7a9 | Java | TheMolkaPL/NeoGuilds | /src/main/java/net/karolek/neoguilds/commands/AbstractCommand.java | UTF-8 | 2,936 | 2.71875 | 3 | [] | no_license | package net.karolek.neoguilds.commands;
import lombok.Getter;
import lombok.Setter;
import net.karolek.neoguilds.commands.exceptions.CommandException;
import net.karolek.neoguilds.commands.exceptions.PermissionException;
import net.karolek.neoguilds.utils.Reflection;
import net.karolek.neoguilds.utils.Util;
import org... | true |
f0eb8c4e9e5bbb369fe675a5ec61618735a1f9b1 | Java | lyk-ohlyk/leetcode3 | /src/dp/WordSearch.java | UTF-8 | 1,071 | 3.46875 | 3 | [] | no_license | package dp;
public class WordSearch {
public static void main(String[] args) {
// TODO Auto-generated method stub
WordSearch w=new WordSearch();
char[][] board=new char[][]{{'a'}};
System.out.println(w.wordSearch(board, "ab"));
}
public boolean wordSearch(char[][] board, String s){
boolean[][] used... | true |
6254cd708de59e1972e75aaaf74bc956b4f049df | Java | Donutellko/ComicReaderServer | /WAR_SERVER_PROJECT/src/Parsers/EnDilbertParser.java | UTF-8 | 1,862 | 2.796875 | 3 | [] | no_license | package Parsers;
public class EnDilbertParser extends UniversalParser {
EnDilbertParser(String url, String html) {
super(url, html);
}
@Override
protected String getAlias() {
return "endilbert";
}
/**
* uses: <span class="comic-title-name">Millenial Fever</span>
* @return like Millenial Fever
*/
@Ov... | true |
4e29acc175fc1f7867ba38546aafd16317657166 | Java | Smilo-platform/Smilo-Commons | /src/main/java/io/smilo/commons/ledger/AddressManager.java | UTF-8 | 7,327 | 2.296875 | 2 | [] | no_license | /*
* Copyright (c) 2018 Smilo Platform B.V.
*
* 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 o... | true |
1d0f0b4b0d0335b94de250553a96df7dec5fab3f | Java | sibel88/Java | /Palindrome/src/com/sinan/tas/palindromeExample.java | UTF-8 | 684 | 3.5 | 4 | [] | no_license | package com.sinan.tas;
public class palindromeExample {
public static void main(String[] args) {
String[] names = {"asude", "omur", "ensar", "azra", "dad", "mam"};
String newReversed = "";
for (int i = 0; i < names.length; i++) {
String temp = names[i];
for (int j =... | true |
ab098a9d44ba3b8a2ee83a3ac4d135100614e1f9 | Java | RodexterMalinao/springBoard | /BomWebPortal/src/com/bomwebportal/mob/ccs/dto/BasketAssoWBasketAttrBrandModelDTO.java | UTF-8 | 581 | 1.960938 | 2 | [] | no_license | package com.bomwebportal.mob.ccs.dto;
public class BasketAssoWBasketAttrBrandModelDTO {
public String getBrandId() {
return brandId;
}
public void setBrandId(String brandId) {
this.brandId = brandId;
}
public String getModelId() {
return modelId;
}
public void setModelId(String modelId) {
this.modelId =... | true |
99cc31e28c2a3809a3b66f293aa0ac6d1d6ac0ed | Java | arnabs542/coding | /src/test/java/com/niyue/coding/leetcode/threesum/ThreeSumTest.java | UTF-8 | 1,155 | 3.078125 | 3 | [] | no_license | package com.niyue.coding.leetcode.threesum;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import org.junit.Test;
public class ThreeSumTest {
@Test
// should output number instead of number's index
public void testAllZeros() {
Solution sl = new Solution();
ArrayList<ArrayList<Integ... | true |
f18ee4fc7b31c404a9beff402f58d645b63bcfac | Java | dijalmasilva/Dood | /app-web/src/main/java/dijalmasilva/dood/web/main/App.java | UTF-8 | 1,314 | 1.984375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dijalmasilva.dood.web.main;
import dijalmasilva.dac.shared.entidades.Usuario;
import dijalmasilva.dac.shared.interfaces.Convit... | true |
1e5549f26a0a450cd1b6a9f89412820adcc922ef | Java | nicolae1099/Heroes-Battle | /heroes/Pyromancer.java | UTF-8 | 2,942 | 2.96875 | 3 | [] | no_license | package heroes;
import abilities.AmplifierByRace;
import abilities.Fireblast;
import abilities.Ignite;
import angels.Angel;
import effects.DamageOverTime;
import effects.Effects;
import strategies.PyromancerAttackStrategy;
import strategies.PyromancerDefenseStrategy;
import strategies.Strategy;
public final class Py... | true |
3ded79e035368524880b4b67d8e1718cfe337fa9 | Java | susnata1981/Ziplly | /src/com/ziplly/app/server/handlers/UpdateTweetActionHandler.java | UTF-8 | 2,109 | 2 | 2 | [] | no_license | package com.ziplly.app.server.handlers;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import net.customware.gwt.dispatch.server.ExecutionContext;
import net.customware.gwt.dispatch.shared.DispatchException;
import com.google.inject.Inject;
import com.google.inject.Provider;
impo... | true |
54eda4180beb280099564ace5c00c437dbc11f94 | Java | SelemyRiddle/ChapterTwo | /StringPlay.java | UTF-8 | 587 | 3.609375 | 4 | [] | no_license | public class StringPlay
{
public static void main (String[] args)
{
String college = new String("PoDunk College");
String town = new String("Anytown, USA");
int stringLength;
String change1, change2, change3;
stringLength = college.length();
System.out.println (c... | true |
a6aa09d43da35fc6f36338e7a111433c3efa8e5e | Java | zhao123456/financial-product | /financial/manager/src/main/java/com/chenjie/financial/manager/configurations/RpcConfiguration.java | UTF-8 | 497 | 1.703125 | 2 | [
"MIT"
] | permissive | package com.chenjie.financial.manager.configurations;
import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImplExporter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Author chenjie
* @Date 2018/10/3 11:23
* @Description:
*/
@Configurat... | true |
66ec0478dfa7a3ba26f5ac2a545bf48d913acdf2 | Java | sbondada/leetcodeOJ_problems | /src/PlusOne/Solution.java | UTF-8 | 646 | 3.09375 | 3 | [] | no_license | public class Solution {
public int[] plusOne(int[] digits) {
int i=digits.length-1;
int carry=1;
while(i>=0)
{
int temp=carry+digits[i];
carry=temp/10;
digits[i]=temp%10;
i--;
}
if(carry!=1)
{
... | true |
1e426360af9ed6d3f9205ec0363fedaf560998d1 | Java | apache/hbase | /hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAllowPartialScanResultCache.java | UTF-8 | 3,629 | 1.9375 | 2 | [
"CC-BY-3.0",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-protobuf",
"MIT"
] | 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 |
dcf3e3300fee8fc730e07fd194d4eabf5b2b3d45 | Java | Vindemoeller/OOP_F21 | /src/session5/solutions/c_exercise_decorator_pattern_solution/FileDataHandlerImpl.java | UTF-8 | 352 | 2.796875 | 3 | [] | no_license | package session5.solutions.c_exercise_decorator_pattern_solution;
public class FileDataHandlerImpl implements FileDataHandler {
String fileName;
public FileDataHandlerImpl(String fileName) {
this.fileName = fileName;
}
@Override
public void write(String data){
System.out.println("... | true |
01042923ca69cdaafdd5c67e09d39fdb341c7638 | Java | Oleg37/FinalAmigosAgendaRoom | /app/src/main/java/es/miapp/ad/ej2amigosagenda/util/BroadcastIncomingCall.java | UTF-8 | 3,044 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2021. ArseneLupin0.
*
* Licensed under the GNU General Public License v3.0
*
* https://www.gnu.org/licenses/gpl-3.0.html
*
* Permissions of this strong copyleft license are conditioned on making available complete source
* code of licensed works and modifications, which include larger... | true |
9a709310bf7081120cd4ef132d2b758d95ee8ad1 | Java | DonYoo/Pattern | /BU/Java/CS665 SW Design&Pattern/Highway/Highway_Toll/Highway.java | UTF-8 | 1,630 | 3.53125 | 4 | [] | no_license | package Highway_Toll;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Random;
/**
* Highways, Toll gates and Data Collection: Each highway is segmented in multiple toll
gateways (or data collection points) and each toll gate has a posit... | true |
23c97f067c282c8d1eec1753c92e5a7421882e21 | Java | AbsoluteZero-CHN/jvm-tech | /src/main/java/cn/noload/oom/VtableTest.java | UTF-8 | 420 | 2.53125 | 3 | [] | no_license | package cn.noload.oom;
/**
* @author hao.caosh@ttpai.cn
* @date 2020-11-30 14:37
*/
public class VtableTest {
public static void main(String[] args) {
Father child = new Child();
child.run();
}
}
abstract class Father {
public Father() {
run();
}
// miranda 方法
abstr... | true |
86fec822be9e0650fe8d001b37d7821b76fdfc95 | Java | lafety13/mod8 | /task4/Main.java | UTF-8 | 488 | 2.375 | 2 | [] | no_license | package task4;
import task2.AbstractDAO;
public class Main {
private static int userId = 0;
public static void main(String[] args) {
User user = new User(userId++, "Vadim");
AbstractDAO<User> userDAO = new UserDAO<>();
userDAO.save(user);
userDAO.getList().forEach(System.out::... | true |
44db249c59494cd84bce4aec717ed36f604303ad | Java | xyf1111/cjh | /zhangzhongbao/src/main/java/io/chaoshua/modules/agent/service/impl/AppAgentServiceImpl.java | UTF-8 | 1,211 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package io.chaoshua.modules.agent.service.impl;
import cn.hutool.crypto.digest.BCrypt;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.chaoshua.common.exception.RRException;
import io.chaoshua.common.validator.Assert;
import io.chaoshua.modules.agent.dao.AppAgentDao;
import io.chaoshua.modules.age... | true |
af25ec66a15bdcfd9020aafc2c65a29d66d74513 | Java | ly3620296/wpt | /wxyfwptma/src/gka/controller/jfxmlx/JfxmlxController.java | UTF-8 | 3,363 | 1.9375 | 2 | [] | no_license | package gka.controller.jfxmlx;
import com.alibaba.fastjson.JSONArray;
import com.jfinal.core.Controller;
import com.jfinal.ext.route.ControllerBind;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import gka.common.kit.ReKit;
import gka.common.kit.ReturnKit;
import gka.common.ki... | true |
eb519af7cc6a3b5b041db9170944c6b824880d36 | Java | wanglianghai/CustomViewGroup2 | /app/src/main/java/com/bignerdranch/android/scrollerdemo/MainActivity.java | UTF-8 | 2,545 | 2.390625 | 2 | [] | no_license | package com.bignerdranch.android.scrollerdemo;
import android.graphics.Canvas;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import a... | true |
1d2782db105adbfe6a289360f718096ef7252463 | Java | qijingqianglsl/ssm | /Demo/src/main/java/com/ssm/service/UserService.java | UTF-8 | 515 | 1.960938 | 2 | [] | no_license | package com.ssm.service;
import com.ssm.pojo.User;
import java.util.List;
public interface UserService {
/**
* 查询
* @return
*/
List<User> getAll();
/**
* 插入
*/
void insertUser(User user);
/***
* 编辑
*/
User editUser(User user);
void saveUser(User user... | true |
18f1cb226ae9d7125af531758e5fc2e47fc63c19 | Java | Gaurang-Athavale/SAU-2021-Jan-Batch-Bangalore | /Hibernate - (Evening)/Assignment/src/main/java/com/assignment/hibernate/Assignment/entity/Department.java | UTF-8 | 863 | 2.609375 | 3 | [] | no_license | package com.assignment.hibernate.Assignment.entity;
import javax.persistence.*;
import javax.persistence.criteria.CriteriaBuilder;
import java.util.Set;
@Entity
public class Department {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column
private String name;
... | true |
118e1e40c41b4e052dfaaa6d5964d4709f39e469 | Java | shuogesha/ZHYplatform | /src/main/java/com/shuogesha/platform/dao/UnifiedUserDao.java | UTF-8 | 548 | 1.75 | 2 | [] | no_license | package com.shuogesha.platform.dao;
import org.springframework.data.mongodb.core.query.Update;
import com.shuogesha.platform.entity.UnifiedUser;
import com.shuogesha.platform.web.mongo.Pagination;
public interface UnifiedUserDao {
void saveEntity(UnifiedUser bean);
UnifiedUser findById(String id);
v... | true |
4c04a181b5d50318b7696ba779b70295350dab68 | Java | youqihei/WeiChat | /app/src/main/java/weichat/privatecom/wwei/weichat/fragment/AddFriendFragment.java | UTF-8 | 2,560 | 2.171875 | 2 | [] | no_license | package weichat.privatecom.wwei.weichat.fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import butterknife.BindView;
import butterknife.OnClick;
import weichat.privatecom.wwei.weichat.R;
import weichat.privatecom.wwei.weichat.base.BaseFragmen... | true |
95ddd36f3f19e9e5e65297c6700fccccc5563e96 | Java | Bilalesque/CN-Assignment | /CN Lab/Week-03/ipAddress/src/ipaddress/IpAddress.java | UTF-8 | 844 | 3 | 3 | [] | 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 ipaddress;
import java.io.*;
import java.net.*;
/**
*
* @author Lenovo
*/
public class IpAddress {
public I... | true |
7ec2e8cb8cef74df3c74b927792eb44c33982c61 | Java | wuyuyu97/wssm | /src/main/java/wu/ssm/Utility.java | UTF-8 | 314 | 2.046875 | 2 | [] | no_license | package wu.ssm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Utility {
private static Logger logger = LoggerFactory.getLogger(Utility.class);
static public void log(String format, Object...args) {
String s = String.format(format, args);
logger.info(s);
}
}
| true |
6d5e4652516280d935134f2f0bb3112597aab552 | Java | gregorias/Ghoul | /ghoul-core/src/main/java/me/gregorias/ghoul/security/JoinDHTMessage.java | UTF-8 | 380 | 2.140625 | 2 | [] | no_license | package me.gregorias.ghoul.security;
import java.io.Serializable;
import java.security.PublicKey;
public final class JoinDHTMessage implements Serializable {
private static final long serialVersionUID = 1L;
private final PublicKey mPubKey;
public JoinDHTMessage(PublicKey pubKey) {
mPubKey = pubKey;
}
... | true |
9bb8a38a2a3fc874d9a60e745cc7b6d6abc85247 | Java | yaroslav-rybiak/selenium-training | /src/test/TestBase.java | UTF-8 | 1,474 | 2.640625 | 3 | [] | no_license | package test;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.concurrent.TimeUnit;
public class TestBase {
... | true |
ec5664c64629a7e0c02fe81092c11c9906a1df5c | Java | freezehacker/ClientForGank | /app/src/main/java/com/sysu/sjk/base/BaseActivity.java | UTF-8 | 797 | 2.328125 | 2 | [] | no_license | package com.sysu.sjk.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by sjk on 16-10-21.
*/
public abstract class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInsta... | true |
2fa68d70a63114d704abf2da981ee8eb6f06d822 | Java | FRINXio/cli-units | /saos/saos-6/saos-6-qos/src/main/java/io/frinx/cli/unit/saos/qos/handler/scheduler/service/queue/maps/ServiceQueueMapConfigReader.java | UTF-8 | 3,200 | 1.8125 | 2 | [] | no_license | /*
* Copyright © 2021 Frinx and others.
*
* 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... | true |
55093fe213833da718d43914500ef45f1f37e5fe | Java | Redcliffe20/Student-Management-System- | /option_sms.java | UTF-8 | 4,946 | 3.078125 | 3 | [] | no_license | import java.io.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
//import java.util.HashMap;
import java.util.Scanner;
//import java.util.Map.Entry;
public class option_sms {
Scanner menuInput=new Scanner(Sys... | true |
928831bdf405243adce37771da2f8fe343f17f30 | Java | SmartBear/ready-mqtt-plugin | /src/main/java/com/smartbear/mqttsupport/teststeps/ExecutableTestStepResult.java | UTF-8 | 484 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package com.smartbear.mqttsupport.teststeps;
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep;
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult;
public class ExecutableTestStepResult extends WsdlTestStepResult {
private String outcome = "";
public ExecutableTestStepResult(WsdlTestS... | true |
9c26dcc705fa085bfafc089089446ffb80b90d5e | Java | Valuya/comptoir | /comptoir-ws-api/src/main/java/be/valuya/comptoir/ws/rest/api/util/ZonedDateTimeXmlAdapter.java | UTF-8 | 630 | 2.4375 | 2 | [] | no_license | package be.valuya.comptoir.ws.rest.api.util;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
*
* @author cghislai
*/
public class ZonedDateTimeXmlAdapter extends XmlAdapter<String, ZonedDateTime>{
@Override
public ZonedDa... | true |
21afe8d182b0bfe1ae94ce02dd17a3a515441bd5 | Java | snzke-projects/server_vcat | /vcat-admin/src/main/java/com/vcat/module/ec/service/ProductPerformanceLogService.java | UTF-8 | 2,586 | 2.0625 | 2 | [] | no_license | package com.vcat.module.ec.service;
import com.vcat.common.utils.IdGen;
import com.vcat.common.utils.StringUtils;
import com.vcat.module.core.service.CrudService;
import com.vcat.module.ec.dao.*;
import com.vcat.module.ec.entity.Customer;
import com.vcat.module.ec.entity.Product;
import com.vcat.module.ec.entity.Produ... | true |
0188c4c0e7cbf625124a67425322abe97a0e953c | Java | txy1996/ims | /src/main/java/com/pydyun/ims/util/Analysis2.java | UTF-8 | 1,949 | 2.828125 | 3 | [] | no_license | package com.pydyun.ims.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 参数:广告字符串 数据格式见mian方法
* 判断是什么连接,并放回集合,如果是#号隔开,选择时,请选list0或者list1等
* 如果是,号隔开,则请选择list0
* @author fy
*
*/
public class Analysis2 {
public static Map<String, List<String>> find(St... | true |
d3a4e44ef448d11b3a7f138d459abd944b689865 | Java | chenchencswpi/LeetCode | /LeetCode/src/$61/RotateList.java | UTF-8 | 832 | 3.109375 | 3 | [] | no_license | package $61;
public class RotateList {
public ListNode rotateRight(ListNode head, int k) {
if (head == null) {
return null;
}
k %= getLength(head);
if (k == 0) {
return head;
}
ListNode l1 = head, l2 = head;
while (k > 0) {
l2... | true |
2b975ba5ef3420e21ac72bb31db506a93f942cc9 | Java | dungnguyen-art/Java_Programming | /Standard_String.java | UTF-8 | 1,513 | 3.671875 | 4 | [] | no_license | import java.util.*;
public class Standard_String {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int T = Integer.parseInt(in.nextLine());
while(T-->0){
String s = in.nextLine();
int len = s.length();
String sTmp = "";
... | true |
09726fb4ecd6ca6c3ee7e65485ef6ff483d5f19b | Java | swapnilgt/ZetaTask | /app/src/main/java/com/example/zetatask/data/pojos/PageMap.java | UTF-8 | 940 | 2.15625 | 2 | [] | no_license | package com.example.zetatask.data.pojos;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class PageMap {
@SerializedName("cse_thumbnail")
@Expose
private List<CseThumbnail> cseThumbnail;
@SerializedName("cse_image")
@Exp... | true |
1e411ec3e6a19dcc501750d229f3bb15444595ea | Java | neoranger/ao-java | /shared/src/shared/model/lobby/Team.java | UTF-8 | 92 | 1.625 | 2 | [] | no_license | package shared.model.lobby;
public enum Team {
REAL_ARMY,
CAOS_ARMY,
NO_TEAM
}
| true |
03bfe06fb7476e7b23806f3243d5087ecf8a47a9 | Java | SuStudent/cherry | /services/user-parent/user/src/test/java/org/sustudent/cherry/services/user/service/SysResourceServiceTest.java | UTF-8 | 3,142 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | //package org.sustudent.cherry.services.user.service;
//
//import static org.junit.Assert.*;
//
//import com.fasterxml.jackson.core.JsonParser.Feature;
//import com.fasterxml.jackson.databind.ObjectMapper;
//import java.io.IOException;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//impor... | true |
a900fa6a038b35105d8037b4aab72de5698a8b94 | Java | weathery/jt808-server | /src/main/java/org/yzh/web/model/APIResult.java | UTF-8 | 2,553 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.yzh.web.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.cglib.beans.ImmutableBean;
import org.yzh.web.commons.ResultCode;
import org.yzh.web.model.enums.DefaultCodes;
/**
* @author yezhihao
* @home https://... | true |
610ddb6e531d91111143674a3dfcf2555bb4d708 | Java | Eidith15/StudioChendraApp | /app/src/main/java/com/eidith/studiochendraapp/model/RegistrasiOrderModel.java | UTF-8 | 2,701 | 1.921875 | 2 | [] | no_license | package com.eidith.studiochendraapp.model;
import java.util.List;
public class RegistrasiOrderModel {
private int id_registrasi, id_layanan, id_user;
private String tanggal_registrasi, judul_layanan, gambar_layanan, tanggal_layanan, nama_user, email_user, no_handphone_user;
private int code;
private... | true |
782cbba8ed606d82c53b6fc91773fd5f45a9d3ad | Java | zhoudy-github/Backup-Restore | /HighjetBI-Common/src/main/java/com/highjet/common/base/xss/XssAndSqlHttpServletRequestWrapper.java | UTF-8 | 9,260 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | package com.highjet.common.base.xss;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
/**
* 拦截器过滤处理所有请求参数
* @author cenyoupeng
* 2017年11月25日
*/
public class XssAndSqlHttpServletReques... | true |
d47c05a680be8c1702c406ec62a1d988c9158689 | Java | jueyue/windbell | /business/paas/src/main/java/com/wupaas/boot/paas/im/thirdservice/weixin/model/WeiXinMessagePictureModel.java | UTF-8 | 348 | 1.632813 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-mulanpsl-1.0-en",
"MulanPSL-1.0"
] | permissive | package com.wupaas.boot.paas.im.thirdservice.weixin.model;
/**
* @author dbinary 2019/7/21.
*/
import lombok.Data;
import java.util.Map;
@Data
public class WeiXinMessagePictureModel extends WeiXinMessageModel{
/**
*消息内容,最长不超过2048个字节,超过将截断 --图片
*/
private Map<String,Object> image;
}
| true |
8ca12438ff3f6f38fb2a04af2ea04d78a098a48b | Java | nayaguiar/SistemaVenda | /src/MinhasViews/CadastroFuncionario.java | UTF-8 | 13,859 | 2.109375 | 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 MinhasViews;
import Beans.FuncionarioB;
import Dao.FuncionarioDao;
import Utilitario.Corretores;
import javax.swing.JOptionPan... | true |
f6b8dd2fa8b779c012f461f209ab8172d4b8369e | Java | wadyme/commentIt | /leading-integrator-client/src/test/java/cn/ls/integrator/client/TestListLog.java | UTF-8 | 3,948 | 1.945313 | 2 | [] | no_license | package cn.ls.integrator.client;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import cn.ls.integrator.client.service.ScheduleService;
import cn.ls.integrator.client.service.util.SerializeUtils;
import cn.ls.integrator.client.serv... | true |
413c5618c019c89c58f3e4d9b5eb1aa4f5af7bf5 | Java | detinho/JSR303Swing | /src/main/java/br/com/detinho/jsr303swing/inputverifier/converters/MetaTypeConverterNotFoundException.java | UTF-8 | 242 | 1.664063 | 2 | [] | no_license | package br.com.detinho.jsr303swing.inputverifier.converters;
public class MetaTypeConverterNotFoundException extends RuntimeException {
public MetaTypeConverterNotFoundException(String message, Throwable ex) {
super(message, ex);
}
}
| true |
4e552fb05b4f65782c8910ed085f3b7478307c2e | Java | pradeepmr7879/ActiTime | /src/TCPassFail.java | UTF-8 | 625 | 2.171875 | 2 | [] | no_license | import org.testng.ITestResult;
import org.testng.Reporter;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class TCPassFail
{
@BeforeMethod
public void openApp()
{
Reporter.log("opens app", true);
}
@Test
public... | true |
617cb1a91675ddaed7093092c7f17fa3c662ee20 | Java | Arevelo27/adn-ceiba | /microservicio/infraestructura/src/main/java/com/ceiba/consultorio/controlador/ComandoControladorPago.java | UTF-8 | 1,850 | 2.03125 | 2 | [] | no_license | package com.ceiba.consultorio.controlador;
import com.ceiba.ComandoRespuesta;
import com.ceiba.consultorio.comando.ComandoPago;
import com.ceiba.consultorio.comando.manejador.ManejadorActualizarPago;
import com.ceiba.consultorio.comando.manejador.ManejadorCrearPago;
import com.ceiba.consultorio.comando.manejador.Manej... | true |
ab05f47bddb3dc3f06ba1b48a184257171f7f06b | Java | courtGibson/MyPlanner | /BusinessPlanner/src/main/java/software_masters/business_planner/User.java | UTF-8 | 1,526 | 2.828125 | 3 | [] | no_license | /**
*
*/
package software_masters.business_planner;
import java.io.Serializable;
/**
* @author Courtney
* @author Keenan
*/
public class User implements Serializable
{
String name;
String username;
String password;
String deptName;
boolean admin;
/**
* @param name name of the user
... | true |
882d056df6e42063b6a205632902dfce7834252b | Java | riishaat/UserLoginTime | /app/src/main/java/com/rishat/loginsql/Login_form.java | UTF-8 | 2,427 | 2.15625 | 2 | [] | no_license | package com.rishat.loginsql;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.text.SimpleDateFormat;
import java.util.Calendar;
pu... | true |
5c1ef1c0428c07e8ecdc891d770ec4f9ebb483cb | Java | elramirezn/Orchata | /src/prueba2/Borrador.java | UTF-8 | 608 | 2.484375 | 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 prueba2;
/**
*
* @author relki
*/
public class Borrador {
private float precioBorrador;
public Borra... | true |
8b8d2a5afe408858d35afc501b5eeda2563c6a9f | Java | mauricioCeiba/adn-backend | /microservicio/dominio/src/main/java/com/ceiba/alquilervehiculo/puerto/repositorio/RepositorioAlquilerVehiculo.java | UTF-8 | 988 | 2.140625 | 2 | [] | no_license | package com.ceiba.alquilervehiculo.puerto.repositorio;
import com.ceiba.alquilervehiculo.modelo.entidad.AlquilerVehiculo;
public interface RepositorioAlquilerVehiculo {
/**
* Permite crear un alquilerVehiculo
* @param alquilerVehiculo
* @return el id generado
*/
Long crear(AlquilerVehicul... | true |
9f0a01227a21169a39fff8e281fd2e9799a814ec | Java | Azure/azure-libraries-for-java | /azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ProcessThreadInfoInner.java | UTF-8 | 7,461 | 2.03125 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice.implementation;
import org.joda.time.... | true |
1280c654dc9bd627bac0ea0dc327d7ec19de3a9d | Java | 1355971805/newIDEA | /03_spring/src/test/testAOPAspect08.java | UTF-8 | 537 | 1.90625 | 2 | [] | no_license |
import cn.happy.Aspect07.ISomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created by 王 on 2017/7/23.
*/
public class testAOPAspect08 {
//1.顾问
@Test
public void tests() {
... | true |
de822edeba6fb83608bf6c2d3990ecbe939b00b7 | Java | GretchenWilson/TicketSystemSimulation | /TicketOrder.java | UTF-8 | 1,377 | 3.71875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Collection;
//********************************************************************************
//Gretchen Wilson
//CMSC 256 Fall 2016
//TicketOrder.java
//TicketOrder represents an order of a number of tickets.
//The order is held in a list and the total is calculat... | true |
0ce02afea41e9a65f80a2207e0b0562dda0e04ea | Java | tanxujie/drools | /drools-ruleunit/src/main/java/org/drools/ruleunit/RuleUnit.java | UTF-8 | 2,744 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | true |
4c6dd281f3d3b0cf943137440c37af4188d57b5d | Java | jaissegrela/challenge-eventstore | /src/main/java/net/intelie/challenges/InMemoryEventStore.java | UTF-8 | 953 | 3.015625 | 3 | [] | no_license | package net.intelie.challenges;
import java.util.Hashtable;
import java.util.Vector;
/**
* An event store.
* <p>
* InMemoryEventStore is an in-memory implementation of event store
*/
public class InMemoryEventStore implements EventStore {
protected Hashtable<String, Vector<Event>> store;
public InMemoryEven... | true |
907e6d142fcdca07b2e4e5c9a26c0bd51881677f | Java | kborodulin/kborodulininnopolisbasicjava | /src/main/java/ru/kborodulin/task23/App.java | UTF-8 | 1,459 | 3.734375 | 4 | [] | no_license | package ru.kborodulin.task23;
/**
* 23_ДЗ_Реализация корзины интернет магазина
* Реализовать класс корзины интернет магазина по следующему интерфейсу:
* <p>
* interface Basket {
* <p>
* void addProduct(String product, int quantity);
* <p>
* void removeProduct(String product);
* <p>
* void updateProductQuanti... | true |
3208f0da83dc35bacfeded700833c6650e345d9a | Java | LHang-01/leetcode-Exercise | /src/doublePointer/array/Num18.java | UTF-8 | 3,780 | 3.859375 | 4 | [] | no_license | package doublePointer.array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 18. 四数之和
* 给定一个包含n 个整数的数组nums和一个目标值target,判断nums中是否存在四个元素 a,b,c和 d,使得a + b + c + d的值与target相等?找出所有满足条件且不重复的四元组。
* 注意:答案中不可以包含重复的四元组。
* 示例:给定数组 nums = [1, 0, -1, 0, -2, 2],和 target = 0。满足要求的四元组集合为:
* [ [... | true |
be534020f658d398d59c43e2f18ed23ad068ba15 | Java | ESGI-Ideal/Ideal-MobileApp | /app/src/main/java/fr/esgi/ideal/ideal/ArticleViewer.java | UTF-8 | 10,682 | 1.96875 | 2 | [] | no_license | package fr.esgi.ideal.ideal;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.widget.NestedScrollView;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.wid... | true |
27679975f2a958aaa5491a8ab1aef5794176da90 | Java | softsquared-summer/adidas-runtastic-mock-android-pig | /app/src/main/java/com/softsquared/runtastic/src/main/fragment/NewsPeed/interfaces/FindFriendActivityView.java | UTF-8 | 388 | 1.671875 | 2 | [] | no_license | package com.softsquared.runtastic.src.main.fragment.NewsPeed.interfaces;
import com.softsquared.runtastic.src.main.fragment.NewsPeed.models.FindFriendResponse;
public interface FindFriendActivityView {
void getFriendsInfo(FindFriendResponse.FriendResult result);
void sendNoInfo();
void validateFailure(S... | true |
e55463f8af15f7adbe87687a0ba26cc409232770 | Java | ffbit/jax-rs-2.0-playground | /1-jackson-2.0/src/main/java/com/ffbit/jaxrs/hello/resources/HelloWorldResource.java | UTF-8 | 504 | 2.265625 | 2 | [] | no_license | package com.ffbit.jaxrs.hello.resources;
import com.ffbit.jaxrs.hello.dto.Greeting;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("hello")
public class HelloWorldResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String helloTe... | true |
5c3e0b85399c82a0e670d042969a51251afb6139 | Java | rwyant2/CucumberMaven | /src/main/java/pages/ResultsPage.java | UTF-8 | 122 | 1.664063 | 2 | [] | no_license | package pages;
public class ResultsPage extends BasePage {
public void goToHTML5Page() {
clickLink("Terrific");
}
}
| true |
ea639492ee15d9a01547fd80d94c0b0c45111c79 | Java | hujunhui678/hujunhui | /src/main/java/cn/atc/controller/LoginController.java | GB18030 | 2,576 | 2.203125 | 2 | [] | no_license | package cn.atc.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePassw... | true |
2a2760fcebc3a84ff18f92e0556b54f48755b9f0 | Java | Fliipzy/dat18c | /car-parking/server/src/main/java/car_parking/server/vehicles/ParkingLot.java | UTF-8 | 863 | 3.125 | 3 | [] | no_license | package car_parking.server.vehicles;
import java.util.ArrayList;
public class ParkingLot
{
public static final int MAX_SPACES = 10;
private int freeSpacesAmount = MAX_SPACES;
private ArrayList<Vehicle> vehicles = new ArrayList<Vehicle>();
public ParkingLot() {}
public int getFreeSpacesAmount()... | true |
5edecd12286dc481f6e25f116ceaea26da8c2c96 | Java | suppor1/booknote | /javaCore/src/main/java/com/core/clazzLoader/NetClassLoaderExtendsClassLoader.java | UTF-8 | 2,015 | 2.578125 | 3 | [] | no_license | package com.core.clazzLoader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.InputStream;
import java.net.URL;
/**
* Created by jiangkai
* Date 2018/5/12
*/
public class NetClassLoaderExtendsClassLoader extends ClassLoader {
private String classPath;
private String packageName = ... | true |
95f44003619602c6e1b0287482c3bed20dff3d2a | Java | priyodas12/MultiThreadingV3 | /src/io/javalab/ThreadCreation/FromRunnableInterface.java | UTF-8 | 403 | 3.09375 | 3 | [] | no_license | package io.javalab.ThreadCreation;
import java.util.stream.IntStream;
public class FromRunnableInterface {
public static void main(String[] args) {
IntStream.range(0,10).forEach(i->new Thread(new DemoThread()).start());
}
}
class DemoThread implements Runnable{
@Override
public void run() {
... | true |
34fbc646cc66bedf46cb407dc6c13544be233ec0 | Java | DaurenAbd/ulsanBusBot | /apk_decompiled/src/com/google/zxing/client/android/AndroidHttpClient.java | UTF-8 | 4,626 | 2.078125 | 2 | [] | no_license | package com.google.zxing.client.android;
import com.kakao.util.maps.helper.CommonProtocol;
import java.io.IOException;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
impor... | true |
d2d6ad816348373ef1fe0aebfdad41ea7b73486b | Java | lxiin/DesignMode | /src/chapter_21/simple/Component.java | UTF-8 | 104 | 1.914063 | 2 | [] | no_license | package chapter_21.simple;
public abstract class Component {
public void doSomething(){
}
}
| true |
c6222927b118fc912e267ff4c26449d37759c399 | Java | LiJinglin918/Leetcode | /LongestRepeatingCharacterReplacement.java | UTF-8 | 1,445 | 3.75 | 4 | [] | no_license | /*
Given a string that consists of only uppercase English letters,
you can replace any letter in the string with another letter at most k times.
Find the length of a longest substring containing all repeating letters you can get after performing the above operations.
Note:
Both the string's length and k will not exce... | true |
afe70d7abc25a7b01ef8492e14c87ec7d6dffa42 | Java | portenez/java8-examples | /functional-programming/src/test/java/io/github/portenez/examples/java8/functional/GroupingWithCollectors.java | UTF-8 | 3,044 | 3.21875 | 3 | [
"CC0-1.0"
] | permissive | package io.github.portenez.examples.java8.functional;
import org.junit.Test;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import st... | true |
68c8cf96305bb37fcce36cf37eb249743f6e6ab3 | Java | nurav/Matrix15 | /app/src/main/java/com/spit/matrix15/CategoriesActivity.java | UTF-8 | 17,063 | 1.617188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 Antonio Leiva
*
* 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 ag... | true |
6a50c8916f61be900f1e2dabf2f172b3eff75c81 | Java | Silverpop/engage-api-client | /src/main/java/com/silverpop/api/client/result/ListDCRulesetsForMailingResult.java | UTF-8 | 668 | 1.554688 | 2 | [
"Apache-2.0"
] | permissive | package com.silverpop.api.client.result;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import com.silverpop.api.client.ApiResult;
import com.silverpop.api.client.command.elements.RulesetElementType;
import com.silverpop.api.client.result.elements.GetListsList;
import com.silverpop.api.cli... | true |
079d18d4e559cc7c545165a193a34d70263d3e36 | Java | Frank-Tang17/CS308_Cellular_Automata_Simulator | /src/cellsociety/configuration/Configuration.java | UTF-8 | 13,184 | 2.453125 | 2 | [
"MIT"
] | permissive | package cellsociety.configuration;
import cellsociety.view.DisplayError;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfiguratio... | true |
b5c379af63b41edcea8530f035283d7169db8fc0 | Java | baiooy/ArtSchool | /src/com/wxsafe/ccy/dao/DataSourseFactory.java | UTF-8 | 936 | 2.15625 | 2 | [] | no_license | package com.wxsafe.ccy.dao;
import org.apache.commons.dbcp.BasicDataSource;
import com.wxsafe.ccy.config.DataBaseConfig;
public class DataSourseFactory {
// private final static String DRIVER_NAME = "com.mysql.jdbc.Driver";
// private final static String URL = "jdbc:mysql://localhost:3306/art";
// private f... | true |
2b732c5660333ab4463765458eb3a53c1c362b39 | Java | vivek-shukla/ibm-fsd-000GGU | /java/22_08_2019_FSD/src/comm/FileIOstream/EncryptionMain.java | UTF-8 | 682 | 2.90625 | 3 | [] | no_license | package comm.FileIOstream;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class EncryptionMain {
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO Auto-generated method stub
String source,dest,eKey;
System.out.println("Source file na... | true |
95b1d6d349672800fecb8709b70f659b198079c1 | Java | singh96aman/Cracking-The-Coding-Interview-Solutions | /codechef/rect.java | UTF-8 | 689 | 2.953125 | 3 | [] | no_license | import java.util.*;
import java.io.*;
class rect{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n =sc.nextInt();
for(int i=0; i<n; i++)
{
int a = sc.nextInt();
int b =sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
if((Math.p... | true |
75f0bf87ddce16b78c94b6b8e1a9a21a931fa964 | Java | atulnitrr/prdouct-spring-data | /src/main/java/com/atul/spring/data/productdata/entity/Appointment.java | UTF-8 | 2,287 | 2.3125 | 2 | [] | no_license | package com.atul.spring.data.productdata.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Many... | true |
431ae3a306b1d28f3fd0f1f4607c03418509e70c | Java | angelfly12138/Java-Programs | /LetterSize.java | UTF-8 | 286 | 3.03125 | 3 | [] | no_license | public class LetterSize
{
public static void main(String[] args)
{
double a = 8.5;
double b = 11;
a = 8.5*25.4;
b = 11*25.4;
System.out.println("The dimensions for a letter size sheet of paper is " + a + "x" + b );
}
} | true |
6431a41632498cbce1eb62e86858b708442150c0 | Java | nzahara1/MAD_Assigments | /Homework03/app/src/main/java/com/example/inclass4/HeavyWork.java | UTF-8 | 621 | 3.234375 | 3 | [] | no_license | package com.example.inclass4;
import java.util.ArrayList;
import java.util.Random;
public class HeavyWork {
static final int COUNT = 900000;
static ArrayList<Double> getArrayNumbers(int n) {
ArrayList<Double> returnArray = new ArrayList<>();
for (int i = 0; i < n; i++) {
returnAr... | true |
e21f8fea9c015d15e2c52e86b1b1b8d89557e878 | Java | larrieking/codershiftsms | /src/main/java/com/codershift/util/SendMessage.java | UTF-8 | 3,090 | 2.59375 | 3 | [] | 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 com.codershift.util;
import com.messagebird.MessageBirdClient;
import com.messagebird.MessageBirdService;
import com.messagebi... | true |
eae706dd91e0f5e7fb0dcfd18c7ce17f493e8af3 | Java | zevy613/ColorTrapgame | /ColorTrap.java | UTF-8 | 8,422 | 2.6875 | 3 | [] | no_license | import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.... | true |
8eee74bfbd87c13efeffc5a497210c6690f440a4 | Java | AleDaVeiga/bakery-budget | /src/main/java/com/nexxera/bakerybudget/service/billtasks/ChangeBillPay.java | UTF-8 | 1,986 | 2.40625 | 2 | [] | no_license | package com.nexxera.bakerybudget.service.billtasks;
import java.math.BigDecimal;
import java.util.Optional;
import com.nexxera.bakerybudget.model.BillPay;
import com.nexxera.bakerybudget.model.Business;
import com.nexxera.bakerybudget.service.BillPayService;
import com.nexxera.bakerybudget.service.BusinessService;
p... | true |
ffe7e8eef7f0c2ddfdb5ad68fb2363230541bf8f | Java | gatosempai/SampleApp | /app/src/main/java/mx/develop/orp/sampleapp/domain/MainInteractorImpl.java | UTF-8 | 1,201 | 2.171875 | 2 | [] | no_license | package mx.develop.orp.sampleapp.domain;
import java.util.List;
import mx.develop.orp.sampleapp.data.repository.MainRepository;
import mx.develop.orp.sampleapp.data.repository.MainRepositoryImpl;
import mx.develop.orp.sampleapp.data.rest.model.InfiniteFeedInfo;
import rx.Observable;
import rx.functions.Func1;
/**
*... | true |
e7ef7f99240917df6dd52c7d1eb62aecfa44bdef | Java | DmitriyPershukov/QuizBot | /Utility.java | UTF-8 | 1,539 | 3.328125 | 3 | [] | no_license | package com.company;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class Utility {
public static boolean isNumeric(String str) {
try {
double y = Integer.parseInt(str);
} catch (Num... | true |
8d15a8ce8d6c7467e8e2dde949f1aea8740f5e49 | Java | jayantkeswani/PAXOS_Distributed | /Coordinator/ClientOperations/CohortInterface.java | UTF-8 | 959 | 2.09375 | 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 ClientOperations;
import java.rmi.RemoteException;
import java.util.HashMap;
/**
*
* @author jayantkeswani
*/... | true |