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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cd8ac36c4389a1a23aafbe43945b31b168270826 | Java | BeyondSkyCoder/BeyondCoder | /leetcode/java/AlgoTwoPointers/ShortestWordDistanceI_II_III_2P.java | UTF-8 | 4,447 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | package AlgoTwoPointers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ShortestWordDistanceI_II_III_2P {
/*
* III
* This is a follow up of Shortest Word Distance. The only difference is now
* word1 could be the same as word2.
*/
// ... | true |
e8c764281833ff51ab40b2e307fcf33ef88bc5be | Java | divyesh27/temp | /JavaPractice/src/MaxHeapArrayCanReturnTopLargestElement.java | UTF-8 | 1,044 | 3.703125 | 4 | [] | no_license | public class MaxHeapArrayCanReturnTopLargestElement {
private static MaxHeapArrayCanReturnTopLargestElement maxHeap;
private int[] heap;
private int capacity;
private int position;
public MaxHeapArrayCanReturnTopLargestElement(int cap) {
position = 1;
capacity = cap;
heap = new int[capacity];
}
public... | true |
94f20b6265ec2c104c55309e31999d6a05e96b4f | Java | BretbacherSchoolProjects/GaugeCollection | /src/Main.java | UTF-8 | 3,256 | 2.71875 | 3 | [] | no_license | import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.image.Image;
import javafx.scene.... | true |
7b6b50a08d578a69e30a5dbbfdfc981c62098579 | Java | Brijmohan-13/OJT-Java----All-Core-Java | /src/June08_09_AccessModifier_Exception/ExceptionDemo.java | UTF-8 | 733 | 3.4375 | 3 | [] | no_license | package June08_09_AccessModifier_Exception;
public class ExceptionDemo {
public static void main(String[] args) {
try
{
System.out.println("Hello");
System.out.println(10/0);
System.out.println("Hiii"); //it will not get executed since above line generate exception
}
catch(Exception e)
{
System.ou... | true |
ef94c3f86a2caa0e639f1a6b65b4b297627d3c5a | Java | awokezhou/DrivBehaviorApp | /app/src/main/java/com/example/awoke/drivbehaviorapp/MapPattern.java | UTF-8 | 14,108 | 1.648438 | 2 | [] | no_license | package com.example.awoke.drivbehaviorapp;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventL... | true |
806d87978bf13e46e33a7c1b8f598ab75ba6b407 | Java | im8s/silk-v1 | /silktrader-pay/src/main/java/com/spark/bitrade/service/impl/ISilkTraderPayServiceImpl.java | UTF-8 | 3,258 | 2.046875 | 2 | [] | no_license | package com.spark.bitrade.service.impl;
import com.spark.bitrade.dto.SilkTraderContractDTO;
import com.spark.bitrade.entity.MemberTransaction;
import com.spark.bitrade.entity.SilkTraderTransaction;
import com.spark.bitrade.mapper.dao.SilkTraderPayMapper;
import com.spark.bitrade.service.ISilkTraderPayService;
import o... | true |
74efa81f17e844c34c3f377bf494cd3e4fe42c85 | Java | Youn-Young-Sun/code | /0827_보충/src/정올1205_조커.java | UTF-8 | 1,000 | 3.296875 | 3 | [] | no_license |
import java.util.Arrays;
import java.util.Scanner;
public class 정올1205_조커 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] cnt = new int[1000001]; //백만 숫자가 들어올수도있으니깐
int[] a = new int[N];
for (int i = 0; i < N; i++) {
cnt[sc.nextInt()]++... | true |
9fd9c0e7a0ccc46555469eaafcb2933901bb1b28 | Java | iryna-markovich/itacademy | /lesson13/src/main/java/by/itacademy/lesson13/CustomerHandler.java | UTF-8 | 1,870 | 2.59375 | 3 | [] | no_license | package by.itacademy.lesson13;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CustomerHandler extends DefaultHandler {
private Map<Flags, Bo... | true |
8f15915a8589d1e08972e393989fc6b634a19191 | Java | SoundNandu/teamproject-tensors | /Cmpe202-Starbucks/src/main/java/com/cmpe202/pojo/ordertest.java | UTF-8 | 1,221 | 2.125 | 2 | [] | no_license | package com.cmpe202.pojo;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
... | true |
2c44d11690e31b6a2117ebfa14c554e6a10c4744 | Java | mlyahmed/mlyauth | /idp-backend/src/main/java/com/hohou/federation/idp/authentication/AuthInfo.java | UTF-8 | 4,239 | 2.0625 | 2 | [] | no_license | package com.hohou.federation.idp.authentication;
import com.hohou.federation.idp.application.Application;
import com.hohou.federation.idp.constants.AuthInfoStatus;
import com.hohou.federation.idp.exception.IDPException;
import com.hohou.federation.idp.person.model.Person;
import com.hohou.federation.idp.sensitive.Encr... | true |
90826358265c7a2713e7d03c6cad9cddf76e0ea4 | Java | mohkhe/classification | /Classification/src/sort/SortReducer.java | UTF-8 | 7,165 | 2.78125 | 3 | [] | no_license | package sort;
import java.io.IOException;
import java.util.HashSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
/**
* Reducer class for the dictionary MixIDText class. This is... | true |
aa09ded60a05ebd6a3c9ebe54d8966c5ea75573b | Java | hw233/Server-java | /src/trunk/mywar-game-logic/src/main/java/com/fantingame/game/mywar/logic/hero/model/SystemHeroSkillConfig.java | UTF-8 | 875 | 2.15625 | 2 | [] | no_license | package com.fantingame.game.mywar.logic.hero.model;
/**
* 团队技能配置表
*
* @author yezp
*/
public class SystemHeroSkillConfig {
private int systemHeroSkillId;
private int level;
private int vipLevel;
private int money;
private int gold;
public int getSystemHeroSkillId() {
return systemHeroSkillId;
}
publi... | true |
0f5276fc21e8ecc8c985576651f39b029d2b9186 | Java | ErikKarlkvist/GymStat | /GymStat/app/src/main/java/com/gymapp/erikkarlkvist/gymstat/AddToSetFragment.java | UTF-8 | 4,890 | 2.171875 | 2 | [] | no_license | package com.gymapp.erikkarlkvist.gymstat;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.app.Fragment;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import ... | true |
82478e0303f81be2f598a21782fb571a2d3bb00b | Java | mboudraa/Achilles | /achilles-thrift/src/test/java/info/archinnov/achilles/test/integration/tests/InitializeIT.java | UTF-8 | 2,739 | 2.28125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package info.archinnov.achilles.test.integration.tests;
import static org.fest.assertions.api.Assertions.assertThat;
import info.archinnov.achilles.entity.manager.ThriftEntityManager;
import info.archinnov.achilles.junit.AchillesTestResource.Steps;
import info.archinnov.achilles.junit.AchillesInternalThriftResource;
i... | true |
f717ffe94777d0c42e306c84ed7786bc72fab22b | Java | mkurfeyiz/Mobile-Crossword-Game | /main/java/com/mkurfeyiz/kelimeoyunu/thirdlevelactivities/ThirdLevelActivity.java | UTF-8 | 12,332 | 2.15625 | 2 | [] | no_license | package com.mkurfeyiz.kelimeoyunu.thirdlevelactivities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.view.MenuIn... | true |
3977eed61e2354a67a1f9185d4d1a94381d1cd89 | Java | AndreaNim/Student-Billying-System | /src/main/java/com/studentBilling/api/services/StudentServiceImpl.java | UTF-8 | 1,050 | 2.390625 | 2 | [] | no_license | package com.studentBilling.api.services;
import com.studentBilling.api.models.Student;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import java.util.List;
import java.util.regex.Pattern;
public class StudentServiceImpl extends StudentService {
@Override
public L... | true |
7c0c73e28d7a8719ffda04ab63cb26dd9ac2bd08 | Java | mohit88/better-expression-evaluator | /test/mohitsha/evaluator/ExpressionTest.java | UTF-8 | 1,730 | 3.125 | 3 | [] | no_license | package mohitsha.evaluator;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
public class ExpressionTest {
@Test
public void testEvaluateExpressionOfAdditionOperator() throws Exception {
Expression expression = new Expression(new Expression(2),new Expression(3),new Addition(... | true |
697ec4960287367d9e35e6018293d09309db3aec | Java | GrayFlash/competitive_coding_java | /CodeforcesContest/Div4_1st_Contest/class2.java | UTF-8 | 1,587 | 3.15625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class class2 {
public static void main(String args[] ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Scanner sc = new Scanner(System.in);
// Write your code here
int t = Integer.parse... | true |
6279428ef98a82611c60a58d77d06597327d4d25 | Java | abacoresearchgroup/xmits | /src/tuts/tools/RulesTools.java | UTF-8 | 1,726 | 2.921875 | 3 | [] | no_license | package tuts.tools;
import global.structure.Guard;
import global.structure.TransitionSystem;
import java.util.ArrayList;
import java.util.List;
import tuts.logics.Lane;
public class RulesTools {
//Attributes
private GuardTools guardTools;
//Constructor
public RulesTools () {
guardTools = new GuardTools();
... | true |
88ecf1c623da1d0289a2ed7bb67513c0daf32b80 | Java | name-aniket/LoadBalance | /elasticloadbalancer/WindowMachineImage.java | UTF-8 | 1,626 | 2.765625 | 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 elasticloadbalancer;
/**
*
* @author aniket
*/
public class WindowMachineImage extends MachineImage {
/*
* Initil... | true |
cef2f3eb760ba6974e1d3006430894c7839c20a1 | Java | Susie-Hu/javaProject | /RentCar/src/com/imooc/Main.java | UTF-8 | 2,587 | 3.109375 | 3 | [] | no_license | package com.imooc;
import java.util.Scanner;
import com.imooc.Coach;
public class Main {
public static void main(String[] args) {
// write your code here
String name;
double price;
int numOfPeople;
double load;
Car[] cars = {new Coach(12,"人车",12.3),new Truck(12.5,"货车",123.... | true |
2f7872be6c341327f54ccf847c34675d2ecd5590 | Java | jjiey/interview | /src/interview/leetcode/medium/Solution142.java | UTF-8 | 2,274 | 3.90625 | 4 | [] | no_license | package interview.leetcode.medium;
import interview.leetcode.common.ListNode;
/**
* Linked List Cycle II
* 环形链表 II
* 求入环点
*/
public class Solution142 {
public static void main(String[] args) {
Solution142 lc = new Solution142();
ListNode head = lc.createListNode();
ListNode res = lc.d... | true |
a98c28c2fac8f91125c7fa9d373dd410993131bd | Java | yihu0817/AndroidThreeClass | /AndroidThreeClassDemo/src/com/scxh/android/ui/ViewPagerPagerAdapterAct.java | UTF-8 | 3,440 | 2.40625 | 2 | [] | no_license | package com.scxh.android.ui;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.view.Layo... | true |
33610dbd8b877f4a4756ed8cae5639b3fcb7ede7 | Java | xzrlovedy/JavaProgram | /bank/src/com/service/AccountService.java | GB18030 | 596 | 2.390625 | 2 | [] | no_license | package com.service;
import java.io.IOException;
import com.pojo.Account;
public interface AccountService {
/**
* ˺벻ƥ״̬
*/
int ACCOUNT_PASSWORD_NOT_MATCH = -1;
/**
*
*/
int ACCOUNT_BALANCE_NOT_ENOUGH = -2;
/**
* ˻ƥ
*/
int ACCOUNT_NAME_NOT_MATCH = -3;
/**
* תʧ
*/
int ERROR=-4;
/**
* ת˳ɹ
... | true |
280ceec5a1ad05d3d31767e70a76953f7eb65ea9 | Java | Stevelicious/MyGame | /src/com/stevenhu/Main.java | UTF-8 | 465 | 2.84375 | 3 | [] | no_license | package com.stevenhu;
import java.io.FileNotFoundException;
public class Main {
public static void main(String[] args) throws InterruptedException, FileNotFoundException {
BoardLogic board = new BoardLogic();
board.createBoard(98, 27);
while (true) {
board.createGame(BoardLogic.Difficulty.EASY)... | true |
c0a329f967cdd23e3da991c11d5309bef88d2482 | Java | BuenoMoraes/BragancaPaulistaHelp | /Usuario.java | UTF-8 | 1,025 | 2.453125 | 2 | [] | no_license | package br.ifsp.model;
import java.util.ArrayList;
import java.util.List;
public class Usuario {
private String nome;
private String login;
private int senha;
private List<Problema> problemas;
public Usuario() {
}
public Usuario(String nome, String login, int senha) {
this.nome = nome;
... | true |
9b38a128eee7d67cfe9af58cc45aedc69fc6ca39 | Java | crazyzhc98/SearchInfoOfTwitter | /SearchInfoOfTwitter/src/smallWorld/ReadFileThread.java | UTF-8 | 551 | 2.90625 | 3 | [] | no_license | package smallWorld;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ConcurrentLinkedQueue;
public class ReadFileThread extends Thread{
private ConcurrentLinkedQueue<In> inList;
private ArrayBlockingQueue<String> outList;
ReadFileThread(ConcurrentLinkedQueue<In> inList,ArrayBlockingQ... | true |
5771e75a14d6808182f184da911f3c2ae0674a13 | Java | Folgerjun/lay.putop.top | /src/main/java/top/putop/mi/db/dao/MiMessageMapper.java | UTF-8 | 1,862 | 1.875 | 2 | [
"MIT"
] | permissive | package top.putop.mi.db.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.putop.mi.db.model.MiMessage;
@Mapper
public interface MiMessageMapper {
/**
* This method was generated by MyBatis Generator. This method corresponds to
* the ... | true |
bb564d988b71fe9957c97c56bfd46ba4b3fde7c7 | Java | sharekim93/JAVA | /Day003/src/Ex008.java | UTF-8 | 501 | 3.859375 | 4 | [] | no_license |
public class Ex008 {
public static void main(String[] args) {
//[GIGO] 변수, 입력, 처리, 출력
//변수
int a;
int b;
//입력
a=10;
b=3;
//처리 + 출력
System.out.println(a + "+" + b + "=" + (a+b));
System.out.println(a + "-" + b + "=" + (a-b));
System.out.println(a + "*" + b + "=" + (a*b));
System.out.println(a ... | true |
4691da84d6ca4df653b39417fd7dfcd6725eb587 | Java | misezhiyan/TRANSLATE_BAIDU | /src/util/HttpUtil.java | UTF-8 | 9,486 | 2.515625 | 3 | [] | no_license | package util;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import ja... | true |
d8d86761812746da0e6d8fd24522adea7c514ad4 | Java | AsWinds/codi-fund | /codi-bus-core/src/main/java/com/codi/bus/core/resultModel/ShareTypeListResult.java | UTF-8 | 445 | 1.945313 | 2 | [] | no_license | package com.codi.bus.core.resultModel;
import java.util.List;
import com.codi.bus.core.service.model.ShareTypeModel;
public class ShareTypeListResult extends BaseResult {
private static final long serialVersionUID = 1L;
private List<ShareTypeModel> shareTypes;
public void setShareTypes(List<ShareTypeModel> sha... | true |
b8e9d2b37270e7152ca92fd09f5bc7e1c12394d5 | Java | NotThe1/Virtualmachine | /VirtualMachine/src/device/TestDeviceController.java | UTF-8 | 8,906 | 2.4375 | 2 | [] | no_license | package device;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.border.CompoundBorder;
import javax.swing.border.LineBorder;
import javax.swing.text.MaskFormatter;
import java.awt.Color;
import javax.swing.JBut... | true |
b5d62fc9aef6661e01759d9e820740b3b11dce5b | Java | vijaygarry/neasaa-utils | /source/components/utils/src/main/java/com/neasaa/excel/Excel2csv.java | UTF-8 | 2,569 | 2.875 | 3 | [] | no_license | package com.neasaa.excel;
import java.util.List;
import org.apache.poi.ss.usermodel.Row;
import com.neasaa.util.FileUtils;
/**
* @author Vijay Garothaya
* @version 1.0 Jan 30, 2014
*/
public class Excel2csv {
public static final String DEFAULT_DELIMITER = ",";
private static final String EMPTY_STRING = "";... | true |
f400cd6ddc3878c894f3bf8eada7b05a0c4addd3 | Java | Zeryther/KevinRain | /src/main/java/com/zeryther/kevinrain/KevinRain.java | UTF-8 | 650 | 2.28125 | 2 | [] | no_license | package com.zeryther.kevinrain;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.weather.WeatherChangeEvent;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Created by zeryt on 18.02.2017.
*/
public class KevinRain ext... | true |
69b96ffad68d5c9be17f3f4634eb9f6e24551e45 | Java | dommoni/dommoni-archive-2004 | /JSFSpike/src/jsfspike/JSFConditions.java | UTF-8 | 148 | 1.570313 | 2 | [] | no_license | package jsfspike;
public class JSFConditions {
public static final String SUCCESS = "success";
public static final String FAILURE = "failure";
}
| true |
e55e0adabcd70300cede8ad269fe86605377c24b | Java | MarkBoon/PlugAndGo | /source/tesuji/games/go/monte_carlo/EyeMoveFilter.java | UTF-8 | 1,724 | 2.46875 | 2 | [] | no_license | package tesuji.games.go.monte_carlo;
import tesuji.games.general.ColorConstant;
import static tesuji.games.go.util.GoArray.*;
public class EyeMoveFilter
implements MoveFilter
{
private byte[] _blackNeighbours;
private byte[] _whiteNeighbours;
private byte[] _blackDiagonalNeighbours;
private byte[] _whiteDiagonal... | true |
fbfeb478763367e89449516b5cd73c91adb960d5 | Java | LorenzoCardinali/IDS2021 | /Java/Iterazione 2/java1.8/Amuber/src/main/java/it/unicam/cs/ids2021/project/interaction/Interactor.java | UTF-8 | 5,657 | 2.234375 | 2 | [] | no_license | package it.unicam.cs.ids2021.project.interaction;
import it.unicam.cs.ids2021.project.enums.Categoria;
import it.unicam.cs.ids2021.project.service.DBManager;
import it.unicam.cs.ids2021.project.storage.Magazzino;
import it.unicam.cs.ids2021.project.storage.Prodotto;
import it.unicam.cs.ids2021.project.users.Commercian... | true |
4b1d6d89beb56e3d312d7042f9738f0e30f6095c | Java | sergey-korchagin/ecoCheck | /code/src/com/example/ecocheck/About.java | UTF-8 | 1,816 | 2.234375 | 2 | [] | no_license | package com.example.ecocheck;
import android.net.Uri;
import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
public class About extends ... | true |
868c512ef95686478aaf794116d8dbb0c10eaad7 | Java | maismail/hops-old | /hop-leader-election/src/main/java/se/sics/hop/leaderElection/node/ActiveNodePBImpl.java | UTF-8 | 5,005 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Apache Software Foundation.
*
* 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 ... | true |
121580027856e1c83940ae37395ae338f6436303 | Java | commercetools/commercetools-sdk-java-v2 | /commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/category/CategoryUpdateActionBuilder.java | UTF-8 | 5,201 | 1.5 | 2 | [
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] | permissive |
package com.commercetools.api.models.category;
import java.util.*;
import io.vrap.rmf.base.client.utils.Generated;
/**
* CategoryUpdateActionBuilder
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CategoryUpdateAction... | true |
d882fadeb75aa9d5cdb922e6e8f94bf8bb031d52 | Java | urreek/3dEngine | /src/com/urim/engine/entities/Block.java | UTF-8 | 143 | 1.546875 | 2 | [] | no_license | package com.urim.engine.entities;
/**
* Created by urimkrasniqi on 2017-02-15.
*/
public class Block {
public boolean solid = false;
}
| true |
f1aa1b361a7f2abfabf6f73728a5577304c6571b | Java | vondacho/myoffice-customer | /myoffice-customer-application/src/main/java/edu/noia/myoffice/customer/domain/CustomerDomainComponentConfiguration.java | UTF-8 | 1,218 | 2.03125 | 2 | [] | no_license | package edu.noia.myoffice.customer.domain;
import edu.noia.myoffice.common.domain.event.EventPublisher;
import edu.noia.myoffice.customer.domain.repository.CustomerRepository;
import edu.noia.myoffice.customer.domain.repository.FolderRepository;
import edu.noia.myoffice.customer.domain.service.*;
import org.springfram... | true |
208a32e9e256f7577a14a588cce87e808d6ab0df | Java | zhongxingyu/Seer | /Diff-Raw-Data/1/1_b41dad07a61723f794e73d86e1ea1be10577972d/BranchesAdapter/1_b41dad07a61723f794e73d86e1ea1be10577972d_BranchesAdapter_t.java | UTF-8 | 7,874 | 2.65625 | 3 | [] | no_license | package com.jason.ocbcapp;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Scanner;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android... | true |
f971a50c819d2e69796ad119cfbdcaf107db20f8 | Java | Goblin01/Design-Patterns | /Strategy/FlyWithWings.java | UTF-8 | 206 | 3.203125 | 3 | [] | no_license |
/**
* Flying behavior implementation
* for ducks that Do fly with wings.
*/
public class FlyWithWings implements FlyBehavior {
public void fly() {
System.out.println("I'm flying!!");
}
} | true |
8d3acd8a1724219544382cbb0bb7279320abca11 | Java | Qabrix/FootBallManager | /src/main/java/GUIpack/CEO/AddPlayerButton.java | UTF-8 | 1,967 | 2.59375 | 3 | [] | no_license | package GUIpack.CEO;
import GUIpack.GUI;
import com.hibernate.maven.DBObjects.Match;
import com.hibernate.maven.DBObjects.Player;
import org.hibernate.query.Query;
import org.hibernate.transform.AliasToEntityMapResultTransformer;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListe... | true |
181608bfe3fdd2e0b4a5a196713df829a5a246cf | Java | Shravyareddy2001/StackRoute | /WEEK 5 (BST)/DAY 4/HashMap/SetsExample.java | UTF-8 | 312 | 2.765625 | 3 | [] | no_license | import java.util.HashSet;
public class SetsExample {
public static void main(String[] args) {
HashSet<Integer> set = new HashSet<>();
set.add(10);
set.add(11);
set.add(13);
set.add(10);
// check -> hashvalue hashCode
System.out.println(set);
}
}
| true |
8b8b75ff9b7dc8bc1a88374c6bb1d6cf8d0c1c5f | Java | ybyao07/designPattern | /designPattern/src/main/java/com/learn/composite/CompisiteClient.java | UTF-8 | 593 | 2.46875 | 2 | [] | no_license | package com.learn.composite;
public class CompisiteClient {
public static void main(String[] args) {
AbstractFile folder1, folder2, folder3, txFile1, txFile2, imageFile1;
folder1 = new FolderFile("Sunny的资料");
folder2 = new FolderFile("文本文件夹");
folder3 = new FolderFile("图片文件夹");
txFile1 = new TextFile("文... | true |
4cd4d4efb4b710c0d5dd8d8d2254bb9be8f1cbf2 | Java | OShatsilova/training-selenium-b24 | /MyFirstProject/src/test/java/ru/stqa/training/selenium/litecart/tests/ProductsTests.java | UTF-8 | 13,613 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package ru.stqa.training.selenium.litecart.tests;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import ru.stqa.training.selenium.TestBase;
import ru.stqa.training.selen... | true |
952b96a25cd35f5de9f62109ece6ba0505e24107 | Java | edwint229/java_poc | /online-vote/src/main/java/org/edwin/vote/mvc/intercept/AuthenticationInterceptor.java | UTF-8 | 1,890 | 2.171875 | 2 | [] | no_license | package org.edwin.vote.mvc.intercept;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.edwin.vote.mvc.controller.LoginController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.securi... | true |
387b12118318632507c52a496244fb07b15644ed | Java | jocelyn2002/NJUAI_CodingHW | /启发式搜索与演化算法/HESA_assignment1/src/core/termination/Termination.java | UTF-8 | 2,496 | 2.859375 | 3 | [
"GPL-3.0-or-later",
"MIT"
] | permissive | package core.termination;
import java.util.ArrayList;
import core.vgdl.VGDLFactory;
import core.content.TerminationContent;
import core.game.Game;
/**
* Created with IntelliJ IDEA.
* User: Diego
* Date: 22/10/13
* Time: 18:47
* This is a Java port from Tom Schaul's VGDL - https://github.com/schaul/py-vgdl
*/
p... | true |
1c436e70408f8c9aee87d3528bdbd8f54756d86f | Java | maximdumont/torrent4j | /src/main/java/com/torrent4j/model/peer/TorrentPeer.java | UTF-8 | 5,903 | 2.5 | 2 | [] | no_license | package com.torrent4j.model.peer;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import com.torrent4j.model.Torrent;
import com.torrent4j.model.TorrentPiece;
import com.torrent4j.model.TorrentPieceBlock;
import com.torrent4j.net.TorrentProtocolPeer;
/**
* Rep... | true |
cb3ae5eefc999a89d33a9fe41142ae629c2a8336 | Java | komincheol/bigdata_multicampus | /JAVA.dev/src/oop/exam4/Bird.java | UTF-8 | 113 | 2.265625 | 2 | [] | no_license | package oop.exam4;
public class Bird extends Animal{
public String toString(){
return "새입니다.";
}
}
| true |
e79159bcb530337162fa6e9dbf1fbd338e7fce4f | Java | giwrgosftw/MilestoneGame-Project | /src/milestonegameprojectv3/Water.java | UTF-8 | 287 | 2.28125 | 2 | [] | no_license | package milestonegameprojectv3;
import city.cs.engine.*;
public class Water extends StaticBody {
/**
* * Water.*
*/
public Water(World world) {
super(world, new BoxShape(6f, 1f));
addImage(new BodyImage("data/Water.gif", 10f));
}
}
| true |
bfacd3ec1e2a1bf22805c318cf0e31f4bda97dd3 | Java | larsrottmann/event-o-rama | /appengine-server/src/com/appspot/eventorama/server/util/UserHelper.java | UTF-8 | 1,702 | 2.296875 | 2 | [] | no_license | package com.appspot.eventorama.server.util;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import com.appspot.eventorama.shared.model.User;
import com.google.appengine.api.datastore.KeyFactory;
public class UserHelper {
public stati... | true |
41d2dc8f7687dac23b44f8e02afa5044e5d985f9 | Java | rafael-zanella/savetheday | /src/main/java/com/zanella/savetheday/config/AmazonS3ConfigTest.java | UTF-8 | 1,549 | 1.992188 | 2 | [] | no_license | package com.zanella.savetheday.config;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.AnonymousAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;
import com.amazonaws.services.s3.AmazonS3;
... | true |
539ddd6be6d9aea41c923badb205314fde1ef3fa | Java | gaopeng527/zhonghui-manager | /zhonghui-manager-web/src/main/java/com/zhonghui/controller/PictureController.java | UTF-8 | 1,037 | 2.28125 | 2 | [] | no_license | package com.zhonghui.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
* 上传图片处理
* @author DELL
*
*/
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | true |
fb04d3f1f000a14caba07727ef85f9acd50a99c8 | Java | yamgxu/listener | /src/win/yangxu/listener/Main.java | UTF-8 | 2,799 | 2.4375 | 2 | [] | no_license | package win.yangxu.listener;
public class Main {
public static void main(String[] args) throws Exception {
new BaiDuSTT().getToken();
Recorder recorder=new RecorderImpl();
recorder.startListening(new BasicsRecordHandle());
}
//
//
// ByteArrayOutputStream baost = new ByteArrayOutputStream... | true |
8e10ee1efe8cc6739a0f003aa64fedf3a5f6bb36 | Java | RicardoBravoA/code-katas-java | /src/test/java/acme/search/prime/RecursivePrimeTest.java | UTF-8 | 237 | 1.65625 | 2 | [] | no_license | package acme.search.prime;
import org.junit.Before;
import acme.search.prime.RecursivePrime;
public class RecursivePrimeTest extends AbstractPrimeTest {
@Override
@Before
public void setup() {
prime = new RecursivePrime();
}
}
| true |
099162911d0eff491d6461577039577d0abe25bd | Java | ron1/nuxeo-features | /nuxeo-platform-virtualnavigation/nuxeo-platform-virtualnavigation-web/src/main/java/org/nuxeo/ecm/virtualnavigation/action/NavTreeDescriptor.java | UTF-8 | 2,577 | 1.5625 | 2 | [] | no_license | /*
* (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www... | true |
e380995b22c5b19e21554c8ede79b3ddd79d3d77 | Java | testteamestimating/KLTN_2 | /estimating-v3/src/main/java/com/estimating/controller/SignupController.java | UTF-8 | 244 | 1.601563 | 2 | [] | no_license | package com.estimating.controller;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
@Controller
public class SignupController {
private static final Logger logger = Logger.getLogger(LoginController.class);
}
| true |
a68c668137d98118e81b6db9fffd42861a302e3f | Java | BDOSHNA/MathProject | /src/Circle.java | UTF-8 | 534 | 3.484375 | 3 | [] | no_license | /**
* Created by joeb6 on 5/28/2017.
*/
import java.util.Scanner;
public class Circle {
public static String CircleMath(){
Scanner scan = new Scanner(System.in);
System.out.println("Enter Radius of Circle");
double radius = scan.nextDouble();
if (radius < 0) {
return("E... | true |
83dadc2f69e3fb9612eb2f24fd62955d7f252731 | Java | farhad-aman/Mafia-Mid | /Server/src/model/network/ChatRoom.java | UTF-8 | 4,229 | 3.65625 | 4 | [] | no_license | package model.network;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import model.logic.*;
/**
* This class do most of the works with network like sending chat or reading chats from players
*
* @author Farhad Aman
* @version 1.0
*/
public class ChatRoom
{
/**
* the... | true |
f939b6782a8425f4d397e346fe9a7a479723058c | Java | christopherltaylor/SSRS-Client | /src/main/java/com/microsoft/schemas/sqlserver/reporting/_2010/_03/_01/reportserver/NoSchedule.java | UTF-8 | 1,147 | 1.585938 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.02.15 at 02:13:3... | true |
1020fdf98516170c4d5dead6112ab45ded8e99a0 | Java | Sangdk/AndroidT3h | /Doc/app/src/main/java/com/t3h/doc/MainActivity.java | UTF-8 | 6,519 | 2.5 | 2 | [] | no_license | package com.t3h.doc;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity implements StoryAdapter.ItemOnClickListener {
private R... | true |
19699f51e6fd66aad017726bc8ea05cd50bdc951 | Java | GOMYWAY-NETWORKS/codenvy | /plugins/plugin-hosted/codenvy-hosted-ext-factory/src/main/java/com/codenvy/ide/factory/client/welcome/OpenWelcomePageAction.java | UTF-8 | 1,353 | 1.953125 | 2 | [] | no_license | /*
* [2012] - [2016] Codenvy, S.A.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Codenvy S.A. and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Codenvy S.A.
* and its suppliers and may be covered... | true |
0236fa9bd4e27c57cc054cd138f5f6c137011d1a | Java | andrei282/BE-studenti | /components/src/main/java/ro/tacheandrei/disertatie/components/dto/MasteratDTO.java | UTF-8 | 371 | 1.804688 | 2 | [] | no_license | package ro.tacheandrei.disertatie.components.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class MasteratDTO extends BaseNomDTO{
private String abreviere;
private String co... | true |
d48473d44a95e5a482425f3511059e7804efe080 | Java | swbssd/warpt | /src/main/java/com/war/wechat/base/message/req/LinkReqMsg.java | UTF-8 | 948 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.war.wechat.base.message.req;
public final class LinkReqMsg extends BaseReqMsg {
private String title;
private String description;
private String url;
public LinkReqMsg(String title, String description, String url) {
super();
this.title = title;
this.description = d... | true |
069a27e4d700e0c294299f908fb1a3adb465980c | Java | sky1234567890sky/ShangLan_su | /LayUp/src/main/java/com/sport/sportproject/ui/WebViewActivity.java | UTF-8 | 13,710 | 1.617188 | 2 | [] | no_license | package com.sport.sportproject.ui;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.ann... | true |
5ed81174a397f3f87715288665a0b7eee9761f9a | Java | lxk1997/Protocol | /src/com/clxk1997/ProtocolFactory.java | UTF-8 | 987 | 2.25 | 2 | [] | no_license | package com.clxk1997;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;
import java.nio.charset.Charset;
/**
* @Description 编解码工厂
* @Author Clxk
* @Date ... | true |
defae716a03ab5a42fe2f6151dff6ad10fe8c48d | Java | DigitalGizmo/tomcat-centures-src | /java/edu/umass/ccbit/jsp/BasicNewssearchResultsPage.java | UTF-8 | 551 | 1.820313 | 2 | [] | no_license | package edu.umass.ccbit.jsp;
import edu.umass.ccbit.database.BasicNewssearchResults;
import java.sql.SQLException;
import edu.umass.ckc.util.CkcException;
import javax.servlet.http.HttpSession;
public abstract class BasicNewssearchResultsPage extends NewssearchResultsPage {
/**
* load search results
... | true |
c27bbe597f3400eb49d3340a9d2a787d3aa3dbb1 | Java | jangdoll/OneSNS | /app/src/main/java/com/example/onesns/CalendarDialog.java | UTF-8 | 3,960 | 2.5 | 2 | [] | no_license | package com.example.onesns;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import androidx.annotation.NonNull;
import com.googl... | true |
71397cb4cca7a9386e7d199ab4513f80fd1ab81d | Java | Henry1417/Nginx-Docker-Spring-Boot | /security/src/main/java/com/jmendoza/wallet/security/config/SecurityConfig.java | UTF-8 | 4,178 | 2.015625 | 2 | [] | no_license | package com.jmendoza.wallet.security.config;
import com.jmendoza.wallet.security.filter.SecurityRequestFilter;
import com.jmendoza.wallet.security.handler.AccessDeniedHandlerJwt;
import com.jmendoza.wallet.security.handler.AuthenticationEntryPointJwt;
import com.jmendoza.wallet.security.service.SecurityUserDetailsServ... | true |
3abfe7336808db11d9f02b2a64a616e54a276f30 | Java | prompto/prompto-java | /Core/src/main/java/prompto/value/IteratorValue.java | UTF-8 | 982 | 2.734375 | 3 | [] | no_license | package prompto.value;
import java.util.Iterator;
import prompto.intrinsic.PromptoSet;
import prompto.type.IType;
import prompto.type.IteratorType;
/* exposes a native IValue iterator as an IValue */
public class IteratorValue extends BaseValue implements Iterator<IValue> {
Iterator<IValue> source;
public Itera... | true |
89fa5b5b5a6b55fe53e261eedde429b549fca19d | Java | RainYang0925/AppiumXM | /src/main/java/com/xiaoM/ExecuteScript/ExecuteScript.java | UTF-8 | 1,579 | 2.421875 | 2 | [] | no_license | package com.xiaoM.ExecuteScript;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import org.openqa.selenium.JavascriptExecutor;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
public class ExecuteScript {
public AppiumDriver <MobileEle... | true |
7bd93e97cb1cdb886b698b15d02e3e04a4f5c279 | Java | muzeyen/TBD2018-LearningJava | /20Interface/src/pkg20ınterface/Personel.java | UTF-8 | 509 | 2.25 | 2 | [] | no_license | package pkg20ınterface;
public class Personel implements Erkek //interfaceleri implement ile tanımlıyoruz
{
@Override
public String isimBirlestir()
{
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
... | true |
e17ac5bc2a8131b21ccd74b69e54ac4ae59046fc | Java | bulanan/rxrepo | /rxrepo-orientdb/src/main/java/com/slimgears/rxrepo/orientdb/OrientDbAssignmentGenerator.java | UTF-8 | 2,522 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.slimgears.rxrepo.orientdb;
import com.slimgears.rxrepo.sql.DefaultSqlAssignmentGenerator;
import com.slimgears.rxrepo.sql.ReferenceResolver;
import com.slimgears.rxrepo.sql.SqlExpressionGenerator;
import com.slimgears.rxrepo.util.PropertyMetas;
import com.slimgears.rxrepo.util.PropertyResolver;
import com.... | true |
83cfff37e02976beafeac362d8fb8eb49de03b9e | Java | suveng/projectManager | /back/projectManager/src/main/java/cn/edu/hstc/dao/PatentMapper.java | UTF-8 | 548 | 1.992188 | 2 | [] | no_license | package cn.edu.hstc.dao;
import cn.edu.hstc.pojo.Patent;
import java.util.ArrayList;
public interface PatentMapper {
int deleteByPrimaryKey(Integer tentId);
int insert(Patent record);
int insertSelective(Patent record);
Patent selectByPrimaryKey(Integer tentId);
int updateByPrimaryKeySelectiv... | true |
9d0096732008df41818390185378097bbb344a12 | Java | tilois/integrity | /de.gebit.integrity.dsl/src/de/gebit/integrity/parameter/conversion/UnresolvableVariableHandling.java | UTF-8 | 1,182 | 2.1875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013 Rene Schneider, GEBIT Solutions GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this d... | true |
7fc40bcc2b88959c11ec1798245698225fcc6500 | Java | Kiritor/Spring-Boot-Study | /springboot-log4j/src/main/java/com/kiritor/controller/UserController.java | UTF-8 | 501 | 1.898438 | 2 | [] | no_license | package com.kiritor.controller;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserController {
private static final Log... | true |
e4d3c69a5e7a265aa9e20e5e1685c74ac58e74b7 | Java | HomeDevJava/Patrones | /PatronesDiseno/src/FactoryPattern/Shape.java | UTF-8 | 217 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | package FactoryPattern;
//paso 1.- crear la interface con los metodos a implementar
//paso2.- crear las clases Circle, Rectangle, Square que implementaran la interface
public interface Shape {
void draw();
}
| true |
e983e75d5099dff9cd86fdec243fc6d4bfc5660e | Java | designreuse/FarmCropRepo | /ese/util/src/main/java/com/sourcetrace/eses/util/crypto/ICryptoUtil.java | UTF-8 | 365 | 2.1875 | 2 | [] | no_license | package com.sourcetrace.eses.util.crypto;
public interface ICryptoUtil {
/**
* Encrypt.
* @param clearText the clear text
* @return the string
*/
public String encrypt(String clearText);
/**
* Decrypt.
* @param cipherText the cipher text
* @return the string
*/
... | true |
0085ea00a520695c39cf22b32c12978f8e0891db | Java | sen4ik/selenium-utils | /src/main/java/org/sen4ik/utils/selenium/utils/DriverUtil.java | UTF-8 | 11,842 | 2.5 | 2 | [] | no_license | package org.sen4ik.utils.selenium.utils;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.openqa.selenium.*;
import org.openqa.selenium.interactions.Actions;
import org.sen4ik.utils.selenium.base.SeleniumUtils;
import java.util.ArrayList;
import java.util.List... | true |
0195fd242000b5eea7356031fe02ba2e54274fe7 | Java | Anonymoushhh/fundtrade | /app/core/service/src/main/java/com/sdu/fund/core/repository/TradeOrderRepository.java | UTF-8 | 381 | 1.679688 | 2 | [] | no_license | package com.sdu.fund.core.repository;
import com.sdu.fund.core.model.trade.bo.TradeOrder;
/**
* @program: fundproduct
* @description:
* @author: anonymous
* @create: 2020/2/7 13:26
**/
public interface TradeOrderRepository extends Repository<TradeOrder,String> {
public TradeOrder lock(String orderId);
... | true |
769d0908879d936bfe9f71b33d325b73491b9cd9 | Java | sameersohi/allocationdispatcher | /src/main/java/services/CalculateFeesChargesServiceImpl.java | UTF-8 | 1,421 | 2.828125 | 3 | [] | no_license | package services;
import domain.AllocationRequest;
import domain.AllocationResponse;
import exceptions.AllocationProcessingException;
import java.math.BigDecimal;
/**
* Created by Sameer on 6/8/2017.
*/
public class CalculateFeesChargesServiceImpl implements CalculateFeesChargesService {
public A... | true |
309d59383b6f50973a928d6e87460df0eddb1d8a | Java | zhiming778/onepos | /app/src/main/java/com/example/onepos/model/TimeClock.java | UTF-8 | 1,908 | 2.34375 | 2 | [] | no_license | package com.example.onepos.model;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
@Entity(tableName = "table_time_clock"
,foreignKeys = @ForeignKey(entity = Staff.cl... | true |
71f6c3625c796181ee99d07ad9ed14e66821fccd | Java | himustofa/SalesManagement | /app/src/main/java/com/sm/demo/salesmanagement/users/UsersActivity.java | UTF-8 | 11,692 | 1.914063 | 2 | [] | no_license | package com.sm.demo.salesmanagement.users;
import android.app.AlertDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.design.widget.FloatingActionButton;
import androi... | true |
b1cfa8bf59a1100e4b770d95fa0ab7356e61e2d0 | Java | flapedriza/Sudoku | /src/sudoku/domain/Game.java | UTF-8 | 700 | 2.9375 | 3 | [] | no_license | package sudoku.domain;
/**
* Created with IntelliJ IDEA.
* Date: 29/10/15
* Time: 17:51
* To change this template use File | Settings | File Templates.
*/
public class Game {
int GameId;
int difficult; // 1 = fàcil, 2 = mitjà, 3 = difícil
public Game(int GameId, int difficult) {
this.Ga... | true |
ce74df727e3d83bdbd4bfc870c5317ce2de0b33a | Java | LucasNevesV/MovieDB | /src/main/java/com/moviedb/MovieDB/Models/TV.java | UTF-8 | 3,869 | 2.46875 | 2 | [] | no_license | package com.moviedb.MovieDB.Models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.util.List;
import java.util.Set;
@Entity
@Table(name = "tb_tv")
@JsonIgnoreProperties(ignoreUnknown = true)
public class TV {
@Id
//@GeneratedValue(strategy = Generation... | true |
021935c8501de289d6e2bb98c0301602865fa336 | Java | Quzzar/GrandExchange | /src/com/quzzar/ge/CommandGE.java | UTF-8 | 1,305 | 2.328125 | 2 | [] | no_license | package com.quzzar.ge;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandGE implements CommandExecutor {
@Override
public bool... | true |
d1f07d8f255b700eb0abf7f2ad4b28aa6d66d61b | Java | kbmanikanta/document-management-system | /rest/src/main/java/rs/ac/bg/fon/silab/controller/DocumentController.java | UTF-8 | 2,166 | 2.234375 | 2 | [] | no_license | package rs.ac.bg.fon.silab.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import rs.ac.bg.fon.silab.dto.document.DocumentDetailsDto;
import rs.ac.bg.... | true |
453ed06b3304d6b3fec2da6d32985dea9e9e9a22 | Java | vhctrungnq/mlmn | /MLMN-core/ejbModule/vn/com/vhc/sts/cni/converter/FunringConverter.java | UTF-8 | 3,254 | 2.328125 | 2 | [] | no_license | package vn.com.vhc.sts.cni.converter;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Hashtable;
import java.util.List;
import org.apache.log4j.Logger;
import vn.com.vh... | true |
9050fcba2cf745b13f0c64ba6cbd3a6931476d28 | Java | StKlug/RechnernetzeLabyrinth | /Labyrinth/src/main/java/competition/ReconfigurableClient.java | UTF-8 | 1,026 | 2.125 | 2 | [] | no_license | package competition;
import guiceconfigs.ReconfigurableClientConfig;
import java.util.concurrent.BlockingQueue;
import jaxb.MazeCom;
import ai.Evaluator;
import client.Client;
import com.google.inject.Guice;
import com.google.inject.Module;
public final class ReconfigurableClient
{
private Evalu... | true |
d75cf55b3fa3f9bbf16bcc77cae5da58e16ac65b | Java | alexiapissi/TP3 | /src/main/java/ar/edu/ort/tp3/MainActivity.java | UTF-8 | 6,424 | 2.125 | 2 | [] | no_license | package ar.edu.ort.tp3;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTabHost;
import andro... | true |
98be547acff58587c402766c2efe173e992bbef4 | Java | helloshinubi/navigation | /navigation/src/com/shinubi/navigation/category/action/CategoryAction.java | UTF-8 | 578 | 1.71875 | 2 | [] | no_license | package com.shinubi.navigation.category.action;
import org.springframework.stereotype.Controller;
import com.shinubi.navigation.base.action.BaseAction;
/**
*@ClassName:CategoryAction
*@Function: 网站类目管理.
*@Reason: CategoryAction.
*@Date: 2016-9-24 下午9:42:56
*@author ShiNubi
*@version
... | true |
55f806144538664bcf5a18b1cca104adb0bb7035 | Java | TimK-TL/MoviePoster | /app/src/main/java/com/touchlogic/udacity/popularmovies/MovieRecyclerViewAdapter.java | UTF-8 | 3,578 | 2.46875 | 2 | [] | no_license | package com.touchlogic.udacity.popularmovies;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import com.touchlogic.udacity.... | true |
cd20fa213361caf81a11382f1082b523629079e3 | Java | eminAhmadov/spring-boot-push-notification-service | /src/main/java/com/example/pushnotificationservice/services/PushNotificationServiceImpl.java | UTF-8 | 5,022 | 2.453125 | 2 | [] | no_license | package com.example.pushnotificationservice.services;
import com.example.pushnotificationservice.entities.PushNotification;
import com.example.pushnotificationservice.entities.User;
import com.example.pushnotificationservice.repositories.PushNotificationRepository;
import com.example.pushnotificationservice.repositori... | true |
3907581a3f0da4d0a242252c21e55eec6fa91d8e | Java | feizan6/web-assignment-2 | /src/main/java/assignment2/config/MvcConfig.java | UTF-8 | 2,038 | 2.125 | 2 | [] | no_license | package assignment2.config;
/**
* Created by Fayzan on 01/05/2017.
*/
import assignment2.viewResolver.ExcelViewResolver;
import assignment2.viewResolver.PdfViewResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.contex... | true |
1bfa72b50b5d96fc68331a04051a39033952edc8 | Java | MorningEvening/OrangeHRM | /src/main/java/pages/LoginPageNew.java | UTF-8 | 702 | 2.25 | 2 | [] | no_license | package pages;
import base.BasePage;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import java.util.Properties;
public class LoginPageNew extends BasePage {
WebDriver ... | true |
b3c8b77a6cec92414e5534736bb67c1cc5d0eafd | Java | trepixert/SQL_Parser | /src/ekwik/parser/models/Join.java | UTF-8 | 548 | 2.8125 | 3 | [] | no_license | package ekwik.parser.models;
public class Join {
private String type;
private String tableName;
private String onClause;
public Join(String type, String tableName, String onClause) {
this.type = type;
this.tableName = tableName;
this.onClause = onClause;
}
@Override
... | true |
adf370eebe3df3a77165523616a2b91fcd881e52 | Java | BlasphemyAngels/Auction | /src/com/wc/web/controller/ListAllCommodityServlet.java | WINDOWS-1252 | 2,821 | 2.125 | 2 | [] | no_license | package com.wc.web.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.h... | true |