Skip to content

Instantly share code, notes, and snippets.

View PreSoichiSumi's full-sized avatar

PreSoichiSumi PreSoichiSumi

  • A web application engineer in Japan.
  • Tokyo, Japan
View GitHub Profile
@PreSoichiSumi
PreSoichiSumi / 1jacksontest.java
Last active June 19, 2017 11:52
result: "yoyo":"hogehoge","num":25,"flg":false,"listMember":["hoge","fuga","derodero"],"listmember2":[{"serviceUrl":"yoyoyousei","message":"genki","imageUrl":"url","version":100},{"serviceUrl":"yoyoyousei","message":"genki","imageUrl":"url","version":100}]}
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.ArrayList;
import java.util.List;
/**
* Created by souichi_sumi on 2017/06/19.
*/
public class Main {
@PreSoichiSumi
PreSoichiSumi / test-requestpromise.js
Created June 14, 2017 04:28
request-promiseを使ってgetできるかのテスト
//https://github.com/request/request-promise
var rp= require('request-promise');
var options = {
uri: 'https://gist.githubusercontent.com/SoichiSumi/5bed3eb79ae8ec97b193f3ca35841990/raw/6d4beeb68822cd9d6af4a164bbfaeab3a9c050a9/test.json',
/*qs: {
access_token: 'xxxxx xxxxx' // -> uri + '?access_token=xxxxx%20xxxxx'
},*/
headers: {
'Origin':'https://github.com/',
'Referer':'https://github.com/SoichiSumi/SoichiSumi.github.io'
var AWS = require("aws-sdk");
//"http://localhost:8000"
AWS.config.update({
region: "us-west-1",
endpoint: "dynamodb.us-east-1.amazonaws.com"
});
var docClient = new AWS.DynamoDB.DocumentClient();
{
"unko":"one",
"tabindent":"guilty",
"hoge":"2"
}
var req = require('request');
var options={
method: 'GET',
uri: 'https://gist.githubusercontent.com/SoichiSumi/5bed3eb79ae8ec97b193f3ca35841990/raw/6d4beeb68822cd9d6af4a164bbfaeab3a9c050a9/test.json',
headers: {
'Origin':'https://github.com/',
'Referer':'https://github.com/SoichiSumi/SoichiSumi.github.io'
}
};
req(options,function(e,res,body){
@PreSoichiSumi
PreSoichiSumi / urls
Created February 5, 2017 08:06
service urls
Twitter
https://valkyrie.ics.es.osaka-u.ac.jp/
AAConvert
http://valkyrie.ics.es.osaka-u.ac.jp/
@PreSoichiSumi
PreSoichiSumi / GetDivisorfullNumbers.cpp
Created November 20, 2016 12:33
Chokudai Contest 002 焼きなまし解 1つ目..約数の多い数列挙 2つ目..焼きなまし
#include <bits/stdc++.h>
using namespace std;
#define MODULE 1000000007
#define RESSIZE 10000
#define MP make_pair
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
//--source
int a=2e9;
int b=2e9;
LL al=2e9;
LL bl=2e9;
cout<<"int:"<<endl;
cout<<(a+b)/2<<endl;
cout<<"LL:"<<endl;
cout<<(al+bl)/2<<endl;

ASTOR(Automatic Software Transformations fOr program Repair)

Build Status

Astor is an automatic software repair framework in Java for Java. It contains an implementation of state of the art repair approaches such as GenProg and Kali.

If you use Astor for academic purposes, please cite the appropriate publication:

package models;
import com.avaje.ebean.annotation.CreatedTimestamp;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Embeddable
public class CombinedTweetKey implements Serializable{