content stringlengths 10 4.9M |
|---|
/**
* Extracts POS n-grams.
*/
@TypeCapability(inputs = { "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Sentence",
"de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token" })
public class LuceneMixedNGram
extends org.dkpro.tc.features.ngram.meta.base.LuceneFeatureExtractorBase
implements Fea... |
package com.amhfilho.myfinance.transaction;
public enum TransactionType {
FIXED, VARIABLE;
}
|
/*!
* @brief Build and send Config Response message
*
* @param pDstAddr - Where to send the message
* @param pMsg - pointer to the Config Response
*
* @return true if message was sent, false if not
*/
static bool sendConfigRsp(ApiMac_sAddr_t *pDstAddr, Smsgs_configRspMsg_t *pMsg)
{
uint8_t msgBuf[SMSG... |
import { ComponentSchema, OutputSchema, Files, Components, Layers, ConfigBase } from "./types";
export declare class Generator {
private readonly config;
private readonly files;
constructor(config: ConfigBase, files: Files);
generate(output: OutputSchema): Layers;
protected generateComponents(output... |
import sys
def is_stdout_enabled()->bool:
"""Return a boolean representing if script is in a terminal with stdout enabled."""
return sys.stdout.isatty() |
/**
* @author auto create
* @version
*/
public class CreateOrUpdateIMRobotResponse extends AcsResponse {
private String requestId;
private AlertRobot alertRobot;
public String getRequestId() {
return this.requestId;
}
public void setRequestId(String requestId) {
this.requestId = requestId;
... |
import java.util.*;
import java.io.*;
public class Inna_and_Choose_Options
{
public static void main(String args[]) throws Exception
{
BufferedReader f=new BufferedReader(new InputStreamReader(System.in));
int runs=Integer.parseInt(f.readLine());
int[] thing=new int[]{12,6,4,3,2,1};
for(int x=0;x<run... |
from .viewers import ImageViewer, CollectionViewer
|
<gh_stars>0
/**
* Copyright 2017-present Ampersand Technologies, Inc.
*/
import {
BGColorDrawable,
BorderDrawable,
ImageDrawable,
LayoutDrawable,
SVGDrawable,
TextDrawable,
} from './LayoutDrawable';
import {
Alignment,
AS_LOOKUP,
Axis,
ClickFunction,
LayoutBehavior,
LayoutConstraints,
Layou... |
export * from './view-platform-settings'
export * from './update-platform-setting'
export * from './add-authorized-account'
export * from './pause-protocol'
|
<gh_stars>0
import express = require('express');
const router = express.Router();
import createError = require('http-errors');
/* GET users listing. */
router.get('/', (req, res) => {
const err = createError(404);
// set locals, only providing error in development
res.locals.message = err.message;
res.locals... |
/**
* Remove unused queries from the query cache.
*
* <p>This is normally called from a background thread at a rate set by configurePurgeFrequency().
*
* @throws IOException on IO errors
*/
private synchronized void purgeCache(CachePopulator populator) throws IOException {
final ConcurrentMap<Stri... |
<filename>core-service/src/main/java/br/com/hhc/sample/fullstackspringhibernate/core/service/StudentsService.java
package br.com.hhc.sample.fullstackspringhibernate.core.service;
import java.util.List;
import br.com.hhc.sample.fullstackspringhibernate.database.data.domain.Student;
public interface StudentsSe... |
// detectNodeContainers creates a list of names for either all master or all
// worker node containers. It does this by running 'kubectl get nodes ... '
// and searching for container names that begin with a specified name prefix.
func (d *Deployer) detectNodeContainers(namePrefix string) ([]string, error) {
log.Print... |
Carnival Cruise Lines will stop passengers from bringing bottled water, bottled soda and other bottled nonalcoholic drinks onboard, effective July 9.
Carnival's Liquor and Beverage Consumption Policy Guest has long prohibited guests from bringing alcoholic beverages onboard. But one can still carry on up to 12 unopene... |
package types
type WalkCallback func(path []string, obj interface{}) bool
|
/**
* Created by Euphoria on 2017/8/7.
*/
public class Pair <E extends Object, F extends Object>{
private E first;
private F second;
public Pair(){}
public E getFirst() {
return first;
}
public void setFirst(E first) {
this.first = first;
}
public F getSecond() {
... |
def seize_control(self):
logger.debug('seizing control over the buttons')
self.register('toggle', lambda: self.simple_command('toggle'), True)
self.register('stop', lambda: self.simple_command('stop'), True)
self.register('next', lambda: self.simple_command('next'), True)
self.re... |
def load_style() -> str:
if load_style.style is None:
load_style.style = _preprocess_style(
pkg_resources.read_text('scipp.html', 'style.css.template'))
return load_style.style |
"""
B - Great Ocean View
https://atcoder.jp/contests/abc124/tasks/abc124_b
"""
if __name__ == '__main__':
input_list = list(map(int, input().split()))
N = input_list
input_list = list(map(int, input().split()))
H_list = input_list
H1 = H_list[0]
answer = 1
for i, Hi in enumerate(H_list):
... |
def finite_diff_gradient_descent(f, begin, end, x0=None, niters=10, lr=1):
eps = (end-begin)/1000
if x0 is None:
x0 = (begin + end) / 2
x = x0
for i in range(niters):
df = (f(x+eps)-f(x-eps))/(2*eps)
x -= lr*df
return x |
#ifndef OPENPOSE_UTILITIES_STANDARD_HPP
#define OPENPOSE_UTILITIES_STANDARD_HPP
#include <openpose/core/common.hpp>
namespace op
{
template <typename T>
bool vectorsAreEqual(const std::vector<T>& vectorA, const std::vector<T>& vectorB)
{
try
{
if (vectorA.size() != vectorB.size... |
<reponame>AndriiBilych/smartsoft
import { MonoTypeOperatorFunction, Subject } from "rxjs";
import {
AfterContentInit,
ChangeDetectorRef,
ComponentFactoryResolver,
Directive, DoCheck,
NgModuleRef,
OnDestroy, QueryList,
TemplateRef,
ViewChild, ViewChildren,
ViewContainerRef,
} from "@angular/core";
impo... |
“Kesha Rose Sebert wants nothing more than to be able to record an album,” her lawyers wrote in a motion for preliminary injunction that would block Sony and Dr. Luke from pursuing damages if she released music outside of her contract. “Her only condition is that she be allowed to record with a record label that is not... |
<filename>processor/src/main/java/com/drinker/processor/processor/HttpProcessor.java<gh_stars>1-10
package com.drinker.processor.processor;
import com.drinker.annotation.Form;
import com.drinker.annotation.MultiPart;
import com.drinker.annotation.Path;
import com.drinker.processor.Log;
import com.drinker.processor.Reg... |
def _sendjson(self, method, url, headers, obj=None):
medium = self._convert2ascii(obj) if obj else None
url = self._convert2ascii(url)
data = (
jsonutils.dumps(medium, indent=4, sort_keys=True) if medium
else None
)
LOG.debug("=============================... |
#include"question1.h"
int main()
{
char cont = 'Y';
do {
string dna;
string rna;
cout << "Please enter your DNA string: ";
cin >> dna;
rna = get_rna_from_dna(dna);
cout << "Your RNA string is: " << rna << "\n";
cout << "Do you want to continue? (Y... |
/**
* Does nothing
*
* @deprecated dont use it
*/
@Deprecated
public void relightFast()
{
} |
Computer science in Eastern Europe 1989-2014: a bibliometric study
Purpose – The purpose of this paper is to study the development of research in computer science in 15 Eastern European countries following the breaching of the Berlin Wall in 1989. Design/methodology/approach – The authors conducted a bibliometric anal... |
Detecting milk spoilage hasn't seen much innovation since date stamping began in the 1930s, but a team at the University of California Berkeley thinks it's found a better way.UC Berkeley research specialist Chen Yang has developed an awfully sensitive nose but his lab-mate Casey Glick isn't so lucky."I can never tell i... |
import os
import requests
from bs4 import BeautifulSoup
from vgazer.command import RunCommand
from vgazer.exceptions import CommandError
from vgazer.exceptions import InstallError
from vgazer.exceptions import TarballLost
from vgazer.store.temp import StoreTemp
from vgazer.working_dir import WorkingDir
def Ge... |
/*******************************************************************************
* Copyright (c) Aug 28, 2017 @author <a href="mailto:<EMAIL>"><NAME></a>.
* All rights reserved.
*
* Contributors:
* <a href="mailto:<EMAIL>"><NAME></a> - initial API and implementation
*******************************************... |
Alabama freshman cornerback Minkah Fitzpatrick was named Walter Camp National Defensive Player of the Week Sunday.
Fitzpatrick became the first player in Tide history to return two interceptions for touchdowns in the same game during Alabama's 41-23 win over Texas A&M on Saturday.
Fitzpatrick finished with two tackle... |
/* Use the A and B recursion relations to step along the
k1 and l1 axes within a plane.
The arguments identify the state to be calclated, *not* the values
of k1,l1,k2,l2 used in the recursion relation itself.
*/
void isoscalar_context::step_k1_up(long n, long s, long k1, long l1)
{
long k2 = (A+s)/2 - ... |
As if the popularity of Blizzard’s Overwatch wasn’t proven time and time again, analyst firm SuperData revealed in its 2016 Year in Review report regarding Digital Games and Interactive Media that it was the top grossing title among premium PC games (namely those that aren’t free to play).
Overwatch brought in a stagg... |
Signup to receive a daily roundup of the top LGBT+ news stories from around the world
Swastikas have been carved into the walls of the apartment block of New York Senator Brad Hoylman.
Hoylman lives in the block with his husband and daughter, where two swastikas were discovered.
The Senator who is also Jewish said h... |
/**
*
* @author Anton Rumiantsev <Anton.Rumiantsev at tohich-hunter.pleasecome.in>
*/
public class AppTest {
@Test
public void testComparatorFactory1(){
Assert.assertTrue(CourseComparatorFactory.getComparator("az") instanceof Comparator);
}
@Test
public void testComparatorFactory2(){... |
/**
* Deserialize.
* @param objectInputStream the input stream
* @throws IOException if an IO error occurs
* @throws ClassNotFoundException if the class cannot be resolved
*/
private void readObject(final ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
... |
<reponame>startupsky/bean
package user
import(
)
type UserManager struct{
users map[string]*User
persist* Persist
}
func NewUserManager() *UserManager {
this := new(UserManager)
this.persist = NewPersist("user.txt")
this.users = this.persist.Load()
return this
}
func (this *UserManager) GetUser(id string, p... |
/**
* Checks if the given {@link Section} is between this {@link Section} object.
*
* @param other
* the other {@link Section} object
* @return true, if the given {@link Section} is between this {@link Section} object otherwise
* false.
*/
public boolean isBetween(final Section other)
... |
The first, and only, Conestoga 1620, prior to its launch from Wallops Island. The engine bells on the clustered boosters vary depending on their firing order; the larger bells are tuned for higher altitudes.
The Conestoga was a launch vehicle design funded by Space Services Inc. of America (SSIA) of Houston, Texas. Co... |
#include "config.h"
#include "bitstream.h"
#include "common_ps.h"
#ifdef PARSING_HE_AAC_V2
#define EXTENSION_ID_PS 2
#define MAX_PS_ENVELOPES 5
#define NO_ALLPASS_LINKS 3
typedef struct
{
/* bitstream parameters */
uint8_t enable_iid;
uint8_t enable_icc;
uint8_t enable_ext;
uint8_t iid_mode;
... |
aem Oregon 12 minutes ago I have had the experience of taking a problem or question to a male authority and having my concerns and ideas dismissed as being inconsequential. Being of a logical and scientific mind, I then gave the very same concerns and ideas to a male colleague to take to management. He was greeted with... |
package derpatiel.manafluidics.registry;
import derpatiel.manafluidics.block.*;
import derpatiel.manafluidics.block.altar.KnowledgeAltar;
import derpatiel.manafluidics.block.castingchamber.CastingChamber;
import derpatiel.manafluidics.block.drawNozzle.DrawNozzle;
import derpatiel.manafluidics.block.floatTable.FloatTab... |
//NewChannelHandler returns a new ChannelHandler
func NewChannelHandler(channel LogPartsChannel) *ChannelHandler {
handler := new(ChannelHandler)
handler.SetChannel(channel)
return handler
} |
Showcase Software president and co-founder Millie Jocelyn praised the Wellington based development and design team for winning a United States award.
A Wellington software company has won a prestigious tech award in the United States.
App creation business Showcase Software won a Tabby Award for the best Windows app ... |
Personal Care Robot Navigation System Based on Multi-sensor Fusion
In recent years, intelligent elderly care equipment represented by personal care robots has gradually become a focus of academic research in various countries. A reliable navigation system is a foundation for personal care robots to perform complex tas... |
Cossacks 3
Game features: Grandiose battles of up to 32,000 soldiers on the battlefield.
20 playable nations.
100 research opportunities.
220 different historic buildings.
Battles ashore and at sea.
Five singleplayer historical campaigns.
Infinite variations of battles on randomly generated maps. Game features:
... |
The Super PAC founded by Comedy Central host Stephen Colbert has launched its first ad in South Carolina attacking Republican presidential candidate Mitt Romney as “Mitt the Ripper” for his record of destroying businesses as the head of Bain Capital.
Speaking at the Iowa State Fair last year, Romney asserted that “cor... |
On Metric Generators of Graphs
We study generators of metric spaces--sets of points with the property that every point of the space is uniquely determined by the distances from their elements. Such generators put a light on seemingly different kinds of problems in combinatorics that are not directly related to metric ... |
/**
* <p>
* CreateSMBFileShareInput
* </p>
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSMBFileShare" target="_top">AWS
* API Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateSMBFileShareRequest extends com.amazonaws... |
<gh_stars>0
import pyublas
import numpy
import pyublas.testhelp_ext as te
def test_invalid_ok():
v = numpy.array([1,2,3,4,5], dtype=numpy.float64)
assert te.size_or_neg_1(None) == -1
assert te.size_or_neg_1(v) == 5
def test_array_scalars():
u = numpy.int32(5)
assert te.dbl_int(u) == 10
def te... |
<reponame>leusonmario/2022PhDThesis<filename>elasticsearch/f3d63095dbcc985e24162fbac4ee0d6914dc757d/randoop-modified_16/RegressionTest1.java
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest1 {
... |
<reponame>npocmaka/Windows-Server-2003
/*++
Copyright (c) 2000-2002 Microsoft Corporation
Module Name:
uctdi.c
Abstract:
Contains the TDI related functionality for the HTTP client side stuff.
Author:
<NAME> (henrysa) 07-Aug-2000
<NAME> (rajeshsu) 01-Oct-2000
Revisio... |
#include <stdio.h>
int main(int argc, char const *argv[])
{
int i;
int arreglo[13]= {1,2,3,4,5,6,7,8,9,10,11,15,13};
for (i= 0; i <13; ++i){
printf("[%d]\n", arreglo[i]);
if (arreglo[i]==3)
{
printf("fiz\n");
}
if(arreglo[i]==5){
printf("boss\n");
}
//if(arreglo[i]%3==0 && arreglo[i]%5==0){
... |
def raw_field(expr: str, field_name: str) -> RawFieldCondition:
return RawFieldCondition(expr, field_name) |
<filename>src/test/java/htsjdk/beta/plugin/registry/HtsCodecResolverTest.java
package htsjdk.beta.plugin.registry;
import htsjdk.HtsjdkTest;
import htsjdk.beta.plugin.HtsCodec;
import htsjdk.beta.plugin.HtsVersion;
import htsjdk.beta.plugin.IOUtils;
import htsjdk.beta.io.bundle.Bundle;
import htsjdk.beta.io.bundle.Bun... |
<reponame>kiorisyshen/newbieGameEngine
#pragma once
#include "Animatable.hpp"
#include "BaseSceneObject.hpp"
#include "geommath.hpp"
namespace newbieGE {
class SceneObjectTransform : public BaseSceneObject,
implements Animatable<float>,
Animatable<Vector3f>,
... |
// Add metadata for the project.
//
// This endpoint is aimed to add metadata of a project.
//
// Harbor API docs: https://github.com/vmware/harbor/blob/release-1.4.0/docs/swagger.yaml#L329
func (s *ProjectsService) AddProjectMetadata(pid int64, metadata map[string]string) (*gorequest.Response, []error) {
resp, _, err... |
/*******************************************************************************
* 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... |
<filename>src/lib/command/Insert.ts
/*
* @Author: <NAME>
* @Date: 2021-01-20 13:53:33
* @LastEditTime: 2021-02-09 15:31:58
* @LastEditors: <NAME>
* @Description: In User Settings Edit
* @FilePath: \duckyorm\src\lib\command\Insert.ts
*/
import { IDuckyOrmModel, IDuckyOrmModelMapping, IInsert, IObjectIndex } from ... |
#ifndef TEST_TARGETS
#define TEST_TARGETS
#include "Compadre_GMLS.hpp"
#include "Compadre_Functors.hpp"
#include <gtest/gtest.h>
#include <cmath>
using namespace Compadre;
class TargetTest: public ::testing::Test {
public:
Kokkos::View<double*, Kokkos::DefaultExecutionSpace> epsilon_device;
Kokkos::View<dou... |
def _iter_from_node(self, offset):
b = self._b
coding = self._CODING
num_edges = b[offset] & 0x7f
offset += 1
for _ in range(num_edges):
len_byte = b[offset]
offset += 1
if len_byte & 0x40:
prefix = coding[len_byte & 0x3f]
... |
Validation of a Two-Phase CFD Model Air/Mist Film Cooling with Experimental Details – Part II: CFD Model Validation
In this Part II of the paper, a numerical study has been performed to validate the multiphase CFD model (DPM) by comparing its results to the experimental data of an air/mist film cooling study present... |
/**
* Determines whether the step data (i.e., the information the user has filled up in this field)
* is valid or not.
*
* @return True if the data is valid; false otherwise.
*/
public boolean isStepDataValid() {
IsDataValid isDataValid = isStepDataValid(getStepData());
isDataVa... |
<gh_stars>0
package main
import "fmt"
func main() {
// Using var
var name = "Sourav"
var age int32 = 30
var size float32 = 28.8
const isCool = false
fmt.Println(name, age, isCool, size)
// Get typeof variable using fmt
// https://pkg.go.dev/fmt
fmt.Printf("%T - %T\n", isCool, size)
// Shortcut method to c... |
input()
_=c=s=v=n=0
for x in map(int,raw_input().split()):
if x<0:
if s<2:n+=1
elif-d<v:v+=d
else:s=0;c+=1;n=1
elif s>1:_=v+d!=x
elif s:d=x-v;_=d%-~n;d/=-~n;_+=v-d*m<1;s=2
else:s,n,m=1,0,n
if x>0:v=x
if _:c+=1;s=1;_=m=n=0
print-~c
|
<reponame>hg-pyun/algorithm
import copy
class Solution:
def validate(self, c):
hour = c[0:2]
minute = c[2:4]
if int(hour) > 23 or int(minute) > 59:
return False
else:
return True
def largestTimeFromDigits(self, A: List[int]) -> str:... |
// GetPluginOuts returns the output location by plugin.
func GetPluginOuts(plugins []*PluginConfiguration) map[string]string {
outs := make(map[string]string)
for _, plugin := range plugins {
if plugin.Out == "" {
continue
}
outs[plugin.Label.String()] = plugin.Out
}
return outs
} |
def run_grid_sampling(
traces: gpd.GeoDataFrame,
branches: gpd.GeoDataFrame,
nodes: gpd.GeoDataFrame,
cell_width: float,
snap_threshold: float,
precursor_grid: Optional[gpd.GeoDataFrame] = None,
resolve_branches_and_nodes=False,
) -> gpd.GeoDataFrame:
if traces.empty:
logging.war... |
<gh_stars>0
use crate::show_commit::diff_line::DiffLine;
#[derive(Debug, Clone)]
pub struct Delta {
old_start: u32,
old_lines: u32,
new_start: u32,
new_lines: u32,
context: String,
lines: Vec<DiffLine>,
}
impl Delta {
pub(super) fn new(header: &str, old_start: u32, new_start: u32, old_lines: u32, new_lines: u3... |
import java.util.concurrent.CountDownLatch;
public class SleepSort {
public static void sleepSortAndPrint(int[] nums) {
final CountDownLatch doneSignal = new CountDownLatch(nums.length);
for (final int num : nums) {
new Thread(new Runnable() {
public void run() {
doneSignal.countDown();
try {
... |
#include "ComplexMathsBenchmarksF32.h"
#include "Error.h"
void ComplexMathsBenchmarksF32::vec_conj_f32()
{
arm_cmplx_conj_f32(this->inp1,this->outp,this->nb);
}
void ComplexMathsBenchmarksF32::vec_dot_prod_f32()
{
float32_t real,imag;
arm_cmplx_dot_prod_f32(this->inp1,thi... |
/**
* Shared test configuration where all {@linkplain org.jboss.as.controller.client.ModelControllerClient}s share a common {@linkplain Endpoint} and
* {@linkplain java.util.concurrent.Executor}.
*
* @author Emanuel Muckenhuber
*/
public class DomainControllerClientConfig implements Closeable {
private static... |
<reponame>zhangninggit/fast-template
package com.zn.service.impl;
import com.zn.entity.UserInfo;
import com.zn.dao.UserInfoMapper;
import com.zn.service.IUserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
... |
// Returns an EnclaveCredentialsOptions object for the given |types|, which is a
// repeated field of GrpcCredentialsOptionsType. |self| indicates whether the
// credentials options should be configured for self or peer.
EnclaveCredentialsOptions GetCredentialsOptions(
const google::protobuf::RepeatedField<int> typ... |
#include <stdio.h>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>
#include <utility>
#define pii pair<int, int>
#define DEBUG false
#define prime 1000000007
using namespace std;
int dp[1001][1001];
int main()
{
int t, n, k, r, i, a[1001], tcount, count;
for(n = 1; n <= 1000; n++)
dp[n][0... |
/**
* config-scope that replaces @link ConfigScope
*/
public class HelixConfigScope {
/**
* Defines the various scopes of configs, and how they are represented on Zookeeper
*/
public enum ConfigScopeProperty {
CLUSTER(2, 0),
PARTICIPANT(2, 0),
RESOURCE(2, 0),
PARTITION(2, 1),
CONSTRAINT(... |
import { NavTextLink } from '../components/nav-text-link';
import { useDarkMode } from '../hooks/use-dark-mode';
import { CategoryInfoProps, CategoryInfo } from '../components/category-info';
const navLinkTexts = ['Explore', 'FAQ', 'About'];
const DUMMY_ROUTE = '/dummy';
const categoryInfoData: CategoryInfoProps[] =... |
<filename>src/control/action_provider_linux_debian.rs
/*
Prod
Copyright 2021-2022 <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 requ... |
"""
This module provides classes and functions for pass management.
There are two kinds of passes: transformations and analysis.
* ModuleAnalysis, FunctionAnalysis and NodeAnalysis are to be
subclassed by any pass that collects information about the AST.
* gather is used to gather (!) the result of an an... |
import React from "react";
import * as styles from "./Hello.module.scss";
const Hello = () => {
return <h1 className={styles.name}>Hello</h1>;
};
export default Hello;
|
<reponame>ryanplusplus/seven-languages-in-seven-weeks
-- Solve the map-coloring problem [Section 4.2, Map coloring, on page 87] using
-- Haskell.
module Main (mapColoring) where
colors = ["red", "green", "blue"]
mapColoring =
[
(["MS", ms], ["TN", tn], ["AL", al], ["GA", ga], ["FL", fl]) |
ms <- co... |
//GetStore - give the application data store
func GetStore() OrekDataStore {
if db == nil {
olog.Fatal("Orek", "DataStore is Nil!!!")
}
return db
} |
def load_ref_system():
return psr.make_system("""
C 1.5407 -0.3295 0.0798
S -0.0596 0.4296 -0.3610
C -0.9467 -1.1596 -0.4976
O -0.4670 0.6286 1.1081
H 2.2637 0.4718 0.3373
H 1.9354 -0.8892 ... |
/**
* The binit() function initializes the block cache. It places all block
* buffers in the free list and cleans the hash table of block buffers.
*/
void binit(void)
{
uprintf("[nanvix][vfs] initializing block cache...");
for (int i = 0; i < NANVIX_FS_NR_BUFFERS; i++)
{
buffers[i].flags = RESOURCE_INITIALIZER;... |
"""This single-file app demonstrates how to use flask-sqlalchemy-pgevents to
listen for new user-accounts output them to the console.
Requirements (at time of creation):
attrs==18.2.0
click==6.7
Flask==1.0.2
Flask-SQLAlchemy==2.3.2
flask-sqlalchemy-pgevents==0.1.0
gevent==1.3.6
greenlet==0.4.14
gunicorn==19.9.0
huey=... |
use self::super::util::{human_readable_size, percent_decode, parent_url, GETCH_SPECIAL_PREFIX, GETCH_ARROW_RIGHT, GETCH_ARROW_LEFT, GETCH_ARROW_DOWN,
GETCH_ARROW_UP, TAB_SPACING, GETCH_DELETE, GETCH_ENTER, USER_AGENT, GETCH_ESC};
use rfsapi::{RawFsApiHeader, FilesetData, RawFileData};
use std::i... |
<reponame>viardant/ydk-gen<filename>sdk/python/core/python.cpp
/* ----------------------------------------------------------------
Copyright 2016-2019 Cisco Systems
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 cop... |
// SetAddressConfig sets the AddressConfig to the endpoint
func (f *Facade) SetAddressConfig(ctx datastore.Context, serviceid, endpointName string, sa servicedefinition.AddressResourceConfig) error {
defer ctx.Metrics().Stop(ctx.Metrics().Start("Facade.SetAddressConfig"))
svc, err := f.GetService(ctx, serviceid)
if ... |
The association between C-reactive protein, mood disorder, and cognitive function in UK Biobank
Background Systemic inflammation has been linked with mood disorder and cognitive impairment. The extent of this relationship remains uncertain, with the effects of serum inflammatory biomarkers compared to genetic predispo... |
/**
*
* @author Kirill Bereznyakov
*/
public class RawPacket{
private final SocketAddress remoteSocketAddress;
private final byte[] data;
/**
* При создании производит копирование данных из dataBuf
* @param remoteSocketAddress адрес клиента
* @param dataBuf ссылка на буфер с данными к... |
// AllProviders returns all configured providers
func (c *DefaultClient) AllProviders(ctx context.Context) (ProviderNames, error) {
c.ensure()
providerNames := ProviderNames{}
err := c.getResource(ctx, &providerNames, "/providers")
if err != nil {
return providerNames, err
}
return providerNames, nil
} |
Segmentation proposal of counterfeit luxury consumers regarding the purchase intention
Nowadays, both academic and professional have proven with early statistics the frustrating degree of damage caused by counterfeit luxury products. So, this study aims to specify the consumers counterfeit luxury purchase intention in... |
/**
* This method is triggered when any player closes their inventory.
*
* @param event The event to listen for.
*/
@EventHandler
public void handlePlayerInventoryClose(InventoryCloseEvent event) {
KelpPlayer kelpPlayer = KelpPlayer.from(event.getPlayer().getUniqueId());
if (kelpPlayer == null) {
... |
Size and microstructure effects on the stress-strain behaviour of lead-free solder joints
The properties of lead-free solders such as Sn3.8Ag0.7Cu are less understood than traditional Sn-Pb solders, as well as the factors affecting these material properties. Therefore, the present paper focuses on determination of str... |
/*
* Construct a bootarea (d_bbsize bytes) in the specified buffer ``boot''
* Returns a pointer to the disklabel portion of the bootarea.
*/
struct disklabel *
makebootarea(char *boot, struct disklabel *dp, int f)
{
struct disklabel *lp;
char *p;
#if NUMBOOT > 0
char *dkbasename;
int b;
struct stat sb;
#endif
... |
/**
* Update sound virtual locations from already calculated GPS locations
*/
public void updateSoundLocations()
{
if(debug.sound) System.out.println("Field.updateSoundLocations()... clusters.size():"+clusters.size());
for(WMV_Sound snd : sounds)
setSoundLocationFromState(snd); /* Set sound locati... |
In 1991, Linus Torvalds released the Linux kernel on the Internet and invited anyone who wanted to download, use and modify it. In an amazingly short amount of time, a community built up around Torvalds' initial code and their contributions transformed it into an operating system that rivaled those of even corporate gi... |
<gh_stars>100-1000
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 <NAME>
*/
#include "guInternal.h"
void sceGuViewport(int cx,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.