text stringlengths 0 128k |
|---|
Is there a java SDK
Is there a java SDK, how can I use the program call instead of the command to call the API?
Closing as duplicate of https://github.com/istio/istio/issues/9683
|
double.toStringAsFixed() sould have an option to truncate instead of round
toStringAsFixed will round the double to the nearest number, but sometimes this is not desirable. I would be helpful if we could choose if the String is generated using round, ceil, floor or truncate.
Since num is sealed, adding optional par... |
Is it possible to auto paste and click a button in the website by chrome extension?
I would like to make a two steps operation on a video URL by using chrome extension. First, paste the URL to another website's textbox.(For example, https://www.urlgot.com/). And then click the "search" button. Could I do it automatical... |
A Remarkable Case of Elevated Carcinoembryonic Antigen after Surgical Treatment of Rectal Cancer: A Search for its Mysterious Cause
an ongoing elevation of serum CEA levels, for which she underwent four sequential PET-CT scans within one year without any sign of malignancy. Other causes of elevated CEA levels were inv... |
Make it official?
Thank you for creating this ❤️ 🎈
Are you interested in placing this under @floating-ui/solid?
@lxsmnsyc it's okay that it doesn't support interactions, just the positioning is fine. If created, that would be a separate package like @floating-ui/solid-interactions, but yeah, the interactions pack... |
what is the name of the designer of the incline whose upper end was located in the neighborhood that has the zip code of 15210 ?
john h. mcroberts |
# [Dice Roller](http://alexa.amazon.com/#skills/amzn1.ask.skill.cf49c20b-96c9-4229-9ac1-723362eb6693)
 in patient|groupBy:'pid'">
