language stringclasses 15
values | src_encoding stringclasses 34
values | length_bytes int64 6 7.85M | score float64 1.5 5.69 | int_score int64 2 5 | detected_licenses listlengths 0 160 | license_type stringclasses 2
values | text stringlengths 9 7.85M |
|---|---|---|---|---|---|---|---|
JavaScript | UTF-8 | 977 | 3.046875 | 3 | [] | no_license | // LANDING
const left = document.querySelector(".left");
const right = document.querySelector(".right");
const container = document.querySelector(".container");
left.addEventListener("mouseenter", () => {
container.classList.add("hover-left");
});
left.addEventListener("mouseleave", () => {
container.classList.remove("hover-left");
});
right.addEventListener("mouseenter", () => {
container.classList.add("hover-right");
});
right.addEventListener("mouseleave", () => {
container.classList.remove("hover-right");
});
// FORM COUNTDOWN
function limitTextCount(limitField_id, limitCount_id, limitNum)
{
var limitField = document.getElementById(limitField_id);
var limitCount = document.getElementById(limitCount_id);
var fieldLEN = limitField.value.length;
if (fieldLEN > limitNum)
{
limitField.value = limitField.value.substring(0, limitNum);
}
else
{
limitCount.innerHTML = (limitNum - fieldLEN) + '/500';
}
} |
Java | UTF-8 | 1,310 | 2.234375 | 2 | [
"DOC",
"Apache-2.0"
] | permissive |
package org.fcrepo.common.http;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
public class FilterConfigBean
implements FilterConfig {
private ServletContext cxt;
private String filterName;
private final Map<String, String> params =
new LinkedHashMap<String, String>();
public void setFilterName(String name) {
filterName = name;
}
public String getFilterName() {
return filterName;
}
public void setServletContext(ServletContext sc) {
cxt = sc;
}
public ServletContext getServletContext() {
return cxt;
}
public void addInitParameter(String key, String value) {
params.put(key, value);
}
public String getInitParameter(String name) {
return params.get(name);
}
public Enumeration<String> getInitParameterNames() {
return new Enumeration<String>() {
Iterator<String> i = params.keySet().iterator();
public boolean hasMoreElements() {
return i.hasNext();
}
public String nextElement() {
return i.next();
}
};
}
}
|
Java | UTF-8 | 5,821 | 2.0625 | 2 | [] | no_license | package com.zhenjinzi.yzy.model;
import static javax.persistence.GenerationType.IDENTITY;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.zhenjinzi.yzy.model.enums.IdentityType;
import com.zhenjinzi.yzy.model.enums.MailSubscribe;
import com.zhenjinzi.yzy.model.enums.MessageSubscribe;
import com.zhenjinzi.yzy.model.enums.UserType;
@Entity
@Table(name = "zunmi_userdetail", catalog = "zunmi")
public class ZunmiUserDetail implements java.io.Serializable {
// Fields
private static final long serialVersionUID = 1L;
private Integer id;
private ZunmiUser zunmiUser;
private String sex;
private String alterEmail;
private Date birthday;
private String country;
private UserType userType;
private String enterpriseName;
private String province;
private String city;
private String street;
private String name;
private String postal;
private IdentityType identityType;
private String identity;
private String telphone;
private String fax;
private String gtalk;
private String qq;
private String msn;
private String website;
private MessageSubscribe msgSubscribe;
private MailSubscribe mailSubscribe;
// Property accessors
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "userid", nullable = false)
public ZunmiUser getZunmiUser() {
return this.zunmiUser;
}
public void setZunmiUser(ZunmiUser zunmiUser) {
this.zunmiUser = zunmiUser;
}
@Column(name = "sex", length = 6)
public String getSex() {
return this.sex;
}
public void setSex(String sex) {
this.sex = sex;
}
@Column(name = "alteremail", length = 100)
public String getAlterEmail() {
return this.alterEmail;
}
public void setAlterEmail(String alterEmail) {
this.alterEmail = alterEmail;
}
@Temporal(TemporalType.DATE)
@Column(name = "birthday", length = 10)
public Date getBirthday() {
return this.birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
@Column(name = "country", length = 50)
public String getCountry() {
return this.country;
}
public void setCountry(String country) {
this.country = country;
}
@Column(name = "usertype", nullable = false, length = 11)
@Enumerated(EnumType.STRING)
public UserType getUserType() {
return this.userType;
}
public void setUserType(UserType userType) {
this.userType = userType;
}
@Column(name = "enterprisename", length = 100)
public String getEnterpriseName() {
return this.enterpriseName;
}
public void setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
}
@Column(name = "province", length = 50)
public String getProvince() {
return this.province;
}
public void setProvince(String province) {
this.province = province;
}
@Column(name = "city", length = 50)
public String getCity() {
return this.city;
}
public void setCity(String city) {
this.city = city;
}
@Column(name = "street", length = 100)
public String getStreet() {
return this.street;
}
public void setStreet(String street) {
this.street = street;
}
@Column(name = "name", length = 100)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@Column(name = "postal", length = 10)
public String getPostal() {
return this.postal;
}
public void setPostal(String postal) {
this.postal = postal;
}
@Column(name = "identitytype", length = 16)
@Enumerated(EnumType.STRING)
public IdentityType getIdentityType() {
return this.identityType;
}
public void setIdentityType(IdentityType identityType) {
this.identityType = identityType;
}
@Column(name = "identity", length = 30)
public String getIdentity() {
return this.identity;
}
public void setIdentity(String identity) {
this.identity = identity;
}
@Column(name = "telphone", length = 20)
public String getTelphone() {
return this.telphone;
}
public void setTelphone(String telphone) {
this.telphone = telphone;
}
@Column(name = "fax", length = 20)
public String getFax() {
return this.fax;
}
public void setFax(String fax) {
this.fax = fax;
}
@Column(name = "gtalk", length = 20)
public String getGtalk() {
return this.gtalk;
}
public void setGtalk(String gtalk) {
this.gtalk = gtalk;
}
@Column(name = "qq", length = 20)
public String getQq() {
return this.qq;
}
public void setQq(String qq) {
this.qq = qq;
}
@Column(name = "msn", length = 100)
public String getMsn() {
return this.msn;
}
public void setMsn(String msn) {
this.msn = msn;
}
@Column(name = "website", length = 100)
public String getWebsite() {
return this.website;
}
public void setWebsite(String website) {
this.website = website;
}
@Column(name = "msgsubscribe", nullable = false, length = 11)
@Enumerated(EnumType.STRING)
public MessageSubscribe getMsgSubscribe() {
return this.msgSubscribe;
}
public void setMsgSubscribe(MessageSubscribe msgSubscribe) {
this.msgSubscribe = msgSubscribe;
}
@Column(name = "mailsubscribe", nullable = false, length = 11)
@Enumerated(EnumType.STRING)
public MailSubscribe getMailSubscribe() {
return this.mailSubscribe;
}
public void setMailSubscribe(MailSubscribe mailSubscribe) {
this.mailSubscribe = mailSubscribe;
}
} |
Java | UTF-8 | 856 | 2.984375 | 3 | [] | no_license | package test;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import game.*;
class AnimalTest {
@Test
void test() {
Animal testCow = new Cow();
testCow.addAnimals(10);
testCow.updateHappiness(10);
testCow.updateHappinessGrowth(10);
testCow.updateHealth(10);
testCow.updateHappiness(-20);
testCow.updateHappinessGrowth(-20);
testCow.updateHealth(-20);
assertEquals("10 Cow with happiness of -8 and health of -4", testCow.toString());
assertEquals("Cow", testCow.getType());
assertEquals(0, testCow.getIndex());
assertEquals(3, testCow.getPurchasePrice());
assertEquals(0, testCow.getTendingReward());
assertEquals(-8, testCow.getHappiness());
assertEquals(-4, testCow.getHealth());
assertEquals(-12, testCow.getHappinessGrowthRate());
assertEquals(10, testCow.getAmount());
}
}
|
Java | UTF-8 | 1,977 | 2.15625 | 2 | [
"MIT"
] | permissive | package com.netease.audioroom.demo.model;
import com.netease.yunxin.nertc.nertcvoiceroom.util.JsonUtil;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
public class AccountInfo implements Serializable {
public final String account;
public final String nick;
public final String token;
public final String avatar;
public long availableAt;//应用服务器过期时间
public AccountInfo(String account, String nick, String token, String avatar, long availableAt) {
this.account = account;
this.nick = nick;
this.token = token;
this.avatar = avatar;
this.availableAt = availableAt;
}
public AccountInfo(String jsonStr) {
JSONObject jsonObject = JsonUtil.parse(jsonStr);
if (jsonObject == null) {
account = null;
nick = null;
token = null;
avatar = null;
return;
}
account = jsonObject.optString("account");
nick = jsonObject.optString("nick");
token = jsonObject.optString("token");
avatar = jsonObject.optString("avatar");
availableAt = jsonObject.optLong("availableAt");
}
@Override
public String toString() {
JSONObject jsonObject = new JSONObject();
try {
jsonObject.put("account", account);
jsonObject.put("nick", nick);
jsonObject.put("token", token);
jsonObject.put("avatar", avatar);
jsonObject.put("availableAt", availableAt);
return jsonObject.toString();
} catch (JSONException e) {
e.printStackTrace();
}
return null;
}
public static long accountToVoiceUid(String accountId) {
long result = -1;
try {
result = Long.parseLong(accountId);
} catch (Throwable tr) {
tr.printStackTrace();
}
return result;
}
}
|
TypeScript | UTF-8 | 21,370 | 3.109375 | 3 | [
"MIT"
] | permissive | import Dispatcher from "./Dispatcher";
import Camera, { CameraLocation } from "./Camera";
import Graph from "./Graph";
import { Settings } from "./Configurable";
import {
SigmaConfiguration,
Keyed,
SigmaSettings,
Renderer,
SigmaUtils,
SigmaMisc,
SigmaWebGLUtilities,
SigmaSvgUtils,
SigmaCanvasUtils,
Killable,
SigmaDispatchedEvent
} from "../../interfaces";
const __instances: Keyed<Sigma> = {};
// Little shortcut:
// ****************
// The configuration is supposed to have a list of the configuration
// objects for each renderer.
// - If there are no configuration at all, then nothing is done.
// - If there are no renderer list, the given configuration object will be
// considered as describing the first and only renderer.
// - If there are no renderer list nor "container" object, it will be
// considered as the container itself (a DOM element).
// - If the argument passed to sigma() is a string, it will be considered
// as the ID of the DOM container.
function unpackConf(conf: string | HTMLElement | Object): SigmaConfiguration {
let result: SigmaConfiguration;
if (typeof conf === "string" || conf instanceof HTMLElement) {
result = {
renderers: [conf]
};
} else if (Object.prototype.toString.call(conf) === "[object Array]") {
result = {
renderers: conf as any
};
} else {
result = conf as SigmaConfiguration;
}
// Also check "renderer" and "container" keys:
const o = result.renderers || result.renderer || result.container;
if (!result.renderers || result.renderers.length === 0) {
if (
typeof o === "string" ||
o instanceof HTMLElement ||
(typeof o === "object" && "container" in o)
)
result.renderers = [o];
}
return result;
}
function determineId(conf: SigmaConfiguration): string {
// Recense the instance:
if (conf.id) {
if (__instances[conf.id]) {
throw new Error(`sigma: Instance "${conf.id}" already exists.`);
}
return conf.id;
} else {
let id = 0;
while (__instances[id]) id++;
return `${id}`;
}
}
/**
* This is the sigma instances constructor. One instance of sigma represent
* one graph. It is possible to represent this grapĥ with several renderers
* at the same time. By default, the default renderer (WebGL + Canvas
* polyfill) will be used as the only renderer, with the container specified
* in the configuration.
*
* @param {?*} conf The configuration of the instance. There are a lot of
* different recognized forms to instantiate sigma, check
* example files, documentation in this file and unit
* tests to know more.
* @return {Sigma} The fresh new sigma instance.
*
* Instanciating sigma:
* ********************
* If no parameter is given to the constructor, the instance will be created
* without any renderer or camera. It will just instantiate the graph, and
* other modules will have to be instantiated through the public methods,
* like "addRenderer" etc:
*
* > s0 = new sigma();
* > s0.addRenderer({
* > type: 'canvas',
* > container: 'my-container-id'
* > });
*
* In most of the cases, sigma will simply be used with the default renderer.
* Then, since the only required parameter is the DOM container, there are
* some simpler way to call the constructor. The four following calls do the
* exact same things:
*
* > s1 = new sigma('my-container-id');
* > s2 = new sigma(document.getElementById('my-container-id'));
* > s3 = new sigma({
* > container: document.getElementById('my-container-id')
* > });
* > s4 = new sigma({
* > renderers: [{
* > container: document.getElementById('my-container-id')
* > }]
* > });
*
* Recognized parameters:
* **********************
* Here is the exhaustive list of every accepted parameters, when calling the
* constructor with to top level configuration object (fourth case in the
* previous examples):
*
* {?string} id The id of the instance. It will be generated
* automatically if not specified.
* {?array} renderers An array containing objects describing renderers.
* {?object} graph An object containing an array of nodes and an array
* of edges, to avoid having to add them by hand later.
* {?object} settings An object containing instance specific settings that
* will override the default ones defined in the object
* sigma.settings.
*/
class Sigma extends Dispatcher {
// Static Data
public static classes: any = {};
public static settings: SigmaSettings;
// current sigma version
public static version = "1.2.1";
// utility namespaces
public static renderers: Keyed<any> = {};
public static plugins: Keyed<any> = {};
public static middlewares: Keyed<any> = {};
public static utils: SigmaUtils = {
pkg: getPackageObject
} as any;
public static misc: SigmaMisc = {} as any;
public static captors: Keyed<Killable> = {};
public static canvas: SigmaCanvasUtils = {} as any;
public static svg: SigmaSvgUtils = {} as any;
public static webgl: SigmaWebGLUtilities = {} as any;
// Instance Data
public events = [
"click",
"rightClick",
"clickStage",
"doubleClickStage",
"rightClickStage",
"clickNode",
"clickNodes",
"doubleClickNode",
"doubleClickNodes",
"rightClickNode",
"rightClickNodes",
"overNode",
"overNodes",
"outNode",
"outNodes",
"downNode",
"downNodes",
"upNode",
"upNodes"
];
private conf: SigmaConfiguration;
public readonly id: string;
public settings: Settings;
public graph: Graph;
public middlewares: Function[] = [];
public cameras: Keyed<Camera> = {};
public renderers: Keyed<any> = {};
public renderersPerCamera: Keyed<Renderer[]> = {};
public cameraFrames: Keyed<any> = {};
constructor(conf: any = {}) {
super();
this.conf = unpackConf(conf);
// Register the instance:
this.id = determineId(conf);
__instances[this.id] = this;
// Initialize locked attributes:
this.settings = Sigma.classes.configurable(
Sigma.settings,
this.conf.settings || {}
);
this.graph = new Sigma.classes.graph(this.settings);
this.initializeRenderers();
this.initializeMiddleware();
this.initializeGraphData();
// Deal with resize:
window.addEventListener("resize", () => this.settings && this.refresh());
}
private initializeMiddleware() {
const middlewares = this.conf.middlewares || [];
middlewares.forEach((item: string | Function) => {
const mw = item === "string" ? Sigma.middlewares[item] : item;
this.middlewares.push(mw);
});
}
private initializeRenderers() {
const renderers = this.conf.renderers || [];
renderers.forEach(r => this.addRenderer(r));
}
private initializeGraphData() {
// Check if there is already a graph to fill in:
if (typeof this.conf.graph === "object" && this.conf.graph) {
this.graph.read(this.conf.graph);
// If a graph is given to the to the instance, the "refresh" method is
// directly called:
this.refresh();
}
}
// Add a custom handler, to redispatch events from renderers:
private _handler = (e: SigmaDispatchedEvent) => {
const data: Keyed<any> = {};
Object.keys(e.data).forEach(key => {
data[key] = e.data[key];
});
data.renderer = e.target;
this.dispatchEvent(e.type, data);
};
public get camera() {
return this.cameras[0];
}
private nextCameraId() {
let id = 0;
while (this.cameras[`${id}`]) id++;
return `${id}`;
}
/**
* This methods will instantiate and reference a new camera. If no id is
* specified, then an automatic id will be generated.
*
* @param {?string} id Eventually the camera id.
* @return {sigma.classes.camera} The fresh new camera instance.
*/
public addCamera(id: string = this.nextCameraId()) {
if (this.cameras[id]) {
throw new Error(`sigma.addCamera: The camera "${id}" already exists.`);
}
const camera = new Sigma.classes.camera(id, this.graph, this.settings);
this.cameras[id] = camera;
// Add a quadtree to the camera:
camera.quadtree = new Sigma.classes.quad();
// Add an edgequadtree to the camera:
if (Sigma.classes.edgequad !== undefined) {
camera.edgequadtree = new Sigma.classes.edgequad(this.graph);
}
camera.bind("coordinatesUpdated", () =>
this.renderCamera(camera, camera.isAnimated)
);
this.renderersPerCamera[id] = [];
return camera;
}
/**
* This method kills a camera, and every renderer attached to it.
*
* @param {string|camera} v The camera to kill or its ID.
* @return {Sigma} Returns the instance.
*/
public killCamera(v: string | Camera) {
const camera: Camera =
typeof v === "string" ? this.cameras[v] : (v as Camera);
if (!camera) throw new Error("sigma.killCamera: The camera is undefined.");
let i;
let l;
const a = this.renderersPerCamera[camera.id];
for (l = a.length, i = l - 1; i >= 0; i--) {
this.killRenderer(a[i]);
}
delete this.renderersPerCamera[camera.id];
delete this.cameraFrames[camera.id];
delete this.cameras[camera.id];
if (camera.kill) {
camera.kill();
}
return this;
}
/**
* This methods will instantiate and reference a new renderer. The "type"
* argument can be the constructor or its name in the "sigma.renderers"
* package. If no type is specified, then "sigma.renderers.def" will be used.
* If no id is specified, then an automatic id will be generated.
*
* @param {?object} options Eventually some options to give to the renderer
* constructor.
* @return {renderer} The fresh new renderer instance.
*
* Recognized parameters:
* **********************
* Here is the exhaustive list of every accepted parameters in the "options"
* object:
*
* {?string} id Eventually the renderer id.
* {?(function|string)} type Eventually the renderer constructor or its
* name in the "sigma.renderers" package.
* {?(camera|string)} camera Eventually the renderer camera or its
* id.
*/
public addRenderer(options?: any) {
let id;
let fn;
let o = options || {};
// Polymorphism:
if (typeof o === "string")
o = {
container: document.getElementById(o)
};
else if (o instanceof HTMLElement)
o = {
container: o
};
// If the container still is a string, we get it by id
if (typeof o.container === "string") {
o.container = document.getElementById(o.container);
}
// Reference the new renderer:
if (!("id" in o)) {
id = 0;
while (this.renderers[`${id}`]) id++;
id = `${id}`;
// eslint-disable-next-line prefer-destructuring
} else id = o.id;
if (this.renderers[id])
throw new Error(
`sigma.addRenderer: The renderer "${id}" already exists.`
);
// Find the good constructor:
fn =
typeof o.type === "function"
? o.type
: Sigma.renderers[o.type || this.conf.type];
fn = fn || Sigma.renderers.def;
// Find the good camera:
const findGoodCamera = () => {
if ("camera" in o) {
if (o.camera instanceof Sigma.classes.camera) {
return o.camera;
}
return this.cameras[o.camera] || this.addCamera(o.camera);
}
return this.addCamera();
};
const camera = findGoodCamera();
if (this.cameras[camera.id] !== camera)
throw new Error(
"sigma.addRenderer: The camera is not properly referenced."
);
// Instantiate:
const renderer = new fn(this.graph, camera, this.settings, o);
this.renderers[id] = renderer;
Object.defineProperty(renderer, "id", {
value: id
});
// Bind events:
if (renderer.bind)
renderer.bind(
[
"click",
"rightClick",
"clickStage",
"doubleClickStage",
"rightClickStage",
"clickNode",
"clickNodes",
"clickEdge",
"clickEdges",
"doubleClickNode",
"doubleClickNodes",
"doubleClickEdge",
"doubleClickEdges",
"rightClickNode",
"rightClickNodes",
"rightClickEdge",
"rightClickEdges",
"overNode",
"overNodes",
"overEdge",
"overEdges",
"outNode",
"outNodes",
"outEdge",
"outEdges",
"downNode",
"downNodes",
"downEdge",
"downEdges",
"upNode",
"upNodes",
"upEdge",
"upEdges"
],
this._handler
);
// Reference the renderer by its camera:
this.renderersPerCamera[camera.id].push(renderer);
return renderer;
}
/**
* This method kills a renderer.
*
* @param {string|renderer} v The renderer to kill or its ID.
* @return {Sigma} Returns the instance.
*/
public killRenderer(v: string | Renderer) {
const renderer: Renderer = typeof v === "string" ? this.renderers[v] : v;
if (!renderer) {
throw new Error("sigma.killRenderer: The renderer is undefined.");
}
// Remove the renderer from attached cameras
const cameraRenderers = this.renderersPerCamera[renderer.camera.id];
const rendererIndex = cameraRenderers.indexOf(renderer);
if (rendererIndex >= 0) {
cameraRenderers.splice(rendererIndex, 1);
}
// Kill the Renderer
if (renderer.kill) {
renderer.kill();
}
// Remove the renderer from Sigma
delete this.renderers[renderer.id];
return this;
}
/**
* This method calls the "render" method of each renderer, with the same
* arguments than the "render" method, but will also check if the renderer
* has a "process" method, and call it if it exists.
*
* It is useful for quadtrees or WebGL processing, for instance.
*
* @param {?object} options Eventually some options to give to the refresh
* method.
* @return {Sigma} Returns the instance itself.
*
* Recognized parameters:
* **********************
* Here is the exhaustive list of every accepted parameters in the "options"
* object:
*
* {?boolean} skipIndexation A flag specifying wether or not the refresh
* function should reindex the graph in the
* quadtrees or not (default: false).
*/
public refresh(
options: {
skipIndexation?: boolean;
} = {}
) {
const middlewares = this.middlewares || [];
let bounds;
let prefix = 0;
// Call each middleware:
middlewares.forEach((mw, i) => {
mw.call(
this,
i === 0 ? "" : `tmp${prefix}:`,
i === middlewares.length - 1 ? "ready:" : `tmp${++prefix}:`
);
});
// Then, for each camera, call the "rescale" middleware, unless the
// settings specify not to:
Object.keys(this.cameras).forEach(camId => {
const cam = this.cameras[camId];
if (
cam.settings("autoRescale") &&
this.renderersPerCamera[cam.id] &&
this.renderersPerCamera[cam.id].length
)
Sigma.middlewares.rescale.call(
this,
middlewares.length ? "ready:" : "",
cam.readPrefix,
{
width: this.renderersPerCamera[cam.id][0].width,
height: this.renderersPerCamera[cam.id][0].height
}
);
else
Sigma.middlewares.copy.call(
this,
middlewares.length ? "ready:" : "",
cam.readPrefix
);
if (!options.skipIndexation) {
// Find graph boundaries:
bounds = Sigma.utils.geom.getBoundaries(this.graph, cam.readPrefix);
// Refresh quadtree:
cam.quadtree!.index(this.graph.nodes(), {
prefix: cam.readPrefix,
bounds: {
x: bounds.minX,
y: bounds.minY,
width: bounds.maxX - bounds.minX,
height: bounds.maxY - bounds.minY
}
});
// Refresh edgequadtree:
if (
cam.edgequadtree !== undefined &&
cam.settings("drawEdges") &&
cam.settings("enableEdgeHovering")
) {
cam.edgequadtree.index(this.graph.edges(), {
prefix: cam.readPrefix,
bounds: {
x: bounds.minX,
y: bounds.minY,
width: bounds.maxX - bounds.minX,
height: bounds.maxY - bounds.minY
}
});
}
}
});
this._forEachRenderer("process");
this.render();
return this;
}
public _forEachRenderer(name: string) {
Object.keys(this.renderers).forEach(key => {
const renderer = this.renderers[key];
if (renderer[name]) {
if (this.settings("skipErrors")) {
try {
renderer[name]();
} catch (e) {
console.log(
`Warning: The renderer "${key}" crashed on ".${name}()"`,
e
);
}
} else {
renderer[name]();
}
}
});
}
/**
* This method calls the "render" method of each renderer.
*
* @return {Sigma} Returns the instance itself.
*/
public render() {
this._forEachRenderer("render");
return this;
}
/**
* This method calls the "render" method of each renderer that is bound to
* the specified camera. To improve the performances, if this method is
* called too often, the number of effective renderings is limitated to one
* per frame, unless you are using the "force" flag.
*
* @param {sigma.classes.camera} camera The camera to render.
* @param {?boolean} force If true, will render the camera
* directly.
* @return {Sigma} Returns the instance itself.
*/
public renderCamera(camera: Camera, force?: boolean) {
let i;
let l;
let a;
if (force) {
a = this.renderersPerCamera[camera.id];
for (i = 0, l = a.length; i < l; i++)
if (this.settings("skipErrors"))
try {
a[i].render();
} catch (e) {
if (this.settings("verbose"))
console.log(
`Warning: The renderer "${a[i].id}" crashed on ".render()"`
);
}
else a[i].render();
} else if (!this.cameraFrames[camera.id]) {
a = this.renderersPerCamera[camera.id];
for (i = 0, l = a.length; i < l; i++)
if (this.settings("skipErrors"))
try {
a[i].render();
} catch (e) {
if (this.settings("verbose"))
console.log(
`Warning: The renderer "${a[i].id}" crashed on ".render()"`
);
}
else a[i].render();
this.cameraFrames[camera.id] = requestAnimationFrame(() => {
delete this.cameraFrames[camera.id];
});
}
return this;
}
/**
* This method calls the "kill" method of each module and destroys any
* reference from the instance.
*/
public kill() {
// Dispatching event
this.dispatchEvent("kill");
// Kill graph:
this.graph.kill();
// Kill middlewares:
delete this.middlewares;
// Kill each renderer:
Object.keys(this.renderers).forEach(key =>
this.killRenderer(this.renderers[key])
);
// Kill each camera:
Object.keys(this.cameras).forEach(key =>
this.killCamera(this.cameras[key])
);
delete this.renderers;
delete this.cameras;
// Kill everything else:
Object.keys(this).forEach(key => delete (this as any)[key]);
delete __instances[this.id];
}
/**
* Returns a clone of the instances object or a specific running instance.
*
* @param {?string} id Eventually an instance ID.
* @return {object} The related instance or a clone of the instances
* object.
*/
public static instances(id?: string) {
return arguments.length ? __instances[id!] : { ...__instances };
}
public static register(packageName: string, item: any, override?: boolean) {
const parentPath = packageName.substring(0, packageName.lastIndexOf("."));
const itemName = packageName.substring(packageName.lastIndexOf(".") + 1);
const pkg = getPackageObject(parentPath);
pkg[itemName] = override ? item : pkg[itemName] || item;
}
}
function getPackageObject(pkgName: string) {
const getPackage = (levels: string[], root: Keyed<any>) => {
return levels.reduce((context, objName) => {
if (!context[objName]) {
context[objName] = {};
}
return context[objName];
}, root);
};
const levels = (pkgName || "").split(".");
if (levels[0] !== "sigma") {
throw new Error(`package root must start with sigma.`);
}
return getPackage(levels.slice(1), Sigma);
}
export default Sigma;
|
Java | UTF-8 | 4,414 | 2.09375 | 2 | [] | no_license | package com.hive.hive.association.transparency;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.style.UnderlineSpan;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.hive.hive.R;
import com.hive.hive.association.transparency.tabs.staff.StaffFragment;
import com.hive.hive.utils.FileUtils;
public class TransparencyActivity extends AppCompatActivity implements StaffFragment.OnListFragmentInteractionListener {
private static final String TAG = TransparencyActivity.class.getSimpleName();
// Superior Tab items
private TextView mTitleTV;
private ImageView mUpButtonIV;
private ImageView mSearchIV;
// Tab components
private TabLayout transparencyTL;
private ViewPager transparencyVP;
private TransparencyFragmentPagerAdapter mViewPagerAdapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_transparency);
mTitleTV = findViewById(R.id.transparency_activity_title_TV);
mUpButtonIV = findViewById(R.id.up_button_transparency_IV);
mSearchIV = findViewById(R.id.search_transparency_IV);
// Get the ViewPager and set it's PagerAdapter so that it can display items
transparencyVP = (ViewPager) findViewById(R.id.transparency_VP);
mViewPagerAdapter = new TransparencyFragmentPagerAdapter(
getSupportFragmentManager(),
TransparencyActivity.this,
this
);
transparencyVP.setAdapter(mViewPagerAdapter);
final TransparencyFragmentPagerAdapter ref = mViewPagerAdapter;
transparencyVP.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
// ref.updateFAB(position);
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
// Give the TabLayout the ViewPager
transparencyTL = (TabLayout) findViewById(R.id.sliding_tabs_transparency_TL);
transparencyTL.setupWithViewPager(transparencyVP);
// Exit from activity
mUpButtonIV.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
mSearchIV.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(TransparencyActivity.this, "Search not implemented yet.",
Toast.LENGTH_SHORT).show();
}
});
}
@Override // android recommended class to handle permissions
public void onRequestPermissionsResult(int requestCode,
@NonNull String permissions[],
@NonNull int[] grantResults)
{
switch (requestCode) {
case FileUtils.STORAGE_REQUEST_CODE: {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
Log.d(TAG, "Permission granted");
} else {
// permission denied, boo! Disable the
// functionality that depends on this permission.uujm
Toast.makeText(this, "Permission denied to read your External storage", Toast.LENGTH_SHORT).show();
Log.d(TAG, "Permission not granted");
}
}
}
}
@Override
public void onListFragmentInteraction(StaffFragment.Staff item) {
Toast.makeText(this, item.name, Toast.LENGTH_SHORT).show();
}
}
|
PHP | UTF-8 | 12,155 | 2.71875 | 3 | [] | no_license | <?php
//ログ
ini_set('log_errors', 'on');
ini_set('error_log', 'php_log');
// デバッグ
$debug_flg = true;
function debug($str)
{
global $debug_flg;
if (!empty($debug_flg)) {
error_log('デバッグ:' . $str);
}
}
// セッション準備
session_save_path("/var/tmp/");
ini_set('session.gc_maxlifetime', 60 * 60 * 24 * 30);
ini_set('session.cookie_lifetime', 60 * 60 * 24 * 30);
session_start();
session_regenerate_id();
// 画面表示処理開始ログ吐き出し
function debugLogStart()
{
debug('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 画面表示処理開始');
debug('セッションID:' . session_id());
debug('セッション変数の中身:' . print_r($_SESSION, true));
debug('現在日時タイムスタンプ:' . time());
if (!empty($_SESSION['login_date']) && !empty($_SESSION['login_limit'])) {
debug('ログイン期限日時タイムスタンプ:' . ($_SESSION['login_date'] + $_SESSION['login_limit']));
}
}
// 定数
// エラーメッセージ
define('MSG01', ':入力必須です');
define('MSG02', ';Email形式で入力して下さい');
define('MSG03', ':パスワード(再入力)が合っていません');
define('MSG04', ':半角英数字のみご利用頂けます');
define('MSG05', ':6文字以上で入力して下さい');
define('MSG06', ':エラーが発生しました。しばらく経ってからやり直して下さい');
define('MSG07', ':Emailは既に登録されています');
define('MSG08', ':メールアドレスまたはパスワードが違います');
define('MSG09', ':255字以内で入力して下さい');
define('MSG10', ':正しくありません');
define('SUC01', 'ログインしました');
define('SUC02', '登録しました');
$err_msg = array();
//バリデーション
//空白
function validRequired($str, $key)
{
if ($str === '') {
global $err_msg;
$err_msg[$key] = MSG01;
}
}
// Email形式
function validEmail($str, $key)
{
if (!preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $str)) {
global $err_msg;
$err_msg[$key] = MSG02;
}
}
// パスワード同値
function validMatch($str1, $str2, $key)
{
if ($str1 !== $str2) {
global $err_msg;
$err_msg[$key] = MSG03;
}
}
// 半角英数字
function validHalf($str, $key)
{
if (!preg_match("/^[a-zA-Z0-9]+$/", $str)) {
global $err_msg;
$err_msg[$key] = MSG04;
}
}
// 最小文字数
function validMin($str, $key, $min = 6)
{
if (mb_strlen($str) < $min) {
global $err_msg;
$err_msg[$key] = MSG05;
}
}
// 最大文字数
function validMax($str, $key, $max = 255)
{
if (mb_strlen($str) > $max) {
global $err_msg;
$err_msg[$key] = MSG09;
}
}
// Email重複
function validEmailDup($email)
{
global $err_msg;
try {
$dbh = dbConnect();
$sql = 'SELECT count(*) FROM users WHERE email = :email AND delete_flg = 0';
$data = array(':email' => $email);
$stmt = queryPost($dbh, $sql, $data);
$result = $stmt->fetch(PDO::FETCH_ASSOC);
if (!empty(array_shift($result))) {
$err_msg['email'] = MSG07;
}
} catch (Exception $e) {
error_log('エラー発生:' . $e->getMessage());
$err_msg['common'] = MSG06;
}
}
// セレクトボックス
function validSelect($str, $key)
{
if (!preg_match("/^[0-9]+$/", $str)) {
global $err_msg;
$err_msg[$key] = MSG10;
}
}
// ======================================================
// データベース
// ======================================================
// DB接続関数
function dbConnect()
{
$dsn = 'mysql:dbname=okacchiesp_fashionlinks;host=mysql8042.xserver.jp;charset=utf8';
$user = 'okacchiesp_root';
$password = 'password';
// $dsn = 'mysql:dbname=fashion_links;host=localhost;charset=utf8';
// $user = 'root';
// $password = 'root';
$options = array(
// SQL実行失敗時に例外をスロー
PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING,
// デフォルトフェッチモードを連想配列形式に設定
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
// バッファードクエリを使う(一度に結果セットをすべて取得し、サーバー負荷を軽減)
// SELECTで得た結果に対してもrowCountメソッドを使えるようにする
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
);
$dbh = new PDO($dsn, $user, $password, $options);
return $dbh;
}
// SQL実行
function queryPost($dbh, $sql, $data)
{
$stmt = $dbh->prepare($sql);
if (!$stmt->execute($data)) {
debug('クエリに失敗しました。');
debug('失敗したSQL:' . print_r($stmt, true));
$err_msg['common'] = MSG07;
return 0;
}
debug('クエリ成功。');
return $stmt;
}
// DBからスタイル情報を取得
function getStyle($u_id, $s_id)
{
debug('スタイル情報を取得');
debug('ユーザーID' . $u_id);
debug('スタイルID' . $s_id);
// 例外処理
try {
// DBへ接続
$dbh = dbConnect();
//SQL作成
$sql = 'SELECT * FROM style WHERE user_id = :u_id AND id = :s_id AND delete_flg = 0';
$data = array(':u_id' => $u_id, ':s_id' => $s_id);
// クエリ実行
$stmt = queryPost($dbh, $sql, $data);
if ($stmt) {
return $stmt->fetch(PDO::FETCH_ASSOC); //結果に返されたカラム名で添字をつけた配列
} else {
return false;
}
} catch (Exception $e) {
error_log('エラー発生:' . $e->getMessage());
}
}
function getStyleList($currentMinNum, $category, $sort, $span = 30)
{
debug('商品情報を取得します');
try {
$dbh = dbConnect();
$sql = 'SELECT id FROM style';
if (!empty($category)) $sql .= ' WHERE category_id = ' . $category;
if (!empty($sort)) {
switch ($sort) {
case 1:
$sql .= ' ORDER BY id DESC ';
break;
case 2:
$sql .= ' ORDER BY id ASC ';
break;
}
}
$data = array();
$stmt = queryPost($dbh, $sql, $data);
// 総レコード数
$rst['total'] = $stmt->rowCount();
$rst['total_page'] = ceil($rst['total'] / $span);
if (!$stmt) {
return false;
}
// ページングのSQL
$sql = 'SELECT * FROM style AS s LEFT JOIN category AS c ON s.category_id = c.id LEFT JOIN users AS u ON s.user_id = u.id';
if (!empty($category)) $sql .= ' WHERE s.category_id = ' . $category;
if (!empty($sort)) {
switch ($sort) {
case 1:
$sql .= ' ORDER BY s.id DESC ';
break;
case 2:
$sql .= ' ORDER BY s.id ASC ';
break;
}
}
$sql .= ' LIMIT ' . $span . ' OFFSET ' . $currentMinNum;
$data = array();
debug('SQL:' . $sql);
$stmt = queryPost($dbh, $sql, $data);
if ($stmt) {
$rst['data'] = $stmt->fetchAll();
return $rst;
} else {
return false;
}
} catch (Exception $e) {
error_log('エラー発生:' . $e->getMessage());
}
}
// DBからカテゴリー情報を取得
function getCategory()
{
debug('カテゴリー情報を取得');
// 例外処理
try {
$dbh = dbConnect();
$sql = 'SELECT * FROM category';
$data = array();
// クエリ実行
$stmt = queryPost($dbh, $sql, $data);
if ($stmt) {
return $stmt->fetchAll(); //結果に返された全ての行
} else {
return false;
}
} catch (Exception $e) {
error_log('エラー発生:' . $e->getMessage());
}
}
// ======================================================
// その他
// ======================================================
function sanitize($str)
{
return htmlspecialchars($str, ENT_QUOTES);
}
// フォームの入力保持
function getFormData($str, $flg = false)
{
if ($flg) {
$method = $_GET;
} else {
$method = $_POST;
}
global $dbFormData;
// DBにデータがあるか
if (!empty($dbFormData)) {
// フォームエラーがあるか
if (!empty($err_msg)) {
// POSTにデータがあるか
if (isset($method[$str])) {
return sanitize($method[$str]);
} else {
// POSTにデータがない(基本はありえない)DBの情報を表示
return sanitize($dbFormData[$str]);
}
} else {
// エラーがなくPOSTにデータがあり、DBと違う場合
if (isset($method[$str]) && $method[$str] !== $dbFormData[$str]) {
return sanitize($method[$str]);
} else {
// 元から変更していない
return sanitize($dbFormData[$str]);
}
}
} else {
// DBにデータがない場合POSTデータを表示
if (isset($method[$str])) {
return sanitize($method[$str]);
}
}
}
function getSessionFlash($key)
{
if (!empty($_SESSION[$key])) {
$data = $_SESSION[$key];
$_SESSION[$key] = '';
return $data;
}
}
function uploadPhoto($file, $key)
{
debug('画像アップロード処理');
debug('FILE情報:' . print_r($file, true));
if (isset($file['error']) && is_int($file['error'])) {
try { //バリデーション
switch ($file['error']) {
case UPLOAD_ERR_OK: //OK
break;
case UPLOAD_ERR_NO_FILE: //ファイル未選択
throw new RuntimeException('ファイルが選択されていません');
case UPLOAD_ERR_INI_SIZE: //php.ini定義のサイズを超えている
case UPLOAD_ERR_FORM_SIZE: //フォーム定義のサイズを超えている
throw new RuntimeException('ファイルサイズが大きすぎます');
default:
throw new RuntimeException('その他のエラーが発生しました');
}
// 画像形式のチェック
$type = @exif_imagetype($file['tmp_name']);
if (!in_array($type, [IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG], true)) {
throw new RuntimeException('画像形式が未対応です');
}
// アップロードする画像の名前をハッシュ化して、拡張子をつけて指定フォルダに保存する
$path = 'images/' . sha1_file($file['tmp_name']) . image_type_to_extension($type);
// アップロード
if (!move_uploaded_file($file['tmp_name'], $path)) {
throw new RuntimeException('ファイル保存時にエラーは発生');
}
// 保存したファイルパスの権限を変更する
chmod($path, 0644);
debug('ファイルは正常にアップロードされました');
debug('ファイルパス' . $path);
return $path;
} catch (RuntimeException $e) {
debug($e->getMessage());
global $err_msg;
$err_msg[$key] = $e->getMessage();
}
}
}
// ページネーション
function pagination($currentPageNum, $totalPageNum, $link = '', $pageColNum = 5)
{
if ($currentPageNum == $totalPageNum && $totalPageNum >= $pageColNum) {
$minPageNum = $currentPageNum - 4;
$maxPagenum = $currentPageNum;
} elseif ($currentPageNum == ($totalPageNum - 1) && $totalPageNum >= $pageColNum) {
$minPageNum = $currentPageNum - 3;
$maxPagenum = $currentPageNum + 1;
} elseif ($currentPageNum == 2 && $totalPageNum >= $pageColNum) {
$minPageNum = $currentPageNum - 1;
$maxPagenum = $currentPageNum + 3;
} elseif ($currentPageNum == 1 && $totalPageNum >= $pageColNum) {
$minPageNum = $currentPageNum;
$maxPagenum = $currentPageNum + 4;
} elseif ($totalPageNum < $pageColNum) {
$minPageNum = 1;
$maxPagenum = $totalPageNum;
} else {
$minPageNum = $currentPageNum - 2;
$maxPagenum = $currentPageNum + 2;
}
echo '<div class="pagination">';
echo '<ul class="pagination-list">';
if ($currentPageNum != 1) {
echo '<li class="list-item"><a href="?p=1' . $link . '"><</a></li>';
}
for ($i = $minPageNum; $i <= $maxPagenum; $i++) {
echo '<li class="list-item ';
if ($currentPageNum == $i) {
echo 'active';
}
echo '"><a href="?p=' . $i . $link . '">' . $i . '</a></li>';
}
if ($currentPageNum != $maxPagenum && $maxPagenum > 1) {
echo '<li class="list-item"><a href="?p=' . $maxPagenum . $link . '">></a></li>';
}
echo '</ul>';
echo '</div>';
}
|
Python | UTF-8 | 4,275 | 2.703125 | 3 | [] | no_license | #Momentum.py
import pandas as pd
import datetime
import dateutil.relativedelta
import sys
from functools import reduce
sys.path.append('../lib/')
from dbConnect import *
from matplotHangul import *
# market_code = '001' # KOSPI
start_code = '000000'
end_code = '900000'
market_code = '201' # KOSPI200 / 만약 '001' 로 하면 KOPSI ANY 종목 대상
f_score = 7 # momentum 계산양을 줄이기 위해 KOSPI200 종목 중 F-SCORE 7 이상인 종목으로 대상 한정
period = 1 # duration of pct_change --> daily return 을 기준으로 beta 계산
input_invest_date = "2018-1-1" # 투자 시작월
invest_date = datetime.datetime.strptime(input_invest_date, "%Y-%m-%d")
yymm = []
for i in range(12,0,-1): # 투자 시작월에서 12 개월 이전 연,월 계산
d1 = dateutil.relativedelta.relativedelta(months=i)
yy = (invest_date - d1).year
mm = (invest_date - d1).month
yymm.append((yy,mm))
# KOSPI(001) 인 경우 ANY 종목 / KOSPI200 (201) 인 경우 stockcode 의 kospi200 = true 인 종목만 대상 --------
if market_code == '001':
batch_codes = pd.read_sql("select code, code_name from stockcode where smarket = '" + market_code +\
"' and code >= '" + start_code + "' and code <= '" + end_code + "'\
and fscore >= %d order by code asc" % f_score, con=engine)
elif market_code == '201':
batch_codes = pd.read_sql("select code, code_name from stockcode where kospi200 = true and fscore >= %d" \
% f_score, con=engine)
else:
print("invalid market_code", market_code)
quit()
momentum_data = []
# 대상 종목의 momentum 계산
for code, code_name in batch_codes[['code','code_name']].values:
STOCK_ALL = pd.read_sql("SELECT * from dailycandle where code ='" + code + "'", con=engine, \
index_col=["date"])
# 투자월(yymm[12][0] & yymm[12][1]) 직전 12 개월의 data 를 일봉 DB 에서 가져옴.
STOCK_ALL.index = STOCK_ALL.index.to_datetime()
STOCK_ALL = STOCK_ALL[(STOCK_ALL.index.year == yymm[0][0]) & (STOCK_ALL.index.month >= yymm[0][1]) | \
(STOCK_ALL.index.year == yymm[11][0]) & (STOCK_ALL.index.month <= yymm[11][1])]
STOCK_ALL.index.name = 'date'
STOCK = STOCK_ALL[STOCK_ALL['code'] == code] # 동일 연월의 다른 주식코드 제거 (Unique index 없을 경우)
#STOCK = STOCK[~STOCK.index.duplicated(keep='first')] # remove duplicated data
start_close = STOCK.iloc[0].close # yymm[0][0] 의 첫 record close value
# 각 month 의 last day data 만 추출
STOCK = STOCK[(pd.Series(STOCK.index.month) != pd.Series(STOCK.index.month).shift(-1)).values]
momentum_row = [code, code_name, start_close]
for yy, mm in yymm:
momentum_row.append(STOCK.loc[(STOCK.index.year == yy) & (STOCK.index.month == mm)]['close'].values[0])
STOCK['Gross Return'] = STOCK['close'].pct_change(1) + 1 # monthly Gross return
STOCK.ix[0, 'Gross Return'] = (STOCK.ix[0, 'close'] - start_close) / start_close + 1
STOCK_3M_Gross_Retun = STOCK['Gross Return'][-3:]
STOCK_6M_Gross_Retun = STOCK['Gross Return'][-6:]
STOCK_9M_Gross_Retun = STOCK['Gross Return'][-9:]
STOCK_12M_Gross_Retun = STOCK['Gross Return'][-12:]
momentum_row.append(reduce(lambda x, y: x*y, STOCK_3M_Gross_Retun.values)) # momentum = 각 월의 Gross Return 을 모두 곱함
momentum_row.append(reduce(lambda x, y: x*y, STOCK_6M_Gross_Retun.values))
momentum_row.append(reduce(lambda x, y: x*y, STOCK_9M_Gross_Retun.values))
momentum_row.append(reduce(lambda x, y: x*y, STOCK_12M_Gross_Retun.values))
column_label = ['code', 'name', 'start_close']
for ym in yymm:
column_label.append(str(ym)) # column_label 작성
column_label.append('3mMtm')
column_label.append('6mMtm')
column_label.append('9mMtm')
column_label.append('12mMtm')
momentum_data.append(momentum_row) # 완성된 row 를 전체 list 에 append
momentum_df = pd.DataFrame(momentum_data, columns=column_label) # 전체 list 를 DataFrame 으로 변환
momentum_df.sort_values(['12mMtm'], ascending=False, inplace=True)
print(momentum_df.iloc[:5])
|
Python | UTF-8 | 310 | 2.5625 | 3 | [] | no_license | from sklearn.base import BaseEstimator, TransformerMixin
class CustomTransformer(BaseEstimator, TransformerMixin):
def __init__(self):
pass
def fit(self, X, y=None):
return self
def transform(self, X, y=None):
X_ = (X - X.min()) / (X.max() - X.min())
return X_
|
Markdown | UTF-8 | 12,520 | 3.03125 | 3 | [
"MIT"
] | permissive | ---
slug: "/news/test2"
date: "2019-05-04"
title: "Lorem ipsum is Awesome."
image: "./test.jpg"
author: Kim Jackson
category: Engineering
---
## TL;DR
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
## Headers
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Emphasis
Emphasis, aka italics, with _asterisks_ or _underscores_.
Strong emphasis, aka bold, with **asterisks** or **underscores**.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough uses two tildes. ~~Scratch this.~~
## Lists
1. First ordered list item
2. Another item
3. Actual numbers don't matter, just that it's a number
- Unordered list can use asterisks
* Or minuses
- Or pluses
## Links
[I'm an inline-style link](https://www.google.com)
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link][arbitrary case-insensitive reference text]
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself].
URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <http://www.example.com> and sometimes
example.com (but not on Github, for example).
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com
## Images
<div className="Image__Small">
<img
src="./article-image-2.jpg"
title="Logo Title Text 1"
alt="Alt text"
/>
</div>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
## Code and Syntax Highlighting
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
```
### JSX
```jsx
import React from "react";
import { ThemeProvider } from "theme-ui";
import theme from "./theme";
export default (props) => (
<ThemeProvider theme={theme}>{props.children}</ThemeProvider>
);
```
## Blockquotes
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing.
> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
## Horizontal Rule
Horizontal Rule
Three or more...
---
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
---
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
## TL;DR👌🏻
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
## Emphasis
Emphasis, aka italics, with _asterisks_ or _underscores_.
Strong emphasis, aka bold, with **asterisks** or **underscores**.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough uses two tildes. ~~Scratch this.~~
## Lists
1. First ordered list item
2. Another item
3. Actual numbers don't matter, just that it's a number
- Unordered list can use asterisks
* Or minuses
- Or pluses
## Links
[I'm an inline-style link](https://www.google.com)
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link][arbitrary case-insensitive reference text]
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself].
URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or <http://www.example.com> and sometimes
example.com (but not on Github, for example).
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com
## Images
<div className="Image__Small">
<img
src="./article-image-2.jpg"
title="Logo Title Text 1"
alt="Alt text"
/>
</div>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry.
## Code and Syntax Highlighting
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
```
### JSX
```jsx:title=src/components/BaseLayout.jsx
import React, { ReactNode } from "react";
import { Helmet } from "react-helmet";
import { Button } from "components/button/Button";
import Logo from "../../assets/svg/kerry-logo.svg";
import Dribbble from "../../assets/svg/dribbble.svg";
import GitHub from "../../assets/svg/github.svg";
import Spotify from "../../assets/svg/spotify.svg";
import Letterboxd from "../../assets/svg/letterboxd.svg";
import { helmet } from "../../utils/helmet";
import { Header } from "../header/Header";
import { HeaderLink } from "../header/HeaderLink";
import { Footer } from "../footer/Footer";
import { Devtools } from "../devtools/Devtools";
import s from "./BaseLayout.scss";
interface BaseLayoutProps {
children: ReactNode;
}
const isDev = process.env.NODE_ENV === "development";
// tslint:disable no-default-export
export default ({ children }: BaseLayoutProps) => (
<div className={s.layout}>
<Helmet {...helmet} />
<Header>
<HeaderLink to="/about" name="About" />
<HeaderLink to="/contact" name="Contact" />
<Button href="https://kerrytokyo.com/">Author</Button>
</Header>
{children}
<Footer
logo={<Logo />}
social={[
{ icon: <Dribbble />, to: "https://dribbble.com/kerry-tokyo" },
{ icon: <Letterboxd />, to: "https://letterboxd.com/vivingston" },
{ icon: <GitHub />, to: "https://github.com/kerry-tokyo" },
{
icon: <Spotify />,
to:
"https://open.spotify.com/user/v8vi31q8nof0di7jzzsw7vhkd?si=rBHI-m6WQiuji_Ix0NYVow",
},
]}
/>
{isDev && <Devtools />}
</div>
);
```
## Blockquotes
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing.
> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
## Horizontal Rule
Horizontal Rule
Three or more...
---
**Lorem Ipsum is simply dummy text of the printing and typesetting industry.** Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
---
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
|
Java | UTF-8 | 3,946 | 2.640625 | 3 | [] | no_license | package com.hhkj.hdao.util;
import java.util.HashMap;
import java.util.List;
/**
*
* @ClassName Page
* @Description 分页类
* @author maxh
* @date 2014年5月1日
* @param <T>
*/
public class Page<T> {
private int currentPage = 1;// 当前页,默认值为1
private int limit = 0;// 每页显示个数
private int totalsize = 0;// 总个数
private int totalPage = 0;// 总页数
private int startNum = 0;// 开始条数
private int endNum = 0;// 结束条数
private boolean isDataPage = true;// 是不是数据库分页
private HashMap<String, Object> parameter;// 查询参数
private HashMap<String, Object> resultMap;// 结果集,包括列表,总条数,总页数
private List<T> resultList;
/**
* 初始化方法
*
* @param isDataPage
* 是否是数据库分页
* @param limit
* 每页显示条数
* @param parameter
* 查询参数
* @param currentPage
* 当前页
*/
public Page(boolean isDataPage, int limit, int currentPage,
HashMap<String, Object> parameter) {
this.isDataPage = isDataPage;
this.limit = limit;
this.parameter = parameter;
this.currentPage = currentPage;
}
/**
* 初始化方法重载
*
* @param isDataPage
* 是否是数据库分页
* @param limit
* 每页显示条数
* @param currentPage
* 当前页
*/
public Page(boolean isDataPage, int limit, int currentPage) {
this.isDataPage = isDataPage;
this.limit = limit;
this.parameter = new HashMap<String, Object>();
this.currentPage = currentPage;
}
/**
* 重载初始化方法
*/
public Page() {
}
public int getStartNum() {
return startNum;
}
public HashMap<String, Object> getParameter() {
parameter.put("startNum", startNum);
parameter.put("endNum", endNum);
return parameter;
}
public void setParameter(HashMap<String, Object> parameter) {
this.parameter = parameter;
}
public int getEndNum() {
return endNum;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
public int getLimit() {
return limit;
}
public void setLimit(int limit) {
this.limit = limit;
}
public int getTotalsize() {
return totalsize;
}
public void setTotalsize(int totalsize) {
this.totalsize = totalsize;
this.totalPage = (int) Math.ceil((double) totalsize / limit);
initIndex();
}
/**
* 初始化起始条目和结束条目
*/
private void initIndex() {
if (isDataPage) {
if (totalPage < currentPage) {
currentPage = totalPage;
}
startNum = (currentPage - 1) * limit;
if (currentPage * limit > totalsize) {
endNum = totalsize;
} else {
endNum = currentPage * limit;
}
} else {
startNum = 0;
endNum = totalsize;
}
}
public int getTotalPage() {
return totalPage;
}
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
public void setDataPage(boolean isDataPage) {
this.isDataPage = isDataPage;
}
public boolean isDataPage() {
return isDataPage;
}
public void setResultList(List<T> resultList) {
this.resultList = resultList;
}
public List<T> getResultList() {
return resultList;
}
public void setResultMap(HashMap<String, Object> resultMap) {
this.resultMap = resultMap;
}
/**
* @return 结果集,包括列表,总条数,总页数
*/
public HashMap<String, Object> getResultMap() {
resultMap = new HashMap<String, Object>();
resultMap.put("totalSize", totalsize);
resultMap.put("resultList", resultList);
resultMap.put("totalPage", totalPage);
return resultMap;
}
@Override
public String toString() {
return "startNum:" + startNum + ";endNum:" + endNum;
}
}
|
TypeScript | UTF-8 | 9,448 | 2.59375 | 3 | [] | no_license | import { extname } from "path";
import { readFileSync } from "fs";
import { IImport } from "import-sort-parser";
import { IStyleAPI, IStyleItem } from "import-sort-style";
const isAlias = (alias: string[]) => (moduleName: string) =>
alias.indexOf(moduleName.split("/")[0]) >= 0;
const hasAlias = (alias: string[]) => (imported: IImport) => {
return alias.some((a) => imported.moduleName.split("/")[0] === a);
};
const customSort = (comparator) => (first: string, second: string) =>
comparator(first.toLowerCase(), second.toLowerCase());
const isStylesheet = (imported: IImport) => {
return (
imported.moduleName.indexOf(".css") > 0 ||
imported.moduleName.indexOf(".sass") > 0 ||
imported.moduleName.indexOf(".scss") > 0
);
};
export default function (
styleApi: IStyleAPI,
file?: string,
options?: any
): IStyleItem[] {
const {
and,
hasDefaultMember,
hasNamedMembers,
hasNamespaceMember,
hasNoMember,
hasOnlyDefaultMember,
hasOnlyNamedMembers,
hasOnlyNamespaceMember,
isAbsoluteModule,
isRelativeModule,
member,
name,
not,
startsWithAlphanumeric,
startsWithLowerCase,
startsWithUpperCase,
unicode,
moduleName,
} = styleApi;
const alias = options.alias || [];
let sortBy;
switch (options.sortBy) {
case "moduleName":
sortBy = moduleName;
break;
case "member":
sortBy = member;
break;
default:
sortBy = moduleName;
break;
}
const comparator =
options.ignoreCase === false ? unicode : customSort(unicode);
return [
// import "foo"
{ match: and(hasNoMember, isAbsoluteModule) },
{ separator: true },
// import * as _ from "bar";
{
match: and(
hasOnlyNamespaceMember,
isAbsoluteModule,
not(hasAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import * as Foo from "bar";
// import * as foo from "bar";
{
match: and(
hasOnlyNamespaceMember,
isAbsoluteModule,
not(hasAlias(alias))
),
sort: sortBy(comparator),
},
// import _, * as bar from "baz";
{
match: and(
hasDefaultMember,
hasNamespaceMember,
isAbsoluteModule,
not(hasAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo, * as bar from "baz";
// import foo, * as bar from "baz";
{
match: and(
hasDefaultMember,
hasNamespaceMember,
isAbsoluteModule,
not(hasAlias(alias))
),
sort: sortBy(comparator),
},
// import _ from "bar";
{
match: and(
hasOnlyDefaultMember,
isAbsoluteModule,
not(hasAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo from "bar";
// import foo from "bar";
{
match: and(hasOnlyDefaultMember, isAbsoluteModule, not(hasAlias(alias))),
sort: sortBy(comparator),
},
// import _, {bar, …} from "baz";
{
match: and(
hasDefaultMember,
hasNamedMembers,
isAbsoluteModule,
not(hasAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import Foo, {bar, …} from "baz";
// import foo, {bar, …} from "baz";
{
match: and(
hasDefaultMember,
hasNamedMembers,
isAbsoluteModule,
not(hasAlias(alias))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {_, bar, …} from "baz";
{
match: and(
hasOnlyNamedMembers,
isAbsoluteModule,
not(hasAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {Foo, bar, …} from "baz";
// import {foo, bar, …} from "baz";
{
match: and(hasOnlyNamedMembers, isAbsoluteModule, not(hasAlias(alias))),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
{ separator: true },
// import './style.scss'
{
match: and(hasNoMember, isRelativeModule, isStylesheet),
sort: sortBy(comparator),
},
// import "./foo"
{ match: and(hasNoMember, isRelativeModule, not(isStylesheet)) },
// import * as _ from "./bar";
{
match: and(
hasOnlyNamespaceMember,
isRelativeModule,
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import * as Foo from "./bar";
// import * as foo from "./bar";
{
match: and(hasOnlyNamespaceMember, isRelativeModule),
sort: sortBy(comparator),
},
// import _, * as bar from "./baz";
{
match: and(
hasDefaultMember,
hasNamespaceMember,
isRelativeModule,
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo, * as bar from "./baz";
// import foo, * as bar from "./baz";
{
match: and(hasDefaultMember, hasNamespaceMember, isRelativeModule),
sort: sortBy(comparator),
},
// import _ from "./bar";
{
match: and(
hasOnlyDefaultMember,
isRelativeModule,
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo from "./bar";
// import foo from "./bar";
{
match: and(hasOnlyDefaultMember, isRelativeModule),
sort: sortBy(comparator),
},
// import _, {bar, …} from "./baz";
{
match: and(
hasDefaultMember,
hasNamedMembers,
isRelativeModule,
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import Foo, {bar, …} from "./baz";
// import foo, {bar, …} from "./baz";
{
match: and(hasDefaultMember, hasNamedMembers, isRelativeModule),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {_, bar, …} from "./baz";
{
match: and(
hasOnlyNamedMembers,
isRelativeModule,
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {Foo, bar, …} from "./baz";
// import {foo, bar, …} from "./baz";
{
match: and(hasOnlyNamedMembers, isRelativeModule),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
{ separator: true },
// import * as _ from "alias/name";
{
match: and(
hasOnlyNamespaceMember,
isAbsoluteModule,
moduleName(isAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import * as Foo from "bar";
// import * as foo from "bar";
{
match: and(
hasOnlyNamespaceMember,
isAbsoluteModule,
moduleName(isAlias(alias))
),
sort: sortBy(comparator),
},
// import _, * as bar from "baz";
{
match: and(
hasDefaultMember,
hasNamespaceMember,
isAbsoluteModule,
moduleName(isAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo, * as bar from "baz";
// import foo, * as bar from "baz";
{
match: and(
hasDefaultMember,
hasNamespaceMember,
isAbsoluteModule,
moduleName(isAlias(alias))
),
sort: sortBy(comparator),
},
// import _ from "bar";
{
match: and(
hasOnlyDefaultMember,
isAbsoluteModule,
moduleName(isAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
},
// import Foo from "bar";
// import foo from "bar";
{
match: and(
hasOnlyDefaultMember,
isAbsoluteModule,
moduleName(isAlias(alias))
),
sort: sortBy(comparator),
},
// import _, {bar, …} from "baz";
{
match: and(
hasDefaultMember,
hasNamedMembers,
isAbsoluteModule,
moduleName(isAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import Foo, {bar, …} from "baz";
// import foo, {bar, …} from "baz";
{
match: and(
hasDefaultMember,
hasNamedMembers,
isAbsoluteModule,
moduleName(isAlias(alias))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {_, bar, …} from "baz";
{
match: and(
hasOnlyNamedMembers,
isAbsoluteModule,
moduleName(isAlias(alias)),
not(member(startsWithAlphanumeric))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
// import {Foo, bar, …} from "baz";
// import {foo, bar, …} from "baz";
{
match: and(
hasOnlyNamedMembers,
isAbsoluteModule,
moduleName(isAlias(alias))
),
sort: sortBy(comparator),
sortNamedMembers: name(comparator),
},
{ separator: true },
];
}
|
JavaScript | UTF-8 | 13,311 | 3.046875 | 3 | [
"MIT"
] | permissive | import Future from "./Future";
import { assert, assertFunc, append, noop, raise } from "./utils";
import { Status } from "./constants";
const { PENDING, REJECTED, CANCELLED } = Status;
const assertTask = arg => assert(arg instanceof Task, "argument is not a Task");
export default class Task {
/**
* Creates a Task from a function that returns a Future.
*
* @param {Function} getFuture - A function which returns a {@link Future}
*/
constructor(getFuture) {
this.fork = getFuture;
}
/**
* Starts executing the Task. No side effect will take place until this method
* is invoked. Returns a {@link Future} representing the outcome of the Task.
*
* A started task can be cancelled by invoking {@link Future#cancel} on the
* returned Future. Cancelling a Task will cancel the the currently executing
* step and will skip all subsequent steps.
*
* @param {Function} [onSuccess] - callback invoked if the Task has succeded
* @param {Function} [onError] - callback invoked if the Task has aborted. If
* not provided an Exception will be thrown
* @param {Function} [onCancel] - callback invoked if the Task was cancelled
*
* @returns {Future}
*/
run(onSuccess = noop, onError = raise, onCancel = noop) {
assertFunc(onSuccess);
assertFunc(onError);
assertFunc(onCancel);
const fut = this.fork();
fut.subscribe(onSuccess, onError, onCancel);
return fut;
}
/**
* Run a race between the 2 proivded Tasks. Returns a new Task that will
*
* - resolve with the value of the first resolved input Task
* - reject with the error of the first rejected input Task. The other Task
* will be cancelled.
* - If the 2 input Tasks are cancelled, the Task wil be cancelled with reason
* of the last cancelled Task.
*
* @param {Task} task - a Task that this task will be raced against
*
* @returns {Task}
*/
orElse(task) {
assertTask(task);
if (this === EMPTY_TASK) return task;
if (task === EMPTY_TASK) return this;
return new Task(() => {
const f1 = this.fork();
if (f1.status !== PENDING) return f1;
const f2 = task.fork();
const resultF = f1.orElse(f2);
resultF.subscribe(cancel, cancel, r => cancel(null, r));
return resultF;
function cancel(_, reason) {
f1.cancel(reason);
f2.cancel(reason);
}
});
}
/**
* Chains a callback that will run after this Task completes. Each of the 3
* chained callbacks can return another Task to execute further actions.
* returning a non Task value from a callback has the same effect as returning
* `Task.resolve(value)`.
*
* Note that unlike {@link Task#run}, this method doesn't start the execution
* of the Task. All it does is to construct a new Task that, when started,
* will run in sequence the two tasks (this Task and the one returned by the
* invoked callback).
*
* The current Task will invoke the appropriate callback corresponding
* to the type of its outcome (success, error or cancellation). Each callback
* is optional. In case the corresponding callback was not provided, the final
* outcome will be the same as the first Task.
*
* Cancelling the result Task will cancel the current step in the chain and
* skip the execution of the Tasks in the subsequent step(s).
*
* This method returns a new Task that will complete with the same outcome
* as the second Task returned from the appropriate callback.
*
* @param {Function} [onSuccess] - callback invoked if the Task has succeded
* @param {Function} [onError] - callback invoked if the Task has aborted. If
* @param {Function} [onCancel] - callback invoked if the Task was cancelled
*
* @returns {Task}
*/
then(onSuccess, onError, onCancel) {
onSuccess && assertFunc(onSuccess);
onError && assertFunc(onError);
onCancel && assertFunc(onCancel);
if (this === EMPTY_TASK) return EMPTY_TASK;
return new Task(() => {
let fut1, fut2;
const handler = k => v => {
const result = k(v);
if (result instanceof Task) {
fut2 = result.fork();
return fut2;
} else return result;
};
if (onSuccess) onSuccess = handler(onSuccess);
if (onError) onError = handler(onError);
if (onCancel) onCancel = handler(onCancel);
fut1 = this.fork();
const resultF = fut1.then(onSuccess, onError, onCancel);
resultF.subscribe(undefined, cancel, r => cancel(null, r));
return resultF;
function cancel(_, reason) {
fut1.cancel(reason);
fut2 && fut2.cancel(reason);
}
});
}
/**
* a helper method to debug Tasks. It will log the outcome of the Task in the
* console. All log messages will be prefixed withe provided string.
*
* This method returns a {@link Future} that represent the outcome of the Task.
*
* @param {string} prefix - used to prefix logged messages
*
* @returns {Future}
*/
log(prefix) {
/* eslint-disable no-console */
return this.run(
v => console.log(prefix, ": resolved with ", v),
e => console.error(prefix, ": rejected with ", e),
r => console.log(prefix, ": cancelled with ", r)
);
}
/**
* Returns a Task that will always resolve with the provided value
*
* @param {*} value
*
* @returns {Task}
*/
static of(value) {
return Task.from(k => k(value));
}
/** Same as {@link Task.of} **/
static resolve(value) {
return Task.from(k => k(value));
}
/**
* Returns a Task that will always reject with the provided value
*
* @param {*} error
*
* @returns {Task}
*/
static reject(error) {
return Task.from((_, ke) => ke(error));
}
/**
* Returns a Task that will always be cancelled with the provided value
*
* @param {*} reason
*
* @returns {Task}
*/
static cancel(reason) {
return Task.from((_, __, kc) => kc(reason));
}
/**
* Creates a Task that, when started, will get its outcome using the provided
* executor function.
*
* Each time the Task is started using {@link Task.run}, the executor function
* will be invoked with 3 callbacks: resolve, reject and cancel. The executor
* function must invoke the appropriate callback to notify the Task's outcome.
*
* Task's executors are invoked synchrously (immediately).
*
* @param {executor} executor
*
* @returns {Task}
*/
static from(executor) {
assertFunc(executor);
return new Task(() => new Future(executor));
}
/**
* Creates a Task that will be complete with the same outcome as the provided
* Future.
*
* Note that cancelling the execution of the returned task will not cancel
* the original Future.
*
* @oaram {Future} future
*
* @returns {Task}
*/
static join(future) {
return new Task(() => future.fork());
}
/**
Returns a Task that does nothing. An empty task doesn't have an outcome.
In particular an empty task has the following properties (≅ means the 2 tasks
behave in similar ways)
emptyTask.orElse(anotherTask) ≅ anotherTask
anotherTask.orElse(emptyTask) ≅ anotherTask
emptyTask.then(_ => anotherTask) ≅ emptyTask
anotherTask.then(_ => emptyTask) ≅ emptyTask
Task.zipw(f, emptyTask, anotherTask) ≅ emptyTask
Task.zipw(f, anotherTask, emptyTask) ≅ emptyTask
@returns {Task}
**/
static empty() {
return EMPTY_TASK;
}
/** Same as `task1.orElse(task2)` */
static race2(task1, task2) {
assertTask(task1);
assertTask(task2);
return task1.orElse(task2);
}
/**
* Runs a race between all the provided Tasks. This is the same as
*
* `task1.orElse(task2)......orElse(taskN)`
*
* The Task will resolve/reject with the first resolved/rejected Task. In either
* case the other Tasks are automatically cancelled. If all the Tasks
* are cancelled, the result Task will be cancelled with the last
* cancellation's result.
*
* Cancelling the result Task will cancel all other Tasks.
*
* @param {Task[]} tasks
*
* @returns {Task}
*/
static race(tasks) {
tasks.forEach(assertTask);
return tasks.reduce(Task.race2, EMPTY_TASK);
}
/**
* Combine the resolved outcomes of 2 input Tasks using the provided function.
*
* If one of the input Tasks is rejected/cancelled, then the result Task
* will be rejected/cancelled a well. The other Task will also be automatically
* cancelled.
*
* Cancelling the result Task will cancel the 2 input Tasks (if still pending)
*
* @param {Function} f - Used to combine the resolved values of the 2 tasks
* @param {Task} task1
* @param {Task} task2
*
* @returns {Task}
*/
static zipw(f, task1, task2) {
assertFunc(f);
assertTask(task1);
assertTask(task2);
if (task1 === EMPTY_TASK || task2 === EMPTY_TASK) return EMPTY_TASK;
return new Task(() => {
const f1 = task1.fork();
if (f1.status === CANCELLED || f1.status === REJECTED) return f1;
const f2 = task2.fork();
const resultF = Future.zipw(f, f1, f2);
resultF.subscribe(cancel, cancel, r => cancel(null, r));
return resultF;
function cancel(_, reason) {
f1.cancel(reason);
f2.cancel(reason);
}
});
}
/**
* Returns a Task that will resolve with Array of all values if all input tasks
* are resolved. If any input Task is rejected/cancelled, the result Task will
* also be rejected/cancelled. In either case all Tasks that are still
* pending will be automatically cancelled.
*
* Cancelling the result Task will cancel all input Tasks (if pending)
*
* @param {Task[]} tasks
*
* @returns {Task}
*/
static all(tasks) {
tasks.forEach(assertTask);
return tasks.reduce(appendT, Task.of([]));
}
/**
* Transform the input values into Tasks using the provided function and
* returns that combines the values of all created Tasks using {@link Task.all}
*
* @param {Function} f - A function that takes a value and returns a Task
* @param {object[]} values - An array of values
*
* @returns {Task}
*/
static traverse(f, values) {
assertFunc(f);
return Task.all(values.then(f));
}
/**
* Pass the input Tasks trough an async predicate (a function that returns a Task
* of a Boolean). The result Task will resolve with the first value that pass
* the async test.
*
* @param {Function} p - A function that takes a value and returnd Task of a Boolean
* @param {Task[]} tasks
*
* @retursn Task
*/
static detect(p, tasks) {
assertFunc(p);
return Task.race(
tasks.map(t => t.then(v => p(v).then(b => (b ? Task.of(v) : EMPTY_TASK))))
);
}
/**
* Returns a Task that will applies the provided function to the resolved values
* of the input Tasks. The Task will be rejected/cancelled if any of the input
* Tasks is rejected/cancelled and the other Tasks will be cancelled if still
* pending.
*
* @param {Function} f
* @param {Task[]} tasks
* @param {object} ctx - If provided, will be used as a `this` for the function
*
* @returnd Task
*/
static apply(f, tasks, ctx) {
assertFunc(f);
return Task.all(tasks).map(values => f.apply(ctx, values));
}
static lift2(f) {
assertFunc(f);
return (c1, c2) => Task.zipw(f, c1, c2);
}
/**
* Transforms a function that acts on plain values to a function that acts on
* Tasks. This is the same as `Task.apply.bind(undefined, f)`
*
* @params {Function} f
*/
static lift(f) {
assertFunc(f);
return (...tasks) => Task.apply(f, tasks);
}
static do(gf) {
return new Task(() => {
const g = gf();
return next();
function next(a, isErr) {
try {
const { value, done } = isErr ? g.throw(a) : g.next(a);
if (done) {
return Future.of(value);
}
return value.fork().then(
v => {
//console.log('next', a)
return next(v);
},
e => {
//console.log('next err', a)
return next(e, true);
},
r => {
g.return(r);
return Future.cancel(r);
}
);
} catch (e) {
return Future.reject(e);
}
}
});
}
}
const appendT = Task.lift2(append);
const EMPTY_TASK = new Task(Future.empty);
/**
* This function is used to execute the an action for a given {@link Task} or
* {@link Future}, and then notifies the appropriate provided callbac (success,
* error or cancellation).
*
* If the executor returns a function, it will be invoked when the Task/Future
* is cancelled. This is useful to run cleanup code.
*
* @callback executor
* @param {Function} resolve - Invoke this callback to resolve the Task/Future
* @param {Function} reject - Invoke this callback to reject the Task/Future
* @param {Function} cancel - Invoke this callback to cancel the Task/Future
*
* @returns {Function} a function that is invoked when the Task/Future is cancelled.
*/
|
Swift | UTF-8 | 1,672 | 2.796875 | 3 | [] | no_license | //
// CharacterViewController.swift
// NC3
//
// Created by Adella Amanda on 13/06/20.
// Copyright © 2020 Sherwin Yang. All rights reserved.
//
import UIKit
class CharacterViewController: UIViewController {
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet var lanjutButton: UIButton!
var userName: String?
var userAvatar: String = "Robot 1"
override func viewDidLoad() {
super.viewDidLoad()
lanjutButton.customizeButton()
nameLabel.text = userName
}
@IBAction func lanjutButtonPressed(_ sender: Any) {
performSegue(withIdentifier: "toFinishOnboarding", sender: self)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let destVC = segue.destination as? CollectionViewController {
destVC.userName = userName
destVC.userAvatarString = userAvatar
}
}
}
extension CharacterViewController: UICollectionViewDataSource, UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return 4
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) as! CharacterCollectionViewCell
cell.charImage.image = UIImage(named: "Robot \(indexPath.row)")
return cell
}
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
userAvatar = "Robot \(indexPath.row)"
}
}
|
Shell | UTF-8 | 284 | 2.515625 | 3 | [] | no_license | #!/bin/bash
# support pop
pop_send() {
_subject="$1"
_content="$2"
_statusCode="$3" #0: success, 1: error 2($RENEW_SKIP): skipped
_debug "_subject" "$_subject"
_debug "_content" "$_content"
_debug "_statusCode" "$_statusCode"
_err "Not implemented yet."
return 1
}
|
Java | UTF-8 | 2,928 | 2.1875 | 2 | [] | no_license | package com.appzoneltd.lastmile.microservice.workflow.kafka;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.Execution;
import org.activiti.engine.runtime.ProcessInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;
import com.appzoneltd.lastmile.microservice.workflow.handler.ProcessServicesHandler;
import com.appzoneltd.lastmile.microservice.workflow.kafka.models.WorkflowTrackingNumber;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.reactivex.functions.Action;
@Component
public class PackageTrackingConsumer {
@Autowired
private ObjectMapper mapper ;
@Autowired
private RuntimeService runTimeService;
@KafkaListener(topics = "PackageTrackingNumberResponse")
public void nearByVehicleRequest(@Payload String payload)
throws JsonParseException, JsonMappingException, IOException, InterruptedException {
WorkflowTrackingNumber workflowTrackingNumber=mapper.readValue(payload, WorkflowTrackingNumber.class);
ProcessServicesHandler.get(workflowTrackingNumber.getPackageId(),"waitUntilTrackingNumberAssigned").serviceConsumed(sendTrackingNumber(workflowTrackingNumber));
}
private Action sendTrackingNumber(final WorkflowTrackingNumber workflowTrackingNumber){
return new Action(){
@Override
public void run() throws Exception {
Map<String, Object> workflowData= new HashMap<String, Object>();
workflowData.put("packageId", workflowTrackingNumber.getPackageId());
workflowData.put("trackingNumber", workflowTrackingNumber.getTrackingNumber());
System.out.println("***************************************************");
System.out.println("*******TRACKING NUMBER *********");
System.out.println("***************************************************");
ProcessInstance processInstance=null;
List<ProcessInstance> processInstances = runTimeService.createProcessInstanceQuery().
variableValueEquals("packageId", workflowTrackingNumber.getPackageId()).list();
if (processInstances != null && !processInstances.isEmpty()){
processInstance = processInstances.get(0);
}
Execution execution=runTimeService.createExecutionQuery()
.processInstanceId(processInstance.getProcessInstanceId())
.activityId("waitUntilTrackingNumberAssigned").singleResult();
runTimeService.signal(execution.getId(),workflowData);
}
};
}
}
|
C# | UTF-8 | 936 | 2.84375 | 3 | [
"MIT"
] | permissive | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Net;
namespace Strategy.Library.Extensions
{
/// <summary>
/// Extensions to NetworkSession.
/// </summary>
public static class NetworkSessionExtensions
{
/// <summary>
/// Checks if SessionType is NetworkSessionType.Local.
/// </summary>
public static bool IsLocalSession(this NetworkSession session)
{
return session.SessionType == NetworkSessionType.Local;
}
/// <summary>
/// Checks if SessionType is NetworkSessionType.PlayerMatch or NetworkSessionType.Ranked.
/// </summary>
public static bool IsOnlineSession(this NetworkSession session)
{
return session.SessionType == NetworkSessionType.PlayerMatch ||
session.SessionType == NetworkSessionType.Ranked;
}
}
} |
C++ | UTF-8 | 5,273 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_tiles/most_visited_sites.h"
#include <stddef.h>
#include <memory>
#include <vector>
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ntp_tiles {
namespace {
struct TitleURL {
TitleURL(const std::string& title, const std::string& url)
: title(base::UTF8ToUTF16(title)), url(url) {}
TitleURL(const base::string16& title, const std::string& url)
: title(title), url(url) {}
base::string16 title;
std::string url;
bool operator==(const TitleURL& other) const {
return title == other.title && url == other.url;
}
};
static const size_t kNumSites = 4;
} // namespace
// This a test for MostVisitedSites::MergeTiles(...) method, and thus has the
// same scope as the method itself. This tests merging popular sites with
// personal tiles.
// More important things out of the scope of testing presently:
// - Removing blacklisted tiles.
// - Correct host extraction from the URL.
// - Ensuring personal tiles are not duplicated in popular tiles.
class MostVisitedSitesTest : public testing::Test {
protected:
void Check(const std::vector<TitleURL>& popular_sites,
const std::vector<TitleURL>& whitelist_entry_points,
const std::vector<TitleURL>& personal_sites,
const std::vector<bool>& expected_sites_is_personal,
const std::vector<TitleURL>& expected_sites) {
NTPTilesVector personal_tiles;
for (const TitleURL& site : personal_sites)
personal_tiles.push_back(MakeTileFrom(site, true, false));
NTPTilesVector whitelist_tiles;
for (const TitleURL& site : whitelist_entry_points)
whitelist_tiles.push_back(MakeTileFrom(site, false, true));
NTPTilesVector popular_tiles;
for (const TitleURL& site : popular_sites)
popular_tiles.push_back(MakeTileFrom(site, false, false));
NTPTilesVector result_tiles = MostVisitedSites::MergeTiles(
std::move(personal_tiles), std::move(whitelist_tiles),
std::move(popular_tiles));
std::vector<TitleURL> result_sites;
std::vector<bool> result_is_personal;
result_sites.reserve(result_tiles.size());
result_is_personal.reserve(result_tiles.size());
for (const auto& tile : result_tiles) {
result_sites.push_back(TitleURL(tile.title, tile.url.spec()));
result_is_personal.push_back(tile.source != NTPTileSource::POPULAR);
}
EXPECT_EQ(expected_sites_is_personal, result_is_personal);
EXPECT_EQ(expected_sites, result_sites);
}
static NTPTile MakeTileFrom(const TitleURL& title_url,
bool is_personal,
bool whitelist) {
NTPTile tile;
tile.title = title_url.title;
tile.url = GURL(title_url.url);
tile.source = whitelist ? NTPTileSource::WHITELIST
: (is_personal ? NTPTileSource::TOP_SITES
: NTPTileSource::POPULAR);
return tile;
}
};
TEST_F(MostVisitedSitesTest, PersonalSites) {
std::vector<TitleURL> personal_sites{
TitleURL("Site 1", "https://www.site1.com/"),
TitleURL("Site 2", "https://www.site2.com/"),
TitleURL("Site 3", "https://www.site3.com/"),
TitleURL("Site 4", "https://www.site4.com/"),
};
// Without any popular tiles, the result after merge should be the personal
// tiles.
std::vector<bool> expected_sites_source(kNumSites, true /*personal source*/);
Check(std::vector<TitleURL>(), std::vector<TitleURL>(), personal_sites,
expected_sites_source, personal_sites);
}
TEST_F(MostVisitedSitesTest, PopularSites) {
std::vector<TitleURL> popular_sites{
TitleURL("Site 1", "https://www.site1.com/"),
TitleURL("Site 2", "https://www.site2.com/"),
TitleURL("Site 3", "https://www.site3.com/"),
TitleURL("Site 4", "https://www.site4.com/"),
};
// Without any personal tiles, the result after merge should be the popular
// tiles.
std::vector<bool> expected_sites_source(kNumSites, false /*popular source*/);
Check(popular_sites, std::vector<TitleURL>(), std::vector<TitleURL>(),
expected_sites_source, popular_sites);
}
TEST_F(MostVisitedSitesTest, PersonalPrecedePopularSites) {
std::vector<TitleURL> popular_sites{
TitleURL("Site 1", "https://www.site1.com/"),
TitleURL("Site 2", "https://www.site2.com/"),
};
std::vector<TitleURL> personal_sites{
TitleURL("Site 3", "https://www.site3.com/"),
TitleURL("Site 4", "https://www.site4.com/"),
};
// Personal tiles should precede popular tiles.
std::vector<TitleURL> expected_sites{
TitleURL("Site 3", "https://www.site3.com/"),
TitleURL("Site 4", "https://www.site4.com/"),
TitleURL("Site 1", "https://www.site1.com/"),
TitleURL("Site 2", "https://www.site2.com/"),
};
std::vector<bool> expected_sites_source{true, true, false, false};
Check(popular_sites, std::vector<TitleURL>(), personal_sites,
expected_sites_source, expected_sites);
}
} // namespace ntp_tiles
|
C++ | UTF-8 | 446 | 2.59375 | 3 | [] | no_license | #include <stdio.h>
template<bool V> struct S1 {
static const bool V1 = V;
};
template<class> struct S2 : S1<false> {};
template<class C2> struct S2<C2 const> : S1<true> {};
template<class C3, bool VV = S2<C3>::V1>
struct S3 {
static const bool V3 = VV;
};
struct X {};
int main()
{
if (S3<X>::V3)
printf("error\n");
else
printf("ok\n");
if (S3<const X>::V3)
printf("ok\n");
else
printf("error\n");
return 0;
}
|
C++ | UTF-8 | 9,231 | 3.171875 | 3 | [] | no_license | #include "Field.h"
#include <cstring>
#include <cassert>
#include <iostream>
#include <cstdio>
#include <map>
#include <cstdlib>
using namespace std;
Stone::Stone() {
state = Shown;
value = 0;
}
Stone::Stone(const Stone &rhs) {
state = rhs.state;
value = rhs.value;
}
void Stone::set_B() {
state = SuperHidden;
}
Stone::Stone(char c) {
if (c == 'B') {
state = SuperHidden;
} else if (c == 'A') {
state = Hidden;
} else if (c == ' ') {
value = 0;
return;
} else {
state = Shown;
value = c - '0';
return;
}
// need to guess
value = rand() % 7;
}
void Stone::pick_random() {
value = rand() % 7 + 1;
if (rand() % 7 < 2)
state = SuperHidden;
else
state = Shown;
}
void Stone::turn() {
if (state == Hidden)
state = Shown;
if (state == SuperHidden)
state = Hidden;
}
char Stone::to_char() const {
if (!value)
return ' ';
if (state == Shown)
return value + '0';
if (state == Hidden)
return 'A';
return 'B';
}
string Stone::to_string() const {
if (!value)
return " ";
char buffer[3];
sprintf(buffer, "%d", value);
string ret = buffer;
if (state == Shown)
return ret;
if (state == Hidden)
return ret + "!";
return ret + "?";
}
bool Stone::is_null() const {
assert(value >= 0 && value < 8);
return value == 0;
}
static map<string, double> hashes;
Field::Field() {
m_score = 0;
m_step = 0;
m_level = 1;
m_dots = 30;
}
Field::Field(const Field &f) {
for (int i = 0; i < 49; i++)
data[i] = f.data[i];
m_score = f.m_score;
m_step = f.m_step;
m_level = f.m_level;
m_dots = f.m_dots;
line = f.line;
}
Field Field::from_string(const char *text)
{
assert(strlen(text) == 7 * 8);
Field n;
for (int y = 0; y < 7; y++) {
for (int x = 0; x < 7; x++) {
n.set(y, x, *text);
text++;
}
text++; // skip newline
}
return n;
}
char Field::at(int y, int x) const
{
if (y < 0 || y >= 7 || x < 0 || x >= 7)
return ' ';
return data[y*7+x].to_char();
}
Stone Field::next_stone()
{
assert(!line.empty());
Stone e = line.front();
line.pop_front();
return e;
}
Stone Field::stone(int y, int x) const
{
if (y < 0 || y >= 7 || x < 0 || x >= 7)
return Stone();
return data[y*7+x];
}
void Field::set(int y, int x, char c)
{
assert(y >= 0 && y < 7);
assert(x >= 0 && x < 7);
assert(c == ' ' || (c >= '0' && c <= '7') || c == 'A' || c == 'B');
data[y*7+x] = Stone(c);
}
void Field::set(int y, int x, Stone e)
{
assert(y >= 0 && y < 7);
assert(x >= 0 && x < 7);
data[y*7+x] = e;
}
string Field::to_string() const
{
string ret = "\nX=======X\n";
for (int y = 0; y < 7; y++)
{
ret += "|";
for (int x = 0; x < 7; x++)
ret += this->at(y, x);
ret += "|\n";
}
ret += "X=======X\n";
return ret;
}
Field Field::drop(char c, int col) const {
assert(this->at(0, col - 1) == ' '); // not yet lost
Field ret = *this;
int y = 0;
while (ret.at(y + 1, col - 1) == ' ' && y < 6)
y++;
ret.set(y, col - 1, c);
ret.m_step = 0;
ret.m_dots = m_dots - 1;
return ret;
}
Field Field::drop(Stone e, int col) const {
assert(this->stone(0, col - 1).is_null()); // not yet lost
Field ret = *this;
int y = 0;
while (ret.stone(y + 1, col - 1).is_null() && y < 6)
y++;
ret.set(y, col - 1, e);
ret.m_step = 0;
ret.m_dots = m_dots - 1;
return ret;
}
bool Field::check_row(int y, int start_x, char c, char *marked) {
if (this->at(y, start_x - 1) != ' ')
return false;
if (this->at(y, c + start_x) != ' ')
return false;
for (int i = 0; i < c; ++i) {
if (this->at(y, i + start_x) == ' ')
return false;
}
bool foundone = false;
for (int x = start_x; x < start_x + c ; ++x) {
if (this->at(y, x) == c + '0') {
marked[y * 7 + x] = 1;
foundone = true;
}
}
return foundone;
}
bool Field::check_col(int start_y, int x, char c, char *marked) {
if (this->at(start_y - 1, x) != ' ')
return false;
if (this->at(c + start_y, x) != ' ')
return false;
for (int i = 0; i < c; ++i) {
if (this->at(i + start_y, x) == ' ')
return false;
}
bool foundone = false;
for (int y = start_y; y < start_y + c ; ++y) {
if (this->at(y, x) == c + '0') {
marked[y * 7 + x] = 1;
foundone = true;
}
}
return foundone;
}
void Field::markturn(int y, int x, char *marked) {
if (at(y, x) == 'B' || at(y, x) == 'A')
marked[y * 7 + x]++;
}
bool Field::gravitate() {
bool moved = false;
for (int x = 0; x < 7; ++x) {
for (int y = 5; y >= 0; y--) {
if (at(y, x) != ' ' && at(y + 1, x) == ' ')
{
set(y + 1, x, at(y, x));
set(y, x, ' ');
y = 6;
moved = true;
}
}
}
return moved;
}
inline int calculate_score(unsigned int step) {
const int scores[] = { 7, 39, 109, 224, 391, 617, 907, 1267, 1701,
2213, 2809, 3491, 4265, 5133, 6099, 7168, 8341,
9622, 11014, 12521, 14146, 15891, 17758,
19752, 21875, 24128, 26515, 29039, 31702,
34506};
if (step >= sizeof(scores) / sizeof(int))
return 0;
return scores[step];
}
bool Field::blink() {
bool foundone = false;
char marked[49];
memset(marked, 0, 49);
for (int y = 0; y < 7; y++)
for (char c = 1; c <= 7; c++)
for (int x = 0; x < 7 - (c - 1); x++)
foundone = check_row(y, x, c, marked) || foundone;
for (int x = 0; x < 7; x++)
for (char c = 1; c <= 7; c++)
for (int y = 0; y < 7 - (c - 1); y++)
foundone = check_col(y, x, c, marked) || foundone;
char turn[49];
memset(turn, 0, 49);
if (foundone) {
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++)
if (marked[y * 7 + x]) {
set(y, x, ' ');
int delta = calculate_score(m_step);
if (!delta) {
cerr << "STEP " << m_step << endl << to_string();
assert(delta);
}
m_score += delta;
markturn(y - 1, x, turn);
markturn(y + 1, x, turn);
markturn(y, x - 1, turn);
markturn(y, x + 1, turn);
}
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++)
while (turn[y * 7 + x]--)
data[y * 7 + x].turn();
gravitate();
m_step++;
}
if (!foundone) {
if (!elements()) {
m_score += 70000;
}
if (!m_dots) {
add_B_row();
m_level++;
m_score += 7000;
m_dots = 5 + max(26 - m_level, 0);
}
}
return foundone;
}
int Field::elements() const {
int r = 0;
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++)
if (!data[y*7+x].is_null())
r++;
return r;
}
double Field::rating() const {
double count = 0;
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++) {
switch (at(y, x))
{
case ' ':
break;
case 'B':
count += (28 - y) * (28 - y);
break;
case 'A':
count += (16 - y) * (16 - y);
break;
default:
int r = 14 - y - (at(y, x) - '0');
count += r * r;
}
}
return count;
}
inline char maptochar(int i) {
if (i == 8)
return 'B';
if (i == 7)
return 'A';
return '1' + i;
}
double Field::recursive_rating(int depth) const {
double r = 0;
if (!depth) {
return rating();
}
depth--;
char buffer[65];
sprintf(buffer, "%d-%s", depth, to_string().c_str());
map<string,double>::const_iterator it = hashes.find(buffer);
if (it != hashes.end())
return it->second;
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++)
if (at(y, x) == '0') {
Field f = *this;
for (int c = 1; c < 8; c++) {
//cerr << "replacing 0 with " << c << endl;
f.set(y, x, c + '0');
r += f.recursive_rating(depth);
}
return r / 7;
}
int count = 0;
for (int x1 = 0; x1 < 7; x1++) {
if (at(0, x1) != ' ')
continue;
count++;
double t = 0;
for (int c = 0; c < 9; c++) {
//cerr << depth << " drop " << map(c) << " " << x1 + 1 << endl;
t += drop(maptochar(c), x1 + 1).recursive_rating(depth);
}
r += t / 9;
}
r = r / count;
hashes[buffer] = r;
//cerr << buffer << " " << hashes.size() << endl;
return r;
}
void Field::finalize_random() {
for (int y = 0; y < 7; y++)
for (int x = 0; x < 7; x++)
if (at(y, x) == '0') {
char number = int(rand() % 7) + '1';
set(y, x, number);
}
}
bool Field::add_B_row() {
for (int x = 0; x < 7; x++) {
if (at(0, x) != ' ')
return false; // lost
for (int y = 0; y < 6; y++)
set(y, x, at(y + 1, x));
Stone b = next_stone();
b.set_B();
set(6, x, b);
}
//cerr << to_string();
return true;
}
void Field::ann_input(float *a) const {
for (int i = 0; i < 49; ++i) {
for (int c = 0; c < 9; c++)
a[i*9+c] = 0;
char c = data[i].to_char();
switch (c) {
case ' ':
break;
case 'B':
a[i*9+9] = 1;
break;
case 'A':
a[i*9+8] = 1;
break;
default:
a[i*9+c - '0'] = 1;
}
}
}
void Field::set_random(int elements) {
line.clear();
for (int i = 0; i < 1400; i++) {
Stone n;
n.pick_random();
line.push_back(n);
}
while (elements--) {
int col;
while (1) {
col = rand() % 7 + 1;
if (at(0, col - 1) == ' ')
break;
}
Stone element = line.front();
line.pop_front();
*this = drop(element, col);
}
}
|
Python | UTF-8 | 2,094 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env python
import re
patt = r'(\w+) (\w+) \d\d \d\d:\d\d:\d\d\s+\d\d\d\d'
mon,tue,wed,thu,fri,sat,sun =0,0,0,0,0,0,0
jan,feb,mar,apr,may,jun,jul,aug,sep,octo,nov,dec=0,0,0,0,0,0,0,0,0,0,0,0
with open("redata1.txt") as fobj1:
for item in fobj1:
m = re.match(patt,item)
if m is not None:print m.group(1),m.group(2)
if m.group(1) =='Mon':mon +=1
elif m.group(1) =='Tue':tue +=1
elif m.group(1) =='Wed':wed +=1
elif m.group(1) =='Thu':thu +=1
elif m.group(1) =='Fri':fri +=1
elif m.group(1) =='Sat':sat +=1
elif m.group(1) =='Sun':sun +=1
if m.group(2) =='Jan':jan +=1
elif m.group(2)=='Feb':feb +=1
elif m.group(2)=='Mar':mar +=1
elif m.group(2)=='Apr':apr +=1
elif m.group(2)=='May':may +=1
elif m.group(2)=='Jun':jun +=1
elif m.group(2)=='Jul':jul +=1
elif m.group(2)=='Aug':aug +=1
elif m.group(2)=='Sep':sep +=1
elif m.group(2)=='Oct':octo +=1
elif m.group(2)=='Nov':nov +=1
elif m.group(2)=='Dec':dec +=1
print "The day in the txt file"
print "There are %d monday in the txt file" % mon
print "There are %d Tusday in the txt file" % tue
print "There are %d Wendesday in the txt file" % wed
print "There are %d Thursday in the txt file" % thu
print "There are %d Firday in the txt file" % fri
print "There are %d Saturday in the txt file" % sat
print "There are %d Sunday in the txt file" % sun
print "-"*100
print "The month in the txt file"
print "There are %d January in the txt file" % jan
print "There are %d February in the txt file" % feb
print "There are %d March in the txt file" % mar
print "There are %d April in the txt file" % apr
print "There are %d May in the txt file" % may
print "There are %d June in the txt file" % jun
print "There are %d July in the txt file" % jul
print "There are %d Aguest in the txt file" % aug
print "There are %d September in the txt file" % sep
print "There are %d October in the txt file" % octo
print "There are %d November in the txt file" % nov
print "There are %d December in the txt file" % dec
print 'Done'
|
SQL | UTF-8 | 102,103 | 2.8125 | 3 | [] | no_license | -- MySQL CS 155A
use a_bkinfo;
delete from a_bkorders.order_details;
delete from a_bkorders.order_headers;
delete from a_bkorders.customers ;
delete from a_bkorders.handling_fees;
delete from a_bkinfo.book_authors ;
delete from a_bkinfo.authors;
delete from a_bkinfo.book_topics;
delete from a_bkinfo.topics;
delete from a_bkinfo.books;
delete from a_bkinfo.publishers;
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values ( 0, 5, 5.00);
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values ( 6, 15, 7.00);
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values ( 16, 25, 9.00);
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values ( 26, 50, 12.00);
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values ( 51, 100, 15.00);
insert into a_bkorders.handling_fees(low_limit, high_limit, handling_fee) values (101, 999, 20.00);
-- publishers
Insert into a_bkinfo.publishers values (9000, 'Microsoft Press') ;
Insert into a_bkinfo.publishers values (9456, 'New Directions') ;
Insert into a_bkinfo.publishers values (9102, 'Alfred A. Knopf') ;
Insert into a_bkinfo.publishers values (9325, 'Addison Wesley') ;
Insert into a_bkinfo.publishers values (9745, 'Morgan Kaufmann') ;
Insert into a_bkinfo.publishers values (9521, 'Benjamin/Cummings') ;
Insert into a_bkinfo.publishers values (9822, 'O''Reilly') ;
Insert into a_bkinfo.publishers values (9030, 'McGraw Hill') ;
Insert into a_bkinfo.publishers values (9444, 'APress') ;
Insert into a_bkinfo.publishers values (9528, 'Manning');
Insert into a_bkinfo.publishers values (9020, 'Princeton Univer Press') ;
Insert into a_bkinfo.publishers values (9021, 'Yale University Press') ;
Insert into a_bkinfo.publishers values (9022, 'Havard University Press') ;
Insert into a_bkinfo.publishers values (9507, 'J.Q. Vanderbildt');
Insert into a_bkinfo.publishers values (9664, 'WROX') ;
Insert into a_bkinfo.publishers values (9825, 'MySQL Press') ;
Insert into a_bkinfo.publishers values (9623, 'Prentice Hall') ;
Insert into a_bkinfo.publishers values (9725, 'Springer') ;
Insert into a_bkinfo.publishers values (9561, 'Houghton Mifflin');
Insert into a_bkinfo.publishers values (9902, 'W.W. Norton ') ;
Insert into a_bkinfo.publishers values (9023, 'Holt Paperbacks') ;
Insert into a_bkinfo.publishers values (9024, 'Univ of California Press') ;
Insert into a_bkinfo.publishers values (9776, 'Simon and Schuster') ;
-- topics
Insert into a_bkinfo.topics values ('ADO', 'ADO');
Insert into a_bkinfo.topics values ('CMP', 'Computer Science');
Insert into a_bkinfo.topics values ('DB', 'Database Systems');
Insert into a_bkinfo.topics values ('FCT', 'Fiction');
Insert into a_bkinfo.topics values ('HIST', 'History');
Insert into a_bkinfo.topics values ('MySQL', 'MySQL Database');
Insert into a_bkinfo.topics values ('NET', '.NET Technologies');
Insert into a_bkinfo.topics values ('NOSQL', 'Alternate Data Storage');
Insert into a_bkinfo.topics values ('ORA', 'Oracle Database');
Insert into a_bkinfo.topics values ('POE', 'Poetry');
Insert into a_bkinfo.topics values ('PGM', 'General Programming');
Insert into a_bkinfo.topics values ('SCI', 'Science');
Insert into a_bkinfo.topics values ('SQL', 'SQL');
Insert into a_bkinfo.topics values ('SSRV', 'SQL Server Database');
Insert into a_bkinfo.topics values ('VB', 'Visual Basic');
Insert into a_bkinfo.topics values ('XML', 'XML Techniques');
Insert into a_bkinfo.topics values ('ART', 'Arts, Photography');
-- books
insert into a_bkinfo.books values (1101, 'Programming SQL Server with VB.NET', 9000, 2002, '0735615357', 300, 59.99);
insert into a_bkinfo.books values (1102, 'Practical Standards for VB.NET', 9000, 2003, '0735613568', 250, 49.99);
insert into a_bkinfo.books values (1103, 'Selected Poems', 9456, 1949, null, 125, 12.00);
insert into a_bkinfo.books values (1104, 'Sibley Guide to Bird Life and Behavior', 9102, 2001, '0679451234', 604, 45.00);
insert into a_bkinfo.books values (1105, 'SQL:1999 Relational Language Concepts', 9745, 2002, '1558604561', 450, 59.95);
insert into a_bkinfo.books values (1106, 'SQL for Smarties', 9745, 1995, '1558603239', 250, 29.00);
insert into a_bkinfo.books values (1107, 'SQL Puzzles and Answers', 9745, 1997, '1558604537', 325, 25.00);
insert into a_bkinfo.books values (1108, 'Database Systems', 9325, 1996, null, 680, 39.95);
insert into a_bkinfo.books values (1109, 'Intro to DB Systems-7th Ed', 9325, 2000, '0201385902', 650, 80.00);
insert into a_bkinfo.books values (1110, 'Adv SQL:1999 Object_Relational Features', 9745, 2002, '1558606077', 520, 59.95);
insert into a_bkinfo.books values (1128, 'Temporal Data and the Relational Model', 9325, 2003, 'na', 275, 49.95);
insert into a_bkinfo.books values (1133, 'Leaves of Grass', 9623, 1902, null, 125, 19.95);
insert into a_bkinfo.books values (1142, 'Relational Database Theory', 9521, 1993, null, 879, 95.00);
insert into a_bkinfo.books values (1161, 'SQL Programming Style', 9745, 2005, '0120887975', 780, 35.00);
insert into a_bkinfo.books values (1162, 'Trees and Hierarchies', 9745, 2004, '1558609202', 350, 35.00);
insert into a_bkinfo.books values (1180, 'MySQL Database Design and Tuning', 9825, 2005, '9780672234650', 400, 49.99);
insert into a_bkinfo.books values (1175, 'MySQL in a Nutshell', 9822, 2008, '9780596514331', 538, 34.99);
insert into a_bkinfo.books values (1182, 'MySQL Cookbook', 9822, 2007, '9780596527082', 918, 49.99);
insert into a_bkinfo.books values (1185, 'MySQL Stored Procedures', 9822, 2007, '9780596100896', 595, 49.99);
insert into a_bkinfo.books values (1184, 'MySQL Developer''s Library', 9325, 2009, '9780672329388', 650, 49.99);
insert into a_bkinfo.books values (1301, 'ADO and Oracle Workbook', 9000, 2002, '0265615357', 0, 59.99);
insert into a_bkinfo.books values (1302, 'ADO: the ebook', 9000, 2002, '0852515358', null, 49.99);
insert into a_bkinfo.books values (1303, 'Rainbows and Rainbows', 9521, 2002, '0657895157', null, 59.99);
insert into a_bkinfo.books values (1304, 'Stories of Discoveries', 9325, 2002, '0777788887', 300, 59.99);
insert into a_bkinfo.books values (1305, 'Journeys Through Flatland', 9325, 1958, '0387515357', 100, 9.99);
insert into a_bkinfo.books values (1306, 'Myths of SQL', 9664, 2000, '0454615027', 2895,259.99);
insert into a_bkinfo.books values (1188, 'SQL for MySQL Developers', 9325, 2007, '9780314973851', 105, 49.99);
insert into a_bkinfo.books values (1199, 'SQL is Fun', null, 2007, null, 98, 19.99);
insert into a_bkinfo.books values (2001, 'Programming SQL Server 2005', 9822, 2006, '0596003216', 675, 49.99);
insert into a_bkinfo.books values (2002, 'SQL Server 2005 A Beginner''s Guide', 9030, 2006, '0072260939', 402, 39.99);
insert into a_bkinfo.books values (2003, 'SQL Server 2005 Developer''s Guide', 9030, 2006, '0072260998', 402, 49.99);
insert into a_bkinfo.books values (2004, 'SQL Server 2005 Stored Procedure Prg', 9030, 2006, '0072262888', 399, 59.99);
insert into a_bkinfo.books values (2005, 'Developer''s Guide to SQL Server 2005', 9325, 2006, '0321382188', 894, 59.99);
insert into a_bkinfo.books values (2006, 'T_SQL Programming (Inside series)', 9000, 2006, '9780756978', 390, 44.99);
insert into a_bkinfo.books values (2007, 'T_SQL Querying (Inside series)', 9000, 2006, '9780733132', 391, 44.99);
insert into a_bkinfo.books values (2008, 'SQL Server 2005 T_Sql Recipies', 9444, 2006, '159059570X', 503, 59.99);
insert into a_bkinfo.books values (2009, 'SQL Server 2005 Express Edition', 9664, 2006, '0764589237', 150, 29.99);
insert into a_bkinfo.books values (1258, '.Net Development for Microsoft Office', 9000, 2005, '0735621322', 500, 49.99);
insert into a_bkinfo.books values (1689, 'Programming Visual Basic 2005: The Language', 9000, 2006, '9780735621831', 980, 59.99);
insert into a_bkinfo.books values (1678, 'Pro .NET 2.0 Windows Forms and Controls VB 2005', 9444, 2006, '1590959693', 1002, 49.99);
insert into a_bkinfo.books values (1278, 'Beginning VB 2008 Databases', 9444, 2008, '9781590599471', 408, 44.99);
insert into a_bkinfo.books values (1478, 'Beginning OO Programming with VB 2005', 9444, 2006, '1590597695', 368, 44.99);
insert into a_bkinfo.books values (1894, 'Programming Visual Basic 2005', 9822, 2005, '0596009496', 548, 39.99);
insert into a_bkinfo.books values (1279, 'Data-Driven Services with Silverlight 2', 9822, 2009, '9780596523091', 336, 44.99);
insert into a_bkinfo.books values (1776, 'Doing Objects in Visual Basic 2005', 9325, 2007, '9780321320490', 500, 49.99);
insert into a_bkinfo.books values (1948, 'Framework Design Guidelines', 9325, 2006, '0321246756', 346, 44.99);
insert into a_bkinfo.books values (1077, 'Programming for Poets', 9456, 2009, null, 401, 40.25);
insert into a_bkinfo.books values (1835, 'Data Binding with Windows Forms 2.0', 9325, 2006, '032126892X', 634, 49.99);
insert into a_bkinfo.books values (1677, 'Windows Forms 2.0 Programming', 9325, 2006, '0321267966', 982, 74.99);
insert into a_bkinfo.books values (1670, 'Applied .NET Framework Programming VB.NET', 9000, 2003, '0735678772', 608, 49.99);
insert into a_bkinfo.books values (1541, 'Freethinkers: A History of American Secularism', 9023, 2004, '9780805077766', 448, 12.79);
insert into a_bkinfo.books values (1542, 'The Great Agnostic: Robert Ingersoll and American Freethought',
9021, 2013, '9780300137255', 256, 16.99);
insert into a_bkinfo.books values (1543, 'Ties That Bind:The Story of an Afro-Cherokee Family in Slavery and Freedom',
9024, 2006, '9780520250024', 327, 26.96);
insert into a_bkinfo.books values (1544, 'The House on Diamond Hill: A Cherokee Plantation Story',
9024, 2012, '9780807872673', 336, 17.76);
insert into a_bkinfo.books values (1545, 'Team of Rivals: The Political Genius of Abraham Lincoln',
9776, 2006, '9780739469767', 944, 13.96);
insert into a_bkinfo.books values (1546, 'The Johnstown Flood', 9776, 1987, '9780671207144', 304, 10.39);
insert into a_bkinfo.books values (1401, 'Visual Studio Tools for Office', 9325, 2006, '0321334884', 976, 54.99);
insert into a_bkinfo.books values (1537, 'The BedSide Book of Birds', 9725, 2005, '0385514832', 68, 29.95);
insert into a_bkinfo.books values (1357, 'Why Birds Sing', 9725, 2005, '046507135X', 240, 26.00);
insert into a_bkinfo.books values (1609, 'In the Company of Crows and Ravens', 9725, 2005, '0300100760', 376, 18.95);
insert into a_bkinfo.books values (1979, 'Pro VB 2008 and the .NET 3.5 Platform', 9444, 2008, '9781590598221',1368, 59.99);
insert into a_bkinfo.books values (1457, 'Visual Basic 2008 Recipes', 9444, 2008, '9781590599709', 300, 79.99);
insert into a_bkinfo.books values (1425, 'The Singing Life of Birds', 9561, 2005, '0618405682', 468, 28.09);
insert into a_bkinfo.books values (1978, 'Acoustic Communication in Birds Vol1', 9561, 1983, '9780124268012', 360,103.91);
insert into a_bkinfo.books values (1621, 'The Unfeathered Bird', 9020, 2013, '9780691151342', 304, 31.29);
insert into a_bkinfo.books values (1622, 'Bird Sense', 9020, 2012, '9780802779663', 265, 25.00);
insert into a_bkinfo.books values (1623, 'Lichens of North America', 9021, 2001, '9780300082494', 828,135.00);
insert into a_bkinfo.books values (1624, 'Outstanding Mosses and Liverworts of Pennsylvania and Nearby States',
9021, 2006, '9780976092575',9, 19.99);
insert into a_bkinfo.books values (1626, 'Bark: A Field Guide to Trees of the Northeast', 9021, 2011, '9781584658528', 280, 25.95);
insert into a_bkinfo.books values (1625, 'Winter Weed Finder: A Guide to Dry Plants in Winter (Nature Study Guides)',
9021, 1989, '9780912550176', 64, 4.95);
insert into a_bkinfo.books values (1627, 'The Ants', 9022, 1990, '9780674040755', 732,120.18);
insert into a_bkinfo.books values (1628, 'The Superorganism:The Beauty, Elegance, Strangeness of Insect Societies',
9902, 2008, '9780393067040', 544, 34.65);
insert into a_bkinfo.books values (1629, 'The Leafcutter Ants: Civilization by Instinct', 9022, 1990, '9780393338683', 160, 19.95);
insert into a_bkinfo.books values (1630, 'The Social Conquest of Earth', 9022, 2012, '9780871404138', 352, 27.95);
insert into a_bkinfo.books values (1602, 'Goblin Market and Other Poems', 9022, 2012, '9780486280554', 68, 2.95);
insert into a_bkinfo.books values (1448, 'Backyard Birdsong Guide: Western North America', 9561, 2008, '9780811863971',3192, 29.99);
insert into a_bkinfo.books values (1877, 'High Performance MySQL', 9822, 2008, '9780596101718', 708, 49.99);
insert into a_bkinfo.books values (1200, 'The Mismeasure of Man', 9902, 1996, '9780393314250', 488, 17.95);
insert into a_bkinfo.books values (1245, 'A Scientific Approach to SQL Testing', 9902, 2010, '9780366214250', 488, 52.95);
insert into a_bkinfo.books values (1774, 'Ever Since Darwin', 9902, 1992, '9780393308181', 288, 15.95);
insert into a_bkinfo.books values (1234, 'Hen''s Teeth and Horse''s Toes ', 9902, 1994, '9780393311037', 416, 17.95);
insert into a_bkinfo.books values (1269, 'Querying XML', 9745, 2006, '9781558607118', 848, 63.95);
insert into a_bkinfo.books values (1525, 'Interface-Oriented Design', 9725, 2006, '0976697050', 213, 29.99);
insert into a_bkinfo.books values (1619, 'The Oject-Oriented Thought Process', 9725, 2004, '9780672326110', 158, 29.99);
insert into a_bkinfo.books values (1483, 'Programming with XML', 9745, 2008, null, 125, 19.99);
insert into a_bkinfo.books values (2017, 'Functional Programming', 9528, 2010, '9781933988924', 528, 49.99);
insert into a_bkinfo.books values (2018, 'Oracle Database 11g SQL', 9030, 2008, '9780071498500', 650, 49.99);
insert into a_bkinfo.books values (2025, 'Oracle SQL Fundamentals I Exam Guide', 9030, 2008, '9780071597869', 572, 59.99);
insert into a_bkinfo.books values (2027, 'Mastering Oracle SQL and SQL-Plus', 9444, 2005, '9781590594487', 464, 39.99);
insert into a_bkinfo.books values (2028, 'Mastering Oracle Databases', 9444, 2010, '9781599594487', 464, 59.99);
insert into a_bkinfo.books values (2029, 'The Forgotten Bird Strikes Back ', 9030, 2010, '9091599594487', 5, 1.99);
insert into a_bkinfo.books values (2031, 'Comparative SQL', 9444, 2013, '9781599591237', 750, 99.99);
insert into a_bkinfo.books values (2032, 'Oracle and the rest of the world', 9030, 2013, '9091599593217', 250, 55.99);
insert into a_bkinfo.books values (2622, 'Outstanding Bryophytes', 9021, 2013, null,956, 89.99);
insert into a_bkinfo.books values (2623, 'Hornworts and Liverworts in your Garden ', 9021, 2013, null,501, 29.99);
-- book topics
Insert into a_bkinfo.book_topics values (1602, 'POE');
Insert into a_bkinfo.book_topics values (2018, 'ORA');
Insert into a_bkinfo.book_topics values (2018, 'SQL');
Insert into a_bkinfo.book_topics values (2025, 'ORA');
Insert into a_bkinfo.book_topics values (2025, 'SQL');
Insert into a_bkinfo.book_topics values (2027, 'ORA');
Insert into a_bkinfo.book_topics values (2027, 'SQL');
Insert into a_bkinfo.book_topics values (1101, 'VB');
Insert into a_bkinfo.book_topics values (1101, 'SSRV');
Insert into a_bkinfo.book_topics values (1101, 'NET');
Insert into a_bkinfo.book_topics values (1102, 'VB');
Insert into a_bkinfo.book_topics values (1102, 'NET');
Insert into a_bkinfo.book_topics values (1103, 'POE');
Insert into a_bkinfo.book_topics values (1104, 'SCI');
Insert into a_bkinfo.book_topics values (1105, 'SQL');
Insert into a_bkinfo.book_topics values (1105, 'DB');
Insert into a_bkinfo.book_topics values (1106, 'SQL');
Insert into a_bkinfo.book_topics values (1107, 'SQL');
Insert into a_bkinfo.book_topics values (1108, 'DB');
Insert into a_bkinfo.book_topics values (1109, 'DB');
Insert into a_bkinfo.book_topics values (1110, 'SQL');
Insert into a_bkinfo.book_topics values (1110, 'DB');
Insert into a_bkinfo.book_topics values (1128, 'DB');
Insert into a_bkinfo.book_topics values (1128, 'SQL');
Insert into a_bkinfo.book_topics values (1133, 'POE');
Insert into a_bkinfo.book_topics values (1142, 'DB');
Insert into a_bkinfo.book_topics values (1161, 'SQL');
Insert into a_bkinfo.book_topics values (1301, 'ORA');
Insert into a_bkinfo.book_topics values (1301, 'ADO');
Insert into a_bkinfo.book_topics values (1302, 'ADO');
Insert into a_bkinfo.book_topics values (1303, 'SCI');
Insert into a_bkinfo.book_topics values (1303, 'POE');
Insert into a_bkinfo.book_topics values (1304, 'SCI');
Insert into a_bkinfo.book_topics values (1304, 'FCT');
Insert into a_bkinfo.book_topics values (1304, 'POE');
Insert into a_bkinfo.book_topics values (1306, 'FCT');
Insert into a_bkinfo.book_topics values (1306, 'SQL');
Insert into a_bkinfo.book_topics values (1162, 'SQL');
Insert into a_bkinfo.book_topics values (1180, 'DB');
Insert into a_bkinfo.book_topics values (1180, 'MySQL');
Insert into a_bkinfo.book_topics values (1175, 'MySQL');
Insert into a_bkinfo.book_topics values (1175, 'SQL');
Insert into a_bkinfo.book_topics values (1182, 'MySQL');
Insert into a_bkinfo.book_topics values (1182, 'SQL');
Insert into a_bkinfo.book_topics values (1185, 'MySQL');
Insert into a_bkinfo.book_topics values (1185, 'SQL');
Insert into a_bkinfo.book_topics values (1184, 'MySQL');
Insert into a_bkinfo.book_topics values (1184, 'SQL');
Insert into a_bkinfo.book_topics values (1188, 'MySQL');
Insert into a_bkinfo.book_topics values (1188, 'SQL');
Insert into a_bkinfo.book_topics values (2001, 'SSRV');
Insert into a_bkinfo.book_topics values (2002, 'SSRV');
Insert into a_bkinfo.book_topics values (2002, 'SQL');
Insert into a_bkinfo.book_topics values (2003, 'SSRV');
Insert into a_bkinfo.book_topics values (2003, 'SQL');
Insert into a_bkinfo.book_topics values (2004, 'SSRV');
Insert into a_bkinfo.book_topics values (2004, 'SQL');
Insert into a_bkinfo.book_topics values (2005, 'SSRV');
Insert into a_bkinfo.book_topics values (2005, 'SQL');
Insert into a_bkinfo.book_topics values (2006, 'SSRV');
Insert into a_bkinfo.book_topics values (2006, 'SQL');
Insert into a_bkinfo.book_topics values (2007, 'SSRV');
Insert into a_bkinfo.book_topics values (2007, 'SQL');
Insert into a_bkinfo.book_topics values (2008, 'SSRV');
Insert into a_bkinfo.book_topics values (2008, 'SQL');
Insert into a_bkinfo.book_topics values (2009, 'SSRV');
Insert into a_bkinfo.book_topics values (2009, 'SQL');
Insert into a_bkinfo.book_topics values (1245, 'SQL');
Insert into a_bkinfo.book_topics values (1245, 'DB');
Insert into a_bkinfo.book_topics values (1234, 'SCI');
Insert into a_bkinfo.book_topics values (1774, 'SCI');
Insert into a_bkinfo.book_topics values (1200, 'SCI');
Insert into a_bkinfo.book_topics values (1877, 'MySQL');
Insert into a_bkinfo.book_topics values (1269, 'XML');
Insert into a_bkinfo.book_topics values (1483, 'SQL');
Insert into a_bkinfo.book_topics values (1483, 'XML');
Insert into a_bkinfo.book_topics values (1483, 'PGM');
Insert into a_bkinfo.book_topics values (1619, 'PGM');
Insert into a_bkinfo.book_topics values (1525, 'PGM');
Insert into a_bkinfo.book_topics values (1258, 'NET');
Insert into a_bkinfo.book_topics values (1689, 'NET');
Insert into a_bkinfo.book_topics values (1689, 'VB');
Insert into a_bkinfo.book_topics values (1678, 'NET');
Insert into a_bkinfo.book_topics values (1678, 'VB');
Insert into a_bkinfo.book_topics values (1278, 'NET');
Insert into a_bkinfo.book_topics values (1278, 'SSRV');
Insert into a_bkinfo.book_topics values (1278, 'DB');
Insert into a_bkinfo.book_topics values (1278, 'VB');
Insert into a_bkinfo.book_topics values (1478, 'VB');
Insert into a_bkinfo.book_topics values (1894, 'VB');
Insert into a_bkinfo.book_topics values (1279, 'NET');
Insert into a_bkinfo.book_topics values (1279, 'VB');
Insert into a_bkinfo.book_topics values (1948, 'NET');
Insert into a_bkinfo.book_topics values (1835, 'NET');
Insert into a_bkinfo.book_topics values (1677, 'NET');
Insert into a_bkinfo.book_topics values (1670, 'NET');
Insert into a_bkinfo.book_topics values (1670, 'VB');
Insert into a_bkinfo.book_topics values (1401, 'NET');
Insert into a_bkinfo.book_topics values (1077, 'PGM');
Insert into a_bkinfo.book_topics values (1077, 'POE');
Insert into a_bkinfo.book_topics values (1457, 'VB');
Insert into a_bkinfo.book_topics values (1979, 'VB');
Insert into a_bkinfo.book_topics values (1979, 'NET');
Insert into a_bkinfo.book_topics values (1630, 'SCI');
Insert into a_bkinfo.book_topics values (1629, 'SCI');
Insert into a_bkinfo.book_topics values (1609, 'SCI');
Insert into a_bkinfo.book_topics values (1357, 'SCI');
Insert into a_bkinfo.book_topics values (1537, 'SCI');
Insert into a_bkinfo.book_topics values (1425, 'SCI');
Insert into a_bkinfo.book_topics values (1978, 'SCI');
Insert into a_bkinfo.book_topics values (1448, 'SCI');
Insert into a_bkinfo.book_topics values (2029, 'FCT');
Insert into a_bkinfo.book_topics values (2029, 'HIST');
Insert into a_bkinfo.book_topics values (2028, 'ORA');
Insert into a_bkinfo.book_topics values (2028, 'MySQL');
Insert into a_bkinfo.book_topics values (1628, 'SCI');
Insert into a_bkinfo.book_topics values (1627, 'SCI');
Insert into a_bkinfo.book_topics values (1626, 'SCI');
Insert into a_bkinfo.book_topics values (1625, 'SCI');
Insert into a_bkinfo.book_topics values (1624, 'SCI');
Insert into a_bkinfo.book_topics values (1623, 'SCI');
Insert into a_bkinfo.book_topics values (1622, 'SCI');
Insert into a_bkinfo.book_topics values (1621, 'SCI');
Insert into a_bkinfo.book_topics values (1621, 'ART');
Insert into a_bkinfo.book_topics values (2031, 'ORA');
Insert into a_bkinfo.book_topics values (2031, 'SQL');
Insert into a_bkinfo.book_topics values (2031, 'SSRV');
Insert into a_bkinfo.book_topics values (2032, 'ORA');
Insert into a_bkinfo.book_topics values (2032, 'DB');
Insert into a_bkinfo.book_topics values (1541, 'HIST');
Insert into a_bkinfo.book_topics values (1542, 'HIST');
Insert into a_bkinfo.book_topics values (1543, 'HIST');
Insert into a_bkinfo.book_topics values (1544, 'HIST');
Insert into a_bkinfo.book_topics values (1545, 'HIST');
Insert into a_bkinfo.book_topics values (1546, 'HIST');
-- authors
insert into a_bkinfo.authors values ('Paolo', 'Atzeni', 'A0110');
insert into a_bkinfo.authors values ('Francesco', 'Balena', 'B2010');
insert into a_bkinfo.authors values ('Joe', 'Celko', 'C0030');
insert into a_bkinfo.authors values ('C.J.', 'Date', 'D0030');
insert into a_bkinfo.authors values ('Valeria', 'Deantonellis', 'D0050');
insert into a_bkinfo.authors values ('Alligator', 'Descartes', 'D0070');
insert into a_bkinfo.authors values ('High', 'Darwin', 'D2340');
insert into a_bkinfo.authors values ('Rick', 'Dobson', 'D3040');
insert into a_bkinfo.authors values ('Hermann', 'Hesse', 'H0070');
insert into a_bkinfo.authors values ('Michael', 'Irwin', 'I0010');
insert into a_bkinfo.authors values ('Nikos', 'Lorentzos', 'L0040');
insert into a_bkinfo.authors values ('Audre', 'Lorde', 'L0130');
insert into a_bkinfo.authors values ('Alden', 'Lorents', 'L0140');
insert into a_bkinfo.authors values ('Jim', 'Melton', 'M0053');
insert into a_bkinfo.authors values ('James', 'Morgan', 'M0110');
insert into a_bkinfo.authors values ('Joline', 'Morrison', 'M0150');
insert into a_bkinfo.authors values ('Jeffrey', 'Richter', 'R2040');
insert into a_bkinfo.authors values ('David Allen', 'Sibley', 'S0025');
insert into a_bkinfo.authors values ('Walt', 'Whitman', 'W0030');
insert into a_bkinfo.authors values ('William Carlos', 'Williams', 'W0060');
insert into a_bkinfo.authors values ('Katrina','van Grouw','V1144');
insert into a_bkinfo.authors values ('Tim','Birkhead','B1144');
insert into a_bkinfo.authors values ('Susan','Munch','M2475');
insert into a_bkinfo.authors values ('Irwin','Brodo','B1244');
insert into a_bkinfo.authors values ('Sylvia','Sharnoff','S2144');
insert into a_bkinfo.authors values ('Stephan','Sharnoff','S2145');
insert into a_bkinfo.authors values ('Michael','Wojtech','W5145');
insert into a_bkinfo.authors values ('Dorcas','Miller','M3145');
insert into a_bkinfo.authors values ('Donald','Miller','M3154');
insert into a_bkinfo.authors values ('Lance','Delano','D0845');
insert into a_bkinfo.authors values ('Joseph', 'Sack','S0205');
insert into a_bkinfo.authors values ('Itzik','Ben-Gan','B1112');
insert into a_bkinfo.authors values ('Lubor','Kollar','K2002');
insert into a_bkinfo.authors values (null,'Prince','P3002');
insert into a_bkinfo.authors values ('Dejan','Sarka','S2178');
insert into a_bkinfo.authors values ('Bob','Beauchemin','B2078');
insert into a_bkinfo.authors values ('Dan','Sullivan','S2183');
insert into a_bkinfo.authors values ('Dejan','Sunderic','S2789');
insert into a_bkinfo.authors values ('Michael','Otey','O0345') ;
insert into a_bkinfo.authors values ('Denielle','Otey','O0346');
insert into a_bkinfo.authors values ('Dusan','Petkovic','P2308');
insert into a_bkinfo.authors values ('Bill','Hamilton','H2987');
insert into a_bkinfo.authors values ('Cruela', 'de Vil', 'D2110');
insert into a_bkinfo.authors values ('Willie', 'Mammoth', 'M3110');
insert into a_bkinfo.authors values ('Bill', 'Shredder', 'S3110');
insert into a_bkinfo.authors values ('Pete', 'Moss', 'M4540');
insert into a_bkinfo.authors values ('Terry', 'Incognito', 'I5110');
insert into a_bkinfo.authors values ('Joseph', 'Sack','S0250');
insert into a_bkinfo.authors values ('Rajesh', 'George','G4040');
insert into a_bkinfo.authors values ('Robert', 'Schneider', 'S1164');
insert into a_bkinfo.authors values ('Russel', 'Dyer', 'D8902');
insert into a_bkinfo.authors values ('Jason', 'Price', 'P6030');
insert into a_bkinfo.authors values ('Lex', 'de Haan', 'D6290');
insert into a_bkinfo.authors values ('Roopesh', 'Ramklass', 'R0700');
insert into a_bkinfo.authors values ('John', 'Watson', 'W4512');
insert into a_bkinfo.authors values ('Paul','DuBois','D8956');
insert into a_bkinfo.authors values ('Guy','Harrison','H0202');
insert into a_bkinfo.authors values ('Steven','Feuerstein','F2987');
insert into a_bkinfo.authors values ('Rick','van der Lans','L0453');
insert into a_bkinfo.authors values ('Andrew', 'Whitechapel', 'W0078');
insert into a_bkinfo.authors values ('Matthew', 'MacDonald', 'M0157');
insert into a_bkinfo.authors values ('Vidya Vrat', 'Agarwal', 'A5748');
insert into a_bkinfo.authors values ('James', 'Huddleston', 'H8972');
insert into a_bkinfo.authors values ('Daniel', 'Clark', 'C5820');
insert into a_bkinfo.authors values ('Jesse', 'Liberty', 'L0245');
insert into a_bkinfo.authors values ('John', 'Papa', 'P0500');
insert into a_bkinfo.authors values ('Krzysztof', 'Cwalina', 'C8794');
insert into a_bkinfo.authors values ('Brad', 'Abrams', 'A0094');
insert into a_bkinfo.authors values ('Debra', 'Kutata', 'K7845');
insert into a_bkinfo.authors values ('Brain', 'Noyes', 'N6457');
insert into a_bkinfo.authors values ('Chris', 'Sells', 'S2548');
insert into a_bkinfo.authors values ('Michael', 'Weinhardt', 'W2388');
insert into a_bkinfo.authors values ('Eric', 'Lippert', 'L3001');
insert into a_bkinfo.authors values ('Rakesh', 'Rajan', 'R0040');
insert into a_bkinfo.authors values ('Allen', 'Jones', 'J6700');
insert into a_bkinfo.authors values ('Todd', 'Herman', 'H0187');
insert into a_bkinfo.authors values ('Eric', 'Carter', 'C0844');
insert into a_bkinfo.authors values ('David', 'Rothenberg', 'R5858');
insert into a_bkinfo.authors values ('Christina', 'Rossetti', 'R5808');
insert into a_bkinfo.authors values ('Susan','Jackoby','J8845');
insert into a_bkinfo.authors values ('Tiya','Miles','M0295');
insert into a_bkinfo.authors values ('David','McCullough','M3200');
insert into a_bkinfo.authors values ('Doris Kearns','Goodwin','G8495');
insert into a_bkinfo.authors values ('John', 'Marzluff', 'M0024');
insert into a_bkinfo.authors values ('Tony', 'Angell', 'A7745');
insert into a_bkinfo.authors values ('Andrew', 'Troelsen', 'T6789');
insert into a_bkinfo.authors values ('Donald', 'Kroodsma', 'K7620');
insert into a_bkinfo.authors values ('Stephen Jay', 'Gould', 'G5050');
insert into a_bkinfo.authors values ('Peter', 'Zaitsev', 'Z0878');
insert into a_bkinfo.authors values ('Vadim', 'Tkaechenko', 'T6748');
insert into a_bkinfo.authors values ('Jeremy', 'Zawodny', 'Z0897');
insert into a_bkinfo.authors values ('Arjen', 'Lentz', 'L2444');
insert into a_bkinfo.authors values ('Derek', 'Balling', 'B0056');
insert into a_bkinfo.authors values ('Ken', 'Pugh', 'P7477');
insert into a_bkinfo.authors values ('Matt', 'Weisfeld', 'W3433');
insert into a_bkinfo.authors values ('Baron', 'Schwartz', 'S1900');
insert into a_bkinfo.authors values ('Graeme', 'Gibson', 'G4748');
insert into a_bkinfo.authors values ('Bert','Holldobler','H3145');
insert into a_bkinfo.authors values ('E.O.','Wilson','W3145');
-- book_authors
insert into a_bkinfo.book_authors values (1101, 'D3040', 1);
insert into a_bkinfo.book_authors values (1102, 'B2010', 1);
insert into a_bkinfo.book_authors values (1102, 'R2040', 2);
insert into a_bkinfo.book_authors values (1104, 'S0025', 1);
insert into a_bkinfo.book_authors values (1105, 'M0053', 1);
insert into a_bkinfo.book_authors values (1106, 'C0030', 1);
insert into a_bkinfo.book_authors values (1107, 'C0030', 1);
insert into a_bkinfo.book_authors values (1108, 'L0140', 1);
insert into a_bkinfo.book_authors values (1108, 'M0110', 2);
insert into a_bkinfo.book_authors values (1109, 'D0030', 1);
insert into a_bkinfo.book_authors values (1109, 'I0010', 2);
insert into a_bkinfo.book_authors values (1109, 'W0060', 3);
insert into a_bkinfo.book_authors values (1110, 'M0053', 1);
insert into a_bkinfo.book_authors values (1128, 'D0030', 1);
insert into a_bkinfo.book_authors values (1128, 'D2340', 2);
insert into a_bkinfo.book_authors values (1128, 'L0040', 3);
insert into a_bkinfo.book_authors values (1128, 'M0150', 4);
insert into a_bkinfo.book_authors values (1133, 'W0030', 1);
insert into a_bkinfo.book_authors values (1142, 'A0110', 1);
insert into a_bkinfo.book_authors values (1142, 'D0050', 2);
insert into a_bkinfo.book_authors values (1161, 'C0030', 1);
insert into a_bkinfo.book_authors values (1162, 'C0030', 1);
insert into a_bkinfo.book_authors values (1175, 'D8956', 1);
insert into a_bkinfo.book_authors values (1180, 'S1164', 1);
insert into a_bkinfo.book_authors values (1182, 'D8902', 1);
insert into a_bkinfo.book_authors values (1184, 'D8956', 1);
insert into a_bkinfo.book_authors values (1185, 'H0202', 1);
insert into a_bkinfo.book_authors values (1185, 'F2987', 2);
insert into a_bkinfo.book_authors values (1301, 'D2110', 1);
insert into a_bkinfo.book_authors values (1302, 'M3110', 1);
insert into a_bkinfo.book_authors values (1303, 'M3110', 1);
insert into a_bkinfo.book_authors values (1304, 'D2110', 1);
insert into a_bkinfo.book_authors values (1305, 'S3110', 1);
insert into a_bkinfo.book_authors values (1306, 'S3110', 1);
insert into a_bkinfo.book_authors values (1188, 'L0453', 1);
insert into a_bkinfo.book_authors values (2009, 'G4040', 1);
insert into a_bkinfo.book_authors values (2009, 'D0845', 2);
insert into a_bkinfo.book_authors values (2008, 'S0205', 1);
insert into a_bkinfo.book_authors values (2007, 'B1112', 1);
insert into a_bkinfo.book_authors values (2007, 'K2002', 2);
insert into a_bkinfo.book_authors values (2007, 'S2178', 3);
insert into a_bkinfo.book_authors values (2006, 'B1112', 1);
insert into a_bkinfo.book_authors values (2006, 'K2002', 3);
insert into a_bkinfo.book_authors values (2006, 'S2178', 2);
insert into a_bkinfo.book_authors values (2005, 'B2078', 1);
insert into a_bkinfo.book_authors values (2005, 'S2183', 2);
insert into a_bkinfo.book_authors values (2004, 'S2789', 1);
insert into a_bkinfo.book_authors values (2003, 'O0345', 1);
insert into a_bkinfo.book_authors values (2003, 'O0346', 2);
insert into a_bkinfo.book_authors values (2002, 'P2308', 1);
insert into a_bkinfo.book_authors values (2001, 'H2987', 1);
insert into a_bkinfo.book_authors values (1602, 'R5808', 1);
insert into a_bkinfo.book_authors values (1258, 'W0078', 1);
insert into a_bkinfo.book_authors values (1689, 'B2010', 1);
insert into a_bkinfo.book_authors values (1678, 'M0157', 1);
insert into a_bkinfo.book_authors values (1278, 'A5748', 1);
insert into a_bkinfo.book_authors values (1278, 'H8972', 2);
insert into a_bkinfo.book_authors values (1478, 'C5820', 1);
insert into a_bkinfo.book_authors values (1894, 'L0245', 1);
insert into a_bkinfo.book_authors values (1279, 'P0500', 1);
insert into a_bkinfo.book_authors values (1279, 'K7845', 2);
insert into a_bkinfo.book_authors values (1948, 'C8794', 1);
insert into a_bkinfo.book_authors values (1948, 'A0094', 2);
insert into a_bkinfo.book_authors values (1835, 'N6457', 1);
insert into a_bkinfo.book_authors values (1677, 'S2548', 1);
insert into a_bkinfo.book_authors values (1677, 'W2388', 2);
insert into a_bkinfo.book_authors values (1670, 'R2040', 1);
insert into a_bkinfo.book_authors values (1670, 'B2010', 2);
insert into a_bkinfo.book_authors values (1401, 'C0844', 1);
insert into a_bkinfo.book_authors values (1401, 'L3001', 2);
insert into a_bkinfo.book_authors values (1457, 'H0187', 1);
insert into a_bkinfo.book_authors values (1457, 'J6700', 2);
insert into a_bkinfo.book_authors values (1457, 'M0157', 3);
insert into a_bkinfo.book_authors values (1457, 'R0040', 4);
insert into a_bkinfo.book_authors values (1979, 'T6789', 1);
insert into a_bkinfo.book_authors values (1609, 'M0024', 1);
insert into a_bkinfo.book_authors values (1609, 'A7745', 2);
insert into a_bkinfo.book_authors values (1357, 'R5858', 1);
insert into a_bkinfo.book_authors values (1537, 'G4748', 1);
insert into a_bkinfo.book_authors values (1541, 'J8845', 1);
insert into a_bkinfo.book_authors values (1542, 'J8845', 1);
insert into a_bkinfo.book_authors values (1543, 'M0295', 1);
insert into a_bkinfo.book_authors values (1544, 'M0295', 1);
insert into a_bkinfo.book_authors values (1545, 'G8495', 1);
insert into a_bkinfo.book_authors values (1546, 'M3200', 1);
insert into a_bkinfo.book_authors values (1425, 'K7620', 1);
insert into a_bkinfo.book_authors values (1448, 'K7620', 1);
insert into a_bkinfo.book_authors values (1978, 'K7620', 1);
insert into a_bkinfo.book_authors values (1200, 'G5050', 1);
insert into a_bkinfo.book_authors values (1774, 'G5050', 1);
insert into a_bkinfo.book_authors values (1234, 'G5050', 1);
insert into a_bkinfo.book_authors values (1877, 'S1900', 1);
insert into a_bkinfo.book_authors values (1877, 'Z0878', 2);
insert into a_bkinfo.book_authors values (1877, 'T6748', 3);
insert into a_bkinfo.book_authors values (1877, 'Z0897', 4);
insert into a_bkinfo.book_authors values (1877, 'L2444', 5);
insert into a_bkinfo.book_authors values (1877, 'B0056', 6);
insert into a_bkinfo.book_authors values (1269, 'M0053', 1);
insert into a_bkinfo.book_authors values (1619, 'W3433', 1);
insert into a_bkinfo.book_authors values (1525, 'P7477', 1);
insert into a_bkinfo.book_authors values (2018, 'P6030', 1);
insert into a_bkinfo.book_authors values (2025, 'D6290', 1);
insert into a_bkinfo.book_authors values (2025, 'R0700', 2);
insert into a_bkinfo.book_authors values (2027, 'W4512', 1);
insert into a_bkinfo.book_authors values (1627, 'H3145', 1);
insert into a_bkinfo.book_authors values (1627, 'W3145', 2);
insert into a_bkinfo.book_authors values (1628, 'H3145', 1);
insert into a_bkinfo.book_authors values (1628, 'W3145', 2);
insert into a_bkinfo.book_authors values (1629, 'H3145', 1);
insert into a_bkinfo.book_authors values (1629, 'W3145', 2);
insert into a_bkinfo.book_authors values (1630, 'W3145', 1);
insert into a_bkinfo.book_authors values (1626, 'M3145', 1);
insert into a_bkinfo.book_authors values (1625, 'W5145', 1);
insert into a_bkinfo.book_authors values (1623, 'B1244', 1);
insert into a_bkinfo.book_authors values (1623, 'S2144', 2);
insert into a_bkinfo.book_authors values (1623, 'S2145', 3);
insert into a_bkinfo.book_authors values (1624, 'M2475', 1);
insert into a_bkinfo.book_authors values (1622, 'B1144', 1);
insert into a_bkinfo.book_authors values (1621, 'V1144', 1);
insert into a_bkinfo.book_authors values (2031, 'I5110', 1);
insert into a_bkinfo.book_authors values (2032, 'I5110', 1);
insert into a_bkinfo.book_authors values (2622, 'M4540', 1);
insert into a_bkinfo.book_authors values (2623, 'M4540', 1);
-- customers
insert into a_bkorders.customers values (208950, 'Adams', 'Samuel', 'MA', '02106', '1996-04-15' );
insert into a_bkorders.customers values (200368, 'Blake', 'William', 'CA', '95959', '1997-07-15' );
insert into a_bkorders.customers values (258595, 'Jobs', 'Peter', 'MA', '02575', '1997-01-09' );
insert into a_bkorders.customers values (263119, 'Jones', null, 'IL', '62979', '1997-03-02' );
insert into a_bkorders.customers values (224038, 'Austin', 'Pat', 'CA', '95900', '1997-08-02' );
insert into a_bkorders.customers values (255919, 'Milton', 'John', 'NJ', '08235', '2012-05-31' );
insert into a_bkorders.customers values (211483, 'Carroll', 'Lewis', 'CA', '94203', '1998-08-08' );
insert into a_bkorders.customers values (221297, 'Dodgson', 'Charles', 'MI', '49327', '2001-05-06' );
insert into a_bkorders.customers values (261502, 'Hawthorne', 'Nathaniel', 'MA', '02297', '2001-10-12' );
insert into a_bkorders.customers values (212921, 'Books on Tap', NULL, 'CA', '94112', '2002-01-06' );
insert into a_bkorders.customers values (260368, 'Muller', 'Jonathan', 'IL', '62885', '2005-12-15' );
insert into a_bkorders.customers values (259969, 'Carlsen', 'Benny', 'NJ', '08505', '2012-07-12' );
insert into a_bkorders.customers values (239427, 'Marksa', 'Anna', 'NJ', '08495', '2012-02-28' );
insert into a_bkorders.customers values (296598, 'Collins', 'Douglas', 'MO', '65836', '2005-04-25' );
insert into a_bkorders.customers values (276381, 'Collins', 'Douglas', 'OH', '22451', '2005-02-08' );
insert into a_bkorders.customers values (234138, 'Keats', 'John', 'IL', '61500', '2006-04-30' );
insert into a_bkorders.customers values (267780, 'Shelly', 'Mary', 'CA', '94100', '2010-10-02' );
insert into a_bkorders.customers values (290298, 'Swift', 'Jonathan', 'MI', '49201', '2010-10-12' );
insert into a_bkorders.customers values (226656, 'Randall', 'Randell', 'NJ', '08251', '2012-08-08' );
insert into a_bkorders.customers values (222477, 'Rossetti', 'Christina', 'MI', '49742', '2012-07-11' );
insert into a_bkorders.customers values (227105, 'Kafka', 'Franz', 'MA', '02297', '2010-12-31' );
insert into a_bkorders.customers values (202958, 'Denver', null, 'IL', '60405', '2012-01-15' );
insert into a_bkorders.customers values (218709, 'Bonnard', 'Paul', 'MA', '02558', '2005-11-15' );
insert into a_bkorders.customers values (217796, 'Anders', null, 'IL', '62505', '2012-03-30' );
insert into a_bkorders.customers values (272787, 'Carlson', 'Ben', 'IL', '62505', '2012-05-05' );
insert into a_bkorders.customers values (234709, 'Brahms', 'Johnnie', 'MA', '02558', '2014-08-15' );
insert into a_bkorders.customers values (217002, 'Grieg', 'Edvard', 'IL', '62329', '2014-06-28' );
insert into a_bkorders.customers values (272611, 'Jarrett', 'Keith', 'IL', '62329', '2014-07-11' );
insert into a_bkorders.customers values (299099, 'Sam', 'Dave', 'CA', '94141', '2012-01-01' );
insert into a_bkorders.customers values (259906, 'Capybara', 'Wile E.', 'CA', '94132', '2014-08-05' );
insert into a_bkorders.customers values (259907, 'Hedge', 'Mr.', 'CA', '94132', '2012-09-05' );
insert into a_bkorders.customers values (282716, 'Biederbecke','Dwight', 'PA', '18106', '2014-01-01' );
insert into a_bkorders.customers values (287261, 'Biederbecke','Bix', 'PA', '18106', '2014-08-01' );
insert into a_bkorders.customers values (226275, 'Dalrymple','Jack', 'SD', '57216', '2014-01-01' );
insert into a_bkorders.customers values (228175, 'Cardin','Benjamin', 'MD', '20609', '2014-04-02' );
insert into a_bkorders.customers values (228275, 'Mikulski','Barbara', 'MD', '21203', '2014-04-04' );
insert into a_bkorders.customers values (228352, 'Edwards','Donna', 'MD', '21205', '2014-06-08' );
-- ------------------------------------------------------------------
-- orders and order_details
-- ------------------------------------------------------------------
/* Oct 2013 */
Insert into a_bkorders.order_headers values(31871, '2013-10-03', 276381);
Insert into a_bkorders.order_details values(31871, 1, 1448, 1, 30.00);
Insert into a_bkorders.order_details values(31871, 2, 1162, 2, 34.95);
Insert into a_bkorders.order_headers values(31872, '2013-10-03', 200368);
Insert into a_bkorders.order_details values(31872, 1, 1448, 100, 30.00);
Insert into a_bkorders.order_headers values(1563, '2013-10-03', 222477);
Insert into a_bkorders.order_details values(1563, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_details values(1563, 2, 1106, 1, 29.00);
Insert into a_bkorders.order_headers values(1601, '2013-10-06', 221297);
Insert into a_bkorders.order_details values(1601, 1, 1107, 1, 22.50);
Insert into a_bkorders.order_details values(1601, 2, 1483, 5, 18.19);
Insert into a_bkorders.order_details values(1601, 3, 1689, 10, 55.19);
Insert into a_bkorders.order_details values(1601, 4, 1448, 5, 26.99);
Insert into a_bkorders.order_headers values(1702, '2013-10-06', 227105);
Insert into a_bkorders.order_details values(1702, 1, 1110, 2, 50.00);
Insert into a_bkorders.order_headers values(1705, '2013-10-06', 261502);
Insert into a_bkorders.order_details values(1705, 1, 1776, 100, 44.99);
Insert into a_bkorders.order_details values(1705, 2, 1128, 400, 41.40);
Insert into a_bkorders.order_headers values(14873, '2013-10-11', 267780);
Insert into a_bkorders.order_details values(14873, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(14873, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_headers values(1605, '2013-10-06', 217796);
Insert into a_bkorders.order_details values(1605, 1, 1106, 5, 34.95);
Insert into a_bkorders.order_details values(1605, 2, 1107, 5, 20.95);
Insert into a_bkorders.order_details values(1605, 3, 2001, 5, 39.00);
Insert into a_bkorders.order_details values(1605, 4, 2007, 1, 39.00);
Insert into a_bkorders.order_details values(1605, 5, 2008, 1, 39.00);
Insert into a_bkorders.order_details values(1605, 6, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(1605, 7, 1101, 5, 55.95);
Insert into a_bkorders.order_details values(1605, 8, 1103, 5, 10.00);
/* Nov 2013 */
Insert into a_bkorders.order_headers values(5261, '2013-11-28', 200368);
Insert into a_bkorders.order_details values(5261, 1, 1142, 100, 34.95);
Insert into a_bkorders.order_details values(5261, 2, 1128, 50, 46.95);
Insert into a_bkorders.order_details values(5261, 3, 2001, 100, 39.00);
Insert into a_bkorders.order_headers values(5262, '2013-11-02', 272787);
Insert into a_bkorders.order_details values(5262, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(5262, 4, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(5300, '2013-11-05', 261502);
Insert into a_bkorders.order_headers values(5321, '2013-11-29', 261502);
Insert into a_bkorders.order_details values(5321, 1, 2008, 20, 54.59);
Insert into a_bkorders.order_details values(5321, 2, 1978, 10, 95.60);
Insert into a_bkorders.order_headers values(5328, '2013-11-30', 290298);
Insert into a_bkorders.order_details values(5328, 1, 1182, 70, 44.99);
Insert into a_bkorders.order_headers values(5345, '2013-11-30', 227105);
Insert into a_bkorders.order_details values(5345, 1, 1105, 40, 55.15);
Insert into a_bkorders.order_headers values(54883, '2013-11-11', 267780);
Insert into a_bkorders.order_details values(54883, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(54883, 2, 1161, 3, 35.00);
/* Dec 2013 */
Insert into a_bkorders.order_headers values(52905, '2013-12-02', 259906);
Insert into a_bkorders.order_details values(52905, 1, 2028, 1, 58.00);
Insert into a_bkorders.order_headers values(52906, '2013-12-04', 259906);
Insert into a_bkorders.order_details values(52906, 1, 2028, 2, 58.50);
Insert into a_bkorders.order_details values(52906, 2, 1103, 11, 15.00);
Insert into a_bkorders.order_details values(52906, 3, 1103, 1, 5.75);
Insert into a_bkorders.order_headers values(5409, '2013-12-07', 267780);
Insert into a_bkorders.order_headers values(5483, '2013-12-11', 267780);
Insert into a_bkorders.order_details values(5483, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(5483, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_headers values(5491, '2013-12-12', 222477);
Insert into a_bkorders.order_details values(5491, 1, 1128, 1, 49.95);
Insert into a_bkorders.order_details values(5491, 2, 1161, 1, 35.00);
Insert into a_bkorders.order_details values(5491, 3, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(5552, '2013-12-12', 227105);
Insert into a_bkorders.order_details values(5552, 1, 1102, 2, 49.99);
/* Jan 2014 */
Insert into a_bkorders.order_headers values(52900, '2014-01-25', 226656);
Insert into a_bkorders.order_details values(52900, 1, 1401, 20, 50.00);
Insert into a_bkorders.order_details values(52900, 2, 1305, 125, 5.00);
Insert into a_bkorders.order_headers values(52901, '2014-01-26', 259906);
Insert into a_bkorders.order_details values(52901, 1, 1401, 50, 49.00);
Insert into a_bkorders.order_headers values(5554, '2014-01-20', 290298);
Insert into a_bkorders.order_headers values(5555, '2014-01-18', 221297);
Insert into a_bkorders.order_details values(5555, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(5555, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(5555, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(5561, '2014-01-22', 222477);
Insert into a_bkorders.order_details values(5561, 1, 1142, 1, 34.95);
Insert into a_bkorders.order_details values(5561, 2, 1128, 5, 46.95);
Insert into a_bkorders.order_details values(5561, 3, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(5562, '2014-01-28', 267780);
Insert into a_bkorders.order_details values(5562, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(5562, 2, 2008, 1, 46.95);
Insert into a_bkorders.order_details values(5562, 3, 2007, 1, 39.00);
Insert into a_bkorders.order_details values(5562, 4, 2001, 1, 39.00);
/* Feb 2014 */
Insert into a_bkorders.order_headers values(40814, '2014-02-15', 272787);
Insert into a_bkorders.order_details values(40814, 1, 1103, 23, 12.00);
Insert into a_bkorders.order_headers values(40836, '2014-02-20', 258595);
Insert into a_bkorders.order_details values(40836, 1, 2008, 2, 12.50);
Insert into a_bkorders.order_headers values(41811, '2014-02-12', 221297);
Insert into a_bkorders.order_details values(41811, 1, 2007, 1, 40.49);
Insert into a_bkorders.order_details values(41811, 2, 1357, 2, 23.40);
Insert into a_bkorders.order_details values(41811, 3, 1537, 3, 28.19);
Insert into a_bkorders.order_headers values(41812, '2014-02-12', 227105);
Insert into a_bkorders.order_details values(41812, 1, 2009, 1, 26.99);
Insert into a_bkorders.order_headers values(41814, '2014-02-15', 290298);
Insert into a_bkorders.order_details values(41814, 1, 1258, 1, 45.99);
Insert into a_bkorders.order_headers values(18142, '2014-02-12', 227105);
Insert into a_bkorders.order_details values(18142, 1, 1279, 1, 26.99);
Insert into a_bkorders.order_headers values(18144, '2014-02-15', 290298);
Insert into a_bkorders.order_details values(18144, 1, 1304, 1, 45.99);
Insert into a_bkorders.order_headers values(18145, '2014-02-15', 222477);
Insert into a_bkorders.order_details values(18145, 1, 1602, 1, 2.75);
Insert into a_bkorders.order_details values(18145, 2, 1077, 2, 40.75);
/* Mar 2014 */
Insert into a_bkorders.order_headers values(41840, '2014-03-01', 267780);
Insert into a_bkorders.order_details values(41840, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(41841, '2014-03-02', 272787);
Insert into a_bkorders.order_details values(41841, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(41850, '2014-03-02', 234138);
Insert into a_bkorders.order_details values(41850, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(41224, '2014-03-08', 218709);
Insert into a_bkorders.order_details values(41224, 1, 1101, 8, 55.19);
Insert into a_bkorders.order_headers values(41852, '2014-03-08', 261502);
Insert into a_bkorders.order_details values(41852, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(33001, '2014-03-04', 282716);
Insert into a_bkorders.order_details values(33001, 1, 1109, 3, 25.00);
Insert into a_bkorders.order_details values(33001, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_headers values(33002, '2014-03-12', 282716);
Insert into a_bkorders.order_details values(33002, 1, 1258, 1, 44.99);
Insert into a_bkorders.order_details values(33002, 2, 1619, 2, 35.00);
Insert into a_bkorders.order_details values(33002, 3, 1948, 1, 40.94);
Insert into a_bkorders.order_details values(33002, 4, 1162, 1, 35.00);
Insert into a_bkorders.order_details values(33002, 5, 1128, 1, 46.20);
Insert into a_bkorders.order_headers values(33005, '2014-03-13', 282716);
Insert into a_bkorders.order_details values(33005, 1, 1628, 1, 32.00);
Insert into a_bkorders.order_details values(33005, 2, 1629, 1, 19.95);
Insert into a_bkorders.order_headers values(33006, '2014-03-13', 272787 );
Insert into a_bkorders.order_details values(33006, 1, 1628, 1, 32.00);
Insert into a_bkorders.order_details values(33006, 2, 1629, 1, 19.95);
Insert into a_bkorders.order_headers values(33007, '2014-03-12', 272787);
Insert into a_bkorders.order_details values(33007, 1, 1258, 1, 44.99);
Insert into a_bkorders.order_details values(33007, 2, 1619, 2, 35.00);
Insert into a_bkorders.order_details values(33007, 3, 1128, 1, 46.20);
Insert into a_bkorders.order_headers values(33013, '2014-03-20', 282716);
Insert into a_bkorders.order_details values(33013, 1, 1305, 49, 6.00);
Insert into a_bkorders.order_details values(33013, 2, 1401, 100, 65.00);
Insert into a_bkorders.order_headers values(33014, '2014-03-21', 282716);
Insert into a_bkorders.order_details values(33014, 1, 1628, 10, 32.00);
Insert into a_bkorders.order_details values(33014, 2, 1629, 10, 19.95);
Insert into a_bkorders.order_headers values(33022, '2014-03-22', 282716);
Insert into a_bkorders.order_details values(33022, 1, 1627, 1, 199.95);
Insert into a_bkorders.order_headers values(33023, '2014-03-23', 282716);
Insert into a_bkorders.order_details values(33023, 1, 1978, 5, 92.00);
Insert into a_bkorders.order_headers values(33025, '2014-03-23', 282716);
Insert into a_bkorders.order_details values(33025, 1, 1602, 300, 2.50);
Insert into a_bkorders.order_details values(33025, 3, 1602, 97, 2.00);
Insert into a_bkorders.order_headers values(33034, '2014-03-24', 282716);
Insert into a_bkorders.order_details values(33034, 1, 1619, 1, 29.99);
Insert into a_bkorders.order_details values(33034, 2, 1619, 2, 15.95);
Insert into a_bkorders.order_headers values(33035, '2014-03-25', 282716);
Insert into a_bkorders.order_details values(33035, 1, 1142, 2, 90.00);
Insert into a_bkorders.order_headers values(33040, '2014-03-26', 282716);
Insert into a_bkorders.order_details values(33040, 1, 1162, 1, 32.00);
Insert into a_bkorders.order_details values(33040, 2, 1626, 1 , 19.95);
Insert into a_bkorders.order_headers values(33017, '2014-03-26', 282716);
Insert into a_bkorders.order_details values(33017, 1, 1625, 1, 4.00);
Insert into a_bkorders.order_headers values(33008, '2014-03-23', 282716);
Insert into a_bkorders.order_details values(33008, 1, 1628, 2, 32.00);
Insert into a_bkorders.order_details values(33008, 2, 1448, 5, 25.00);
Insert into a_bkorders.order_headers values(33009, '2014-03-22', 282716);
Insert into a_bkorders.order_details values(33009, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_headers values(4007, '2014-03-03', 276381);
Insert into a_bkorders.order_details values(4007, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(4002, '2014-03-08', 234138);
Insert into a_bkorders.order_details values(4002, 1, 1107, 11, 25.00);
Insert into a_bkorders.order_details values(4002, 2, 1106, 12, 25.50);
Insert into a_bkorders.order_headers values(4003, '2014-03-08', 200368);
Insert into a_bkorders.order_details values(4003, 1, 1104, 5, 45.00);
/* Apr 2014 */
Insert into a_bkorders.order_headers values(41853, '2014-04-02', 234138);
Insert into a_bkorders.order_details values(41853, 1, 1448, 10, 30.00);
Insert into a_bkorders.order_details values(41853, 2, 1162, 20, 34.95);
Insert into a_bkorders.order_headers values(31455, '2014-04-05', 212921);
Insert into a_bkorders.order_details values(31455, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(31560, '2014-04-15', 276381);
Insert into a_bkorders.order_details values(31560, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(1256, '2014-04-08', 272787);
Insert into a_bkorders.order_details values(1256, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_details values(1256, 2, 1104, 1, 45.00);
/* May 2014 */
Insert into a_bkorders.order_headers values(23890, '2014-05-01', 212921);
Insert into a_bkorders.order_details values(23890, 1, 1103, 11, 15.00);
Insert into a_bkorders.order_headers values(25803, '2014-05-02', 224038);
Insert into a_bkorders.order_details values(25803, 1, 1128, 25, 45.00);
Insert into a_bkorders.order_details values(25803, 2, 1301, 15, 45.50);
Insert into a_bkorders.order_details values(25803, 3, 1304, 5, 59.99);
Insert into a_bkorders.order_headers values(22774, '2014-05-04', 239427);
Insert into a_bkorders.order_details values(22774, 1, 1304, 50, 45.00);
Insert into a_bkorders.order_details values(22774, 2, 1305, 50, 9.99);
Insert into a_bkorders.order_headers values(10812, '2014-05-05', 260368);
Insert into a_bkorders.order_details values(10812, 1, 1128, 1, 49.95);
Insert into a_bkorders.order_headers values(24802, '2014-05-06', 228175);
Insert into a_bkorders.order_details values(24802, 1, 1103, 3, 15.00);
Insert into a_bkorders.order_details values(24802, 2, 1306, 5, 250.12);
Insert into a_bkorders.order_headers values(42891, '2014-05-05', 228175);
Insert into a_bkorders.order_details values(42891, 1, 1142, 1, 15.00);
Insert into a_bkorders.order_headers values(24345, '2014-05-26', 224038);
Insert into a_bkorders.order_details values(24345, 1, 1104, 5, 45.00);
Insert into a_bkorders.order_details values(24345, 2, 1306, 5, 250.12);
Insert into a_bkorders.order_headers values(42331, '2014-05-24', 212921);
Insert into a_bkorders.order_details values(42331, 1, 1142, 5, 15.00);
/* June 2014 */
Insert into a_bkorders.order_headers values(32903, '2014-06-02', 226656);
Insert into a_bkorders.order_details values(32903, 1, 1401, 1, 58.00);
Insert into a_bkorders.order_headers values(32904, '2014-06-04', 259906);
Insert into a_bkorders.order_details values(32904, 1, 1305, 450, 5.19);
Insert into a_bkorders.order_details values(32904, 2, 1448, 4, 29.69);
Insert into a_bkorders.order_headers values(1553, '2014-06-12', 227105);
Insert into a_bkorders.order_details values(1553, 1, 1103, 200, 12.00);
Insert into a_bkorders.order_details values(1553, 2, 1104, 100, 45.00);
Insert into a_bkorders.order_headers values(1554, '2014-06-20', 290298);
Insert into a_bkorders.order_headers values(1555, '2014-06-18', 221297);
Insert into a_bkorders.order_details values(1555, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(1555, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(1555, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(1561, '2014-06-22', 222477);
Insert into a_bkorders.order_details values(1561, 1, 1142, 1, 34.95);
Insert into a_bkorders.order_details values(1561, 2, 1128, 5, 46.95);
Insert into a_bkorders.order_details values(1561, 3, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(1562, '2014-06-28', 267780);
Insert into a_bkorders.order_details values(1562, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(1562, 2, 2008, 1, 46.95);
Insert into a_bkorders.order_details values(1562, 3, 2007, 1, 39.00);
Insert into a_bkorders.order_details values(1562, 4, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(30814, '2014-06-15', 272787);
Insert into a_bkorders.order_details values(30814, 1, 1103, 23, 12.00);
Insert into a_bkorders.order_headers values(30815, '2014-06-16', 272787);
Insert into a_bkorders.order_details values(30815, 1, 1448, 155, 25.00);
Insert into a_bkorders.order_headers values(1254, '2014-06-23', 263119);
Insert into a_bkorders.order_details values(1254, 2, 2008, 10, 46.95);
Insert into a_bkorders.order_details values(1254, 3, 2007, 10, 39.00);
Insert into a_bkorders.order_headers values(1255, '2014-06-28', 267780);
Insert into a_bkorders.order_details values(1255, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(1255, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(1255, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(1261, '2014-06-28', 200368);
Insert into a_bkorders.order_details values(1261, 1, 1142, 100, 34.95);
Insert into a_bkorders.order_details values(1261, 2, 1128, 50, 46.95);
Insert into a_bkorders.order_details values(1261, 3, 2001, 100, 39.00);
Insert into a_bkorders.order_headers values(32905, '2014-06-02', 259906);
Insert into a_bkorders.order_details values(32905, 1, 2028, 1, 58.00);
Insert into a_bkorders.order_headers values(21841, '2014-06-02', 267780);
Insert into a_bkorders.order_details values(21841, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(21850, '2014-06-02', 261502);
Insert into a_bkorders.order_details values(21850, 1, 1162, 1, 30.49);
Insert into a_bkorders.order_details values(21850, 2, 1109, 1, 25.00);
Insert into a_bkorders.order_headers values(2045, '2014-06-18', 267780);
Insert into a_bkorders.order_details values(2045, 1, 1894, 1, 35.99);
Insert into a_bkorders.order_headers values(2200, '2014-06-18', 261502);
Insert into a_bkorders.order_details values(2200, 1, 1200, 5, 16.33);
Insert into a_bkorders.order_details values(2200, 2, 1180, 5, 45.99);
Insert into a_bkorders.order_details values(2200, 3, 1128, 5, 46.20);
/* July 2014 */
Insert into a_bkorders.order_headers values(1262, '2014-07-02', 272787);
Insert into a_bkorders.order_details values(1262, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(1262, 4, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(1300, '2014-07-05', 261502);
Insert into a_bkorders.order_headers values(1302, '2014-07-05', 222477);
Insert into a_bkorders.order_details values(1302, 1, 1258, 1, 44.99);
Insert into a_bkorders.order_headers values(1310, '2014-07-09', 218709);
Insert into a_bkorders.order_details values(1310, 1, 1774, 1, 14.67);
Insert into a_bkorders.order_details values(1310, 2, 1619, 1, 26.99);
Insert into a_bkorders.order_details values(1310, 3, 1269, 1, 58.83);
Insert into a_bkorders.order_headers values(1321, '2014-07-29', 261502);
Insert into a_bkorders.order_details values(1321, 1, 2008, 20, 54.59);
Insert into a_bkorders.order_details values(1321, 2, 1978, 10, 95.60);
Insert into a_bkorders.order_headers values(1328, '2014-07-30', 290298);
Insert into a_bkorders.order_details values(1328, 1, 1182, 70, 44.99);
Insert into a_bkorders.order_headers values(1345, '2014-07-30', 227105);
Insert into a_bkorders.order_details values(1345, 1, 1105, 40, 55.15);
Insert into a_bkorders.order_headers values(32906, '2014-07-04', 259906);
Insert into a_bkorders.order_details values(32906, 1, 2028, 2, 58.50);
Insert into a_bkorders.order_details values(32906, 2, 1103, 11, 15.00);
Insert into a_bkorders.order_details values(32906, 3, 1103, 1, 5.75);
Insert into a_bkorders.order_headers values(22909, '2014-07-25', 239427);
Insert into a_bkorders.order_details values(22909, 1, 1104, 5, 45.00);
Insert into a_bkorders.order_headers values(22910, '2014-07-25', 218709);
Insert into a_bkorders.order_details values(22910, 1, 1678, 5, 49.99);
Insert into a_bkorders.order_details values(22910, 2, 1162, 5, 35.00);
Insert into a_bkorders.order_headers values(32997, '2014-07-22', 239427);
Insert into a_bkorders.order_details values(32997, 1, 1948, 5, 40.94);
Insert into a_bkorders.order_details values(32997, 2, 1199, 5, 18.39);
Insert into a_bkorders.order_details values(32997, 3, 1457, 5, 53.99);
Insert into a_bkorders.order_details values(32997, 4, 1133, 5, 18.15);
Insert into a_bkorders.order_details values(32997, 5, 1894, 5, 36.79);
Insert into a_bkorders.order_headers values(32998, '2014-07-22', 261502);
Insert into a_bkorders.order_details values(32998, 1, 2006, 3, 20.00);
Insert into a_bkorders.order_headers values(41005, '2014-07-28', 290298);
Insert into a_bkorders.order_details values(41005, 1, 1142, 2, 42.45);
Insert into a_bkorders.order_details values(41005, 2, 1107, 4, 21.50);
Insert into a_bkorders.order_headers values(41006, '2014-07-28', 267780);
Insert into a_bkorders.order_details values(41006, 1, 1142, 10, 42.95);
Insert into a_bkorders.order_headers values(42899, '2014-07-29', 261502);
Insert into a_bkorders.order_details values(42899, 1, 1128, 5, 25.00);
Insert into a_bkorders.order_details values(42899, 2, 1103, 1 , 10.95);
/* August 2014 */
Insert into a_bkorders.order_headers values(32907, '2014-08-04', 259906);
Insert into a_bkorders.order_details values(32907, 1, 2028, 3, 58.00);
Insert into a_bkorders.order_details values(32907, 2, 1142, 10, 11.14);
Insert into a_bkorders.order_headers values(1346, '2014-08-03', 227105);
Insert into a_bkorders.order_details values(1346, 1, 1619, 100, 26.99);
Insert into a_bkorders.order_details values(1346, 2, 1401, 200, 50.04);
Insert into a_bkorders.order_details values(1346, 3, 1108, 600, 27.60);
Insert into a_bkorders.order_headers values(1347, '2014-08-03', 218709);
Insert into a_bkorders.order_details values(1347, 1, 1258, 1, 44.99);
Insert into a_bkorders.order_details values(1347, 2, 1619, 2, 35.00);
Insert into a_bkorders.order_details values(1347, 3, 1948, 1, 40.94);
Insert into a_bkorders.order_details values(1347, 4, 1162, 1, 35.00);
Insert into a_bkorders.order_details values(1347, 5, 1128, 1, 46.20);
Insert into a_bkorders.order_headers values(1409, '2014-08-07', 267780);
Insert into a_bkorders.order_headers values(1410, '2014-08-07', 261502);
Insert into a_bkorders.order_details values(1410, 1, 2006, 35, 20.00);
Insert into a_bkorders.order_headers values(21254, '2014-08-23', 263119);
Insert into a_bkorders.order_details values(21254, 2, 2008, 10, 46.95);
Insert into a_bkorders.order_details values(21254, 3, 2007, 10, 39.00);
Insert into a_bkorders.order_headers values(21255, '2014-08-28', 267780);
Insert into a_bkorders.order_details values(21255, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(21255, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(21255, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(21261, '2014-08-28', 200368);
Insert into a_bkorders.order_details values(21261, 1, 1142, 100, 34.95);
Insert into a_bkorders.order_details values(21261, 2, 1128, 50, 46.95);
Insert into a_bkorders.order_details values(21261, 3, 2001, 100, 39.00);
Insert into a_bkorders.order_headers values(1411, '2014-08-12', 227105);
Insert into a_bkorders.order_details values(1411, 1, 1128, 50, 25.00);
Insert into a_bkorders.order_headers values(1420, '2014-08-12', 227105);
Insert into a_bkorders.order_details values(1420, 1, 1109, 30, 25.00);
Insert into a_bkorders.order_details values(1420, 2, 1161, 30, 35.00);
Insert into a_bkorders.order_headers values(1442, '2014-08-18', 267780);
Insert into a_bkorders.order_details values(1442, 1, 1128, 25, 12.50);
Insert into a_bkorders.order_details values(1442, 2, 2008, 40, 34.95);
Insert into a_bkorders.order_details values(1442, 3, 2007, 25, 35.00);
Insert into a_bkorders.order_headers values(1483, '2014-08-11', 267780);
Insert into a_bkorders.order_details values(1483, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(1483, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_headers values(1491, '2014-08-12', 222477);
Insert into a_bkorders.order_details values(1491, 1, 1128, 1, 49.95);
Insert into a_bkorders.order_details values(1491, 2, 1161, 1, 35.00);
Insert into a_bkorders.order_details values(1491, 3, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(1552, '2014-08-12', 227105);
Insert into a_bkorders.order_details values(1552, 1, 1102, 2, 49.99);
Insert into a_bkorders.order_headers values(32900, '2014-08-25', 226656);
Insert into a_bkorders.order_details values(32900, 1, 1401, 20, 50.00);
Insert into a_bkorders.order_details values(32900, 2, 1305, 125, 5.00);
Insert into a_bkorders.order_headers values(32901, '2014-08-26', 259906);
Insert into a_bkorders.order_details values(32901, 1, 1401, 50, 49.00);
Insert into a_bkorders.order_headers values(32902, '2014-08-27', 259906);
Insert into a_bkorders.order_details values(32902, 1, 1305, 49, 6.00);
Insert into a_bkorders.order_details values(32902, 2, 1401, 100, 65.00);
/* September 2014 */
Insert into a_bkorders.order_headers values(30835, '2014-09-17', 211483);
Insert into a_bkorders.order_details values(30835, 1, 1103, 25, 10.95);
Insert into a_bkorders.order_headers values(30836, '2014-09-20', 258595);
Insert into a_bkorders.order_details values(30836, 1, 2008, 2, 12.50);
Insert into a_bkorders.order_headers values(1811, '2014-09-12', 221297);
Insert into a_bkorders.order_details values(1811, 1, 2007, 1, 40.49);
Insert into a_bkorders.order_details values(1811, 2, 1357, 2, 23.40);
Insert into a_bkorders.order_details values(1811, 3, 1537, 3, 28.19);
Insert into a_bkorders.order_headers values(1812, '2014-09-12', 227105);
Insert into a_bkorders.order_details values(1812, 1, 2009, 1, 26.99);
Insert into a_bkorders.order_headers values(1814, '2014-09-15', 290298);
Insert into a_bkorders.order_details values(1814, 1, 1258, 1, 45.99);
Insert into a_bkorders.order_headers values(1818, '2014-09-16', 212921);
Insert into a_bkorders.order_details values(1818, 1, 1106, 30, 20.00);
Insert into a_bkorders.order_details values(1818, 2, 1537, 2, 25.00);
Insert into a_bkorders.order_details values(1818, 3, 1180, 1, 46.99);
Insert into a_bkorders.order_details values(1818, 4, 1979, 1, 53.99);
Insert into a_bkorders.order_headers values(1710, '2014-09-08', 261502);
Insert into a_bkorders.order_details values(1710, 1, 1776, 99, 45.49);
Insert into a_bkorders.order_headers values(1712, '2014-09-09', 290298);
Insert into a_bkorders.order_details values(1712, 1, 1835, 1, 45.99);
Insert into a_bkorders.order_details values(1712, 2, 1162, 99, 30.00);
Insert into a_bkorders.order_headers values(2004, '2014-09-22', 272787);
Insert into a_bkorders.order_details values(2004, 2, 1161, 1, 35.00);
Insert into a_bkorders.order_headers values(2005, '2014-09-30', 272787);
Insert into a_bkorders.order_details values(2005, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(2012, '2014-09-22', 272787);
Insert into a_bkorders.order_details values(2012, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(2013, '2014-09-22', 272787);
Insert into a_bkorders.order_details values(2013, 1, 2009, 2, 12.50);
Insert into a_bkorders.order_headers values(30847, '2014-09-20', 296598);
Insert into a_bkorders.order_details values(30847, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(30848, '2014-09-21', 263119);
Insert into a_bkorders.order_details values(30848, 1, 2007, 2, 12.50);
Insert into a_bkorders.order_headers values(30849, '2014-09-22', 217796);
Insert into a_bkorders.order_details values(30849, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(51833, '2014-09-08', 218709);
Insert into a_bkorders.order_details values(51833, 1, 1101, 8, 55.19);
Insert into a_bkorders.order_details values(51833, 2, 1104, 1, 45.00);
Insert into a_bkorders.order_details values(51833, 3, 1162, 20, 34.95);
Insert into a_bkorders.order_details values(51833, 4, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(51850, '2014-09-08', 299099);
Insert into a_bkorders.order_details values(51850, 1, 1677, 1, 70.00);
Insert into a_bkorders.order_headers values(51851, '2014-09-12', 259969);
Insert into a_bkorders.order_details values(51851, 1, 1162, 1, 35.00);
Insert into a_bkorders.order_details values(51851, 2, 1269, 1, 63.95);
Insert into a_bkorders.order_details values(51851, 3, 2017, 1, 49.99);
Insert into a_bkorders.order_headers values(51852, '2014-09-12', 259969);
Insert into a_bkorders.order_details values(51852, 1, 2032, 1, 0.00);
Insert into a_bkorders.order_details values(51852, 3, 2017, 1, 0.00);
Insert into a_bkorders.order_headers values(51853, '2014-09-25', 218709);
Insert into a_bkorders.order_details values(51853, 4, 1161, 100, 25.25);
Insert into a_bkorders.order_headers values(51854, '2014-09-26', 239427);
Insert into a_bkorders.order_details values(51854, 3, 1537, 15, 15.37);
Insert into a_bkorders.order_headers values(51855, '2014-09-26', 260368);
Insert into a_bkorders.order_details values(51855, 4, 1200, 2, 17.00);
Insert into a_bkorders.order_details values(51855, 1, 1200, 4, 16.00);
Insert into a_bkorders.order_details values(51855, 2, 1200, 2, 16.00);
Insert into a_bkorders.order_details values(51855, 3, 1200, 3, 17.00);
Insert into a_bkorders.order_headers values(51856, '2014-09-28', 272611);
Insert into a_bkorders.order_details values(51856, 4, 1546, 2, 10.39);
Insert into a_bkorders.order_details values(51856, 1, 1545, 2, 13.00);
/* October 2014 */
/* November 2014 */
Insert into a_bkorders.order_headers values(30816, '2014-11-06', 272787);
Insert into a_bkorders.order_details values(30816, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(30820, '2014-11-10', 234138);
Insert into a_bkorders.order_details values(30820, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(30821, '2014-11-10', 217796);
Insert into a_bkorders.order_details values(30821, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_headers values(30822, '2014-11-12', 211483);
Insert into a_bkorders.order_details values(30822, 1, 1128, 10, 49.95);
Insert into a_bkorders.order_headers values(30855, '2014-11-23', 282716);
Insert into a_bkorders.order_details values(30855, 1, 1602, 500, 2.00);
Insert into a_bkorders.order_headers values(51840, '2014-11-01', 267780);
Insert into a_bkorders.order_details values(51840, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(51841, '2014-11-02', 272787);
Insert into a_bkorders.order_details values(51841, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_details values(51841, 2, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(51842, '2014-11-18', 222477);
Insert into a_bkorders.order_details values(51842, 1, 1894, 1, 35.99);
Insert into a_bkorders.order_details values(51842, 2, 1199, 5, 18.39);
Insert into a_bkorders.order_details values(51842, 4, 1133, 5, 18.15);
Insert into a_bkorders.order_details values(51842, 5, 1894, 5, 36.79);
Insert into a_bkorders.order_headers values(51843, '2014-11-20', 290298);
Insert into a_bkorders.order_details values(51843, 1, 1894, 1, 37.59);
Insert into a_bkorders.order_details values(51843, 2, 1894, 1, 18.75);
Insert into a_bkorders.order_headers values(30824, '2014-11-05', 222477);
Insert into a_bkorders.order_details values(30824, 1, 1670, 10, 40.00);
Insert into a_bkorders.order_details values(30824, 4, 2005, 20, 45.00);
Insert into a_bkorders.order_headers values(2001, '2014-11-02', 272787);
Insert into a_bkorders.order_details values(2001, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(2002, '2014-11-12', 272787);
Insert into a_bkorders.order_details values(2002, 1, 1103, 20, 10.95);
Insert into a_bkorders.order_headers values(2003, '2014-11-12', 272787);
Insert into a_bkorders.order_details values(2003, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(1564, '2014-11-18', 227105);
Insert into a_bkorders.order_details values(1564, 1, 1106, 50, 34.95);
Insert into a_bkorders.order_details values(1564, 2, 1107, 50, 20.95);
Insert into a_bkorders.order_details values(1564, 3, 2001, 50, 39.00);
Insert into a_bkorders.order_headers values(1800, '2014-11-12', 217796);
Insert into a_bkorders.order_details values(1800, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(1800, 2, 2008, 1, 46.95);
Insert into a_bkorders.order_headers values(1801, '2014-11-13', 217796);
Insert into a_bkorders.order_details values(1801, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_details values(1801, 2, 1106, 1, 29.00);
Insert into a_bkorders.order_headers values(30825, '2014-11-21', 221297);
Insert into a_bkorders.order_details values(30825, 1, 1776, 4, 45.49);
Insert into a_bkorders.order_headers values(30826, '2014-11-24', 211483);
Insert into a_bkorders.order_details values(30826, 2, 1161, 16, 35.00);
Insert into a_bkorders.order_headers values(30833, '2014-11-14', 211483);
Insert into a_bkorders.order_details values(30833, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(30834, '2014-11-17', 211483);
Insert into a_bkorders.order_details values(30834, 1, 1128, 1, 49.95);
/* December 2014 */
Insert into a_bkorders.order_headers values(60002, '2014-12-03', 222477);
Insert into a_bkorders.order_details values(60002, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_details values(60002, 2, 1106, 1, 29.00);
Insert into a_bkorders.order_headers values(60005, '2014-12-06', 227105);
Insert into a_bkorders.order_details values(60005, 1, 1110, 2, 50.00);
Insert into a_bkorders.order_details values(60005, 2, 1776, 100, 44.99);
Insert into a_bkorders.order_details values(60005, 3, 1128, 400, 41.40);
Insert into a_bkorders.order_headers values(60009, '2014-12-11', 267780);
Insert into a_bkorders.order_details values(60009, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(60009, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_details values(60009, 3, 1142, 100, 34.95);
Insert into a_bkorders.order_details values(60009, 4, 1128, 50, 46.95);
Insert into a_bkorders.order_details values(60009, 5, 2001, 100, 39.00);
Insert into a_bkorders.order_headers values(60011, '2014-12-02', 272787);
Insert into a_bkorders.order_details values(60011, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(60011, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_details values(60011, 3, 2028, 1, 58.00);
Insert into a_bkorders.order_headers values(60012, '2014-12-11', 267780);
Insert into a_bkorders.order_details values(60012, 1, 1162, 1, 32.45);
Insert into a_bkorders.order_details values(60012, 2, 1161, 3, 35.00);
Insert into a_bkorders.order_headers values(60018, '2014-12-12', 222477);
Insert into a_bkorders.order_details values(60018, 1, 1128, 1, 49.95);
Insert into a_bkorders.order_details values(60018, 2, 1161, 1, 35.00);
Insert into a_bkorders.order_details values(60018, 3, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(60019, '2014-12-12', 227105);
Insert into a_bkorders.order_details values(60019, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(60019, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(60019, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(60029, '2014-12-22', 222477);
Insert into a_bkorders.order_details values(60029, 1, 1628, 1, 32.00);
Insert into a_bkorders.order_details values(60029, 2, 1629, 1, 19.95);
Insert into a_bkorders.order_details values(60029, 3, 1258, 1, 44.99);
Insert into a_bkorders.order_details values(60029, 4, 1619, 2, 35.00);
Insert into a_bkorders.order_details values(60029, 5, 1128, 1, 46.20);
Insert into a_bkorders.order_headers values(60025, '2014-12-28', 267780);
Insert into a_bkorders.order_details values(60025, 1, 1627, 1, 199.95);
Insert into a_bkorders.order_headers values(60030, '2014-12-24', 221297);
Insert into a_bkorders.order_details values(60030, 1, 1627, 1, 199.95);
Insert into a_bkorders.order_headers values(60039, '2014-12-12', 227105);
Insert into a_bkorders.order_details values(60039, 1, 2009, 1, 26.99);
Insert into a_bkorders.order_details values(60039, 3, 1602, 97, 2.00);
Insert into a_bkorders.order_details values(60039, 2, 1448, 5, 25.00);
Insert into a_bkorders.order_details values(60039, 4, 1305, 50, 9.99);
Insert into a_bkorders.order_headers values(60032, '2014-12-31', 290298);
Insert into a_bkorders.order_details values(60032, 1, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(60032, 2, 1142, 5, 39.00);
Insert into a_bkorders.order_details values(60032, 3, 1162, 2, 35.00);
Insert into a_bkorders.order_details values(60032, 4, 1401, 50, 46.95);
Insert into a_bkorders.order_details values(60032, 6, 2001, 100, 39.00);
Insert into a_bkorders.order_details values(60032, 7, 1128, 5, 25.00);
Insert into a_bkorders.order_details values(60032, 8, 1103, 1 , 10.95);
Insert into a_bkorders.order_headers values(60027, '2014-12-31', 227105);
Insert into a_bkorders.order_details values(60027, 1, 2032, 1, 0.00);
Insert into a_bkorders.order_details values(60027, 3, 2017, 1, 0.00);
Insert into a_bkorders.order_details values(60027, 4, 1161, 100, 25.25);
Insert into a_bkorders.order_details values(60027, 6, 1537, 15, 15.37);
-- ---------------------------------------------------------------
/* January 2015 */
Insert into a_bkorders.order_headers values(31840, '2015-01-01', 267780);
Insert into a_bkorders.order_details values(31840, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(31841, '2015-01-02', 272787);
Insert into a_bkorders.order_details values(31841, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(31850, '2015-01-02', 234138);
Insert into a_bkorders.order_details values(31850, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(1045, '2015-01-18', 222477);
Insert into a_bkorders.order_details values(1045, 1, 1894, 1, 35.99);
Insert into a_bkorders.order_headers values(1200, '2015-01-18', 212921);
Insert into a_bkorders.order_details values(1200, 1, 1200, 5, 16.33);
Insert into a_bkorders.order_details values(1200, 2, 1199, 5, 18.39);
Insert into a_bkorders.order_details values(1200, 3, 1457, 5, 53.99);
Insert into a_bkorders.order_details values(1200, 4, 1133, 5, 18.15);
Insert into a_bkorders.order_details values(1200, 5, 1894, 5, 36.79);
Insert into a_bkorders.order_details values(1200, 6, 1948, 5, 40.94);
Insert into a_bkorders.order_details values(1200, 7, 1180, 5, 45.99);
Insert into a_bkorders.order_details values(1200, 8, 1128, 5, 46.20);
Insert into a_bkorders.order_headers values(1205, '2015-01-20', 212921);
Insert into a_bkorders.order_details values(1205, 1, 1448, 1, 27.29);
Insert into a_bkorders.order_headers values(1212, '2015-01-20', 290298);
Insert into a_bkorders.order_details values(1212, 1, 1894, 1, 37.59);
Insert into a_bkorders.order_details values(1212, 2, 1894, 1, 18.75);
Insert into a_bkorders.order_headers values(51845, '2015-01-01', 212921);
Insert into a_bkorders.order_details values(51845, 1, 1103, 11, 15.00);
Insert into a_bkorders.order_details values(51845, 2, 1301, 15, 45.50);
Insert into a_bkorders.order_details values(51845, 3, 1304, 5, 59.99);
Insert into a_bkorders.order_details values(51845, 4, 1541, 5, 12.00);
Insert into a_bkorders.order_details values(51845, 5, 1545, 5, 13.96);
Insert into a_bkorders.order_headers values(51846, '2015-01-08', 234138);
Insert into a_bkorders.order_details values(51846, 1, 1107, 11, 25.00);
Insert into a_bkorders.order_details values(51846, 2, 1546, 12, 10.39);
Insert into a_bkorders.order_details values(51846, 3, 2001, 5, 39.00);
Insert into a_bkorders.order_details values(51846, 4, 1103, 2, 12.00);
Insert into a_bkorders.order_details values(51846, 5, 1541, 2, 12.00);
Insert into a_bkorders.order_headers values(51857, '2015-01-08', 259969);
Insert into a_bkorders.order_details values(51857, 2, 1425, 2, 28.09);
Insert into a_bkorders.order_details values(51857, 3, 1609, 1, 18.95);
Insert into a_bkorders.order_details values(51857, 4, 1109, 1, 80.00);
Insert into a_bkorders.order_details values(51857, 5, 2009, 1, 29.99);
Insert into a_bkorders.order_headers values(51858, '2015-01-08', 259969);
Insert into a_bkorders.order_details values(51858, 2, 1133, 3, 19.95);
Insert into a_bkorders.order_details values(51858, 3, 1609, 3, 18.95);
Insert into a_bkorders.order_headers values(51859, '2015-01-08', 272611);
Insert into a_bkorders.order_details values(51859, 2, 1128, 1, 49.99);
Insert into a_bkorders.order_details values(51859, 1, 1269, 1, 63.95);
Insert into a_bkorders.order_headers values(51860, '2015-01-08', 299099);
Insert into a_bkorders.order_details values(51860, 4, 2032, 1, 55.99);
/* February 2015 */
Insert into a_bkorders.order_headers values(1224, '2015-02-08', 218709);
Insert into a_bkorders.order_details values(1224, 1, 1101, 8, 55.19);
Insert into a_bkorders.order_headers values(1253, '2015-02-08', 272787);
Insert into a_bkorders.order_details values(1253, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_details values(1253, 2, 1104, 1, 45.00);
Insert into a_bkorders.order_headers values(31852, '2015-02-08', 261502);
Insert into a_bkorders.order_details values(31852, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(31853, '2015-02-02', 234138);
Insert into a_bkorders.order_details values(31853, 1, 1448, 10, 30.00);
Insert into a_bkorders.order_details values(31853, 2, 1162, 20, 34.95);
Insert into a_bkorders.order_headers values(31855, '2015-02-05', 212921);
Insert into a_bkorders.order_details values(31855, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(31860, '2015-02-15', 276381);
Insert into a_bkorders.order_details values(31860, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(51847, '2015-02-04', 217796);
Insert into a_bkorders.order_details values(51847, 1, 1541, 2, 10.95);
Insert into a_bkorders.order_details values(51847, 2, 1542, 1, 16.99);
Insert into a_bkorders.order_headers values(51848, '2015-02-05', 276381);
Insert into a_bkorders.order_details values(51848, 1, 1544, 50, 17.76);
Insert into a_bkorders.order_headers values(51849, '2015-02-08', 218709);
Insert into a_bkorders.order_details values(51849, 1, 1543, 50, 25.00);
Insert into a_bkorders.order_details values(51849, 2, 1544, 50, 17.76);
Insert into a_bkorders.order_headers values(51861, '2015-02-01', 260368);
Insert into a_bkorders.order_details values(51861, 1, 2032, 1, 57.99);
Insert into a_bkorders.order_details values(51861, 2, 2032, 2, 59.99);
Insert into a_bkorders.order_headers values(51862, '2015-02-02', 272611);
Insert into a_bkorders.order_details values(51862, 1, 1627, 4, 120.18);
Insert into a_bkorders.order_headers values(51863, '2015-02-03', 239427);
Insert into a_bkorders.order_details values(51863, 1, 1629, 42, 19.95);
Insert into a_bkorders.order_headers values(51864, '2015-02-03', 299099);
Insert into a_bkorders.order_details values(51864, 2, 1628, 3, 34.65);
Insert into a_bkorders.order_details values(51864, 3, 1108, 342,34.65);
Insert into a_bkorders.order_details values(51864, 4, 1628, 4, 34.65);
/* March 2015 */
Insert into a_bkorders.order_headers values(32890, '2015-03-01', 212921);
Insert into a_bkorders.order_details values(32890, 1, 1103, 11, 15.00);
Insert into a_bkorders.order_headers values(22803, '2015-03-02', 224038);
Insert into a_bkorders.order_details values(22803, 1, 1128, 25, 45.00);
Insert into a_bkorders.order_details values(22803, 2, 1301, 15, 45.50);
Insert into a_bkorders.order_details values(22803, 3, 1304, 5, 59.99);
Insert into a_bkorders.order_headers values(22804, '2015-03-04', 239427);
Insert into a_bkorders.order_details values(22804, 1, 1304, 50, 45.00);
Insert into a_bkorders.order_details values(22804, 2, 1305, 50, 9.99);
Insert into a_bkorders.order_headers values(1012, '2015-03-05', 260368);
Insert into a_bkorders.order_details values(1012, 1, 1128, 1, 49.95);
Insert into a_bkorders.order_headers values(22805, '2015-03-06', 224038);
Insert into a_bkorders.order_details values(22805, 1, 1104, 5, 45.00);
Insert into a_bkorders.order_details values(22805, 2, 1306, 5, 250.12);
Insert into a_bkorders.order_headers values(32891, '2015-03-05', 212921);
Insert into a_bkorders.order_details values(32891, 1, 1142, 5, 15.00);
Insert into a_bkorders.order_headers values(1007, '2015-03-03', 276381);
Insert into a_bkorders.order_details values(1007, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(1002, '2015-03-08', 234138);
Insert into a_bkorders.order_details values(1002, 1, 1107, 11, 25.00);
Insert into a_bkorders.order_details values(1002, 2, 1106, 12, 25.50);
Insert into a_bkorders.order_headers values(1003, '2015-03-08', 200368);
Insert into a_bkorders.order_details values(1003, 1, 1104, 5, 45.00);
Insert into a_bkorders.order_headers values(1606, '2015-03-14', 217796);
Insert into a_bkorders.order_details values(1606, 1, 1106, 5, 34.95);
Insert into a_bkorders.order_details values(1606, 2, 1107, 5, 20.95);
Insert into a_bkorders.order_details values(1606, 3, 2001, 5, 39.00);
Insert into a_bkorders.order_headers values(1610, '2015-03-15', 263119);
Insert into a_bkorders.order_details values(1610, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(1615, '2015-03-15', 261502);
Insert into a_bkorders.order_details values(1615, 1, 1103, 2, 12.00);
Insert into a_bkorders.order_headers values(1602, '2015-03-14', 217796);
Insert into a_bkorders.order_details values(1602, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_details values(1602, 2, 1106, 1, 29.00);
Insert into a_bkorders.order_headers values(1008, '2015-03-10', 276381);
Insert into a_bkorders.order_details values(1008, 1, 1670, 50, 40.00);
Insert into a_bkorders.order_headers values(1010, '2015-03-10', 218709);
Insert into a_bkorders.order_details values(1010, 1, 1537, 50, 25.00);
Insert into a_bkorders.order_headers values(1011, '2015-03-10', 261502);
Insert into a_bkorders.order_details values(1011, 1, 1103, 2, 10.95);
Insert into a_bkorders.order_headers values(1603, '2015-03-10', 261502);
Insert into a_bkorders.order_details values(1603, 1, 2009, 5, 34.95);
Insert into a_bkorders.order_details values(1603, 3, 2007, 1, 39.00);
Insert into a_bkorders.order_details values(1603, 4, 2001, 1, 39.00);
Insert into a_bkorders.order_headers values(1604, '2015-03-10', 217796);
Insert into a_bkorders.order_details values(1604, 1, 1103, 25, 10.95);
Insert into a_bkorders.order_details values(1604, 2, 1106, 15, 29.00);
Insert into a_bkorders.order_headers values(32892, '2015-03-10', 272611);
Insert into a_bkorders.order_details values(32892, 1, 2002, 5, 15.00);
Insert into a_bkorders.order_headers values(32893, '2015-03-15', 200368);
Insert into a_bkorders.order_details values(32893, 1, 1689, 1, 55.19);
Insert into a_bkorders.order_headers values(32894, '2015-03-18', 234138);
Insert into a_bkorders.order_details values(32894, 1, 1894, 1, 35.99);
Insert into a_bkorders.order_headers values(32895, '2015-03-18', 218709);
Insert into a_bkorders.order_details values(32895, 1, 1689, 1, 55.19);
Insert into a_bkorders.order_headers values(1027, '2015-03-18', 234709);
Insert into a_bkorders.order_details values(1027, 1, 2001, 21, 49.99);
Insert into a_bkorders.order_details values(1027, 2, 1077, 22, 10.99);
Insert into a_bkorders.order_headers values(1004, '2015-03-18', 221297);
Insert into a_bkorders.order_details values(1004, 1, 1106, 2, 18.25);
Insert into a_bkorders.order_headers values(32896, '2015-03-18', 218709);
Insert into a_bkorders.order_details values(32896, 1, 1894, 1, 35.99);
Insert into a_bkorders.order_headers values(1028, '2015-03-20', 234709);
Insert into a_bkorders.order_details values(1028, 1, 2001, 1, 19.78);
Insert into a_bkorders.order_details values(1028, 2, 2002, 22, 40.00);
Insert into a_bkorders.order_details values(1028, 3, 2004, 1, 49.95);
Insert into a_bkorders.order_details values(1028, 4, 2006, 1, 46.95);
Insert into a_bkorders.order_headers values(1661, '2015-03-15', 261502);
Insert into a_bkorders.order_details values(1661, 1, 1103, 97, 2.00);
Insert into a_bkorders.order_headers values(1030, '2015-03-22', 234709);
Insert into a_bkorders.order_details values(1030, 1, 1279, 1, 40.49);
Insert into a_bkorders.order_headers values(1035, '2015-03-22', 221297);
Insert into a_bkorders.order_details values(1035, 1, 1689, 1, 55.19);
Insert into a_bkorders.order_headers values(1039, '2015-03-22', 212921);
Insert into a_bkorders.order_details values(1039, 1, 1448, 1, 30.00);
Insert into a_bkorders.order_details values(1039, 2, 1162, 2, 34.95);
Insert into a_bkorders.order_headers values(1040, '2015-03-28', 263119);
Insert into a_bkorders.order_details values(1040, 1, 2025, 560, 39.00);
Insert into a_bkorders.order_details values(1040, 2, 2018, 2, 49.99);
Insert into a_bkorders.order_headers values(31884, '2015-03-22', 290298);
Insert into a_bkorders.order_details values(31884, 1, 1278, 1, 48.00);
Insert into a_bkorders.order_details values(31884, 2, 1199, 9, 17.99);
Insert into a_bkorders.order_headers values(31885, '2015-03-22', 217796);
Insert into a_bkorders.order_details values(31885, 1, 1448, 50, 25.00);
Insert into a_bkorders.order_headers values(31889, '2015-03-22', 227105);
Insert into a_bkorders.order_details values(31889, 1, 1109, 18, 50.60);
Insert into a_bkorders.order_headers values(22806, '2015-03-23', 239427);
Insert into a_bkorders.order_details values(22806, 1, 1107, 1, 25.00);
Insert into a_bkorders.order_headers values(22807, '2015-03-23', 224038);
Insert into a_bkorders.order_details values(22807, 1, 1175, 1, 34.99);
Insert into a_bkorders.order_headers values(22808, '2015-03-24', 290298);
Insert into a_bkorders.order_details values(22808, 1, 1182, 1, 45.00);
Insert into a_bkorders.order_headers values(22809, '2015-03-25', 239427);
Insert into a_bkorders.order_details values(22809, 1, 1104, 5, 45.00);
Insert into a_bkorders.order_headers values(22810, '2015-03-25', 218709);
Insert into a_bkorders.order_details values(22810, 1, 1678, 5, 49.99);
Insert into a_bkorders.order_details values(22810, 2, 1162, 5, 35.00);
Insert into a_bkorders.order_headers values(32897, '2015-03-22', 261502);
Insert into a_bkorders.order_details values(32897, 1, 1110, 2, 50.00);
Insert into a_bkorders.order_headers values(32898, '2015-03-22', 261502);
Insert into a_bkorders.order_details values(32898, 1, 2006, 3, 20.00);
Insert into a_bkorders.order_headers values(1005, '2015-03-28', 290298);
Insert into a_bkorders.order_details values(1005, 1, 1142, 2, 42.45);
Insert into a_bkorders.order_details values(1005, 2, 1107, 4, 21.50);
Insert into a_bkorders.order_headers values(1006, '2015-03-28', 208950);
Insert into a_bkorders.order_details values(1006, 1, 1103, 10, 10.95);
Insert into a_bkorders.order_headers values(32899, '2015-03-29', 261502);
Insert into a_bkorders.order_details values(32899, 1, 1128, 50, 25.00);
Insert into a_bkorders.order_headers values(32800, '2015-03-29', 217796);
Insert into a_bkorders.order_details values(32800, 1, 1128, 50, 25.00);
Insert into a_bkorders.order_headers values(22811, '2015-03-30', 261502);
Insert into a_bkorders.order_details values(22811, 1, 1478, 5, 45.00);
Insert into a_bkorders.order_headers values(22812, '2015-03-31', 239427);
Insert into a_bkorders.order_details values(22812, 1, 1357, 50, 26.00);
Insert into a_bkorders.order_details values(22812, 2, 1425, 50, 28.09);
Insert into a_bkorders.order_headers values(22813, '2015-03-31', 239427);
Insert into a_bkorders.order_details values(22813, 1, 1175, 1, 45.00);
Insert into a_bkorders.order_details values(22813, 2, 1180, 1, 49.99);
Insert into a_bkorders.order_details values(22813, 3, 1182, 1, 45.00);
Insert into a_bkorders.order_details values(22813, 4, 1184, 1, 49.99);
Insert into a_bkorders.order_details values(22813, 5, 1185, 1, 49.99);
Insert into a_bkorders.order_details values(22813, 6, 1188, 1, 49.99);
Insert into a_bkorders.order_details values(22813, 7, 1877, 1, 45.00);
Insert into a_bkorders.order_details values(22813, 8, 1175, 1, 34.90);
Insert into a_bkorders.order_details values(22813, 9, 1425, 1, 25.90);
Insert into a_bkorders.order_headers values(22820, '2015-03-19', 227105);
Insert into a_bkorders.order_details values(22820, 1, 1628, 1, 32.00);
Insert into a_bkorders.order_details values(22820, 2, 1629, 1, 19.95);
Insert into a_bkorders.order_headers values(22821, '2015-03-19', 222477);
Insert into a_bkorders.order_details values(22821, 1, 1258, 1, 44.99);
Insert into a_bkorders.order_headers values(22825, '2015-03-21', 267780);
Insert into a_bkorders.order_details values(22825, 1, 1619, 2, 35.00);
Insert into a_bkorders.order_details values(22825, 2, 1128, 1, 46.20);
Insert into a_bkorders.order_details values(22825, 3, 1162, 1, 32.45);
Insert into a_bkorders.order_headers values(31830, '2015-03-21', 227105);
Insert into a_bkorders.order_details values(31830, 1, 1161, 3, 35.00);
Insert into a_bkorders.order_details values(31830, 2, 1142, 100, 34.95);
Insert into a_bkorders.order_headers values(31837, '2015-03-21', 222477);
Insert into a_bkorders.order_details values(31837, 1, 1128, 50, 46.95);
Insert into a_bkorders.order_headers values(31866, '2015-03-26', 290298);
Insert into a_bkorders.order_details values(31866, 1, 2001, 100, 39.00);
Insert into a_bkorders.order_details values(31866, 2, 1101, 5, 59.99);
Insert into a_bkorders.order_details values(31866, 3, 1142, 5, 39.00);
Insert into a_bkorders.order_headers values(32845, '2015-03-27', 227105);
Insert into a_bkorders.order_details values(32845, 1, 1162, 2, 35.00);
Insert into a_bkorders.order_headers values(32849, '2015-03-27', 290298);
Insert into a_bkorders.order_details values(32849, 1, 1401, 50, 46.95);
Insert into a_bkorders.order_details values(32849, 2, 2001, 100, 39.00);
Insert into a_bkorders.order_details values(32849, 3, 1128, 5, 25.00);
Insert into a_bkorders.order_details values(32849, 4, 1103, 1 , 10.95);
|
Ruby | UTF-8 | 449 | 3.375 | 3 | [] | no_license | class Student
# attr_accessor :name, :cohort
def initialize(student_name, cohort)
@name = student_name
@cohort = cohort
end
def student_name()
return @name
end
def cohort()
return @cohort
end
def set_student_name(name)
@name = student_name
end
def set_cohort(cohort)
@cohort = cohort
end
def student_to_talk
return "I can talk!"
end
def favourite_language(language)
"I love #{language}"
end
end
|
Java | UTF-8 | 954 | 2.546875 | 3 | [] | no_license | package com.example.myide.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.*;
/**
* 文件处理Controller
*/
@RestController
public class FileController {
@CrossOrigin //解决跨域问题
@PostMapping(value = "api/File/fileContent") //映射post请求
//@ResponseBody //将controller的方法返回的对象通过适当的转换器转换为指定的格式之后,写入到response对象的body区,通常用来返回JSON数据或者是XML数据,
//需要注意的呢,在使用此注解之后不会再走试图处理器,而是直接将数据写入到输入流中,他的效果等同于通过response对象输出指定格式的数据
//RequestBody用来接收前端传递给后端的json字符串中的数据
public String getFileContent(@RequestBody String str){
return "11";
}
}
|
Markdown | UTF-8 | 1,287 | 3.484375 | 3 | [] | no_license | # Problem
https://www.hackerrank.com/challenges/ctci-connected-cell-in-a-grid/problem
# Solution
[Depth first search](https://ko.wikipedia.org/wiki/%EA%B9%8A%EC%9D%B4_%EC%9A%B0%EC%84%A0_%ED%83%90%EC%83%89)를 이용하는 것이 핵심이다!<br/>
grid를 한번씩 훑는데, 이미 지나온 elements는 0으로 바꿔 여러 번 카운팅되지 않도록 한다.
```java
static int maxRegion(int[][] grid) {
int maxY = grid.length - 1;
int maxX = grid[0].length - 1;
int max = 0;
for(int x = 0; x <= maxX; ++x) {
for(int y = 0; y <= maxY; ++y) {
int region = getRegion(grid, x, y, maxX, maxY);
max = Math.max(region, max);
}
}
return max;
}
static int getRegion(int[][] grid, int x, int y, int maxX, int maxY) {
if (x < 0 || y < 0 || x > maxX || y > maxY || grid[y][x] == 0) {
return 0;
}
int region = 1;
grid[y][x] = 0;
for(int row = y - 1; row <= y + 1; ++row) {
for(int col = x - 1; col <= x + 1; ++col) {
if (row != y || col != x) {
region += getRegion(grid, col, row, maxX, maxY);
}
}
}
return region;
}
```
grid의 원소의 갯수를 N개라 할 때,<br/>
Time complexity: O(N)<br/>
Space complexity: O(1)<br/>
|
C# | UTF-8 | 18,835 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace V2IHubSimulator
{
class GeoVector
{
private double _x;
private double _y;
private double _z;
private const double _earthRadiusInKM = 6371.0;
public GeoVector()
{
_x = 0.0;
_y = 0.0;
_z = 0.0;
}
public GeoVector(double x, double y, double z)
{
_x = x;
_y = y;
_z = z;
}
/*
* Convert WGS84Point (lat/long) to NVector
*
* return GeoVector
*/
public static GeoVector WGS84PointToNVector(WGS84Point point)
{
GeoVector vec = new GeoVector();
double lat;
double lon;
//convert lat/lon to radians
lat = point.Latitude * Math.PI / 180.0;
lon = point.Longitude * Math.PI / 180.0;
//create right handed vector x -> 0°E,0°N; y -> 90°E,0°N, z -> 90°N
vec._x = Math.Cos(lat) * Math.Cos(lon);
vec._y = Math.Cos(lat) * Math.Sin(lon);
vec._z = Math.Sin(lat);
return vec;
}
/*
* Convert NVector to WGS84Point (lat/long)
*
* return WGS84Point
*/
public static WGS84Point NVectorToWGS84Point(GeoVector vec)
{
WGS84Point point = new WGS84Point();
point.Latitude = Math.Atan2(vec._z, Math.Sqrt((vec._x * vec._x) + (vec._y * vec._y))) * 180.0 / Math.PI;
point.Longitude = Math.Atan2(vec._y, vec._x) * 180.0 / Math.PI;
return point;
}
/*
* Calculate vector dot product
*
* return double
*/
public static double Dot(GeoVector vec1, GeoVector vec2)
{
return (vec1._x * vec2._x) + (vec1._y * vec2._y) + (vec1._z * vec2._z);
}
/*
* Calculate vector cross product
*
* return GeoVector
*/
public static GeoVector Cross(GeoVector vec1, GeoVector vec2)
{
GeoVector vec = new GeoVector();
vec._x = (vec1._y * vec2._z) - (vec1._z * vec2._y);
vec._y = (vec1._z * vec2._x) - (vec1._x * vec2._z);
vec._z = (vec1._x * vec2._y) - (vec1._y * vec2._x);
return vec;
}
/*
* Calculate magnitude or norm of vector
*
* return double
*/
public static double Length(GeoVector vec)
{
return Math.Sqrt((vec._x * vec._x) + (vec._y * vec._y) + (vec._z * vec._z));
}
/*
* Calculate vec1 + vec2
*
* return GeoVector
*/
public static GeoVector Plus(GeoVector vec1, GeoVector vec2)
{
GeoVector vec = new GeoVector();
vec._x = vec1._x + vec2._x;
vec._y = vec1._y + vec2._y;
vec._z = vec1._z + vec2._z;
return vec;
}
/*
* Calculate vec1 - vec2
*
* return GeoVector
*/
public static GeoVector Minus(GeoVector vec1, GeoVector vec2)
{
GeoVector vec = new GeoVector();
vec._x = vec1._x - vec2._x;
vec._y = vec1._y - vec2._y;
vec._z = vec1._z - vec2._z;
return vec;
}
/*
* Normalize vector to its unit vector
*
* return GeoVector
*/
public static GeoVector Unit(GeoVector vec)
{
GeoVector nvec = new GeoVector();
double norm = Length(vec);
if (norm == 1)
return vec;
if (norm == 0)
return vec;
nvec._x = vec._x / norm;
nvec._y = vec._y / norm;
nvec._z = vec._z / norm;
return nvec;
}
/*
* Multiply vector by a value
*
* return GeoVector
*/
public static GeoVector Times(GeoVector vec, double value)
{
GeoVector rvec = new GeoVector();
rvec._x = vec._x * value;
rvec._y = vec._y * value;
rvec._z = vec._z * value;
return rvec;
}
/*
* Calculate angle between vec1 and vec2 in radians (-pi to pi)
* If signVec is not supplied angle is unsigned.
* If signVec is supplied (must be out of the plane of vec1 and vec2) then sign is positive if vec1
* is clockwise looking along signVec, otherwise sign is negative.
*
* return radians (-pi to pi) as double
*
*/
public static double AngleBetweenInRadians(GeoVector vec1, GeoVector vec2, GeoVector signVec)
{
double angle = Math.Atan2(Length(Cross(vec1, vec2)), Dot(vec1, vec2));
if (signVec._x == 0.0 && signVec._y == 0.0 && signVec._z == 0.0)
{
// if signVec is invalid return unsigned angle
return angle;
}
//determine sign
if (Dot(Cross(vec1, vec2), signVec) < 0.0)
{
angle = -angle;
}
return angle;
}
/*
* Calculate distance between two WGS84Point in meters
*
* return meters as double
*/
public static double DistanceInMeters(WGS84Point point1, WGS84Point point2)
{
GeoVector vec1 = WGS84PointToNVector(point1);
GeoVector vec2 = WGS84PointToNVector(point2);
return DistanceInMeters(vec1, vec2);
}
/*
* Calculate distance between two GeoVector in meters
*
* return meters as double
*/
public static double DistanceInMeters(GeoVector vec1, GeoVector vec2)
{
double angle = AngleBetweenInRadians(vec1, vec2, new GeoVector());
return angle * _earthRadiusInKM * 1000.0;
}
/*
* Calculate great circle given a point and a bearing (degrees 0 to 360)
*
* return GeoVector
*/
public static GeoVector GreatCircle(GeoVector vec, double bearing)
{
GeoVector gc = new GeoVector();
double lat;
double lon;
double bear;
WGS84Point point = new WGS84Point();
point = NVectorToWGS84Point(vec);
//cout << "Point: " << point.Latitude << "," << point.Longitude << "\n";
//convert to radians
lat = point.Latitude * Math.PI / 180.0;
lon = point.Longitude * Math.PI / 180.0;
bear = bearing * Math.PI / 180.0;
gc._x = (Math.Sin(lon) * Math.Cos(bear)) - (Math.Sin(lat) * Math.Cos(lon) * Math.Sin(bear));
gc._y = (Math.Cos(lon) * -1.0 * Math.Cos(bear)) - (Math.Sin(lat) * Math.Sin(lon) * Math.Sin(bear));
gc._z = Math.Cos(lat) * Math.Sin(bear);
return gc;
}
/*
* Calculate initial bearing from point1 to point2 in degrees from north (0 to 360)
*
* return degrees from north (0 to 360) as double
*/
public static double BearingInDegrees(WGS84Point point1, WGS84Point point2)
{
GeoVector vec1 = WGS84PointToNVector(point1);
GeoVector vec2 = WGS84PointToNVector(point2);
GeoVector northPole = new GeoVector(0, 0, 1);
GeoVector c1 = new GeoVector(); //great circle through point1 and point2 surface normal
GeoVector c2 = new GeoVector(); //great circle through point1 and north pole surface normal
double bearing;
// calculate great circle surface normals
c1 = Cross(vec1, vec2);
c2 = Cross(vec1, northPole);
//signed bearing in degrees (-180 to 180)
bearing = AngleBetweenInRadians(c1, c2, vec1) * 180.0 / Math.PI;
//return normalized bearing (0 to 360)
if (bearing < 0.0)
bearing += 360.0;
return bearing;
}
/*
* Calculate point of intersection of two paths.
*
* If c1 and c2 are great circles through start and end points then candidate intersections are c1 × c2 and c2 × c1.
* Choose closer intersection.
*
* return WGS84Point
*/
public static WGS84Point Intersection(WGS84Point path1P1, WGS84Point path1P2, WGS84Point path2P1, WGS84Point path2P2)
{
GeoVector p1v1 = WGS84PointToNVector(path1P1);
GeoVector p1v2 = WGS84PointToNVector(path1P2);
GeoVector p2v1 = WGS84PointToNVector(path2P1);
GeoVector p2v2 = WGS84PointToNVector(path2P2);
GeoVector c1 = new GeoVector(); //great circle through path1P1 and path1P2 surface normal
GeoVector c2 = new GeoVector(); //great circle through path2P1 and path2P2 surface normal
GeoVector i1 = new GeoVector(); // intersection 1
GeoVector i2 = new GeoVector(); // intersection 2
double sum1, sum2;
// calculate great circle surface normals
c1 = Cross(p1v1, p1v2);
c2 = Cross(p2v1, p2v2);
// get both intersections
i1 = Cross(c1, c2);
i2 = Cross(c2, c1);
//calculate sum of distances from all points to each intersection, choose closest
sum1 = DistanceInMeters(p1v1, i1) + DistanceInMeters(p1v2, i1) +
DistanceInMeters(p2v1, i1) + DistanceInMeters(p2v2, i1);
sum2 = DistanceInMeters(p1v1, i2) + DistanceInMeters(p1v2, i2) +
DistanceInMeters(p2v1, i2) + DistanceInMeters(p2v2, i2);
if (sum1 < sum2)
return NVectorToWGS84Point(i1);
return NVectorToWGS84Point(i2);
}
/*
* Calculate point of intersection of two paths.
*
* If c1 and c2 are great circles through start and end points then candidate intersections are c1 × c2 and c2 × c1.
* Choose closer intersection.
*
* return WGS84Point
*/
public static WGS84Point Intersection(WGS84Point path1P1, double path1Bearing, WGS84Point path2P1, double path2Bearing)
{
GeoVector p1v1 = WGS84PointToNVector(path1P1);
GeoVector p2v1 = WGS84PointToNVector(path2P1);
GeoVector c1 = new GeoVector(); //great circle through path1P1 and path1P2 surface normal
GeoVector c2 = new GeoVector(); //great circle through path2P1 and path2P2 surface normal
GeoVector i1 = new GeoVector(); // intersection 1
GeoVector i2 = new GeoVector(); // intersection 2
double sum1, sum2;
// calculate great circle surface normals
c1 = GreatCircle(p1v1, path1Bearing);
c2 = GreatCircle(p2v1, path2Bearing);
// get both intersections
i1 = Cross(c1, c2);
i2 = Cross(c2, c1);
//calculate sum of distances from all points to each intersection, choose closest
sum1 = DistanceInMeters(p1v1, i1) + DistanceInMeters(p2v1, i1);
sum2 = DistanceInMeters(p1v1, i2) + DistanceInMeters(p2v1, i2);
if (sum1 < sum2)
return NVectorToWGS84Point(i1);
return NVectorToWGS84Point(i2);
}
/*
* Calculate new position given starting point with bearing and distance traveled in meters
*
* return WGS84Point
*/
public static WGS84Point DestinationPoint(WGS84Point point, double bearing, double distanceTraveledInMeters)
{
GeoVector n1 = new GeoVector();
double angle;
double earthRadiusInMeters = _earthRadiusInKM * 1000.0;
double b;
GeoVector northPole = new GeoVector(0, 0, 1);
GeoVector de = new GeoVector(); // direction east
GeoVector dn = new GeoVector(); // direction north
GeoVector deSin = new GeoVector();
GeoVector dnCos = new GeoVector();
GeoVector d = new GeoVector(); // direction vector at n1 (C x n1 where C = great circle)
GeoVector x = new GeoVector(); // component of n2 parallel to n1
GeoVector y = new GeoVector(); // component of n2 perpendicular to n1
GeoVector n2 = new GeoVector();
n1 = WGS84PointToNVector(point);
angle = distanceTraveledInMeters / earthRadiusInMeters; // angle in radians
b = bearing * Math.PI / 180.0; // bearing in radians
de = Cross(northPole, n1);
de = Unit(de);
dn = Cross(n1, de);
deSin = Times(de, Math.Sin(b));
dnCos = Times(dn, Math.Cos(b));
d = Plus(dnCos, deSin);
x = Times(n1, Math.Cos(angle));
y = Times(d, Math.Sin(angle));
n2 = Plus(x, y);
// you have got to be kidding me
return NVectorToWGS84Point(n2);
}
/*
* Calculate cross track distance, the distance in meters from a point to the great circle defined
* by a path start point and end point, distance is signed (negative to left of path, positive to right of path)
*
* return meters as double
*/
public static double CrossTrackDistanceInMeters(WGS84Point point, WGS84Point pathP1, WGS84Point pathP2)
{
GeoVector vec1 = WGS84PointToNVector(point);
GeoVector pv1 = WGS84PointToNVector(pathP1);
GeoVector pv2 = WGS84PointToNVector(pathP2);
GeoVector c1 = new GeoVector(); //great circle through pathP1 and pathP2 surface normal
double angle;
// calculate great circle surface normal
c1 = Cross(pv1, pv2);
// calculate angle between surface and point
angle = AngleBetweenInRadians(c1, vec1, new GeoVector()) - (Math.PI / 2);
//return distance in meters
return angle * _earthRadiusInKM * 1000.0;
}
/*
* Calculate cross track distance, the distance in meters from a point to the great circle defined
* by a path start point and bearing, distance is signed (negative to left of path, positive to right of path)
*
* return meters as double
*/
public static double CrossTrackDistanceInMeters(WGS84Point point, WGS84Point pathP1, double pathBearing)
{
GeoVector vec1 = WGS84PointToNVector(point);
GeoVector pv1 = WGS84PointToNVector(pathP1);
GeoVector c1 = new GeoVector(); //great circle from pathP1 using bearing
double angle;
// calculate great circle surface normal
c1 = GreatCircle(pv1, pathBearing);
// calculate angle between surface and point
angle = AngleBetweenInRadians(c1, vec1, new GeoVector()) - (Math.PI / 2);
//return distance in meters
return angle * _earthRadiusInKM * 1000.0;
}
/*
* Calculate the signed angle from path1 to path2 (-180 to 180)
* Paths are defined by their GPS coordinate pairs
*
* return degrees from north (-180 to 180) as double
*/
public static double AngleBetweenPathsInDegrees(WGS84Point path1P1, WGS84Point path1P2, WGS84Point path2P1, WGS84Point path2P2)
{
GeoVector p1v1 = WGS84PointToNVector(path1P1);
GeoVector p1v2 = WGS84PointToNVector(path1P2);
GeoVector p2v1 = WGS84PointToNVector(path2P1);
GeoVector p2v2 = WGS84PointToNVector(path2P2);
GeoVector c1 = new GeoVector(); //great circle through path1P1 and path1P2 surface normal
GeoVector c2 = new GeoVector(); //great circle through path2P1 and path2P2 surface normal
double angle;
// calculate great circle surface normals
c1 = Cross(p1v1, p1v2);
c2 = Cross(p2v1, p2v2);
// calculate angle between surface normals using vector to first point as sign vector
angle = AngleBetweenInRadians(c2, c1, p1v1) * 180.0 / Math.PI;
//cout << "GC1: " << c1._x << "," << c1._y << "," << c1._z << "\n";
return angle;
}
/*
* Calculate the signed angle from path1 to path2 (-180 to 180)
* Path1 is defined by its GPS start point and bearing, path2 is a GPS coordinate pair
*
* return degrees from north (-180 to 180) as double
*/
public static double AngleBetweenPathsInDegrees(WGS84Point path1P1, double path1Bearing, WGS84Point path2P1, WGS84Point path2P2)
{
GeoVector p1v1 = WGS84PointToNVector(path1P1);
GeoVector p2v1 = WGS84PointToNVector(path2P1);
GeoVector p2v2 = WGS84PointToNVector(path2P2);
GeoVector c1 = new GeoVector(); //great circle through path1P1 and path1Bearing
GeoVector c2 = new GeoVector(); //great circle through path2P1 and path2P2 surface normal
double angle;
// calculate great circle surface normals
c1 = GreatCircle(p1v1, path1Bearing);
c2 = Cross(p2v1, p2v2);
// calculate angle between surface normals using vector to first point as sign vector
angle = AngleBetweenInRadians(c2, c1, p1v1) * 180.0 / Math.PI;
//cout << "GC1(B): " << c1._x << "," << c1._y << "," << c1._z << " B: " << path1Bearing << "\n";
return angle;
}
/*
* Calculate the midpoint between two GPS coordinate points
*
* return WGS84Point
*/
public static WGS84Point MidpointBetween(WGS84Point point1, WGS84Point point2)
{
GeoVector vec = new GeoVector();
GeoVector vec1 = WGS84PointToNVector(point1);
GeoVector vec2 = WGS84PointToNVector(point2);
vec = Plus(vec1, vec2);
vec = Unit(vec);
return NVectorToWGS84Point(vec);
}
}
}
|
PHP | UTF-8 | 4,870 | 2.625 | 3 | [] | no_license | <?php
$title = 'Register';
include('includes/header.php');
include('includes/mysqli_connect.php');
include('includes/functions.php');
include('includes/sidebar-a.php'); ?>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$errors = [];
//xd cac du lieuj laf ja
$fn = $ln = $e = $p = false;
if (preg_match('/^[\w\'.-]{2,20}$/i', trim($_POST['first_name']))) {
$fn = mysqli_real_escape_string($dbc, trim($_POST['first_name']));
} else {
$errors[] = 'first name';
}
if (preg_match('/^[\w\'.-]{2,20}$/i', trim($_POST['last_name']))) {
$ln = mysqli_real_escape_string($dbc, trim($_POST['last_name']));
} else {
$errors[] = 'last name';
}
if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
$e = mysqli_real_escape_string($dbc, $_POST['email']);
} else {
$errors[] = 'email';
}
if (preg_match('/^[\w\'.-]{6,20}$/', $_POST['password1'])) {
if ($_POST['password1'] == $_POST['password2']) {
$p = mysqli_real_escape_string($dbc, trim($_POST['password1']));
} else {
$errors[] = 'password not match';
}
} else {
$errors[] = 'password';
}
if ($fn && $ln && $e && $p) {
$q = "SELECT id FROM users WHERE email = '{$e}'";
$r = mysqli_query($dbc, $q);
confirm_query($r, $q);
if (mysqli_num_rows($r) == 0) {
$a = md5(uniqid(rand(), true));
// insert
$q = "INSERT INTO users (first_name,last_name,email,password, active , register_date) VALUES ('{$fn}','{$ln}','{$e}',SHA1('$p'),'{$a}',NOW())";
$r = mysqli_query($dbc, $q);
confirm_query($r, $q);
if (mysqli_affected_rows($dbc)) {
$body = BASE_URL."admin/active.php?x=".urlencode($e)."&y={$a}";
echo "<br>Thanks for register here is your account click here to active :</br><a class='success' href='{$body}'> {$body}</a></p>";
} else {
$message = "<p class='warning'> The email was already used</p>";
}
//check email xem co hay khong , k thi cho phep dang ki
} else {
$message = "<p class='warning'>please fill all required </p>";
}
} else {
}
}
?>
<div id="content">
<h2>Register</h2>
<?php if (!empty($message)) echo $message; ?>
<form action="register.php" method="POST">
<fieldset>
<legend>Register</legend>
<div>
<label for="First Name">First Name <span class="required">*</span>
<?php if (isset($errors) && in_array('first name',
$errors)) echo "<span class='warning'>Please enter your first name</span>"; ?>
</label>
<input type="text" name="first_name" size="20" maxlength="20"
value="<?php if (isset($_POST['first_name'])) echo $_POST['first_name']; ?>" tabindex='1'/>
</div>
<div>
<label for="Last Name">Last Name <span class="required">*</span>
<?php if (isset($errors) && in_array('last name',
$errors)) echo "<span class='warning'>Please enter your last name</span>"; ?>
</label>
<input type="text" name="last_name" size="20" maxlength="40"
value="<?php if (isset($_POST['last_name'])) echo $_POST['last_name']; ?>" tabindex='2'/>
</div>
<div>
<label for="email">Email <span class="required">*</span>
<?php if (isset($errors) && in_array('email',
$errors)) echo "<span class='warning'>Please enter your valid email</span>"; ?>
</label>
<input type="text" name="email" id="email" size="20" maxlength="80"
value="<?php if (isset($_POST['email'])) echo htmlentities($_POST['email'], ENT_COMPAT,
'UTF-8'); ?>" tabindex='3'/>
<span id="available"></span>
</div>
<div>
<label for="password">Password <span class="required">*</span>
<?php if (isset($errors) && in_array('password',
$errors)) echo "<span class='warning'>Please enter your password</span>"; ?>
</label>
<input type="password" name="password1" size="20" maxlength="20"
value="<?php if (isset($_POST['password1'])) echo $_POST['password1']; ?>" tabindex='4'/>
</div>
<div>
<label for="email">Confirm Password <span class="required">*</span>
<?php if (isset($errors) && in_array('password not match',
$errors)) echo "<span class='warning'>Your confirmed password does not match.</span>"; ?>
</label>
<input type="password" name="password2" size="20" maxlength="20"
value="<?php if (isset($_POST['password12'])) echo $_POST['password2']; ?>" tabindex='5'/>
</div>
</fieldset>
<p><input type="submit" name="submit" value="Register"/></p>
</form>
</div>
<?php include('includes/sidebar-b.php'); ?>
<?php include('includes/footer.php'); ?>
|
C# | UTF-8 | 684 | 2.609375 | 3 | [] | no_license | using UnityEngine;
using System.Collections;
public class FallingBlock : MonoBehaviour {
void Start ()
{
}
void Update ()
{
}
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.tag=="Player")
{
StartCoroutine(FallBlock());
//if the player collides with certain blocks in level 6 they will start aco routine called fallblock
}
}
IEnumerator FallBlock()
{
yield return new WaitForSeconds(1f);
Destroy(this.gameObject);
//after the fallblock routine isfinished it waits 1 second before destroying the block object
}
}
|
Python | UTF-8 | 3,806 | 2.6875 | 3 | [
"MIT"
] | permissive | """
Design Under Uncertainty
========================
We will ue the Cantilever Beam benchmark to illustrate how to design under uncertainty.
.. figure:: ../../figures/cantilever-beam.png
:align: center
Conceptual model of the cantilever-beam
.. table:: Uncertainties
:align: center
=============== ========= =======================
Uncertainty Symbol Prior
=============== ========= =======================
Yield stress :math:`R` :math:`N(40000,2000)`
Young's modulus :math:`E` :math:`N(2.9e7,1.45e6)`
Horizontal load :math:`X` :math:`N(500,100)`
Vertical Load :math:`Y` :math:`N(1000,100)`
=============== ========= =======================
First we must specify the distribution of the random variables
"""
import numpy as np
import pyapprox as pya
from pyapprox.benchmarks.benchmarks import setup_benchmark
from functools import partial
from pyapprox.optimization import *
benchmark = setup_benchmark('cantilever_beam')
from pyapprox.models.wrappers import ActiveSetVariableModel
nsamples = 10
samples = pya.generate_independent_random_samples(benchmark.variable,nsamples)
fun = ActiveSetVariableModel(
benchmark.fun,benchmark.variable.num_vars()+benchmark.design_variable.num_vars(),
samples,benchmark.design_var_indices)
jac = ActiveSetVariableModel(
benchmark.jac,benchmark.variable.num_vars()+benchmark.design_variable.num_vars(),
samples,benchmark.design_var_indices)
generate_random_samples = partial(
pya.generate_independent_random_samples,benchmark.variable,100)
#set seed so that finite difference jacobian always uses the same set of samples for each
#step size and as used for computing the exact gradient
seed=1
generate_sample_data = partial(
generate_monte_carlo_quadrature_data,generate_random_samples,
benchmark.variable.num_vars(),benchmark.design_var_indices,seed=seed)
num_vars = benchmark.variable.num_vars()+benchmark.design_variable.num_vars()
objective = StatisticalConstraint(
benchmark.fun,benchmark.jac,expectation_fun,expectation_jac,num_vars,
benchmark.design_var_indices,generate_sample_data)
init_guess = 2*np.ones((2,1))
errors = pya.check_gradients(
objective,objective.jacobian,init_guess,disp=False)
assert errors.min()<1e-7
constraint = StatisticalConstraint(
benchmark.constraint_fun,benchmark.constraint_jac,expectation_fun,expectation_jac,
num_vars,benchmark.design_var_indices,generate_sample_data,bound=0.1,upper_bound=False)
print('####')
init_guess = 2*np.ones((2,1))
errors = pya.check_gradients(
constraint,constraint.jacobian,init_guess,disp=True)
assert errors.min()<1e-7
from scipy.optimize import minimize, NonlinearConstraint
def run_design(objective,jac,constraints,constraints_jac,bounds,x0,options):
options=options.copy()
if constraints_jac is None:
constraints_jac = [None]*len(constraints)
scipy_constraints = []
for constraint, constraint_jac in zip(constraints,constraints_jac):
scipy_constraints.append(NonlinearConstraint(
constraint,0,np.inf,jac=constraint_jac))
method = options.get('method','slsqp')
callback=options.get('callback',None)
if 'callback' in options:
del options['callback']
print(x0[:,0])
res = minimize(
objective, x0[:,0], method=method, jac=jac, hess=None,
constraints=scipy_constraints,options=options,callback=callback,
bounds=bounds)
return res.x, res
print('$$$$')
options={'callback':lambda xk : print(xk),'disp':True,'iprint':5}
x,res=run_design(objective,objective.jacobian,[constraint],[constraint.jacobian],benchmark.design_variable.bounds,init_guess,options)
print(res)
#robust design
#min f subject to variance<tol
#reliability design
#min f subject to prob failure<tol
|
C | UTF-8 | 138 | 2.921875 | 3 | [] | no_license | #include <stdio.h>
int main()
{
int a, i;
scanf("%X", &a);
for(i=1;i<=15;i++)
{
printf("%X*%X=%X\n", a, i, a*i);
}
return 0;
}
|
Python | UTF-8 | 245 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Auther Jmz
person = ['jmz','qqc',['aa','bb','cc']]
p1 = person[:] # 浅copy 的另一种形式
p2 = person[:]
person[0] = 'jjj'
person[2][0] = 'aaa222'
print(p1)
print(p2) |
Java | UTF-8 | 906 | 2.09375 | 2 | [] | no_license | package com.xyy.bill.def;
import com.xyy.bill.meta.BillViewMeta;
import com.xyy.bill.meta.DataSetMeta;
public class ViewportDef{
private String key;// 字典key
private String fullKey;
private BillViewMeta view;// 视图--视口的视图必须为BillUIPanel
private DataSetMeta dataSet;// 数据集定义
public ViewportDef(String key) {
super();
this.key = key;
}
public String getFullKey() {
return fullKey;
}
public void setFullKey(String fullKey) {
this.fullKey = fullKey;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public BillViewMeta getView() {
return view;
}
public void setView(BillViewMeta view) {
this.view = view;
}
public DataSetMeta getDataSet() {
return dataSet;
}
public void setDataSet(DataSetMeta dataSet) {
this.dataSet = dataSet;
}
}
|
C# | UTF-8 | 1,241 | 2.53125 | 3 | [] | no_license | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace YaaargShooter
{
public class HERO_CAMERA : MonoBehaviour
{
// -- ATTRIBUTES
[SerializeField] public HERO Hero;
[SerializeField] public Transform Pivot;
[SerializeField] public float MaximumXAngle = 30;
[SerializeField] public float MinimumXAngle = -30;
private float OrbitXAngle;
// -- CONSTRUCTORS
private void Start()
{
}
// -- OPERATIONS
private void Update()
{
Orbit();
Follow();
}
private void Orbit()
{
float left_stick_vertical = Input.GetAxis("L_YAxis_1");
OrbitXAngle += left_stick_vertical * Hero.MaxTurningSpeed * Time.deltaTime;
OrbitXAngle = Mathf.Clamp(OrbitXAngle, MinimumXAngle, MaximumXAngle);
Pivot.localRotation = Quaternion.Euler(OrbitXAngle, 0, 0);
}
private void Follow()
{
transform.position = Vector3.Lerp(transform.position, Hero.transform.position, Time.deltaTime * 6);
transform.rotation = Hero.transform.rotation;
}
}
} // end of namespace |
Java | UTF-8 | 654 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.huijimuhe.commonlayout.utils;
import android.graphics.Bitmap;
import android.view.View;
public class ScreenShotUtil {
private View view;
public ScreenShotUtil(View view) {
this.view = view;
}
public Bitmap convertlayout() {
view.setDrawingCacheEnabled(true);
view.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight()+60);
view.buildDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(view.getDrawingCache());
return bitmap;
}
}
|
Python | UTF-8 | 802 | 2.703125 | 3 | [] | no_license | import sys
# # x = sys.argv[1]
# # y = sys.argv[2]
# fil1 = ""
# fi1 = open(sys.argv[1], "r")
# for i in fi1:
# fil1 += i.strip() + f"\t{sys.argv[1]}\n"
# # fil1 += f"\t{x}\n"
# fi1.close()
# fil2 = ""
# fi2 = open(sys.argv[2], "r")
# for i in fi2:
# fil2 += i.strip() + f"\t{sys.argv[1]}\n"
# # fil2 += f"\t{y}\n"
# fi2.close()
# fi3 = open("Test3.txt", "w")
# fi3.write("Group\tdata1\tdata2\tSample\n")
# fi3.write(fil1)
# fi3.write(fil2)
# fi3.close
def combine(fi_name):
fil = ""
fi = open(fi_name, "r")
for i in fi:
fil += i.strip() + f"\t{fi_name}\n"
fi.close()
return fil
fil1 = combine(sys.argv[1])
fil2 = combine(sys.argv[2])
fi3 = open("Test4.txt", "w")
fi3.write("Group\tdata1\tdata2\tSample\n")
fi3.write(fil1)
fi3.write(fil2)
fi3.close()
|
Markdown | UTF-8 | 3,500 | 3.015625 | 3 | [] | no_license | 
# Lab | My first queries
Please, connect to the Data Bootcamp Google Database using the credentials provided in class. Choose the database called *appleStore* (NOT *appleStore2*!). Use the *data* table to query the data about Apple Store Apps and answer the following questions:
**1. Which are the different genres?**
'Book'
'Business'
'Catalogs'
'Education'
'Entertainment'
'Finance'
'Food & Drink'
'Games'
'Health & Fitness'
'Lifestyle'
'Medical'
'Music'
'Navigation'
'News'
'Photo & Video'
'Productivity'
'Reference'
'Shopping'
'Social Networking'
'Sports'
'Travel'
'Utilities'
'Weather'
**2. Which is the genre with more apps rated?**
'Games', '52878491'
'Social Networking', '7598316'
'Photo & Video', '5008946'
'Entertainment', '4030518'
'Music', '3980199'
'Shopping', '2271070'
'Health & Fitness', '1784371'
'Utilities', '1702228'
'Sports', '1599070'
'Weather', '1597034'
**3. Which is the genre with more apps?**
'Games', '3862'
**4. Which is the one with less?**
'Catalogs', '10'
**5. Take the 10 apps most rated.**
'Facebook', 'Social Networking', '2974676'
'Instagram', 'Photo & Video', '2161558'
'Clash of Clans', 'Games', '2130805'
'Temple Run', 'Games', '1724546'
'Pandora - Music & Radio', 'Music', '1126879'
'Pinterest', 'Social Networking', '1061624'
'Bible', 'Reference', '985920'
'Candy Crush Saga', 'Games', '961794'
'Spotify Music', 'Music', '878563'
'Angry Birds', 'Games', '824451'
**6. Take the 10 apps best rated by users.**
':) Sudoku +', 'Games', '5'
'King of Dragon Pass', 'Games', '5'
'TurboScan™ Pro - document & receipt scanner: scan multiple pages and photos to PDF', 'Business', '5'
'Plants vs. Zombies', 'Games', '5'
'Learn to Speak Spanish Fast With MosaLingua', 'Education', '5'
'Plants vs. Zombies HD', 'Games', '5'
'The Photographer\'s Ephemeris', 'Photo & Video', '5'
'▻Sudoku +', 'Games', '5'
'Flashlight Ⓞ', 'Utilities', '5'
'Infinity Blade', 'Games', '5'
**7. Take the mean rate between the 10 apps most rated.** Don't calculate the mean, just see the data!
'3.526955675976101'
**8. Take the mean rate between the 10 apps best rated.** Don't calculate the mean, just see the data!
It is 5. Just mind that those 10 apps are not exactly the best rated. That is, they are among the best rated, but they are tied in having the best rating with 490 more apps that also have the top rating. By limiting to 10 records, we just get a slice of 10 of them.
**9. What do you see here?**
The query for the 10 most rated ones gives us the top 10 of most rated apps. But the query for the 10 best rated ones, does not exactly gives us the 10 best rated ones but a sample of them.
**10. How could you take the top 3 regarding the user ratings but also the number of votes?**
They are different variables. We cant sort by them at once. It is either one or the other. If we include both columns to sort from, what we actually have is a tie-break 2nd criteria. That is, when the sorting using the 1st column gives us a tie, then we move on to the 2nd one used in the query to sort from.
**11. Does people care about the price?**
In general they do, cause the most downloaded ones are for free. If they hadn't been for free, maybe they wouldn't have become so famous and used. Nevertheless, we won't really know this for sure.
## Deliverables
You need to submit a `.sql` file that includes the queries used to answer the questions above, as well as an `.md` file including your answers.
|
Markdown | UTF-8 | 1,241 | 2.6875 | 3 | [] | no_license | ---
name: Yoshitaka Fujii
title: "Development of a serverless web application framework using DDD"
length: 40
audience: Intermediate
language: Japanese
twitter: yoshiyoshifujii
github: yoshiyoshifujii
icon: https://pbs.twimg.com/profile_images/907421547551277056/_vQ3f2Fg_400x400.jpg
organization: MOTEX Inc.
tags:
- Best Practices
- DevOps
- Software Design and Architecture
- Microservices
suggestions:
- People who want to implement medium-sized web applications based on a Serverless Architecture
---
Serverless architecture has become widely used as this architecture saves you from having to deal with a variety of difficult tasks such as scalability, security, and infrastructure maintenance.
Although one can easily start a serverless web application, as the size of the web application grows, maintenance costs and the difficulty of said maintenance increases as well.
To tackle this problem, I have applied Domain Driven Design (DDD) to serverless architecture. I then developed a framework based on what I have learned through this process.
In this session, I will explain how to use my framework and its design principle.
This session will show one year's progress from my presentation at the previous ScalaMatsuri conference.
|
C# | UTF-8 | 11,122 | 2.75 | 3 | [
"MIT"
] | permissive | using System;
using System.Collections.Generic;
using Int8 = System.SByte;
using UInt8 = System.Byte;
public interface ViReceiveDataKeyInterface
{
void Read(ViIStream IS);
}
public class ViReceiveDataKeyInt8 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyInt8() { }
public ViReceiveDataKeyInt8(Int8 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public Int8 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyInt8 lhs, ViReceiveDataKeyInt8 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyInt8 lhs, ViReceiveDataKeyInt8 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyInt8 lhs, Int8 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyInt8 lhs, Int8 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator Int8(ViReceiveDataKeyInt8 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyInt8 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyInt8))
{
return false;
}
ViReceiveDataKeyInt8 data = (ViReceiveDataKeyInt8)other;
return _value.Equals(data.Value);
}
Int8 _value;
}
public class ViReceiveDataKeyUInt8 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyUInt8() { }
public ViReceiveDataKeyUInt8(UInt8 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public UInt8 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyUInt8 lhs, ViReceiveDataKeyUInt8 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyUInt8 lhs, ViReceiveDataKeyUInt8 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyUInt8 lhs, UInt8 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyUInt8 lhs, UInt8 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator UInt8(ViReceiveDataKeyUInt8 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyUInt8 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyUInt8))
{
return false;
}
ViReceiveDataKeyUInt8 data = (ViReceiveDataKeyUInt8)other;
return _value.Equals(data.Value);
}
UInt8 _value;
}
public class ViReceiveDataKeyInt16 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyInt16() { }
public ViReceiveDataKeyInt16(Int16 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public Int16 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyInt16 lhs, ViReceiveDataKeyInt16 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyInt16 lhs, ViReceiveDataKeyInt16 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyInt16 lhs, Int16 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyInt16 lhs, Int16 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator Int16(ViReceiveDataKeyInt16 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyInt16 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyInt16))
{
return false;
}
ViReceiveDataKeyInt16 data = (ViReceiveDataKeyInt16)other;
return _value.Equals(data.Value);
}
Int16 _value;
}
public class ViReceiveDataKeyUInt16 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyUInt16() { }
public ViReceiveDataKeyUInt16(UInt16 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public UInt16 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyUInt16 lhs, ViReceiveDataKeyUInt16 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyUInt16 lhs, ViReceiveDataKeyUInt16 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyUInt16 lhs, UInt16 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyUInt16 lhs, UInt16 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator UInt16(ViReceiveDataKeyUInt16 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyUInt16 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyUInt16))
{
return false;
}
ViReceiveDataKeyUInt16 data = (ViReceiveDataKeyUInt16)other;
return _value.Equals(data.Value);
}
UInt16 _value;
}
public class ViReceiveDataKeyInt32 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyInt32() { }
public ViReceiveDataKeyInt32(Int32 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public Int32 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyInt32 lhs, ViReceiveDataKeyInt32 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyInt32 lhs, ViReceiveDataKeyInt32 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyInt32 lhs, Int32 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyInt32 lhs, Int32 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator Int32(ViReceiveDataKeyInt32 data)
{
return data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyInt32))
{
return false;
}
ViReceiveDataKeyInt32 data = (ViReceiveDataKeyInt32)other;
return _value.Equals(data.Value);
}
Int32 _value;
}
public class ViReceiveDataKeyUInt32 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyUInt32() { }
public ViReceiveDataKeyUInt32(UInt32 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public UInt32 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyUInt32 lhs, ViReceiveDataKeyUInt32 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyUInt32 lhs, ViReceiveDataKeyUInt32 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyUInt32 lhs, UInt32 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyUInt32 lhs, UInt32 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator UInt32(ViReceiveDataKeyUInt32 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyUInt32 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyUInt32))
{
return false;
}
ViReceiveDataKeyUInt32 data = (ViReceiveDataKeyUInt32)other;
return _value.Equals(data.Value);
}
UInt32 _value;
}
public class ViReceiveDataKeyInt64 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyInt64() { }
public ViReceiveDataKeyInt64(Int64 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public Int64 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyInt64 lhs, ViReceiveDataKeyInt64 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyInt64 lhs, ViReceiveDataKeyInt64 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyInt64 lhs, Int64 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyInt64 lhs, Int64 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator Int64(ViReceiveDataKeyInt64 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyInt64 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyInt64))
{
return false;
}
ViReceiveDataKeyInt64 data = (ViReceiveDataKeyInt64)other;
return _value.Equals(data.Value);
}
Int64 _value;
}
public class ViReceiveDataKeyUInt64 : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyUInt64() { }
public ViReceiveDataKeyUInt64(UInt64 value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public UInt64 Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyUInt64 lhs, ViReceiveDataKeyUInt64 rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyUInt64 lhs, ViReceiveDataKeyUInt64 rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyUInt64 lhs, UInt64 rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyUInt64 lhs, UInt64 rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator UInt64(ViReceiveDataKeyUInt64 data)
{
return data.Value;
}
public static implicit operator int(ViReceiveDataKeyUInt64 data)
{
return (int)data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyUInt64))
{
return false;
}
ViReceiveDataKeyUInt64 data = (ViReceiveDataKeyUInt64)other;
return _value.Equals(data.Value);
}
UInt64 _value;
}
public class ViReceiveDataKeyString : ViReceiveDataKeyInterface
{
public ViReceiveDataKeyString() { }
public ViReceiveDataKeyString(string value) { _value = value; }
public void Read(ViIStream IS)
{
IS.Read(out _value);
}
public string Value { get { return _value; } }
public static bool operator ==(ViReceiveDataKeyString lhs, ViReceiveDataKeyString rhs)
{
return (lhs.Value == rhs.Value);
}
public static bool operator !=(ViReceiveDataKeyString lhs, ViReceiveDataKeyString rhs)
{
return (lhs.Value != rhs.Value);
}
public static bool operator ==(ViReceiveDataKeyString lhs, String rhs)
{
return (lhs.Value == rhs);
}
public static bool operator !=(ViReceiveDataKeyString lhs, String rhs)
{
return (lhs.Value != rhs);
}
public static implicit operator string(ViReceiveDataKeyString data)
{
return data.Value;
}
public override int GetHashCode()
{
return _value.GetHashCode();
}
public override bool Equals(object other)
{
if (!(other is ViReceiveDataKeyString))
{
return false;
}
ViReceiveDataKeyString data = (ViReceiveDataKeyString)other;
return _value.Equals(data.Value);
}
string _value;
}
|
Java | UTF-8 | 772 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.ropeok.dataprocess.handler.impl;
import com.ropeok.dataprocess.handler.HandleStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
/**
* 方便调试
*/
public class PrintDataProcHandler extends AbstractProcHandler{
private static final Logger LOGGER = LoggerFactory.getLogger(PrintDataProcHandler.class);
private int count = 0;
@Override
public HandleStatus handle(Map<String, Object> data) throws Exception {
/*if(((String)data.get("dzmc")).contains("福建省厦门市集美区乐安北里")) {
LOGGER.info("count:{}, data:{}", ++count, data);
}*/
LOGGER.info("count:{}, data:{}", ++count, data);
return HandleStatus.THROW;
}
}
|
JavaScript | UTF-8 | 1,737 | 4.25 | 4 | [] | no_license | //String Compression implement a method to perform basic string compression using the counts
//of repeated characters. For example, the string aabbcccccaaa would be come a2b1c5a3. If the
// "compressed" string would not become smaller than the original string, your method should return
function stringComp(str){
if(str == undefined){
return false;
}
if(str.length <= 2){
return str;
}
var currentLetter = str[0];
var count = 1;
var str2 = str[0];
for(var i = 1; i < str.length; i++){
if(str[i] == currentLetter){
count += 1;
}else{
str2 += count + str[i];
currentLetter = str[i];
count = 1;
}
}
str2 += count; //for the last number
if(str.length < str2.length){
return str;
}
return str2;
}
console.log(stringComp("aabbcccccaaa"));
function stringCompression1(str) {
if (!str || str.length <= 2)
return str;
const charMap = new Map();
let compressedString = '';
currentLetter = str[0];
for (const letter of str) {
if (letter === currentLetter) {
charMap.set(letter, charMap.get(letter) + 1 || 1);
} else {
compressedString += currentLetter + charMap.get(currentLetter);
charMap.clear();
currentLetter = letter;
charMap.set(letter, 1);
}
}
compressedString += [...charMap][0].join``;
return compressedString.length < str.length ? compressedString : str;
}
console.log(stringCompression1("aabbcccccaaa"));
//array = [1,2,2,5,8] 5 combinations
//Abbeh
//aveh
//Abyh
//Lbeh
//Lyh
//time complexity vs space complexity
// arr = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
// dict = {
// a: 1,
// b: 2,
// e: 1,
// h: 1
// }
arr = [1,2,2,5,8];
function findCombos(arr){
var dict = {};
} |
Markdown | UTF-8 | 637 | 2.515625 | 3 | [
"MIT"
] | permissive | ---
num: "proj01"
desc: "Observed 1-on-1 help session"
ready: true
assigned: 2018-04-19 15:30:00.00-8:00
due: 2018-04-26 17:00:00.00-8:00
---
# Scheduling your one-on-one observations
* You have two tries on this assignment. If you feel that your first observation did not go well, you may request your instructor for a second try
* Contact you instructor to schedule two time slots to observe you in action either during sections, open labs or their office hours. Scheduling your one-on-one session is due next week, however you may choose a date anytime between now and week 8 (05/25) for the actual observation
# List of topics
|
C | UTF-8 | 376 | 3.21875 | 3 | [] | no_license | 1,for(表达式1;循环条件;表达式2){
//语句;
}
//打印1-200内不能被3整除的数
for(int i = 1;i<200;i++){
if(i % 3 != 0){
NSLog(@"%d不能被3整除",i);
}
}
用for循环写一个 乘法口诀表
for(int i = 1; i <=9; i++){
for (int j = 1;j <= i; j++){
printf(" %d*%d = %d",i,j,i*j);
}
printf("\n");
} |
Java | UTF-8 | 2,165 | 3.8125 | 4 | [] | no_license | package demo4;
import java.io.File;
import java.io.FilenameFilter;
public class java25 {
public static void main(String[] args) {
// TODO Auto-generated method stub
File f=new File("C:\\Windows");//构造File对象时,既可以传入绝对路径,也可以传入相对路径
//File的路径返回值:一种是getPath(),返回构造方法传入的路径,一种是getAbsolutePath(),返回绝对路径,
//一种是getCanonicalPath,它和绝对路径类似,但是返回的是规范路径
//规范路径就是把.和..转换成标准的绝对路径后的路径
//File对象既可以表示文件,也可以表示目录。
System.out.println(f.isFile());//是否是一个已存在的文件
System.out.println(f.isDirectory());//是否是一个已存在的目录
//File对象获取到一个文件时,还可以进一步判断文件的权限和大小
/*
* boolean canRead():是否可读;
boolean canWrite():是否可写;
boolean canExecute():是否可执行;
long length():文件字节大小。
*/
//当File对象表示一个文件时,可以通过createNewFile()创建一个新文件,用delete()删除该文件
//File对象提供了createTempFile()来创建一个临时文件,以及deleteOnExit()在JVM退出时自动删除该文件
//当File对象表示一个目录时,可以使用list()和listFiles()列出目录下的文件和子目录名
File[] fs1 = f.listFiles(); // 列出所有文件和子目录
printFiles(fs1);
File[] fs2 = f.listFiles(new FilenameFilter() { // 仅列出.exe文件
public boolean accept(File dir, String name) {
return name.endsWith(".exe"); // 返回true表示接受该文件
}
});
printFiles(fs2);
}
private static void printFiles(File[] files) {
// TODO Auto-generated method stub
System.out.println("==========");
if (files != null) {
for (File f : files) {
System.out.println(f);
}
}
System.out.println("==========");
}
}
|
Java | UTF-8 | 1,635 | 2.046875 | 2 | [] | no_license | package com.beisheng.snatch.adapter;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.widget.ProgressBar;
import com.beisheng.snatch.R;
import com.beisheng.snatch.model.ShopCategoryRightVO;
import com.squareup.picasso.Picasso;
import com.wuzhanglong.library.adapter.RecyclerBaseAdapter;
import com.wuzhanglong.library.utils.BaseCommonUtils;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;
/**
* Created by ${Wuzhanglong} on 2017/5/16.
*/
public class ShopCategoryRightAdapter extends RecyclerBaseAdapter {
public ShopCategoryRightAdapter(RecyclerView recyclerView) {
super(recyclerView, R.layout.shop_category_right_adapter);
}
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)
@Override
public void initData(BGAViewHolderHelper helper, int position, Object model) {
ShopCategoryRightVO.DataBean.ListBean bean = (ShopCategoryRightVO.DataBean.ListBean) model;
if (!TextUtils.isEmpty(bean.getGoods_image()))
Picasso.with(mContext).load(bean.getGoods_image()).into(helper.getImageView(R.id.shop_img));
helper.setText(R.id.title_tv,bean.getGoods_name());
ProgressBar pb = helper.getView(R.id.progress_bar);
pb.setProgress(BaseCommonUtils.parseInt(bean.getPercent()));
helper.setText(R.id.total_count_tv,"总需:"+bean.getTotal_count()+"人次");
BaseCommonUtils.setTextThree(mContext,helper.getTextView(R.id.remain_count_tv),"剩余:",bean.getRemain_count(),"人次",R.color.colorAccent,1.3f);
}
}
|
Java | UTF-8 | 376 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package com.jugnicaragua.demoappreactive.repositorio;
import com.jugnicaragua.demoappreactive.modelo.Producto;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
@Repository
public interface ProductoRepositorio extends ReactiveCrudRepository<Producto, Long> {
}
|
Python | UTF-8 | 285 | 3.46875 | 3 | [] | no_license | password=input("enter the number")
if len(password)<6:
print("it is too long it must be in between 6 to 12 character")
elif len(password)>12:
print("it is too long charactor it must be in between 6 to 12")
elif len(password)>=6 or (password)<12:
print("passwork okk") |
C++ | UTF-8 | 696 | 3.671875 | 4 | [] | no_license | #include <iostream>
using namespace std;
void primefactorization(int num)
{
for(int i = 2; i <= num; i++)
{
int count = 0;
// cout << "Number is --> " << num << " and i " << i << endl;
if(num % i == 0)
{
// cout << "Number is ---> " << num << " and i " << i << endl;
while(num % i == 0)
{
num = num / i;
count++;
}
// cout << "Number is ----> " << num << " and i " << i << endl;
cout << "count of number " << i << " is " << count << " times." << endl;
}
}
}
int main()
{
int num = 69300;
primefactorization(num);
return 0;
}
|
Ruby | UTF-8 | 2,034 | 2.890625 | 3 | [] | no_license | module SessionsHelper
def sign_in(user)
# create cookie
# permanent causes Rails to set the expiration to 20.years.from_now automatically
cookies.permanent[:remember_token] = user.remember_token
# create variable current_user, accessible in both controllers and views
self.current_user = user
end
# method to determine if user is logged in or not
def signed_in?
!current_user.nil?
end
# assign user to current_user (used above)
# this = in the method name is designed to handle assignment to current_user
# so when we have an assignment like this: (self.current_user = ...), this method will be called
def current_user=(user)
@current_user = user
end
# find the current user using the remember_token
# this method is designed to return the value of @current_user
def current_user
# ||= (“or equals”) will populate @current_user but only if it is undefined
@current_user ||= User.find_by_remember_token(cookies[:remember_token])
# in this case, find_by_remember_token will be called at least once every time a user visits a page on the site but will know @current_user after it is populated
end
# define bool current_user variable
def current_user?(user)
user == current_user
end
# make sure a user is signed in, else redirect to signin page
def signed_in_user
unless signed_in?
# store friendly URL so we can redirect after signin (stored in session)
store_location
redirect_to signin_url, notice: "Please sign in."
end
end
# signout user by setting current_user to null and deleting the cookie
def sign_out
self.current_user = nil
cookies.delete(:remember_token)
end
# recall the location of the URL we are trying to get to OR direct to default
def redirect_back_or(default)
redirect_to(session[:return_to] || default)
session.delete(:return_to)
end
# store the location of the URL we are trying to get to
def store_location
session[:return_to] = request.url
end
end
|
Java | UTF-8 | 1,279 | 2.109375 | 2 | [] | no_license | package com.yla.service;
import java.util.List;
import org.springframework.data.domain.Sort.Direction;
import com.yla.entity.WarehouseList;
import com.yla.entity.WarehouseListGoods;
/**
* 退货单Service接口
* @author
*
*/
public interface WarehouseListService {
/**
* 根据id查询实体
* @param id
* @return
*/
public WarehouseList findById(Integer id);
/**
* 获取当天最大退货单号
* @return
*/
public String getTodayMaxOutNumber();
/**
* 添加退货单 以及所有退货单商品
* @param warehouseList 退货单
* @param WarehouseListGoodsList 退货单商品
*/
public void save(WarehouseList warehouseList,List<WarehouseListGoods> warehouseListGoodsList);
/**
* 根据条件查询退货单信息
* @param warehouseList
* @param page
* @param pageSize
* @param direction
* @param properties
* @return
*/
public List<WarehouseList> list(WarehouseList warehouseList,Direction direction,String... properties);
/**
* 根据id删除退货单信息 包括退货单里的商品
* @param id
*/
public void delete(Integer id);
/**
* 更新退货单
* @param warehouseList
*/
public void update(WarehouseList warehouseList);
}
|
Python | UTF-8 | 1,451 | 3.328125 | 3 | [] | no_license | # write a function that asks for a file and
# for each line in that file finds each line that contains
# an IP address wrapped in a square bracket ([000.000.000.000])
# (for all IPs, the number of digits between each dot
# is between 1 and 3 [0, 00, or 000]),
# extracts each ip address and splits it up into
# a tuple of 4 numbers
# EG: "123.4.0.89" -> (123, 4, 0, 89)
# and returns a sorted list of all such tuples.
# NOTE: a sorted tuple compared from left to right
# EG: [(0,0,0,0), (0,0,0,2), (0,0,1,0)] (ascending order)
# BONUS: return only unique tuples, sorted.
file_name = input("File name: ")
if len(file_name) < 1: file_name = "../../texts/mbox-short.txt"
file_handler = open(file_name)
ip_tuples = list()
for line in file_handler:
if "[" and "]" in line:
brkt_start_i = line.find("[")
brkt_end_i = line.find("]")
brkt_contents = line[brkt_start_i+1:brkt_end_i].split(".")
if len(brkt_contents) == 4:
valid = True
for i in brkt_contents:
if not (len(i) > 0 and len(i) < 4):
valid = False
if valid == False:
continue
brkt_contents = [int(i) for i in brkt_contents]
brkt_contents = tuple(brkt_contents)
ip_tuples.append(brkt_contents)
ip_sorted = sorted(ip_tuples)
ip_unique = list()
for ip in ip_sorted:
if ip not in ip_unique:
ip_unique.append(ip)
print(ip_unique)
|
Java | UTF-8 | 909 | 2.703125 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | package gov.healthit.chpl.validation.listing;
import java.util.List;
import gov.healthit.chpl.dto.PendingCertifiedProductDTO;
import gov.healthit.chpl.validation.pendingListing.reviewer.Reviewer;
/**
* Abstract class for validating Pending Listings.
* @author alarned
*
*/
public abstract class PendingValidator {
/**
* Concrete classes should provide a list of reviewers.
* Each reviewer can check a specific part of a listing for errors.
* @return the list of applicable reviewers
*/
public abstract List<Reviewer> getReviewers();
/**
* Validation simply calls each reviewer. The reviewers add
* errors and warnings as appropriate.
* @param listing a pending listing
*/
public void validate(final PendingCertifiedProductDTO listing) {
for (Reviewer reviewer : getReviewers()) {
reviewer.review(listing);
}
}
}
|
PHP | UTF-8 | 15,592 | 2.640625 | 3 | [] | no_license | <?php
/**
* MARQUes - Maps Answering Research Questions
*
* @copyright Copyright 2011, Flinders University (http://www.flinders.edu.au)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace app\controllers;
use lithium\data\Connections;
use app\models\FilmWeeklyCinemas;
use app\models\FilmWeeklyMarkers;
use app\models\ActivityLogs;
/**
* Search for Film Weekly Cinemas in the database
*/
class SearchesController extends \lithium\action\Controller {
// list actions that can be undertaken without authentication
public $publicActions = array('index', 'advanced', 'bysuburb', 'bylocality', 'bycinematype', 'bystate', 'byid');
// enable content negotiation so AJAX data can be returned
protected function _init() {
$this->_render['negotiate'] = true;
parent::_init();
}
/**
* list all of the records
*/
public function index() {
if ($this->request->data) {
// get the search terms from the post data
$search = $this->request->data['search'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeekly($search, $db));
// save an activity log entry
$log = array(
'type' => 'search',
'notes' => $this->request->data['search'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/**
* function to get the list of film weekly cinemas as search results
*/
private function getFilmWeekly($search, $db) {
$markers = $this->getFilmWeeklyMarkers();
$results = array();
// build a query to search for film_weekly_cinema_id using data from the film_weekly_table
$sql = "SELECT DISTINCT film_weekly_cinemas_id
FROM film_weekly_searches
WHERE MATCH (fwc_street, fwc_suburb, fwc_cinema_name, fwc_exhibitor_name)
AGAINST ({:search} IN NATURAL LANGUAGE MODE)";
// execute the query
$batch = $db->read($sql,
array(
'return' => 'array',
'search' => $search
)
);
//populate an array of ids
$cinemas = array();
foreach($batch as $item) {
$cinemas[] = $item['film_weekly_cinemas_id'];
}
// build a query to search for film_weekl_cinema_id using data from the film_weekly_archaeology_table
$sql = "SELECT DISTINCT film_weekly_archaeologies.film_weekly_cinemas_id
FROM film_weekly_searches, film_weekly_archaeologies
WHERE MATCH (fwa_cinema_name, fwa_exhibitor_name) AGAINST ({:search} IN NATURAL LANGUAGE MODE)
AND film_weekly_searches.film_weekly_archaeologies_id = film_weekly_archaeologies.id";
// execute the data
$batch = $db->read($sql,
array(
'return' => 'array',
'search' => $search
)
);
// add ids to the array
foreach($batch as $item) {
$cinemas[] = $item['film_weekly_cinemas_id'];
}
// remove any duplicates
$cinemas = array_unique($cinemas, SORT_NUMERIC);
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/**
* function to undertake advanced searches
*/
public function advanced() {
if ($this->request->data) {
// get the search terms from the post data
$search = $this->request->data['search'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeeklyAdvanced($search, $db));
// save an activity log entry
$log = array(
'type' => 'adv-search',
'notes' => $this->request->data['search'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/**
* function to get the list of film weekly cinemas as search results
*/
private function getFilmWeeklyAdvanced($search, $db) {
$markers = $this->getFilmWeeklyMarkers();
$results = array();
// build a query to search for film_weekly_cinema_id using data from the film_weekly_table
$sql = "SELECT DISTINCT film_weekly_cinemas_id
FROM film_weekly_searches
WHERE MATCH (fwc_street, fwc_suburb, fwc_cinema_name, fwc_exhibitor_name)
AGAINST ({:search} IN BOOLEAN MODE)";
// execute the query
$batch = $db->read($sql,
array(
'return' => 'array',
'search' => $search
)
);
//populate an array of ids
$cinemas = array();
foreach($batch as $item) {
$cinemas[] = $item['film_weekly_cinemas_id'];
}
// build a query to search for film_weekl_cinema_id using data from the film_weekly_archaeology_table
$sql = "SELECT DISTINCT film_weekly_archaeologies.film_weekly_cinemas_id
FROM film_weekly_searches, film_weekly_archaeologies
WHERE MATCH (fwa_cinema_name, fwa_exhibitor_name) AGAINST ({:search} IN BOOLEAN MODE)
AND film_weekly_searches.film_weekly_archaeologies_id = film_weekly_archaeologies.id";
// execute the data
$batch = $db->read($sql,
array(
'return' => 'array',
'search' => $search
)
);
// add ids to the array
foreach($batch as $item) {
$cinemas[] = $item['film_weekly_cinemas_id'];
}
// remove any duplicates
$cinemas = array_unique($cinemas, SORT_NUMERIC);
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/*
* get cinemas by suburb
*/
public function bysuburb() {
if ($this->request->data) {
// get the search terms from the post data
$suburb = $this->request->data['suburb'];
$state = $this->request->data['state'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeeklyBySuburb($suburb, $state, $db));
// save an activity log entry
$log = array(
'type' => 'browse-by-suburb',
'notes' => $this->request->data['suburb'] . ' - ' . $this->request->data['state'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/*
* get cinemas by state
*/
public function bystate() {
if ($this->request->data) {
// get the search terms from the post data
$state = $this->request->data['state'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeeklyByState($state, $db));
// save an activity log entry
$log = array(
'type' => 'browse-by-state',
'notes' => $this->request->data['state'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/*
* get cinemas by locality
*/
public function bylocality() {
if ($this->request->data) {
// get the search terms from the post data
$locality = $this->request->data['locality'];
$state = $this->request->data['state'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeeklyByLocality($locality, $state, $db));
// save an activity log entry
$log = array(
'type' => 'browse-by-locality',
'notes' => $this->request->data['locality'] . ' - ' . $this->request->data['state'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/*
* private function to get film weekly cinemas by locality
*/
private function getFilmWeeklyByLocality($locality, $state, $db) {
$markers = $this->getFilmWeeklyMarkers();
$records = FilmWeeklyCinemas::find(
'all',
array (
'fields' => array('id'),
'conditions' => array(
'locality_types_id' => $locality,
'australian_states_id' => $state
),
)
);
$cinemas = array();
foreach($records as $record) {
$cinemas[] = $record->id;
}
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/*
* get cinemas by locality
*/
public function bycinematype() {
if ($this->request->data) {
// get the search terms from the post data
$type = $this->request->data['type'];
$state = $this->request->data['state'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$results = array_merge($results, $this->getFilmWeeklyByCinemaType($type, $state, $db));
// save an activity log entry
$log = array(
'type' => 'browse-by-cinema-type',
'notes' => $this->request->data['type'] . ' - ' . $this->request->data['state'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/*
* get cinemas by id
*/
function byid() {
if ($this->request->data) {
// get the search terms from the post data
$id = $this->request->data['id'];
// get a connection to the database
$db = Connections::get('default');
$results = array();
$cinemas = array();
$cinemas[] = $id;
$results = array_merge($results, $this->getFilmWeeklyCinemas($cinemas, $this->getFilmWeeklyMarkers()));
// save an activity log entry
$log = array(
'type' => 'search-by-cinema-id',
'notes' => $this->request->data['id'],
'timestamp' => date('Y-m-d H:i:s')
);
$activity = ActivityLogs::create($log);
$activity->save();
return compact('results');
}
}
/*
* private function to get film weekly cinemas by locality
*/
private function getFilmWeeklyByCinemaType($type, $state, $db) {
$markers = $this->getFilmWeeklyMarkers();
$records = FilmWeeklyCinemas::find(
'all',
array (
'fields' => array('id'),
'conditions' => array(
'film_weekly_cinema_types_id' => $type,
'australian_states_id' => $state
),
)
);
$cinemas = array();
foreach($records as $record) {
$cinemas[] = $record->id;
}
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/*
* private function to get film weekly cinemas by suburb
*/
private function getFilmWeeklyBySuburb($suburb, $state, $db) {
$markers = $this->getFilmWeeklyMarkers();
$records = FilmWeeklyCinemas::find(
'all',
array (
'fields' => array('id'),
'conditions' => array(
'suburb' => $suburb,
'australian_states_id' => $state
),
)
);
$cinemas = array();
foreach($records as $record) {
$cinemas[] = $record->id;
}
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/*
* private function to get film weekly cinemas by suburb
*/
private function getFilmWeeklyByState($state, $db) {
$markers = $this->getFilmWeeklyMarkers();
$records = FilmWeeklyCinemas::find(
'all',
array (
'fields' => array('id'),
'conditions' => array(
'australian_states_id' => $state
),
)
);
$cinemas = array();
foreach($records as $record) {
$cinemas[] = $record->id;
}
return $this->getFilmWeeklyCinemas($cinemas, $markers);
}
/*
* private function to get Film Weekly Cinema data
*/
private function getFilmWeeklyCinemas($cinemas, $markers) {
// loop through getting all of the cinemas one at a time
// TODO: yes I know this is inefficient, need to revisit this if it becomes an issue
$records = array();
$results = array();
foreach($cinemas as $cinema) {
$record = FilmWeeklyCinemas::find(
'first',
array(
'with' => 'AustralianStates',
'conditions' => array('FilmWeeklyCinemas.id' => $cinema)
)
);
$records[] = $record;
}
// get the film weekly identifiers
$categories = array();
// get a connection to the database
$db = Connections::get('default');
// define sql to select the min and maximum ids
$sql = "SELECT MIN(film_weekly_categories_id) as min_id, MAX(film_weekly_categories_id) as max_id
FROM film_weekly_category_maps
WHERE film_weekly_cinemas_id = {:search}";
// get the data
foreach($cinemas as $cinema) {
$record = $db->read($sql,
array(
'return' => 'array',
'search' => $cinema
)
);
$categories[] = $record;
}
// loop through the list of cinemas building up the search results
$count = 0;
foreach($records as $record) {
$results[] = array(
'id' => $record->id,
'type' => 'film_weekly_cinema',
'result' => $record->search_result_ajax(),
'coords' => $record->latitude . ',' . $record->longitude,
'title' => $record->cinema_name,
'state' => $record->australian_state->shortname,
'icon' => $markers[$record->film_weekly_cinema_types_id][$record->locality_types_id],
'cinema_type' => $record->film_weekly_cinema_types_id,
'locality_type' => $record->locality_types_id,
'min_film_weekly_cat' => $categories[$count][0]['min_id'],
'max_film_weekly_cat' => $categories[$count][0]['max_id']
);
$count++;
}
return $results;
}
/*
* private function to get the list of markers
*/
private function getFilmWeeklyMarkers() {
$markers = array();
$records = FilmWeeklyMarkers::all();
foreach($records as $record) {
if(empty($markers[$record->film_weekly_cinema_types_id])) {
$markers[$record->film_weekly_cinema_types_id] = array(
$record->locality_types_id => $record->marker_url
);
} else {
$markers[$record->film_weekly_cinema_types_id][$record->locality_types_id] = $record->marker_url;
}
}
return $markers;
}
}
?> |
C++ | UTF-8 | 2,827 | 2.90625 | 3 | [] | no_license | /*
* Log.h
*
* Created on: 2013-10-1
* Author: linzhaoxiang
*/
#ifndef LOG_H_
#define LOG_H_
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#ifndef LOG_LEVEL
#define LOG_LEVEL LOG_ALL
#endif
enum LogType{
LOG_OFF=0X00,
LOG_CONSOLE=0x01,
LOG_FATAL=0x02,
LOG_EXCEPTION=0x03,
LOG_WARN=4,
LOG_INFO=5,
LOG_ERROR=6,
LOG_DEBUG=7,
LOG_TRACE=8,
LOG_TRACE2=9,
LOG_TRACE3=10,
LOG_ALL=11};
std::string _GetCurrentTime();
std::ostream& _GetLogStream(LogType eLogType);
void SetLogStream(LogType eLogType, std::ostream& stream);
void ResetLogStream(LogType eLogType, std::ostream& stream);
LogType SetLogLevel(LogType level);
LogType GetLogLevel();
const std::string& GetBinaryPath();
void SetBinaryPath(const std::string& strPath);
class CNextLine
{
public:
CNextLine(std::ostream& os)
{
os << std::endl;
//return false;
}
};
//#ifndef RC_FAILED
//#define RC_FAILED(rc) (rc < 0)
//#endif
#define LogStream(LogType_) if(!(LOG_LEVEL >=LogType_ && GetLogLevel() >= LogType_)){} else CNextLine tempfornextline##__LINE__=_GetLogStream(LogType_)<<_GetCurrentTime()<<":"<<__FILE__<<":"<<__LINE__<<":"<<__FUNCTION__<<":" <<"\t"
#define Console() if(!(LOG_LEVEL >=LOG_CONSOLE && GetLogLevel() >= LOG_CONSOLE)){}else _GetLogStream(LOG_INFO)
#define LogConsole() if(!(LOG_LEVEL >=LOG_CONSOLE && GetLogLevel() >= LOG_CONSOLE)){}else CNextLine tempfornextline##__LINE__ = _GetLogStream(LOG_INFO)
#define LogFatal() LogStream(LOG_FATAL) << "Fatal:"
#define LogException() LogStream(LOG_EXCEPTION) << "Exception:"
#define LogError() LogStream(LOG_ERROR) << "Error:"
#define LogWarn() LogStream(LOG_WARN) << "Warn:"
#define LogInfo() LogStream(LOG_INFO) << "Info:"
#define Log() LogInfo()
#define LogDebug() LogStream(LOG_DEBUG)<<"Debug:"
#define LogTrace() LogStream(LOG_TRACE) << "Trace:"
#define LogTrace2() LogStream(LOG_TRACE2) << "TraceDeep:"
#define LogTrace3() LogStream(LOG_TRACE3) << "TraceAll:"
#define LogErrorCode(rc) if(RC_FAILED(rc)) LogError() << "ResutlCode:" << rc << ";"
#define LogDebugCode(rc) if(RC_FAILED(rc)) LogDebug() << "ResultCode:" << rc << ";"
#define LogReturn(rc) {LogErrorCode(rc); return rc;}
template<class firstT, class secondT>
std::ostream& operator<<(std::ostream& outstream, const std::pair<firstT,secondT>& value)
{
outstream<<"pair("<<value.first<<","<<value.second<<")";
return outstream;
}
template<class T>
std::ostream& operator<<(std::ostream& outstream, const std::vector<T>& vect)
{
outstream << "vector(size:"<<vect.size()<<"):";
for(typename std::vector<T>::const_iterator it = vect.begin(); it != vect.end(); it++)
{
if(it != vect.begin())
outstream << ",";
outstream << *it;
}
//copy(vect.begin(), vect.end(), std::ostream_iterator<T>(outstream, ","));
return outstream;
}
#endif /* LOG_H_ */
|
C | UTF-8 | 415 | 3.703125 | 4 | [
"Unlicense"
] | permissive | #include <stdio.h>
char *mystrncpy(char *restrict dst, const char *restrict src, size_t len)
{
int i;
for (i = 0; i < len && src[i]; i++)
dst[i] = src[i];
dst[i] = '\0';
return dst;
}
int main(void)
{
const char src1[] = "hello, world.";
const char src2[] = "There are many characters.abcdef,123456";
char dst[20];
mystrncpy(dst, src1, 20);
puts(dst);
mystrncpy(dst, src2, 20);
puts(dst);
return 0;
} |
Markdown | UTF-8 | 2,702 | 2.8125 | 3 | [] | no_license | ---
title: "Chromecast and network namespaces"
slug: "chromecast-and-network-namespaces"
date: "2014-12-17"
categories:
- Software
tags:
- howto
- openvpn
- privacy
- security
- vpn
- chromecast
- avahi
- mdns
images:
- /img/2014/chromecast/result.png
---
This is a follow-up to the post about [OpenVPN for a single application]({{< relref "2014-12-12 OpenVPN for a single application.md" >}}).
I've finally found a way to access my [Chromecast][] from a [program][popcorntime] running inside a network namespace!
And it turns out it's pretty easy to do.
With the setup I described in my last post, the isolated app has full access to the local network through the `vpn1`
interface. The only thing needed for the Chromecast to work is that the application must be able to *discover* the
Chromecast on the LAN.
<!--more-->
The Chromecast discovery process uses mDNS (aka Bonjour, ZeroConf or whatever), which on Linux is usually handled by
[Avahi][]. Basically, to discover Chromecasts on your LAN, you just have to do discover a device that publishes a
`_googlecast._tcp` PTR record. The human-friendly way to do this is to use `avahi-discover-standalone`. On my laptop, it
gives me the following result:

The issue is that inside the network namespace, the mDNS query will be sent on the `vpn1` interface, but it won't be
routed to the WLAN interface, so there won't by any response:

The only visible services are the ones from my laptop, and not the other ones from the WLAN.
However, there's a very simple way to resolve this: it's to configure Avahi to proxy all the mDNS queries to all the
available network interfaces! This feature is called "reflector", and is a enabled by a one-line change in
`/etc/avahi/avahi-daemon.conf`:
~~~ini
[reflector]
enable-reflector=yes
~~~
Restart Avahi (`systemctl restart avahi-daemon`; reloading it is not enough here!) and try to run
`avahi-discover-standalone` again:

Much better! :smiley: The device can now be discovered, and applications running in the network namespace can therefore
use it at will.

Thanks to [Joel Knight][source] for the tip!
[Avahi]: http://avahi.org/
[Chromecast]: https://www.google.com/chrome/devices/chromecast/index.html
[popcorntime]: https://popcorntime.io/
[source]: http://www.packetmischief.ca/2012/09/20/airplay-vlans-and-an-open-source-solution/
|
PHP | UTF-8 | 919 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Input;
use DateTime;
use App\Emodel;
use Validator;
class VisitorFavoriteTour extends Emodel {
protected $table = 'VST010';
public function tour()
{
return $this->hasOne('TourProfile', 'id', 'tr0010_id');
}
public function user()
{
return $this->hasOne('User', 'id', 'mst001_id');
}
public static function rules($data)
{
$error = array();
$rules = array(
'tourId' => 'required',
);
$messages = array(
'tourId.required' => 'Profil Tur harus terpilih',
);
$v = Validator::make($data, $rules, $messages);
if($v->fails()){
$error = $v->errors()->all();
}
return $error;
}
public function doParams($object, $data)
{
$object->mst001_id = Auth::user()->id;
$object->tr010_id = $data['tourId'];
return $object;
}
} |
Shell | UTF-8 | 1,458 | 3.3125 | 3 | [] | no_license | #!/bin/bash
Shell information
pwd: prints the path of the current working directory
ls: display the contents list of your current directory
cd: changes the working directory to the user’s home directory
ls -l: display current directory contents in long format
ls -al: display current directory contents, including hidden files using the long format
dir -aln: display current directory contents in long format including hidden files
mkdir: create a directory in a directory
mv: move a file from a directory to another
rm: delete a file
rm -r: delete a directory
cd -: change the working directory to the previous one
ls -la . ..: list all files including hidden in the current, parent and boot directory in long format
file: print the type of the file
ln -s: create a symbolic link
cp -u * .html: copy all the HTML files from the current working directory, but only copy files that did not exist in the parent of the working directory or were newer than the versions in the parent of the current directory
mv [[:upper:]]:move all files beginning with an uppercase letter to the directory
rm * ~: delete all files in the current working directory that end with the character ~
mkdir -p: create different directories in the current directory
ls -amp: list all the files and directories of the current directory, separated by commas with the directories ending in /, listing the hidden files, alpha ordered with . and .. at the beginning, with digits first
|
Markdown | UTF-8 | 939 | 2.59375 | 3 | [] | no_license | # UML
## 结构性
1. 类图(重点):+、-、#分别表示公有、私有、保护。
- 类名
- 属性 可见性 属性名称:类型
- 操作 可见性 操作名称(参数名称:类型):返回值类型
- 关联关系:
- 双向关联:直线关联
- 限定关联:单向箭头
- 单向关联:带箭头的实线
- 自关联:类的属性为自己本身
- 聚合关联:表示整体与部分的关系,带菱形和箭头的实线
- 组合关系:带实心菱形和箭头的实线,通过构造方法实例化成员类。
- 依赖关系:带箭头的虚线
- 泛化关系(继承关系):带空心箭头的实线
- 接口与实现的关系:带空心箭头的虚线
2. 部署图
3. 组件图
4. 包图
5. 对象图
6. 组合结构图
## 行为型
1. 活动图
2. 顺序图
3. 用例图
4. 状态机图
5. 通信图
6. 时间图
7. 交互概述图
|
Ruby | UTF-8 | 303 | 3.390625 | 3 | [] | no_license | class ScoreKeeper
def initialize
@score = @count = 0
end
def <<(value)
@score += value
@count += 1
@score
end
def average
fail "No scores" if @count === 0
Float(@score) / @count
end
end
sk = ScoreKeeper.new
sk << 45 << 12 << 1 << 89
puts "Average: #{sk.average}"
|
JavaScript | UTF-8 | 4,211 | 3.0625 | 3 | [] | no_license | /**
*
*/
function three(){
document.getElementById("sectionThree").style.display = "block";
document.getElementById("sectionFour").style.display = "none";
document.getElementById("NumBox").value = "3";
}
/*การทำงานในส่วนของหน้ากระดาน 3x3*/
var player = 1;
var listWinThree = [];
function myFunction(i,j) {
var random01 = Math.floor(Math.random() * 3);
var random02 = Math.floor(Math.random() * 3);
console.log("randomFind ="+random01);
console.log("randomFind ="+random02);
document.getElementById("square"+i+j).value = "x";
document.getElementById("square"+i+j).disabled = true;
if(player ==1){
document.getElementById("square"+i+j).value = "x";
document.getElementById("square"+i+j).disabled = true;
}
for(var i = 0 ; i<1 ;i++){
if(document.getElementById("square"+random01+random02).value == ""){
document.getElementById("square"+random01+random02).value = "o";
document.getElementById("square"+random01+random02).disabled = true;
i++;
}else{
random01 = Math.floor(Math.random() * 3);
random02 = Math.floor(Math.random() * 3);
i--;
}
}
console.log("square"+i+j);
console.log("random01"+random01);
console.log("random02"+random02);
var box00 = document.getElementById("square00").value;
var box01 = document.getElementById("square01").value;
var box02 = document.getElementById("square02").value;
var box10 = document.getElementById("square10").value;
var box11 = document.getElementById("square11").value;
var box12 = document.getElementById("square12").value;
var box20 = document.getElementById("square20").value;
var box21 = document.getElementById("square21").value;
var box22 = document.getElementById("square22").value;
var win = 0;
var tests = "";
if(box00 == "x" && box01 == "x" && box02 == "x"){
tests = 'คุณชนะแล้ว 00 ,01 ,02';
win = 1;
}else if(box00 == "x" && box10 == "x" && box20 == "x"){
tests = 'คุณชนะแล้ว 00 ,10 ,20';
win = 1;
}else if(box00 == "x" && box11 == "x" && box22 == "x"){
tests = 'คุณชนะแล้ว 00 ,11 ,22';
win = 1;
}else if(box02 == "x" && box12 == "x" && box22 == "x"){
tests = 'คุณชนะแล้ว 02 ,12 ,22';
win = 1;
}else if(box02 == "x" && box11 == "x" && box20 == "x"){
tests = 'คุณชนะแล้ว 02 ,11 ,20';
win = 1;
}else if(box20 == "x" && box21 == "x" && box22 == "x"){
tests = 'คุณชนะแล้ว 20 ,21 ,22';
win = 1;
}else if(box01 == "x" && box11 == "x" && box21 == "x"){
tests = 'คุณชนะแล้ว 01 ,11 ,21';
win = 1;
}else if(box10 == "x" && box11 == "x" && box12 == "x"){
tests = 'คุณชนะแล้ว 10 ,11 ,12';
win = 1;
}
if(box00 == "o" && box01 == "o" && box02 == "o"){
tests = 'Bot ชนะแล้ว 00 ,01 ,02';
win = 1;
}else if(box00 == "o" && box10 == "o" && box20 == "o"){
tests = 'Bot ชนะแล้ว 00 ,10 ,20';
win = 1;
}else if(box00 == "o" && box11 == "o" && box22 == "o"){
tests = 'Bot ชนะแล้ว 00 ,11 ,22';
win = 1;
}else if(box02 == "o" && box12 == "o" && box22 == "o"){
tests = 'Bot ชนะแล้ว 02 ,12 ,22';
win = 1;
}else if(box02 == "o" && box11 == "o" && box20 == "o"){
tests = 'Bot ชนะแล้ว 02 ,11 ,20';
win = 1;
}else if(box20 == "o" && box21 == "o" && box22 == "o"){
tests = 'Bot ชนะแล้ว 20 ,21 ,22';
win = 1;
}else if(box01 == "o" && box11 == "o" && box21 == "o"){
tests = 'Bot ชนะแล้ว 01 ,11 ,21';
win = 1;
}else if(box10 == "o" && box11 == "o" && box12 == "o"){
tests = 'Bot ชนะแล้ว 10 ,11 ,12';
win = 1;
}
if(win == 1){
for(var i = 0 ; i < 3 ; i++){
for(var j = 0 ; j < 3 ; j++){
document.getElementById("square"+i+j).disabled = true;
}
}
listWinThree.push(tests);
}
let text = "";
for (var i = 0; i < listWinThree.length; i++) {
text += listWinThree[i] + "<br>";
}
document.getElementById("listWin").innerHTML = text;
} |
JavaScript | UTF-8 | 1,042 | 2.515625 | 3 | [
"MIT"
] | permissive | const tree = require('./treegen.json');
const findReplace = [];
function escapeRegExp(string) {
return string.replace(/[$()*+.?[\\\]^|]/g, '\\$&'); // $& means the whole matched string
}
function makeRegex(string) {
return escapeRegExp(string).replace(/{(\d+)}/g, '(.*?)');
}
function makeResult(string) {
let i = 0;
return string.replace(/{(\d+)}/g, (match, p1) => {
return '$' + ++i;
});
}
for (const [projectName, project] of Object.entries(tree)) {
for (const [entryName, entry] of Object.entries(project)) {
if (!entry.default) {
console.warn('no entry default: ' + entryName);
continue;
}
for (const [language, {xmlSpace, value}] of Object.entries(entry)) {
if (language === 'default') {
continue;
}
console.log(entryName);
findReplace.push([makeRegex(value), makeResult((entry.default || entry.en).value)]);
}
}
}
findReplace.sort((a,b) => b[0].length - a[0].length);
require('fs').writeFileSync('translations.json', JSON.stringify(findReplace));
|
C | UTF-8 | 572 | 2.625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | // -*- c -*-
// IrSensors Arduino Library
//
// Copyright (c) 2013 Dave Sieh
// See LICENSE.txt for details.
#include <IrSensors.h>
// Set up the IR Sensors with the following pins:
// Left - 0
// Center - 2
// Right - 1
IrSensors sensors(0, 2, 1);
void setup()
{
// Initialize the sensors
sensors.begin();
// Determine if the left sensor detected a high reflectance
boolean detected = sensors.highReflectionDetected(IrLeft);
// Determine if the center sensor detected a lower reflectance
detected = sensors.lowReflectionDetected(IrCenter);
}
void loop()
{
}
|
Python | UTF-8 | 3,112 | 2.5625 | 3 | [
"MIT"
] | permissive | """Niseko export utilities."""
import os
import inspect
from .execution_plan import get_primitive_path
def get_method_arguments(method):
return set(inspect.signature(method).parameters.keys())
def convert_pipeline_to_script(steps):
"""
Convert a pipeline to a executable script.
:param steps:
:return:
"""
with open(os.path.join(os.path.dirname(__file__), 'pipeline_script.template')) as f:
pipeline_script_template = f.read()
primitives_code = ''
for step_index, step in enumerate(steps):
primitive_code = ''
# import code
primitive_path = get_primitive_path(step.primitive)
module_name, class_name = '.'.join(primitive_path.split('.')[:-1]), primitive_path.split('.')[-1]
primitive_code += 'from {} import {}\n'.format(module_name, class_name)
# primitive constructor code
parameters = step.hyperparameters.items()
if primitive_path.startswith('blinded'):
primitive_code += 'parameters = {}\n'
for key, value in parameters.items():
primitive_code += "parameters[{}] = {}\n".format(repr(key), repr(value))
primitive_code += 'primitive = {class_name}(**parameters)\n'.format(class_name=class_name)
else:
primitive_code += 'parameters = {}\n'
for key, value in parameters.items():
primitive_code += "parameters[{}] = {}\n".format(repr(key), repr(value))
primitive_code += 'primitive = PrimitiveWrapper({class_name}(**parameters))\n'.format(class_name=class_name)
# primitive arguments
step_inputs = {}
for key, value in step.inputs.items():
if value.startswith('inputs.'):
step_inputs[key] = 'dataset'
else:
step_inputs[key] = 'step_{}_output'.format(int(value[6:]))
training_arguments = {}
produce_arguments = {}
if primitive_path.startswith('blinded'):
training_arguments = {}
for argument, value in step_inputs.items():
produce_arguments[argument] = value
else:
for argument, value in step_inputs.items():
if argument == 'inputs':
training_arguments[argument] = value
produce_arguments[argument] = value
else:
training_arguments[argument] = value
# primitive train code
if training_arguments:
primitive_code += 'primitive.set_training_data({})\n'.format(
', '.join('{}={}'.format(key, value) for key, value in training_arguments.items()))
primitive_code += 'primitive.fit()\n'
# primitive produce code
if produce_arguments:
primitive_code += 'step_{}_output = primitive.produce({}).value\n'.format(
step_index, ', '.join('{}={}'.format(key, value) for key, value in produce_arguments.items()))
primitives_code += primitive_code + '\n'
return pipeline_script_template.format(primitives_code=primitives_code)
|
Java | UTF-8 | 3,280 | 2.78125 | 3 | [] | no_license | import beverages.Beverage;
import com.fasterxml.jackson.databind.ObjectMapper;
import enums.BeveragesEnum;
import enums.IngredientsEnum;
import ingredients.Ingredient;
import input.InputRequest;
import services.BeverageService;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Driver {
public static void main(String[] args) throws Exception {
String inputFilePath = "src/main/resources/input.json";
ObjectMapper objectMapper = new ObjectMapper();
InputRequest inputRequest = objectMapper.readValue(new File(inputFilePath), InputRequest.class);
System.out.println(inputRequest.machine);
System.out.println(inputRequest.machine.beverages);
System.out.println(inputRequest.machine.totalItemsQuantity);
System.out.println(inputRequest.machine.totalItemsQuantity.get(IngredientsEnum.hot_water));
Map<IngredientsEnum, Ingredient> ingredients = new HashMap<>();
for(Map.Entry<IngredientsEnum, Integer> ingredient: inputRequest.machine.totalItemsQuantity.entrySet()){
ingredients.put(ingredient.getKey(), ingredient.getKey().getIngredient(ingredient.getValue()));
}
System.out.println(ingredients);
Map<IngredientsEnum, Integer> hotCoffeeIngredients= inputRequest.machine.beverages.get(BeveragesEnum.hot_coffee);
Beverage hotCoffee = BeveragesEnum.hot_coffee.getBeverage();
for(Map.Entry<IngredientsEnum, Integer> ingredient : hotCoffeeIngredients.entrySet()){
hotCoffee.addIngredient(ingredient.getKey().getIngredient(ingredient.getValue()));
}
Map<IngredientsEnum, Integer> hotTeaIngredients= inputRequest.machine.beverages.get(BeveragesEnum.hot_tea);
Beverage hotTea = BeveragesEnum.hot_tea.getBeverage();
for(Map.Entry<IngredientsEnum, Integer> ingredient : hotTeaIngredients.entrySet()){
hotTea.addIngredient(ingredient.getKey().getIngredient(ingredient.getValue()));
}
Map<IngredientsEnum, Integer> greenTeaIngredients= inputRequest.machine.beverages.get(BeveragesEnum.green_tea);
Beverage greenTea = BeveragesEnum.green_tea.getBeverage();
for(Map.Entry<IngredientsEnum, Integer> ingredient : greenTeaIngredients.entrySet()){
greenTea.addIngredient(ingredient.getKey().getIngredient(ingredient.getValue()));
}
Map<IngredientsEnum, Integer> blackTeaIngredients= inputRequest.machine.beverages.get(BeveragesEnum.black_tea);
Beverage blacktea = BeveragesEnum.black_tea.getBeverage();
for(Map.Entry<IngredientsEnum, Integer> ingredient : blackTeaIngredients.entrySet()){
blacktea.addIngredient(ingredient.getKey().getIngredient(ingredient.getValue()));
}
BeverageService beverageService = new BeverageService(ingredients);
List<String> errors = beverageService.prepareBeverage(hotCoffee);
System.out.println(errors);
errors = beverageService.prepareBeverage(hotTea);
System.out.println(errors);
errors = beverageService.prepareBeverage(greenTea);
System.out.println(errors);
errors = beverageService.prepareBeverage(blacktea);
System.out.println(errors);
}
}
|
Swift | UTF-8 | 409 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | import UIKit
public protocol CellType: ReuseableType, ConfigurerType {
}
extension UITableViewCell: CellType {
public typealias Type = TableCellRowConfigurer
public func configure(type: Type) {
type.configure(self)
}
}
extension UICollectionViewCell: CellType {
public typealias Type = CellItemConfigurer
public func configure(type: Type) {
type.configure(self)
}
}
|
PHP | UTF-8 | 1,792 | 2.890625 | 3 | [] | no_license | <?php
if(isset($_GET['delog'])) :
session_start();
unset($_SESSION['id_user']);
unset($_SESSION['role']);
header("location:admin.html");
exit;
endif;
## LE CONNEXION !! Bièsse, tu dois le mettre dans ton formulaire pour qu'il ait un endroit ou renvoyer les données'
if (isset($_POST['connexion'])):
$sql= sprintf("SELECT * FROM users WHERE login ='%s' AND password='%s' ",
$_POST['login'],
md5($_POST['password'])
);
require('config.php');
$test_log= $connect->query($sql);
echo $connect -> error;
$nb_user = $test_log->num_rows;
if ( $nb_user > 0 ):
##Si on a au moins un utilisateur, on va récupérer l'utilisateur en tant qu'objet
$row = $test_log->fetch_object();
##session_start();
##Activer la session avec session_start -> On l'a mit dans config.php pcq la session doit être checkée en permanence'
$_SESSION['id_user'] = $row->id_user;
$_SESSION['role'] = $row->role;
header("location:index.html");
exit;
else:
header("location:index.php?erreur=log&page=admin");
## On crée une entrée et on attribut un ID à l'utilisateur qui vient de se connecter
exit;
endif;
endif;
?>
<?php if (isset($_GET['page']) AND $_GET['page'] == 'admin') : ?>
<div id="loginForm">
<?php if(isset($_GET['erreur']) AND $_GET['erreur']=='log') :?>
<p class="erreur">Erreur de login/password</p>
<?php endif;?>
<button class="fermBtn"><a href="index.html">X</a></button>
<form action="admin.php" method="post">
<input type="text" id="login" name="login" placeholder="login"><br>
<input type="password" id="password" name="password" placeholder="mot de passe"><br>
<input type="submit" name="connexion" value="se connecter">
</form>
</div>
<div id="filtre"></div>
<?php endif; ?>
|
Shell | UTF-8 | 1,189 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ ! "$3" ]
then
echo 'Use: mkbook.sh <number of nodes> <number of edges> <pages>' >&2
exit 1
fi
NODES="$1"
EDGES="$2"
PREFIX="${NODES}_${EDGES}"
PAGES="$3"
TITLE="GraphGame $NODES/$EDGES"
GGMD5="// `md5sum graphgame.c`"
# First generate them
for (( i = 1; $i <= $PAGES; i++ ))
do
echo $i >&2
if [ ! -e ${PREFIX}_${i}.dot ]
then
(
./graphgame $NODES $EDGES $i
echo "$GGMD5"
) > ${PREFIX}_${i}.dot
fi
done
echo '\documentclass{article} \usepackage{graphicx} \usepackage[landscape,margin=0in]{geometry} \begin{document}
\title{\Huge{'${TITLE}'}} \date{} \maketitle \newpage' > ${PREFIX}_book.tex
for (( i = 1; $i <= $PAGES; i++ ))
do
make ${PREFIX}_${i}.dpdf >&2
mv -f ${PREFIX}_${i}.dpdf ${PREFIX}_${i}_dot.pdf
echo '\includegraphics[width=10.5in,height=8in]{'${PREFIX}'_'$i'_dot.pdf}\newpage' >> ${PREFIX}_book.tex
done
echo '\end{document}' >> ${PREFIX}_book.tex
pdflatex ${PREFIX}_book.tex
rm -f ${PREFIX}_book.{aux,log} ${PREFIX}_*_dot.pdf &&
tar jcf ${PREFIX}_book.tar.bz2 ${PREFIX}_*.dot ${PREFIX}_*.pdf ${PREFIX}_book.tex &&
rm -f ${PREFIX}_*.dot ${PREFIX}_*_dot.pdf ${PREFIX}_book.tex
|
Java | UTF-8 | 1,160 | 2.25 | 2 | [] | no_license | package action;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import controller.ActionForward;
import model.Customer;
import model.Result;
import svc.MyinfoService;
public class MyInfoAction implements Action {
public ActionForward execute(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
HttpSession session = request.getSession();
Customer customer = (Customer)session.getAttribute("loginUser");
//System.out.println(customer.getEmail());
MyinfoService svc = new MyinfoService();
String email = customer.getEmail();
System.out.println(email);
ArrayList<Result> list = new ArrayList<Result>();
list = svc.getCustomerSchedule(email);
for(int i=0;i<list.size();i++) {
System.out.println(list.get(i));
}
ActionForward af = null;
request.setAttribute("schedulelist", list);
af=new ActionForward("myinfo.jsp",false);
return af;
}
}
|
Python | UTF-8 | 349 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | import unittest
from eink.server.request import Request
class RequestTest(unittest.TestCase):
"""Tests the ``Request`` class."""
def test_to_from_bytes(self):
"""Test ``Request.to_bytes()`` and ``Request.create_from_bytes``."""
self.assertIsInstance(
Request.create_from_bytes(Request().to_bytes()), Request)
|
JavaScript | UTF-8 | 1,266 | 2.546875 | 3 | [] | no_license | var _ = require('underscore');
function helpers(){
var self = this;
self.supportedConnections = [
{
host:"www.linkedin.com",
description: "LinkedIn",
id: "linkedIn",
idPath: "connections.linkedIn",
getIdFromPath: function(path){
var routeParts = path.split("/");
var identifier = "in";
if(routeParts.length > 1 && routeParts[1] === identifier){
return routeParts[2];
}
return null;
},
},
{
host:"www.facebook.com",
description: "Facebook",
id: "facebook",
idPath: "connections.facebook",
getIdFromPath: function(path){
return path.replace("/","");
}
}
];
self.getFromSupportedConnection = function(host){
return _.findWhere(self.supportedConnections, {host: host});
};
self.getUserInfoFromLink = function(connection, url){
};
self.isPropertySearch = function(searchString){
const hasDots = searchString.indexOf(".") != -1;
const hasColon = searchString.indexOf(":") != -1;
return hasDots && hasColon;
}
self.getPropertyToSearch = function(searchString){
var res = searchString.split(":");
return {property:res[0], value: res[1]};
}
};
module.exports = new helpers();
|
Python | UTF-8 | 1,881 | 2.796875 | 3 | [] | no_license | #!/usr/bin/python
import settings
class Generation:
fitness_score=0
chromosomes=[]
class Solution:
_best_generation=None
best_fitness_score=None
problem=None
genes=None
selection=None
nr_of_generations=None
def __init__(self, problem, genes, selection, nr_of_generations=1000):
self.problem=problem
self.genes=genes
self.selection=selection
self.nr_of_generations=nr_of_generations
@property
def best_generation(self):
return self._best_generation
def compute(self):
self._best_generation=Generation()
i=0
while(i<self.nr_of_generations):
try:
if i%10==0:
self.selection.init_population()
next_generation=self.selection.population
else:
next_generation=self.selection.make_generation(print_output=False)
print 'GENERATION %i' % i
print '-------------'
if i==0:
C_R_T_F_S=0
for j in range(len(self.selection.population)):
C_R_T_F_S+=self.selection.population[j].fitness_score
self.best_generation.fitness_score=C_R_T_F_S
self.best_generation.chromosomes=self.selection.population
print 'CURRENT GENERATION TOTAL FITNESS SCORE : %s ' % str(C_R_T_F_S)
N_G_T_F_S=0
for j in range(len(next_generation)):
N_G_T_F_S+=next_generation[j].fitness_score
if N_G_T_F_S>self.best_generation.fitness_score:
self.best_generation.chromosomes=next_generation
self.best_generation.fitness_score=N_G_T_F_S
print 'NEXT GENERATION TOTAL FITNESS SCORE : %s ' % str(N_G_T_F_S)
print '\n'
self.selection.population=next_generation
i+=1
except Exception, ex:
f=open(settings.LOGGING.FILE_REL_PATH, 'a')
f.write('-------------\n%s\n' % str(ex))
f.close()
|
C | UTF-8 | 488 | 2.5625 | 3 | [] | no_license | #include <stdio.h>
#include "header.h"
int main(){
int nr=-1, nc, i,j,n=1,tmp_b,tmp_h,tmp_area, A[MAX_R][MAX_C];
leggiMatrice(A,MAX_R,&nr,&nc);
if(nr==-1)return -1;
for(i=0;i<nr;i++)
for(j=0;j<nc;j++)
if (riconosciRegione(A, nr, nc, i, j, &tmp_b, &tmp_h)){
tmp_area = tmp_b * tmp_h;
printf("Regione %d: estr. sup. SX = <%d,%d> b=%d, h=%d, Area=%d\n", n++, i, j, tmp_b, tmp_h, tmp_area);
}
return 0;
} |
Java | UTF-8 | 609 | 2.984375 | 3 | [] | no_license | package net.baekjoon.dp;
import java.util.Scanner;
// 백준 1463번 문제 풀이
public class Main1463 {
static final int N = 1000000;
public static void main(String[] args){
int[] DP = new int[N+1];
Scanner s = new Scanner(System.in);
int rN = s.nextInt();
for(int k=2;k<=rN;k++){
DP[k] = DP[k-1] + 1;
if(k % 2 == 0){
DP[k] = Math.min(DP[k], DP[k / 2] + 1);
}
if(k % 3 == 0){
DP[k] = Math.min(DP[k], DP[k / 3] + 1);
}
}
System.out.println(DP[rN]);
}
}
|
C | UTF-8 | 128,515 | 2.84375 | 3 | [
"NCSA",
"MIT",
"LLVM-exception",
"Apache-2.0",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | /*
* Test case inputs for: __uint128_t __fixunstfti (long double)
* Conversion from long double (IBM double-double) to 128 bit integer.
*/
#define INFINITY __builtin_inf()
#define QNAN __builtin_nan("")
#define INIT_U128(HI, LO) (((__uint128_t) (HI) << 64) | (LO))
struct testCase {
double hiInput;
double loInput;
__uint128_t result128;
};
// This test case tests long doubles generated using the following approach:
// For each possible exponent in double precision, we generate a random number
// in [1,2) interval as a mantissa for the high double. Given that the low
// double must be less than half an ULP of the high double, we choose the
// exponent of the low double to be less than the exponent of the high double
// minus 52. For the given exponent in the low double, we generate a random
// number in [1,2) interval as a mantissa. From this generated long double,
// we generate four long doubles by setting the sign of the high and low
// doubles to + or -.
struct testCase testList[] = {
{ 0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ -0x0p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ -0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0p+0, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ -0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) },
{ -INFINITY, 0x0p+0, ((__uint128_t)0x0000000000000000 << 64) | 0x0000000000000000 },
{ INFINITY, 0x0p+0, ((__uint128_t)0xffffffffffffffff << 64) | 0xffffffffffffffff },
{ QNAN, 0x0p+0, ((__uint128_t)0x7ff8000000000000 << 64) | 0x0000000000000000 },
{ -QNAN, 0x0p+0, ((__uint128_t)0x7ff8000000000000 << 64) | 0x0000000000000000 },
{ -0x1p+127, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1p+127, -0x1p+0, INIT_U128( 0x7fffffffffffffff, 0xffffffffffffffff ) },
{ 0x1p+0, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) },
{ 0x1p+60, 0x0p+0, INIT_U128( 0x0000000000000000, 0x1000000000000000 ) },
{ 0x1p+64, -0x1p+0, INIT_U128( 0x0000000000000000, 0xffffffffffffffff ) },
{ 0x1p+63, -0x1p+0, INIT_U128( 0x0000000000000000, 0x7fffffffffffffff ) },
{ 0x1p+64, 0x0p+0, INIT_U128( 0x0000000000000001, 0x0000000000000000 ) },
{ 0x1p+64, 0x1p+0, INIT_U128( 0x0000000000000001, 0x0000000000000001 ) },
{ 0x1.8p+64, -0x1p+0, INIT_U128( 0x0000000000000001, 0x7fffffffffffffff ) },
{ 0x1.1p+64, 0x0p+0, INIT_U128( 0x0000000000000001, 0x1000000000000000 ) },
{ 0x1p+65, -0x1p+0, INIT_U128( 0x0000000000000001, 0xffffffffffffffff ) },
{ 0x1p+127, -0x1p+64, INIT_U128( 0x7fffffffffffffff, 0x0000000000000000 ) },
{ 0x1p+127, -0x1.ep+64, INIT_U128( 0x7ffffffffffffffe, 0x2000000000000000 ) },
{ 0x1p+127, -0x1p+63, INIT_U128( 0x7fffffffffffffff, 0x8000000000000000 ) },
{ 0x1p+124, 0x0p+0, INIT_U128( 0x1000000000000000, 0x0000000000000000 ) },
{ 0x1p+124, 0x1p+0, INIT_U128( 0x1000000000000000, 0x0000000000000001 ) },
{ 0x1p+124, 0x1p+63, INIT_U128( 0x1000000000000000, 0x8000000000000000 ) },
{ 0x1p+124, 0x1p+64, INIT_U128( 0x1000000000000001, 0x0000000000000000 ) },
{ -0x1p+64, 0x0p+0, INIT_U128( 0x00000000000000000, 0x0000000000000000 ) },
{ 0x1.84p+70, 0x1.84p+6, INIT_U128( 0x0000000000000061, 0x0000000000000061 ) },
{ 0x1.5cp+6, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000057 ) },
{ 0x1p+64, -0x1.88p+6, INIT_U128( 0x0000000000000000, 0xffffffffffffff9e ) },
{ 0x1.88p+6, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000062 ) },
{ 0x1.00cp+10, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000403 ) },
{ 0x1.fffffffffffffp+63, 0x1.fep+9, INIT_U128( 0x0000000000000000, 0xfffffffffffffbfc ) },
{ 0x1.028p+10, 0x0p+0, INIT_U128( 0x0000000000000000, 0x000000000000040a ) },
{ 0x1.44p+10, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000510 ) },
{ 0x1.fffffffffffffp+63, 0x1.738p+9, INIT_U128( 0x0000000000000000, 0xfffffffffffffae7 ) },
{ 0x1.808p+10, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000602 ) },
{ 0x1.fffffffffffffp+63, 0x1.fdp+8, INIT_U128( 0x0000000000000000, 0xfffffffffffff9fd ) },
{ 0x1.048p+13, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000002090 ) },
{ 0x1.ffffffffffffbp+63, 0x1.ed8p+9, INIT_U128( 0x0000000000000000, 0xffffffffffffdbdb ) },
{ 0x1.0101p+17, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000020202 ) },
{ 0x1.fffffffffffbep+63, -0x1.09p+8, INIT_U128( 0x0000000000000000, 0xfffffffffffdeef7 ) },
{ 0x1.9002p+17, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000032004 ) },
{ 0x1.fffffffffff9cp+63, -0x1.4p+2, INIT_U128( 0x0000000000000000, 0xfffffffffffcdffb ) },
{ 0x1.902p+17, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000032040 ) },
{ 0x1.ffffffffff7fcp+63, -0x1.14p+6, INIT_U128( 0x0000000000000000, 0xffffffffffbfdfbb ) },
{ 0x1.00822p+22, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000402088 ) },
{ 0x1.0010011p+31, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000080080088 ) },
{ 0x1.0a000001p+35, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000850000008 ) },
{ 0x1.000000224p+37, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000002000000448 ) },
{ 0x1.ffffffbffefb8p+63, -0x1p+0, INIT_U128( 0x0000000000000000, 0xffffffdfff7dbfff ) },
{ 0x1.00080044p+102, 0x1.00080044p+38, INIT_U128( 0x0000004002001100, 0x0000004002001100 ) },
{ 0x1.00400000018p+107, 0x1.00400000018p+43, INIT_U128( 0x000008020000000c, 0x000008020000000c ) },
{ 0x1.ffffeffcp+63, -0x1.ap+3, INIT_U128( 0x0000000000000000, 0xfffff7fdfffffff3 ) },
{ 0x1.000000001048p+47, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000800000000824 ) },
{ 0x1.fffbffffffp+63, -0x1.808p+9, INIT_U128( 0x0000000000000000, 0xfffdffffff7ffcff ) },
{ 0x1.000810004p+62, 0x0p+0, INIT_U128( 0x0000000000000000, 0x4002040010000000 ) },
{ 0x1.7ffbf7ffep+63, -0x1p+0, INIT_U128( 0x0000000000000000, 0xbffdfbffefffffff ) },
{ 0x1p+63, 0x0p+0, INIT_U128( 0x0000000000000000, 0x8000000000000000 ) },
{ 0x1.ffffffffe8319p+63, -0x1.1f8p+9, INIT_U128( 0x0000000000000000, 0xfffffffff418c5c1 ) },
{ 0x1p+68, -0x1p+0, INIT_U128( 0x000000000000000f, 0xffffffffffffffff ) },
{ 0x1p+72, -0x1p+0, INIT_U128( 0x00000000000000ff, 0xffffffffffffffff ) },
{ 0x1p+76, -0x1p+0, INIT_U128( 0x0000000000000fff, 0xffffffffffffffff ) },
{ 0x1p+80, -0x1p+0, INIT_U128( 0x000000000000ffff, 0xffffffffffffffff ) },
{ 0x1p+84, -0x1p+0, INIT_U128( 0x00000000000fffff, 0xffffffffffffffff ) },
{ 0x1p+88, -0x1p+0, INIT_U128( 0x0000000000ffffff, 0xffffffffffffffff ) },
{ 0x1p+92, -0x1p+0, INIT_U128( 0x000000000fffffff, 0xffffffffffffffff ) },
{ 0x1p+96, -0x1p+0, INIT_U128( 0x00000000ffffffff, 0xffffffffffffffff ) },
{ 0x1p+100, -0x1p+0, INIT_U128( 0x0000000fffffffff, 0xffffffffffffffff ) },
{ 0x1p+104, -0x1p+0, INIT_U128( 0x000000ffffffffff, 0xffffffffffffffff ) },
{ 0x1p+108, -0x1p+0, INIT_U128( 0x00000fffffffffff, 0xffffffffffffffff ) },
{ 0x1p+112, -0x1p+0, INIT_U128( 0x0000ffffffffffff, 0xffffffffffffffff ) },
{ 0x1p+116, -0x1p+0, INIT_U128( 0x000fffffffffffff, 0xffffffffffffffff ) },
{ 0x1p+120, -0x1p+0, INIT_U128( 0x00ffffffffffffff, 0xffffffffffffffff ) },
{ 0x1p+124, -0x1p+0, INIT_U128( 0x0fffffffffffffff, 0xffffffffffffffff ) },
{ 0x1p+124, 0x0p+0, INIT_U128( 0x1000000000000000, 0x0000000000000000 ) },
{ 0x1p+124, 0x1.1p+4, INIT_U128( 0x1000000000000000, 0x0000000000000011 ) },
{ 0x1p+124, 0x1.11p+8, INIT_U128( 0x1000000000000000, 0x0000000000000111 ) },
{ 0x1p+124, 0x1.111p+12, INIT_U128( 0x1000000000000000, 0x0000000000001111 ) },
{ 0x1p+124, 0x1.1111p+16, INIT_U128( 0x1000000000000000, 0x0000000000011111 ) },
{ 0x1p+124, 0x1.11111p+20, INIT_U128( 0x1000000000000000, 0x0000000000111111 ) },
{ 0x1p+124, 0x1.111111p+24, INIT_U128( 0x1000000000000000, 0x0000000001111111 ) },
{ 0x1p+124, 0x1.1111111p+28, INIT_U128( 0x1000000000000000, 0x0000000011111111 ) },
{ 0x1p+124, 0x1.11111111p+32, INIT_U128( 0x1000000000000000, 0x0000000111111111 ) },
{ 0x1p+124, 0x1.111111111p+36, INIT_U128( 0x1000000000000000, 0x0000001111111111 ) },
{ 0x1p+124, 0x1.1111111111p+40, INIT_U128( 0x1000000000000000, 0x0000011111111111 ) },
{ 0x1p+124, 0x1.11111111111p+44, INIT_U128( 0x1000000000000000, 0x0000111111111111 ) },
{ 0x1p+124, 0x1.111111111111p+48, INIT_U128( 0x1000000000000000, 0x0001111111111111 ) },
{ 0x1p+124, 0x1.1111111111111p+52, INIT_U128( 0x1000000000000000, 0x0011111111111111 ) },
{ 0x1p+124, 0x1.11111111111111p+56, INIT_U128( 0x1000000000000000, 0x0111111111111110 ) },
{ 0x1p+124, 0x1.111111111111111p+60, INIT_U128( 0x1000000000000000, 0x1111111111111100 ) },
{ 0x1.6ffffffefp+63, -0x1p+0, INIT_U128( 0x0000000000000000, 0xb7ffffff77ffffff ) },
{ 0x1p+106, 0x0p+0, INIT_U128( 0x0000040000000000, 0x0000000000000000 ) },
{ 0x1.ff8p+29, 0x0p+0, INIT_U128( 0x0000000000000000, 0x000000003ff00000 ) },
{ 0x1.6ff7ffffffffcp+63, -0x1p+0, INIT_U128( 0x0000000000000000, 0xb7fbffffffffdfff ) },
{ 0x1.2400000000004p+62, 0x0p+0, INIT_U128( 0x0000000000000000, 0x4900000000001000 ) },
{ 0x1.24000000001p+126, 0x1.24000000001p+62, INIT_U128( 0x4900000000040000, 0x4900000000040000 ) },
{ 0x1.2400001p+126, 0x1.2400001p+62, INIT_U128( 0x4900000400000000, 0x4900000400000000 ) },
{ 0x1.240001p+126, 0x1.240001p+62, INIT_U128( 0x4900004000000000, 0x4900004000000000 ) },
{ 0x1.24001p+126, 0x1.24001p+62, INIT_U128( 0x4900040000000000, 0x4900040000000000 ) },
{ 0x1.24008p+126, 0x1.24008p+62, INIT_U128( 0x4900200000000000, 0x4900200000000000 ) },
{ 0x1.2404p+126, 0x1.2404p+62, INIT_U128( 0x4901000000000000, 0x4901000000000000 ) },
{ 0x1.244p+126, 0x1.244p+62, INIT_U128( 0x4910000000000000, 0x4910000000000000 ) },
{ 0x1.26p+126, 0x1.26p+62, INIT_U128( 0x4980000000000000, 0x4980000000000000 ) },
{ 0x1.3p+126, 0x1.3p+62, INIT_U128( 0x4c00000000000000, 0x4c00000000000000 ) },
{ 0x1.800000000001p+126, 0x1.6000000000004p+64, INIT_U128( 0x6000000000004001, 0x6000000000004000 ) },
{ 0x1.cp+126, 0x1.00ep+71, INIT_U128( 0x7000000000000080, 0x7000000000000000 ) },
{ 0x1.c000000000008p+126, 0x1.c000000000008p+62, INIT_U128( 0x7000000000002000, 0x7000000000002000 ) },
{ 0x1.c00000000004p+126, 0x1.c00000000004p+62, INIT_U128( 0x7000000000010000, 0x7000000000010000 ) },
{ 0x1.c0000000002p+126, 0x1.c0000000002p+62, INIT_U128( 0x7000000000080000, 0x7000000000080000 ) },
{ 0x1.c000000002p+126, 0x1.c000000002p+62, INIT_U128( 0x7000000000800000, 0x7000000000800000 ) },
{ 0x1.c00000002p+126, 0x1.c00000002p+62, INIT_U128( 0x7000000008000000, 0x7000000008000000 ) },
{ 0x1.c0000008p+126, 0x1.c0000008p+62, INIT_U128( 0x7000000200000000, 0x7000000200000000 ) },
{ 0x1.c000002p+126, 0x1.c000002p+62, INIT_U128( 0x7000000800000000, 0x7000000800000000 ) },
{ 0x1.c00004p+126, 0x1.c00004p+62, INIT_U128( 0x7000010000000000, 0x7000010000000000 ) },
{ 0x1.c0002p+126, 0x1.c0002p+62, INIT_U128( 0x7000080000000000, 0x7000080000000000 ) },
{ 0x1.c008p+126, 0x1.c008p+62, INIT_U128( 0x7002000000000000, 0x7002000000000000 ) },
{ 0x1.c02p+126, 0x1.c02p+62, INIT_U128( 0x7008000000000000, 0x7008000000000000 ) },
{ 0x1.c2p+126, 0x1.c2p+62, INIT_U128( 0x7080000000000000, 0x7080000000000000 ) },
{ 0x1.dp+126, 0x1.dp+62, INIT_U128( 0x7400000000000000, 0x7400000000000000 ) },
{ 0x1.00014f3089001p+64, 0x1.e133333333333p+6, INIT_U128( 0x0000000000000001, 0x00014f3089001078 ) },
{ 0x1.fffffffffffffp+127, 0x1.fffffffffffffp+74, INIT_U128( 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFC00000 ) },
{ 0x1.f066666666666p+6, -0x1.f066666666667p-768, INIT_U128( 0x0000000000000000, 0x000000000000007C ) },
{ 0x1.f066666666666p+6, 0x1.f066666666667p-768, INIT_U128( 0x0000000000000000, 0x000000000000007C ) },
{ 0x1.1111111111111p+124, 0x1.1p+68, INIT_U128( 0x1111111111111111, 0x0000000000000000 ) },
{ 0x0.0000000000001p-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0.0000001160e9fp-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0.0000001a26f3cp-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ -0x0.0000001134f35p-1022, -0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0.00003f9eec3ep-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0.0a40bec0e4818p-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x0.0d4e1fcc5a9c4p-1022, 0x0p+0, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.acf5f5ef59ebfp-1007, 0x0.00000000000a8p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.1f45384e3e8a7p-1007, 0x0.00000000000b4p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.8474983f08e93p-1007, 0x0.00000000000d9p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.47ad6cf88f5aep-1007, 0x0.00000000000bcp-1022, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.2da4480a5b489p-1, 0x1.9e20ea6f3c41dp-618, INIT_U128( 0x0000000000000000, 0x0000000000000000 ) },
{ 0x1.438fba0a871f8p+0, 0x1.086e1f6e10dc4p-992, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) },
{ 0x1.51c874cca390ep+0, 0x1.5dd30576bba6p-992, INIT_U128( 0x0000000000000000, 0x0000000000000001 ) },
{ 0x1.3691a8086d235p+1, 0x1.3670ebb66ce1ep-281, INIT_U128( 0x0000000000000000, 0x0000000000000002 ) },
{ 0x1.b800c73570019p+1, 0x1.1bf9094c37f21p-281, INIT_U128( 0x0000000000000000, 0x0000000000000003 ) },
{ 0x1.c1e89f3783d14p+1, 0x1.69999266d3332p-281, INIT_U128( 0x0000000000000000, 0x0000000000000003 ) },
{ 0x1.390b19fa72163p+1, 0x1.25bf7f6c4b7fp-281, INIT_U128( 0x0000000000000000, 0x0000000000000002 ) },
{ 0x1.4beee12897ddcp+2, 0x1.549d853aa93bp-815, INIT_U128( 0x0000000000000000, 0x0000000000000005 ) },
{ 0x1.e37742bfc6ee9p+2, 0x1.081a6dda1034ep-815, INIT_U128( 0x0000000000000000, 0x0000000000000007 ) },
{ 0x1.e6c0b50fcd816p+2, 0x1.c3d7967b87af3p-815, INIT_U128( 0x0000000000000000, 0x0000000000000007 ) },
{ 0x1.590290feb2052p+2, 0x1.07756f600eeaep-815, INIT_U128( 0x0000000000000000, 0x0000000000000005 ) },
{ 0x1.66154348cc2a8p+3, 0x1.bb93d1a97727ap-619, INIT_U128( 0x0000000000000000, 0x000000000000000b ) },
{ 0x1.69cf9e9ed39f4p+3, 0x1.ce842e739d086p-619, INIT_U128( 0x0000000000000000, 0x000000000000000b ) },
{ 0x1.e884574bd108bp+3, 0x1.9c6561f338cacp-619, INIT_U128( 0x0000000000000000, 0x000000000000000f ) },
{ 0x1.6263a430c4c74p+4, 0x1.6b327792d664fp-117, INIT_U128( 0x0000000000000000, 0x0000000000000016 ) },
{ 0x1.43637d1286c7p+4, 0x1.546df60aa8dbfp-117, INIT_U128( 0x0000000000000000, 0x0000000000000014 ) },
{ 0x1.faa21259f5443p+4, 0x1.b6708ecf6ce12p-117, INIT_U128( 0x0000000000000000, 0x000000000000001f ) },
{ 0x1.fd3105d1fa62p+4, 0x1.370912046e122p-117, INIT_U128( 0x0000000000000000, 0x000000000000001f ) },
{ 0x1.cf952d399f2a5p+5, 0x1.0d283ebe1a508p-735, INIT_U128( 0x0000000000000000, 0x0000000000000039 ) },
{ 0x1.6ac8f880d591fp+5, 0x1.ec284da5d8509p-735, INIT_U128( 0x0000000000000000, 0x000000000000002d ) },
{ 0x1.919c82bf2339p+5, 0x1.a58971fd4b12ep-735, INIT_U128( 0x0000000000000000, 0x0000000000000032 ) },
{ 0x1.789a89ccf1351p+5, 0x1.ebd48283d7a91p-735, INIT_U128( 0x0000000000000000, 0x000000000000002f ) },
{ 0x1.8db2068d1b641p+6, 0x1.056174ca0ac2ep-802, INIT_U128( 0x0000000000000000, 0x0000000000000063 ) },
{ 0x1.8d618e6f1ac32p+6, 0x1.0643da660c87cp-802, INIT_U128( 0x0000000000000000, 0x0000000000000063 ) },
{ 0x1.f10fc45fe21f8p+6, 0x1.d71f2d6bae3e5p-802, INIT_U128( 0x0000000000000000, 0x000000000000007c ) },
{ 0x1.1cafcb76395fap+8, 0x1.026dfe9a04dcp-78, INIT_U128( 0x0000000000000000, 0x000000000000011c ) },
{ 0x1.8b9a3b5917348p+8, 0x1.f64ef081ec9dep-78, INIT_U128( 0x0000000000000000, 0x000000000000018b ) },
{ 0x1.347ea22c68fd4p+8, 0x1.a86c77e750d8fp-78, INIT_U128( 0x0000000000000000, 0x0000000000000134 ) },
{ 0x1.c498c82389319p+8, 0x1.0d4d96061a9b3p-78, INIT_U128( 0x0000000000000000, 0x00000000000001c4 ) },
{ 0x1.3e4fa8b47c9f5p+9, 0x1.d0718139a0e3p-293, INIT_U128( 0x0000000000000000, 0x000000000000027c ) },
{ 0x1.5ffd3878bffa7p+9, 0x1.1828a29c30514p-293, INIT_U128( 0x0000000000000000, 0x00000000000002bf ) },
{ 0x1.bbbb3b8577768p+9, 0x1.ba79b21b74f36p-293, INIT_U128( 0x0000000000000000, 0x0000000000000377 ) },
{ 0x1.8777cb810eefap+9, 0x1.bb3afdc57676p-293, INIT_U128( 0x0000000000000000, 0x000000000000030e ) },
{ 0x1.8e7992a11cf32p+10, 0x1.a18e4033431c8p-789, INIT_U128( 0x0000000000000000, 0x0000000000000639 ) },
{ 0x1.7684faeced0ap+10, 0x1.5f11706abe22ep-789, INIT_U128( 0x0000000000000000, 0x00000000000005da ) },
{ 0x1.7d7ac11afaf58p+10, 0x1.64553beec8aa8p-789, INIT_U128( 0x0000000000000000, 0x00000000000005f5 ) },
{ 0x1.a540fa454a81fp+10, 0x1.329efbd6653ep-789, INIT_U128( 0x0000000000000000, 0x0000000000000695 ) },
{ 0x1.92ed812325dbp+11, 0x0.000012eafc716p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000c97 ) },
{ 0x1.b10abb4562158p+11, 0x0.00001e4765564p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000d88 ) },
{ 0x1.f6751879ecea3p+11, 0x0.000014435b4b9p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000fb3 ) },
{ 0x1.32e6b0a465cd6p+11, 0x0.00001729d5c09p-1022, INIT_U128( 0x0000000000000000, 0x0000000000000997 ) },
{ 0x1.11f336c623e67p+12, 0x1.9d9af61f3b35fp-489, INIT_U128( 0x0000000000000000, 0x000000000000111f ) },
{ 0x1.18ebab5631d76p+12, 0x1.47d8de9e8fb1cp-489, INIT_U128( 0x0000000000000000, 0x000000000000118e ) },
{ 0x1.c25a29f984b45p+12, 0x1.c65b51e78cb6ap-489, INIT_U128( 0x0000000000000000, 0x0000000000001c25 ) },
{ 0x1.cf37f3299e6ffp+12, 0x1.38601ed270c04p-489, INIT_U128( 0x0000000000000000, 0x0000000000001cf3 ) },
{ 0x1.00db141c01b62p+13, 0x1.a4ea801149d5p-963, INIT_U128( 0x0000000000000000, 0x000000000000201b ) },
{ 0x1.b81f3643703e7p+13, 0x1.849a11a509342p-963, INIT_U128( 0x0000000000000000, 0x0000000000003703 ) },
{ 0x1.6dbbb6a4db777p+13, 0x1.362f46546c5e9p-963, INIT_U128( 0x0000000000000000, 0x0000000000002db7 ) },
{ 0x1.eeb645abdd6c8p+13, 0x1.1edee6683dbddp-963, INIT_U128( 0x0000000000000000, 0x0000000000003dd6 ) },
{ 0x1.dc7ac6d3b8f59p+14, 0x1.3a4d2846749a5p-96, INIT_U128( 0x0000000000000000, 0x000000000000771e ) },
{ 0x1.51b38df4a3672p+14, 0x1.ef5f5533debeap-96, INIT_U128( 0x0000000000000000, 0x000000000000546c ) },
{ 0x1.5cdcee10b9b9ep+14, 0x1.dd44c049ba898p-96, INIT_U128( 0x0000000000000000, 0x0000000000005737 ) },
{ 0x1.f5266d45ea4cdp+14, 0x1.3970615e72e0cp-96, INIT_U128( 0x0000000000000000, 0x0000000000007d49 ) },
{ 0x1.2ab9252a55724p+15, 0x1.a85ba3d950b74p-690, INIT_U128( 0x0000000000000000, 0x000000000000955c ) },
{ 0x1.707a4edee0f4ap+15, 0x1.00541f2800a84p-690, INIT_U128( 0x0000000000000000, 0x000000000000b83d ) },
{ 0x1.594c6252b298cp+15, 0x1.837b6c0706f6ep-690, INIT_U128( 0x0000000000000000, 0x000000000000aca6 ) },
{ 0x1.41fad8e683f5bp+15, 0x1.7cb3a2bef9674p-690, INIT_U128( 0x0000000000000000, 0x000000000000a0fd ) },
{ 0x1.f150e9b3e2a1dp+16, 0x1.155a86a62ab51p-762, INIT_U128( 0x0000000000000000, 0x000000000001f150 ) },
{ 0x1.0a3ca44214794p+16, 0x1.5c85e07eb90bcp-762, INIT_U128( 0x0000000000000000, 0x0000000000010a3c ) },
{ 0x1.0ef4814e1de9p+16, 0x1.2cd0510659a0ap-762, INIT_U128( 0x0000000000000000, 0x0000000000010ef4 ) },
{ 0x1.99373a97326e7p+16, 0x1.98d239d731a47p-762, INIT_U128( 0x0000000000000000, 0x0000000000019937 ) },
{ 0x1.0062da5400c5cp+17, 0x1.12b3124825662p-940, INIT_U128( 0x0000000000000000, 0x00000000000200c5 ) },
{ 0x1.8ac0f0251581ep+17, 0x1.60b254d0c164ap-940, INIT_U128( 0x0000000000000000, 0x0000000000031581 ) },
{ 0x1.51c0eb94a381ep+17, 0x1.ce1da4059c3b4p-940, INIT_U128( 0x0000000000000000, 0x000000000002a381 ) },
{ 0x1.5e83e6a4bd07dp+17, 0x1.adcff7815b9ffp-940, INIT_U128( 0x0000000000000000, 0x000000000002bd07 ) },
{ 0x1.242e55bc485cap+18, 0x0.000000000001fp-1022, INIT_U128( 0x0000000000000000, 0x00000000000490b9 ) },
{ 0x1.7d59ac2cfab36p+18, 0x0.000000000001p-1022, INIT_U128( 0x0000000000000000, 0x000000000005f566 ) },
{ 0x1.d19e6101a33ccp+18, 0x0.0000000000014p-1022, INIT_U128( 0x0000000000000000, 0x0000000000074679 ) },
{ 0x1.34c9981869933p+18, 0x0.0000000000011p-1022, INIT_U128( 0x0000000000000000, 0x000000000004d326 ) },
{ 0x1.c066e34f80cddp+19, 0x1.e3f363b5c7e6dp-881, INIT_U128( 0x0000000000000000, 0x00000000000e0337 ) },
{ 0x1.df32bc2fbe658p+19, 0x1.df947163bf28ep-881, INIT_U128( 0x0000000000000000, 0x00000000000ef995 ) },
{ 0x1.3bbc859e7779p+19, 0x1.0773506c0ee6ap-881, INIT_U128( 0x0000000000000000, 0x000000000009dde4 ) },
{ 0x1.3b65fdae76ccp+19, 0x1.36924fde6d24ap-881, INIT_U128( 0x0000000000000000, 0x000000000009db2f ) },
{ 0x1.52c7a810a58f5p+20, 0x1.a11a939f42352p-561, INIT_U128( 0x0000000000000000, 0x0000000000152c7a ) },
{ 0x1.9546ee252a8dep+20, 0x1.eeb4a28ddd695p-561, INIT_U128( 0x0000000000000000, 0x000000000019546e ) },
{ 0x1.f50465bdea08cp+20, 0x1.7288f4c2e511ep-561, INIT_U128( 0x0000000000000000, 0x00000000001f5046 ) },
{ 0x1.b8199d2770334p+20, 0x1.a2d4ddfb45a9cp-561, INIT_U128( 0x0000000000000000, 0x00000000001b8199 ) },
{ 0x1.efe67d0fdfccfp+21, 0x1.05ac37920b587p-121, INIT_U128( 0x0000000000000000, 0x00000000003dfccf ) },
{ 0x1.a1c8a86343915p+21, 0x1.ff7f144bfefe2p-121, INIT_U128( 0x0000000000000000, 0x0000000000343915 ) },
{ 0x1.0b3b76001676fp+21, 0x1.742fba58e85f8p-121, INIT_U128( 0x0000000000000000, 0x000000000021676e ) },
{ 0x1.cb12f6579625fp+21, 0x1.5e77e020bcefcp-121, INIT_U128( 0x0000000000000000, 0x000000000039625e ) },
{ 0x1.bd380f437a702p+22, 0x1.491fe5e8923fcp-995, INIT_U128( 0x0000000000000000, 0x00000000006f4e03 ) },
{ 0x1.46fbb89c8df77p+22, 0x1.a09fc8f7413f9p-995, INIT_U128( 0x0000000000000000, 0x000000000051beee ) },
{ 0x1.17e871f42fd0ep+22, 0x1.a11fc1a7423f8p-995, INIT_U128( 0x0000000000000000, 0x000000000045fa1c ) },
{ 0x1.277e999a4efd3p+22, 0x1.4bd3e11097a7cp-995, INIT_U128( 0x0000000000000000, 0x000000000049dfa6 ) },
{ 0x1.6e4d3250dc9a6p+23, 0x1.edf09145dbe12p-447, INIT_U128( 0x0000000000000000, 0x0000000000b72699 ) },
{ 0x1.eb0413bfd6083p+23, 0x1.29c840b053908p-447, INIT_U128( 0x0000000000000000, 0x0000000000f58209 ) },
{ 0x1.283f1d32507e4p+23, 0x1.06daa0fe0db54p-447, INIT_U128( 0x0000000000000000, 0x0000000000941f8e ) },
{ 0x1.cf7790bd9eef2p+23, 0x1.22ebe99845d7dp-447, INIT_U128( 0x0000000000000000, 0x0000000000e7bbc8 ) },
{ 0x1.39fb1e1473f64p+24, 0x1.baafa729755f5p-263, INIT_U128( 0x0000000000000000, 0x000000000139fb1e ) },
{ 0x1.553510f0aa6a2p+24, 0x1.806a3d5d00d48p-263, INIT_U128( 0x0000000000000000, 0x0000000001553510 ) },
{ 0x1.876715390ece3p+24, 0x1.cdf668119becdp-263, INIT_U128( 0x0000000000000000, 0x0000000001876715 ) },
{ 0x1.11816ac62302ep+24, 0x1.5e8451ecbd08ap-263, INIT_U128( 0x0000000000000000, 0x000000000111816a ) },
{ 0x1.3e7e811e7cfdp+25, 0x1.2dc6a5685b8d4p-155, INIT_U128( 0x0000000000000000, 0x00000000027cfd02 ) },
{ 0x1.6ebc2c8cdd786p+25, 0x1.22f38cd645e72p-155, INIT_U128( 0x0000000000000000, 0x0000000002dd7859 ) },
{ 0x1.421ccf068439ap+25, 0x1.bef8b6f57df17p-155, INIT_U128( 0x0000000000000000, 0x000000000284399e ) },
{ 0x1.e10ee555c21dcp+25, 0x1.033cdd7a0679cp-155, INIT_U128( 0x0000000000000000, 0x0000000003c21dca ) },
{ 0x1.f0b6e7ede16ddp+26, 0x1.bc0a81517815p-634, INIT_U128( 0x0000000000000000, 0x0000000007c2db9f ) },
{ 0x1.f7b66dc5ef6cdp+26, 0x1.2bd3184a57a63p-634, INIT_U128( 0x0000000000000000, 0x0000000007ded9b7 ) },
{ 0x1.259706244b2e1p+26, 0x1.8b7dd07716fbap-634, INIT_U128( 0x0000000000000000, 0x0000000004965c18 ) },
{ 0x1.fdf5519ffbeaap+26, 0x1.19d4925433a92p-634, INIT_U128( 0x0000000000000000, 0x0000000007f7d546 ) },
{ 0x1.bb13b1d776276p+27, 0x1.e509cb23ca13ap-395, INIT_U128( 0x0000000000000000, 0x000000000dd89d8e ) },
{ 0x1.20754b2a40eaap+27, 0x1.bcc8cd6b7991ap-395, INIT_U128( 0x0000000000000000, 0x000000000903aa59 ) },
{ 0x1.dc036999b806dp+27, 0x1.62b438eec5687p-395, INIT_U128( 0x0000000000000000, 0x000000000ee01b4c ) },
{ 0x1.92b76e3d256eep+27, 0x1.33f6413067ec8p-395, INIT_U128( 0x0000000000000000, 0x000000000c95bb71 ) },
{ 0x1.7a6c4408f4d88p+28, 0x1.0f6d05b41edap-716, INIT_U128( 0x0000000000000000, 0x0000000017a6c440 ) },
{ 0x1.25d2c9ae4ba59p+28, 0x1.005f5a6a00becp-716, INIT_U128( 0x0000000000000000, 0x00000000125d2c9a ) },
{ 0x1.c8949d0b91293p+28, 0x1.6e7ca504dcf94p-716, INIT_U128( 0x0000000000000000, 0x000000001c8949d0 ) },
{ 0x1.21af1f7a435e4p+28, 0x1.98e05ef731c0cp-716, INIT_U128( 0x0000000000000000, 0x00000000121af1f7 ) },
{ 0x1.307b63f060f6cp+29, 0x1.17d4949a2fa92p-112, INIT_U128( 0x0000000000000000, 0x00000000260f6c7e ) },
{ 0x1.053d62740a7acp+29, 0x1.a8881e6551104p-112, INIT_U128( 0x0000000000000000, 0x0000000020a7ac4e ) },
{ 0x1.9b60d35b36c1ap+29, 0x1.005bb09600b76p-112, INIT_U128( 0x0000000000000000, 0x00000000336c1a6b ) },
{ 0x1.3ba73afe774e8p+29, 0x1.0efca74e1df95p-112, INIT_U128( 0x0000000000000000, 0x000000002774e75f ) },
{ 0x1.dd796675baf2dp+30, 0x1.aaba00775574p-990, INIT_U128( 0x0000000000000000, 0x00000000775e599d ) },
{ 0x1.8b282c8d16506p+30, 0x1.4e04f8449c09fp-990, INIT_U128( 0x0000000000000000, 0x0000000062ca0b23 ) },
{ 0x1.7d6ab930fad57p+30, 0x1.764a6e3cec94ep-990, INIT_U128( 0x0000000000000000, 0x000000005f5aae4c ) },
{ 0x1.6906027cd20cp+30, 0x1.d5b4ef4dab69ep-990, INIT_U128( 0x0000000000000000, 0x000000005a41809f ) },
{ 0x1.04a9da360953cp+31, 0x1.6c11a2e4d8234p-857, INIT_U128( 0x0000000000000000, 0x000000008254ed1b ) },
{ 0x1.fbba6e93f774ep+31, 0x1.0e9a6e5c1d34ep-857, INIT_U128( 0x0000000000000000, 0x00000000fddd3749 ) },
{ 0x1.380b108470162p+31, 0x1.65c0e5f6cb81cp-857, INIT_U128( 0x0000000000000000, 0x000000009c058842 ) },
{ 0x1.050dfc000a1cp+31, 0x1.1df2fc803be6p-857, INIT_U128( 0x0000000000000000, 0x000000008286fe00 ) },
{ 0x1.88bf9e1d117f4p+32, 0x1.8dd4aa1b1ba95p-126, INIT_U128( 0x0000000000000000, 0x0000000188bf9e1d ) },
{ 0x1.8b35d7ff166bbp+32, 0x1.91ca210923944p-126, INIT_U128( 0x0000000000000000, 0x000000018b35d7ff ) },
{ 0x1.286a366250d47p+32, 0x1.012c86ac02591p-126, INIT_U128( 0x0000000000000000, 0x00000001286a3662 ) },
{ 0x1.ef233cd5de467p+32, 0x1.2292a62645255p-126, INIT_U128( 0x0000000000000000, 0x00000001ef233cd5 ) },
{ 0x1.917a959722f53p+33, 0x1.85a7d93f0b4fbp-478, INIT_U128( 0x0000000000000000, 0x0000000322f52b2e ) },
{ 0x1.f630053bec6p+33, 0x1.f79a5227ef34bp-478, INIT_U128( 0x0000000000000000, 0x00000003ec600a77 ) },
{ 0x1.1a062b14340c6p+33, 0x1.21179acc422f4p-478, INIT_U128( 0x0000000000000000, 0x00000002340c5628 ) },
{ 0x1.d62acf15ac55ap+33, 0x1.bf1cd2697e39ap-478, INIT_U128( 0x0000000000000000, 0x00000003ac559e2b ) },
{ 0x1.823ddfaf047bcp+34, 0x1.e2d35df1c5a6cp-649, INIT_U128( 0x0000000000000000, 0x0000000608f77ebc ) },
{ 0x1.996ef6e332ddfp+34, 0x1.7af28278f5e5p-649, INIT_U128( 0x0000000000000000, 0x0000000665bbdb8c ) },
{ 0x1.81a2bfc703458p+34, 0x1.acc15cd15982cp-649, INIT_U128( 0x0000000000000000, 0x00000006068aff1c ) },
{ 0x1.4517e98e8a2fdp+34, 0x1.a3233fc546468p-649, INIT_U128( 0x0000000000000000, 0x00000005145fa63a ) },
{ 0x1.09f551a013eaap+35, 0x0.0000000000006p-1022, INIT_U128( 0x0000000000000000, 0x000000084faa8d00 ) },
{ 0x1.a2911b3d45224p+35, 0x0.0000000000005p-1022, INIT_U128( 0x0000000000000000, 0x0000000d1488d9ea ) },
{ 0x1.77a301deef46p+35, 0x0.0000000000008p-1022, INIT_U128( 0x0000000000000000, 0x0000000bbd180ef7 ) },
{ 0x1.f60ea85fec1d5p+35, 0x0.0000000000006p-1022, INIT_U128( 0x0000000000000000, 0x0000000fb07542ff ) },
{ 0x1.75c28ed8eb852p+36, 0x1.64300234c86p-938, INIT_U128( 0x0000000000000000, 0x000000175c28ed8e ) },
{ 0x1.394f8bae729f2p+36, 0x1.2119204042324p-938, INIT_U128( 0x0000000000000000, 0x0000001394f8bae7 ) },
{ 0x1.94d6bc7929ad8p+36, 0x1.4a8aa2aa95154p-938, INIT_U128( 0x0000000000000000, 0x000000194d6bc792 ) },
{ 0x1.1f519dcc3ea34p+36, 0x1.b4fbc9c969f79p-938, INIT_U128( 0x0000000000000000, 0x00000011f519dcc3 ) },
{ 0x1.bb2fb46f765f6p+37, 0x1.cd4047139a809p-718, INIT_U128( 0x0000000000000000, 0x0000003765f68dee ) },
{ 0x1.f80989d1f0131p+37, 0x1.c0546f4180a8ep-718, INIT_U128( 0x0000000000000000, 0x0000003f01313a3e ) },
{ 0x1.90be9171217d2p+37, 0x1.bcc6089d798c1p-718, INIT_U128( 0x0000000000000000, 0x0000003217d22e24 ) },
{ 0x1.37469d226e8d4p+37, 0x1.06aff8000d5ffp-718, INIT_U128( 0x0000000000000000, 0x00000026e8d3a44d ) },
{ 0x1.2e0114905c022p+38, 0x1.298bde145317cp-115, INIT_U128( 0x0000000000000000, 0x0000004b80452417 ) },
{ 0x1.77354c42ee6aap+38, 0x1.d9a75513b34eap-115, INIT_U128( 0x0000000000000000, 0x0000005dcd5310bb ) },
{ 0x1.0881a80c11035p+38, 0x1.44e5e01889cbcp-115, INIT_U128( 0x0000000000000000, 0x00000042206a0304 ) },
{ 0x1.a32b590f4656bp+38, 0x1.760fbd2eec1f8p-115, INIT_U128( 0x0000000000000000, 0x00000068cad643d1 ) },
{ 0x1.e7bc6861cf78dp+39, 0x1.72addca8e55bcp-767, INIT_U128( 0x0000000000000000, 0x000000f3de3430e7 ) },
{ 0x1.e1e11b1bc3c24p+39, 0x1.713729dae26e5p-767, INIT_U128( 0x0000000000000000, 0x000000f0f08d8de1 ) },
{ 0x1.8bbb377f17767p+39, 0x1.c296d213852dap-767, INIT_U128( 0x0000000000000000, 0x000000c5dd9bbf8b ) },
{ 0x1.7cb13d18f9628p+39, 0x1.8dcf87351b9f1p-767, INIT_U128( 0x0000000000000000, 0x000000be589e8c7c ) },
{ 0x1.1ddbaf383bb76p+40, 0x1.20c8d9d04191bp-497, INIT_U128( 0x0000000000000000, 0x0000011ddbaf383b ) },
{ 0x1.fde474e3fbc8ep+40, 0x1.7e6de35afcdbcp-497, INIT_U128( 0x0000000000000000, 0x000001fde474e3fb ) },
{ 0x1.02a202b00544p+40, 0x1.311b40f462368p-497, INIT_U128( 0x0000000000000000, 0x00000102a202b005 ) },
{ 0x1.ec0b6577d816cp+40, 0x1.8e49e85d1c93dp-497, INIT_U128( 0x0000000000000000, 0x000001ec0b6577d8 ) },
{ 0x1.95fa4b912bf4ap+41, 0x1.295d953652bb2p-872, INIT_U128( 0x0000000000000000, 0x0000032bf4972257 ) },
{ 0x1.fd243093fa486p+41, 0x1.91e0a45723c14p-872, INIT_U128( 0x0000000000000000, 0x000003fa486127f4 ) },
{ 0x1.d0beeb21a17dep+41, 0x1.97f98e272ff32p-872, INIT_U128( 0x0000000000000000, 0x000003a17dd64342 ) },
{ 0x1.750735faea0e6p+41, 0x1.97a4c8c92f499p-872, INIT_U128( 0x0000000000000000, 0x000002ea0e6bf5d4 ) },
{ 0x1.ab409c8f56814p+42, 0x1.1e820fc23d042p-84, INIT_U128( 0x0000000000000000, 0x000006ad02723d5a ) },
{ 0x1.85e79a910bcf3p+42, 0x1.75d44930eba89p-84, INIT_U128( 0x0000000000000000, 0x000006179e6a442f ) },
{ 0x1.e2fa47dfc5f49p+42, 0x1.f91c1067f2382p-84, INIT_U128( 0x0000000000000000, 0x0000078be91f7f17 ) },
{ 0x1.ecaf7567d95eep+42, 0x1.dd787be3baf1p-84, INIT_U128( 0x0000000000000000, 0x000007b2bdd59f65 ) },
{ 0x1.4fd770a89faeep+43, 0x1.883956a11072bp-669, INIT_U128( 0x0000000000000000, 0x00000a7ebb8544fd ) },
{ 0x1.b2b2aa2d65655p+43, 0x1.0c2516f2184a3p-669, INIT_U128( 0x0000000000000000, 0x00000d9595516b2b ) },
{ 0x1.5848b5b4b0916p+43, 0x1.d9a0d8cfb341bp-669, INIT_U128( 0x0000000000000000, 0x00000ac245ada584 ) },
{ 0x1.be7daa1f7cfb5p+43, 0x1.f0c9d223e193bp-669, INIT_U128( 0x0000000000000000, 0x00000df3ed50fbe7 ) },
{ 0x1.3f6d46f07eda9p+44, 0x1.3d2fa1b27a5f4p-539, INIT_U128( 0x0000000000000000, 0x000013f6d46f07ed ) },
{ 0x1.5eb8dcaebd71cp+44, 0x1.8e170e7b1c2e2p-539, INIT_U128( 0x0000000000000000, 0x000015eb8dcaebd7 ) },
{ 0x1.893b63631276cp+44, 0x1.9447ca53288f9p-539, INIT_U128( 0x0000000000000000, 0x00001893b6363127 ) },
{ 0x1.4e089b389c114p+44, 0x1.d191b053a3236p-539, INIT_U128( 0x0000000000000000, 0x000014e089b389c1 ) },
{ 0x1.2e36d90e5c6dbp+45, 0x1.314d394c629a7p-889, INIT_U128( 0x0000000000000000, 0x000025c6db21cb8d ) },
{ 0x1.7f784de4fef0ap+45, 0x1.5413e986a827dp-889, INIT_U128( 0x0000000000000000, 0x00002fef09bc9fde ) },
{ 0x1.74448388e889p+45, 0x1.752c3c2cea588p-889, INIT_U128( 0x0000000000000000, 0x00002e8890711d11 ) },
{ 0x1.ebb20c51d7641p+45, 0x1.50a52f7ca14a6p-889, INIT_U128( 0x0000000000000000, 0x00003d76418a3aec ) },
{ 0x1.4b51066896a21p+46, 0x1.d43cc973a8799p-550, INIT_U128( 0x0000000000000000, 0x000052d4419a25a8 ) },
{ 0x1.070f0d280e1e2p+46, 0x1.c25aa6dd84b55p-550, INIT_U128( 0x0000000000000000, 0x000041c3c34a0387 ) },
{ 0x1.7f735ca4fee6cp+46, 0x1.a92889d752511p-550, INIT_U128( 0x0000000000000000, 0x00005fdcd7293fb9 ) },
{ 0x1.72ed987ae5db3p+46, 0x1.fae14a03f5c29p-550, INIT_U128( 0x0000000000000000, 0x00005cbb661eb976 ) },
{ 0x1.7352fdf0e6a6p+47, 0x1.1a64275034c85p-857, INIT_U128( 0x0000000000000000, 0x0000b9a97ef87353 ) },
{ 0x1.9f4b98f33e973p+47, 0x1.657b10c0caf62p-857, INIT_U128( 0x0000000000000000, 0x0000cfa5cc799f4b ) },
{ 0x1.b12eb79b625d7p+47, 0x1.4826ca96904dap-857, INIT_U128( 0x0000000000000000, 0x0000d8975bcdb12e ) },
{ 0x1.6148cbcac291ap+47, 0x1.8672a1ad0ce54p-857, INIT_U128( 0x0000000000000000, 0x0000b0a465e56148 ) },
{ 0x1.1df8159e3bf02p+48, 0x1.7c6dbd68f8db8p-407, INIT_U128( 0x0000000000000000, 0x00011df8159e3bf0 ) },
{ 0x1.d8e17545b1c2ep+48, 0x1.959fcc5f2b3fap-407, INIT_U128( 0x0000000000000000, 0x0001d8e17545b1c2 ) },
{ 0x1.ea57e075d4afcp+48, 0x1.56705400ace0ap-407, INIT_U128( 0x0000000000000000, 0x0001ea57e075d4af ) },
{ 0x1.d2aa9e99a5554p+48, 0x1.9ebcab993d796p-407, INIT_U128( 0x0000000000000000, 0x0001d2aa9e99a555 ) },
{ 0x1.4fe075a49fc0ep+49, 0x1.e950f533d2a1ep-694, INIT_U128( 0x0000000000000000, 0x00029fc0eb493f81 ) },
{ 0x1.a936db51526dcp+49, 0x1.8a1397df14273p-694, INIT_U128( 0x0000000000000000, 0x0003526db6a2a4db ) },
{ 0x1.138ce7682719dp+49, 0x1.7f879c76ff0f4p-694, INIT_U128( 0x0000000000000000, 0x00022719ced04e33 ) },
{ 0x1.21e981b043d3p+49, 0x1.eaefe1f3d5dfcp-694, INIT_U128( 0x0000000000000000, 0x000243d3036087a6 ) },
{ 0x1.793e9a3cf27d4p+50, 0x1.40169b90802d4p-934, INIT_U128( 0x0000000000000000, 0x0005e4fa68f3c9f5 ) },
{ 0x1.7e1caadcfc396p+50, 0x1.371020466e204p-934, INIT_U128( 0x0000000000000000, 0x0005f872ab73f0e5 ) },
{ 0x1.33a019d667403p+50, 0x1.9c77f7cb38effp-934, INIT_U128( 0x0000000000000000, 0x0004ce8067599d00 ) },
{ 0x1.b4966ecb692cep+50, 0x1.c4dd0f8989ba2p-934, INIT_U128( 0x0000000000000000, 0x0006d259bb2da4b3 ) },
{ 0x1.822ad9630455bp+51, 0x1.3fade6a07f5bdp-561, INIT_U128( 0x0000000000000000, 0x000c1156cb1822ad ) },
{ 0x1.3a77dd3c74efcp+51, 0x1.55dd3018abba6p-561, INIT_U128( 0x0000000000000000, 0x0009d3bee9e3a77e ) },
{ 0x1.d375773da6eafp+51, 0x1.ad40b9955a817p-561, INIT_U128( 0x0000000000000000, 0x000e9babb9ed3757 ) },
{ 0x1.16059bfe2c0b4p+51, 0x1.ff801c63ff003p-561, INIT_U128( 0x0000000000000000, 0x0008b02cdff1605a ) },
{ 0x1.af8f1e955f1e4p+52, 0x1.2c4cc4fa58998p-237, INIT_U128( 0x0000000000000000, 0x001af8f1e955f1e4 ) },
{ 0x1.579e5322af3cap+52, 0x1.e9974457d32e8p-237, INIT_U128( 0x0000000000000000, 0x001579e5322af3ca ) },
{ 0x1.2b9d921a573b2p+52, 0x1.d8798265b0f3p-237, INIT_U128( 0x0000000000000000, 0x0012b9d921a573b2 ) },
{ 0x1.b746d5596e8dbp+52, 0x1.a75bfc954eb8p-237, INIT_U128( 0x0000000000000000, 0x001b746d5596e8db ) },
{ 0x1.497ec4f092fd8p+53, 0x1.5c597ab2b8b3p-364, INIT_U128( 0x0000000000000000, 0x00292fd89e125fb0 ) },
{ 0x1.8a65536914caap+53, 0x1.958565492b0adp-364, INIT_U128( 0x0000000000000000, 0x00314caa6d229954 ) },
{ 0x1.11b7146c236e2p+53, 0x1.3154f5b662a9ep-364, INIT_U128( 0x0000000000000000, 0x002236e28d846dc4 ) },
{ 0x1.f71b5e7bee36cp+53, 0x1.efc7aa5ddf8f6p-364, INIT_U128( 0x0000000000000000, 0x003ee36bcf7dc6d8 ) },
{ 0x1.5a71157ab4e22p+54, 0x1.b4fd1c6b69fa4p-39, INIT_U128( 0x0000000000000000, 0x00569c455ead3888 ) },
{ 0x1.4ab52e26956a6p+54, 0x1.204833ee40906p-39, INIT_U128( 0x0000000000000000, 0x0052ad4b89a55a98 ) },
{ 0x1.7b9298b4f7253p+54, 0x1.084ca6f410995p-39, INIT_U128( 0x0000000000000000, 0x005ee4a62d3dc94c ) },
{ 0x1.8be06c0317c0ep+54, 0x1.9677f6df2ceffp-39, INIT_U128( 0x0000000000000000, 0x0062f81b00c5f038 ) },
{ 0x1.53534daca6a6ap+55, 0x1.af26be6f5e4d8p-905, INIT_U128( 0x0000000000000000, 0x00a9a9a6d6535350 ) },
{ 0x1.ee7424c1dce84p+55, 0x1.38a375387146ep-905, INIT_U128( 0x0000000000000000, 0x00f73a1260ee7420 ) },
{ 0x1.4275718484eaep+55, 0x1.693f342ed27e6p-905, INIT_U128( 0x0000000000000000, 0x00a13ab8c2427570 ) },
{ 0x1.4e48bc049c918p+55, 0x1.30d3b39661a76p-905, INIT_U128( 0x0000000000000000, 0x00a7245e024e48c0 ) },
{ 0x1.6fcb01f0df96p+56, 0x1.f3322f93e6646p-339, INIT_U128( 0x0000000000000000, 0x016fcb01f0df9600 ) },
{ 0x1.6f16f2e4de2dep+56, 0x1.b50cb2d16a196p-339, INIT_U128( 0x0000000000000000, 0x016f16f2e4de2de0 ) },
{ 0x1.6fcb3cb2df968p+56, 0x1.f7623e45eec48p-339, INIT_U128( 0x0000000000000000, 0x016fcb3cb2df9680 ) },
{ 0x1.a41a78314834fp+56, 0x1.ee812a93dd026p-339, INIT_U128( 0x0000000000000000, 0x01a41a78314834f0 ) },
{ 0x1.73544f7ce6a8ap+57, 0x1.fbf6a069f7ed4p-786, INIT_U128( 0x0000000000000000, 0x02e6a89ef9cd5140 ) },
{ 0x1.8d4beb3f1a97ep+57, 0x1.6f6e15a0dedc2p-786, INIT_U128( 0x0000000000000000, 0x031a97d67e352fc0 ) },
{ 0x1.70dfc328e1bf8p+57, 0x1.56963a34ad2c8p-786, INIT_U128( 0x0000000000000000, 0x02e1bf8651c37f00 ) },
{ 0x1.6e5e39acdcbc7p+57, 0x1.62dfb7d4c5bf7p-786, INIT_U128( 0x0000000000000000, 0x02dcbc7359b978e0 ) },
{ 0x1.10a375142146ep+58, 0x1.dde963f1bbd2cp-687, INIT_U128( 0x0000000000000000, 0x04428dd450851b80 ) },
{ 0x1.7eacb1acfd596p+58, 0x1.e59952a9cb32bp-687, INIT_U128( 0x0000000000000000, 0x05fab2c6b3f56580 ) },
{ 0x1.3f2bac4a7e576p+58, 0x1.d21ee367a43ddp-687, INIT_U128( 0x0000000000000000, 0x04fcaeb129f95d80 ) },
{ 0x1.be738acb7ce71p+58, 0x1.d4b6334fa96c7p-687, INIT_U128( 0x0000000000000000, 0x06f9ce2b2df39c40 ) },
{ 0x1.b322eff56645ep+59, 0x0.00000014b8158p-1022, INIT_U128( 0x0000000000000000, 0x0d99177fab322f00 ) },
{ 0x1.b8dfbdbd71bf8p+59, 0x0.00000010ac2d6p-1022, INIT_U128( 0x0000000000000000, 0x0dc6fdedeb8dfc00 ) },
{ 0x1.e45f6d33c8bedp+59, 0x0.0000001c79003p-1022, INIT_U128( 0x0000000000000000, 0x0f22fb699e45f680 ) },
{ 0x1.10c7106e218e2p+59, 0x0.0000001ea2457p-1022, INIT_U128( 0x0000000000000000, 0x08863883710c7100 ) },
{ 0x1.c48c230989185p+60, 0x1.a60d3fb34c1a8p-116, INIT_U128( 0x0000000000000000, 0x1c48c23098918500 ) },
{ 0x1.5e9345fabd268p+60, 0x1.4898e6d49131dp-116, INIT_U128( 0x0000000000000000, 0x15e9345fabd26800 ) },
{ 0x1.b56942576ad28p+60, 0x1.aff4a0655fe94p-116, INIT_U128( 0x0000000000000000, 0x1b56942576ad2800 ) },
{ 0x1.7f865930ff0cbp+60, 0x1.13a0876e27411p-116, INIT_U128( 0x0000000000000000, 0x17f865930ff0cb00 ) },
{ 0x1.ef482c31de906p+61, 0x1.43e655d887ccap-501, INIT_U128( 0x0000000000000000, 0x3de905863bd20c00 ) },
{ 0x1.9fa15a7d3f42bp+61, 0x1.b00fcc55601fap-501, INIT_U128( 0x0000000000000000, 0x33f42b4fa7e85600 ) },
{ 0x1.d2c465fda588dp+61, 0x1.98c2f6e73185fp-501, INIT_U128( 0x0000000000000000, 0x3a588cbfb4b11a00 ) },
{ 0x1.f038608de070cp+61, 0x1.7b4fa8a0f69f5p-501, INIT_U128( 0x0000000000000000, 0x3e070c11bc0e1800 ) },
{ 0x1.adfb2db35bf66p+62, 0x1.38efaf6271df6p+8, INIT_U128( 0x0000000000000000, 0x6b7ecb6cd6fd9938 ) },
{ 0x1.1679474c2cf29p+62, 0x1.ae04d7f95c09bp+8, INIT_U128( 0x0000000000000000, 0x459e51d30b3ca5ae ) },
{ 0x1.890c63b91218cp+62, 0x1.133030ac26606p+8, INIT_U128( 0x0000000000000000, 0x624318ee44863113 ) },
{ 0x1.08fc576811f8bp+62, 0x1.521d194ea43a3p+8, INIT_U128( 0x0000000000000000, 0x423f15da047e2d52 ) },
{ 0x1.5c2e1ea2b85c4p+63, 0x1.bbf1e79d77e3dp-836, INIT_U128( 0x0000000000000000, 0xae170f515c2e2000 ) },
{ 0x1.3a1d0742743a1p+63, 0x1.849ecbad093dap-836, INIT_U128( 0x0000000000000000, 0x9d0e83a13a1d0800 ) },
{ 0x1.ac698c2758d32p+63, 0x1.7a316edaf462ep-836, INIT_U128( 0x0000000000000000, 0xd634c613ac699000 ) },
{ 0x1.8542412f0a848p+63, 0x1.a53fa9cd4a7f5p-836, INIT_U128( 0x0000000000000000, 0xc2a1209785424000 ) },
{ 0x1.f526fb77ea4ep+64, 0x1.170327882e065p-848, INIT_U128( 0x0000000000000001, 0xf526fb77ea4e0000 ) },
{ 0x1.acca54155994ap+64, 0x1.4c44fdb4988ap-848, INIT_U128( 0x0000000000000001, 0xacca54155994a000 ) },
{ 0x1.b47ed77768fdbp+64, 0x1.e6883245cd107p-848, INIT_U128( 0x0000000000000001, 0xb47ed77768fdb000 ) },
{ 0x1.bf32165b7e643p+64, 0x1.7da93100fb526p-848, INIT_U128( 0x0000000000000001, 0xbf32165b7e643000 ) },
{ 0x1.c6aa72a58d54fp+65, 0x1.700d04ece01ap-810, INIT_U128( 0x0000000000000003, 0x8d54e54b1aa9e000 ) },
{ 0x1.651ffffcca4p+65, 0x1.b6e3b8e56dc77p-810, INIT_U128( 0x0000000000000002, 0xca3ffff994800000 ) },
{ 0x1.f59076c9eb20fp+65, 0x1.41622b1082c46p-810, INIT_U128( 0x0000000000000003, 0xeb20ed93d641e000 ) },
{ 0x1.2362224a46c44p+65, 0x1.0fe4f0321fc9ep-810, INIT_U128( 0x0000000000000002, 0x46c444948d888000 ) },
{ 0x1.96643d852cc88p+66, 0x1.5aadaff0b55b6p-820, INIT_U128( 0x0000000000000006, 0x5990f614b3220000 ) },
{ 0x1.38a95f0e7152cp+66, 0x1.8432d89b0865bp-820, INIT_U128( 0x0000000000000004, 0xe2a57c39c54b0000 ) },
{ 0x1.b674a85b6ce95p+66, 0x1.3adbee1a75b7ep-820, INIT_U128( 0x0000000000000006, 0xd9d2a16db3a54000 ) },
{ 0x1.81b2bc3303658p+66, 0x1.0e771c4e1cee4p-820, INIT_U128( 0x0000000000000006, 0x06caf0cc0d960000 ) },
{ 0x1.017e066002fc1p+67, 0x1.69eb9d80d3d74p-860, INIT_U128( 0x0000000000000008, 0x0bf0330017e08000 ) },
{ 0x1.b75b9b136eb74p+67, 0x1.ddf2ec69bbe5ep-860, INIT_U128( 0x000000000000000d, 0xbadcd89b75ba0000 ) },
{ 0x1.71432fe4e2866p+67, 0x1.cbea0a3797d41p-860, INIT_U128( 0x000000000000000b, 0x8a197f2714330000 ) },
{ 0x1.65e3ce88cbc7ap+67, 0x1.dd466e4dba8cep-860, INIT_U128( 0x000000000000000b, 0x2f1e74465e3d0000 ) },
{ 0x1.d76842dfaed09p+68, 0x1.d4739f6ba8e74p-740, INIT_U128( 0x000000000000001d, 0x76842dfaed090000 ) },
{ 0x1.9180cb312301ap+68, 0x1.5961b442b2c36p-740, INIT_U128( 0x0000000000000019, 0x180cb312301a0000 ) },
{ 0x1.5ea7abd8bd4f6p+68, 0x1.0afd825415fbp-740, INIT_U128( 0x0000000000000015, 0xea7abd8bd4f60000 ) },
{ 0x1.bcf6493f79ec9p+68, 0x1.39f6643a73eccp-740, INIT_U128( 0x000000000000001b, 0xcf6493f79ec90000 ) },
{ 0x1.6c264bbad84cap+69, 0x1.3d2b92de7a572p-358, INIT_U128( 0x000000000000002d, 0x84c9775b09940000 ) },
{ 0x1.13b3e09a2767cp+69, 0x1.a3ead92f47d5bp-358, INIT_U128( 0x0000000000000022, 0x767c1344ecf80000 ) },
{ 0x1.8518219d0a304p+69, 0x1.c9a99edf93534p-358, INIT_U128( 0x0000000000000030, 0xa30433a146080000 ) },
{ 0x1.afa032e75f406p+69, 0x1.76f3e70cede7dp-358, INIT_U128( 0x0000000000000035, 0xf4065cebe80c0000 ) },
{ 0x1.1aa2f5343545ep+70, 0x1.cd612ccd9ac25p-491, INIT_U128( 0x0000000000000046, 0xa8bd4d0d51780000 ) },
{ 0x1.2c8c2e1a59186p+70, 0x1.53ac1260a7582p-491, INIT_U128( 0x000000000000004b, 0x230b869646180000 ) },
{ 0x1.b92d16ef725a3p+70, 0x1.05faddde0bf5cp-491, INIT_U128( 0x000000000000006e, 0x4b45bbdc968c0000 ) },
{ 0x1.9fc802a33f9p+70, 0x1.203a627a4074cp-491, INIT_U128( 0x0000000000000067, 0xf200a8cfe4000000 ) },
{ 0x1.240746b6480e9p+71, 0x1.78c39518f1872p-676, INIT_U128( 0x0000000000000092, 0x03a35b2407480000 ) },
{ 0x1.863a24750c744p+71, 0x1.96d2b31d2da56p-676, INIT_U128( 0x00000000000000c3, 0x1d123a863a200000 ) },
{ 0x1.597fbe8ab2ff8p+71, 0x1.93afb023275f6p-676, INIT_U128( 0x00000000000000ac, 0xbfdf45597fc00000 ) },
{ 0x1.e1080a67c2102p+71, 0x1.b5c9f2a36b93ep-676, INIT_U128( 0x00000000000000f0, 0x840533e108100000 ) },
{ 0x1.5c1897a6b8313p+72, 0x1.e08b1a6fc1164p-272, INIT_U128( 0x000000000000015c, 0x1897a6b831300000 ) },
{ 0x1.9ba232cf37446p+72, 0x1.5f66bf90becd8p-272, INIT_U128( 0x000000000000019b, 0xa232cf3744600000 ) },
{ 0x1.595f744cb2beep+72, 0x1.f7a95a67ef52cp-272, INIT_U128( 0x0000000000000159, 0x5f744cb2bee00000 ) },
{ 0x1.a763ae594ec76p+72, 0x1.c295524f852aap-272, INIT_U128( 0x00000000000001a7, 0x63ae594ec7600000 ) },
{ 0x1.06eca6c40dd95p+73, 0x1.f918431ff2309p-572, INIT_U128( 0x000000000000020d, 0xd94d881bb2a00000 ) },
{ 0x1.4f9fc82a9f3f9p+73, 0x1.257089f24ae11p-572, INIT_U128( 0x000000000000029f, 0x3f90553e7f200000 ) },
{ 0x1.0fa3bdc41f478p+73, 0x1.1ca9162039523p-572, INIT_U128( 0x000000000000021f, 0x477b883e8f000000 ) },
{ 0x1.be3be7ef7c77dp+73, 0x1.ae73d50d5ce7bp-572, INIT_U128( 0x000000000000037c, 0x77cfdef8efa00000 ) },
{ 0x1.da6d4389b4da8p+74, 0x1.1806570a300cbp-230, INIT_U128( 0x0000000000000769, 0xb50e26d36a000000 ) },
{ 0x1.55276624aa4edp+74, 0x1.004fb390009f6p-230, INIT_U128( 0x0000000000000554, 0x9d9892a93b400000 ) },
{ 0x1.aeab3c995d568p+74, 0x1.08d9156011b22p-230, INIT_U128( 0x00000000000006ba, 0xacf265755a000000 ) },
{ 0x1.a281549f4502ap+74, 0x1.cb98cbdf9731ap-230, INIT_U128( 0x000000000000068a, 0x05527d140a800000 ) },
{ 0x1.35dae4746bb5cp+75, 0x1.492edd3c925dcp-684, INIT_U128( 0x00000000000009ae, 0xd723a35dae000000 ) },
{ 0x1.e6b8db83cd71cp+75, 0x1.e8282f8fd0506p-684, INIT_U128( 0x0000000000000f35, 0xc6dc1e6b8e000000 ) },
{ 0x1.17587f082eb1p+75, 0x1.45ebb9f28bd77p-684, INIT_U128( 0x00000000000008ba, 0xc3f8417588000000 ) },
{ 0x1.957ac7292af59p+75, 0x1.35b408566b681p-684, INIT_U128( 0x0000000000000cab, 0xd6394957ac800000 ) },
{ 0x1.6e0e0850dc1c1p+76, 0x1.9e623e393cc48p-1002, INIT_U128( 0x00000000000016e0, 0xe0850dc1c1000000 ) },
{ 0x1.90fee6ff21fddp+76, 0x1.7ceca2caf9d94p-1002, INIT_U128( 0x000000000000190f, 0xee6ff21fdd000000 ) },
{ 0x1.5798708eaf30ep+76, 0x1.d3322f4fa6646p-1002, INIT_U128( 0x0000000000001579, 0x8708eaf30e000000 ) },
{ 0x1.c2ef5f4185decp+76, 0x1.96ad4d692d5aap-1002, INIT_U128( 0x0000000000001c2e, 0xf5f4185dec000000 ) },
{ 0x1.ae14b81f5c297p+77, 0x1.062f208c0c5e4p-169, INIT_U128( 0x00000000000035c2, 0x9703eb852e000000 ) },
{ 0x1.1f2ef58a3e5dep+77, 0x1.97a029192f405p-169, INIT_U128( 0x00000000000023e5, 0xdeb147cbbc000000 ) },
{ 0x1.74861d64e90c4p+77, 0x1.fb289c69f6513p-169, INIT_U128( 0x0000000000002e90, 0xc3ac9d2188000000 ) },
{ 0x1.11782bc422f06p+77, 0x1.fe294db5fc529p-169, INIT_U128( 0x000000000000222f, 0x0578845e0c000000 ) },
{ 0x1.3af34bd275e6ap+78, 0x1.ba66054574cc1p-910, INIT_U128( 0x0000000000004ebc, 0xd2f49d79a8000000 ) },
{ 0x1.0708e3fc0e11cp+78, 0x1.09ae142c135c2p-910, INIT_U128( 0x00000000000041c2, 0x38ff038470000000 ) },
{ 0x1.c313a69786275p+78, 0x1.fc165a27f82ccp-910, INIT_U128( 0x00000000000070c4, 0xe9a5e189d4000000 ) },
{ 0x1.990c9ad532193p+78, 0x1.072499060e493p-910, INIT_U128( 0x0000000000006643, 0x26b54c864c000000 ) },
{ 0x1.dd2363c1ba46cp+79, 0x1.d163c99ba2c79p-815, INIT_U128( 0x000000000000ee91, 0xb1e0dd2360000000 ) },
{ 0x1.b0ae4ad1615c9p+79, 0x1.8f2f90f91e5f2p-815, INIT_U128( 0x000000000000d857, 0x2568b0ae48000000 ) },
{ 0x1.9a26bbb7344d8p+79, 0x1.ed90d6d9db21bp-815, INIT_U128( 0x000000000000cd13, 0x5ddb9a26c0000000 ) },
{ 0x1.71ec17ace3d83p+79, 0x1.ec2b79cfd856fp-815, INIT_U128( 0x000000000000b8f6, 0x0bd671ec18000000 ) },
{ 0x1.689f9cb2d13f4p+80, 0x1.adfbd9175bf7bp-935, INIT_U128( 0x000000000001689f, 0x9cb2d13f40000000 ) },
{ 0x1.cde2888d9bc51p+80, 0x1.0d3598f01a6b3p-935, INIT_U128( 0x000000000001cde2, 0x888d9bc510000000 ) },
{ 0x1.6866c948d0cd9p+80, 0x1.0d9da3cc1b3b4p-935, INIT_U128( 0x0000000000016866, 0xc948d0cd90000000 ) },
{ 0x1.eee79cbdddcf3p+80, 0x1.a60bf9374c17fp-935, INIT_U128( 0x000000000001eee7, 0x9cbdddcf30000000 ) },
{ 0x1.3a27b29c744f6p+81, 0x1.1270039224ep-231, INIT_U128( 0x000000000002744f, 0x6538e89ec0000000 ) },
{ 0x1.608a6c38c114ep+81, 0x1.a6ff1b154dfe4p-231, INIT_U128( 0x000000000002c114, 0xd8718229c0000000 ) },
{ 0x1.b8ddf2c971bbep+81, 0x1.7a6c452cf4d88p-231, INIT_U128( 0x00000000000371bb, 0xe592e377c0000000 ) },
{ 0x1.34056f04680aep+81, 0x1.3aa39ba075474p-231, INIT_U128( 0x000000000002680a, 0xde08d015c0000000 ) },
{ 0x1.df36567dbe6cbp+82, 0x1.948aa54b29155p-104, INIT_U128( 0x0000000000077cd9, 0x59f6f9b2c0000000 ) },
{ 0x1.00c5bf20018b8p+82, 0x1.0354f44e06a9ep-104, INIT_U128( 0x0000000000040316, 0xfc80062e00000000 ) },
{ 0x1.5a6d471ab4da9p+82, 0x1.ea755ca5d4eabp-104, INIT_U128( 0x00000000000569b5, 0x1c6ad36a40000000 ) },
{ 0x1.58acff6eb15ap+82, 0x1.f6c3b1b9ed876p-104, INIT_U128( 0x00000000000562b3, 0xfdbac56800000000 ) },
{ 0x1.9288c20b25118p+83, 0x1.477be5208ef7cp-445, INIT_U128( 0x00000000000c9446, 0x1059288c00000000 ) },
{ 0x1.3556fa5c6aaep+83, 0x1.f200a591e4014p-445, INIT_U128( 0x000000000009aab7, 0xd2e3557000000000 ) },
{ 0x1.88dec0dd11bd8p+83, 0x1.a1ceac19439d6p-445, INIT_U128( 0x00000000000c46f6, 0x06e88dec00000000 ) },
{ 0x1.603498e4c0693p+83, 0x1.94ccf0d52999ep-445, INIT_U128( 0x00000000000b01a4, 0xc726034980000000 ) },
{ 0x1.1dfbb7a43bf77p+84, 0x1.d7dd8bdbafbb2p-926, INIT_U128( 0x000000000011dfbb, 0x7a43bf7700000000 ) },
{ 0x1.5f5d18b8beba3p+84, 0x1.ac1b923558372p-926, INIT_U128( 0x000000000015f5d1, 0x8b8beba300000000 ) },
{ 0x1.8b32b85d16657p+84, 0x1.37ae11cc6f5c2p-926, INIT_U128( 0x000000000018b32b, 0x85d1665700000000 ) },
{ 0x1.506f56eca0debp+84, 0x1.185445da30a88p-926, INIT_U128( 0x00000000001506f5, 0x6eca0deb00000000 ) },
{ 0x1.506cf3dea0d9ep+85, 0x1.2e68e2945cd1cp-635, INIT_U128( 0x00000000002a0d9e, 0x7bd41b3c00000000 ) },
{ 0x1.99ef268733de5p+85, 0x1.2ce0960e59c13p-635, INIT_U128( 0x0000000000333de4, 0xd0e67bca00000000 ) },
{ 0x1.d46cd273a8d9ap+85, 0x1.fb0bae61f6176p-635, INIT_U128( 0x00000000003a8d9a, 0x4e751b3400000000 ) },
{ 0x1.31deaa8263bd6p+85, 0x1.8a752b4514ea6p-635, INIT_U128( 0x0000000000263bd5, 0x504c77ac00000000 ) },
{ 0x1.95956f032b2aep+86, 0x1.ddd18753bba31p-535, INIT_U128( 0x000000000065655b, 0xc0cacab800000000 ) },
{ 0x1.db4b6705b696dp+86, 0x1.fc438061f887p-535, INIT_U128( 0x000000000076d2d9, 0xc16da5b400000000 ) },
{ 0x1.42c9320885926p+86, 0x1.9258f3ab24b1ep-535, INIT_U128( 0x000000000050b24c, 0x8221649800000000 ) },
{ 0x1.08ca2a0e11946p+86, 0x1.1c860974390c1p-535, INIT_U128( 0x000000000042328a, 0x8384651800000000 ) },
{ 0x1.ddf27f51bbe5p+87, 0x1.a776e8c94eeddp-479, INIT_U128( 0x0000000000eef93f, 0xa8ddf28000000000 ) },
{ 0x1.3f5b6af47eb6ep+87, 0x1.cf47dd9d9e8fcp-479, INIT_U128( 0x00000000009fadb5, 0x7a3f5b7000000000 ) },
{ 0x1.4b9d6480973acp+87, 0x1.c249100d84922p-479, INIT_U128( 0x0000000000a5ceb2, 0x404b9d6000000000 ) },
{ 0x1.eea053a5dd40bp+87, 0x1.26e6f8d24dcdfp-479, INIT_U128( 0x0000000000f75029, 0xd2eea05800000000 ) },
{ 0x1.4e0a84329c15p+88, 0x1.b969043772d2p-931, INIT_U128( 0x00000000014e0a84, 0x329c150000000000 ) },
{ 0x1.20fcf75c41f9fp+88, 0x1.a487f5bf490ffp-931, INIT_U128( 0x000000000120fcf7, 0x5c41f9f000000000 ) },
{ 0x1.0937a468126f4p+88, 0x1.dd15685bba2adp-931, INIT_U128( 0x00000000010937a4, 0x68126f4000000000 ) },
{ 0x1.3a1b94d674372p+88, 0x1.0e98a7441d315p-931, INIT_U128( 0x00000000013a1b94, 0xd674372000000000 ) },
{ 0x1.b9b702f1736ep+89, 0x1.afdf8f8b5fbf2p-758, INIT_U128( 0x0000000003736e05, 0xe2e6dc0000000000 ) },
{ 0x1.f93973b7f272fp+89, 0x1.77696130eed2cp-758, INIT_U128( 0x0000000003f272e7, 0x6fe4e5e000000000 ) },
{ 0x1.85595b3b0ab2cp+89, 0x1.4c1c459298388p-758, INIT_U128( 0x00000000030ab2b6, 0x7615658000000000 ) },
{ 0x1.89e4ed0b13c9ep+89, 0x1.4c88ddd89911cp-758, INIT_U128( 0x000000000313c9da, 0x162793c000000000 ) },
{ 0x1.6d0dfe6ada1cp+90, 0x1.0873b16610e76p+20, INIT_U128( 0x0000000005b437f9, 0xab6870000010873b ) },
{ 0x1.403e37e4807c7p+90, 0x1.630feeecc61fep+20, INIT_U128( 0x000000000500f8df, 0x9201f1c0001630fe ) },
{ 0x1.1d3cdade3a79cp+90, 0x1.ecceb30bd99d7p+20, INIT_U128( 0x000000000474f36b, 0x78e9e700001ecceb ) },
{ 0x1.f50698adea0d3p+90, 0x1.4ed5f3749dabep+20, INIT_U128( 0x0000000007d41a62, 0xb7a834c00014ed5f ) },
{ 0x1.d869b87fb0d37p+91, 0x1.53d108a0a7a21p-525, INIT_U128( 0x000000000ec34dc3, 0xfd869b8000000000 ) },
{ 0x1.cd078fb39a0f2p+91, 0x1.228b56084516bp-525, INIT_U128( 0x000000000e683c7d, 0x9cd0790000000000 ) },
{ 0x1.c67dbd798cfb7p+91, 0x1.65e1ed28cbc3ep-525, INIT_U128( 0x000000000e33edeb, 0xcc67db8000000000 ) },
{ 0x1.c41a2ed388346p+91, 0x1.4799717a8f32ep-525, INIT_U128( 0x000000000e20d176, 0x9c41a30000000000 ) },
{ 0x1.db416739b682dp+92, 0x1.fea650affd4cap-706, INIT_U128( 0x000000001db41673, 0x9b682d0000000000 ) },
{ 0x1.872189f10e431p+92, 0x1.e1de445fc3bc8p-706, INIT_U128( 0x000000001872189f, 0x10e4310000000000 ) },
{ 0x1.d2ad0fd1a55a2p+92, 0x1.0a06ac7e140d6p-706, INIT_U128( 0x000000001d2ad0fd, 0x1a55a20000000000 ) },
{ 0x1.2535c3a84a6b8p+92, 0x1.65205312ca40ap-706, INIT_U128( 0x0000000012535c3a, 0x84a6b80000000000 ) },
{ 0x1.dd518ce9baa31p+93, 0x1.b123211362464p-663, INIT_U128( 0x000000003baa319d, 0x3754620000000000 ) },
{ 0x1.9a89da733513bp+93, 0x1.8c0a0b2b18142p-663, INIT_U128( 0x0000000033513b4e, 0x66a2760000000000 ) },
{ 0x1.01fc693203f8dp+93, 0x1.81040a6d02081p-663, INIT_U128( 0x00000000203f8d26, 0x407f1a0000000000 ) },
{ 0x1.1d9ae72e3b35dp+93, 0x1.fb816ce9f702dp-663, INIT_U128( 0x0000000023b35ce5, 0xc766ba0000000000 ) },
{ 0x1.1b8311c037062p+94, 0x1.3b413a6c76828p-946, INIT_U128( 0x0000000046e0c470, 0x0dc1880000000000 ) },
{ 0x1.e7c1239fcf825p+94, 0x1.e89cbe61d1398p-946, INIT_U128( 0x0000000079f048e7, 0xf3e0940000000000 ) },
{ 0x1.3ba2c92677459p+94, 0x1.4c19bb4098338p-946, INIT_U128( 0x000000004ee8b249, 0x9dd1640000000000 ) },
{ 0x1.e81787a3d02f1p+94, 0x1.21981a6a43304p-946, INIT_U128( 0x000000007a05e1e8, 0xf40bc40000000000 ) },
{ 0x1.e18ca9a3c3195p+95, 0x1.d2ce473ba59c9p-353, INIT_U128( 0x00000000f0c654d1, 0xe18ca80000000000 ) },
{ 0x1.ec1a5457d834ap+95, 0x1.673af5f4ce75ep-353, INIT_U128( 0x00000000f60d2a2b, 0xec1a500000000000 ) },
{ 0x1.3d4fcc727a9fap+95, 0x1.d577142daaee2p-353, INIT_U128( 0x000000009ea7e639, 0x3d4fd00000000000 ) },
{ 0x1.6b318358d663p+95, 0x1.d96b9445b2d72p-353, INIT_U128( 0x00000000b598c1ac, 0x6b31800000000000 ) },
{ 0x1.f8fedfa1f1fdcp+96, 0x1.6e54dd28dca9cp-828, INIT_U128( 0x00000001f8fedfa1, 0xf1fdc00000000000 ) },
{ 0x1.4b5ec85896bd9p+96, 0x1.e4251105c84a2p-828, INIT_U128( 0x000000014b5ec858, 0x96bd900000000000 ) },
{ 0x1.bc8f0397791ep+96, 0x1.b514998d6a293p-828, INIT_U128( 0x00000001bc8f0397, 0x791e000000000000 ) },
{ 0x1.056a2dfe0ad46p+96, 0x1.c98d1a15931a3p-828, INIT_U128( 0x00000001056a2dfe, 0x0ad4600000000000 ) },
{ 0x1.21192da842326p+97, 0x1.64dbdea4c9b7cp-314, INIT_U128( 0x0000000242325b50, 0x8464c00000000000 ) },
{ 0x1.95c269f12b84dp+97, 0x1.31bfb62e637f7p-314, INIT_U128( 0x000000032b84d3e2, 0x5709a00000000000 ) },
{ 0x1.f4a37e69e947p+97, 0x1.2c5cc8d658b99p-314, INIT_U128( 0x00000003e946fcd3, 0xd28e000000000000 ) },
{ 0x1.73c765e6e78ecp+97, 0x1.34b3a3f469674p-314, INIT_U128( 0x00000002e78ecbcd, 0xcf1d800000000000 ) },
{ 0x1.cafa773f95f4fp+98, 0x1.28d3338851a66p-207, INIT_U128( 0x000000072be9dcfe, 0x57d3c00000000000 ) },
{ 0x1.7b7b6aa4f6f6ep+98, 0x1.2c99252259324p-207, INIT_U128( 0x00000005ededaa93, 0xdbdb800000000000 ) },
{ 0x1.8c39a15918734p+98, 0x1.cdcd60b79b9acp-207, INIT_U128( 0x0000000630e68564, 0x61cd000000000000 ) },
{ 0x1.da220eb5b4442p+98, 0x1.cd0b52b19a16bp-207, INIT_U128( 0x0000000768883ad6, 0xd110800000000000 ) },
{ 0x1.0f34e6fa1e69dp+99, 0x1.596be5d4b2d7cp-575, INIT_U128( 0x0000000879a737d0, 0xf34e800000000000 ) },
{ 0x1.5318af1aa6316p+99, 0x1.b2d7a70f65af5p-575, INIT_U128( 0x0000000a98c578d5, 0x318b000000000000 ) },
{ 0x1.2f3f14005e7e2p+99, 0x1.bf1a11977e342p-575, INIT_U128( 0x0000000979f8a002, 0xf3f1000000000000 ) },
{ 0x1.c95da71792bb5p+99, 0x1.b673d5896ce7bp-575, INIT_U128( 0x0000000e4aed38bc, 0x95da800000000000 ) },
{ 0x1.fdead1dffbd5ap+100, 0x1.5a750c74b4ea2p-189, INIT_U128( 0x0000001fdead1dff, 0xbd5a000000000000 ) },
{ 0x1.fe8116bbfd023p+100, 0x1.c0314d4580629p-189, INIT_U128( 0x0000001fe8116bbf, 0xd023000000000000 ) },
{ 0x1.9177917922ef2p+100, 0x1.b5d94c0f6bb2ap-189, INIT_U128( 0x0000001917791792, 0x2ef2000000000000 ) },
{ 0x1.39ab1bf273564p+100, 0x1.4de96f889bd2ep-189, INIT_U128( 0x000000139ab1bf27, 0x3564000000000000 ) },
{ 0x1.52e21a8aa5c44p+101, 0x0.0000075bfbb25p-1022, INIT_U128( 0x0000002a5c435154, 0xb888000000000000 ) },
{ 0x1.c362c16186c58p+101, 0x0.00000417370ap-1022, INIT_U128( 0x000000386c582c30, 0xd8b0000000000000 ) },
{ 0x1.dcbb50a5b976ap+101, 0x0.000005dcb4b01p-1022, INIT_U128( 0x0000003b976a14b7, 0x2ed4000000000000 ) },
{ 0x1.fae77febf5cfp+101, 0x0.00000567e1492p-1022, INIT_U128( 0x0000003f5ceffd7e, 0xb9e0000000000000 ) },
{ 0x1.b94feaf3729fdp+102, 0x1.eb191b6bd6324p-32, INIT_U128( 0x0000006e53fabcdc, 0xa7f4000000000000 ) },
{ 0x1.ffcd483fff9a9p+102, 0x1.f6c951e5ed92ap-32, INIT_U128( 0x0000007ff3520fff, 0xe6a4000000000000 ) },
{ 0x1.f4a75991e94ebp+102, 0x1.5d81e52ebb03cp-32, INIT_U128( 0x0000007d29d6647a, 0x53ac000000000000 ) },
{ 0x1.d9014a81b202ap+102, 0x1.1d1a5c4c3a34cp-32, INIT_U128( 0x000000764052a06c, 0x80a8000000000000 ) },
{ 0x1.d33430cda6686p+103, 0x1.58855d10b10acp-383, INIT_U128( 0x000000e99a1866d3, 0x3430000000000000 ) },
{ 0x1.5e801048bd002p+103, 0x1.54a52a72a94a6p-383, INIT_U128( 0x000000af4008245e, 0x8010000000000000 ) },
{ 0x1.590a254ab2144p+103, 0x1.0307881c060f1p-383, INIT_U128( 0x000000ac8512a559, 0x0a20000000000000 ) },
{ 0x1.6dfaecf0dbf5ep+103, 0x1.54a4b130a9496p-383, INIT_U128( 0x000000b6fd76786d, 0xfaf0000000000000 ) },
{ 0x1.011eb1b0023d6p+104, 0x1.39df71da73beep-20, INIT_U128( 0x000001011eb1b002, 0x3d60000000000000 ) },
{ 0x1.5ee2142ebdc42p+104, 0x1.43553d9086aa8p-20, INIT_U128( 0x0000015ee2142ebd, 0xc420000000000000 ) },
{ 0x1.100502e4200ap+104, 0x1.534d9720a69b3p-20, INIT_U128( 0x000001100502e420, 0x0a00000000000000 ) },
{ 0x1.2aefc5ac55df8p+104, 0x1.f553d14beaa7ap-20, INIT_U128( 0x0000012aefc5ac55, 0xdf80000000000000 ) },
{ 0x1.d0559891a0ab3p+105, 0x1.87b2239d0f644p-316, INIT_U128( 0x000003a0ab312341, 0x5660000000000000 ) },
{ 0x1.0929084e12521p+105, 0x1.e345fe55c68cp-316, INIT_U128( 0x0000021252109c24, 0xa420000000000000 ) },
{ 0x1.70c26be4e184ep+105, 0x1.7a6011c6f4c02p-316, INIT_U128( 0x000002e184d7c9c3, 0x09c0000000000000 ) },
{ 0x1.8c345d471868cp+105, 0x1.b4a5d903694bbp-316, INIT_U128( 0x0000031868ba8e30, 0xd180000000000000 ) },
{ 0x1.66bf48cecd7e9p+106, 0x1.d926e3a9b24dcp-461, INIT_U128( 0x0000059afd233b35, 0xfa40000000000000 ) },
{ 0x1.caf9648595f2cp+106, 0x1.3edd8e587dbb2p-461, INIT_U128( 0x0000072be5921657, 0xcb00000000000000 ) },
{ 0x1.0ff9c5341ff38p+106, 0x1.5ecf4954bd9e9p-461, INIT_U128( 0x0000043fe714d07f, 0xce00000000000000 ) },
{ 0x1.010bbf3602178p+106, 0x1.90183dfb20308p-461, INIT_U128( 0x000004042efcd808, 0x5e00000000000000 ) },
{ 0x1.90f1198321e23p+107, 0x1.18ec849e31d9p-508, INIT_U128( 0x00000c8788cc190f, 0x1180000000000000 ) },
{ 0x1.88876447110ecp+107, 0x1.3dbc4a967b78ap-508, INIT_U128( 0x00000c443b223888, 0x7600000000000000 ) },
{ 0x1.e955d221d2abap+107, 0x1.1f1f0f983e3e2p-508, INIT_U128( 0x00000f4aae910e95, 0x5d00000000000000 ) },
{ 0x1.79931aacf3264p+107, 0x1.5c6d47c2b8da9p-508, INIT_U128( 0x00000bcc98d56799, 0x3200000000000000 ) },
{ 0x1.49a28e4c93452p+108, 0x1.0819b1c610336p-949, INIT_U128( 0x0000149a28e4c934, 0x5200000000000000 ) },
{ 0x1.b61387f56c271p+108, 0x1.fda021a7fb404p-949, INIT_U128( 0x00001b61387f56c2, 0x7100000000000000 ) },
{ 0x1.8364b71506c97p+108, 0x1.972f04852e5ep-949, INIT_U128( 0x000018364b71506c, 0x9700000000000000 ) },
{ 0x1.a902b10952056p+108, 0x1.aee9cfcf5dd3ap-949, INIT_U128( 0x00001a902b109520, 0x5600000000000000 ) },
{ 0x1.d96f1c29b2de4p+109, 0x1.8415bcdf082b8p-695, INIT_U128( 0x00003b2de385365b, 0xc800000000000000 ) },
{ 0x1.e8dfe3f9d1bfcp+109, 0x1.c31bb2ed86377p-695, INIT_U128( 0x00003d1bfc7f3a37, 0xf800000000000000 ) },
{ 0x1.3a0cc61474199p+109, 0x1.06f2795a0de4fp-695, INIT_U128( 0x0000274198c28e83, 0x3200000000000000 ) },
{ 0x1.1f3e5f4a3e7ccp+109, 0x1.d7cc8b85af992p-695, INIT_U128( 0x000023e7cbe947cf, 0x9800000000000000 ) },
{ 0x1.dc6af865b8d5fp+110, 0x1.b5d225136ba45p-22, INIT_U128( 0x0000771abe196e35, 0x7c00000000000000 ) },
{ 0x1.4ca9fcc69954p+110, 0x1.eaa024f7d5404p-22, INIT_U128( 0x0000532a7f31a655, 0x0000000000000000 ) },
{ 0x1.414c72988298ep+110, 0x1.a488753b4910fp-22, INIT_U128( 0x000050531ca620a6, 0x3800000000000000 ) },
{ 0x1.dc6b39dbb8d67p+110, 0x1.068d04580d1ap-22, INIT_U128( 0x0000771ace76ee35, 0x9c00000000000000 ) },
{ 0x1.74e50e90e9ca2p+111, 0x1.3f289f007e514p-487, INIT_U128( 0x0000ba72874874e5, 0x1000000000000000 ) },
{ 0x1.5f0a2632be145p+111, 0x1.f790c8d9ef219p-487, INIT_U128( 0x0000af8513195f0a, 0x2800000000000000 ) },
{ 0x1.d422bf03a8458p+111, 0x1.fbacd695f759bp-487, INIT_U128( 0x0000ea115f81d422, 0xc000000000000000 ) },
{ 0x1.d9b5cefdb36bap+111, 0x1.c968397b92d07p-487, INIT_U128( 0x0000ecdae77ed9b5, 0xd000000000000000 ) },
{ 0x1.f3e78001e7cfp+112, 0x1.4b4970649692ep-744, INIT_U128( 0x0001f3e78001e7cf, 0x0000000000000000 ) },
{ 0x1.17c200042f84p+112, 0x1.8d8e8a711b1d1p-744, INIT_U128( 0x000117c200042f84, 0x0000000000000000 ) },
{ 0x1.0fe4fde81fcap+112, 0x1.256616f84acc3p-744, INIT_U128( 0x00010fe4fde81fca, 0x0000000000000000 ) },
{ 0x1.f2773487e4ee6p+112, 0x1.075dd87a0ebbbp-744, INIT_U128( 0x0001f2773487e4ee, 0x6000000000000000 ) },
{ 0x1.7f2646f4fe4c9p+113, 0x1.bde0f7d57bc1fp-552, INIT_U128( 0x0002fe4c8de9fc99, 0x2000000000000000 ) },
{ 0x1.552a71c4aa54ep+113, 0x1.5f75cb84beebap-552, INIT_U128( 0x0002aa54e38954a9, 0xc000000000000000 ) },
{ 0x1.016211fe02c42p+113, 0x1.755a3ebeeab48p-552, INIT_U128( 0x000202c423fc0588, 0x4000000000000000 ) },
{ 0x1.2da4a1405b494p+113, 0x1.c7b5a5b78f6b5p-552, INIT_U128( 0x00025b494280b692, 0x8000000000000000 ) },
{ 0x1.454dcac88a9bap+114, 0x1.39e2f64073c5fp-541, INIT_U128( 0x000515372b222a6e, 0x8000000000000000 ) },
{ 0x1.f5769ad1eaed4p+114, 0x1.273e2b1a4e7c6p-541, INIT_U128( 0x0007d5da6b47abb5, 0x0000000000000000 ) },
{ 0x1.52bf04cca57ep+114, 0x1.2d92613e5b24cp-541, INIT_U128( 0x00054afc133295f8, 0x0000000000000000 ) },
{ 0x1.1b84a7fc37095p+114, 0x1.8b3360311666cp-541, INIT_U128( 0x00046e129ff0dc25, 0x4000000000000000 ) },
{ 0x1.82ef082b05de1p+115, 0x1.5205f44aa40bep-62, INIT_U128( 0x000c177841582ef0, 0x8000000000000000 ) },
{ 0x1.bafcbdf175f98p+115, 0x1.a9ea203153d44p-62, INIT_U128( 0x000dd7e5ef8bafcc, 0x0000000000000000 ) },
{ 0x1.64b56bd8c96aep+115, 0x1.42c3a3da85874p-62, INIT_U128( 0x000b25ab5ec64b57, 0x0000000000000000 ) },
{ 0x1.55c9b3b6ab936p+115, 0x1.48f9d11a91f3ap-62, INIT_U128( 0x000aae4d9db55c9b, 0x0000000000000000 ) },
{ 0x1.5321473ca6429p+116, 0x1.181db1c6303b6p-92, INIT_U128( 0x0015321473ca6429, 0x0000000000000000 ) },
{ 0x1.cdc20a3f9b841p+116, 0x1.50077ebca00fp-92, INIT_U128( 0x001cdc20a3f9b841, 0x0000000000000000 ) },
{ 0x1.92fee4f925fdcp+116, 0x1.028f8f16051f2p-92, INIT_U128( 0x00192fee4f925fdc, 0x0000000000000000 ) },
{ 0x1.1bab55e43756ap+116, 0x1.40855e9c810acp-92, INIT_U128( 0x0011bab55e43756a, 0x0000000000000000 ) },
{ 0x1.db43e365b687dp+117, 0x1.41baf8828375fp-732, INIT_U128( 0x003b687c6cb6d0fa, 0x0000000000000000 ) },
{ 0x1.a552a1674aa54p+117, 0x1.baa689f9754d1p-732, INIT_U128( 0x0034aa542ce954a8, 0x0000000000000000 ) },
{ 0x1.fe56ea4dfcadep+117, 0x1.5684197ead083p-732, INIT_U128( 0x003fcadd49bf95bc, 0x0000000000000000 ) },
{ 0x1.6c9b7a08d937p+117, 0x1.2337f65a466ffp-732, INIT_U128( 0x002d936f411b26e0, 0x0000000000000000 ) },
{ 0x1.076705de0ecep+118, 0x1.98bce7cb3179dp-844, INIT_U128( 0x0041d9c17783b380, 0x0000000000000000 ) },
{ 0x1.9b22f3533645ep+118, 0x1.74f31c32e9e64p-844, INIT_U128( 0x0066c8bcd4cd9178, 0x0000000000000000 ) },
{ 0x1.c1d136e583a27p+118, 0x1.767b76ceecf6fp-844, INIT_U128( 0x0070744db960e89c, 0x0000000000000000 ) },
{ 0x1.c885934b910b3p+118, 0x1.cd65a24d9acb4p-844, INIT_U128( 0x00722164d2e442cc, 0x0000000000000000 ) },
{ 0x1.fb2c8085f659p+119, 0x1.4485cbfc890bap-269, INIT_U128( 0x00fd964042fb2c80, 0x0000000000000000 ) },
{ 0x1.78eebbd0f1dd8p+119, 0x1.373c5ea66e78cp-269, INIT_U128( 0x00bc775de878eec0, 0x0000000000000000 ) },
{ 0x1.1cbf9dfc397f4p+119, 0x1.3a787bfa74f1p-269, INIT_U128( 0x008e5fcefe1cbfa0, 0x0000000000000000 ) },
{ 0x1.0b37d4fc166fap+119, 0x1.3ec2f1ca7d85ep-269, INIT_U128( 0x00859bea7e0b37d0, 0x0000000000000000 ) },
{ 0x1.f7d41d9befa83p+119, 0x1.737e360ee6fc7p+45, INIT_U128( 0x00fbea0ecdf7d418, 0x00002e6fc6c1dcdf ) },
{ 0x1.5f9adea4bf35cp+119, 0x1.f2a34d73e5469p+45, INIT_U128( 0x00afcd6f525f9ae0, 0x00003e5469ae7ca8 ) },
{ 0x1.1625a2842c4b4p+119, 0x1.dffa968fbff53p+45, INIT_U128( 0x008b12d1421625a0, 0x00003bff52d1f7fe ) },
{ 0x1.77b9ea5cef73ep+119, 0x1.03d8c57207b18p+45, INIT_U128( 0x00bbdcf52e77b9f0, 0x0000207b18ae40f6 ) },
{ 0x1.80c91d3d01924p+119, 0x1.dc2e84abb85dp+45, INIT_U128( 0x00c0648e9e80c920, 0x00003b85d095770b ) },
{ 0x1.a13e2abb427c5p+119, 0x1.be5baad37cb75p+45, INIT_U128( 0x00d09f155da13e28, 0x000037cb755a6f96 ) },
{ 0x1.3d0a39607a147p+119, 0x1.5d047beeba09p+45, INIT_U128( 0x009e851cb03d0a38, 0x00002ba08f7dd741 ) },
{ 0x1.e914f2edd229fp+119, 0x1.a87d6b5150faep+45, INIT_U128( 0x00f48a7976e914f8, 0x0000350fad6a2a1f ) },
{ 0x1.1bfba16037f74p+119, 0x1.f1667f23e2cdp+45, INIT_U128( 0x008dfdd0b01bfba0, 0x00003e2ccfe47c59 ) },
{ 0x1.e409cc97c8139p+119, 0x1.760ec180ec1d8p+45, INIT_U128( 0x00f204e64be409c8, 0x00002ec1d8301d83 ) },
{ 0x1.56095810ac12bp+119, 0x1.fd72c88bfae59p+45, INIT_U128( 0x00ab04ac08560958, 0x00003fae59117f5c ) },
{ 0x1.014b8dfe02972p+119, 0x1.5051ec7ca0a3ep+45, INIT_U128( 0x0080a5c6ff014b90, 0x00002a0a3d8f9414 ) },
{ 0x1.2c8071285900ep+119, 0x1.2df331a65be66p+45, INIT_U128( 0x00964038942c8070, 0x000025be6634cb7c ) },
{ 0x1.ec4edc7bd89dbp+119, 0x1.5689910cad132p+45, INIT_U128( 0x00f6276e3dec4ed8, 0x00002ad1322195a2 ) },
{ 0x1.acab22af59564p+120, 0x1.4302395486047p-789, INIT_U128( 0x01acab22af595640, 0x0000000000000000 ) },
{ 0x1.6d777264daeeep+120, 0x1.a94793a7528f2p-789, INIT_U128( 0x016d777264daeee0, 0x0000000000000000 ) },
{ 0x1.179807f22f301p+120, 0x1.f73f61cbee7ecp-789, INIT_U128( 0x01179807f22f3010, 0x0000000000000000 ) },
{ 0x1.2306ea1a460dep+120, 0x1.7f322c14fe646p-789, INIT_U128( 0x012306ea1a460de0, 0x0000000000000000 ) },
{ 0x1.4b89313897126p+121, 0x1.24f0cf5649e1ap-97, INIT_U128( 0x02971262712e24c0, 0x0000000000000000 ) },
{ 0x1.977d3ba32efa8p+121, 0x1.8d5ae3291ab5cp-97, INIT_U128( 0x032efa77465df500, 0x0000000000000000 ) },
{ 0x1.4951cf1a92a3ap+121, 0x1.ff3e4eaffe7cap-97, INIT_U128( 0x0292a39e35254740, 0x0000000000000000 ) },
{ 0x1.6487918ac90f2p+121, 0x1.8e5a3b671cb48p-97, INIT_U128( 0x02c90f2315921e40, 0x0000000000000000 ) },
{ 0x1.a71b395f4e367p+122, 0x1.4851ea7e90a3ep-824, INIT_U128( 0x069c6ce57d38d9c0, 0x0000000000000000 ) },
{ 0x1.58097738b012fp+122, 0x1.a4e92d4749d26p-824, INIT_U128( 0x056025dce2c04bc0, 0x0000000000000000 ) },
{ 0x1.431d2f4a863a6p+122, 0x1.ff84386fff087p-824, INIT_U128( 0x050c74bd2a18e980, 0x0000000000000000 ) },
{ 0x1.9f1393ad3e272p+122, 0x1.d7c0a6ddaf815p-824, INIT_U128( 0x067c4e4eb4f89c80, 0x0000000000000000 ) },
{ 0x1.8983ab7913076p+123, 0x1.fa01bdc9f4037p-825, INIT_U128( 0x0c4c1d5bc8983b00, 0x0000000000000000 ) },
{ 0x1.f3551e67e6aa4p+123, 0x1.029c51f00538ap-825, INIT_U128( 0x0f9aa8f33f355200, 0x0000000000000000 ) },
{ 0x1.a9da0d1d53b42p+123, 0x1.b5c718d36b8e3p-825, INIT_U128( 0x0d4ed068ea9da100, 0x0000000000000000 ) },
{ 0x1.95c79e2b2b8f4p+123, 0x1.384e4c32709cap-825, INIT_U128( 0x0cae3cf1595c7a00, 0x0000000000000000 ) },
{ 0x1.73af4650e75e9p+124, 0x1.ec4b7265d896fp-92, INIT_U128( 0x173af4650e75e900, 0x0000000000000000 ) },
{ 0x1.5e15a3a0bc2b4p+124, 0x1.2ff859825ff0bp-92, INIT_U128( 0x15e15a3a0bc2b400, 0x0000000000000000 ) },
{ 0x1.4dbe24a69b7c4p+124, 0x1.f5b685e5eb6d1p-92, INIT_U128( 0x14dbe24a69b7c400, 0x0000000000000000 ) },
{ 0x1.cd65ac439acb6p+124, 0x1.164d910a2c9b2p-92, INIT_U128( 0x1cd65ac439acb600, 0x0000000000000000 ) },
{ 0x1.f5bbadd5eb775p+125, 0x1.b16aeddb62d5ep-83, INIT_U128( 0x3eb775babd6eea00, 0x0000000000000000 ) },
{ 0x1.b66841396cd08p+125, 0x1.f9957d69f32afp-83, INIT_U128( 0x36cd08272d9a1000, 0x0000000000000000 ) },
{ 0x1.05be50760b7cap+125, 0x1.f9ebf8ddf3d7fp-83, INIT_U128( 0x20b7ca0ec16f9400, 0x0000000000000000 ) },
{ 0x1.51312262a2624p+125, 0x1.11c69084238d2p-83, INIT_U128( 0x2a26244c544c4800, 0x0000000000000000 ) },
{ 0x1.30eab12c61d56p+126, 0x1.f1e0e851e3c1dp-773, INIT_U128( 0x4c3aac4b18755800, 0x0000000000000000 ) },
{ 0x1.ac34bcf158698p+126, 0x1.a55b126f4ab62p-773, INIT_U128( 0x6b0d2f3c561a6000, 0x0000000000000000 ) },
{ 0x1.02246a040448ep+126, 0x1.61a83652c3507p-773, INIT_U128( 0x40891a8101123800, 0x0000000000000000 ) },
{ 0x1.ae881f955d104p+126, 0x1.c694aaa18d296p-773, INIT_U128( 0x6ba207e557441000, 0x0000000000000000 ) },
{ 0x1.08016b641002ep+127, 0x1.23a890d047512p-406, INIT_U128( 0x8400b5b208017000, 0x0000000000000000 ) },
{ 0x1.3d90e7327b21dp+127, 0x1.0aa664c0154ccp-406, INIT_U128( 0x9ec873993d90e800, 0x0000000000000000 ) },
{ 0x1.ff931617ff263p+127, 0x1.47d5e2a08fabcp-406, INIT_U128( 0xffc98b0bff931800, 0x0000000000000000 ) },
{ 0x1.f565d1dfeacbap+127, 0x1.827bc0c304f78p-406, INIT_U128( 0xfab2e8eff565d000, 0x0000000000000000 ) },
{ 0x1.fe1985fbfc33p+128, 0x1.a6e724cd4dce4p-1021, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.54709ed6a8e14p+128, 0x1.74a32d1ce9466p-1021, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.a8407dcf5081p+128, 0x1.ffb065f3ff60cp-1021, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.7a1cfcf2f43ap+130, 0x1.84bb5ea30976cp-548, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.6bddaae8d7bb6p+194, 0x1.de64c609bcc99p-754, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.5c6c29d4b8d85p+146, 0x1.0644f6d60c89fp-345, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.c6ce8bcf8d9d2p+158, 0x1.443b2e7088766p-26, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.747f6aa0e8feep+168, 0x1.fe663ae9fccc8p-143, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.26ee550a4ddcap+173, 0x1.951f708f2a3eep-45, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.3ecfe0ea7d9fcp+189, 0x1.9cb53593396a7p-619, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.9d394a313a729p+190, 0x1.9ecfff853dap-150, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.244a568a4894bp+241, 0x1.e23f42d7c47e9p-956, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.b564bb276ac98p+398, 0x1.7af8d1ccf5f1ap+215, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.ee06b389dc0d7p+468, 0x1.b54fa74f6a9f5p+322, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.ac0045bd58009p+588, 0x1.ba99775b7532fp-365, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.692078cad240fp+661, 0x1.bc4a88a978951p+356, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.be1e09dd7c3c1p+765, 0x1.428bc5dc85178p-848, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.5f5554c4beaaap+853, 0x1.a9e23bdd53c48p-807, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.748e96ace91d3p+993, 0x1.ab54ab4b56a96p-22, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ 0x1.0629e7380c53dp+1023, 0x1.c0b4b15581696p+323, INIT_U128( 0xffffffffffffffff, 0xffffffffffffffff ) },
{ INFINITY, 0x1.21bff4bc437fep-333, ((__uint128_t) 0xffffffffffffffff << 64) | 0xffffffffffffffff },
{ INFINITY, 0x1.47e9a0228fd34p-333, ((__uint128_t) 0xffffffffffffffff << 64) | 0xffffffffffffffff },
{ 0x1.b88939bd71127p+0, -0x1.58af6e36b15eep-53, INIT_U128( 0x0, 0x1 ) },
{ 0x1.f17b9de9e2f74p+0, -0x1.b03dc0f5607b8p-53, INIT_U128( 0x0, 0x1 ) },
{ 0x1.86c3f1ed0d87ep+0, -0x1.e41d5187c83aap-53, INIT_U128( 0x0, 0x1 ) },
{ 0x1.0180f91c0301fp+0, -0x1.f92c6b8bf258ep-53, INIT_U128( 0x0, 0x1 ) },
{ 0x1.8b3f17cd167e3p+0, -0x1.72dddf20e5bbcp-53, INIT_U128( 0x0, 0x1 ) },
{ 0x1.07f13dc20fe28p+1, -0x1.4af7122695ee2p-52, INIT_U128( 0x0, 0x2 ) },
{ 0x1.5296871aa52d1p+1, -0x1.0301d39e0603ap-52, INIT_U128( 0x0, 0x2 ) },
{ 0x1.c5390b7f8a722p+1, -0x1.ebbca5dfd7795p-52, INIT_U128( 0x0, 0x3 ) },
{ 0x1.446c141688d82p+1, -0x1.648f94aac91f2p-52, INIT_U128( 0x0, 0x2 ) },
{ 0x1.14cd55a0299aap+1, -0x1.4f479c509e8f4p-52, INIT_U128( 0x0, 0x2 ) },
{ 0x1.3364edd666c9ep+2, -0x1.723247eee4649p-51, INIT_U128( 0x0, 0x4 ) },
{ 0x1.6b5eb37ad6bd6p+2, -0x1.536fde56a6dfcp-51, INIT_U128( 0x0, 0x5 ) },
{ 0x1.c64dbd798c9b7p+2, -0x1.8e4392db1c872p-51, INIT_U128( 0x0, 0x7 ) },
{ 0x1.d93aa501b2754p+2, -0x1.9f5d97f33ebb3p-51, INIT_U128( 0x0, 0x7 ) },
{ 0x1.a25f6b9344beep+2, -0x1.8bd0d71f17a1bp-51, INIT_U128( 0x0, 0x6 ) },
{ 0x1.778d7cfeef1b0p+3, -0x1.8d1c08d11a381p-50, INIT_U128( 0x0, 0xb ) },
{ 0x1.f1ab9d7de3573p+3, -0x1.2aaf71b2555eep-50, INIT_U128( 0x0, 0xf ) },
{ 0x1.79f70e04f3ee2p+3, -0x1.391c62da7238cp-50, INIT_U128( 0x0, 0xb ) },
{ 0x1.ab4eaacb569d5p+3, -0x1.555629c6aaac5p-50, INIT_U128( 0x0, 0xd ) },
{ 0x1.a8c6081f518c1p+3, -0x1.2b722c7056e46p-50, INIT_U128( 0x0, 0xd ) },
{ 0x1.b9b5bf4b736b8p+4, -0x1.9ded29933bda5p-49, INIT_U128( 0x0, 0x1b ) },
{ 0x1.3d4ac1867a958p+4, -0x1.b426d34d684dap-49, INIT_U128( 0x0, 0x13 ) },
{ 0x1.3ff7aa6c7fef6p+4, -0x1.7cca4048f9948p-49, INIT_U128( 0x0, 0x13 ) },
{ 0x1.09e6491a13cc9p+4, -0x1.2c9d607e593acp-49, INIT_U128( 0x0, 0x10 ) },
{ 0x1.574cd232ae99ap+4, -0x1.655ffb9acac00p-49, INIT_U128( 0x0, 0x15 ) },
{ 0x1.9e7c5e773cf8cp+5, -0x1.a4151463482a2p-48, INIT_U128( 0x0, 0x33 ) },
{ 0x1.f96b3e2bf2d68p+5, -0x1.60e1bee6c1c38p-48, INIT_U128( 0x0, 0x3f ) },
{ 0x1.8c53eb5918a7ep+5, -0x1.6dc39116db872p-48, INIT_U128( 0x0, 0x31 ) },
{ 0x1.0bb0baaa17618p+5, -0x1.4e97ccbc9d2fap-48, INIT_U128( 0x0, 0x21 ) },
{ 0x1.02bea008057d4p+5, -0x1.97bb9f5f2f774p-48, INIT_U128( 0x0, 0x20 ) },
{ 0x1.1485dfa8290bcp+6, -0x1.6fe84d7cdfd0ap-47, INIT_U128( 0x0, 0x45 ) },
{ 0x1.9c85adfd390b6p+6, -0x1.6dba2a66db746p-47, INIT_U128( 0x0, 0x67 ) },
{ 0x1.d31a2603a6345p+6, -0x1.1c08e9103811dp-47, INIT_U128( 0x0, 0x74 ) },
{ 0x1.c01dfd75803bfp+6, -0x1.43b63c7c876c8p-47, INIT_U128( 0x0, 0x70 ) },
{ 0x1.a497fb6549300p+6, -0x1.1bd9f54637b3ep-47, INIT_U128( 0x0, 0x69 ) },
{ 0x1.899d865f133b1p+7, -0x1.6cff8dced9ff2p-46, INIT_U128( 0x0, 0xc4 ) },
{ 0x1.bb975a8d772ebp+7, -0x1.4fefa0549fdf4p-46, INIT_U128( 0x0, 0xdd ) },
{ 0x1.e7ab3fb5cf568p+7, -0x1.06ef668a0ddedp-46, INIT_U128( 0x0, 0xf3 ) },
{ 0x1.76d7b408edaf6p+7, -0x1.fb47b6f1f68f7p-46, INIT_U128( 0x0, 0xbb ) },
{ 0x1.6901e158d203cp+7, -0x1.349b577c6936bp-46, INIT_U128( 0x0, 0xb4 ) },
{ 0x1.50a4408ea1488p+8, -0x1.cc46429f988c9p-45, INIT_U128( 0x0, 0x150 ) },
{ 0x1.0ffc7f1a1ff90p+8, -0x1.69141998d2283p-45, INIT_U128( 0x0, 0x10f ) },
{ 0x1.84ee0ee109dc2p+8, -0x1.2605fb8e4c0c0p-45, INIT_U128( 0x0, 0x184 ) },
{ 0x1.9305895f260b1p+8, -0x1.5c75f2a0b8ebep-45, INIT_U128( 0x0, 0x193 ) },
{ 0x1.ac6592f758cb2p+8, -0x1.8223938704472p-45, INIT_U128( 0x0, 0x1ac ) },
{ 0x1.8912fa131225fp+9, -0x1.0dff23901bfe4p-44, INIT_U128( 0x0, 0x312 ) },
{ 0x1.0946da82128dcp+9, -0x1.aadf3a2d55be7p-44, INIT_U128( 0x0, 0x212 ) },
{ 0x1.df7a91abbef52p+9, -0x1.1a77f25a34efep-44, INIT_U128( 0x0, 0x3be ) },
{ 0x1.e6be34f9cd7c6p+9, -0x1.5c174f14b82eap-44, INIT_U128( 0x0, 0x3cd ) },
{ 0x1.c52b68af8a56dp+9, -0x1.0b2c89e416591p-44, INIT_U128( 0x0, 0x38a ) },
{ 0x1.3132857462650p+10, -0x1.90cf8fd5219f2p-43, INIT_U128( 0x0, 0x4c4 ) },
{ 0x1.ed458277da8b1p+10, -0x1.fc7ee319f8fddp-43, INIT_U128( 0x0, 0x7b5 ) },
{ 0x1.7ea276a0fd44fp+10, -0x1.1fc7d1443f8fap-43, INIT_U128( 0x0, 0x5fa ) },
{ 0x1.2dc6f4d65b8dep+10, -0x1.bdfdda277bfbbp-43, INIT_U128( 0x0, 0x4b7 ) },
{ 0x1.68dd1454d1ba2p+10, -0x1.1ae82ef435d06p-43, INIT_U128( 0x0, 0x5a3 ) },
{ 0x1.3560214e6ac04p+11, -0x1.57bb4e74af76ap-42, INIT_U128( 0x0, 0x9ab ) },
{ 0x1.b3d29d8b67a54p+11, -0x1.b957887b72af1p-42, INIT_U128( 0x0, 0xd9e ) },
{ 0x1.c484125f89082p+11, -0x1.be2838f77c507p-42, INIT_U128( 0x0, 0xe24 ) },
{ 0x1.4ef7c8cc9def9p+11, -0x1.1bbc8a9a37792p-42, INIT_U128( 0x0, 0xa77 ) },
{ 0x1.183b6db43076ep+11, -0x1.ccc3996b99873p-42, INIT_U128( 0x0, 0x8c1 ) },
{ 0x1.ec8b6ab1d916ep+12, -0x1.03a448d007489p-41, INIT_U128( 0x0, 0x1ec8 ) },
{ 0x1.c1a222f983445p+12, -0x1.a63373db4c66ep-41, INIT_U128( 0x0, 0x1c1a ) },
{ 0x1.c11ba2cf82375p+12, -0x1.fab6ba1ff56d8p-41, INIT_U128( 0x0, 0x1c11 ) },
{ 0x1.52720894a4e41p+12, -0x1.eb4d5589d69aap-41, INIT_U128( 0x0, 0x1527 ) },
{ 0x1.a4a4de054949cp+12, -0x1.257324c84ae64p-41, INIT_U128( 0x0, 0x1a4a ) },
{ 0x1.e39b5dc1c736cp+13, -0x1.425a2a2684b46p-40, INIT_U128( 0x0, 0x3c73 ) },
{ 0x1.5e16b4c2bc2d6p+13, -0x1.18ce2ee2319c6p-40, INIT_U128( 0x0, 0x2bc2 ) },
{ 0x1.e591c84fcb239p+13, -0x1.44b8d2868971ap-40, INIT_U128( 0x0, 0x3cb2 ) },
{ 0x1.485d1b5890ba4p+13, -0x1.abc35bd75786cp-40, INIT_U128( 0x0, 0x290b ) },
{ 0x1.51f6cfb2a3edap+13, -0x1.3dcfc1707b9f8p-40, INIT_U128( 0x0, 0x2a3e ) },
{ 0x1.38867b90710d0p+14, -0x1.a75552f14eaaap-39, INIT_U128( 0x0, 0x4e21 ) },
{ 0x1.92a2a87b25455p+14, -0x1.1c28510c3850ap-39, INIT_U128( 0x0, 0x64a8 ) },
{ 0x1.419b75d68336ep+14, -0x1.107fd6a620ffbp-39, INIT_U128( 0x0, 0x5066 ) },
{ 0x1.52da00cea5b40p+14, -0x1.ff4fff1ffea00p-39, INIT_U128( 0x0, 0x54b6 ) },
{ 0x1.181e2e02303c6p+14, -0x1.c69a6bf98d34ep-39, INIT_U128( 0x0, 0x4607 ) },
{ 0x1.0b533e8016a68p+15, -0x1.3472ded668e5cp-38, INIT_U128( 0x0, 0x85a9 ) },
{ 0x1.e0363aafc06c8p+15, -0x1.bc3cbbe178798p-38, INIT_U128( 0x0, 0xf01b ) },
{ 0x1.fa0c7d53f418fp+15, -0x1.922e0dd1245c2p-38, INIT_U128( 0x0, 0xfd06 ) },
{ 0x1.398360c27306cp+15, -0x1.4ecdb3889d9b6p-38, INIT_U128( 0x0, 0x9cc1 ) },
{ 0x1.6af60494d5ec0p+15, -0x1.4ec8a7569d915p-38, INIT_U128( 0x0, 0xb57b ) },
{ 0x1.5f487dfebe910p+16, -0x1.a3de06a747bc1p-37, INIT_U128( 0x0, 0x15f48 ) },
{ 0x1.a32e05c7465c1p+16, -0x1.2992482a53249p-37, INIT_U128( 0x0, 0x1a32e ) },
{ 0x1.f02cb423e0596p+16, -0x1.8a560c6914ac2p-37, INIT_U128( 0x0, 0x1f02c ) },
{ 0x1.bec8eb417d91ep+16, -0x1.88c953751192ap-37, INIT_U128( 0x0, 0x1bec8 ) },
{ 0x1.45060f568a0c2p+16, -0x1.acdfe4af59bfcp-37, INIT_U128( 0x0, 0x14506 ) },
{ 0x1.3f0df2807e1bep+17, -0x1.166bad3a2cd76p-36, INIT_U128( 0x0, 0x27e1b ) },
{ 0x1.653960c2ca72cp+17, -0x1.2f31029e5e620p-36, INIT_U128( 0x0, 0x2ca72 ) },
{ 0x1.7df9a9f6fbf35p+17, -0x1.4824ec449049ep-36, INIT_U128( 0x0, 0x2fbf3 ) },
{ 0x1.ec02f2edd805fp+17, -0x1.4e892dca9d126p-36, INIT_U128( 0x0, 0x3d805 ) },
{ 0x1.781b75f6f036ep+17, -0x1.f277db23e4efcp-36, INIT_U128( 0x0, 0x2f036 ) },
{ 0x1.7ccde78cf99bdp+18, -0x1.0379569c06f2bp-35, INIT_U128( 0x0, 0x5f337 ) },
{ 0x1.8c42aa1318855p+18, -0x1.b2f8693f65f0dp-35, INIT_U128( 0x0, 0x6310a ) },
{ 0x1.5fd84deebfb0ap+18, -0x1.abc2291757845p-35, INIT_U128( 0x0, 0x57f61 ) },
{ 0x1.c22dd651845bbp+18, -0x1.8200cba50401ap-35, INIT_U128( 0x0, 0x708b7 ) },
{ 0x1.b131ce456263ap+18, -0x1.5c2ef038b85dep-35, INIT_U128( 0x0, 0x6c4c7 ) },
{ 0x1.a453dc7f48a7cp+19, -0x1.74577c36e8af0p-34, INIT_U128( 0x0, 0xd229e ) },
{ 0x1.c2e0aa0385c15p+19, -0x1.9bd246f537a49p-34, INIT_U128( 0x0, 0xe1705 ) },
{ 0x1.8e4a22191c944p+19, -0x1.6a04f49ed409ep-34, INIT_U128( 0x0, 0xc7251 ) },
{ 0x1.6d7e4b3cdafcap+19, -0x1.070c66d40e18dp-34, INIT_U128( 0x0, 0xb6bf2 ) },
{ 0x1.ba04d0157409ap+19, -0x1.2144d5384289ap-34, INIT_U128( 0x0, 0xdd026 ) },
{ 0x1.cd06fe519a0e0p+20, -0x1.db64f4cfb6c9ep-33, INIT_U128( 0x0, 0x1cd06f ) },
{ 0x1.5d65c074bacb8p+20, -0x1.d03af229a075ep-33, INIT_U128( 0x0, 0x15d65c ) },
{ 0x1.2c69e26258d3cp+20, -0x1.ae32a8295c655p-33, INIT_U128( 0x0, 0x12c69e ) },
{ 0x1.228a245e45144p+20, -0x1.4a30a72894615p-33, INIT_U128( 0x0, 0x1228a2 ) },
{ 0x1.e602ee1fcc05ep+20, -0x1.809c56710138bp-33, INIT_U128( 0x0, 0x1e602e ) },
{ 0x1.eaa14b11d542ap+21, -0x1.c3ab387187567p-32, INIT_U128( 0x0, 0x3d5429 ) },
{ 0x1.cab79f47956f4p+21, -0x1.c613f6598c27fp-32, INIT_U128( 0x0, 0x3956f3 ) },
{ 0x1.e758cb93ceb1ap+21, -0x1.1cea3a5a39d48p-32, INIT_U128( 0x0, 0x3ceb19 ) },
{ 0x1.f84f2f2bf09e6p+21, -0x1.575cebd2aeb9ep-32, INIT_U128( 0x0, 0x3f09e5 ) },
{ 0x1.2797ddfc4f2fcp+21, -0x1.fa30aa3ff4616p-32, INIT_U128( 0x0, 0x24f2fb ) },
{ 0x1.a863526950c6ap+22, -0x1.a20f8553441f1p-31, INIT_U128( 0x0, 0x6a18d4 ) },
{ 0x1.ec402c7bd8805p+22, -0x1.85d40d930ba82p-31, INIT_U128( 0x0, 0x7b100b ) },
{ 0x1.067064020ce0cp+22, -0x1.d0bf3389a17e6p-31, INIT_U128( 0x0, 0x419c19 ) },
{ 0x1.946a6bfb28d4ep+22, -0x1.c5f544b58bea8p-31, INIT_U128( 0x0, 0x651a9a ) },
{ 0x1.8c093b0d18128p+22, -0x1.9b11d1033623ap-31, INIT_U128( 0x0, 0x63024e ) },
{ 0x1.b7fc0b5f6ff82p+23, -0x1.827807fd04f01p-30, INIT_U128( 0x0, 0xdbfe05 ) },
{ 0x1.d9d4f3d1b3a9ep+23, -0x1.6b566f0ad6acep-30, INIT_U128( 0x0, 0xecea79 ) },
{ 0x1.6587194acb0e3p+23, -0x1.6a4ca886d4995p-30, INIT_U128( 0x0, 0xb2c38c ) },
{ 0x1.0c5c2dd818b86p+23, -0x1.7a2e1170f45c2p-30, INIT_U128( 0x0, 0x862e16 ) },
{ 0x1.00021f0400044p+23, -0x1.893027a912605p-30, INIT_U128( 0x0, 0x80010f ) },
{ 0x1.59ef5b32b3decp+24, -0x1.116f9fc422df4p-29, INIT_U128( 0x0, 0x159ef5b ) },
{ 0x1.d764e479aec9cp+24, -0x1.40b57780816afp-29, INIT_U128( 0x0, 0x1d764e4 ) },
{ 0x1.dbc74885b78e9p+24, -0x1.315a4d0c62b4ap-29, INIT_U128( 0x0, 0x1dbc748 ) },
{ 0x1.b3d2550b67a4bp+24, -0x1.fe91f6adfd23fp-29, INIT_U128( 0x0, 0x1b3d255 ) },
{ 0x1.69e865b8d3d0cp+24, -0x1.4a0eb898941d7p-29, INIT_U128( 0x0, 0x169e865 ) },
{ 0x1.b45b612168b6cp+25, -0x1.e482acdbc9055p-28, INIT_U128( 0x0, 0x368b6c2 ) },
{ 0x1.5eb0be4cbd618p+25, -0x1.b631cd396c63ap-28, INIT_U128( 0x0, 0x2bd617c ) },
{ 0x1.3f61f4e27ec3ep+25, -0x1.84335e410866cp-28, INIT_U128( 0x0, 0x27ec3e9 ) },
{ 0x1.95a2fe072b460p+25, -0x1.5ca99278b9532p-28, INIT_U128( 0x0, 0x32b45fc ) },
{ 0x1.9d5f09fb3abe1p+25, -0x1.d526e9b3aa4ddp-28, INIT_U128( 0x0, 0x33abe13 ) },
{ 0x1.068136c00d027p+26, -0x1.a74628314e8c5p-27, INIT_U128( 0x0, 0x41a04db ) },
{ 0x1.a5d81edf4bb04p+26, -0x1.50f834d4a1f06p-27, INIT_U128( 0x0, 0x697607b ) },
{ 0x1.9b06ed6f360dep+26, -0x1.d70eef59ae1dep-27, INIT_U128( 0x0, 0x66c1bb5 ) },
{ 0x1.bb919c3577234p+26, -0x1.bc89ee5b7913ep-27, INIT_U128( 0x0, 0x6ee4670 ) },
{ 0x1.72bbbb92e5778p+26, -0x1.c96dc6dd92db9p-27, INIT_U128( 0x0, 0x5caeeee ) },
{ 0x1.4da1251e9b424p+27, -0x1.de1a9831bc353p-26, INIT_U128( 0x0, 0xa6d0928 ) },
{ 0x1.3ac42aaa75886p+27, -0x1.d31a17d1a6343p-26, INIT_U128( 0x0, 0x9d62155 ) },
{ 0x1.a841018550820p+27, -0x1.20c207ae41841p-26, INIT_U128( 0x0, 0xd42080c ) },
{ 0x1.c8082fe190106p+27, -0x1.5e332d90bc666p-26, INIT_U128( 0x0, 0xe40417f ) },
{ 0x1.af2b62675e56cp+27, -0x1.b11098c162213p-26, INIT_U128( 0x0, 0xd795b13 ) },
{ 0x1.881f8819103f1p+28, -0x1.5cd0d6fab9a1bp-25, INIT_U128( 0x0, 0x1881f881 ) },
{ 0x1.195ac55632b58p+28, -0x1.a9ae7bf3535d0p-25, INIT_U128( 0x0, 0x1195ac55 ) },
{ 0x1.731c42d0e6388p+28, -0x1.d6e8b6a7add17p-25, INIT_U128( 0x0, 0x1731c42d ) },
{ 0x1.b5034ed96a06ap+28, -0x1.89a331ef13466p-25, INIT_U128( 0x0, 0x1b5034ed ) },
{ 0x1.5cbd49beb97a9p+28, -0x1.f44d90bde89b2p-25, INIT_U128( 0x0, 0x15cbd49b ) },
{ 0x1.150f986c2a1f3p+29, -0x1.1934355632686p-24, INIT_U128( 0x0, 0x22a1f30d ) },
{ 0x1.776762e8eececp+29, -0x1.1cd647a039ac9p-24, INIT_U128( 0x0, 0x2eecec5d ) },
{ 0x1.cde6e0619bcdcp+29, -0x1.c898ea6d9131dp-24, INIT_U128( 0x0, 0x39bcdc0c ) },
{ 0x1.2569c1684ad38p+29, -0x1.0a59b38e14b36p-24, INIT_U128( 0x0, 0x24ad382d ) },
{ 0x1.b4082f8368106p+29, -0x1.f7ab0b9def562p-24, INIT_U128( 0x0, 0x368105f0 ) },
{ 0x1.ce93c2459d278p+30, -0x1.090f390c121e7p-23, INIT_U128( 0x0, 0x73a4f091 ) },
{ 0x1.92b26afb2564dp+30, -0x1.8be3655917c6dp-23, INIT_U128( 0x0, 0x64ac9abe ) },
{ 0x1.8030f6170061fp+30, -0x1.3b4938d276927p-23, INIT_U128( 0x0, 0x600c3d85 ) },
{ 0x1.547d6e2aa8faep+30, -0x1.a82e838d505d0p-23, INIT_U128( 0x0, 0x551f5b8a ) },
{ 0x1.c504cb2d8a09ap+30, -0x1.bd506de37aa0ep-23, INIT_U128( 0x0, 0x714132cb ) },
{ 0x1.85e958510bd2bp+31, -0x1.633cab8ac6796p-22, INIT_U128( 0x0, 0xc2f4ac28 ) },
{ 0x1.6d965f18db2ccp+31, -0x1.82a9a0d705534p-22, INIT_U128( 0x0, 0xb6cb2f8c ) },
{ 0x1.7a54ac72f4a96p+31, -0x1.b4f2a82569e55p-22, INIT_U128( 0x0, 0xbd2a5639 ) },
{ 0x1.be01e1317c03cp+31, -0x1.30a4db346149cp-22, INIT_U128( 0x0, 0xdf00f098 ) },
{ 0x1.bc88408f79108p+31, -0x1.3fde0a7c7fbc2p-22, INIT_U128( 0x0, 0xde442047 ) },
{ 0x1.7b27434ef64e8p+32, -0x1.349200ea69240p-21, INIT_U128( 0x0, 0x17b27434e ) },
{ 0x1.dcc08477b9810p+32, -0x1.44521bfc88a44p-21, INIT_U128( 0x0, 0x1dcc08477 ) },
{ 0x1.01a289e003451p+32, -0x1.8e0118f31c023p-21, INIT_U128( 0x0, 0x101a289e0 ) },
{ 0x1.f13dc47de27b8p+32, -0x1.1da30f403b462p-21, INIT_U128( 0x0, 0x1f13dc47d ) },
{ 0x1.a04cb01940996p+32, -0x1.1cf69c6439ed4p-21, INIT_U128( 0x0, 0x1a04cb019 ) },
{ 0x1.d1e9448ba3d28p+33, -0x1.c935b325926b7p-20, INIT_U128( 0x0, 0x3a3d28917 ) },
{ 0x1.f9da8e5bf3b52p+33, -0x1.30094b1c6012ap-20, INIT_U128( 0x0, 0x3f3b51cb7 ) },
{ 0x1.6fe7559adfceap+33, -0x1.20c372d44186ep-20, INIT_U128( 0x0, 0x2dfceab35 ) },
{ 0x1.555573beaaaaep+33, -0x1.c515cab98a2bap-20, INIT_U128( 0x0, 0x2aaaae77d ) },
{ 0x1.0967e6b612cfdp+33, -0x1.563cccf4ac79ap-20, INIT_U128( 0x0, 0x212cfcd6c ) },
{ 0x1.e43de5e7c87bdp+34, -0x1.088c431211188p-19, INIT_U128( 0x0, 0x790f7979f ) },
{ 0x1.262f52544c5eap+34, -0x1.c5754eb58aeaap-19, INIT_U128( 0x0, 0x498bd4951 ) },
{ 0x1.e26beb1bc4d7ep+34, -0x1.b4c2803369850p-19, INIT_U128( 0x0, 0x789afac6f ) },
{ 0x1.7df83358fbf06p+34, -0x1.44a72a40894e6p-19, INIT_U128( 0x0, 0x5f7e0cd63 ) },
{ 0x1.74b0755ee960ep+34, -0x1.24dfc74e49bf9p-19, INIT_U128( 0x0, 0x5d2c1d57b ) },
{ 0x1.45a33a228b468p+35, -0x1.2151962c42a33p-18, INIT_U128( 0x0, 0xa2d19d114 ) },
{ 0x1.e66760e7cccecp+35, -0x1.8a59ae4b14b36p-18, INIT_U128( 0x0, 0xf333b073e ) },
{ 0x1.e0967b41c12d0p+35, -0x1.a0e9edf941d3ep-18, INIT_U128( 0x0, 0xf04b3da0e ) },
{ 0x1.a976310d52ec6p+35, -0x1.8d700b011ae02p-18, INIT_U128( 0x0, 0xd4bb1886a ) },
{ 0x1.52e559b6a5cabp+35, -0x1.ce9fd98d9d3fbp-18, INIT_U128( 0x0, 0xa972acdb5 ) },
{ 0x1.836259bf06c4bp+36, -0x1.773ee4ceee7dcp-17, INIT_U128( 0x0, 0x1836259bf0 ) },
{ 0x1.bbe60f1177cc2p+36, -0x1.2de6c9dc5bcd9p-17, INIT_U128( 0x0, 0x1bbe60f117 ) },
{ 0x1.52c6912ca58d2p+36, -0x1.a762df6b4ec5cp-17, INIT_U128( 0x0, 0x152c6912ca ) },
{ 0x1.c8b475999168fp+36, -0x1.e4d4b351c9a97p-17, INIT_U128( 0x0, 0x1c8b475999 ) },
{ 0x1.6f2e619cde5ccp+36, -0x1.00711f5000e24p-17, INIT_U128( 0x0, 0x16f2e619cd ) },
{ 0x1.a15b0d4b42b62p+37, -0x1.99c4d6573389bp-16, INIT_U128( 0x0, 0x342b61a968 ) },
{ 0x1.2734e1564e69cp+37, -0x1.aee949975dd29p-16, INIT_U128( 0x0, 0x24e69c2ac9 ) },
{ 0x1.7d892322fb124p+37, -0x1.b098478f61309p-16, INIT_U128( 0x0, 0x2fb124645f ) },
{ 0x1.27d72c5e4fae6p+37, -0x1.9911f45b3223ep-16, INIT_U128( 0x0, 0x24fae58bc9 ) },
{ 0x1.c6f8be398df18p+37, -0x1.7b7358c8f6e6bp-16, INIT_U128( 0x0, 0x38df17c731 ) },
{ 0x1.22d6383445ac7p+38, -0x1.29820f4c53042p-15, INIT_U128( 0x0, 0x48b58e0d11 ) },
{ 0x1.0e56c29e1cad8p+38, -0x1.e58b93edcb172p-15, INIT_U128( 0x0, 0x4395b0a787 ) },
{ 0x1.e5fcb33dcbf97p+38, -0x1.3991a26e73234p-15, INIT_U128( 0x0, 0x797f2ccf72 ) },
{ 0x1.d35678c5a6acfp+38, -0x1.e1e33f23c3c68p-15, INIT_U128( 0x0, 0x74d59e3169 ) },
{ 0x1.90cc88bb21991p+38, -0x1.ec9fc09fd93f8p-15, INIT_U128( 0x0, 0x6433222ec8 ) },
{ 0x1.9d38082f3a701p+39, -0x1.2411150e48222p-14, INIT_U128( 0x0, 0xce9c04179d ) },
{ 0x1.bd23096b7a461p+39, -0x1.118732be230e6p-14, INIT_U128( 0x0, 0xde9184b5bd ) },
{ 0x1.8cfa8b8919f52p+39, -0x1.bd202fdf7a406p-14, INIT_U128( 0x0, 0xc67d45c48c ) },
{ 0x1.e6a23f2bcd448p+39, -0x1.500431c2a0086p-14, INIT_U128( 0x0, 0xf3511f95e6 ) },
{ 0x1.358fc5b06b1f8p+39, -0x1.3601f5da6c03ep-14, INIT_U128( 0x0, 0x9ac7e2d835 ) },
{ 0x1.6f93984adf273p+40, -0x1.3fc827227f905p-13, INIT_U128( 0x0, 0x16f93984adf ) },
{ 0x1.21ab66464356dp+40, -0x1.750d3858ea1a7p-13, INIT_U128( 0x0, 0x121ab664643 ) },
{ 0x1.61acf8f8c359fp+40, -0x1.b21b005b64360p-13, INIT_U128( 0x0, 0x161acf8f8c3 ) },
{ 0x1.d62c156bac582p+40, -0x1.d00ec3a5a01d8p-13, INIT_U128( 0x0, 0x1d62c156bac ) },
{ 0x1.e195f665c32bfp+40, -0x1.6cc0a5b2d9814p-13, INIT_U128( 0x0, 0x1e195f665c3 ) },
{ 0x1.29e0d59253c1ap+41, -0x1.b545fd876a8c0p-12, INIT_U128( 0x0, 0x253c1ab24a7 ) },
{ 0x1.054a2f4a0a946p+41, -0x1.b9bcb73b73797p-12, INIT_U128( 0x0, 0x20a945e9415 ) },
{ 0x1.efbead17df7d5p+41, -0x1.77fa3c90eff48p-12, INIT_U128( 0x0, 0x3df7d5a2fbe ) },
{ 0x1.b7c263b56f84cp+41, -0x1.f94aa763f2955p-12, INIT_U128( 0x0, 0x36f84c76adf ) },
{ 0x1.6e57dfbcdcafcp+41, -0x1.dfb1c1a1bf638p-12, INIT_U128( 0x0, 0x2dcafbf79b9 ) },
{ 0x1.91ccc1fd23998p+42, -0x1.4cb353e29966ap-11, INIT_U128( 0x0, 0x6473307f48e ) },
{ 0x1.1cc2178639843p+42, -0x1.92de0f9325bc2p-11, INIT_U128( 0x0, 0x473085e18e6 ) },
{ 0x1.ff9eb547ff3d6p+42, -0x1.12b2dcb82565cp-11, INIT_U128( 0x0, 0x7fe7ad51ffc ) },
{ 0x1.c7f8da418ff1bp+42, -0x1.8b49d5891693bp-11, INIT_U128( 0x0, 0x71fe369063f ) },
{ 0x1.45068cc48a0d2p+42, -0x1.3f7eb6227efd7p-11, INIT_U128( 0x0, 0x5141a331228 ) },
{ 0x1.b778f2b56ef1ep+43, -0x1.5e836c72bd06ep-10, INIT_U128( 0x0, 0xdbbc795ab77 ) },
{ 0x1.57ce13d4af9c2p+43, -0x1.3653d5b06ca7ap-10, INIT_U128( 0x0, 0xabe709ea57c ) },
{ 0x1.160597522c0b3p+43, -0x1.d48ed96ba91dbp-10, INIT_U128( 0x0, 0x8b02cba9160 ) },
{ 0x1.21422d4c42846p+43, -0x1.6514a626ca295p-10, INIT_U128( 0x0, 0x90a116a6214 ) },
{ 0x1.f7f2b5bbefe56p+43, -0x1.0b1326f816265p-10, INIT_U128( 0x0, 0xfbf95addf7f ) },
{ 0x1.1dc603b23b8c0p+44, -0x1.a944e29f5289cp-9, INIT_U128( 0x0, 0x11dc603b23b8 ) },
{ 0x1.348eb828691d7p+44, -0x1.5b139576b6272p-9, INIT_U128( 0x0, 0x1348eb828691 ) },
{ 0x1.9a924b9b3524ap+44, -0x1.bb1ee607763ddp-9, INIT_U128( 0x0, 0x19a924b9b352 ) },
{ 0x1.19a2527a3344ap+44, -0x1.4271fe0684e40p-9, INIT_U128( 0x0, 0x119a2527a334 ) },
{ 0x1.78c5d3b8f18bap+44, -0x1.09efb52613df6p-9, INIT_U128( 0x0, 0x178c5d3b8f18 ) },
{ 0x1.de7e8e93bcfd2p+45, -0x1.cdc1262d9b825p-8, INIT_U128( 0x0, 0x3bcfd1d2779f ) },
{ 0x1.32d5cc5265abap+45, -0x1.4668f5168cd1ep-8, INIT_U128( 0x0, 0x265ab98a4cb5 ) },
{ 0x1.517c1c0ea2f84p+45, -0x1.7a215378f442ap-8, INIT_U128( 0x0, 0x2a2f8381d45f ) },
{ 0x1.2366361846cc7p+45, -0x1.436ae2ee86d5cp-8, INIT_U128( 0x0, 0x246cc6c308d9 ) },
{ 0x1.9e7e78673cfcfp+45, -0x1.0802e5361005cp-8, INIT_U128( 0x0, 0x33cfcf0ce79f ) },
{ 0x1.c321cb3f8643ap+46, -0x1.7fe4b1f8ffc96p-7, INIT_U128( 0x0, 0x70c872cfe190 ) },
{ 0x1.c256b00184ad6p+46, -0x1.4c62971298c53p-7, INIT_U128( 0x0, 0x7095ac00612b ) },
{ 0x1.56524c3aaca4ap+46, -0x1.85caddef0b95cp-7, INIT_U128( 0x0, 0x5594930eab29 ) },
{ 0x1.538c041aa7180p+46, -0x1.0085b322010b6p-7, INIT_U128( 0x0, 0x54e30106a9c5 ) },
{ 0x1.46eea83a8ddd5p+46, -0x1.72569766e4ad3p-7, INIT_U128( 0x0, 0x51bbaa0ea377 ) },
{ 0x1.ec77eae1d8efep+47, -0x1.d3843f91a7088p-6, INIT_U128( 0x0, 0xf63bf570ec77 ) },
{ 0x1.16ef22802dde4p+47, -0x1.5cade1c4b95bcp-6, INIT_U128( 0x0, 0x8b77914016ef ) },
{ 0x1.64b0c6fac9619p+47, -0x1.395d426a72ba8p-6, INIT_U128( 0x0, 0xb258637d64b0 ) },
{ 0x1.b941f4657283ep+47, -0x1.799a6142f334cp-6, INIT_U128( 0x0, 0xdca0fa32b941 ) },
{ 0x1.c5fcf8578bf9fp+47, -0x1.52cb33fea5966p-6, INIT_U128( 0x0, 0xe2fe7c2bc5fc ) },
{ 0x1.d89611efb12c2p+48, -0x1.809d16e9013a3p-5, INIT_U128( 0x0, 0x1d89611efb12c ) },
{ 0x1.8122ca0d02459p+48, -0x1.85b1b6110b637p-5, INIT_U128( 0x0, 0x18122ca0d0245 ) },
{ 0x1.f8084d79f0109p+48, -0x1.63ae38f8c75c7p-5, INIT_U128( 0x0, 0x1f8084d79f010 ) },
{ 0x1.3732788a6e64fp+48, -0x1.68291aa0d0524p-5, INIT_U128( 0x0, 0x13732788a6e64 ) },
{ 0x1.c4d6fc6789ae0p+48, -0x1.5c31688eb862dp-5, INIT_U128( 0x0, 0x1c4d6fc6789ad ) },
{ 0x1.958eaafb2b1d5p+49, -0x1.f20d94e1e41b2p-4, INIT_U128( 0x0, 0x32b1d55f6563a ) },
{ 0x1.6ba7f624d74ffp+49, -0x1.55f10592abe20p-4, INIT_U128( 0x0, 0x2d74fec49ae9f ) },
{ 0x1.a8bc399351787p+49, -0x1.811e6bed023cep-4, INIT_U128( 0x0, 0x351787326a2f0 ) },
{ 0x1.01bb82d603770p+49, -0x1.9f1452713e28ap-4, INIT_U128( 0x0, 0x2037705ac06ed ) },
{ 0x1.24c60882498c1p+49, -0x1.5ff84806bff09p-4, INIT_U128( 0x0, 0x2498c11049318 ) },
{ 0x1.c3a68101874d0p+50, -0x1.ab6bf5c156d7fp-3, INIT_U128( 0x0, 0x70e9a04061d33 ) },
{ 0x1.13951062272a2p+50, -0x1.f5ace7a9eb59dp-3, INIT_U128( 0x0, 0x44e5441889ca8 ) },
{ 0x1.51de5038a3bcap+50, -0x1.4c89ca8c9913ap-3, INIT_U128( 0x0, 0x5477940e28ef2 ) },
{ 0x1.3e975f6e7d2ecp+50, -0x1.534e25caa69c4p-3, INIT_U128( 0x0, 0x4fa5d7db9f4ba ) },
{ 0x1.a93f2b5f527e6p+50, -0x1.00a6de60014dcp-3, INIT_U128( 0x0, 0x6a4fcad7d49f9 ) },
{ 0x1.81c54a4f038a9p+51, -0x1.29d8771e53b0fp-2, INIT_U128( 0x0, 0xc0e2a52781c54 ) },
{ 0x1.c8ecc99191d99p+51, -0x1.80c2120101842p-2, INIT_U128( 0x0, 0xe47664c8c8ecc ) },
{ 0x1.e0ba5a09c174bp+51, -0x1.514ed938a29dbp-2, INIT_U128( 0x0, 0xf05d2d04e0ba5 ) },
{ 0x1.fcbacefbf975ap+51, -0x1.0bcfb664179f7p-2, INIT_U128( 0x0, 0xfe5d677dfcbac ) },
{ 0x1.017c9e0e02f94p+51, -0x1.e8346931d068dp-2, INIT_U128( 0x0, 0x80be4f07017c9 ) },
{ 0x1.34be33be697c6p+52, -0x1.eaafbc57d55f7p-1, INIT_U128( 0x0, 0x134be33be697c5 ) },
{ 0x1.3dfde2227bfbcp+52, -0x1.71058416e20b0p-1, INIT_U128( 0x0, 0x13dfde2227bfbb ) },
{ 0x1.71ac6278e358cp+52, -0x1.f9792cd5f2f25p-1, INIT_U128( 0x0, 0x171ac6278e358b ) },
{ 0x1.2351a3f446a34p+52, -0x1.0c8622e8190c4p-1, INIT_U128( 0x0, 0x12351a3f446a33 ) },
{ 0x1.8d4834e91a906p+52, -0x1.7d5193f8faa32p-1, INIT_U128( 0x0, 0x18d4834e91a905 ) },
{ 0x1.cea06d339d40dp+53, -0x1.e47267a9c8e4dp+0, INIT_U128( 0x0, 0x39d40da673a818 ) },
{ 0x1.f0421e0fe0844p+53, -0x1.b19d3e95633a8p+0, INIT_U128( 0x0, 0x3e0843c1fc1086 ) },
{ 0x1.99d1a7c733a35p+53, -0x1.c46707b788ce1p+0, INIT_U128( 0x0, 0x333a34f8e67468 ) },
{ 0x1.af16c40f5e2d8p+53, -0x1.7fe193e8ffc32p+0, INIT_U128( 0x0, 0x35e2d881ebc5ae ) },
{ 0x1.f0e71801e1ce3p+53, -0x1.5f7a5778bef4bp+0, INIT_U128( 0x0, 0x3e1ce3003c39c4 ) },
{ 0x1.58f3844cb1e70p+54, -0x1.0d8a262a1b145p+1, INIT_U128( 0x0, 0x563ce1132c79bd ) },
{ 0x1.1a10491234209p+54, -0x1.ccf7a13399ef4p+1, INIT_U128( 0x0, 0x468412448d0820 ) },
{ 0x1.4a49352c94926p+54, -0x1.4274d56284e9ap+1, INIT_U128( 0x0, 0x52924d4b252495 ) },
{ 0x1.26e73d0c4dce8p+54, -0x1.27be76ee4f7cfp+1, INIT_U128( 0x0, 0x49b9cf4313739d ) },
{ 0x1.d95bb585b2b77p+54, -0x1.bfeffa1b7fdffp+1, INIT_U128( 0x0, 0x7656ed616cadd8 ) },
{ 0x1.845701d308ae0p+55, -0x1.4e01c1a69c038p+2, INIT_U128( 0x0, 0xc22b80e98456fa ) },
{ 0x1.cde355919bc6bp+55, -0x1.83a2a78707455p+2, INIT_U128( 0x0, 0xe6f1aac8cde351 ) },
{ 0x1.e31cfeffc63a0p+55, -0x1.f4d41fcbe9a84p+2, INIT_U128( 0x0, 0xf18e7f7fe31cf8 ) },
{ 0x1.025e45f404bc8p+55, -0x1.77630f52eec62p+2, INIT_U128( 0x0, 0x812f22fa025e3a ) },
{ 0x1.445ab08688b56p+55, -0x1.20d9415841b28p+2, INIT_U128( 0x0, 0xa22d5843445aab ) },
{ 0x1.634e16bcc69c3p+56, -0x1.d92219f9b2443p+3, INIT_U128( 0x0, 0x1634e16bcc69c21 ) },
{ 0x1.00e090e601c12p+56, -0x1.8bd266a517a4dp+3, INIT_U128( 0x0, 0x100e090e601c113 ) },
{ 0x1.4bc260c09784cp+56, -0x1.aa46c623548d9p+3, INIT_U128( 0x0, 0x14bc260c09784b2 ) },
{ 0x1.f84887cbf0911p+56, -0x1.8f26dc8b1e4dcp+3, INIT_U128( 0x0, 0x1f84887cbf09103 ) },
{ 0x1.12c9841025930p+56, -0x1.2409948a48132p+3, INIT_U128( 0x0, 0x112c984102592f6 ) },
{ 0x1.18ddb45631bb6p+57, -0x1.a65432fd4ca86p+4, INIT_U128( 0x0, 0x231bb68ac6376a5 ) },
{ 0x1.1db742503b6e8p+57, -0x1.ea4cb1f1d4996p+4, INIT_U128( 0x0, 0x23b6e84a076dce1 ) },
{ 0x1.0b25f34a164bep+57, -0x1.fb71965ff6e33p+4, INIT_U128( 0x0, 0x2164be6942c97a0 ) },
{ 0x1.d493b057a9276p+57, -0x1.984360a73086cp+4, INIT_U128( 0x0, 0x3a92760af524ea6 ) },
{ 0x1.2415c74c482b9p+57, -0x1.9a080cb934102p+4, INIT_U128( 0x0, 0x2482b8e98905706 ) },
{ 0x1.444ed2dc889dap+58, -0x1.fd1a2b65fa346p+5, INIT_U128( 0x0, 0x5113b4b72227640 ) },
{ 0x1.8c4107f118821p+58, -0x1.4378b31a86f16p+5, INIT_U128( 0x0, 0x631041fc4620817 ) },
{ 0x1.678247a6cf049p+58, -0x1.87b982f30f730p+5, INIT_U128( 0x0, 0x59e091e9b3c120f ) },
{ 0x1.2e0db5f05c1b6p+58, -0x1.c6e815758dd02p+5, INIT_U128( 0x0, 0x4b836d7c1706d47 ) },
{ 0x1.b134c76562699p+58, -0x1.d3467fa1a68d0p+5, INIT_U128( 0x0, 0x6c4d31d9589a605 ) },
{ 0x1.ceb816019d703p+59, -0x1.9e8cc3ad3d198p+6, INIT_U128( 0x0, 0xe75c0b00ceb8118 ) },
{ 0x1.36d024526da04p+59, -0x1.2378228a46f04p+6, INIT_U128( 0x0, 0x9b68122936d01b7 ) },
{ 0x1.bd802f437b006p+59, -0x1.28708f4450e12p+6, INIT_U128( 0x0, 0xdec017a1bd802b5 ) },
{ 0x1.258abaaa4b158p+59, -0x1.0aaf9e52155f4p+6, INIT_U128( 0x0, 0x92c55d55258abbd ) },
{ 0x1.4e28516e9c50ap+59, -0x1.412994cc82532p+6, INIT_U128( 0x0, 0xa71428b74e284af ) },
{ 0x1.c8e317bf91c63p+60, -0x1.e5c75db5cb8ebp+7, INIT_U128( 0x0, 0x1c8e317bf91c620d ) },
{ 0x1.acaf7329595eep+60, -0x1.d1a68b5fa34d2p+7, INIT_U128( 0x0, 0x1acaf7329595ed17 ) },
{ 0x1.a4ed0b0149da2p+60, -0x1.f08cb111e1196p+7, INIT_U128( 0x0, 0x1a4ed0b0149da107 ) },
{ 0x1.8f1974bd1e32ep+60, -0x1.450db9f88a1b7p+7, INIT_U128( 0x0, 0x18f1974bd1e32d5d ) },
{ 0x1.6885dc84d10bcp+60, -0x1.8fb0eef31f61ep+7, INIT_U128( 0x0, 0x16885dc84d10bb38 ) },
{ 0x1.b8217e3970430p+61, -0x1.eb8d9863d71b3p+8, INIT_U128( 0x0, 0x37042fc72e085e14 ) },
{ 0x1.f63d36b7ec7a7p+61, -0x1.663b6ab2cc76ep+8, INIT_U128( 0x0, 0x3ec7a6d6fd8f4c99 ) },
{ 0x1.a764ff7f4eca0p+61, -0x1.e04e4a23c09c9p+8, INIT_U128( 0x0, 0x34ec9fefe9d93e1f ) },
{ 0x1.c615a7d78c2b5p+61, -0x1.301ab64e60357p+8, INIT_U128( 0x0, 0x38c2b4faf18568cf ) },
{ 0x1.01c141ae03828p+61, -0x1.a9eeaae553dd5p+8, INIT_U128( 0x0, 0x20382835c0704e56 ) },
{ 0x1.9a7b5bf534f6cp+62, -0x1.eae84ad3d5d0ap+9, INIT_U128( 0x0, 0x669ed6fd4d3dac2a ) },
{ 0x1.2ff604cc5fec0p+62, -0x1.3144550c6288ap+9, INIT_U128( 0x0, 0x4bfd813317fafd9d ) },
{ 0x1.c0f5440181ea8p+62, -0x1.104dee78209bep+9, INIT_U128( 0x0, 0x703d5100607a9ddf ) },
{ 0x1.fbdb86dbf7b71p+62, -0x1.e656fb05ccae0p+9, INIT_U128( 0x0, 0x7ef6e1b6fdedc033 ) },
{ 0x1.4c9265b69924cp+62, -0x1.e63af6a3cc75fp+9, INIT_U128( 0x0, 0x5324996da6492c33 ) },
{ 0x1.c68940c78d128p+63, -0x1.308e66f4611cdp+10, INIT_U128( 0x0, 0xe344a063c6893b3d ) },
{ 0x1.60a91d44c1524p+63, -0x1.cb78616996f0cp+10, INIT_U128( 0x0, 0xb0548ea260a918d2 ) },
{ 0x1.75670c4ceace2p+63, -0x1.d00d5933a01abp+10, INIT_U128( 0x0, 0xbab38626756708bf ) },
{ 0x1.baf5a40575eb4p+63, -0x1.236c195446d83p+10, INIT_U128( 0x0, 0xdd7ad202baf59b72 ) },
{ 0x1.54b06e62a960ep+63, -0x1.28f5a2bc51eb4p+10, INIT_U128( 0x0, 0xaa58373154b06b5c ) },
{ 0x1.3943913672872p+64, -0x1.41e9773e83d2fp+11, INIT_U128( 0x1, 0x39439136728715f0 ) },
{ 0x1.284072445080ep+64, -0x1.e57f6fbfcafeep+11, INIT_U128( 0x1, 0x284072445080d0d4 ) },
{ 0x1.cbba66639774dp+64, -0x1.5db61b5ebb6c4p+11, INIT_U128( 0x1, 0xcbba66639774c512 ) },
{ 0x1.8e4482531c890p+64, -0x1.cd09b9ad9a137p+11, INIT_U128( 0x1, 0x8e4482531c88f197 ) },
{ 0x1.98821b1531044p+64, -0x1.1e46936a3c8d2p+11, INIT_U128( 0x1, 0x98821b153104370d ) },
{ 0x1.ee53ec9ddca7dp+65, -0x1.5a70aa30b4e16p+12, INIT_U128( 0x3, 0xdca7d93bb94f8a58 ) },
{ 0x1.7ddcc386fbb98p+65, -0x1.5742c89eae859p+12, INIT_U128( 0x2, 0xfbb9870df772ea8b ) },
{ 0x1.80386b5d0070ep+65, -0x1.179cc39a2f398p+12, INIT_U128( 0x3, 0x70d6ba00e1ae86 ) },
{ 0x1.59863adab30c8p+65, -0x1.76ef58eceddebp+12, INIT_U128( 0x2, 0xb30c75b56618e891 ) },
{ 0x1.5c6ec8acb8dd9p+65, -0x1.15d2ea4c2ba5ep+12, INIT_U128( 0x2, 0xb8dd915971bb0ea2 ) },
{ 0x1.738905ace7120p+66, -0x1.5f63c252bec78p+13, INIT_U128( 0x5, 0xce2416b39c47d413 ) },
{ 0x1.2c6d7bfe58db0p+66, -0x1.d94f6605b29edp+13, INIT_U128( 0x4, 0xb1b5eff9636bc4d6 ) },
{ 0x1.f795f971ef2bfp+66, -0x1.4213262684265p+13, INIT_U128( 0x7, 0xde57e5c7bcaf97bd ) },
{ 0x1.9c83d0573907ap+66, -0x1.f0a44e21e148ap+13, INIT_U128( 0x6, 0x720f415ce41e41eb ) },
{ 0x1.47e716c08fce3p+66, -0x1.2368b02846d16p+13, INIT_U128( 0x5, 0x1f9c5b023f389b92 ) },
{ 0x1.3b0573c4760aep+67, -0x1.d520aa17aa415p+14, INIT_U128( 0x9, 0xd82b9e23b0568ab7 ) },
{ 0x1.4c10030298200p+67, -0x1.7036935ce06d2p+14, INIT_U128( 0xa, 0x60801814c0ffa3f2 ) },
{ 0x1.86097dab0c130p+67, -0x1.0cebe0e019d7cp+14, INIT_U128( 0xc, 0x304bed586097bcc5 ) },
{ 0x1.6c4fa332d89f4p+67, -0x1.8b14d0fd1629ap+14, INIT_U128( 0xb, 0x627d1996c4f99d3a ) },
{ 0x1.64643702c8c87p+67, -0x1.ec1b32f3d8367p+14, INIT_U128( 0xb, 0x2321b816464304f9 ) },
{ 0x1.2e2e59185c5cbp+68, -0x1.308574c2610aep+15, INIT_U128( 0x12, 0xe2e59185c5ca67bd ) },
{ 0x1.2129c2e442538p+68, -0x1.d1178d37a22f1p+15, INIT_U128( 0x12, 0x129c2e4425371774 ) },
{ 0x1.f4803d61e9007p+68, -0x1.d2008319a4011p+15, INIT_U128( 0x1f, 0x4803d61e900616ff ) },
{ 0x1.a7212d314e426p+68, -0x1.b2cbda7d6597bp+15, INIT_U128( 0x1a, 0x7212d314e425269a ) },
{ 0x1.23026dd84604ep+68, -0x1.da63bb8bb4c78p+15, INIT_U128( 0x12, 0x3026dd84604d12ce ) },
{ 0x1.e74f9c6dce9f3p+69, -0x1.6c57f6a6d8affp+16, INIT_U128( 0x3c, 0xe9f38db9d3e493a8 ) },
{ 0x1.f76cc7a5eed99p+69, -0x1.9dfe7a353bfcfp+16, INIT_U128( 0x3e, 0xed98f4bddb306201 ) },
{ 0x1.8a19ad2914336p+69, -0x1.4a09151e94122p+16, INIT_U128( 0x31, 0x4335a522866ab5f6 ) },
{ 0x1.7a8e89e2f51d1p+69, -0x1.f9af45a3f35e8p+16, INIT_U128( 0x2f, 0x51d13c5ea3a00650 ) },
{ 0x1.cac6d2d9958dbp+69, -0x1.680ced04d019ep+16, INIT_U128( 0x39, 0x58da5b32b1b497f3 ) },
{ 0x1.3a0d701e741aep+70, -0x1.35f982386bf30p+17, INIT_U128( 0x4e, 0x835c079d06b5940c ) },
{ 0x1.e8c55cb5d18abp+70, -0x1.b2de212b65bc4p+17, INIT_U128( 0x7a, 0x31572d7462a89a43 ) },
{ 0x1.8d41dcb71a83cp+70, -0x1.700fc96ae01f9p+17, INIT_U128( 0x63, 0x50772dc6a0ed1fe0 ) },
{ 0x1.dc67c013b8cf8p+70, -0x1.577224f0aee44p+17, INIT_U128( 0x77, 0x19f004ee33dd511b ) },
{ 0x1.f5709f27eae14p+70, -0x1.b48d1799691a3p+17, INIT_U128( 0x7d, 0x5c27c9fab84c96e5 ) },
{ 0x1.fe962cb9fd2c5p+71, -0x1.e770b583cee16p+18, INIT_U128( 0xff, 0x4b165cfe9620623d ) },
{ 0x1.e11ffb25c2400p+71, -0x1.bacc824975990p+18, INIT_U128( 0xf0, 0x8ffd92e11ff914cd ) },
{ 0x1.22d96f4e45b2ep+71, -0x1.19a629d4334c5p+18, INIT_U128( 0x91, 0x6cb7a722d96b9967 ) },
{ 0x1.4f9fac0e9f3f6p+71, -0x1.59fa9f9cb3f54p+18, INIT_U128( 0xa7, 0xcfd6074f9faa9815 ) },
{ 0x1.0cd8c0c619b18p+71, -0x1.12754a4424eaap+18, INIT_U128( 0x86, 0x6c60630cd8bbb62a ) },
{ 0x1.828513b1050a2p+72, -0x1.f9008969f2011p+19, INIT_U128( 0x182, 0x8513b1050a1037fb ) },
{ 0x1.5072ae5aa0e56p+72, -0x1.d6dccf67adb9ap+19, INIT_U128( 0x150, 0x72ae5aa0e5514919 ) },
{ 0x1.8b69e70116d3dp+72, -0x1.6266e1e2c4cdcp+19, INIT_U128( 0x18b, 0x69e70116d3c4ecc8 ) },
{ 0x1.49d7976693af3p+72, -0x1.fd3fec69fa7fdp+19, INIT_U128( 0x149, 0xd7976693af201600 ) },
{ 0x1.b80c6eb17018ep+72, -0x1.1801cdba3003ap+19, INIT_U128( 0x1b8, 0xc6eb17018d73ff1 ) },
{ 0x1.31a7f790634ffp+73, -0x1.420c3ec684188p+20, INIT_U128( 0x263, 0x4fef20c69fcbdf3c ) },
{ 0x1.9c06de65380dcp+73, -0x1.75e23a2eebc48p+20, INIT_U128( 0x338, 0xdbcca701b68a1dc ) },
{ 0x1.8857847510af0p+73, -0x1.fdd97fbbfbb30p+20, INIT_U128( 0x310, 0xaf08ea215de02268 ) },
{ 0x1.f6da0925edb41p+73, -0x1.51a6534ea34cap+20, INIT_U128( 0x3ed, 0xb4124bdb680ae59a ) },
{ 0x1.288322b651064p+73, -0x1.9c8ac76d39159p+20, INIT_U128( 0x251, 0x6456ca20c663753 ) },
{ 0x1.fef1a951fde35p+74, -0x1.529d9ed8a53b4p+21, INIT_U128( 0x7fb, 0xc6a547f78d15ac4c ) },
{ 0x1.4fdd8b429fbb2p+74, -0x1.4111e7ca8223dp+21, INIT_U128( 0x53f, 0x762d0a7eec57ddc3 ) },
{ 0x1.5913b586b2276p+74, -0x1.4a9f33d2953e6p+21, INIT_U128( 0x564, 0x4ed61ac89d56ac19 ) },
{ 0x1.8cab729b1956ep+74, -0x1.1a9c956435392p+21, INIT_U128( 0x632, 0xadca6c655b5cac6d ) },
{ 0x1.907ecf9520fdap+74, -0x1.c5affd1f8b5ffp+21, INIT_U128( 0x641, 0xfb3e5483f6474a00 ) },
{ 0x1.c3897cdb8712fp+75, -0x1.148c2cd829186p+22, INIT_U128( 0xe1c, 0x4be6dc38973adcf4 ) },
{ 0x1.66328026cc650p+75, -0x1.8d7c58211af8bp+22, INIT_U128( 0xb31, 0x94013663279ca0e9 ) },
{ 0x1.2a071f8e540e4p+75, -0x1.8ee042851dc08p+22, INIT_U128( 0x950, 0x38fc72a0719c47ef ) },
{ 0x1.e17de15fc2fbcp+75, -0x1.808fca0b011f9p+22, INIT_U128( 0xf0b, 0xef0afe17dd9fdc0d ) },
{ 0x1.c1a1b1d783436p+75, -0x1.e582dce1cb05bp+22, INIT_U128( 0xe0d, 0xd8ebc1a1a869f48 ) },
{ 0x1.302210b260442p+76, -0x1.1c153e8c382a8p+23, INIT_U128( 0x1302, 0x210b26044171f560 ) },
{ 0x1.36b1d3f26d63ap+76, -0x1.b174653162e8dp+23, INIT_U128( 0x136b, 0x1d3f26d6392745cd ) },
{ 0x1.77246250ee48cp+76, -0x1.b711c47b6e238p+23, INIT_U128( 0x1772, 0x46250ee48b24771d ) },
{ 0x1.cb9df155973bep+76, -0x1.03b9e3c80773cp+23, INIT_U128( 0x1cb9, 0xdf155973bd7e230e ) },
{ 0x1.91363beb226c8p+76, -0x1.f6c1a2aded835p+23, INIT_U128( 0x1913, 0x63beb226c7049f2e ) },
{ 0x1.85a1e5330b43dp+77, -0x1.0328c0f206518p+24, INIT_U128( 0x30b4, 0x3ca6616878fcd73f ) },
{ 0x1.83b88aff07711p+77, -0x1.55f82df8abf06p+24, INIT_U128( 0x3077, 0x115fe0ee20aa07d2 ) },
{ 0x1.3b7b0ad876f62p+77, -0x1.d1c099cda3813p+24, INIT_U128( 0x276f, 0x615b0edec22e3f66 ) },
{ 0x1.edd5d85bdbabbp+77, -0x1.0580b8aa0b017p+24, INIT_U128( 0x3dba, 0xbb0b7b7574fa7f47 ) },
{ 0x1.b6f51ddd6dea4p+77, -0x1.0dea732a1bd4ep+24, INIT_U128( 0x36de, 0xa3bbadbd46f2158c ) },
{ 0x1.c4fc37a789f87p+78, -0x1.cbbf476f977e9p+25, INIT_U128( 0x713f, 0xde9e27e18688171 ) },
{ 0x1.cf792b399ef26p+78, -0x1.5dd8c484bbb18p+25, INIT_U128( 0x73de, 0x4ace67bc95444e76 ) },
{ 0x1.549a6732a934dp+78, -0x1.82f0aed505e16p+25, INIT_U128( 0x5526, 0x99ccaa4d30fa1ea2 ) },
{ 0x1.86196fc90c32ep+78, -0x1.0022e6fe0045dp+25, INIT_U128( 0x6186, 0x5bf2430cb5ffba32 ) },
{ 0x1.561b14f8ac362p+78, -0x1.d9d7462fb3ae9p+25, INIT_U128( 0x5586, 0xc53e2b0d844c5173 ) },
{ 0x1.ab97dffd572fcp+79, -0x1.af3bdbd55e77cp+26, INIT_U128( 0xd5cb, 0xeffeab97d9431090 ) },
{ 0x1.b4bc948169792p+79, -0x1.259dda3c4b3bcp+26, INIT_U128( 0xda5e, 0x4a40b4bc8b698897 ) },
{ 0x1.33884d686710ap+79, -0x1.a9adb483535b6p+26, INIT_U128( 0x99c4, 0x26b433884959492d ) },
{ 0x1.756cfbf2eada0p+79, -0x1.029291e605252p+26, INIT_U128( 0xbab6, 0x7df9756cfbf5b5b8 ) },
{ 0x1.606b566cc0d6bp+79, -0x1.4b89488897129p+26, INIT_U128( 0xb035, 0xab36606b52d1dadd ) },
{ 0x1.ce79f75f9cf3fp+80, -0x1.c18250f58304ap+27, INIT_U128( 0x1ce79, 0xf75f9cf3e1f3ed78 ) },
{ 0x1.c1a537f5834a7p+80, -0x1.d09e1cffa13c3p+27, INIT_U128( 0x1c1a5, 0x37f5834a617b0f18 ) },
{ 0x1.aa75632d54eacp+80, -0x1.ad9199935b233p+27, INIT_U128( 0x1aa75, 0x632d54eab2937333 ) },
{ 0x1.5ccd7568b99aep+80, -0x1.a689a8214d135p+27, INIT_U128( 0x15ccd, 0x7568b99ad2cbb2be ) },
{ 0x1.cc27825f984f0p+80, -0x1.ad70602d5ae0cp+27, INIT_U128( 0x1cc27, 0x825f984ef2947cfe ) },
{ 0x1.571e14aeae3c2p+81, -0x1.1706eed62e0dep+28, INIT_U128( 0x2ae3c, 0x295d5c782e8f9112 ) },
{ 0x1.199980be33330p+81, -0x1.815302eb02a60p+28, INIT_U128( 0x23333, 0x17c6665e7eacfd1 ) },
{ 0x1.ccdc4b7399b8ap+81, -0x1.b706c6236e0d9p+28, INIT_U128( 0x399b8, 0x96e73371248f939d ) },
{ 0x1.78891716f1123p+81, -0x1.be4c9ed17c994p+28, INIT_U128( 0x2f112, 0x2e2de224441b3612 ) },
{ 0x1.8eeabbd11dd58p+81, -0x1.4e4f0bee9c9e2p+28, INIT_U128( 0x31dd5, 0x77a23baaeb1b0f41 ) },
{ 0x1.fbe0a583f7c14p+82, -0x1.fb4508bbf68a1p+29, INIT_U128( 0x7ef82, 0x960fdf04c0975ee8 ) },
{ 0x1.a1ceb0dd439d6p+82, -0x1.7ee85dacfdd0cp+29, INIT_U128( 0x6873a, 0xc3750e755022f44a ) },
{ 0x1.2c58bdda58b18p+82, -0x1.e773e123cee7cp+29, INIT_U128( 0x4b162, 0xf76962c5c31183db ) },
{ 0x1.fe7acffbfcf5ap+82, -0x1.65da57e2cbb4bp+29, INIT_U128( 0x7f9eb, 0x3feff3d65344b503 ) },
{ 0x1.e72d5acfce5acp+82, -0x1.61731afcc2e64p+29, INIT_U128( 0x79cb5, 0x6b3f396ad3d19ca0 ) },
{ 0x1.1879e12030f3cp+83, -0x1.c123bcb382477p+30, INIT_U128( 0x8c3cf, 0x901879d8fb710d3 ) },
{ 0x1.7f705b84fee0cp+83, -0x1.3f4993107e932p+30, INIT_U128( 0xbfb82, 0xdc27f705b02d9b3b ) },
{ 0x1.8d989f011b314p+83, -0x1.1d1fe3403a3fcp+30, INIT_U128( 0xc6cc4, 0xf808d989b8b8072f ) },
{ 0x1.1864ebfc30c9ep+83, -0x1.d728987fae513p+30, INIT_U128( 0x8c327, 0x5fe1864e8a35d9e0 ) },
{ 0x1.5610f62cac21fp+83, -0x1.4c5f844898bf0p+30, INIT_U128( 0xab087, 0xb165610f2ce81eed ) },
{ 0x1.33d3656c67a6cp+84, -0x1.95cfd3212b9fap+31, INIT_U128( 0x133d36, 0x56c67a6b3518166f ) },
{ 0x1.fbaa2b05f7546p+84, -0x1.55e269c0abc4dp+31, INIT_U128( 0x1fbaa2, 0xb05f7545550ecb1f ) },
{ 0x1.b75584bf6eab0p+84, -0x1.dc7bae0bb8f76p+31, INIT_U128( 0x1b7558, 0x4bf6eaaf11c228fa ) },
{ 0x1.9d9f6abf3b3edp+84, -0x1.e641152dcc822p+31, INIT_U128( 0x19d9f6, 0xabf3b3ec0cdf7569 ) },
{ 0x1.258aa83e4b155p+84, -0x1.2c03a55e58074p+31, INIT_U128( 0x1258aa, 0x83e4b15469fe2d50 ) },
{ 0x1.4923889e92471p+85, -0x1.732613eee64c2p+32, INIT_U128( 0x292471, 0x13d248e08cd9ec11 ) },
{ 0x1.4a4eac6c949d6p+85, -0x1.1ec3eb343d87ep+32, INIT_U128( 0x2949d5, 0x8d9293aae13c14cb ) },
{ 0x1.6b236f7ed646ep+85, -0x1.43e5e19087cbcp+32, INIT_U128( 0x2d646d, 0xefdac8dabc1a1e6f ) },
{ 0x1.d9b5b4b1b36b6p+85, -0x1.28a9dd345153cp+32, INIT_U128( 0x3b36b6, 0x96366d6ad75622cb ) },
{ 0x1.7e8c46f6fd189p+85, -0x1.1ba7907a374f2p+32, INIT_U128( 0x2fd188, 0xdedfa310e4586f85 ) },
{ 0x1.f8233e87f0468p+86, -0x1.4f1891a09e312p+33, INIT_U128( 0x7e08cf, 0xa1fc119d61cedcbe ) },
{ 0x1.3559a6ce6ab35p+86, -0x1.66838faecd072p+33, INIT_U128( 0x4d5669, 0xb39aacd132f8e0a2 ) },
{ 0x1.9287350d250e7p+86, -0x1.de3d4d25bc7a9p+33, INIT_U128( 0x64a1cd, 0x43494398438565b4 ) },
{ 0x1.51636112a2c6cp+86, -0x1.4aa4221095484p+33, INIT_U128( 0x5458d8, 0x44a8b1ad6ab7bbde ) },
{ 0x1.69680d46d2d02p+86, -0x1.58ef43c2b1de8p+33, INIT_U128( 0x5a5a03, 0x51b4b4054e21787a ) },
{ 0x1.9cd5255339aa5p+87, -0x1.5edb06bebdb61p+34, INIT_U128( 0xce6a92, 0xa99cd5228493e505 ) },
{ 0x1.8784e3f50f09cp+87, -0x1.44c75c08898ecp+34, INIT_U128( 0xc3c271, 0xfa8784daece28fdd ) },
{ 0x1.606eec84c0ddep+87, -0x1.04221f4608444p+34, INIT_U128( 0xb03776, 0x42606eebef7782e7 ) },
{ 0x1.533ab0e8a6756p+87, -0x1.41a4283883485p+34, INIT_U128( 0xa99d58, 0x74533aaaf96f5f1d ) },
{ 0x1.a827b7e7504f7p+87, -0x1.a12743df424e8p+34, INIT_U128( 0xd413db, 0xf3a827b17b62f082 ) },
{ 0x1.7f649104fec92p+88, -0x1.f1803d15e3007p+35, INIT_U128( 0x17f6491, 0x4fec91073fe1750 ) },
{ 0x1.3c245f267848cp+88, -0x1.538cdceea719cp+35, INIT_U128( 0x13c245f, 0x267848b56399188a ) },
{ 0x1.ac7c20b158f84p+88, -0x1.a88bafb751176p+35, INIT_U128( 0x1ac7c20, 0xb158f832bba28245 ) },
{ 0x1.0766b6760ecd7p+88, -0x1.ed9a3ae7db348p+35, INIT_U128( 0x10766b6, 0x760ecd60932e28c1 ) },
{ 0x1.326196f064c33p+88, -0x1.0bc6d9c8178dbp+35, INIT_U128( 0x1326196, 0xf064c327a1c931bf ) },
{ 0x1.0fe8f9101fd1fp+89, -0x1.d0efbbfda1df8p+36, INIT_U128( 0x21fd1f2, 0x203fa3c2f1044025 ) },
{ 0x1.1293e4362527cp+89, -0x1.d9b782d9b36f1p+36, INIT_U128( 0x22527c8, 0x6c4a4f626487d264 ) },
{ 0x1.7adec6b8f5bd9p+89, -0x1.cf30a87b9e615p+36, INIT_U128( 0x2f5bd8d, 0x71eb7b030cf57846 ) },
{ 0x1.c0b0e58f8161dp+89, -0x1.0bc433b817886p+36, INIT_U128( 0x38161cb, 0x1f02c38f43bcc47e ) },
{ 0x1.5f5110a6bea22p+89, -0x1.378549726f0a9p+36, INIT_U128( 0x2bea221, 0x4d7d442c87ab68d9 ) },
{ 0x1.e010f92bc021fp+90, -0x1.1c799a5838f34p+37, INIT_U128( 0x78043e4, 0xaf00879c70ccb4f8 ) },
{ 0x1.0a13d53e1427ap+90, -0x1.14fa976a29f53p+37, INIT_U128( 0x4284f54, 0xf8509e5d60ad12ba ) },
{ 0x1.20c171344182ep+90, -0x1.0b600f6a16c02p+37, INIT_U128( 0x48305c4, 0xd1060b5e93fe12bd ) },
{ 0x1.dc4fcb69b89fap+90, -0x1.baa89e2d75514p+37, INIT_U128( 0x7713f2d, 0xa6e27e48aaec3a51 ) },
{ 0x1.9460210728c04p+90, -0x1.7f8615f4ff0c2p+37, INIT_U128( 0x6518084, 0x1ca300d00f3d4160 ) },
{ 0x1.4eb6be6e9d6d8p+91, -0x1.9f09d4d53e13ap+38, INIT_U128( 0xa75b5f3, 0x74eb6b983d8acab0 ) },
{ 0x1.aace088d559c1p+91, -0x1.d48d8957a91b1p+38, INIT_U128( 0xd567044, 0x6aace00adc9daa15 ) },
{ 0x1.0c12d2ca1825ap+91, -0x1.ae9e99db5d3d3p+38, INIT_U128( 0x8609696, 0x50c12c9458598928 ) },
{ 0x1.cb18343596306p+91, -0x1.6b0ac1eed6158p+38, INIT_U128( 0xe58c1a1, 0xacb182a53d4f844a ) },
{ 0x1.8005595b000abp+91, -0x1.49fec5a893fd8p+38, INIT_U128( 0xc002aca, 0xd800552d804e95db ) },
{ 0x1.555ed514aabdap+92, -0x1.e0e7654dc1cecp+39, INIT_U128( 0x1555ed51, 0x4aabd90f8c4d591f ) },
{ 0x1.9b90037b37200p+92, -0x1.653f4916ca7e9p+39, INIT_U128( 0x19b90037, 0xb371ff4d605b749a ) },
{ 0x1.e4c55f0dc98acp+92, -0x1.ca319be194634p+39, INIT_U128( 0x1e4c55f0, 0xdc98ab1ae7320f35 ) },
{ 0x1.693b70b4d276ep+92, -0x1.48b14bc29162ap+39, INIT_U128( 0x1693b70b, 0x4d276d5ba75a1eb7 ) },
{ 0x1.1d3ed51a3a7dap+92, -0x1.4f20aa329e416p+39, INIT_U128( 0x11d3ed51, 0xa3a7d9586faae6b0 ) },
{ 0x1.fdbf440ffb7e8p+93, -0x1.3414dd086829cp+40, INIT_U128( 0x3fb7e881, 0xff6fcecbeb22f797 ) },
{ 0x1.9f1f9ef93e3f4p+93, -0x1.e910ef75d221ep+40, INIT_U128( 0x33e3f3df, 0x27c7e616ef108a2d ) },
{ 0x1.330fb51e661f6p+93, -0x1.afa4f75f5f49fp+40, INIT_U128( 0x2661f6a3, 0xccc3ea505b08a0a0 ) },
{ 0x1.908c5cad2118cp+93, -0x1.915cf7bd22b9fp+40, INIT_U128( 0x32118b95, 0xa423166ea30842dd ) },
{ 0x1.f69c40d5ed388p+93, -0x1.daaf7ad5b55f0p+40, INIT_U128( 0x3ed3881a, 0xbda70e2550852a4a ) },
{ 0x1.a4e116b749c23p+94, -0x1.9b3b90ed36772p+41, INIT_U128( 0x693845ad, 0xd27088c988de2593 ) },
{ 0x1.e3ecdcb1c7d9bp+94, -0x1.51c17edca3830p+41, INIT_U128( 0x78fb372c, 0x71f6695c7d0246b8 ) },
{ 0x1.a0e2291141c45p+94, -0x1.404e932a809d2p+41, INIT_U128( 0x68388a44, 0x5071117f62d9aafe ) },
{ 0x1.74637034e8c6ep+94, -0x1.3ff2cd8c7fe5ap+41, INIT_U128( 0x5d18dc0d, 0x3a31b5801a64e700 ) },
{ 0x1.2903bd0252078p+94, -0x1.057c671e0af8dp+41, INIT_U128( 0x4a40ef40, 0x9481ddf50731c3ea ) },
{ 0x1.b5215e7f6a42cp+95, -0x1.f293ca6be527ap+42, INIT_U128( 0xda90af3f, 0xb5215835b0d6506b ) },
{ 0x1.83f0c22907e18p+95, -0x1.9e9f270b3d3e5p+42, INIT_U128( 0xc1f86114, 0x83f0b9858363d30b ) },
{ 0x1.794ea1e0f29d4p+95, -0x1.cdd6a0019bad4p+42, INIT_U128( 0xbca750f0, 0x794e98c8a57ff991 ) },
{ 0x1.691230eed2246p+95, -0x1.64cc6042c998cp+42, INIT_U128( 0xb4891877, 0x69122a6cce7ef4d9 ) },
{ 0x1.b68ddf1f6d1bcp+95, -0x1.4e7240b69ce48p+42, INIT_U128( 0xdb46ef8f, 0xb68ddac636fd258c ) },
{ 0x1.8ec0d3e11d81ap+96, -0x1.78a8191ef1503p+43, INIT_U128( 0x18ec0d3e1, 0x1d81943abf370875 ) },
{ 0x1.b89ae6ad7135dp+96, -0x1.5d8a5ab6bb14cp+43, INIT_U128( 0x1b89ae6ad, 0x7135c513ad2a4a27 ) },
{ 0x1.6306c1d6c60d8p+96, -0x1.494f5aca929ecp+43, INIT_U128( 0x16306c1d6, 0xc60d75b58529ab6b ) },
{ 0x1.3be3253677c64p+96, -0x1.2234122844682p+43, INIT_U128( 0x13be32536, 0x77c636ee5f6ebddc ) },
{ 0x1.c0d3393581a67p+96, -0x1.cf9ff6dd9f3ffp+43, INIT_U128( 0x1c0d33935, 0x81a6618300491306 ) },
{ 0x1.9d7696df3aed3p+97, -0x1.904f8d43209f2p+44, INIT_U128( 0x33aed2dbe, 0x75da46fb072bcdf6 ) },
{ 0x1.f51bed87ea37dp+97, -0x1.849dd3b5093bap+44, INIT_U128( 0x3ea37db0f, 0xd46f87b622c4af6c ) },
{ 0x1.d310146da6202p+97, -0x1.a1b294dd43652p+44, INIT_U128( 0x3a62028db, 0x4c4025e4d6b22bc9 ) },
{ 0x1.1a5aadfa34b56p+97, -0x1.f92b4a29f256ap+44, INIT_U128( 0x234b55bf4, 0x696aa06d4b5d60da ) },
{ 0x1.56b5a4e0ad6b4p+97, -0x1.7b9c7faaf7390p+44, INIT_U128( 0x2ad6b49c1, 0x5ad668463805508c ) },
{ 0x1.c4ebda7789d7bp+98, -0x1.f2464e2be48cap+45, INIT_U128( 0x713af69de, 0x275e81b7363a836e ) },
{ 0x1.147a605228f4cp+98, -0x1.2fba62965f74cp+45, INIT_U128( 0x451e98148, 0xa3d2da08b3ad3411 ) },
{ 0x1.ff5a5975feb4bp+98, -0x1.fb03d16ff607ap+45, INIT_U128( 0x7fd6965d7, 0xfad2809f85d2013f ) },
{ 0x1.8b535eb316a6cp+98, -0x1.67c1084ecf821p+45, INIT_U128( 0x62d4d7acc, 0x5a9ad307def6260f ) },
{ 0x1.ec5edc05d8bdcp+98, -0x1.f6e18d93edc31p+45, INIT_U128( 0x7b17b7017, 0x62f6c123ce4d8247 ) },
{ 0x1.9894226f31284p+99, -0x1.2f32edb85e65ep+46, INIT_U128( 0xcc4a11379, 0x8941b4334491e866 ) },
{ 0x1.285e37e250bc7p+99, -0x1.863505270c6a1p+46, INIT_U128( 0x942f1bf12, 0x85e31e72beb63ce5 ) },
{ 0x1.01d184d203a30p+99, -0x1.3a789d6c74f14p+46, INIT_U128( 0x80e8c2690, 0x1d17b161d8a4e2c3 ) },
{ 0x1.2cbeeb98597dep+99, -0x1.0ab4ca901569ap+46, INIT_U128( 0x965f75cc2, 0xcbeebd52cd5bfaa5 ) },
{ 0x1.3a6f2d2874de6p+99, -0x1.882f4607105e9p+46, INIT_U128( 0x9d3796943, 0xa6f29df42e7e3be8 ) },
{ 0x1.8333177706663p+100, -0x1.25f65a144beccp+47, INIT_U128( 0x1833317770, 0x66626d04d2f5da09 ) },
{ 0x1.8db762651b6ecp+100, -0x1.79f42f14f3e86p+47, INIT_U128( 0x18db762651, 0xb6eb4305e875860b ) },
{ 0x1.70d5bca8e1ab8p+100, -0x1.bb0edb49761dcp+47, INIT_U128( 0x170d5bca8e, 0x1ab72278925b44f1 ) },
{ 0x1.ea41c903d4839p+100, -0x1.5ac507a0b58a1p+47, INIT_U128( 0x1ea41c903d, 0x4838529d7c2fa53a ) },
{ 0x1.e0fa0cc9c1f41p+100, -0x1.423d1498847a2p+47, INIT_U128( 0x1e0fa0cc9c, 0x1f405ee175b3bdc2 ) },
{ 0x1.7cb5b206f96b6p+101, -0x1.ca84212d95084p+48, INIT_U128( 0x2f96b640df, 0x2d6a357bded26af7 ) },
{ 0x1.d538ebbfaa71ep+101, -0x1.71154fe0e22aap+48, INIT_U128( 0x3aa71d77f5, 0x4e3a8eeab01f1dd5 ) },
{ 0x1.f94495e9f2892p+101, -0x1.0134cf020269ap+48, INIT_U128( 0x3f2892bd3e, 0x5122fecb30fdfd96 ) },
{ 0x1.272b29184e565p+101, -0x1.200c167a40183p+48, INIT_U128( 0x24e5652309, 0xcac8dff3e985bfe7 ) },
{ 0x1.9a00459134009p+101, -0x1.19f3e5f233e7cp+48, INIT_U128( 0x334008b226, 0x8010e60c1a0dcc18 ) },
{ 0x1.d502c13daa058p+102, -0x1.687df8cad0fbfp+49, INIT_U128( 0x7540b04f6a, 0x815d2f040e6a5e08 ) },
{ 0x1.c343006b86860p+102, -0x1.d09890d7a1312p+49, INIT_U128( 0x70d0c01ae1, 0xa17c5ecede50bd9d ) },
{ 0x1.12d5a57025ab4p+102, -0x1.639868d2c730dp+49, INIT_U128( 0x44b5695c09, 0x6acd38cf2e5a719e ) },
{ 0x1.2e1c8a005c392p+102, -0x1.30918fb861232p+49, INIT_U128( 0x4b87228017, 0xe459edce08f3db9 ) },
{ 0x1.a1a6df9b434dcp+102, -0x1.23addea8475bcp+49, INIT_U128( 0x6869b7e6d0, 0xd36db8a442af7148 ) },
{ 0x1.24e2adac49c56p+103, -0x1.5c6f2e30b8de6p+50, INIT_U128( 0x927156d624, 0xe2aa8e43473d1c86 ) },
{ 0x1.7c7b44aaf8f68p+103, -0x1.a261467144c29p+50, INIT_U128( 0xbe3da2557c, 0x7b39767ae63aecf5 ) },
{ 0x1.bc552c6578aa6p+103, -0x1.2fe92c325fd26p+50, INIT_U128( 0xde2a9632bc, 0x552b405b4f3680b6 ) },
{ 0x1.986724fd30ce4p+103, -0x1.35916dc86b22ep+50, INIT_U128( 0xcc33927e98, 0x671b29ba48de5374 ) },
{ 0x1.0629fea00c540p+103, -0x1.2281030845020p+50, INIT_U128( 0x8314ff5006, 0x29fb75fbf3deebf8 ) },
{ 0x1.86196bdd0c32ep+104, -0x1.86efd1710ddfap+51, INIT_U128( 0x186196bdd0c, 0x32d3c88174779103 ) },
{ 0x1.b781612b6f02cp+104, -0x1.e18af0a9c315ep+51, INIT_U128( 0x1b781612b6f, 0x2b0f3a87ab1e751 ) },
{ 0x1.0538cf500a71ap+104, -0x1.ca88fa479511fp+51, INIT_U128( 0x10538cf500a, 0x7191abb82dc35770 ) },
{ 0x1.26f828784df05p+104, -0x1.0b76d92e16edbp+51, INIT_U128( 0x126f828784d, 0xf047a449368f4892 ) },
{ 0x1.add81fa15bb04p+104, -0x1.7719b60cee337p+51, INIT_U128( 0x1add81fa15b, 0xb03447324f988e64 ) },
{ 0x1.a702e23f4e05cp+105, -0x1.db4083d9b6810p+52, INIT_U128( 0x34e05c47e9c, 0xb624bf7c26497f0 ) },
{ 0x1.10d1f1a221a3ep+105, -0x1.4c21b18c98436p+52, INIT_U128( 0x221a3e34443, 0x47ab3de4e7367bca ) },
{ 0x1.6ea2b496dd456p+105, -0x1.9afb5f4735f6cp+52, INIT_U128( 0x2dd45692dba, 0x8aa6504a0b8ca094 ) },
{ 0x1.21eb30b643d66p+105, -0x1.d8868fe7b10d2p+52, INIT_U128( 0x243d6616c87, 0xaca277970184ef2e ) },
{ 0x1.ba11808f74230p+105, -0x1.607d81f2c0fb0p+52, INIT_U128( 0x37423011ee8, 0x45e9f827e0d3f050 ) },
{ 0x1.2b067c3a560d0p+106, -0x1.26a888f24d511p+53, INIT_U128( 0x4ac19f0e958, 0x33db2aeee1b655de ) },
{ 0x1.321f6220643ecp+106, -0x1.5f8f20a6bf1e4p+53, INIT_U128( 0x4c87d888190, 0xfad40e1beb281c38 ) },
{ 0x1.d6a8d6b3ad51bp+106, -0x1.af61093b5ec21p+53, INIT_U128( 0x75aa35aceb5, 0x468a13ded89427be ) },
{ 0x1.8aa18d1315432p+106, -0x1.45aa07728b541p+53, INIT_U128( 0x62a86344c55, 0xc574abf11ae957e ) },
{ 0x1.91cbb90123977p+106, -0x1.5829ecd8b053ep+53, INIT_U128( 0x6472ee4048e, 0x5d94fac264e9f584 ) },
{ 0x1.f3254c21e64a9p+107, -0x1.e26b0355c4d61p+54, INIT_U128( 0xf992a610f32, 0x5407653f2a8eca7c ) },
{ 0x1.baf1933b75e32p+107, -0x1.9e1ca4613c394p+54, INIT_U128( 0xdd78c99dbaf, 0x189878d6e7b0f1b0 ) },
{ 0x1.fe9a2653fd345p+107, -0x1.2111e1644223cp+54, INIT_U128( 0xff4d1329fe9, 0xa237bb87a6ef7710 ) },
{ 0x1.47ba6a568f74ep+107, -0x1.1db3308e3b666p+54, INIT_U128( 0xa3dd352b47b, 0xa6b89333dc712668 ) },
{ 0x1.7d425134fa84ap+107, -0x1.7111591ae222bp+54, INIT_U128( 0xbea1289a7d4, 0x24a3bba9b9477754 ) },
{ 0x1.2072625640e4cp+108, -0x1.a3f61c0747ec4p+55, INIT_U128( 0x12072625640e, 0x4b2e04f1fc5c09e0 ) },
{ 0x1.e9a0237bd3405p+108, -0x1.8eaca10f1d594p+55, INIT_U128( 0x1e9a0237bd34, 0x438a9af78715360 ) },
{ 0x1.e6d68de9cdad2p+108, -0x1.f8f6dd1df1edbp+55, INIT_U128( 0x1e6d68de9cda, 0xd103849171070928 ) },
{ 0x1.db61e073b6c3cp+108, -0x1.7104d820e209bp+55, INIT_U128( 0x1db61e073b6c, 0x3b477d93ef8efb28 ) },
{ 0x1.0f217c801e430p+108, -0x1.dd89659fbb12dp+55, INIT_U128( 0x10f217c801e4, 0x2f113b4d30227698 ) },
{ 0x1.fe9b4705fd369p+109, -0x1.3fa3eb287f47ep+56, INIT_U128( 0x3fd368e0bfa6, 0xd0c05c14d780b820 ) },
{ 0x1.5d571bb6baae4p+109, -0x1.b2fb8ca765f72p+56, INIT_U128( 0x2baae376d755, 0xc64d0473589a08e0 ) },
{ 0x1.240ce5c24819cp+109, -0x1.1a00cc123401ap+56, INIT_U128( 0x24819cb84903, 0x36e5ff33edcbfe60 ) },
{ 0x1.bdf6e81b7beddp+109, -0x1.001b75b40036ep+56, INIT_U128( 0x37bedd036f7d, 0xb8ffe48a4bffc920 ) },
{ 0x1.8ec816c51d903p+109, -0x1.361aa5a66c354p+56, INIT_U128( 0x31d902d8a3b2, 0x4c9e55a5993cac0 ) },
{ 0x1.2f1182c45e230p+110, -0x1.9edd32253dba6p+57, INIT_U128( 0x4bc460b11788, 0xbcc2459bb5848b40 ) },
{ 0x1.0fe20a461fc42p+110, -0x1.3ea6d59e7d4dap+57, INIT_U128( 0x43f8829187f1, 0x582b254c30564c0 ) },
{ 0x1.1c303b3e38608p+110, -0x1.ac1d5e63583acp+57, INIT_U128( 0x470c0ecf8e18, 0x1ca7c543394f8a80 ) },
{ 0x1.ebc1498bd7829p+110, -0x1.641b6f02c836ep+57, INIT_U128( 0x7af05262f5e0, 0xa137c921fa6f9240 ) },
{ 0x1.1716fbaa2e2e0p+110, -0x1.2150b17642a16p+57, INIT_U128( 0x45c5beea8b8b, 0x7dbd5e9d137abd40 ) },
{ 0x1.3b517d8a76a30p+111, -0x1.52366708a46cdp+58, INIT_U128( 0x9da8bec53b51, 0x7ab72663dd6e4cc0 ) },
{ 0x1.5251dcbea4a3cp+111, -0x1.6f366110de6ccp+58, INIT_U128( 0xa928ee5f5251, 0xda43267bbc864d00 ) },
{ 0x1.a55106b94aa21p+111, -0x1.c3e2594f87c4bp+58, INIT_U128( 0xd2a8835ca551, 0xf0769ac1e0ed40 ) },
{ 0x1.62bf8b74c57f2p+111, -0x1.a65316f14ca63p+58, INIT_U128( 0xb15fc5ba62bf, 0x8966b3a43acd6740 ) },
{ 0x1.e4f9ec8fc9f3dp+111, -0x1.7f9cc39eff398p+58, INIT_U128( 0xf27cf647e4f9, 0xe2018cf184031a00 ) },
{ 0x1.2bba220257744p+112, -0x1.be6446237cc89p+59, INIT_U128( 0x12bba22025774, 0x320cddcee419bb80 ) },
{ 0x1.227fb52644ff6p+112, -0x1.7d16ddb2fa2dcp+59, INIT_U128( 0x1227fb52644ff, 0x54174912682e9200 ) },
{ 0x1.9e678f2b3ccf2p+112, -0x1.8445a305088b4p+59, INIT_U128( 0x19e678f2b3ccf, 0x13ddd2e7d7bba600 ) },
{ 0x1.d67c0a0facf81p+112, -0x1.f45dbbcfe8bb8p+59, INIT_U128( 0x1d67c0a0facf8, 0x5d122180ba2400 ) },
{ 0x1.63941cdec7284p+112, -0x1.73e0e39ae7c1cp+59, INIT_U128( 0x163941cdec728, 0x3460f8e328c1f200 ) },
{ 0x1.37c33cea6f868p+113, -0x1.60a0728ac140ep+60, INIT_U128( 0x26f8679d4df0c, 0xe9f5f8d753ebf200 ) },
{ 0x1.06f3897a0de71p+113, -0x1.bc1d99cf783b3p+60, INIT_U128( 0x20de712f41bce, 0x43e2663087c4d00 ) },
{ 0x1.3bba5d6e7774cp+113, -0x1.9ec97aa13d92fp+60, INIT_U128( 0x27774badceee9, 0x66136855ec26d100 ) },
{ 0x1.5d2dc0c4ba5b8p+113, -0x1.090d47ec121a9p+60, INIT_U128( 0x2ba5b818974b6, 0xef6f2b813ede5700 ) },
{ 0x1.862425a10c485p+113, -0x1.df83bbd5bf078p+60, INIT_U128( 0x30c484b421890, 0x8207c442a40f8800 ) },
{ 0x1.63c95ed8c792cp+114, -0x1.2dfeb9045bfd7p+61, INIT_U128( 0x58f257b631e4a, 0xda4028df74805200 ) },
{ 0x1.225c74d244b8ep+114, -0x1.d14633e5a28c6p+61, INIT_U128( 0x48971d34912e3, 0x45d739834bae7400 ) },
{ 0x1.452717808a4e3p+114, -0x1.6cfb2a0cd9f66p+61, INIT_U128( 0x5149c5e022938, 0x92609abe64c13400 ) },
{ 0x1.cd9b9c979b373p+114, -0x1.6c1d6264d83acp+61, INIT_U128( 0x7366e725e6cdc, 0x927c53b364f8a800 ) },
{ 0x1.283afc3450760p+114, -0x1.24917ae649230p+61, INIT_U128( 0x4a0ebf0d141d7, 0xdb6dd0a336dba000 ) },
{ 0x1.c35af58986b5fp+115, -0x1.ad9439fb5b287p+62, INIT_U128( 0xe1ad7ac4c35af, 0x149af1812935e400 ) },
{ 0x1.b6a181e96d430p+115, -0x1.4a59c41894b38p+62, INIT_U128( 0xdb50c0f4b6a17, 0xad698ef9dad32000 ) },
{ 0x1.29dd7fee53bb0p+115, -0x1.597a52fab2f4ap+62, INIT_U128( 0x94eebff729dd7, 0xa9a16b415342d800 ) },
{ 0x1.87790c010ef22p+115, -0x1.5f961ddebf2c4p+62, INIT_U128( 0xc3bc860087790, 0xa81a78885034f000 ) },
{ 0x1.30dc51c261b8ap+115, -0x1.2aff976855ff3p+62, INIT_U128( 0x986e28e130dc4, 0xb5401a25ea803400 ) },
{ 0x1.97fac1772ff58p+116, -0x1.be9bc7d57d379p+63, INIT_U128( 0x197fac1772ff57, 0x20b21c1541643800 ) },
{ 0x1.2ab92a3a55726p+116, -0x1.0a5ada7c14b5cp+63, INIT_U128( 0x12ab92a3a55725, 0x7ad292c1f5a52000 ) },
{ 0x1.2eec55645dd8ap+116, -0x1.faa22043f5444p+63, INIT_U128( 0x12eec55645dd89, 0x2aeefde055de000 ) },
{ 0x1.a8365a3d506cbp+116, -0x1.8253592d04a6bp+63, INIT_U128( 0x1a8365a3d506ca, 0x3ed653697daca800 ) },
{ 0x1.ccad1d47995a3p+116, -0x1.b3062d77660c6p+63, INIT_U128( 0x1ccad1d47995a2, 0x267ce9444cf9d000 ) },
{ 0x1.0c80807219010p+117, -0x1.fceee00bf9ddcp+64, INIT_U128( 0x2190100e43201e, 0x3111ff406224000 ) },
{ 0x1.5c84fde8b90a0p+117, -0x1.4c1dc3b0983b8p+64, INIT_U128( 0x2b909fbd17213e, 0xb3e23c4f67c48000 ) },
{ 0x1.771d5b1aee3acp+117, -0x1.6d951fd0db2a4p+64, INIT_U128( 0x2ee3ab635dc756, 0x926ae02f24d5c000 ) },
{ 0x1.2c30e7a65861dp+117, -0x1.f65276a3eca4fp+64, INIT_U128( 0x25861cf4cb0c38, 0x9ad895c135b1000 ) },
{ 0x1.00ad5120015aap+117, -0x1.aed3fec35da80p+64, INIT_U128( 0x2015aa24002b52, 0x512c013ca2580000 ) },
{ 0x1.a9761f0752ec4p+118, -0x1.60c7b866c18f7p+65, INIT_U128( 0x6a5d87c1d4bb0d, 0x3e708f327ce12000 ) },
{ 0x1.e31b1195c6362p+118, -0x1.34b0f2ae6961ep+65, INIT_U128( 0x78c6c465718d85, 0x969e1aa32d3c4000 ) },
{ 0x1.e7b72027cf6e4p+118, -0x1.4c21d91c9843bp+65, INIT_U128( 0x79edc809f3db8d, 0x67bc4dc6cf78a000 ) },
{ 0x1.4910b92892217p+118, -0x1.2a84481055089p+65, INIT_U128( 0x52442e4a248859, 0xaaf76fdf55eee000 ) },
{ 0x1.76a20bc0ed442p+118, -0x1.c6003a578c007p+65, INIT_U128( 0x5da882f03b5104, 0x73ff8b50e7ff2000 ) },
{ 0x1.33955a28672acp+119, -0x1.365bbfb26cb78p+66, INIT_U128( 0x99caad1433955b, 0x269101364d220000 ) },
{ 0x1.2cae3656595c7p+119, -0x1.7185fe0ee30c0p+66, INIT_U128( 0x96571b2b2cae32, 0x39e807c473d00000 ) },
{ 0x1.2059fcd240b40p+119, -0x1.608e8c06c11d2p+66, INIT_U128( 0x902cfe692059fa, 0x7dc5cfe4fb8b8000 ) },
{ 0x1.c156446f82ac8p+119, -0x1.7ed61f72fdac4p+66, INIT_U128( 0xe0ab2237c1563a, 0x4a78234094f0000 ) },
{ 0x1.b3871223670e2p+119, -0x1.cc00ea8b9801ep+66, INIT_U128( 0xd9c38911b38708, 0xcffc55d19ff88000 ) },
{ 0x1.1822c3a830458p+120, -0x1.fa8c50f1f518ap+67, INIT_U128( 0x11822c3a8304570, 0x2b9d7870573b0000 ) },
{ 0x1.251099024a213p+120, -0x1.17a6fff02f4e0p+67, INIT_U128( 0x1251099024a2127, 0x42c8007e85900000 ) },
{ 0x1.dda73a49bb4e7p+120, -0x1.39c03aa673808p+67, INIT_U128( 0x1dda73a49bb4e66, 0x31fe2acc63fc0000 ) },
{ 0x1.701bfa5ae0380p+120, -0x1.86498f110c932p+67, INIT_U128( 0x1701bfa5ae037f3, 0xcdb387779b670000 ) },
{ 0x1.f7cf8d21ef9f1p+120, -0x1.27b329f64f665p+67, INIT_U128( 0x1f7cf8d21ef9f06, 0xc266b04d84cd8000 ) },
{ 0x1.8841b5fd10837p+121, -0x1.271ae62a4e35dp+68, INIT_U128( 0x310836bfa2106cd, 0x8e519d5b1ca30000 ) },
{ 0x1.a5f1059d4be21p+121, -0x1.fd763aeffaec8p+68, INIT_U128( 0x34be20b3a97c400, 0x289c510051380000 ) },
{ 0x1.c977257b92ee4p+121, -0x1.4242d5508485ap+68, INIT_U128( 0x392ee4af725dc6b, 0xdbd2aaf7b7a60000 ) },
{ 0x1.3ccf2642799e5p+121, -0x1.842c1cef08584p+68, INIT_U128( 0x2799e4c84f33c87, 0xbd3e310f7a7c0000 ) },
{ 0x1.9bd31ce137a64p+121, -0x1.499699de932d3p+68, INIT_U128( 0x337a639c26f4c6b, 0x66966216cd2d0000 ) },
{ 0x1.8356d48506adap+122, -0x1.87046fad0e08ep+69, INIT_U128( 0x60d5b52141ab64f, 0x1f720a5e3ee40000 ) },
{ 0x1.0d4dfebc1a9c0p+122, -0x1.fbb9c1dff7738p+69, INIT_U128( 0x43537faf06a6fc0, 0x88c7c40111900000 ) },
{ 0x1.236cebd446d9ep+122, -0x1.5a62b7beb4c57p+69, INIT_U128( 0x48db3af511b6754, 0xb3a9082967520000 ) },
{ 0x1.817d9deb02fb4p+122, -0x1.ff40bba3fe818p+69, INIT_U128( 0x605f677ac0becc0, 0x17e88b802fd00000 ) },
{ 0x1.fcb6f693f96dfp+122, -0x1.e34fecb1c69fdp+69, INIT_U128( 0x7f2dbda4fe5b783, 0x960269c72c060000 ) },
{ 0x1.2592c2024b258p+123, -0x1.759d0554eb3a0p+70, INIT_U128( 0x92c961012592ba2, 0x98beaac531800000 ) },
{ 0x1.f9c92243f3925p+123, -0x1.ea956b2fd52aep+70, INIT_U128( 0xfce49121f9c9205, 0x5aa5340ab5480000 ) },
{ 0x1.342c050c68580p+123, -0x1.c1d40b9783a82p+70, INIT_U128( 0x9a160286342bf8f, 0x8afd1a1f15f80000 ) },
{ 0x1.48d87b4291b10p+123, -0x1.99cd81eb339b0p+70, INIT_U128( 0xa46c3da148d8799, 0x8c9f853319400000 ) },
{ 0x1.958743c92b0e8p+123, -0x1.3b32a80876655p+70, INIT_U128( 0xcac3a1e495873b1, 0x3355fde266ac0000 ) },
{ 0x1.95955fc92b2acp+124, -0x1.788b1bb4f1164p+71, INIT_U128( 0x195955fc92b2ab43, 0xba72258774e00000 ) },
{ 0x1.77cbd758ef97bp+124, -0x1.59e96db4b3d2ep+71, INIT_U128( 0x177cbd758ef97a53, 0xb4925a616900000 ) },
{ 0x1.3d395a667a72cp+124, -0x1.bf685c877ed0cp+71, INIT_U128( 0x13d395a667a72b20, 0x4bd1bc4097a00000 ) },
{ 0x1.350561da6a0acp+124, -0x1.e278ef33c4f1ep+71, INIT_U128( 0x1350561da6a0ab0e, 0xc388661d87100000 ) },
{ 0x1.cd0e5a619a1cbp+124, -0x1.896fac3b12df6p+71, INIT_U128( 0x1cd0e5a619a1ca3b, 0x4829e27690500000 ) },
{ 0x1.4b43b7d296877p+125, -0x1.d3815993a702bp+72, INIT_U128( 0x296876fa52d0ec2c, 0x7ea66c58fd500000 ) },
{ 0x1.6d4edb7eda9dcp+125, -0x1.63b2e178c765cp+72, INIT_U128( 0x2da9db6fdb53b69c, 0x4d1e87389a400000 ) },
{ 0x1.9ee589813dcb1p+125, -0x1.4586b2f88b0d6p+72, INIT_U128( 0x33dcb13027b960ba, 0x794d0774f2a00000 ) },
{ 0x1.be11ceaf7c23ap+125, -0x1.206d205c40da4p+72, INIT_U128( 0x37c239d5ef8472df, 0x92dfa3bf25c00000 ) },
{ 0x1.7a568e10f4ad2p+125, -0x1.8a0f883b141f1p+72, INIT_U128( 0x2f4ad1c21e95a275, 0xf077c4ebe0f00000 ) },
{ 0x1.4977e4c292efcp+126, -0x1.e5115df1ca22cp+73, INIT_U128( 0x525df930a4bbec35, 0xdd441c6bba800000 ) },
{ 0x1.c78a4d258f149p+126, -0x1.df8a0993bf141p+73, INIT_U128( 0x71e2934963c52040, 0xebecd881d7e00000 ) },
{ 0x1.68f9b5ced1f36p+126, -0x1.71b68e02e36d2p+73, INIT_U128( 0x5a3e6d73b47cd51c, 0x92e3fa3925c00000 ) },
{ 0x1.4537e7968a6fdp+126, -0x1.4e903ffa9d208p+73, INIT_U128( 0x514df9e5a29bf162, 0xdf800ac5bf000000 ) },
{ 0x1.b243217364864p+126, -0x1.329c4dd06538ap+73, INIT_U128( 0x6c90c85cd9218d9a, 0xc7645f358ec00000 ) },
{ 0x1.782300caf0460p+127, -0x1.71273148e24e6p+74, INIT_U128( 0xbc1180657822fa3b, 0x633adc76c6800000 ) },
{ 0x1.919451a52328ap+127, -0x1.d1317b3fa2630p+74, INIT_U128( 0xc8ca28d2919448bb, 0x3a13017674000000 ) },
{ 0x1.5b41037ab6820p+127, -0x1.1672e9762ce5dp+74, INIT_U128( 0xada081bd5b40fba6, 0x345a274c68c00000 ) },
{ 0x1.fb844769f7089p+127, -0x1.ddd6cd13bbad9p+74, INIT_U128( 0xfdc223b4fb844088, 0xa4cbb11149c00000 ) },
{ 0x1.bd60d6a77ac1bp+127, -0x1.d081f99da103fp+74, INIT_U128( 0xdeb06b53bd60d0bd, 0xf819897bf0400000 ) }
};
static const int numTests = sizeof(testList) / sizeof(struct testCase);
|
Java | UTF-8 | 1,138 | 2.015625 | 2 | [] | no_license | package com.xadmin.mockito.controller;
import com.xadmin.mockito.model.User;
import com.xadmin.mockito.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/user")
public class UserController {
@Autowired
private UserService service;
@PostMapping("/addUser")
public User save(@RequestBody User user)
{
return service.saveUser(user);
}
@GetMapping("/getUsers")
public List<User> getAllUsers()
{
return service.getAllUsers();
}
@DeleteMapping("deleteUser/{id}")
public void deleteUser(@PathVariable int id)
{
service.deleteUSerById(id);
}
}
|
Java | UTF-8 | 203 | 1.734375 | 2 | [] | no_license | package worker;
public class Chefbrico extends Chef {
public Chefbrico(int identifiant, String nom, String prenom) {
super(identifiant, nom, prenom);
// TODO Auto-generated constructor stub
}
}
|
Shell | UTF-8 | 419 | 2.9375 | 3 | [] | no_license | #!/bin/bash
set-x
# To be executed in the vmpi folder
IRATI_REPO=~/git/irati
rm *.patch
git format-patch rina..master
patches=$(ls *.patch)
mv ${patches} ${IRATI_REPO}
pushd ${IRATI_REPO}
for patch in ${patches}; do
git am --directory=linux/net/rina/vmpi --exclude=linux/net/rina/vmpi/user-vmpi-test.c --exclude=linux/net/rina/vmpi/*.sh ${patch}
done
rm *.patch
popd
#git checkout rina
#git merge master
|
Python | UTF-8 | 9,425 | 3 | 3 | [] | no_license | # -*- coding: utf-8 -*-
"""
mundo.py
Created on Wed Oct 7 14:00:00 2020
@author: mlopez
"""
from tablero import Tablero
import random
def print_debug(msg, print_flag=False):
if print_flag:
print(msg)
class Mundo(object):
"""docstring for Mundo"""
def __init__(self, columnas, filas, n_leones, n_antilopes, debug=False):
super(Mundo, self).__init__()
self.debug = debug
self.ciclo = 0
self.tablero = Tablero(filas, columnas)
self.llenar_mundo(n_leones, n_antilopes)
def llenar_mundo(self, n_leones, n_antilopes):
for _ in range(n_leones):
if self.tablero.hay_posiciones_libres():
print_debug("ubicando un leon", self.debug)
self.tablero.ubicar_en_posicion_vacia(Leon())
for _ in range(n_antilopes):
if self.tablero.hay_posiciones_libres():
print_debug("ubicando un Antilope", self.debug)
self.tablero.ubicar_en_posicion_vacia(Antilope())
def cant_leones(self):
return sum([1 for x in self.tablero.elementos() if x.es_leon()])
def cant_antilopes(self):
return sum([1 for x in self.tablero.elementos() if x.es_antilope()])
def etapa_movimiento(self):
print_debug(f"Iniciando Movimiento en ciclo {self.ciclo}", self.debug)
for p in self.tablero.posiciones_ocupadas():
animal = self.tablero.posicion(p)
posiciones_libres = self.tablero.posiciones_vecinas_libre(p)
nueva_posicion = animal.moverse(posiciones_libres)
if nueva_posicion:
self.tablero.mover(p, nueva_posicion)
def etapa_alimentacion(self):
print_debug(f"Iniciando Alimentación en ciclo {self.ciclo}", self.debug)
for p in self.tablero.posiciones_ocupadas():
animal = self.tablero.posicion(p)
animales_cercanos = self.tablero.posiciones_vecinas_con_ocupantes(p)
desplazo = animal.alimentarse(animales_cercanos)
if desplazo:
self.tablero.ubicar(desplazo, self.tablero.retirar(p))
#print('A -1')
def etapa_reproduccion(self):
print_debug(f"Iniciando Reproducción en ciclo {self.ciclo}", self.debug)
for p in self.tablero.posiciones_ocupadas():
animal = self.tablero.posicion(p)
'''Reproduccion Leones'''
if animal.es_leon() and animal.puede_reproducir():
animales_cercanos = self.tablero.posiciones_vecinas_con_ocupantes(p)
animales_cercanos_repr = [(a,b) for (a,b) in animales_cercanos if b.es_leon()]
if animales_cercanos_repr:
animales_cercanos_repr = random.choice(animales_cercanos_repr)[-1]
if animales_cercanos_repr.sexo != animal.sexo:
animales_cercanos_repr.tener_cria()
#print('envio a reproducir: ', animales_cercanos_repr)
posicion_nacimiento = animal.reproducirse(animales_cercanos_repr, self.tablero.posiciones_libres())
#print('posicion nacimiento: ', posicion_nacimiento)
self.tablero.ubicar(posicion_nacimiento, Leon())
animal.tener_cria()
'''Reproduccion Antilopes'''
if animal.es_antilope() and animal.puede_reproducir():
animales_cercanos = self.tablero.posiciones_vecinas_con_ocupantes(p)
animales_cercanos_repr = [(a,b) for (a,b) in animales_cercanos if b.es_antilope()]
if animales_cercanos_repr:
animales_cercanos_repr = random.choice(animales_cercanos_repr)[-1]
if animales_cercanos_repr.sexo != animal.sexo:
animales_cercanos_repr.tener_cria()
#print('envio a reproducir: ', animales_cercanos_repr)
posicion_nacimiento = animal.reproducirse(animales_cercanos_repr, self.tablero.posiciones_libres())
#print('posicion nacimiento: ', posicion_nacimiento)
self.tablero.ubicar(posicion_nacimiento, Antilope())
animal.tener_cria()
# pass
def cerrar_un_ciclo(self):
print_debug(f"Concluyendo ciclo {self.ciclo}", self.debug)
for p in self.tablero.posiciones_ocupadas():
animal = self.tablero.posicion(p)
animal.pasar_un_ciclo() #envejecer, consumir alimento
if not animal.en_vida():
self.tablero.retirar(p)
self.ciclo += 1
def pasar_un_ciclo(self):
#print([[x, x.edad, x.energia, x.sexo, x.es_reproductore, x.reproducciones_pendientes] for x in self.tablero.elementos() if x.es_leon()])
self.etapa_movimiento()
self.etapa_alimentacion()
self.etapa_reproduccion()
self.cerrar_un_ciclo()
def __repr__(self):
res = str(self.tablero)
res += f"\nEstamos en la ciclo {self.ciclo}"
res += f"\nCon {self.cant_leones()} Leones, y {self.cant_antilopes()} Antilopes."
if True: # Original en False
res += '\nEspecie Posicion años energia sexo puede_reproduc\n'
for p in self.tablero.posiciones_ocupadas():
animal = self.tablero.posicion(p)
res += f'{"Leon " if animal.es_leon() else "Antilope"} {str(p):^10s} {animal.fila_str()}\n'
return res
def __str__(self):
return self.__repr__()
''' Codigo de la defifnicion de la clase Animal modificado'''
class Animal(object):
"""docstring for Animal"""
def __init__(self):
super(Animal, self).__init__()
self.reproducciones_pendientes = 4
self.edad = 0
self.sexo = random.choice(['M', 'H'])
#self.sexo = None # Posible mejora para que no se puedan reproducir dos del mismo sexo
self.energia = self.energia_maxima
self.es_reproductore = False
def pasar_un_ciclo(self):
self.energia -= 1 # Se puede restar si no llega a comer
self.edad += 1
if self.reproducciones_pendientes > 0 and self.edad >= 2: #
self.es_reproductore = True
def en_vida(self):
return (self.edad <= self.edad_maxima) and self.energia > 0
def tiene_hambre(self):
"""Acá se puede poner comportamiento para que no tenga hambre todo el tiempo
debería depender de la diferencia entre su nivel de energía y su energía máxima"""
return self.energia < self.energia_maxima
#pass
def es_leon(self):
return False
def es_antilope(self):
return False
def puede_reproducir(self):
return self.es_reproductore
def tener_cria(self):
"""Acá se puede poner comportamiento que sucede al tener cria para evitar que tengamás de una cria por ciclo, etc"""
self.reproducciones_pendientes -= 1
self.es_reproductore = False # Modificacion
# pass
def reproducirse(self, vecinos, lugares_libres):
pos = None
if vecinos:
#animal = random.choice(vecinos)
animal = vecinos # Modificacion
if lugares_libres:
animal.tener_cria()
self.tener_cria()
pos = random.choice(lugares_libres)
return pos
def alimentarse(self, animales_vecinos = None):
self.energia = self.energia_maxima
return None
def moverse(self, lugares_libres):
pos = None
if lugares_libres:
pos = random.choice(lugares_libres)
return pos
def fila_str(self): # Modificado para visualizar el sexo del animal
return f"{self.edad:>3d} {self.energia:>3d}/{self.energia_maxima:<3d} {self.sexo:>3s} {self.es_reproductore!s:<5}"
def __format__(self):
return self.__repr__()
def __str__(self):
return self.__repr__()
class Leon(Animal):
"""docstring for Leon"""
def __init__(self):
self.energia_maxima = 6
self.edad_maxima = 10
super(Leon, self).__init__()
#print('L +1 ', self.sexo)
def es_leon(self):
return True
def alimentarse(self, animales_vecinos):
# Se alimenta si puede e indica la posición del animal que se pudo comer
pos = None
if self.tiene_hambre(): # no está lleno
presas_cercanas = [ (pos,animal) for (pos, animal) in animales_vecinos if animal.es_antilope() ]
if presas_cercanas: # y hay presas cerca
super(Leon, self).alimentarse()
(pos, animal) = random.choice(presas_cercanas)
return pos
def __repr__(self):
# return "León"
return "L{}".format(self.edad)
class Antilope(Animal):
"""docstring for Antilope"""
def __init__(self):
self.energia_maxima = 10
self.edad_maxima = 6
super(Antilope, self).__init__()
self.reproducciones_pendientes = 3
#print('A +1 ', self.sexo)
def es_antilope(self):
return True
def __repr__(self):
# return "A"
return "A{}".format(self.edad)
m = Mundo(12, 6, 5, 15, debug=True)
import time
for i in range(20):
m.pasar_un_ciclo()
time.sleep(2)
print(i +1)
print(m) |
Java | UTF-8 | 3,199 | 2.53125 | 3 | [] | no_license | package de.gandev.modjn.example;
import de.gandev.modjn.handler.ModbusRequestHandler;
import de.gandev.modjn.entity.func.request.ReadCoilsRequest;
import de.gandev.modjn.entity.func.response.ReadCoilsResponse;
import de.gandev.modjn.entity.func.request.ReadDiscreteInputsRequest;
import de.gandev.modjn.entity.func.response.ReadDiscreteInputsResponse;
import de.gandev.modjn.entity.func.request.ReadHoldingRegistersRequest;
import de.gandev.modjn.entity.func.response.ReadHoldingRegistersResponse;
import de.gandev.modjn.entity.func.request.ReadInputRegistersRequest;
import de.gandev.modjn.entity.func.response.ReadInputRegistersResponse;
import de.gandev.modjn.entity.func.request.WriteMultipleCoilsRequest;
import de.gandev.modjn.entity.func.response.WriteMultipleCoilsResponse;
import de.gandev.modjn.entity.func.request.WriteMultipleRegistersRequest;
import de.gandev.modjn.entity.func.response.WriteMultipleRegistersResponse;
import de.gandev.modjn.entity.func.WriteSingleCoil;
import de.gandev.modjn.entity.func.WriteSingleRegister;
import java.util.BitSet;
/**
*
* @author ares
*/
public class ModbusRequestHandlerExample extends ModbusRequestHandler {
@Override
protected WriteSingleCoil writeSingleCoil(WriteSingleCoil request) {
return request;
}
@Override
protected WriteSingleRegister writeSingleRegister(WriteSingleRegister request) {
return request;
}
@Override
protected ReadCoilsResponse readCoilsRequest(ReadCoilsRequest request) {
BitSet coils = new BitSet(request.getQuantityOfCoils());
coils.set(0);
coils.set(5);
coils.set(8);
return new ReadCoilsResponse(coils);
}
@Override
protected ReadDiscreteInputsResponse readDiscreteInputsRequest(ReadDiscreteInputsRequest request) {
BitSet coils = new BitSet(request.getQuantityOfCoils());
coils.set(0);
coils.set(5);
coils.set(8);
return new ReadDiscreteInputsResponse(coils);
}
@Override
protected ReadInputRegistersResponse readInputRegistersRequest(ReadInputRegistersRequest request) {
int[] registers = new int[request.getQuantityOfInputRegisters()];
registers[0] = 0xFFFF;
registers[1] = 0xF0F0;
registers[2] = 0x0F0F;
return new ReadInputRegistersResponse(registers);
}
@Override
protected ReadHoldingRegistersResponse readHoldingRegistersRequest(ReadHoldingRegistersRequest request) {
int[] registers = new int[request.getQuantityOfInputRegisters()];
registers[0] = 0xFFFF;
registers[1] = 0xF0F0;
registers[2] = 0x0F0F;
return new ReadHoldingRegistersResponse(registers);
}
@Override
protected WriteMultipleRegistersResponse writeMultipleRegistersRequest(WriteMultipleRegistersRequest request) {
return new WriteMultipleRegistersResponse(request.getStartingAddress(), request.getQuantityOfRegisters());
}
@Override
protected WriteMultipleCoilsResponse writeMultipleCoilsRequest(WriteMultipleCoilsRequest request) {
return new WriteMultipleCoilsResponse(request.getStartingAddress(), request.getQuantityOfOutputs());
}
}
|
Python | UTF-8 | 1,569 | 3.46875 | 3 | [
"MIT"
] | permissive | """ Various utility functions """
import os
import re
from collections import Counter, defaultdict
from stringprocessor import StringProcessor as sp
import pandas as pd
class DefaultCounter(defaultdict, Counter):
def __gt__(self, other):
if isinstance(other, self.__class__):
return sum(self.values()) > sum(other.values())
else:
return sum(self.values()) > other
def chunks(l, n):
"""Yield successive n-sized chunks from l."""
for i in range(0, len(l), n):
yield l[i : i + n]
def tokenize(
s: str, exclude: list = None, sep: str = "_", take_basename: bool = False
) -> str:
"""Split filename into components based on the provided seperator,
returning the nth element.
Arguments:
s {str} -- delimited string
element {int} -- index of token to return from tokenized string
exclude {list} --list of string elements to be excluded from search
sep {str} -- delimiter used to split the input string
basename {bool} -- call os.path.basename on the input string? Useful when s is a filepath.
Returns:
str -- returns nth element of tokenized string (s). Returns empty string
if no tokens are found.
"""
if exclude is None:
exclude = []
if take_basename:
s = os.path.basename(s)
# Split words in s
words = re.findall(r"[\w]+", " ".join(s.split(sep)))
words = [sp.normalize(word, lower=True) for word in words]
words = [word for word in words if word not in exclude]
return words
|
Python | UTF-8 | 1,186 | 4.375 | 4 | [] | no_license | """Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
和訳:3と5の倍数
10未満の自然数で3と5の倍数は3,5,6,9となり、これらの倍数の和は23となる。
1000未満の3と5の倍数の和を求めよ。
"""
import doctest
def main():
"""
1000未満で3と5の倍数の和を求める。
"""
below_num = 1000
n0 = 3
n1 = 5
result = get_multiples_sum(n0, n1, below_num=below_num)
print(result)
def get_multiples_sum(*numbers: int, below_num: int) -> int:
"""
below_num未満の自然数でnumbersに含まれる数の倍数の和を求める。
:param numbers: 倍数の判定対象となる数字
:param below_num: 最大数
:return: 倍数の和
>>> get_multiples_sum(3, 5, below_num=10)
23
"""
count = 0
for i in range(1, below_num):
for j in numbers:
if i % j == 0:
count += i
break
return count
if __name__ == '__main__':
doctest.testmod()
main() # 233168
|
JavaScript | UTF-8 | 1,729 | 2.984375 | 3 | [] | no_license | const puppet = require('puppeteer')
const SELECTORS = require('./selectors.json');
async function run(name) {
const browser = await puppet.launch({
headless: true
});
const page = await browser.newPage();
await page.goto('https://kahoot.it');
await page.click(SELECTORS.pin);
await page.keyboard.type(process.argv[2]);
await page.click(SELECTORS.pinBtn);
try {
await page.waitForSelector(SELECTORS.name, { visible: true, timeout: 5*1000 });
}
catch {
console.log("Error: Game Pin is not valid :/");
process.exit(0);
}
await page.click(SELECTORS.name);
await page.keyboard.type(name);
await page.click(SELECTORS.nameBtn);
var reachedEnd = false;
console.log(name + " says: Im ready!");
while (!reachedEnd) {
await page.waitForSelector(SELECTORS.quizBoard, { visible: true, timeout: 0 });
var rand = Math.floor(Math.random() * SELECTORS.quizBtns.length);
console.log(name + " says: Imma go with answer #" + rand + "!");
await page.click(SELECTORS.quizBtns[rand]);
try {
await page.waitForSelector(SELECTORS.podium, { visible: true, timeout: 5*1000 });
reachedEnd = true;
console.log(name + "says: GG");
}
catch {
console.log(name + " says: Anotha one!");
}
}
browser.close();
}
if (process.argv.length < 4) {
console.log("Error: Not enough parameters!");
process.exit(-1);
}
var bots = [];
for (var i = 0; i < process.argv[4]; i++) {
bots.push(run(process.argv[3] + "_" + i));
}
Promise.all(bots)
.then(_ => console.log("Aight we done, goodnight loser."));
|
Java | UTF-8 | 11,400 | 2.96875 | 3 | [] | no_license | import java.io.File;
import java.io.IOException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Scanner;
/* CS 314 STUDENTS: FILL IN THIS HEADER AND THEN COPY AND PASTE IT TO YOUR
* LetterInventory.java AND AnagramSolver.java CLASSES.
*
* Student information for assignment:
*
* On my honor, Ayush Patel, this programming assignment is my own work
* and I have not provided this code to any other student.
*
* UTEID: ap55837
* email address: patayush01@utexas.edu
* TA name: Tony
* Number of slip days I am using: 1
*/
public class AnagramFinderTester {
private static final String testCaseFileName = "testCaseAnagrams.txt";
private static final String dictionaryFileName = "d3.txt";
/**
* main method that executes tests.
* @param args Not used.
*/
public static void main(String[] args) {
cs314StudentTestsForLetterInventory();
// tests on the anagram solver itself
boolean displayAnagrams = getChoiceToDisplayAnagrams();
AnagramSolver solver
= new AnagramSolver(AnagramMain.readWords(dictionaryFileName));
runAnagramTests(solver, displayAnagrams);
}
private static void cs314StudentTestsForLetterInventory() {
//constructor tests
LetterInventory lets1 = new LetterInventory("BAD!");
Object expected= "abd";
Object actual= lets1.toString();
int testNumber=0;
showTestResults(expected, actual, testNumber++, " constructor test");
lets1= new LetterInventory("!!@#$#*%*&*&");
expected= "";
actual= lets1.toString();
showTestResults(expected, actual, testNumber++, " constructor test");
//get tests
lets1= new LetterInventory("AaAbppppA");
expected= 4;
actual= lets1.get('a');
showTestResults(expected, actual, testNumber++, " get tests");
lets1= new LetterInventory("AaAbppppA");
expected= 4;
actual= lets1.get('A');
showTestResults(expected, actual, testNumber++, " get tests");
//size method
lets1 = new LetterInventory("BAD!");
expected = 3;
actual = lets1.size();
showTestResults(expected, actual, testNumber++, " size method test");
lets1= new LetterInventory("!!@#$#*%*&*&");
expected= 0;
actual = lets1.size();
showTestResults(expected, actual, testNumber++, " size method test");
//empty tests
expected= true;
actual = lets1.isEmpty();
showTestResults(expected, actual, testNumber++, " empty method test");
lets1= new LetterInventory("*&^&^$#*$)(@*)($#v");
expected= false;
actual = lets1.isEmpty();
showTestResults(expected, actual, testNumber++, " empty method test");
//toString tests
expected = "v";
actual = lets1.toString();
showTestResults(expected, actual, testNumber++, " toString method test");
lets1 = new LetterInventory("Balloon");
expected = "abllnoo";
actual = lets1.toString();
showTestResults(expected, actual, testNumber++, " toString method test");
//add tests
LetterInventory lets2= new LetterInventory("734328952385729");
expected = "abllnoo";
actual = lets1.add(lets2).toString();
showTestResults(expected, actual, testNumber++, " add method test");
lets2= new LetterInventory("bALLOON");
expected = "aabbllllnnoooo";
actual = lets1.add(lets2).toString();
showTestResults(expected, actual, testNumber++, " add method test");
//subtract tests
expected = "";
actual = lets1.subtract(lets2).toString();
showTestResults(expected, actual, testNumber++, " subtract method test");
lets2= new LetterInventory("#$%^&*(*&^%$678b");
expected = "allnoo";
actual = lets1.subtract(lets2).toString();
showTestResults(expected, actual, testNumber++, " subtract method test");
//equals tests
lets2= new LetterInventory("bALLOON");
expected= true;
actual = lets1.equals(lets2);
showTestResults(expected, actual, testNumber++, " equals test");
String test= "abllnoo";
expected = false;
actual = lets1.equals(test);
showTestResults(expected, actual, testNumber++, " equals test");
}
private static boolean getChoiceToDisplayAnagrams() {
Scanner console = new Scanner(System.in);
System.out.print("Enter y or Y to display anagrams during tests: ");
String response = console.nextLine();
console.close();
return response.length() > 0
&& response.toLowerCase().charAt(0) == 'y';
}
private static boolean showTestResults(Object expected, Object actual,
int testNum, String featureTested) {
System.out.println("Test Number " + testNum + " testing "
+ featureTested);
System.out.println("Expected result: " + expected);
System.out.println("Actual result: " + actual);
boolean passed = (actual == null && expected == null)
|| (actual != null && actual.equals(expected));
if (passed) {
System.out.println("Passed test " + testNum);
} else {
System.out.println("!!! FAILED TEST !!! " + testNum);
}
System.out.println();
return passed;
}
/**
* Method to run tests on Anagram solver itself.
* pre: the files d3.txt and testCaseAnagrams.txt are in the local directory
*
* assumed format for file is
* <NUM_TESTS>
* <TEST_NUM>
* <MAX_WORDS>
* <PHRASE>
* <NUMBER OF ANAGRAMS>
* <ANAGRAMS>
*/
private static void runAnagramTests(AnagramSolver solver,
boolean displayAnagrams) {
int solverTestCases = 0;
int solverTestCasesPassed = 0;
Stopwatch st = new Stopwatch();
try {
Scanner sc = new Scanner(new File(testCaseFileName));
final int NUM_TEST_CASES = Integer.parseInt(sc.nextLine().trim());
System.out.println(NUM_TEST_CASES);
for (int i = 0; i < NUM_TEST_CASES; i++) {
// expected results
TestCase currentTest = new TestCase(sc);
solverTestCases++;
st.start();
// actual results
List<List<String>> actualAnagrams
= solver.getAnagrams(currentTest.phrase, currentTest.maxWords);
st.stop();
if(displayAnagrams) {
displayAnagrams("actual anagrams", actualAnagrams);
displayAnagrams("expected anagrams", currentTest.anagrams);
}
if(checkPassOrFailTest(currentTest, actualAnagrams))
solverTestCasesPassed++;
System.out.println("Time to find anagrams: " + st.time());
/* System.out.println("Number of calls to recursive helper method: "
+ NumberFormat.getNumberInstance(Locale.US).format(AnagramSolver.callsCount));*/
}
sc.close();
} catch(IOException e) {
System.out.println("\nProblem while running test cases on AnagramSolver. Check" +
" that file testCaseAnagrams.txt is in the correct location.");
System.out.println(e);
System.out.println("AnagramSolver test cases run: " + solverTestCases);
System.out.println("AnagramSolver test cases failed: "
+ (solverTestCases - solverTestCasesPassed));
}
System.out.println("\nAnagramSolver test cases run: " + solverTestCases);
System.out.println("AnagramSolver test cases failed: " + (solverTestCases - solverTestCasesPassed));
}
// print out all of the anagrams in a list of anagram
private static void displayAnagrams(String type,
List<List<String>> anagrams) {
System.out.println("Results for " + type);
System.out.println("num anagrams: " + anagrams.size());
System.out.println("anagrams: ");
for (List<String> singleAnagram : anagrams) {
System.out.println(singleAnagram);
}
}
// determine if the test passed or failed
private static boolean checkPassOrFailTest(TestCase currentTest,
List<List<String>> actualAnagrams) {
boolean passed = true;
System.out.println();
System.out.println("Test number: " + currentTest.testCaseNumber);
System.out.println("Phrase: " + currentTest.phrase);
System.out.println("Word limit: " + currentTest.maxWords);
System.out.println("Expected Number of Anagrams: "
+ currentTest.anagrams.size());
if(actualAnagrams.equals(currentTest.anagrams)) {
System.out.println("Passed Test");
} else {
System.out.println("\n!!! FAILED TEST CASE !!!");
System.out.println("Recall MAXWORDS = 0 means no limit.");
System.out.println("Expected number of anagrams: "
+ currentTest.anagrams.size());
System.out.println("Actual number of anagrams: "
+ actualAnagrams.size());
if(currentTest.anagrams.size() == actualAnagrams.size()) {
System.out.println("Sizes the same, "
+ "but either a difference in anagrams or"
+ " anagrams not in correct order.");
}
System.out.println();
passed = false;
}
return passed;
}
// class to handle the parameters for an anagram test
// and the expected result
private static class TestCase {
private int testCaseNumber;
private String phrase;
private int maxWords;
private List<List<String>> anagrams;
// pre: sc is positioned at the start of a test case
private TestCase(Scanner sc) {
testCaseNumber = Integer.parseInt(sc.nextLine().trim());
maxWords = Integer.parseInt(sc.nextLine().trim());
phrase = sc.nextLine().trim();
anagrams = new ArrayList<>();
readAndStoreAnagrams(sc);
}
// pre: sc is positioned at the start of the resulting anagrams
// read in the number of anagrams and then for each anagram:
// - read in the line
// - break the line up into words
// - create a new list of Strings for the anagram
// - add each word to the anagram
// - add the anagram to the list of anagrams
private void readAndStoreAnagrams(Scanner sc) {
int numAnagrams = Integer.parseInt(sc.nextLine().trim());
for (int j = 0; j < numAnagrams; j++) {
String[] words = sc.nextLine().split("\\s+");
ArrayList<String> anagram = new ArrayList<>();
for (String st : words) {
anagram.add(st);
}
anagrams.add(anagram);
}
assert anagrams.size() == numAnagrams
: "Wrong number of angrams read or expected";
}
}
} |
Markdown | UTF-8 | 1,820 | 2.65625 | 3 | [] | no_license | # Article R184-1-1
Sans préjudice des conditions définies aux 1° et 2° de l'article L. 712-9, l'octroi ou le renouvellement de l'autorisation,
mentionnée à l'article L. 184-1, de pratiquer une ou plusieurs des activités cliniques ou biologiques d'assistance médicale à
la procréation définies à l'article R. 152-9-1, à l'exclusion du recueil, du traitement et de la conservation des gamètes
issus d'un don, est subordonnée au respect des règles de fonctionnement fixées dans la présente sous-section en application
du quatrième alinéa de l'article L. 184-1. Ces règles constituent les conditions techniques de fonctionnement mentionnées au
3° de l'article L. 712-9.
Cette autorisation est délivrée à un établissement de santé ou un laboratoire d'analyses de biologie médicale par arrêté du
ministre chargé de la santé, pris dans les conditions fixées par l'article L. 184-1.
Lorsqu'un établissement de santé ou un laboratoire d'analyses de biologie médicale comporte plusieurs sites, l'autorisation
précise le ou les sites d'exercice de la ou des activités.
**Liens relatifs à cet article**
_Codifié par_:
- Décret n°53-1001 1953-10-05 (DECRET DE CODIFICATION)
- Loi n°58-356 1958-04-03 (LOI DE VALIDATION)
_Créé par_:
- Décret n°95-560 du 6 mai 1995 - art. 3 () JORF 7 mai 1995
_Abrogé par_:
- Décret n°2003-462 2003-05-21 art. 4 2° JORF 27 mai 2003
_Cite_:
- Code de la santé publique - art. L184-1 (Ab)
- Code de la santé publique - art. L712-9 (M)
- Code de la santé publique - art. R152-9-1 (M)
_Cité par_:
- Code de la santé publique - art. R152-8-4 (Ab)
- Code de la santé publique - art. R162-38 (Ab)
_Nouveaux textes_:
- Code de la santé publique - art. R2142-1 (M)
- Code de la santé publique - art. R2142-1 (V)
|
Java | UTF-8 | 1,675 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | /* Licensed under Apache-2.0 */
package com.rabidgremlin.mutters.slots;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.TimeZone;
import com.joestelmach.natty.DateGroup;
import com.joestelmach.natty.Parser;
import com.rabidgremlin.mutters.core.AbstractSlot;
import com.rabidgremlin.mutters.core.Context;
import com.rabidgremlin.mutters.core.SlotMatch;
/**
* Slot that matches on {@link ZonedDateTime}. Uses natty to handle 'dates' such
* as 'next Friday at 8pm'.
*
* @author rabidgremlin
*
*/
public class DateTimeSlot extends AbstractSlot<ZonedDateTime>
{
public DateTimeSlot(String name)
{
super(name);
}
@Override
public Optional<SlotMatch<ZonedDateTime>> match(String token, Context context)
{
Parser parser = new Parser(context.getTimeZone());
List<DateGroup> groups = parser.parse(token);
for (DateGroup group : groups)
{
if (!group.isDateInferred() && !group.isTimeInferred())
{
List<Date> dates = group.getDates();
// natty is very aggressive so will match date on text that is largely not a
// date, which is
// not what we want
String matchText = group.getText();
float percMatch = (float) matchText.length() / (float) token.length();
if (!dates.isEmpty() && percMatch > 0.75)
{
Date date = dates.get(0);
TimeZone timeZone = context.getTimeZone();
return Optional
.of(new SlotMatch<>(this, token, ZonedDateTime.ofInstant(date.toInstant(), timeZone.toZoneId())));
}
}
}
return Optional.empty();
}
}
|
C++ | UTF-8 | 987 | 2.5625 | 3 | [] | no_license | #define B 494 // 시
int trig = 12;
int echo = 11;
int piezoPin = 10;
int tempo = 200;
void setup() {
// Vcc - +극
// Gnd - -극
// Trig - 초음파를 발사
// Echo - 초음파가 다시 돌아오는 시간으로 거리 측정
Serial.begin(9600);
pinMode(trig, OUTPUT);
pinMode(echo, INPUT);
pinMode(piezoPin, OUTPUT);
}
void loop() {
digitalWrite(trig, HIGH);
delay(10);
digitalWrite(trig, LOW);
int duration = pulseIn(echo, HIGH);
int distance = (duration/2) / 29.1; // 거리 = 초음파의 이동 시간 / 음파의 속도
Serial.print(distance);
Serial.println("cm");
delay(100);
if(distance <= 50 && distance >= 0) {
if(distance > 35) {
tone (piezoPin, 494, 200);
delay(1000);
}
if(distance <= 35 && distance > 15) {
tone (piezoPin, 494, 200);
delay(700);
}
if(distance <= 15) {
tone (piezoPin, 494, 200);
delay(700);
}
}
}
|
Java | UTF-8 | 419 | 2.8125 | 3 | [] | no_license | public class AnimalTester {
public static void main(String[] args) {
Elephant elephant = new Elephant("Dumbo");
Tiger tiger = new Tiger("Niala");
elephant.feed();
elephant.feed();
elephant.addFood();
elephant.showAnimalState();
tiger.feed();
tiger.addFood();
tiger.addFood();
tiger.feed();
tiger.showAnimalState();
}
}
|
Java | UTF-8 | 150 | 2.5625 | 3 | [] | no_license | public class Perebors100do1 {
public static void main(String[] args) {
for (int i=1000; i>=0; i=i-1)
System.out.println(" i=" + i);
}
}
|
Java | UTF-8 | 4,061 | 1.523438 | 2 | [
"MIT"
] | permissive | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.models.extensions.Team;
import com.microsoft.graph.models.generated.TeamVisibilityType;
import com.microsoft.graph.models.generated.ClonableTeamParts;
import java.util.EnumSet;
import com.microsoft.graph.models.extensions.ChatMessage;
import com.microsoft.graph.requests.extensions.IChannelCollectionRequestBuilder;
import com.microsoft.graph.requests.extensions.IChannelRequestBuilder;
import com.microsoft.graph.requests.extensions.ITeamsAppInstallationCollectionRequestBuilder;
import com.microsoft.graph.requests.extensions.ITeamsAppInstallationRequestBuilder;
import com.microsoft.graph.requests.extensions.IConversationMemberCollectionRequestBuilder;
import com.microsoft.graph.requests.extensions.IConversationMemberRequestBuilder;
import com.microsoft.graph.requests.extensions.ITeamsAsyncOperationCollectionRequestBuilder;
import com.microsoft.graph.requests.extensions.ITeamsAsyncOperationRequestBuilder;
import com.microsoft.graph.requests.extensions.IScheduleRequestBuilder;
import com.microsoft.graph.requests.extensions.IGroupRequestBuilder;
import com.microsoft.graph.requests.extensions.ITeamsTemplateRequestBuilder;
import java.util.Arrays;
import java.util.EnumSet;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The interface for the Team Request Builder.
*/
public interface ITeamRequestBuilder extends IRequestBuilder {
/**
* Creates the request
*
* @param requestOptions the options for this request
* @return the ITeamRequest instance
*/
ITeamRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
/**
* Creates the request with specific options instead of the existing options
*
* @param requestOptions the options for this request
* @return the ITeamRequest instance
*/
ITeamRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);
/**
* Gets the request builder for Schedule
*
* @return the IScheduleRequestBuilder instance
*/
IScheduleRequestBuilder schedule();
IChannelCollectionRequestBuilder channels();
IChannelRequestBuilder channels(final String id);
/**
* Gets the request builder for Group
*
* @return the IGroupWithReferenceRequestBuilder instance
*/
IGroupWithReferenceRequestBuilder group();
ITeamsAppInstallationCollectionRequestBuilder installedApps();
ITeamsAppInstallationRequestBuilder installedApps(final String id);
IConversationMemberCollectionRequestBuilder members();
IConversationMemberRequestBuilder members(final String id);
ITeamsAsyncOperationCollectionRequestBuilder operations();
ITeamsAsyncOperationRequestBuilder operations(final String id);
/**
* Gets the request builder for Channel
*
* @return the IChannelRequestBuilder instance
*/
IChannelRequestBuilder primaryChannel();
/**
* Gets the request builder for TeamsTemplate
*
* @return the ITeamsTemplateWithReferenceRequestBuilder instance
*/
ITeamsTemplateWithReferenceRequestBuilder template();
ITeamArchiveRequestBuilder archive(final Boolean shouldSetSpoSiteReadOnlyForMembers);
ITeamCloneRequestBuilder clone(final String displayName, final String description, final String mailNickname, final String classification, final TeamVisibilityType visibility, final EnumSet<ClonableTeamParts> partsToClone);
ITeamUnarchiveRequestBuilder unarchive();
} |
Python | UTF-8 | 2,733 | 2.671875 | 3 | [] | no_license | #
# LSST Data Management System
# Copyright 2008, 2009, 2010 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
__all__ = ["sourceMatchStatistics"]
import numpy as np
def sourceMatchStatistics(matchList, log=None):
"""Compute statistics on the accuracy of a wcs solution, using a
precomputed list of matches between an image and a catalog.
Parameters
----------
matchList : `lsst.afw.detection.SourceMatch`
List of matches between sources and references to compute statistics
on.
Returns
-------
values : `dict
Value dictionary with fields:
- diffInPixels_mean : Average distance between image and
catalog position in pixels (`float`).
- diffInPixels_std : Root mean square of distribution of distances
(`float`).
- diffInPixels_Q25 : 25% quantile boundary of the match dist
distribution (`float`).
- diffInPixels_Q50 : 50% quantile boundary of the match dist
distribution (`float`).
- diffInPixels_Q75 : 75% quantile boundary of the match
dist distribution (`float`).
"""
size = len(matchList)
if size == 0:
raise ValueError("matchList contains no elements")
dist = np.zeros(size)
i = 0
for match in matchList:
catObj = match.first
srcObj = match.second
cx = catObj.getXAstrom()
cy = catObj.getYAstrom()
sx = srcObj.getXAstrom()
sy = srcObj.getYAstrom()
dist[i] = np.hypot(cx-sx, cy-sy)
i = i+1
dist.sort()
quartiles = []
for f in (0.25, 0.50, 0.75):
i = int(f*size + 0.5)
if i >= size:
i = size - 1
quartiles.append(dist[i])
values = {}
values['diffInPixels_Q25'] = quartiles[0]
values['diffInPixels_Q50'] = quartiles[1]
values['diffInPixels_Q75'] = quartiles[2]
values['diffInPixels_mean'] = dist.mean()
values['diffInPixels_std'] = dist.std()
return values
|
Markdown | UTF-8 | 1,375 | 3.53125 | 4 | [
"BSD-3-Clause"
] | permissive | ---
title: "Rendering Data"
description: "Foo bar."
buttonTitle: "I rendered the todo items"
parentId: "tutorial-todo-soy"
layout: "tutorial"
time: 90
weight: 5
---
## {$page.title}
First, let's prepare the `TodoItem` for consuming the data passed from `TodoApp`:
```soy
{namespace TodoItem}
/**
* This renders the component's whole content.
*/
{template .render}
{@param todo: ?}
{let $elementClasses kind="text"}
todo-item
// Conditionally adding the 'todo-item-done' class if
// the todo is done
{if $todo.done}
{sp}todo-item-done
{/if}
{/let}
<li
class="{$elementClasses}"
>
{$todo.title}
</li>
{/template}
```
Now that you have some data that needs rendering and the `TodoItem` is ready to
consume it, you need to iterate over the todos and pass them to the child
components:
```soy
{namespace TodoApp}
/**
* This renders the component's whole content.
*/
{template .render}
{@param? todos: ?}
<div class="todo-app">
<ul>
{foreach $todo in $todos}
{call TodoItem.render}
{param index: index($todo) /}
{param todo: $todo /}
{/call}
{/foreach}
</ul>
</div>
{/template}
```
This results in the following markup:
```text/xml
<div class="todo-app">
<ul>
<li class="todo-item">Todo 1</li>
<li class="todo-item">Todo 2</li>
</ul>
</div>
```
|
Java | IBM852 | 2,469 | 3.25 | 3 | [] | no_license |
package ExemploDAO;
import java.util.ArrayList;
import javax.swing.JOptionPane;
public class CrudUsuario {
public static void main(String[] args) {
ArrayList<Usuario> usuarios;
Usuario usuario;
int opcao;
do {
opcao = menu();
switch (opcao) {
case 1:
usuario = entradaDados();
UsuarioDAO.insert(usuario);
break;
case 2:
JOptionPane.showMessageDialog(null, UsuarioDAO.find(entradaId()));
break;
case 3:
usuarios = UsuarioDAO.find(entradaNome());
imprimeDados(usuarios);
break;
case 4:
usuarios = UsuarioDAO.getAll();
imprimeDados(usuarios);
break;
case 5:
usuario = UsuarioDAO.find(entradaId());
usuario = entradaDados(usuario);
UsuarioDAO.update(usuario);
break;
case 6:
UsuarioDAO.delete(entradaId());
break;
}
} while(opcao!=0);
}
public static int menu() {
int opcao;
String menu = "1 - Inserir\n"
+ "2 - Pesquisar por Id\n"
+ "3 - Pesquisar por Nome\n"
+ "4 - Lista\n"
+ "5 - Alterar\n"
+ "6 - Excluir\n"
+ "0 - Sair";
opcao = Integer.valueOf(JOptionPane.showInputDialog(menu));
return opcao;
}
public static Usuario entradaDados() {
Usuario usuario = new Usuario();
usuario.setIdUsuario(Integer.valueOf(JOptionPane.showInputDialog("Id:")));
usuario.setNome(JOptionPane.showInputDialog("Nome:"));
usuario.setEmail(JOptionPane.showInputDialog("Email:"));
usuario.setTelefone(JOptionPane.showInputDialog("Telefone:"));
usuario.setEndereco(JOptionPane.showInputDialog("Endereo:"));
return usuario;
}
public static Usuario entradaDados(Usuario usuario) {
usuario.setNome(JOptionPane.showInputDialog("Nome:", usuario.getNome()));
usuario.setEmail(JOptionPane.showInputDialog("Email:", usuario.getEmail()));
usuario.setTelefone(JOptionPane.showInputDialog("Telefone:", usuario.getTelefone()));
usuario.setEndereco(JOptionPane.showInputDialog("Endereo:", usuario.getEndereco()));
return usuario;
}
public static int entradaId () {
return Integer.valueOf(JOptionPane.showInputDialog("Id:"));
}
public static String entradaNome () {
return JOptionPane.showInputDialog("Nome:");
}
public static void imprimeDados(ArrayList<Usuario> usuarios) {
String dados="";
for(Usuario usuario: usuarios) {
dados += usuario+"\n";
}
JOptionPane.showMessageDialog(null,dados);
}
}
|
Java | UTF-8 | 1,257 | 2.171875 | 2 | [] | no_license | package com.bcen.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.bcen.models.Responsibility;
import com.bcen.service.ResponsibilityService;
@RestController(value = "responsibilityController")
@RequestMapping(path = "/responsibility")
public class ResponsibilityController {
@Autowired
private ResponsibilityService responsibilityService;
@GetMapping(path = "/existing-responsibilities")
public List<Responsibility> findAll(){
return this.responsibilityService.findAll();
}
@PostMapping(path = "/modified-responsibilities")
public List<Responsibility> update(@RequestBody List<Responsibility> responsibilities, HttpSession httpSession) {
System.out.println(httpSession.getAttribute("user"));
return this.responsibilityService.update(responsibilities, httpSession);
}
}
|
Python | UTF-8 | 517 | 3.765625 | 4 | [] | no_license | file = open('text.txt','r+')
changed_text = ''
for word in (file.readline()).split():
if(word == 'ADJECTIVE'):
word = input("Writte an adjective:")
elif(word == 'VERB'):
word = input("Writte a verb:")
elif(word == 'NOUN'):
word = input("Writte a noun:")
elif(word == 'OBJECT'):
word = input("Enter an object:")
changed_text= changed_text + ' ' + word
file.close()
print(changed_text)
f = open('changed_text.txt','w+')
f.write(changed_text)
f.close() |
C | UTF-8 | 494 | 2.5625 | 3 | [] | no_license | #include "../src/basic_functions.h"
#include "../src/analog.h"
int main() {
millis_init();
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pwmInit(11);
pwmInit(10);
uint8_t value = 0;
int8_t diff = 1;
analogWrite(11, value);
analogWrite(10, 255 - value);
while(1) {
delay(5);
value += diff;
if (!value) {
diff = -diff;
}
analogWrite(11, value);
analogWrite(10, 255 - value);
}
return 0;
}
|
C++ | UTF-8 | 1,026 | 3.5 | 4 | [] | no_license | #include <iostream>
#include <filesystem>
#include <string>
using namespace std;
namespace fs = filesystem;
class Directory {
public:
Directory(fs::path dir_name) : dir(dir_name), is_new(true) {
if (!fs::exists(dir))
fs::create_directory(dir);
else {
if (!fs::is_directory(dir))
fs::create_directory(dir);
else {
cout << "found existed directory" << endl;
is_new = false;
}
}
}
virtual ~Directory() {}
inline fs::path path() {
return dir;
}
inline string name() {
return dir.string();
}
inline bool isNew() { return is_new; }
private:
fs::path dir;
bool is_new;
};
/*
int main(int argc, char* argv[]) {
Directory dirRoot("res");
cout << "the root directory is: " << dirRoot.path() << endl;
Directory dirStep1(dirRoot.path() / "step1");
cout << "the step1 directory is: " << dirStep1.path() << endl;
return 0;
}
*/ |
C++ | UTF-8 | 389 | 2.921875 | 3 | [] | no_license | // ac_6_19.cpp
// Горбацевич Андрей
#include <iostream>
using namespace std;
double inline funk(int i) {
return 1./i;
}
int main() {
double A;
cout << "A=";
cin >> A;
int i = 1;
double cur = funk(i);
double prev = 1e6*1.;
while (!((prev > A) && (A >= cur))) {
prev = cur;
cur = funk(++i);
}
cout << "a(i=" << i << ")=" << cur;
return 0;
} |
C# | UTF-8 | 2,881 | 2.90625 | 3 | [] | no_license | namespace Physicist.Controls
{
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework.Input;
using Physicist.Controls;
public class KeyboardDebouncer
{
private Dictionary<Keys, DebouncerKeyState> trackedKeys = new Dictionary<Keys, DebouncerKeyState>();
public bool IsKeyUp(Keys key, bool debounceKey)
{
bool isKeyUp = !this.trackedKeys[key].IsPressed;
if (!debounceKey)
{
isKeyUp = Keyboard.GetState().IsKeyUp(key);
}
return isKeyUp;
}
public bool IsKeyDown(Keys key)
{
return this.IsKeyDown(key, false);
}
public bool IsKeyDown(Keys key, bool debounceKey)
{
if (!this.trackedKeys.ContainsKey(key))
{
this.trackedKeys.Add(key, new DebouncerKeyState() { IsPressed = false, PreviousState = KeyState.Down });
}
bool isKeyDown = this.trackedKeys[key].IsPressed;
if (!debounceKey)
{
isKeyDown = Keyboard.GetState().IsKeyDown(key);
}
return isKeyDown;
}
public Keys[] GetPressedKeys()
{
return this.GetPressedKeys(false);
}
public Keys[] GetPressedKeys(bool debounce)
{
List<Keys> pressedKeys = new List<Keys>();
foreach (var key in this.trackedKeys.Keys)
{
if (this.IsKeyDown(key, debounce))
{
pressedKeys.Add(key);
}
}
return pressedKeys.ToArray();
}
public void UpdateKeys()
{
var pressedKeys = Keyboard.GetState().GetPressedKeys();
foreach (var key in pressedKeys)
{
if (!this.trackedKeys.ContainsKey(key))
{
this.trackedKeys.Add(key, new DebouncerKeyState() { IsPressed = true, PreviousState = KeyState.Up });
}
else
{
if (this.trackedKeys[key].PreviousState == KeyState.Up)
{
this.trackedKeys[key].IsPressed = false;
}
else
{
this.trackedKeys[key].IsPressed = true;
this.trackedKeys[key].PreviousState = KeyState.Up;
}
}
}
foreach (var key in this.trackedKeys)
{
if (!pressedKeys.Contains(key.Key))
{
this.trackedKeys[key.Key].IsPressed = false;
this.trackedKeys[key.Key].PreviousState = KeyState.Down;
}
}
}
}
}
|
Swift | UTF-8 | 4,447 | 2.8125 | 3 | [] | no_license | //
// Graphic1View.swift
// Onboarding
//
// Created by Thongchai Subsaidee on 21/4/2564 BE.
//
import SwiftUI
struct Graphic2View: View {
var body: some View {
LinearGradient(
gradient: Gradient(colors: [Color(#colorLiteral(red: 0.9675970674, green: 0.4913076758, blue: 0.5138258934, alpha: 1)), Color(#colorLiteral(red: 0.9497178197, green: 0.137912631, blue: 0.3324345946, alpha: 1)), Color(#colorLiteral(red: 0.5568627715, green: 0.3529411852, blue: 0.9686274529, alpha: 1))]),
startPoint: .bottom,
endPoint: .top
)
.mask(
Graphic2Shape()
.frame(width: .infinity, height: UIScreen.main.bounds.height * 0.8)
)
}
}
struct Graphic2View_Previews: PreviewProvider {
static var previews: some View {
Graphic2View()
}
}
struct Graphic2Shape: Shape {
func path(in rect: CGRect) -> Path {
var path = Path()
let width = rect.size.width
let height = rect.size.height
path.move(to: CGPoint(x: 0.39472*width, y: 0.99695*height))
path.addLine(to: CGPoint(x: 0.17326*width, y: 0.93125*height))
path.addCurve(to: CGPoint(x: 0.04683*width, y: 0.86476*height), control1: CGPoint(x: 0.12098*width, y: 0.91567*height), control2: CGPoint(x: 0.07731*width, y: 0.89271*height))
path.addCurve(to: CGPoint(x: 0, y: 0.77237*height), control1: CGPoint(x: 0.01635*width, y: 0.83681*height), control2: CGPoint(x: 0.00018*width, y: 0.8049*height))
path.addLine(to: CGPoint(x: 0, y: 0.49321*height))
path.addLine(to: CGPoint(x: 0.45705*width, y: 0.49321*height))
path.addLine(to: CGPoint(x: 0.45705*width, y: 0.97664*height))
path.addCurve(to: CGPoint(x: 0.45194*width, y: 0.98822*height), control1: CGPoint(x: 0.45726*width, y: 0.98068*height), control2: CGPoint(x: 0.4555*width, y: 0.98468*height))
path.addCurve(to: CGPoint(x: 0.4368*width, y: 0.9968*height), control1: CGPoint(x: 0.44838*width, y: 0.99176*height), control2: CGPoint(x: 0.44316*width, y: 0.99472*height))
path.addCurve(to: CGPoint(x: 0.4158*width, y: height), control1: CGPoint(x: 0.43045*width, y: 0.99887*height), control2: CGPoint(x: 0.4232*width, y: 0.99997*height))
path.addCurve(to: CGPoint(x: 0.39472*width, y: 0.99695*height), control1: CGPoint(x: 0.40841*width, y: 1.00003*height), control2: CGPoint(x: 0.40113*width, y: 0.99898*height))
path.closeSubpath()
path.move(to: CGPoint(x: 0.68245*width, y: 0.6497*height))
path.addLine(to: CGPoint(x: 0.09889*width, y: 0.72914*height))
path.addCurve(to: CGPoint(x: 0, y: 0.76556*height), control1: CGPoint(x: 0, y: 0.74287*height), control2: CGPoint(x: 0, y: 0.76556*height))
path.addLine(to: CGPoint(x: 0, y: 0.3071*height))
path.addCurve(to: CGPoint(x: 0.08802*width, y: 0.16744*height), control1: CGPoint(x: 0.00001*width, y: 0.25648*height), control2: CGPoint(x: 0.031*width, y: 0.20733*height))
path.addCurve(to: CGPoint(x: 0.31474*width, y: 0.08694*height), control1: CGPoint(x: 0.14505*width, y: 0.12755*height), control2: CGPoint(x: 0.22485*width, y: 0.09921*height))
path.addLine(to: CGPoint(x: 0.94547*width, y: 0.00069*height))
path.addCurve(to: CGPoint(x: 0.9645*width, y: 0.00052*height), control1: CGPoint(x: 0.9517*width, y: -0.00017*height), control2: CGPoint(x: 0.95822*width, y: -0.00023*height))
path.addCurve(to: CGPoint(x: 0.98168*width, y: 0.005*height), control1: CGPoint(x: 0.97079*width, y: 0.00127*height), control2: CGPoint(x: 0.97667*width, y: 0.0028*height))
path.addCurve(to: CGPoint(x: 0.9934*width, y: 0.0132*height), control1: CGPoint(x: 0.9867*width, y: 0.0072*height), control2: CGPoint(x: 0.99071*width, y: 0.01001*height))
path.addCurve(to: CGPoint(x: 0.9972*width, y: 0.02339*height), control1: CGPoint(x: 0.9961*width, y: 0.01639*height), control2: CGPoint(x: 0.99739*width, y: 0.01988*height))
path.addLine(to: CGPoint(x: 0.9972*width, y: 0.42988*height))
path.addCurve(to: CGPoint(x: 0.90898*width, y: 0.56934*height), control1: CGPoint(x: 0.99704*width, y: 0.48044*height), control2: CGPoint(x: 0.966*width, y: 0.52952*height))
path.addCurve(to: CGPoint(x: 0.68245*width, y: 0.6497*height), control1: CGPoint(x: 0.85196*width, y: 0.60916*height), control2: CGPoint(x: 0.77224*width, y: 0.63744*height))
path.closeSubpath()
return path
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.