content stringlengths 10 4.9M |
|---|
// test that we can deserialize and run a previously saved ORT format model
// for a model with sequence and map outputs
OrtModelTestInfo GetTestInfoForLoadOrtFormatModelMLOps() {
OrtModelTestInfo test_info;
test_info.model_filename = ORT_TSTR("testdata/sklearn_bin_voting_classifier_soft.ort");
test_info.logid = ... |
/**
* Method to handle the case that the referer of the request is empty. The execution of this method could be switched
* off from project.properties.
*/
protected HttpServletRequest hackRefererHeader(final HttpServletRequest request)
{
return new HttpServletRequestWrapper(request)
{
@Override
public ... |
<gh_stars>0
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/example.proto
package api
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.... |
/**
*
* @author S. Ricci
*
*/
public class Numbers {
public static boolean isNumber(Object value) {
if (value == null) {
return false;
}
if (value instanceof Number) {
return true;
}
if (value instanceof String) {
try {
Double.parseDouble((String) value);
return true;
} catch (Num... |
A Rare Presentation of a Non-Asian Female With Metastatic Non-small-cell Lung Cancer Harboring EGFR L747P Mutation With Clinical Response to Multi-targeted Epigenetic and EGFR Inhibition
Background: Activating mutations of the epidermal growth factor receptor (EGFR) gene have been utilized to predict the effectiveness... |
/**
* The entry-point of the benchmark program.
*/
public class Entrypoint {
//TODO: Replace the argument handling here with a proper CLI argument library.
// (such as pico-cli used in the seed data generator)
public static void main(String[] args) throws Exception {
if(args == null || args.l... |
/** Returns whether the string is a word in the trie, using the algorithm
* described in the videos for this week. */
@Override
public boolean isWord(String s)
{
if(s.isEmpty()||size==0){
return false;
}
String word=s.toLowerCase();
char[] ch=word.toCharArray();
TrieNode curr=root;
for(int i=0;i<ch.... |
// A param to pass into a smart contract function call
public class MethodArg
{
public String parameterType; //type of param eg uint256, address etc
public TokenscriptElement element; // contains either the value or reference to the value
public boolean isTokenId()
{
return element.isToken();
... |
<reponame>vignesh-goutham/eks-anywhere
package framework
import (
"os"
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
)
const (
snowAMIIDUbuntu120 = "T_SNOW_AMIID_UBUNTU_1_20"
snowAMIIDUbuntu121 = "T_SNOW_AMIID_UBUNTU_1_21"
snowControlPlaneCidr = "T_SNOW_CONTROL_PLANE_CIDR"
snowPodCidr ... |
//Begin Invoke a transaction, sql.Tx, from the for ths DbStatement
func (stmnt *DbStatement) Begin() (err error) {
if tx, txerr := stmnt.cn.db.Begin(); txerr == nil {
stmnt.tx = tx
} else {
err = txerr
}
return err
} |
SOLEDAR, Ukraine — Once buzzing with activity, this sleepy compound in the rolling hills of eastern Ukraine emptied quickly on Thursday as the last of a team of international experts left, their mission to identify the remains of Malaysia Airlines Flight 17 indefinitely suspended.
The development comes as fighting bet... |
/**
* Changes an existing ZIP file: removes entries with given paths.
*
* @param zip an existing ZIP file
* @param paths paths of the entries to remove
* @since 1.7
*/
public void removeEntries(final File zip, final String[] paths) {
operateInPlace(zip, new BaseInPlaceAction() {
... |
def _sanitize(cstr):
val = ''
level = 0
for char in cstr:
if char in ('(', '{', '['):
level += 1
elif char in (']', '}', ')'):
level -= 1
elif level == 0:
val += char
return val |
My take on Queen Elsa in Pokemon Style and with who I think should be her teamAlso, whenever I do things like these, people do nothing but critic the teams I give them... let's face it, any of these are just picks from Ice type...Glaceon - I thought Anna could have Leafeon (because of her flowery dress)Beartic and Abom... |
#pragma once
#include "client/rpc_client.hpp"
#include "client/async_rpc_client.hpp"
#include "client/sub_client.hpp"
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Config.Paths (CfgM, runCfg, mainConfigPaths, colorsPaths, colorschemePaths, themePaths) where
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Reader (MonadReader, ReaderT, runReaderT, asks)
import qualified Data.Map.Lazy as Map
import Data.Maybe (maybeTo... |
/**
* Creates a mapped record with the given map of keys and values.
*
* @param source the record source (its original form).
* @param resource the record resource (where it comes from: file, database, etc).
* @param position the record position inside the resource (line number, etc.).
* @param values... |
package io.github.riesenpilz.nmsUtilities.packet.playOut;
import org.apache.commons.lang.Validate;
import org.bukkit.entity.Player;
import io.github.riesenpilz.nmsUtilities.packet.HasText;
import io.github.riesenpilz.nmsUtilities.reflections.Field;
import net.minecraft.server.v1_16_R3.IChatBaseComponent;
import net.m... |
A computer method for validating traditional Chinese medicine herbal prescriptions.
Traditional Chinese medicine (TCM) has been widely practiced and is considered as an alternative to conventional medicine. TCM herbal prescriptions contain a mixture of herbs that collectively exert therapeutic actions and modulating e... |
<filename>Semantics/C/ASG/Newtypes.hs
module Semantics.C.ASG.Newtypes where
import Semantics.C.ASG
newtype FixSignedness = FSign { unFSign :: FSem } deriving (Show)
newtype FixSize = FSize { unFSize :: FSem } deriving (Show)
newtype FixType = FType { unFType :: FSem } deriving (Show)
newtype FixNonVoidType... |
// Serve method for webhook server
func (c *Controller) serveHTTP(w http.ResponseWriter, req *http.Request) {
if strings.Contains(req.URL.Path, mutateWebHook) {
c.processMutateRequest(w, req)
} else {
http.Error(w, "Unsupported request", http.StatusNotFound)
}
} |
#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <map>
#include <vector>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
using namespace std;
#define mem(s,t) memset(s,t,sizeof(s))
#defi... |
/**
* Created by Schoen and Jonathan on 4/21/2016.
*/
public class Planet {
protected float rotation, orbit;
protected Transform orbitTransform, transform;
public float distance, radius;
public Planet(float distance, float radius, float rotation,
float orbit, int texId, Tr... |
Britain's Prime Minister David Cameron (R) speaks to British forces at Camp Bastion in Helmand Province, Afghanistan June 11, 2010. REUTERS/Sergeant Ian Forsyth RLC/MoD/Crown Copyright/Handout
LONDON (Reuters) - A British soldier who did not realize she was pregnant has given birth to a baby boy at the Camp Bastion fi... |
/*!
* Clear the contents of the file. This will also mark the file as clean
*/
void ProtocolFile::clear()
{
contents.clear();
dirty = false;
appending = false;
} |
<gh_stars>1-10
#include "armament.h"
struct Armament::ArmamentImpl {
ArmamentImpl();
ArmamentImpl(int defenseBonus, int offenseBonus);
~ArmamentImpl()=default;
int defenseBonus_;
int offenseBonus_;
};
Armament::Armament() : impl_ { new Armament::ArmamentImpl() } {
}
Armament::Arm... |
The programming of canalization in fetal lungs of man and monkey.
In the monkey lung (Macacus nemestrina) canalization of all bronchopulmonary segments begins simultaneously at the peripheral future-alveolar-duct portions of each segment and then continues progressively centralwards. Its simulataneous appearance in al... |
def check_identifier_name_in_declaration(filename, line_number, line, file_state, error):
if match(r'\s*(return|delete)\b', line):
return
ref_regexp = r'^\s*Ref(Ptr)?<([\w_]|::)+> (?P<protector_name>[\w_]+)(\(| = )(\*|&)*(m_)?(?P<protected_name>[\w_]+)\)?;'
ref_check = match(ref_regexp, line)
if... |
Assessing Impact, Performance and Sustainability Potential of Smart City Projects: Towards a Case Agnostic Evaluation Framework
We report on a novel evaluation framework to globally assess the footprint of smart cities and communities (SCC) projects, being also expandable to the case of smart grid related projects. Th... |
/**
* Unit test for simple App.
*/
public class AppTest {
private static final Logger LOGGER = LoggerFactory.getLogger(AppTest.class);
@Test
public void shouldAnswerWithTrue() {
assertTrue(true);
}
@Test
public void testTeamReader() throws Exception {
WebClient client = new WebClient();
clie... |
/**
* Automatically sets the location of the notification based on the already existing ones.
*/
private void autoSetLocation() {
int taskBarSizeBottom = scnMax.bottom;
int taskBarSizeRight = scnMax.right;
int height = getHeight();
for (int j = 0; j < notificationBars.size(); j... |
N, i = [input() for x in range (2)]
arr = sorted([int(y) for y in i.split(' ')], reverse=True)
print(sum(arr[0::2]) - sum(arr[1::2])) |
<filename>src/Nethereum.Generators.JavaScript/AbiDeserialiser.ts
var n = require('./Nethereum.Generators.DuoCode.js');
var functionAbi = Nethereum.Generators.Model.FunctionABI;
var eventAbi = Nethereum.Generators.Model.EventABI;
var constructorAbi = Nethereum.Generators.Model.ConstructorABI;
var contractAbi = Nethere... |
/**
* This class converts a specific {@link CoreUnit unit} so that the unit itself is {@link Provided provided}.
*/
@Immutable
@GenerateBuilder
@GenerateSubclass
public abstract class CoreUnitConverter<UNIT extends CoreUnit> extends TableImplementation<UNIT, UNIT> {
@Pure
@Override
public @Nonnull @C... |
<filename>client/src/components/basic/select/interface.ts
import { TSvgFC } from 'containers/create-new-task/data';
import React from 'react';
export interface ISelectValue {
id: string | null;
title: string;
icon?: string;
iconFC?: TSvgFC;
iconM?: React.ElementType;
}
export interface ISelectProps {
className?... |
import xappt
TOOL_CHOICES = {
"data types": "datatypes",
"modify choices": "modifychoices",
"none (quit)": None,
}
@xappt.register_plugin
class ToolChaining(xappt.BaseTool):
next_tool = xappt.ParamString(description="Choose the next task", choices=list(TOOL_CHOICES.keys()))
persistent_data = xapp... |
package parallel
import (
"fmt"
"sort"
"sync"
"testing"
)
func TestDo(t *testing.T) {
ln := 100
input := make(chan interface{})
resch, errsch := Do(idemFunc, 10, input)
go func(input chan interface{}) {
for i := 0; i < ln; i++ {
input <- i
}
close(input)
}(input)
var results []interface{}
loop:
fo... |
l=lambda:map(int,raw_input().split())
m = l()
w = l()
hs, hu = l()
ans=100*hs-50*hu
for i in range(5):
x=500*(i+1)
ans+= max(0.3*x,(1-m[i]/250.0)*x-50*w[i])
print int(ans) |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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-2.0
... |
/// This implements the lattice merge operation for 2 optional DIKinds.
static Optional<DIKind> mergeKinds(Optional<DIKind> OK1, Optional<DIKind> OK2) {
if (!OK1.hasValue())
return OK2;
DIKind K1 = OK1.getValue();
if (K1 == DIKind::Partial)
return K1;
if (!OK2.hasValue())
return K1;
DIKind K2 = OK... |
From a meditation on walking Britain's ancient paths to an epic American novel, from reportage on life in a Mumbai slum to a blockbuster biography of LBJ ... writers choose their books of the year
Chimamanda Ngozi Adichie
Tobys Room
Eghosa Imasuen's Fine Boys (Farafina Books, available on Kindle) is, simply put, a v... |
/** An information of App's deployment status. */
@Value
public class AppDeployStatus {
/** The App ID. */
private final long app;
/** The status of the deployment of App settings. */
private final DeployStatus status;
} |
<reponame>jarry-xiao/metaplex-program-library<filename>token-metadata/js/src/mpl-token-metadata.ts
export * from './accounts';
export * from './MetadataProgram';
export * from './transactions';
|
6 Henry James
The current trends in James studies present an intriguing paradox. At the beginning of the millennium, James is most frequently viewed as a modernist whose later career overshadows its 19th-century origins. But a turn toward ethical criticism, and away from poststructuralist skepticism, recalls the work ... |
/**
* Decodes the parameter from an external source or input stream to a
* GeoPackageProcessRequest. This decode method is used when a
* SimpleInputProvider is used via the unit tests.
*
* @param input an input stream
* @return a GeoPackageProcessRequest
* @throws Exception
*/
@O... |
/**
* Processes a given source for XML files to populate the dictionary with
*
* @param namespaceCode - namespace the beans loaded from the location should be associated with
* @param sourceName - a file system or classpath resource locator
* @throws IOException
*/
protected void indexSour... |
Adaptive Serendipity for Recommender Systems: Let It Find You
Recommender systems are nowadays widely implemented in order to predict the potential objects of interest for the user. With the wide world of the internet, these systems are necessary to limit the problem of information overload and make the user’s interne... |
/**This class defines a NULL video output device.
This will do precisely nothing with the output.
*/
class PVideoOutputDevice_NULLOutput : public PVideoOutputDevice
{
PCLASSINFO(PVideoOutputDevice_NULLOutput, PVideoOutputDevice);
public:
PVideoOutputDevice_NULLOutput();
static PStringArray GetOutputDevi... |
Biomedical resources on Usenet.
Usenet offers efficient access to health sciences information resources. The software for reading and searching Usenet includes filters that can eliminate irrelevant messages, sorts related items by topic, and allows users to reply to either the group or an individual. Usenet has more t... |
def assert_equal(actual, desired, err_msg='', verbose=True):
__tracebackhide__ = True
if isinstance(desired, dict):
if not isinstance(actual, dict):
raise AssertionError(repr(type(actual)))
assert_equal(len(actual), len(desired), err_msg, verbose)
for k, i in desired.items(... |
/* It's not a dream, it's a goal */
#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF LONG_LONG_MAX
#define ll long long
#define ldb long double
#define P pair<ll,ll>
#define V vector<ll>
#define VV vector<V>... |
def render(self, nRenderer: int, aSelection: object, xOptions: 'typing.Tuple[PropertyValue_c9610c73, ...]') -> None: |
def create_topic(self):
logger.debug("producer topic creation function working")
client = AdminClient({'bootstrap.servers': self.broker_properties.get('bootstrap.servers')})
if self.topic_name not in client.list_topics().topics:
futures = client.create_topics([NewTopic(topic=self.top... |
// Just check that a CancelableExecutor correctly schedules & runs work
// in the uncanceled case.
TEST(CancelableExecutor, SchedulesWorkCorrectly) {
auto exec = InlineQueuedCountingExecutor::make();
auto [promise, future] = makePromiseFuture<void>();
CancellationSource source;
auto fut2 =
std::... |
/**
* Custom class for Track detail with getter methods
* Created by Nishant on 10/28/2017.
*/
public class TrackDetail {
/* Name of song */
private String mSongName;
/* Artist of the song */
private String mArtistName;
/* Name of Album */
private String mAlbumName;
/* Album art for t... |
///
/// Performs a hard reset using the RST pin sequence
///
pub fn hard_reset(&mut self) -> Result<(), Error<SPI::Error, DC::Error, RST::Error>> {
self.rst.set_high().map_err(Error::Rst)?;
self.delay.delay_us(10); // ensure the pin change will get registered
self.rst.set_low().map_err(Error::Rs... |
import { InvalidGrantError, ServerError, Request } from 'oauth2-server';
import crypto from 'crypto';
import { TYPE, AuthorizationCode } from '.';
import { base64URLEncode } from './utils';
const validateAuthCode = (request: Request, code: AuthorizationCode) => {
if (code.codeChallenge) {
if (!request.body.code... |
/**
OpticksEvent::save
---------------------
Canonically invoked by OpticksRun::saveEvent which is
invoked from top level managers such as OKMgr::propagate.
::
frame #3: 0x0000000106d45f96 libOpticksCore.dylib`OpticksEvent::save(this=0x0000000130c8c1d0) at OpticksEvent.cc:1619
frame #4: 0x0000000106d512dd l... |
Apple Maps has been updated with comprehensive transit data for Great Britain, beyond the London area already supported.Transit directions by bus, train, or tram are now available within and between large metropolitan areas such as Birmingham, Manchester, Liverpool, Newcastle, Sheffield, Glasgow, Edinburgh, Leeds, Brad... |
class ScLV:
"""Print a sc_lv object."""
def __init__(self, val):
self.val = val
def to_string(self):
outLogic = "";
length = int(self.val["m_len"])
size = int(self.val["m_size"])
mod = length % 32
if (mod == 0):
mod = 32
for i in range(s... |
Effects of nano iron oxide and seed inoculation by free living nitrogen fixing bacteria on yield and some grain traits of triticale under water limitation condition
In order to study the effects of nano iron oxide and seed inoculation by free living nitrogen fixing bacteria on yield and some physiological traits of tr... |
package api
import (
"encoding/json"
"errors"
"github.com/astaxie/beego/httplib"
"mysite/helper"
"mysite/utils"
)
type Venue struct {
Base
}
type ResponseData struct {
App_id string
App_key string
}
type Response struct {
Status string
Msg string
Data *ResponseData
}
type ... |
s = input()
n = len(s)
if(n < 5):
print("NO")
elif(s=="hello"):
print("YES")
else:
i = 0
c = 0
j = 0
k = "hello"
while(i< n and j < 5):
if(s[i]== k[j] ):
j+=1
i+=1
if(j==5):
print("YES")
else:
print("NO")
|
def _format_coord(x, y, labels, ax):
tdiffs = [np.abs(tvec - x).min() for tvec in times]
nearby = [k for k, tdiff in enumerate(tdiffs) if
tdiff < (tmax - tmin) / 100]
xlabel = ax.get_xlabel()
xunit = (xlabel[xlabel.find('(') + 1:xlabel.find(')')]
if '('... |
/**
* Concludes processing of an OSM element (node, way, or relation) once it has been parsed completely. Overrides method in the parent Saxon class to finalize variables and indices at the end of parsing of each OSM element.
* @param s The Namespace URI, or the empty string if the element has no Namespa... |
<reponame>petergeneric/stdlib
package com.peterphi.std.guice.web.rest.jaxrs.exception;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import com.peterphi.std.annotation.Doc;
import com.peterphi.std.guice.restclient.jaxb.RestFailure;
import com.peterphi.std.gui... |
def sat_solver(x, A, k, sat_instances, sat_clauses, sat_solutions):
start_time = time.time()
time_to_add_constraints = 0
index_constraints = -1
if len(x)>1 and sat_instances[len(x)-2] != None:
if np.sign(sat_solutions[len(x)-2][len(x)-1]) == np.sign(x[len(x)-1]-0.5):
return True, 0... |
Talk about Text during Independent Writing: What Teacher—Student Interaction Suggests for How We Understand Students' Competence
Talk between students and their teachers is central to learning at school, yet students' competence is often understood as the outcome of instructional talk rather than essential to successf... |
"""
Given a list of bad numbers, find the longest segment of good numbers within the given range
"""
def good_segment(bad_numbers, l, r):
bad_numbers = [l - 1] + sorted(x for x in bad_numbers if l <= x <= r) + [r + 1]
mx = 0
for a, b in zip(bad_numbers, bad_numbers[1:]):
gap = b - a
mx = ... |
<gh_stars>0
import os
from discord.ext import commands
# Symbol used for calling commands
client = commands.Bot(command_prefix='#')
# Prints message telling the bot is running
@client.event
async def on_ready():
print('Paranoid Android Ready.')
# Loads cog
@client.command()
@commands.is_owner()
async def load(... |
<reponame>ivanpauno/pc_pipe
#include <image_transport/image_transport.h>
#include <image_transport/subscriber_filter.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <rclcpp/rclcpp.hpp>
#include <sensor_msgs/msg/ima... |
/**
* Returns a tree in which the "filter-level" sub-tree is declared as normalized.
*/
public IQTree createNormalizedTree(VariableGenerator variableGenerator, IQProperties currentIQProperties) {
if (child.isDeclaredAsEmpty())
return iqFactory.createEmptyNode(projectedVaria... |
/**
* Reads the whole XML contents into XmlData
*
* @return XmlData obtained from input source.
* @throws java.io.IOException if an I/O error occurs.
*/
public BasicXmlData read()
throws IOException {
try {
SAX_parser.parse(src);
lastElement.trim();
return lastElement;
} cat... |
<reponame>rbrt-s/scrumlr.io
import * as firebase from 'firebase/app';
export interface AuthProviderMap {
google: firebase.auth.AuthProvider;
twitter: firebase.auth.AuthProvider;
github: firebase.auth.AuthProvider;
}
export type AuthProvider = keyof AuthProviderMap;
export const instantiateAuthProviders = (
f... |
/**
* Test Case - Function Import that returns an Entity Type that is not found
* in JPA Model
*/
@Test
public void testFunctionImportEntityTypeInvalid() {
VARIANT = 8;
try {
jpaEdmfunctionImport.getBuilder().build();
fail("Exception Expected");
} catch (ODataJPAModelException e) {
... |
def check_activation_key(request, activation_key):
try:
user_profile = UserProfile.objects.get(activation_key=activation_key)
except UserProfile.DoesNotExist:
return JSONResponse({ '__all__': 'Invalid activation key' }, status=400)
user = user_profile.user
if user.is_active:
ret... |
// The return value is constant within a query but can be different between queries.
@UDFType(deterministic = false, runtimeConstant = true)
@Description(name = "current_schema", value = "_FUNC_() - returns currently used schema(database) name")
@NDV(maxNdv = 1)
public class GenericUDFCurrentSchema extends GenericUDFCu... |
<gh_stars>0
import { hash, compare } from 'bcryptjs';
import { IHashProvider } from '@modules/users/providers/HashProvider/models/IHashProvider';
export default class BCryptHashProviders implements IHashProvider {
public async generateHash(decrypted: string): Promise<string> {
return hash(decrypted, 8);
... |
/*!
\brief Set the current point to point. Point is a string which will be
converted as defined by the formatting hints given in option. This updates
all textual representations owned by this controller.
The \c SpatialReference is taken from the \c GeoView.
If conversion fails this function is treated a... |
<reponame>IllusionMH/tslint
/**
* @license
* Copyright 2013 Palantir Technologies, 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-... |
/**
* Created by Suguru Yajima on 2014/06/02.
*/
public class GraphPrototypeCreateTest extends ZabbixApiTestBase {
public GraphPrototypeCreateTest() {
super();
}
@Test
public void testCreate1() throws Exception {
GraphPrototypeCreateRequest request = new GraphPrototypeCreateRequest()... |
// ForceUpdate requests an immediate update of endpoints and waits for its completion.
func (p *Dynamic) ForceUpdate() {
wait := make(chan struct{})
p.forceUpdateChan <- wait
<-wait
} |
'''
Download "Issues" from GitHub
This version uses the "PyGitHub" module, which provides a relatively
limited amount of information, but it is easy to use.
This script was created using information provided by:
https://towardsdatascience.com/all-the-things-you-can-do-with-github-api-and-python-f01790fca131
Author:... |
After an exhaustive study of Mahatma Gandhi’s works, scholar and activist Norman Finkelstein has written a new book about the principles of nonviolent resistance from the Indian struggle for independence to Tahrir Square and Zuccotti Park. He says Gandhi found “nothing more despicable than cowardice,” and argued that n... |
<reponame>ma-coding/performular<filename>projects/core/src/lib/build-in/run-detection/on-change.run-detection.ts
import { RunDetector } from '../../decorator/static/run-detector';
import { RunDetectionStrategy } from '../../handler/run-detection/types/run-detection-strategy';
import { RunContext } from '../../util/type... |
Comments on "Pruning Error Minimization in Least Squares Support Vector Machines"
In this letter, we comment on "Pruning Error Minimization in Least Squares Support Vector Machines" by B. J. de Kruif and T. J. A. de Vries. The original paper proposes a way of pruning training examples for least squares support vector ... |
With the NFL lockout finally in the past, the Giants will open training camp today at the Timex Performance Center in East Rutherford. Here's a look at the team heading into it:
WHAT'S NEW
Offensive Line
The biggest story of the first post-lockout week for the Giants was the release of two veteran offensive linemen ... |
LARGE DETERMINANT OF GREENHOUSE GAS EMISSIONS DISCLOSURE IN INDONESIA
The purpose of this study is to examine the influence of corporate governance and financial performance toward th e g reenhouse gases disclosure. Study in the companies listed in Bursa Efek Indonesia (BEI) for the year 2014-2017. This study used sec... |
<filename>src/providers/dream.ts<gh_stars>0
/**
* Represents a dream.
*
* @export
* @class Dream
*/
export class Dream {
_id: string;
_rev: string;
created: string;
date: string;
title: string;
description: string;
dreamsigns: Array<string>;
}
|
#include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);
typedef map<string, vector<string> > msvs;
map<string, string> BFS(string &from, string &destiny, msvs &graph ){
queue<string> cola;
string actual;
vector<string> adj;
map<string, string> ... |
<gh_stars>1-10
from polarization import JonesVector
import matplotlib.pyplot as plt
from typing import List
import numpy as np
class Pulse:
def __init__(self, vectors=None, centerWavelength=None, wavelengthBandwidth=None,
polarization: JonesVector = None, resolution=512):
"""
A li... |
<reponame>CryptoTheSuperDog/fds<filename>assignments/assignment7/my_preprocess.py
import numpy as np
from scipy.linalg import svd
def pca(X, n_components=5):
# Use svd to perform PCA on X
# Inputs:
# X: input matrix
# n_components: number of principal components to keep
# Output:
# ... |
import math
n = input()
x = 2
level = 1
while level != n + 1:
t = level
m = ((level + 1) * (level + 1) * (level) - x / level)
print m
x = (level) * (level + 1)
level += 1 |
Integrated proteomic and miRNA transcriptional analysis reveals the hepatotoxicity mechanism of PFNA exposure in mice.
Perfluoroalkyl chemicals (PFASs) are a class of highly stable man-made compounds, and their toxicological impacts are currently of worldwide concern. Administration of perfluorononanoic acid (PFNA), a... |
<filename>include/halo/tuner/RandomQuantity.h<gh_stars>10-100
#pragma once
#include <gsl/gsl_vector.h>
#include <gsl/gsl_statistics_double.h>
#include <cmath>
#include <memory>
#include <cassert>
namespace halo {
// A simple wrapper for gsl_vector to manage its memory, and also some user-friendly additions.
class GS... |
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cstring>
#include<vector>
#include<queue>
#include<algorithm>
#include<climits>
#include<bitset>
#define pii pair<int,int>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define int long long
#define mod 1000000007
using namesp... |
// Close closes all connections to the distant http server used by this HTTPFile
func (hf *HTTPFile) Close() error {
hf.lock.Lock()
defer hf.lock.Unlock()
if hf.closed {
return nil
}
if dumpStats {
log.Printf("========= HTTPFile stats ==============")
log.Printf("= total connections: %d", hf.stats.connection... |
#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, a, b) for (int i = a; i < b; i++)
#define clr(t, val) memset(t, val, sizeof(t))
#define all(v) v.begin(), v.end()
#define SZ(v) ((int)(v).size())
#define TEST(x) cerr << "test " << #x << " " << x << endl;
using namespace std;
typed... |
/// Resolves the column index, which **must** exist in the table.
/// Returns the _name_ of the column that it was resolved to as well.
fn resolve_indices(&self, table: &Table, cx: &Context) -> Result<Vec<(usize, Str)>> {
let mut x = Vec::with_capacity(self.names.len());
for name in &self.names {
... |
<gh_stars>10-100
export declare class HttpHeaders {
private headers;
private normalizedNames;
constructor(headers?: HttpHeaders);
constructor(headers?: {
[name: string]: string | string[];
});
constructor(headers?: {
[name: string]: () => string | string[];
});
contentTyp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.