Skip to content

Instantly share code, notes, and snippets.

View c0rp-aubakirov's full-sized avatar
🏠
Working from home

Sanzhar Aubakirov c0rp-aubakirov

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<WSReq:WebShopRequest xmlns:WSReq="http://allpay.kz/xsd/1.0.0/WebShopRequest.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://allpay.kz/xsd/1.0.0/WebShopRequest.xsd">
<WSReq:ShopName>shop1</WSReq:ShopName>
<WSReq:InvoiceNumber>45622</WSReq:InvoiceNumber>
<WSReq:Merchant>
<WSReq:MerchantID>95989</WSReq:MerchantID>
<WSReq:WalletID>95989</WSReq:WalletID>
</WSReq:Merchant>
<WSReq:TotalCost>100.0</WSReq:TotalCost>
<WSReq:SuccessLink>http://127.0.0.1:8080/webshop-integration-rest/transactions.jsp</WSReq:SuccessLink>
<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<!-- Bootstrap core CSS -->
<%--<link href="css/bootstrap.min.css" rel="stylesheet">--%>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Material Design fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
private boolean checkAlertMethod(String method){
return method.equals("Push Notifications") || method.equals("Email") || method.equals("SMS");
}
public class HelloWorld
{
public static void main(String[] args)
{
String a = "Hello";
String b = "World";
System.out.println(a == new String("Hello"));
/**
* User: Sanzhar Aubakirov
* Date: 12/22/16
*/
public class Test {
public static void main(String[] args) {
Child c = new Child();
c.A();
}
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:4.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
public void extractTfidfVector() throws Exception {
final IndexReader indexReader = indexerMany.readIndex();
final TFIDFSimilarity tfidfSIM = new DefaultSimilarity();
final Map<String, Double> termToTFIDF = new HashMap<>();
final Map<String, Integer> termToNumber = new HashMap<>();
final Fields fields = MultiFields.getFields(indexReader);
final Terms bodyTerms = fields.terms("body");
final TermsEnum iterator = bodyTerms.iterator();
BytesRef term;
while ((term = iterator.next()) != null) {
package kz.moe.classifier.index;
import kz.moe.parser.model.MessageType;
import org.apache.lucene.index.PostingsEnum;
import org.apache.lucene.index.TermsEnum;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.similarities.DefaultSimilarity;
import org.apache.lucene.search.similarities.TFIDFSimilarity;
import org.apache.lucene.util.BytesRef;
/**
* Used for device activation, method is manually transacted
* Method returns uniqueNumber, this number is used on mobile devices
* <br/>
* to use GetToken service
*/
public DoActivationResponse doActivation(arguments...) throws InvalidDeviceAssignedToOtherUserException,
InvalidMemorableWordAttemptsException,
CredentialException,
InvalidUserHasAnotherDevicedAssignedException,
package kz.kaznu.counter;
import com.google.common.base.Stopwatch;
import kz.kaznu.counter.commons.utils.LoggerEnabler;
import kz.kaznu.counter.commons.utils.Timer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;
import java.util.concurrent.Callable;