<td>{{pid}}</td... |
Talk:US Navy Vessels (Contact '57)
what is the source of these images? Wingman1 01:31, April 21, 2013 (UTC) |
Duplication of boards in Set Assignments?
I seem to have the same board appearing twice in set assignments (this is the<EMAIL_ADDRESS>account). Not sure if this is a recurring problem:
It's worth noting that these are definitely the same board as when I assign a group to one instance, it also appears on the other ... |
Angular 6 validators pattern for latin characters is not working
I am using reactive forms with validators. For the arabic name field I am using:
Validators.pattern('[\u0600-\u06FF ]*')
But I can't figure out the pattern for latin letters of A-Z and a-z.
I tried:
Validators.pattern(/^-?([a-z]\d*)?$/)
But it didn't wo... |
Protein sequence pattern-matching python
I'm working on a matching algorithm for protein sequences. I'm starting with an aligned protein sequence, and I am attempting to convert a mis-aligned sequence into the correctly aligned one. Here is an example:
original aligned sequence: ----AB--C-D-----
mis-aligned sequence: ... |
Adopt use of black instead of yapf
This change is switching our code-formatter from yapf to black, which
become far more popular, mainly because it is not configurable. This
means that project maintainers no longer have the option to introduce
their own oppionated settings.
Black is now hosted under official Python F... |
138 The Twentieth General Meeting.
trigonia, &c., &c. The shells recorded as occurring at Swindon were not numerous^ only reaching twenty species. But he found that in his own collection he had increased the number to something like eighty species : some of them of very great interest. After passing through the Po... |
package com.cameron.test;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import androi... |
Multilevel analysis of anemia and associated factors among women of reproductive age (15–49 years) in Liberia: Evidence from the 2019/20 Liberia demographic and health survey data
Background Anemia is a global public health problem, principally affecting young children and reproductive-age mothers. Although anemia is ... |
Board Thread:General Discussion/@comment-30714040-20170922183405/@comment-25516840-20170922194500
Coolan28 wrote: HEIL JOPEDE wrote: I don't think you have a ego. |
import { Slider } from "./shape";
/*
* @Author: Shirtiny
* @Date: 2021-06-23 17:21:45
* @LastEditTime: 2021-06-24 22:56:47
* @Description:
*/
export enum Colors {
red = "#e72528",
blue = "#2a79af",
weakBlue = "#6eb6f4",
geekblue = "#85a5ff",
gold = "#ffd666",
orange = "#ffa940",
cyan = "#13c2c2",
... |
also to a sinus or vessel acting as a ventral heart. Supra-spiracular line: in caterpillars, margins the spiracles superiorly. Supra-stigmatal line: = supra-spiracular lines.
Nenroptera, serving as oars or organs of locomotion. Swimming paddles: terminal appendages of mosquito pupae. Swoked: smoky, suffused with ... |
Centaurea, Michell’s Blue Bonnet Special Florists’ Super-Giant Strain. Blooms are fully double, with clear color and Jong stems, making this strain extra fine for florists’ cut-flower purposes. Large, deep blue. Trade pkt. 25c; 0z. 75c; I4lb. $2.50; Ib. $7.5 Cyclamen,
All-America Selection for 1948—Silver Medal Award... |
import sys
from main import return_minizers, parse_fasta_file, Minimizer
def load_hashtable(hash_file):
"""
Function that will receive data from minimizer_table
and write it in the file on disk. This will include
parsing of existing data in dictionary minimizer_table
in specific format.
:param minimizer_table: ... |
export function selectBook(book) {
// selectBook is an ActionCreator, it needs to return an action,
// an object with a type property.
// every action has a type (describe the purpose of the action) and payload (data that describes the action taken )
// BOOK_SELECTED - keep it uppercase
return {
type: "BO... |
John H. Kassing v. John M. Durand and Henry C. Durand.
Real Property—Secret Trust—Fraud.
1. He who goes into a court of equity seeking relief, must do so with clean hands.
•2. A secret trust in real estate resting upon an agreement to hinder or delay creditors, will not be enforced.
3. ... |
User:Ttocserp/sandbox
According to connoisseurs
In a paper for the 2013 Oxford Food Symposium, Tan and Bursa identified the features of the art or craft of making and serving Turkish coffee, according to the traditional procedures:
* Roasting. Ideally the best green Arabica beans are medium-roasted in small quantit... |
Talk:Kwamibuster/@comment-37547855-20191012073538
so basically...?
all went back to the box and cat noir now thinks marinette isn't ladybug Xc |
package org.lilyproject.indexer.model.indexerconf;
import java.util.HashMap;
import java.util.Map;
public class DynamicFieldNameTemplateResolver implements NameTemplateResolver {
private Map<String, Object> values = new HashMap<String, Object>();
public DynamicFieldNameTemplateResolver(Map<String, Object> v... |
Accepted the offer but no response from Human Resources Manager
I have been interviewd with XYZ Company, and got the offer letter. I signed and sent it back the same day evening
There were 6-8 documents which needed to be filled, signed and send. I did fill all the documents online but the one document I initially fil... |
Program stuck on startup
After the environment is set up, I use only one GPU GeForce RTX 3080 to run the script.sh in the startup manual, and I find that the program will be stuck on this page for more than ten minute:
and Then the program reports an error
I don't know why this happens, can you help me bro?
@MLum... |
package com.genexus.specific.java;
import com.genexus.common.interfaces.IExtensionNativeFunctions;
import com.genexus.platform.INativeFunctions;
import com.genexus.util.IThreadLocal;
import com.genexus.util.IThreadLocalInitializer;
public class NativeFunctions implements IExtensionNativeFunctions {
@Override
publi... |
// Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
// This is licensed software from AccelByte Inc, for limitations
// and restrictions contact your company contract manager.
// Code generated; DO NOT EDIT.
package public_player_binary_record
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"strings"
"g... |
package no.kartverket.glrenderer;
import java.util.ArrayList;
import no.kartverket.geometry.Line;
import no.kartverket.geometry.Pos;
/**
* Created by janvin on 11/05/17.
*/
public class GlLines {
ArrayList<GlLine> lines = new ArrayList<GlLine>();
public GlLines(){
}
/**
*
* @param lin... |
// +build !windows
package minikube
import (
"bytes"
"fmt"
"os/exec"
"github.com/kyma-project/cli/internal/cli"
"github.com/kyma-project/cli/internal/root"
"github.com/kyma-project/cli/internal/step"
)
func addDevDomainsToEtcHostsOSSpecific(domain string, s step.Step, hostAlias string) error {
notifyUserFun... |
End of preview. Expand in Data Studio
Comma v0.1 Training Dataset (1 Billion Token Sample)
This is a 1 billion token subset of the Comma v0.1 Training Set intended as a convenience for small deep learning experiments. It is similar in spirit to the 1 billion token RedPajama sample which is no longer functioning with HuggingFace transformers due to involving the execution of arbitrary code at load time.
Method
The subset was created using a single item batch version of the following script which I no longer have:
import os
import json
import random
import requests
from datasets import load_dataset
from transformers import AutoTokenizer
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument("--tokens", default=10**9, type=int,
help="The number of tokens to subset.")
args = parser.parse_args()
tokenizer = AutoTokenizer.from_pretrained("common-pile/comma-v0.1-1t")
dataset = load_dataset("common-pile/comma_v0.1_training_dataset")
used = set()
token_count = 0
split = {"train":[]}
if os.path.exists("subset_resume.json"):
with open("subset_resume.json") as infile:
data = json.load(infile)
spans = set(data["used"])
token_count = data["token_count"]
split = data["split"]
milestone = 10 ** 6
while token_count < args.tokens:
choices = set()
for i in range(64):
choice = random.randrange(dataset["train"].num_rows)
while choice in used:
choice = random.randrange(dataset["train"].num_rows)
used.add(choice)
choices.add(choice)
assert len(choices) == 64
items = []
for choice in choices:
items.append(dataset["train"][choice])
texts = [item["text"] for item in items]
token_count += sum([len(i) for i in tokenizer(texts)["input_ids"]])
split["train"].extend(items)
if token_count > milestone:
with open("subset_resume.json", "w") as outfile:
serial_used = list(used)
json.dump({"used":serial_used, "token_count":token_count, "split":split}, outfile)
milestone += 10 ** 6
print(token_count, f"{(token_count / args.tokens) * 100}%")
with open(f"subset_{args.tokens}.json", "w") as outfile:
json.dump(split, outfile)
Feel free to modify and use this script to create subsets of other datasets.
The dataset was sharded using the following script:
import json
import gzip
import math
from pathlib import Path
def shard_dataset(input_file, output_dir, num_shards=4):
"""
Shard a JSON dataset into multiple gzipped JSON lines files.
Args:
input_file (str): Path to the input JSON file
output_dir (str): Directory where shards will be saved
num_shards (int): Number of shards to create
"""
# Create output directory if it doesn't exist
Path(output_dir).mkdir(parents=True, exist_ok=True)
# Load the dataset
print(f"Loading dataset from {input_file}...")
with open(input_file, 'r') as f:
data = json.load(f)
# Extract the training examples
train_examples = data["train"]
total_examples = len(train_examples)
examples_per_shard = math.ceil(total_examples / num_shards)
print(f"Found {total_examples} examples, splitting into {num_shards} shards")
# Create each shard
for shard_idx in range(num_shards):
# Calculate start and end indices for this shard
start_idx = shard_idx * examples_per_shard
end_idx = min((shard_idx + 1) * examples_per_shard, total_examples)
# Format the filename with zero-padding
filename = f"train-{shard_idx:05d}-of-{num_shards:05d}.jsonl.gz"
filepath = Path(output_dir) / filename
print(f"Creating shard {shard_idx+1}/{num_shards}: {filename}")
# Write the shard as gzipped JSON lines
with gzip.open(filepath, 'wt', encoding='utf-8') as f:
for i in range(start_idx, end_idx):
# Write each example as a JSON line
json_line = json.dumps(train_examples[i])
f.write(json_line + '\n')
print(f"Finished creating {num_shards} shards in {output_dir}")
if __name__ == "__main__":
# Configuration - update these paths as needed
input_json_file = "1B_sample/train.json" # Update this path
output_directory = "1B_sample/sharded_dataset" # Update this if needed
# Shard the dataset into 4 parts
shard_dataset(input_json_file, output_directory, num_shards=4)
- Downloads last month
- 6