content stringlengths 10 4.9M |
|---|
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file acco... |
/*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
<reponame>run-ai/runai-cli
package flags
import (
"strconv"
"time"
flag "github.com/spf13/pflag"
)
type intNullableArgument struct {
variableToSet **int
}
type float64NullableArgument struct {
variableToSet **float64
}
func newIntNullableArgument(variable **int) *intNullableArgument {
return &intNullableArgu... |
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package cloudsearch
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/defaults"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/service"
"github.com/aws/aws-sdk-go/aws/service/serviceinfo"
"github.com/aws/aws-sdk-... |
/**
* Checks to see if character's top and bottom have collision with the given
* ball object.
*
* @param character
* object which you want to check collision of.
* @param ball
* object with which you want to check collision.
*
* @return DOWN if character's bottom side has collided with the wall ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { CoreModule } from '../../../core/core.module';
import { BooleanIndicatorComponent, BooleanIndicatorType } from './boolean-indicator.component';
describe('Bool... |
'SNL': Melissa McCarthy is back as Sean Spicer, and with a leaf blower
CLOSE Melissa McCarthy completely killed it last week on SNL as White House Press Secretary Sean Spicer, and this week she returned for a much anticipated encore, showing up in the cold open. USA TODAY
Watch out, White House Press Corps: Spicey's ... |
def rectSet(rectList):
toReturn = []
for rect in rectList:
if rect not in toReturn:
toReturn.append(rect)
return toReturn |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ____ ___ __ _
// / __// o |,'_/ .' \
// / _/ / _,'/ /_n / o / _ __ _ ___ _ _ __
// /_/ /_/ |__,'/_n_/ / \,' /.' \ ,' _/,' \ / |/ /
// / \,' // o /_\ `./ o ... |
/*
* Copyright (c) 2015 Intellectual Reserve, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
<reponame>DataDog/goshe<filename>cmd/tail.go
// +build linux darwin freebsd
package cmd
import (
"bufio"
"fmt"
"github.com/DataDog/datadog-go/statsd"
"github.com/hpcloud/tail"
"github.com/spf13/cobra"
"os"
"os/exec"
"regexp"
"strings"
)
var tailCmd = &cobra.Command{
Use: "tail",
Short: "Tail logs or std... |
#pragma once
#include <string>
#include <iostream>
#include <iomanip>
using namespace std;
// There are three types of records in a closed hash:
// Normal records, empty records, and tombstones
enum RecordType { normalRecord, emptyRecord, tombstone };
// Each record holds an integer key and a value of a... |
<gh_stars>1-10
package models
// CommandWrapper struct for CommandWrapper
type CommandWrapper struct {
GroupId int64 `json:"groupId,omitempty"`
ClientId int64 `json:"clientId,omitempty"`
LoanId int64 `json:"loanId,omitempty"`
SavingsId ... |
/**
* Get the enum constant with the given name (ignoring case), or {@code defaultValue} if no
* match is found.
*
* @return The enum constant with the given name, or {@code defaultValue} if invalid.
*/
public static <E extends Enum<E>> E byName(String name, E defaultValue) {
for (E e :... |
/**
* Parses a {@code String agenda} into a {@code Agenda}.
* Leading and trailing whitespaces will be trimmed.
*
* @throws ParseException if the given {@code agenda} is invalid.
*/
public static Agenda parseAgenda(String agenda) throws ParseException {
requireNonNull(agenda);
S... |
def write_page(self, page_text, filepath):
if self.mode == "pdf":
base_folder = self.staging_folder
else:
base_folder = self.out_path
out_folder = os.path.join(base_folder, os.path.dirname(filepath))
if not os.path.isdir(out_folder):
logger.info("creat... |
package mvc;
import javafx.application.Application;
import javafx.stage.Stage;
public class MVCCounter extends Application {
public static void main (String[] args) {
Application.launch(args);
}
public void start (Stage stage) {
CounterModel model = new CounterModel();
CounterCon... |
// Clones the given selector and returns a new selector with the given key and value added.
// Returns the given selector, if labelKey is empty.
func CloneSelectorAndAddLabel(selector *metav1.LabelSelector, labelKey, labelValue string) *metav1.LabelSelector {
if labelKey == "" {
return selector
}
newSelector := ne... |
/**
* Sets the form style.
*The possible values are:
*DECORATED - Default style.
*UNDECORATED - Window without decorations.
*TRANSPARENT - Transparent window without decorations.
*UTILITY - Window with minimal decorations.
*/
public void SetFormStyle(String Style) {
if (Style.equals("UNIFIED"))
St... |
Organizing the Unorganized Lifestyle Retailers in India: An Integrated Framework
India is one of the largest countries with consumers belonging to widest range of Religions, Regions, Languages, Sub-Cultures, Ethnicities, and Economic backgrounds which makes it difficult for just few organized lifestyle retailers to se... |
def make_wsgi_app(registry=REGISTRY):
def prometheus_app(environ, start_response):
params = parse_qs(environ.get('QUERY_STRING', ''))
r = registry
encoder, content_type = choose_encoder(environ.get('HTTP_ACCEPT'))
if 'name[]' in params:
r = r.restricted_registry(params['n... |
<reponame>sidmani/OsuBot
#include "mouse.h"
#include "definitions.h"
void click(point p);
void beginDrag(point p);
void endDrag(point p);
void endDragNull();
void moveTo(point p);
void click(point p)
{
CGEventRef leftDown = CGEventCreateMouseEvent(NULL, kCGEventLeftMouseDown, CGPointMake(p.x, p.y), kCGMouseButtonL... |
package models
import (
"time"
)
// Course defines the structure of a course
// swagger:model
type Course struct {
// Name of the course
// required: true
Name string `json:"name" bson:"name" validate:"required"`
// Code for the course
// required: true
Code string `json:"code" bson:"code" validate:"req... |
/**
* Tests the general case when a user account is created.
*
* @throws Exception ex
*/
@Test
public void testAccountCreation() throws Exception {
AuthorizeUserAction authorizeUser = new AuthorizeUserAction(USER_DN_6, 0);
NiFiUser user = authorizeUser.execute(daoFactory, authori... |
Effects of Selenium Nanoparticles Combined With Radiotherapy on Lung Cancer Cells
Objective To investigate the effects of selenium nanoparticles (nano-Se) combined with radiotherapy on the proliferation, migration, invasion, and apoptosis of non-small cell lung cancer (NSCLC) A549 and NCI-H23 cells. Methods Nano-Se wa... |
//! Report the reasons collected from the compiler why the specific function
//! needs to use unsafe blocks.
use super::utils::DefPathResolver;
use crate::write_csv;
use corpus_database::tables::Loader;
use std::collections::HashSet;
use std::path::Path;
pub fn query(loader: &Loader, report_path: &Path) {
let def... |
Maneesh Sethi/YouTube; screenshot by Chris Matyszczyk/CNET
One of my favorite exes used to put her hand over my mouth, just before I was about to say something monumentally stupid. (She could guess most of the time.)
It made me more socially productive.
I can therefore entirely sympathize with Maneesh Sethi, a San F... |
def eval_model(self, data_object):
if self.model is None:
self.model = self.load_model(data_object)
logging.info("Evaluating model performance on testing data")
X_train, y_train, X_test, y_test = self._get_data(data_object)
model_predictions = self.model.predict(X_test)
... |
/**
* Checks whether observation is locked out of edits from personal diary.
*
* NOTE! Here are no checks on whether permit is locked or permit partner
* has finished hunting.
*/
public static boolean isLockedOutOfPersonalDiaryEdits(final @Nonnull Observation observation,
... |
def sourceNl_to_ints(self, source_nl):
source_nl_clean = source_nl.lower().replace("'", ' ').replace('-', ' ')
source_nl_clean_tok = word_tokenize(source_nl_clean, "english")
source_ints = [int(self.vocab_source[elt]) if elt in self.vocab_source else \
self.OOV_token f... |
X,N,*P = map(int,open(0).read().split())
if P != []:
P = sorted(list(P),reverse=True)
else:
print(X)
exit()
min_diff = 101
min_val = 101
for i in range(101,-1,-1):
#print(i,min_val,min_val)
if not i in P:
if abs(X-i) <= min_diff and min_val >=i:
min_diff = abs(X-i)
min_val = i
ans = min_va... |
n1 = int(input())
n2 = input()
A=0; i=1; B=""
while A<n1:
B += n2[A]
A += i
i += 1
print(B) |
/**
* Definition of Trump
*/
public class PbnTrump
{
public static final int IDLE = -1;
public static final int CLUBS = 0;
public static final int DIAMONDS = 1;
public static final int HEARTS = 2;
public static final int SPADES = 3;
public static final int NO... |
Image copyright AP Image caption A Counter-Terrorism Service (CTS) spokesman said its troops had cleared Hit of all gunmen
Iraqi troops have recaptured the strategically important western town of Hit from Islamic State militants after weeks of fighting, officials say.
The military declared that Hit had been "complete... |
/**
* Internal extension that registers a {@link ReaderEventListener} to store
* registered {@link ComponentDefinition}s.
*/
private static class ToolingTestApplicationContext extends ClassPathXmlApplicationContext {
private Set<ComponentDefinition> registeredComponents;
public ToolingTestApplicationContext... |
<reponame>robertojmm/rmdb
import fs from "fs";
import { settings } from "@/settings";
import i18n from "@/i18n";
import { changeTheme } from "@/themes";
import { changeParser } from "@/parsers";
import { initDB } from "@/database";
function init(): void {
const directories = settings.get("directories");
const app... |
import { BaseForm } from './baseform';
import contants from 'contants';
import Axios from 'axios';
export class Payment extends BaseForm {
money;
task;
constructor(...args) {
super(args[0], args[1], args[2])
}
activate(model, nctx) {
super.activate(model, nctx);
this.es... |
// UpdateWithClient adds Teleport configuration to kubeconfig based on the
// configured TeleportClient.
//
// If `path` is empty, UpdateWithClient will try to guess it based on the
// environment or known defaults.
func UpdateWithClient(path string, tc *client.TeleportClient) error {
clusterAddr := tc.KubeClusterAddr... |
<filename>challenges/the-minion-game.py
# SRC: https://www.hackerrank.com/challenges/the-minion-game/problem
# Functions
def substring_count(string, sub):
count = start = 0
while True:
start = string.find(sub, start) + 1
if start > 0:
count += 1
else:
return cou... |
During the week at the Kennedy Space Center we talked with a trio of friendly astronauts about ....
From a standing start the shuttle reaches Mach 25, 17,500 miles an hour in 8.5 minutes, faster than anyone has ever gone on the 405.
In their explosive teamwork those rockets are generating more than 39 million horsepo... |
Process of becoming a mother for Iranian surrogacy‐commissioning mothers: A grounded theory study
AIM
Little knowledge is available about the experiences of the commissioning mothers during the process of surrogacy; thus, the present study was conducted in order to explore and analyze this process.
METHODS
This stud... |
<reponame>AlbertiPot/CTNAS
import torch
class MovingAverageMetric(object):
def __init__(self, alpha=0.9):
self.alpha = alpha
self.reset()
def reset(self,) -> None:
self._value = 0
def update(self, value) -> None:
if torch.is_tensor(value):
v = value.item()
... |
def name_to_layer(self, name, idx):
if name not in self.function_mapping:
raise ValueError('name %s not exists in function mapping' % name)
layer = self.function_mapping[name]
cls, args = layer['cls'], layer['args']
args['name'] = name + '_id_%d' % idx
return cls(**ar... |
def iterdir(self, path: PurePath) -> Iterator[str]:
for child in self.resolve(path).iterdir():
child = child.relative_to(self._root)
yield child.name |
What's the right way to go around Green Lake?
“What’s the right way to go around Green Lake?” Isaac Chirino of Shoreline asked KUOW’s Local Wonder. Boy, people REALLY care about this one. People like Carolyn Frost. In the early 1990s, she and a friend walked the Seattle lake’s 2.8-mile path every morning. But there we... |
<filename>lib/targets/legacy/index.ts
import { TsGeneratorPlugin, TFileDesc, TContext, getRelativeModulePath } from "ts-generator";
import { join, dirname } from "path";
import { codegen, getRuntime } from "./generation";
import { extractAbi } from "../../parser/abiParser";
import { getFilename } from "../shared";
exp... |
//This is the word break method
public static void wordBreak(String str, String ans, HashSet<String> dict){
if(str.length() == 0){
System.out.println(ans);
return;
}
for(int i = 0; i < str.length(); i++){
String left = str.substring(0, i+1);
if(dict.contains(left)){
String right = str.substring(i+... |
<filename>src/js/lib/histogramInterval.test.ts
import brim from "../brim"
import histogramInterval from "./histogramInterval"
import {DateTuple} from "./TimeWindow"
const start = new Date()
test("returns the proper format", () => {
const end = brim
.time(start)
.add(5, "minutes")
.toDate()
const timeW... |
//
// resolve the image from the given tile set
//
func resolveImage(tiles map[int]tileDef) []string {
used := 0
image := []string{}
leftTile := findFirstCorner(tiles)
fmt.Println(leftTile.id)
currentTile := leftTile
imagePos := 0
for used < len(tiles) {
for {
fmt.Printf(" %d ", currentTile.id)
for pos, ... |
This is the Top Ten Bleeding Cool Bestseller List, as compiled by a number of comic stores from their sales on Wednesday and Thursday. It measures what are known as the “Wednesday Warriors”, those who can’t wait to the weekend to get this week’s comics. We salute you, and the keenness you bring to your passion.
Marvel... |
Psychological management of individual performance.
About the Editor About the Contributors Series Preface Preface Part 1: Performance: Concept, Theory, and Predictors Performance Concepts and Performance Theory (Sabine Sonnentag and Michael Frese) 2. Ability and Non-ability Predictors of Job Performance (Ruth Kanfer ... |
/**
* Iniciar propiedades.
* @param prop nombre del fichero.
*/
private void iniciarPropiedades(final String prop) {
try {
this.configProperties = new Properties();
this.configProperties.load(new FileInputStream(prop));
} catch (IOException ex) {
logger... |
<reponame>CASMarkusHimmel/kata-csvreader-java<filename>src/main/java/de/cas/mse/exercise/csv/CsvHeader.java
package de.cas.mse.exercise.csv;
import java.util.List;
import de.cas.mse.exercise.csv.ui.CsvUi;
public class CsvHeader {
private final List<CsvColumn> columns;
public CsvHeader(List<CsvColumn> columns... |
Conceptual design and multidisciplinary optimization of in-plane morphing wing structures
In this paper, the topology optimization methodology for the synthesis of distributed actuation system with specific applications to the morphing air vehicle is discussed. The main emphasis is placed on the topology optimization ... |
/**
* Representation of the result of loading a GamesBackup.
* @author nolan
*
*/
public class LoadGamesBackupResult {
private String filename;
private int numFound;
private int numDuplicates;
private List<Game> loadedGames;
public String getFilename() {
return filename;
}
public void setFilename(String... |
def fname_callback(option, op_str, value, parser):
flist = []
for arg in parser.rargs:
if arg[0] is "-":
break
else:
flist.append(arg)
setattr(parser.values, option.dest, flist) |
def ham(s1, s2):
if len(s1) != len(s2):
raise ValueError("Undefined for sequences of unequal length")
mm=0
sup=0
for el1, el2 in zip(s1, s2):
if el1=='-' and el2=='-':
continue
sup +=1
if el1 != el2:
mm +=1
return mm*1.0/sup |
def add_user(self, name: str) -> None:
connection, cursor = self.create_connection()
qrc = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H)
qrc.add_data(name)
qrc.make(fit=True)
image = qrc.make_image()
image.save(
"./qr/" + sha3_512(name.encod... |
<reponame>thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python<filename>Capitulo_10/exercise10_8/exercise10_8.py
"""
10.8 – Gatos e cachorros: Crie dois arquivos, cats.txt e dogs.txt. Armazene pelo
menos três nomes de gatos no primeiro arquivo e três nomes de cachorro no
segundo arquivo. Escreva um program... |
def step(self):
if self.__finished:
return
if self.__connector.getPresence() and not self.__connector.isLocked():
self.__connector.lock()
elif self.__encoder.getValue() > REPLICA_DECOUPLING_ANGLE:
self.__enable_statuette_decoupling = True
elif self.__e... |
package org.qfox.jestful.client.cache.impl.http;
import org.qfox.jestful.client.cache.impl.http.annotation.CacheControl;
import org.qfox.jestful.client.cache.impl.http.annotation.CacheExtension;
import org.qfox.jestful.commons.StringKit;
import org.qfox.jestful.commons.collection.CaseInsensitiveMap;
import org.qfox.je... |
def image_summary(name: str,
data: tf.Tensor,
fps=25,
step: int = None,
max_outputs=3):
rank = data.shape.ndims
assert rank >= 3
if rank > 5:
data = merge_video_time_dimensions(data)
if rank == 3:
data = tf.expand_di... |
/**
* Try out manually some performance measures.
*/
public class TryPerformanceMeasure {
private JSONObject response;
public static void main(final String args[]) throws Exception {
// increase vehicles
// String requestFile = "src/test/resources/metrics/vehicles/req_v68_b1.json";
... |
My friend was physically assaulted for wearing a Trump hat at a Purim party in Washington, D.C. I watched it happen. A guy walked over from behind and flipped his cap off because it said “Trump” on the back of it. “You voted for Trump!” he yelled.
I was dying of laughter because I knew my friend is a very liberal Demo... |
<filename>core/service/data/notify.ts<gh_stars>1-10
import axios from '@/utils/axios'
import { Request } from '@/interface/request'
import { Notify } from '@/interface/request/notify'
/** 获取公告 */
export const getNotic = () => axios.send<Request.Result<Notify.Notic>>(axios.api.notify.notic)
export const getFrie... |
<reponame>datmaAtmanEuler/VietGoal2
export class Content {
Id:number = 0;
Title:string = '';
Content:string = '';
}
|
from seamless.core import context, cell, StructuredCell
ctx = context(toplevel=True)
ctx.data = cell("mixed")
ctx.sc = StructuredCell(
data=ctx.data
)
data = ctx.sc.handle
data.set(20)
print(data)
ctx.compute()
print(data.data, ctx.data.value)
data.set({})
data.a = "test"
data.b = 12
data.b.set(5)
data.c = {"d": ... |
/**
* Filter XAttrs from a list of existing XAttrs. Removes matched XAttrs from
* toFilter and puts them into filtered. Upon completion,
* toFilter contains the filter XAttrs that were not found, while
* fitleredXAttrs contains the XAttrs that were found.
*
* @param existingXAttrs Existing XAttrs to b... |
def _get_from_cache(self, sector, scale, eft, basis):
try:
return self._cache[eft][scale][basis][sector]
except KeyError:
return None |
<reponame>sbbnethub/sbbnethub
import { countBy } from "./index";
export = countBy;
|
// askForString asks for a string once, using the default if the
// anser is empty. Errors are only returned on I/O errors
func (s *Action) askForString(ctx context.Context, text, def string) (string, error) {
if ctxutil.IsAlwaysYes(ctx) {
return def, nil
}
select {
case <-ctx.Done():
return def, errors.New("us... |
def pairtree_path(filehash, level=2):
parts = [filehash[(i*2):(i*2)+2] for i,l in enumerate(range(level))]
parts.append(filehash)
return os.sep.join(parts) |
//Stop the timer 1.
#ifndef TM1_STOP_H
#define TM1_STOP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <IO.h>
extern void tm1_stop(void);
#ifdef __cplusplus
}
#endif
#endif
|
def accept_damage(self, damage: Damage):
pass |
<reponame>Medium-One/s5d9-diagnostics-intelligence-with-wifi-and-ota
/***********************************************************************************************************************
* Copyright [2015] Renesas Electronics Corporation and/or its licensors. All Rights Reserved.
*
* The contents of this file ... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/**
* DB instance a shard in storage
* Stores each of the key with multiple suffixes
*/
public class MultiMapRecordDb {
private Logger logger = LogManager.getLogger(MultiMapRecordDb.class);
RocksDB db;
String dbPath;
//ReentrantLock writeLock = new ReentrantLock();
final int instanceId;
fina... |
def process_file(contents, filename, filedate, years, row_count="max"):
if years:
read_cols = years + ['id']
else:
read_cols = "all"
f = filename[0]
split = f.split('_')
try:
if 'zip' in filename[0]:
zip_file = None
for content, name, date in zip(conte... |
<reponame>demosdemon/libmusicbrainz-objc
//
// @file MBRelease.h
// @author <NAME>
// @date Jun 7 2010
// @copyright
// 2010 <NAME> <<EMAIL>> \n
// 2012 <NAME> <<EMAIL>> \n
// This program is made available under the terms of the MIT License.
//
// @brief Release entity
#import "MBRateAndTaggableEntity.h"
@clas... |
def floor_height(self):
return self.chunk.terrain[self.pos.as_tuple()] |
// ReadTable is a convenience function to quickly and easily read a parquet file
// into an arrow table.
//
// The schema of the arrow table is generated based on the schema of the parquet file,
// including nested columns/lists/etc. in the same fashion as the FromParquetSchema
// function. This just encapsulates the l... |
S=input()
T=input()
slist=list(S)
tlist=list(T)
l=len(slist)
res=0
for i in range(0,l):
if(slist[i]!=tlist[i]):
res+=1
print(res) |
<reponame>pelderson/knooppuntnet
import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {Util} from "../components/shared/util";
import {ReplicationStatusPageComponent} from "./status/replication-status-page.component";
import {StatusPageComponent} from "./status/status-pag... |
/**
* Configurator class red data from different json file like advancementRewards.json and store in advancementRewards Map<String, Double> object
* we will now compare value in database with the values that the configurator class has read
* and update the value to the database if value changed
*/
p... |
Before becoming Delhi Chief Minister Arvind Kejriwal had promised free water upto 20,000 litres for every household. (Photo: PTI)
Arvind Kejriwal's Aam Aadmi Party stormed to power in 2015 decimating the Congress and pushing the BJP to the margins with his promise of free water, cheaper electricity and corruption-free... |
private static boolean addToZip(String addFileFromThisDir, File addThis, ZipOutputStream zos) {
if (addThis.isDirectory()) return false;
String entryPath;
String addThisPath = addThis.getAbsolutePath();
if (!addThisPath.startsWith(addFileFromThisDir)) {
System.out.println... |
/**
* Utility to set DistCp options.
*/
public final class DistCPOptionsUtil {
private static final String TDE_ENCRYPTION_ENABLED = "tdeEncryptionEnabled";
private DistCPOptionsUtil() {}
public static DistCpOptions getDistCpOptions(CommandLine cmd,
List<P... |
// CheckPasswordAndIssueKey() checks whether the username/password combo
// checks out. If so, it will generate (and return) a new key associated with
// that username. Returns an empty string and appropriate error if the
// username/password combo is bad.
//
func CheckPasswordAndIssueKey(uname, pwd string) (string, er... |
Tunable thulium-doped mode-locked fiber laser with watt-level average power.
We demonstrate a wavelength-tunable, sub-200 fs, and watt-level thulium-doped ultrafast fiber oscillator with a fundamental frequency repetition rate of 509.7 MHz. The wavelength can be tuned between 1918.5 nm and 2031 nm by adjusting the int... |
def gauss(self, full_reduce:bool=False, x:Any=None, y:Any=None, blocksize:int=6, pivot_cols:List[int]=[]) -> int:
rows = self.rows()
cols = self.cols()
pivot_row = 0
for sec in range(math.ceil(cols / blocksize)):
i0 = sec * blocksize
i1 = min(cols, (sec+1) * block... |
// Adjacent3DActives tries to find the actives adjacent to this position
func (p *Program) Adjacent3DActives(x, y, z int) int {
actives := 0
for i := x - 1; i <= x+1; i++ {
for j := y - 1; j <= y+1; j++ {
for k := z - 1; k <= z+1; k++ {
if (i >= 0 && i < len(p.Map3D)) && (j >= 0 && j < len(p.Map3D[i])) && (k... |
The State of Texas has spent nearly $650,000 in taxpayer money underwriting state efforts to roll back abortion access over the past two years, according to public records obtained by Rewire .
The State of Texas has spent nearly $650,000 in taxpayer money underwriting state efforts to roll back abortion access over th... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
<reponame>mrwangzhanwei/cloud-brideg<filename>cloud-bridge-common/src/main/java/com/cloud_bridge/conf/ConfigFactory.java
package com.cloud_bridge.conf;
/**
* @author 王战伟
* @email <EMAIL>
* @date 2020/3/25 10:03
*/
public interface ConfigFactory {
String filaPath="config.properties";
ServerConfig getConf... |
export * from './tsconfig';
export * from './compiler_host';
export * from './diagnostics';
export * from './file_cache';
export * from './worker';
export * from './manifest';
|
The Chinese Room: Visualization and Interaction to Understand and Correct Ambiguous Machine Translation
We present The Chinese Room, a visualization interface that allows users to explore and interact with a multitude of linguistic resources in order to decode and correct poor machine translations. The target users of... |
/**
* Moves the view
* @param deltaX delta
*/
public void move(float deltaX) {
swipeListView.onMove(downPosition, deltaX);
if (swipeCurrentAction == SwipeListView.SWIPE_ACTION_DISMISS) {
setTranslationX(parentView, deltaX);
setAlpha(parentView, Math.max(0f, Math.mi... |
Perugia, Italy (CNN) -- An Italian jury has found American student Amanda Knox and her Italian boyfriend Raffaele Sollecito guilty in the stabbing death of British exchange student Meredith Kercher.
Knox was sentenced to 26 years in prison and Sollecito was sentenced to 25 years.
Both were convicted on all charges ex... |
<gh_stars>0
package com.wstro.dao;
import com.wstro.entity.SsqBet;
import com.wstro.util.BaseDao;
public interface SsqBetDao extends BaseDao<SsqBet> {
}
|
/**
* Evaluate the script.
*
* @param execName the name that will be passed to BSF for this script execution.
* @return the result of the evaluation
* @exception BuildException if something goes wrong executing the script.
*/
@Override
public Object evaluateScript(String execName) thro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.