content stringlengths 10 4.9M |
|---|
/*
* @test /nodynamiccopyright/
* @bug 6943289
*
* @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
* @author mcimadamore
* @compile/fail/ref=Neg03.out -XDrawDiagnostics Neg03.java
*
*/
class Neg03 {
static class A extends Exception { public void m() {}; public Object f;}
... |
Tie Knots
The Windsor (1): Popularized by the Duke of Windsor, this knot creates a perfectly symmetrical shape, suitable to fill wide spread collars.
The Half Windsor (2): The Windsor knot only less so, the half Windsor has one less loop and a slimmer shape, with the same symmetry as its big brother.
The Four-in-Han... |
<gh_stars>1-10
import {Component, OnInit} from '@angular/core';
import {AppointmentService} from '../../../../services/appointment/appointment.service';
import {Appointment} from 'src/app/interfaces/appointment';
import {MatDialog, MatDialogConfig} from '@angular/material';
import {CancelDialogComponent} from 'src/app/... |
/**
* Created by Administrator on 2018/5/25.
*/
public class W30OTAActivity extends WatchBaseActivity implements RequestView{
private static final String TAG = "W30OTAActivity";
@BindView(R.id.progressBar_upgrade)
ProgressBar progressBarUpgrade;
@BindView(R.id.btn_start_up)
Button btnStartUp;
... |
Please enable Javascript to watch this video
DAVIS COUNTY -- Utah law allows county jails to charge inmates for restitution, and since the law was passed in 2007, the Davis County Sheriff's Office has been charging inmates $10 a day during their incarceration.
But, have they been going about this illegally?
The Davi... |
/**
* Parses input arguments and creates a new ViewCommitHistoryCommand object.
*/
public class ViewCommitHistoryParser implements Parser<ViewCommitHistoryCommand> {
/**
* Parses the given {@code String} of arguments in the context of the
* ViewCommitHistoryCommand and returns an ViewCommitHistoryComman... |
Thomas Nast (; German: [nast]; September 27, 1840 – December 7, 1902) was a German-born American caricaturist and editorial cartoonist considered to be the "Father of the American Cartoon".[1] He was the scourge of Democratic Representative "Boss" Tweed and the Tammany Hall Democratic party political machine. Among his... |
import java.util.Scanner;
public class Main {
static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int t = scanner.nextInt();
scanner.nextLine();
for (int i = 0; i < t; ++i) {
solve();
}
}
public static ... |
<gh_stars>0
package net.onrc.openvirtex.util;
public class OVXUtil {
public static int NUMBITSNEEDED(int x) {
int counter = 0;
while (x !=0) {
x >>= 1;
counter++;
}
return counter;
}
}
|
// New creates a new hyperloglog counter with the specified precision. p must be in the range [4,18]
func New(p uint8) Counter {
if p < 4 || p > 18 {
panic("hll: precision p must be in range [4,18]")
}
m := int(1 << uint(p))
c := Counter{
p: p,
bits: bitbucket.New(m, 6),
}
c.initParams()
return c
} |
<reponame>ghh0000/testTs<filename>node_modules/typeorm/decorator/options/EntityOptions.d.ts
import { OrderByCondition } from "../../find-options/OrderByCondition";
/**
* Describes all entity's options.
*/
export interface EntityOptions {
/**
* Specifies a default order by used for queries from this table whe... |
import java.util.*;
public class test {
public static void main(String args[]) {
//declare a scanner to take input
Scanner scan = new Scanner(System.in);
//take input of the number of numbers and number of operations
long n = scan.nextInt(), q = scan.nextInt();
//declare a prefix sum array
... |
Associations Between Patient-Provider Secure Message Content and Patients' Health Care Visits.
Background: Between-visit communications can play a vital role in improving intermediate patient outcomes such as access to care and satisfaction. Secure messaging is a growing modality for these communications, but research... |
N,A,B = map(int,input().split())
if A>B or (N==1 and A!=B): print(0)
elif A==B or N==2: print(1)
else:
N-=2
print(B*N-A*N+1) |
package org.swiftboot.demo.model.dao;
/**
* 订单数据查询接口
*
* @author swiftech 2019-04-07
**/
public interface OrderCustomizeDao {
}
|
<reponame>thinktkj/simple-cms<filename>src/main/java/vip/toby/cms/core/service/IDataBaseService.java<gh_stars>1-10
package vip.toby.cms.core.service;
import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
/**
* 数据操作业务逻辑接口(增删改查)
*/
p... |
<reponame>mpolanec/Master-thesis
package si.um.feri.mag.polanec.data;
import si.um.feri.mag.polanec.enums.DataSource;
import si.um.feri.mag.polanec.enums.MetricsType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
/**
* Paths to known data files. Dat... |
<gh_stars>10-100
module Writer.Formats.Example where
--- ^^^ CHANGE THIS TO THE NAME OF THE FILE / YOUR FORMAT
-----------------------------------------------------------------------------
{- This is an example file, which explains the basics to add a new
- writer to the tool. Basically, a writer is a function that... |
/**
* @author denghuabing
* @version V1.0
* @description: TODO
* @date 2020/9/8
**/
@Data
public class DeviceImportForm extends ImportErrorData {
@ExcelField(title = "终端号", required = true, repeatable = false)
private String deviceNumber; // 终端编号
/**
* 所属企业名称
*/
@ExcelField(title = "所属企... |
Review of Pain and Prejudice
One of the most urgent issues confronting science these days is identifying ways to do research that will increase its impact on pressing problems. While this concern is hardly new, the pronounced current interest is reflected in the large number of approaches being explored to address thi... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LugaresController } from './controller/lugares.controller';
import { Lugares } from './models/lugares.entity';
import { LugaresService } from './service/lugares.service';
@Module({
imports: [TypeOrmModule.forFeature(... |
Get the biggest Weekday Swansea City FC stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email
Swansea City have offered a cut-price deal to Athletic Bilbao for versatile defender Jon Aurtenetxe – according to repo... |
Characterization and exposure measurement for indium oxide nanofibers generated as byproducts in the LED manufacturing environment
ABSTRACT This article aimed to elucidate the physicochemical characteristics and exposure concentration of powder and airborne particles as byproducts generated from indium tin oxide thin ... |
// Day 8: Memory Maneuver
//
#[derive(Default, Debug, PartialEq)]
pub struct Node {
children: Vec<Node>,
metadata: Vec<usize>,
length: usize, // Total count of numbers in this node. For root, this is the total count of the tree
}
impl std::convert::AsRef<Node> for Node {
fn as_ref(&self) -> &Node {
... |
package main
import (
"database/sql"
cdns "github.com/mosajjal/dnszeppelin"
mkdns "github.com/miekg/dns"
"github.com/stretchr/testify/assert"
"net"
"sync"
"testing"
"time"
)
func TestSendData(t *testing.T) {
resultChannel := make(chan cdns.DNSResult, 1)
done := make(chan bool)
var wg sync.WaitGroup
go out... |
/*
* Copyright (C)2016 - SMBJ Contributors
*
* 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... |
package aesf_test
import (
. "github.com/vitas/artemis/aesf"
"testing"
)
type MockWorld struct{}
func (mw MockWorld) GetName() string { return "MockWorld" }
func (mw *MockWorld) Initialize() {}
func (mw MockWorld) GetEntityManager() *EntityManager { return nil }
func (mw MockWo... |
<gh_stars>0
package pl.patryk.wine.model;
import pl.patryk.wine.model.enums.WineColor;
import pl.patryk.wine.model.enums.WineType;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Objects;
@Entity(name = "twine")
public class Win... |
class QuizUserScores:
scores: List[QuizUserScore]
""" first has largest score """
count: Dict[int, int]
""" id → answers """
questions: Dict[int, QuizQuestion] |
// ApplyQueries sends the list of Queries to be applied (upserted) to the
// Fleet instance.
func (c *Client) ApplyQueries(specs []*fleet.QuerySpec) error {
req := applyQuerySpecsRequest{Specs: specs}
verb, path := "POST", "/api/latest/fleet/spec/queries"
var responseBody applyQuerySpecsResponse
return c.authentica... |
/*
* Encodes an Asn1Object into a Open type field (X.691-0207, 10.2), used
* mostly for encoding Sequence and SetOf extension additions. A decode method
* hasn't been added as the extension additions should decoded
* by their relevent Asn1Object decoders.
*/
public static Iterable<BitStream> encodeOpenT... |
// LaunchFromShelf launches lacros-chrome via shelf.
func LaunchFromShelf(ctx context.Context, tconn *chrome.TestConn, lacrosPath string) (*launcher.LacrosChrome, error) {
const newTabTitle = "New Tab"
if err := ash.ShowHotseat(ctx, tconn); err != nil {
return nil, errors.Wrap(err, "failed to show hot seat")
}
te... |
/* Allocate two source registers for three-operand instructions. */
static Reg ra_alloc2(ASMState *as, IRIns *ir, RegSet allow)
{
IRIns *irl = IR(ir->op1), *irr = IR(ir->op2);
Reg left = irl->r, right = irr->r;
if (ra_hasreg(left)) {
ra_noweak(as, left);
if (ra_noreg(right))
right = ra_allocref(as, ... |
export class Survey {
name: string;
questions: [
{
question: string,
answers: [
{
answer: string,
counter: number
}
]
}
];
public: boolean;
author: string;
filled: [
... |
def vstack_img_with_palette(top_img: np.ndarray, palette_img: np.ndarray) -> np.ndarray:
img_n_rows = top_img.shape[0]
palette_n_rows = palette_img.shape[0]
img_n_cols = top_img.shape[1]
palette_n_cols = palette_img.shape[1]
fx = img_n_cols / palette_n_cols
fy = fx
rsz_cols = int(np.round(fx... |
def combine_s3_datasets(keys, dropnans=1):
F = pd.read_csv(keys[0], index_col="ipst")
T = pd.read_csv(keys[1], index_col="ipst")
P = pd.read_csv(keys[2], index_col="ipst")
print("Features: ", len(F))
print("Targets: ", len(T))
print("Preds: ", len(P))
data = F.join(T, how="left")
if drop... |
import PersistencePointTuple from '../persistence-point-tuple';
import Bounds from '../bounds';
/**
* The data returned by the loader
*/
export interface ILoaderData {
readonly points: PersistencePointTuple[];
readonly bounds: number[];
readonly persistenceBounds: Bounds;
}
export interface ILoader {
load(T... |
<reponame>planaria/rewin<filename>include/rewin/button_view.hpp
#pragma once
#include "view.hpp"
#include "view_impl.hpp"
#include "command.hpp"
#include "margin_view.hpp"
#include "view_messages.hpp"
#include "win32_exception.hpp"
namespace rewin
{
class button_view : public detail::view_impl<button_view, view>
{
... |
import numpy as np
def log_loss(M):
return # Here you need to return a pair of vectors:
# the logarithmic loss function from the task description
# and its derivative. np.log2 and np.exp could be useful.
def sigmoid_loss(M):
return # Here you need to return a pair of vectors:
# the sigmoid loss... |
def send(self, msg, title=""):
pass |
#pragma once
#include "GraphicsConstance.h"
namespace Coocoo3DGraphics
{
using namespace Windows::Storage::Streams;
public ref class ReadBackTexture2D sealed
{
public:
void Reload(int width, int height, int bytesPerPixel);
void GetDataTolocal(int index);
Platform::Array<byte>^ GetRaw(int index);
void GetRaw... |
// Makes progress on the puzzle using "simple" methods.
// The simple methods are:
// 1. If a cell is solved, then no other cell in the same row/column can be that value.
// 2. If a row/column only has one cell that can be a certain value, then that cell has to be
// that value.
// This method will apply these two... |
def train_epoch_with_interactions(interaction_batches,
params,
model,
randomize=True):
if randomize:
random.shuffle(interaction_batches)
progbar = get_progressbar("train ", len(interaction_batches))... |
Gated First Pass Radionuclide Ventriculography Methods, Validation, and Applications
Electrocardiographic gating provides an alternative method of acquiring first pass radionuclide ventriculograms from both ventricles. This report details the methods of acquisition and analysis, provides validation and reproducibility... |
/**
* This class implements an output stream in which the data is written into a
* byte array. The buffer automatically grows as data is written to it. The data
* can be retrieved using <code>toByteArray()</code> and
* <code>toString()</code>.
* <p>
* Closing a <tt>ByteArrayOutputStream</tt> has no effect. The me... |
/**
* Description of the Class
*
*@author jchoyt
*@created August 19, 2002
*/
public class FormBuilderTag extends BodyTagSupport
{
String className;
String howMany;
int number;
int thread=1;
String other;
String title;
final static String SECTION_CLOSE = "</td></tr></table></td>... |
<reponame>gcalmettes/AdventOfCode2017<filename>2021/src/day10/main.rs
use std::path::Path;
use std::fs;
use std::collections::HashMap;
fn part1(input: &str) -> usize {
let points = HashMap::from([
(')', 3),
(']', 57),
('}', 1197),
('>', 25137),
]);
let score = input.li... |
def queryObject(uid, default=None): |
def command_browse_callback(self):
self.command_file.set(tkinter.filedialog.askopenfilename())
self.config['RobotSettings']['command_file'] = self.command_file.get() |
/**
* Created by chaobin on 1/14/15.
*/
public class TagFlowLayout extends ViewGroup
implements TextWatcher, View.OnKeyListener, View.OnClickListener {
private static final int INVALID_VALUE = -1;
private SparseIntArray mCachedPosition = new SparseIntArray();
private EditText mInputView;
/... |
/**
* Release any expired encumbrances on this account.
*/
void releaseExpiredEncumbrances() {
while (!myEncumbrancesByExpiration.isEmpty()) {
Encumbrance first = myEncumbrancesByExpiration.first();
if (first.isExpired()) {
first.release();
} else {
... |
<reponame>rosm-project/rosm_geo<filename>src/rect.rs
use bitflags::bitflags;
use crate::coord::GeoCoord;
use std::error;
use std::fmt;
#[derive(Debug, Clone, PartialEq)]
pub struct GeoRect {
top_left: GeoCoord,
bottom_right: GeoCoord,
}
impl GeoRect {
pub fn new(top_left: GeoCoord, bottom_right: GeoCoor... |
/**
* if the service is suspended and the user's organization is not the
* marketplaceOwner the service is not visible to the user hence
* OperationNotPermittedException is thrown
*
* @param service
* @param marketplaceId
* @throws OperationNotPermittedException
*/
void checkAct... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015, Linaro Limited
*/
#include <linux/arm-smccc.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/tee_drv.h>
#include <linux/types.h>
#include... |
// Get the priority for a particular device type. The priority returned
// will be between 0 to 3, the higher number meaning a higher priority.
uint8 GetDevicePriority(chromeos::AudioDeviceType type) {
switch (type) {
case chromeos::AUDIO_TYPE_HEADPHONE:
case chromeos::AUDIO_TYPE_MIC:
case chromeos::AUDIO... |
"""
Functions for DB initialization
"""
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, scoped_session
from app import app
from app.data.data_model import BASE
from app.data.data_access_layer import init_db
def get_db_engine(db_uri):
"""
Creates and returns a db engine
""... |
#include<stdio.h>
int main()
{
long long x;
int n;
scanf("%I64d",&x);
for(n=0;x>0;n+=(x%2==1)?1:0,x/=2)
;
printf("%d",n);
} |
<reponame>anthill-docker/anthill<filename>internal/pkg/context/context.go
// Package context is a solution for gathering all required data of the application.
package context
import (
"os"
"runtime"
"strings"
"unicode"
"unicode/utf8"
"github.com/aenthill/aenthill/internal/pkg/errors"
)
const (
// IDEnvVar is ... |
import sys
sys.setrecursionlimit(10**6)
initial = "What are you doing at the end of the world? Are you busy? Will you save us?"
f = 'What are you doing while sending "'
s = '"? Are you busy? Will you send "'
t = '"?'
flen = len(f)
slen = len(s)
tlen = len(t)
l = []
l.append(len(initial))
tmp = len(initia... |
Access to Justice
The author explores how Aboriginality, racialization, gender, disability, class, and sexual identity may affect one's ability to obtain justice in the Canadian legal system. The Canadian justice system has historically given disproportionate access to white, non-immigrant, able-bodied, affluent men w... |
<filename>ac.go
package main
type ac struct {
Group string
State bool
Mode string
Speed string
Direction string
TargetTemp float64
TargetTemp1 float64
TargetTemp2 float64
CurrentTemp float64
UseTemp bool
}
|
Apple has been catching a lot of flack for their draconian app approval process, and for the most part, it's a well-deserved takedown. On our grass is greener side, Google has been looking pretty nice throughout the whole he-said, she-said battle between the FCC, Google, Apple, and AT&T and it's looking even better now... |
import * as path from "path"
import { Cluster } from "@solana/web3.js"
// CORS
const allowedOriginsRaw: string | undefined =
process.env.GRUNTHOS_CORS_ALLOWED_ORIGINS
if (!allowedOriginsRaw) {
throw new Error(
"GRUNTHOS_CORS_ALLOWED_ORIGINS environment variable must be set"
)
}
export const allowe... |
Greetings Explorers,
We always knew we had an amazing community beating at the heart of Worlds Adrift since the very start, but never imagined how amazing your response and support would be as we entered the Closed Beta phase.
Our first batch of Founder’s Pack have sold out!
Due to overwhelming demand, our first bat... |
/*
* Copyright 2002-2021 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 <NAME> and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------... |
/*
** Return the cost of substituting cTo in place of cFrom assuming
** the previous character is cPrev. If cPrev==0 then cTo is the first
** character of the word.
*/
static int substituteCost(char cPrev, char cFrom, char cTo){
char classFrom, classTo;
if( cFrom==cTo ){
return 0;
}
if( cFrom==(cTo^0x20) &... |
<gh_stars>1000+
import java.util.Arrays;
public class Solution2 {
// 贪心算法
public int leastInterval(char[] tasks, int n) {
int[] cnt = new int[26];
for (char task : tasks) {
cnt[task - 'A']++;
}
Arrays.sort(cnt);
int maxVal = cnt[25] - 1;
// idle 空... |
class Individual_Parameters:
"""Simulation parameters for a single individual in a dual-income simulation."""
@property
def age_at_retirement(self):
"""The age at which this person will retire. (Inclusive, ie this is the first year they will no longer be working.)"""
return self._age_at_ret... |
// Copyright 2015 PingCAP, Inc.
//
// 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 i... |
<filename>src/KdtreeISO/include/RectilinearGrid.h<gh_stars>10-100
//
// Created by Danielhu on 2018/5/9.
//
#ifndef VOXELWORLD_RECTILINEARGRID_H
#define VOXELWORLD_RECTILINEARGRID_H
#include <vector>
#include <map>
#include <set>
#include "Qef.h"
#include "Mesh.h"
#include "Topology.h"
#include "Utils.h"
#include "V... |
def predict(self, game, q):
a = self.actions[q]
return a |
<filename>app/src/main/java/cz/damematiku/damematiku/MathApplication.java<gh_stars>1-10
package cz.damematiku.damematiku;
import android.app.Application;
import android.content.Context;
import cz.damematiku.damematiku.depinject.component.ApplicationComponent;
import cz.damematiku.damematiku.depinject.component.BaseCo... |
import urllib
import json
import twitter
import sqlite3
import os
from HTMLParser import HTMLParser
import nltk
class Worker(object):
def __init__(self, profile_id, oauth, cursor):
self.google_api_key = '---' # Google API Key
self.profile_id = profile_id
self.cursor = cursor
self.... |
<reponame>timmartin19/turbogears<filename>turbogears/visit/api.py<gh_stars>0
import logging
import sha
import threading
import time
try:
set()
except NameError:
from sets import Set as set
from random import random
from datetime import timedelta, datetime
import cherrypy
import pkg_resources
from cherrypy.f... |
/**
* Tests for the redirect response.
*
* @author Luc Everse
*/
public class RedirectResponseTest {
@Test
public void test() {
final RedirectResponse response = new RedirectResponse("/page/home");
response.prepare(null);
assertThat(response.getHeaders()).as("headers")
... |
package main
import (
"fmt"
)
func main(){
makeRecursiveFunction();
}
func makeRecursiveFunction(){
x := func(x,y int) int{
return x + y
}
fmt.Println(x(4,5))
} |
<filename>config.go
package main
type Config struct {
SN string `json:"sn"`
Ver uint `json:"ver"`
Cfg map[string]string `json:"cfg"`
}
type Registration struct {
Config
ID string `json:"id"`
TS string `json:"ts"`
}
|
<reponame>MC-JY/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.uti... |
<gh_stars>1000+
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Li... |
<filename>tibco_core_jms_8/src/main/java/com/newrelic/instrumentation/tibco/jms2/OutboundWrapper.java
package com.newrelic.instrumentation.tibco.jms2;
import java.util.logging.Level;
import javax.jms.JMSException;
import javax.jms.Message;
import com.newrelic.api.agent.HeaderType;
import com.newrelic.api.age... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
*/
@interface MCWebClipPayload : MCPayload {
NSURL * _URL;
bool _fullScreen;
NSNumber * _fullScreenNum;
NSData * _iconData;
bool _isRemovable;
NSNumber * _isRemovabl... |
Sentiment Analysis of Airport Customer Reviews
Customer satisfaction plays an important factor for the business’ success, particularly in aviation industries. One way to measure customer satisfaction level is using customer reviews. This study evaluates and analyzes customer reviews of services and facilities of Soeka... |
Fatal Frame coming to US PSN next week
Sony have announced that the PS2 survival-horror classic, Fatal Frame, will be releasing to the US PSN next week. Starring a young girl named Miku who, along with her brother, can see spirits and otherworldly things that are invisible to normal people. She goes after her now-miss... |
def Kgrad_param(self,i):
X = self._getX()
Xgrad = self._getXgrad(i)
import pdb
RV = SP.dot(X,Xgrad.T)+SP.dot(Xgrad,X.T)
return RV |
Asymptomatic Coronavirus Disease 2019 (COVID-19) Carriers: Are They Infectious?
Coronavirus disease 2019 (COVID-19) is highly contagious in symptomatic patients as it is thought to be transmitted through respiratory droplets. However, it is debatable whether asymptomatic COVID-19 patients are contagious due to lack of... |
/**
* Generates Banners with a specific pattern in chunks with coordinates divisible by 16. Only generates in dimensions that return true from {@link WorldProvider#isSurfaceWorld}.
* <p>
* Test for this thread:
* http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/253586... |
#include "builtin/channel.hpp"
#include "builtin/list.hpp"
#include "builtin/thread.hpp"
using namespace rubinius;
class TestThread : public CxxTest::TestSuite {
public:
VM *state;
void setUp() {
state = new VM();
}
void tearDown() {
delete state;
}
void test_current() {
Object* current_th... |
/**
* ServiceConnection to process when we bind to our service
*/
private final class MyServiceConnection implements ServiceConnection {
@Override
public void onServiceConnected(ComponentName name, IBinder binder) {
mqttService = ((MqttServiceBinder) binder).getService();
... |
package com.android.betterway.myview;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.android.betterway.other.ButtonSwith;
import com.android.betterway.utils.LogUtil;
import org.greenrobot.e... |
<reponame>mageshwaranr/dynamodb-dal
package com.tteky.dynamodb.processor;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
import lombok.extern.slf4j.Slf4j;
import software.amazon.awssdk.services.... |
<reponame>clayne/DirectXShaderCompiler
// RUN: %clang_cc1 -fsyntax-only -verify -ftemplate-depth 128 -ftemplate-backtrace-limit 4 %s
template<int N> struct S {
typedef typename S<N-1>::type type;
static int f(int n = S<N-1>::f()); // \
// expected-error{{recursive template instantiation exceeded maximum depth of 1... |
def before_train(self, logs=None):
self.input = None
self.flops = None
self.params = None
self.latency = None
self.calc_params_each_epoch = self.trainer.config.calc_params_each_epoch
self.calc_latency = self.trainer.config.calc_latency
if vega.is_tf_backend():
... |
use llvm::Builder;
use llvm::Compile;
use llvm::FunctionType;
use llvm::PointerType;
use llvm::Sub;
use crate::wasm::TableInitializer;
use crate::codegen::memory::generate_offset_function;
use crate::codegen::ModuleCtx;
use crate::codegen::runtime_stubs::*;
pub fn generate_table_initialization_stub(m_ctx: &ModuleCt... |
<reponame>celiakwan/solana-voting
use anchor_lang::prelude::*;
use vote_count::cpi::accounts::UpdateVoteCount;
use vote_count::program::VoteCount;
use vote_count::Count;
use vote_record::cpi::accounts::UpdateRecord;
use vote_record::program::VoteRecord;
use vote_record::Record;
declare_id!("3yFnjbmi9Fhd999rLMM5hiFen2f... |
<reponame>ElLucioVpe/uytube
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package logica.dt;
/**
*
* @author Esteban
*/
public class ListaDeReproduccionDt {
priv... |
NATAL, Brazil -- "We're fucked, dude. We're totally fucked." So said a man from Ohio upon seeing Andre Ayew find the net against Tim Howard on Monday.
Four minutes later, he was in tears. So was the man next to him, from Wisconsin. And the man in front of him, from New Jersey. And the woman next to him, from Washingto... |
Detection versus Estimation in Event-Related fMRI: Choosing the Optimal Stimulus Timing
With the advent of event-related paradigms in functional MRI, there has been interest in finding the optimal stimulus timing, especially when the interstimulus interval is varied during the imaging run. Previous works have proposed... |
/**
* An instance of this class provides access to all the operations defined in
* CertificateRegistrationProviders.
*/
public final class CertificateRegistrationProvidersInner {
/**
* The proxy service used to perform REST calls.
*/
private CertificateRegistrationProvidersService service;
/**... |
Identification of CD4+ T-cell-derived CD161+ CD39+ and CD39+CD73+ microparticles as new biomarkers for rheumatoid arthritis.
AIM
This study aimed to identify CD4+ T-cell-derived microparticles (MPs) and investigate their roles in rheumatoid arthritis (RA).
METHODS
Synovial fluids from 34 RA, 33 osteoarthritis patien... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.