content
stringlengths
10
4.9M
#include "../lib/memory.h" Chip8Emu_Memory::Chip8Emu_Memory() { memory.reset(); } Chip8Emu_Memory::~Chip8Emu_Memory() { memory.reset(); } void Chip8Emu_Memory::setBit(uint16_t addr) { memory.set(addr, true); } void Chip8Emu_Memory::setBit(uint16_t addr, bool value) { memory.set(addr, value); } void Chip8Emu...
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.desugar.desugaredlibrary.desugaredlibraryjdktests; import static com.android...
<reponame>TheDiveO/lxkns<filename>discover/usernames_test.go // Copyright 2020 <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 ...
<reponame>vbogatyrov/tdi-studio-se<filename>main/plugins/org.talend.designer.components.libs/libs_src/talend-spark/src/main/java/org/talend/spark/operation/HBaseLoad.java // ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This...
{-# LANGUAGE TypeFamilies #-} module ShouldFail where class C3 a where data S3 a :: * data S3n a :: * foo3 :: a -> S3 a foo3n :: a -> S3n a bar3 :: S3 a -> a bar3n :: S3n a -> a instance C3 Int where data S3 Int = D3Int newtype S3n Int = D3Intn () foo3 _ = D3Int foo3n _ ...
// the tool I used to extract the text from .xml added header and trailer that had to be removed. protected static Map<Character, Double> createCorpus(boolean writeFile) { Map<Character, Double> map = new HashMap<>(); String line = null; String str = null; DictionaryNormalizer.initMap(); for (int i = 1; i <= ...
//***************************************************************************** // Copyright (C) 2014 Texas Instruments Incorporated // // All rights reserved. Property of Texas Instruments Incorporated. // Restricted rights to use, duplicate or disclose this code are // granted through contract. // The program may not...
def add_mandatory_optional_obj(obj, label, thread): layout = QtWidgets.QVBoxLayout() layout.addWidget(QtWidgets.QLabel("Add attribute:")) if type(obj) == GlobalConstr: l_cls = L_ITEM_CLASS + L_LOOP_CLASS + L_DATA_CLASS l_flag_mandatory = len(l_cls)*[False] elif type(obj) == DataConstr: ...
#pragma once #include "test.hpp" static Test* s_current_test;
Last week, Pastor Lance Wallnau told the world that he knew of a man who was “cured” of his homosexuality because he ate a special piece of cake. Wallnau even streamed his anecdote on Periscope and Right Wing Watch later amplified it. As Wallnau told it, there were some “hookers” who used to hang out at a bar who wer...
# Adapted from https://github.com/huggingface/transformers/blob/v2.3.0/transformers/data/processors/glue.py # # Additional license and copyright information for this source code are available at: # https://github.com/huggingface/transformers/blob/master/LICENSE """ FEVER processors and helpers """ import csv import lo...
<reponame>sersoluciones/ngx-leaflet import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { LatLng2LatLngOptions } from './types'; @Injectable({ providedIn: 'root' }) export class MapService { /** * Metodo para obtener la posisión GPS actual usando Observable * @examp...
use super::error::AmplifierError; use crate::common::permutations::*; use crate::computer::{Code, ListInput, VirtualMachine}; use std::collections::VecDeque; pub struct Amplifier<'a> { computers: VecDeque<(ListInput, VirtualMachine<'a>)>, } impl Amplifier<'_> { pub fn get_best(template: Code, setting: &Vec<i6...
def fan_speed_name(self) -> str: register = self._registers.get_register( 'HR_USER_CONFIG_CURRENT_SYSTEM_MODE') return register.state_name
<reponame>Koswu/TinyBoardBack<gh_stars>0 package logging import ( "boarderbackend/pkgs/setting" "fmt" "log" "os" "path" "time" ) func getLogFilePath() string{ return fmt.Sprintf("%s", setting.Logging.LogFilePath) } func getLogFileFullPath() string { prefixPath := getLogFilePath() suffixPath := fmt.Sprintf("...
New records and confirmation of the presence of three species of primates (Mammalia, Primates) in southwestern Colombia Cebus albifrons (Humboldt, 1812); Sapajus apella (Linnaeus, 1758) and Aotus lemurinus I. Geoffroy, 1843 are widely distributed primates in Colombia. Despite this, there are gaps in the occurrence of ...
/** * Implements a hierarchical {@link ResourceRegistryPart} by maintaining a list of child ResourceRegistryPart. */ public class HierarchicalResourceRegistryPart extends ResourceRegistryPartBase { private static final String PATH_SEPARATOR = "/"; private Map<String, ResourceRegistryPart> partMap = new HashMap<>(...
<filename>src/Lib.hs<gh_stars>0 {-# LANGUAGE RecordWildCards #-} module Lib ( someFunc ) where import Control.Monad.IO.Class import Control.Monad.Trans.State import Control.Monad import Data.Foldable import Data.List import qualified Data.Map.Strict as M import Data.Maybe import qualified Data.Set as S import ...
/* * Copyright 2015 <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...
An analysis of errors in Korean-Chinese public sector translation - A case study on COVID-19 information materials - Journal of the International Network for Korean Language and Culture 19-2, 203-228. This study aims to analyze the translation errors in Chinese COVID-19 information materials published by Korean public...
<gh_stars>10-100 package com.nepxion.discovery.platform.server.mapper; /** * <p>Title: Nepxion Discovery</p> * <p>Description: Nepxion Discovery</p> * <p>Copyright: Copyright (c) 2017-2050</p> * <p>Company: Nepxion</p> * * @author <NAME> * @version 1.0 */ import org.apache.ibatis.annotations.Mapper; import or...
The Multi-Scale Network Landscape of Collaboration Propelled by the increasing availability of large-scale high-quality data, advanced data modeling and analysis techniques are enabling many novel and significant scientific understanding of a wide range of complex social, natural, and technological systems. These deve...
#include <iostream> #include <algorithm> using namespace std; long long n, d, m; long long a[105]; int main(){ cin >> n >> d; for( int i=1; i<=n ;++i ) cin >> a[i]; cin >> m; long long se = 0; if( m > n ){ se -= ((m-n)*d); } sort( a+1, a+n+1 ); for( int i=1, I=min(n, m); i<=I; ++i ) se += a[i...
def wrap_itk_index(x): idx = itk.Index[2]() idx.SetElement(0, int(x[0])) idx.SetElement(1, int(x[1])) return idx
Signup to receive a daily roundup of the top LGBT+ news stories from around the world The latest season of RuPaul’s Drag Race does not feature the phrase ‘You’ve Got She-Mail’ – after a row over transgender slurs. The drag competition reality show last year attracted criticism for a segment in which contestants were ...
The Cross, and Necessity: A Trinitarian Perspective I argue that the understanding of the necessity of the cross for divine reconciliation needs to be re-evaluated in light of two components of a classical trinitarian metaphysic: the doctrine of inseparable operations and the doctrine of trinitarian missions. Drawing ...
<reponame>vulpemventures/marina import * as bip32 from 'bip32'; import * as bip39 from 'bip39'; import { networks, payments } from 'ldk'; import * as bitcoinMessage from 'bitcoinjs-message'; import { SignedMessage } from 'marina-provider'; export async function signMessageWithMnemonic( message: string, mnemonic: s...
<filename>src/Parser/AST/Nodes.h<gh_stars>0 #pragma once #include <vector> #include <memory> #include <Parser/ParserVal.h> #include <functional> #include <json.hpp> #include <boost/assert.hpp> #include <RecordManage/TableManager.h> #include <string> #include <Parser/ParsingError.h> namespace tinydbpp { namespace ast {...
/** * CubeView is the class that extend GLSurfaceView and it will acts as a View class to * display a rolling dice cube on the application. * */ public class CubeView extends GLSurfaceView implements Callback { /** * An openGL renderer object that will render the cube on GLSurfaceView. */ private OpenGLRen...
def _retrieve_metadata_from_uri(self, uri: str) -> Dict[Any, Any]: if uri and uri.startswith('ipfs://'): uri = urljoin(self.IPFS_GATEWAY, uri.replace('ipfs://', '')) if not uri or not uri.startswith('http'): raise MetadataRetrievalException(uri) try: logger....
export { default as LocalTestInfoNotFoundError } from './LocalTestInfoNotFoundError' export { default as TestCaseParseError } from './TestCaseParseError'
/** * Session Bean implementation class ConcepService * * Provides management and persistent services for proven concepts. By default, the proven context * and base uri are used. * */ @Stateless @LocalBean public class ConceptService { private final Logger log = LoggerFactory.getLogger(ConceptService.class);...
def update( self, currentX, currentDist, overrideSpeed=0.0 ): errorX = (currentX - self.targetX) / (self.racecar.camera.get_width() // 2) errorD = currentDist - self.targetDist dt = self.racecar.get_delta_time() if overrideSpeed == 0: self.speed = np.clip(self.S...
/** * Print an error message and die. * @param s - string format * @effect This function causes the program to die */ void fatalmsg(const char *s,...) { va_list p; va_start(p,s); vfprintf(stderr,s,p); va_end(p); putc('\n',stderr); exit(-1); }
One of the first Christian books I ever read (once I started reading books on my own, simply for pleasure, in high school) was Philip Yancey’s The Jesus I Never Knew. It ends like this: The other two days [besides Holy Saturday] have earned names on the church calendar: Good Friday and Easter Sunday. Yet in a real sen...
Big Booths for Sony, Microsoft, Blizzard, Electronic Arts and More Revealed By Gamescom Floor Plans Giuseppe Nelva July 27, 2015 2:56:29 AM EST Gamescom is just a a little more than a week away, and the detailed floor plans for the halls are now available on the official website, showing where each publisher is locat...
Event tourism and sustainable development Tourism is an important base of the country's socio-economic and cultural development. Tourism development strategies involve factors that the society applies to make the best use of its benefits or neutralize the problems it creates in their economies. As every economic subje...
Efficient architecture and implementations of AES An equivalent optimized sub-pipelined architecture is proposed to implement the AES, every round including encryption and decryption needs one clock cycle. The SubBytes/InvSubBytes operation using composite field arithmetic in GF(24) and BlockRAMs respectively. In addi...
/** * Verify no entry for ClassName exists in index. * If a match is found then fail assertion error. * * @param classNamePattern the pattern */ public void assertNoClassNameMatches( @Nonnull final Pattern classNamePattern ) { final List<SymbolEntry> matches = findSymbolsByClassName( classNamePatte...
Henry Kissinger, left, and President Richard M. Nixon after Kissinger was sworn in as the 56th secretary of state in the East Room of the White House in Washington in this Sept. 22, 1973, file photo. (AP Photo, File) As time passes, the extent to which the Vietnam War split the American public recedes from memory. We ...
package dbw import ( "testing" "time" ) func TestFieldNames(t *testing.T) { db, err := Open("postgres", "host=localhost port=5432 dbname=postgres user=admin password=<PASSWORD> sslmode='disable' bytea_output='hex'") if err != nil { t.Error(err) } _, err = db.Exec(` create table x_haha( id int8 not nu...
/** * Compares source files to destination files to see if they should be * copied. * * @param fromDir The source directory * @param toDir The destination directory * @param files A list of files to copy * @param dirs A list of directories to copy */ protected void sca...
def readme(self, readme): self._readme = readme
#include<stdio.h> #include<string.h> int main () { int a[200],x=0,y=0,b,i; char s1[200],s2[200]; scanf ("%s %s",&s1,&s2); b=strlen(s1); for(i=0;i<b;i++) { x=(int)s1[i]; y=(int)s2[i]; a[i]=x^y; } for (i=0;i<b;i++) {printf("%d",a[i]); } return 0; }
// Convert function change bitrate, resolution and ratio for video func (c *Compressor) Convert(ctx context.Context, opt *Request, originalVideo string) (string, error) { opts := c.buildOptions(opt) if opt.Bitrate != 0 { return c.convertWithBitrate(originalVideo, opts) } root := os.Getenv("ROOT") iName := string...
def validate( filename: str, data: Dict[str, Any], schema: Dict[str, Any], default: bool = False ) -> Tuple[List[str], Dict[str, Any]]: schema_ref = schema.get("$schema", "default") schema_match = re.match(r"https?\:\/\/json\-schema\.org\/(.*)\/schema", schema_ref) Validator = { "draft-04": js...
1. Cummins Falls Located about an hour and a half from Nashville, Cummins Falls has been a local hangout and swimming hole for more than 100 years. The beautiful 75-foot falls can only be reached by foot, and you’ll have to undergo a pretty strenuous hike to get there, but it’s totally worth it. Sit on the rocky tiers...
<reponame>NikolajSkousen/designsystem import { Component } from '@angular/core'; const config = { selector: 'cookbook-toggle-button-example', template: `<kirby-toggle-button [checked]="true" (checkChanged)="onCheckChanged($event)"> <button kirby-button unchecked attentionLevel="3">Deactivated</button> <button ...
def dump_uischema(self, obj, many=None, *args): return dict(self._dump_uischema_iter(obj, *args, many=many))
#Test Model from src.models import Hang2020 import torch import os import pytest os.environ['KMP_DUPLICATE_LIB_OK']='True' def test_conv_module(): m = Hang2020.conv_module(in_channels=369, filters=32) image = torch.randn(20, 369, 11, 11) output = m(image) assert output.shape == (20,32,11,11) def test_...
<gh_stars>10-100 /* Copyright (c) the purl authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
<filename>modules/http-client/src/main/java/com/devonfw/module/httpclient/common/impl/AbstractAsyncServiceHttpClient.java package com.devonfw.module.httpclient.common.impl; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.net.http.HttpResponse.BodyHandlers; import java.util.concurrent.C...
package com.cmput3owo1.moodlet.fragments; import android.content.Intent; import android.os.Bundle; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import...
// Save, set automatically the the Route.Size and Route.Pattern value func (r *Route) save() { r.Size = len(r.Path) r.Token.Tokens = strings.Split(r.Path, "/") for i, s := range r.Token.Tokens { if len(s) >= 1 { switch s[:1] { case ":": if r.Pattern == nil { r.Pattern = make(map[int]string) } ...
import numpy as np import numdifftools as nd import scipy.optimize as opt import cvxopt as cvx from statsmodels.regression.quantile_regression import QuantReg from scipy.stats import chi2, norm from scipy.linalg import block_diag, null_space """Worst-case standard errors for minimum distance estimates without knowled...
/* * Copyright 1995, 2003 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ /* * fileiouni.cc -- FileIOUnicode methods */ # include <stdhdrs.h> # include <error.h> # include <errornum.h> # include <msgsupp.h> # include <strbuf.h> # include <i18...
//================================================================================================== /*! @file Main header for the unit test system @copyright 2015 <NAME> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.tx...
/** * Synchronize with the receiver. Blocks until finished. */ public void synchronize() throws InterruptedException { final StandardWorkGroup workGroup = new StandardWorkGroup("sending-synchronizer"); final AsyncInputStream asyncIn = new AsyncInputStream(in, workGroup); final AsyncOutputStream asyncOut = get...
<gh_stars>10-100 package region import ( "context" "math" "github.com/ironarachne/world/pkg/geometry" "github.com/ironarachne/world/pkg/random" ) // Region is a geographic area. type Region struct { Description string `json:"description"` Altitude int `json:"altitude"` // -...
Clinical and demographic correlates of medication and visit adherence in a large randomized controlled trial Background Patient characteristics are associated with adherence, which has implications for planning clinical research or designing payment systems that reward superior outcomes. It is unclear to what extent c...
// GetPayload returns value of Payload field. func (i *InputMessageInvoice) GetPayload() (value []byte) { if i == nil { return } return i.Payload }
<reponame>dollarkillerx/ClangStudy #include <stdio.h> int main(void) { struct Test { unsigned int a:1; // 只能放下0~1 unsigned int b:1; unsigned int c:2; // 只能存两个字节 }; struct Test test = {0,1,3}; printf("a= %d b= %d c= %d \n",test.a,test.b,test.c); return 0; }
//------------------------------------------------------------------- // print build log // // program: program object // device: device id // void ClUtils::printBuildLog(const cl_program program, const cl_device_id device) const { cl_int status; size_t size_ret; char buffer[40...
/** * Will set the fields marked with @ColumnName by querying the database * * @param t */ public void populateExternals(T t) { List<SqlFieldExternal> externals = mapperSettings.getExternals(); if (externals != null) externals.forEach(sqlFieldExternal -> { ...
import * as fs from 'fs'; import * as path from 'path'; export type MiniArticle = { title: string; date: string; tags: string[]; id: string; dotDate: string; } export type Article = MiniArticle & { main?: string; } const DIRNAME = process.env.NODE_ENV === 'production' ? 'prod' : 'dev'; const ...
Effects of direct nucleon-nucleon interactions in pion-condensed neutron star matter. We investigate the effects of direct nucleon-nucleon interactions in the ground state of pion-condensed neutron star matter within the sigma-model formalism. We use a realistic description of asymmetric nuclear matter. The divergence...
package oop.interfaces.caravan; public class House implements Habitable { private int numOfBedrooms; private int builtYear; public House(int numOfBedrooms, int builtYear) { this.numOfBedrooms = numOfBedrooms; this.builtYear = builtYear; } @Override public boolean canFit(int inhabitants) { ret...
from django import forms from django.contrib.auth.models import User, Group from dal import autocomplete from .models import School, CotisationHistory, WhiteListHistory, BanishmentHistory from preferences.models import PaymentMethod class LoginForm(forms.Form): """ Form to log in. """ username = forms....
<filename>deprecated/software/SLAM/ygz_slam_ros/common/include/ygz/G2OTypes.h #ifndef YGZ_G2OTYPES_H #define YGZ_G2OTYPES_H #include "ygz/NumTypes.h" #include "ygz/Settings.h" #include "ygz/IMUPreIntegration.h" #include "ygz/Camera.h" #include <g2o/core/base_vertex.h> #include <g2o/core/base_unary_edge.h> #include <g...
package memory import ( "context" "strings" "github.com/ViBiOh/auth/v2/pkg/ident" "github.com/ViBiOh/auth/v2/pkg/model" "golang.org/x/crypto/bcrypt" ) // Login checks given credentials func (a App) Login(_ context.Context, login, password string) (model.User, error) { user, ok := a.ident[login] if !ok { ret...
def swap(a,i,j): temp=a[i] a[i]=a[j] a[j]=temp t=int(input()) for q in range(t): n=int(input()) a=[int(i) for i in input().split()] a=sorted(a) rev_a=a[::-1] #print(a,rev_a) ans=[None]*2*n i=0 j=1 k=0 while i<n: ans[j]=rev_a[i] a...
#ifndef _FUNCTIONFLOW_H_ #define _FUNCTIONFLOW_H_ #include <windows.h> #include <vector> using namespace std; // Struct for flags struct FUNCTION_FLOW { DWORD dwThreadId; BOOL bFlag; }; class FunctionFlow { // Vector of flags static vector<FUNCTION_FLOW*> vFlags; static CRITICAL_SECTION gCriticalSection; ...
/** * Clear the GameView with the specified color. */ public void clear(int color) { checkCanvas(); paint.setColor(color); canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), paint); }
// Callback method notifies that GAM native ad has been successfully loaded. @Override public void onAdReceived(@NonNull NativeAd nativeAd) { Log.d(TAG, "Native Ad Received"); renderNativeAd(nativeAd); }
/** Created by andrey on 08.08.17. */ public final class ThreadDump { private final Map<Thread, StackTraceElement[]> threadDumpData = Thread.getAllStackTraces(); @Override public final String toString() { final StringBuilder threadDumpStr = new StringBuilder(); final String lineSep = System.lineSeparator(); ...
n=int(input()) a=[] a=[a for j in range(n)] for i in range(n): a[i]=input() x1=a[0][0] x2=a[0][1] it=False for i in range(n): for j in range(n): if(((i==j or i+j+1==n) and a[i][j]==x1) or (not (i == j or i+j+1==n) and a[i][j]==x2) ): it=True else: it=False ...
// Copyright 2020 TensorFlow 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
/** * Read SCSI device capacity * * @v scsidev SCSI device * @v block Block data interface * @ret rc Return status code */ static int scsidev_read_capacity ( struct scsi_device *scsidev, struct interface *block ) { return scsidev_command ( scsidev, block, &scsicmd_read_capacity, 0, 0, UNULL, 0 ); ...
Functional coexistence of twin arsenic resistance systems in Pseudomonas putida KT2440. The genome of the soil bacterium Pseudomonas putida KT2440 bears two virtually identical arsRBCH operons putatively encoding resistance to inorganic arsenic species. Single and double chromosomal deletions in each of these ars clus...
<a href="http://www.flickr.com/photos/tonyfelgueiras/4731592951/">TonyFelgueiras</a> via Flickr Fashion labels have long sent celebrities their latest accessories for free in hopes of generating positive publicity for the product. It's a classic PR move. But with a new breed of celebrity that serves as society's punch...
import { resizeForm } from "../form"; import { modelChildren } from "../../../mve/modelChildren"; import { mve } from "../../../mve/util"; import { DOMNode, svg } from "../../../mve-DOM/index"; import { EOChildren } from "../../../mve/childrenBuilder"; export function hRuler(param:{ bit:number }){ return resize...
/* sys/sysinfo.h This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ /* sys/sysinfo.h header file for Cygwin. */ #ifndef _SYS_SYSINFO_H #define _SYS_SYSINFO_H #include <sys/cdefs.h> __BEGIN_DECL...
module Main where fib :: Int -> Int fib n = if n < 2 then 1 else fib(n-1) + fib (n-2) main = print $ fib 30
The Relationship of Molecular Biomarker Detection and DNA Isolation Nucleic acid (DNA) extraction using a Formalin-Fixed Paraffin-Embedded (FFPE) block is a frequent practice in pathological diagnosis and medical research. The extracted nucleic acid, which is the targeted end-product for the further molecular genetic ...
<reponame>mmagician/polkadot-profit-transformer<gh_stars>1-10 import IdentityProcessorService from './identity_processor' import { PolkadotModule } from '../../modules/polkadot.module' import { LoggerModule } from '../../modules/logger.module' import { KafkaModule } from './../../modules/kafka.module' import { IEnrichm...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.Deque; public class Main { public static void main(String args[]) throws Exception { int total = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Deque<Integer> down = new A...
/** \brief Handler for start element events. */ static void optInfoStartElem(void *userData, const XML_Char *name, const XML_Char **attr) { struct OptInfoData *data = (struct OptInfoData *)userData; enum OptInfoElem elem = bsearchStr (name, OptInfoElems, OI_COUNT); switch (elem) { case OI_DRIINFO: ...
Lebanon's Foreign Minister Gebran Bassil, left, shakes hands with his Turkish counterpart Mevlut Cavusoglu, right, after their joint news conference following their meeting in Ankara, Turkey, Thursday, Nov. 16, 2017. (AP Photo/Burhan Ozbilici) ISTANBUL (AP) — Turkey’s top diplomat says followers of a U.S.-based Muslim...
/** * The HBase143Writer implements the sink function that can be used both in bounded and unbounded stream. */ public class HBase143Writer extends HBaseWriterBase<Tuple2<Boolean, Row>> { private static final Logger LOG = LoggerFactory.getLogger(HBase143Writer.class); // rowkey field index in source input row pr...
/** * @author wangzhichao * @since 2021/7/27 */ public class DirTest { public static void main(String[] args) { File dir = new File("H:\\一级目录"); transverseDir(dir,0); System.out.println("====================================="); List<File> fileList = getFilesInDir(dir); for...
Evidence Connects Quakes to Oil, Natural Gas Boom In the context of climate change and the environment as a whole, today’s crude oil and natural gas boom is the ultimate mixed bag. A new study from a team of researchers at Stanford and Duke universities, as well as other institutions, weighs the good with the bad of ...
<reponame>rkhullar/terraform-utils from typing import Dict, List, Optional, Union from pathlib import Path, PurePosixPath __all__ = ['infer_params', 'build_output', 'setup_project'] def infer_params(project_dir: Path, work_dir: Path = None, construct_var: str = 'construct', app_env_var: str = 'app_e...
/** * Handles the command * (NewSensor {instanceName} {inputDeviceName} {indexInInputDevice}) * * @param command the command that invoked this method */ @Override protected void initialize(ConfigCommand command) { int argc = command.argc ; Object[] argv = command.argv ; if (argc != 4) { ...
/** * @author Myrle Krantz */ public class BalanceSegmentSetTest extends ValidationTest<BalanceSegmentSet> { public BalanceSegmentSetTest(ValidationTestCase<BalanceSegmentSet> testCase) { super(testCase); } @Override protected BalanceSegmentSet createValidTestSubject() { final BalanceSegmentSet ret =...
import os from 'os'; import { ClientIdentification } from './proto/control_pb'; import { Metadata, credentials as cred, ChannelCredentials } from 'grpc'; import { Platform } from './Platform'; import { EventBus } from './EventBus'; import { QueryBus } from './QueryBus'; import { CommandBus } from './CommandBus'; func...
{-# LANGUAGE DeriveDataTypeable #-} -------- Declarations ------------------------------------------------------ module HsDeclStruct where import SrcLoc1 import HsIdent import HsGuardsStruct import HsAssocStruct import Data.Generics -- DI -- i identifiers -- e expression recursion type -- p p...
<reponame>aosaimy/conllu-dao export declare class Util { static repairFields: (fields: any, logger: any) => void; static strictFieldSplitter: (line: any) => any; static looseFieldSplitter: (line: any) => any; static selectParsingMode: (conll: any, log: any) => boolean; static selectFieldSplitter: (c...
/** * Performs insertion sort on the input array. Algorithm modified from * https://www.geeksforgeeks.org/insertion-sort/. * @param arr The array to be sorted. */ private void insertionSort(int[] arr) { for (int i = 1; i < arr.length; i++) { int current = arr[i]; ...
Biomarkers in Vestibular Schwannoma–Associated Hearing Loss Vestibular schwannomas (VSs) are benign tumors composed of differentiated neoplastic Schwann cells. They can be classified into two groups: sporadic VS and those associated with neurofibromatosis type 2 (NF2). VSs usually grow slowly, initially causing unilat...
/** * Prueba para eliminar un Contrato. * * @throws co.edu.uniandes.csw.vivienda.exceptions.BusinessLogicException */ @Test public void addServicioAdicionalTest() throws BusinessLogicException { ContratoEntity entity = dataContrato.get(0); ViviendaEntity vivienda = dataVivien...