content stringlengths 10 4.9M |
|---|
def authenticate(screen_name_or_email_address: str, password: str) -> User:
user_id = _find_user_id_by_screen_name_or_email_address(
screen_name_or_email_address
)
if user_id is None:
raise AuthenticationFailed()
user = user_service.find_active_user(user_id)
if user is None:
... |
/**
* get session and reset. After reset call super
* to return the updated session information
* @param toBuilder string containing the xml
* @return true if the parent wrapper to be included in returned xml
*/
@Override
protected boolean onDoGetWebService(StringBuilder toBuilder)
{
... |
// WithSetttings is used for overriding settings
// Default is settings from a method DefaultSettings()
func WithSetttings(s Settings) Option {
return func(g *Generator) {
g.settings = s
}
} |
package com.hltech.pact.gen.domain.client.model;
import lombok.Builder;
import lombok.Data;
import java.util.List;
@Data
@Builder
public class ClientMethodRepresentation {
private RequestRepresentation requestRepresentation;
private List<ResponseRepresentation> responseRepresentationList;
}
|
<reponame>Tracy-MacGrady/qg-utils
package com.qgclient.utils.http;
import android.content.Context;
import android.text.TextUtils;
import com.android.volley.AuthFailureError;
import com.android.volley.Cache;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.NetworkResponse;
import com.android.vol... |
<gh_stars>0
typedef enum WebPPreset {
WEBP_PRESET_DEFAULT = 0,
WEBP_PRESET_PICTURE,
WEBP_PRESET_PHOTO,
WEBP_PRESET_DRAWING,
WEBP_PRESET_ICON,
WEBP_PRESET_TEXT
} WebPPreset;
typedef enum WEBP_CSP_MODE {
MODE_RGB = 0, MODE_RGBA = 1,
MODE_BGR = 2, MODE_BGRA = 3,
MODE_ARGB = 4, MODE_RGBA_4444 = 5,
MODE... |
#![feature(get_mut_unchecked)]
#![feature(map_first_last)]
use crate::error::Error;
use pydis::opcode::py27::{self, Mnemonic, Standard};
use pydis::prelude::Opcode;
use rayon::prelude::*;
use py27_marshal::{Code, Obj};
use rayon::Scope;
use std::collections::HashMap;
use std::fmt::Debug;
use std::marker::PhantomData;... |
#include <bits/stdc++.h>
#define LL long long
#define pb push_back
#define mp make_pair
#define fi first
#define sc second
using namespace std;
LL n,a,b,c;
int main() {
cin>>n>>a>>b>>c;
n%=4;
if(n==0){
cout<<"0"<<endl;
return 0;
}
LL x = 4-n;
if(x==1) cout<<min(a,min(b+c,3*c))<<endl;
els... |
<gh_stars>0
/*
接受客户端的连接请求
*/
package handle
import (
"fmt"
"io"
"net"
"time"
"github.com/yushaona/gmessage/packet"
"github.com/yushaona/gmessage/server/job"
"github.com/yushaona/gmessage/server/cache"
"github.com/yushaona/gjson"
)
//Accept 等待客户端的连接
func Accept(listen net.Listener) {
go cache.UserCache... |
The Family Policy Institute of Washington recently spoke with some students from Seattle University and asked them simple questions about gender and the differences between men and women.
Here’s a description from their blog:
The second episode in FPIW’s wildly popular College Kids Say the Darndest Things series laun... |
package cola.machine.game.myblocks.model.base;
import cola.machine.game.myblocks.manager.TextureManager;
import cola.machine.game.myblocks.model.textture.TextureInfo;
import com.alibaba.fastjson.JSONObject;
import com.dozenx.game.engine.element.model.BoxModel;
import com.dozenx.game.graphics.shader.ShaderManager;
impo... |
Modelling of mechanical and filtration processes near the well with regard to anisotropy
A geomechanical approach to modeling deformation and seepage is presented. Three stages of modeling are described: choice of an appropriate mechanical model and its adaptation to the case in question, experimental determination of... |
199 years of Parkinson disease – what have we learned and what is the path to the future?
In 1817, 199 years ago, James Parkinson described for the first time in ‘An Essay on the Shaking Palsy’ the symptoms of the disease that was later named Parkinson Disease. The current special issue of the Journal of Neurochemistr... |
On N=1 4d Effective Couplings for F-theory and Heterotic Vacua
We show that certain superpotential and Kahler potential couplings of N=1 supersymmetric compactifications with branes or bundles can be computed from Hodge theory and mirror symmetry. This applies to F-theory on a Calabi-Yau four-fold and three-fold compa... |
/**
* Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.parser.test.junit3.java;
import android.test.ActivityInstrumentationTestCase2;
public class JUnit3ActivityInstrumentationTestCas... |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
module Hc2Prosody.SecureFile (securelyOpenFile) where
import BasicPrelude
import Data.Text (unpack)
import System.IO (Handle, IOMode(ReadMode), openBinaryFile)
import System.Posix.Types (FileMode)
import System.Posix.Files
import Filesystem.Path.CurrentOS (encodeSt... |
def _set_path_if_exists(self, healthcheck_json):
if self._label_exists(self.PATH_LABEL):
healthcheck_json['path'] = self._get_label_value(self.PATH_LABEL)
healthcheck_json['protocol'] = 'HTTP'
return healthcheck_json |
/**
* Add an array operation to the instruction list as marker on the code position.
*
* @param op
* the operation
* @param type
* the array/component type of the array
* @param javaCodePos
* the code position/offset in the Java method
* @pa... |
// Thin types
type ArchNameStr = string; // uncertain of format
type BCInstrStr = string; // uncertain of format
type BinaryStr = string; // uncertain of format, may be arch-dependent
type BlockId = number; // unsigned int
type CallDestStr = string; // uncertain of format
type CodeStr = string; /... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <stdio.h>
#include <queue>
using namespace std;
#define fi(a,b,c) for(int a=b;a<=c;a++)
#define fo(a,b,c) for(int a=b;a>=c;a--)
#define long long long
#define pii pair<int,int>
#define mp make_pair
const int N = 2e3+1;
const int Rw[2] =... |
ALLEN PARK -- The Detroit Lions were determined not to go into the NFL draft today without their No. 1 target signed, sealed and delivered. They finally got their man. The Lions signed Georgia quarterback Matthew Stafford to a six-year contract late Friday and, according to a league source, Stafford will receive $41.7 ... |
/**
* Set of elements used to provide summary information on entries.
* <p>
* <strong>Constant fields:</strong>
* <ul>
* <li>
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElements
* messageElements} =
* <ul>
* <li>
* {@linkplain com.tools20022.repository.msgpart.TotalTransactions... |
/**
* <p>
* An instance of ZipMdrefManager holds the state needed to retrieve the
* contents of an external metadata stream referenced by an
* <code>mdRef</code> element in a Zipped up METS manifest.
* <p>
* Initialize it with the Content (ORIGINAL) Bundle containing all of the
* meta... |
Judge Lucy Koh of California has rejected a proposed settlement by Apple, Google, and other companies that allegedly agreed to not poach or hire each others' employees. Court documents say that Koh said the $324 million settlement wasn't high enough to compensate for the lost wages employees may have suffered. The comp... |
<filename>pkg/synchronization/core/entry.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: synchronization/core/entry.proto
package core
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.o... |
This player has full sharing enabled: social, email, embed, etc. It has the ability to go fullscreen. It will display a list of suggested videos when the video has played to the end.
The relationship between President Obama and Russian President Vladimir Putin appears to have reached the breaking point over the crisis... |
<reponame>p6-process/p6-process-model<filename>src/main/java/org/lorislab/p6/process/model/ProcessDefinition.java
package org.lorislab.p6.process.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.ToString;
import java.util.HashMap;
i... |
package com.jsonde.gui.action;
import com.jsonde.gui.sdedit.SdEditUIAdapter;
import net.sf.sdedit.icons.Icons;
import javax.swing.*;
import java.awt.event.ActionEvent;
/**
*
* @author admin
*
*/
public class CloseDiagramAction extends AbstractAction {
private SdEditUIAdapter sdEditUIAdapter;
public Clo... |
class DestinySocketTypeDefinition:
"""All Sockets have a "Type": a set of common properties that determine
when the socket allows Plugs to be inserted, what Categories of Plugs can
be inserted, and whether the socket is even visible at all given the
current game/character/account state.
See Destiny... |
Try tuning in to next week's public hearings on the federal government's first-ever efficiency standards for medium- and heavy-duty trucks, where—surprisingly—it looks like all sides will be singing the same tune. Truckers like it, truck manufacturers like it, scientists like it, environmentalists like it . . . which s... |
The latest incarnation of Toronto's bike plan provoked some grumbling from the two-wheeling set when it was released last week, mostly for its recommendation that any plans for a bike lane on Bloor St. West be nixed.
But one part of the Bikeway Network report that went largely unnoticed was a Scarborough councillor's ... |
Should he go to jail?
‘You are going to make your decision, and I am going to respect that’
“On my personal part, after the last five years that I have been through, it would be, I don’t think, too – I don’t want to go with brash, too exaggerated to say that, [the last five years] that was a little more than any pris... |
//-------------------------------------------------------------------------------
//!
//! Applies an AppliedTemperature element to the environment
//!
//! \param degrees -- YThe surface temperature of the temperature being applied to the bodies surface.
//! \param surface_ara_fraction -- What % [0.0,1.0] of the pa... |
<reponame>jimfenton/notif-agent
/*
agent.go - Prototype notification agent
Copyright (c) 2015, 2017 <NAME>
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 ... |
/**
* Form an RDD[(Array[Byte], Array[Byte])] from key-value pairs returned from Python.
* This is used by PySpark's shuffle operations.
*/
public class PairwiseRDD extends org.apache.spark.rdd.RDD<scala.Tuple2<java.lang.Object, byte[]>> {
public PairwiseRDD (org.apache.spark.rdd.RDD<byte[]> prev) { throw new ... |
// importPackage is a function that will be called by the type check package when it
// needs to import a go package. 'path' is the import path.
func (b *Builder) importPackage(dir string, userRequested bool) (*tc.Package, error) {
klog.V(5).Infof("importPackage %s", dir)
var pkgPath = importPathString(dir)
if build... |
<reponame>scottwilkerson/liquidity-baking
import { Center, Text } from '@chakra-ui/react';
import React, { useEffect, useMemo, useState } from 'react';
import SkeletonLayout from '../../components/skeleton';
import OvenCard from '../../components/OvenCard/OvenCard';
import OvenSummary from '../../components/OvenSummary... |
#include <c10/cuda/CUDAFunctions.h>
#include <c10/macros/Macros.h>
#include <limits>
namespace c10::cuda {
namespace {
// returns -1 on failure
int32_t driver_version() {
int driver_version = -1;
C10_CUDA_IGNORE_ERROR(cudaDriverGetVersion(&driver_version));
return driver_version;
}
int device_count_impl(bool ... |
<gh_stars>100-1000
import { Duration } from 'aws-cdk-lib';
import { Metric, Statistic } from 'aws-cdk-lib/aws-cloudwatch';
const enum Metrics {
NumberOfMessagesPublished = 'NumberOfMessagesPublished',
NumberOfNotificationsDelivered = 'NumberOfNotificationsDelivered',
NumberOfNotificationsFailed = 'NumberOfNotifi... |
def _wizard(
rcfile: Annotated[str, Arg("--file")] = None,
confirm: Annotated[bool, Arg("--confirm", action="store_true")] = False,
):
env = XSH.env
shell = XSH.shell.shell
xonshrcs = env.get("XONSHRC", [])
fname = xonshrcs[-1] if xonshrcs and rcfile is None else rcfile
no_wiz = os.path.join... |
"The Master of Disguise" pants and wheezes and hurls itself exhausted across the finish line after barely 65 minutes of movie, and then follows it with 15 minutes of end credits in an attempt to clock in as a feature film. We get outtakes, deleted scenes, flubbed lines and all the other versions of the Credit Cookie, w... |
Q,H,S,D = map(int,input().split())
N = int(input())
ans = 0
if D == min(D,S*2,H*4,Q*8):
ans += (N // 2) * D
N = N % 2
ans += N * min(S , H * 2,Q * 4)
print (ans)
|
#include "Printer.h"
#include <string>
#include <map>
#include <vector>
#include <iostream>
Printer::Printer(std::vector<std::map<std::string, int> >* combinations, std::map<int, std::string>* graphs, std::vector<std::string>* performanceCounters, std::string* sequenceIdParameter, std::map<std::string, std::map<int, ... |
///
/// In this test the query is simply an edge such but the time constraints
/// make so that nothing matches.
///
BOOST_FIXTURE_TEST_CASE( test_single_edge_no_match, F )
{
size_t tableCapacity = 1000;
size_t resultCapacity = 1000;
size_t numNodes = 1;
size_t nodeId = 0;
MapType map(numNodes, nodeId, tableC... |
<filename>ibzdisk/app_web/src/widgets/app/sdindex-view-appmenu/sdindex-view-appmenu-model.ts
/**
* SDIndexView 部件模型
*
* @export
* @class SDIndexViewModel
*/
export default class SDIndexViewModel {
/**
* 菜单项集合
*
* @public
* @type {any[]}
* @memberof SDIndexViewModel
*/
public ... |
/**
* Functional error thrown in case of a problem reading the source
* @author aro_tech
*
*/
public class UnableToReadSource extends Exception {
private static final long serialVersionUID = 1L;
private final IOException cause;
public UnableToReadSource(IOException cause) {
super();
this.cause = cause;... |
/*
* Routines to support hard-linking.
*
* Copyright (C) 1996 Andrew Tridgell
* Copyright (C) 1996 Paul Mackerras
* Copyright (C) 2002 Martin Pool <mbp@samba.org>
* Copyright (C) 2004-2009 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
export class EmailQuery {
email: string;
userId: number;
userProfile: UserProfile;
}
export type UserProfile = {
name: string
dateOfBirth: Date
} |
export class ApiResponse {
public code:string;
public message:string;
public data:any;
public meta:any;
}
export const ResponseCodes = {
SUCCESS:{
code:'000',
message:'success'
},
FAILED:{
code:'001',
message:'failed'
},
NO_RECORD_FOUND:{
code... |
Not a day goes by without someone dragging an iconic movie out the vaults of history to be tarted up and sold back to the movie-going public. Today is a day and it’s the turn of Terry Gilliam’s Time Bandits!
Rumoured to be on the cards from as early as 2006, Variety are now reporting that Guy Collins and Michael Ryan,... |
// Listens to a server socket. On incoming request, forward it to the host.
// static
void* Server::ServerThread(void* arg) {
Server* server = reinterpret_cast<Server*>(arg);
while (!g_killed) {
int forwarder_index = server->GetFreeForwarderIndex();
if (forwarder_index < 0) {
LOG(ERROR) << "Too many f... |
def build_substitution_clause(initial_clause, predicate_types):
terms: List[Term] = []
append_variables_from_atom(initial_clause.head, predicate_types, terms)
body: List[Literal] = []
if not initial_clause.body:
body.append(TRUE_LITERAL)
else:
for literal in initial_clause.body:
... |
<reponame>xieruan/v2bp<gh_stars>1-10
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from v2ray.com.core.app.proxyman.command import command_pb2 as v2ray_dot_com_dot_core_dot_app_dot_proxyman_dot_command_dot_command__pb2
class HandlerServiceStub(object):
"""Missing associated do... |
<reponame>bshelton229/snagsby<filename>items.go<gh_stars>0
package main
import (
"encoding/json"
"errors"
"fmt"
"io"
"net/url"
"regexp"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/secr... |
Studies on the human T-lymphocyte population. I. The development and characterization of a specific anti-human T-cell antibody.
The IgG fraction of a goat antibody prepared against human infant thymus cells and extensively absorbed with pooled human red blood cells, insolubilized human Ig and cells from a patient with... |
<reponame>polarsorg/polars<filename>src/cpp/polars/Series.cpp
//
// Created by <NAME> on 16/03/2018.
//
/**
* Series
*
* This module defines a Series class that is inspired by a python pandas Series class.
*
*
* Style guide when extending Series
* =====================================
* Where possible, this cl... |
/*
Copyright (c) 2014, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... |
// newK8sControllerUpdaterViaPod returns a k8sControllerUpdater based on the parent kind of a pod
func newK8sControllerUpdaterViaPod(clusterScraper *cluster.ClusterScraper, pod *api.Pod, ormClient *resourcemapping.ORMClient) (*k8sControllerUpdater, error) {
ownerInfo, _, _, err := clusterScraper.GetPodControllerInfo(p... |
import { Injectable } from '@angular/core';
import { i18nUS } from '../../i18n/en-us';
import { i18nZH } from '../../i18n/zh-cn';
/**
* 支持的国际化种类
*/
export const enum LANGUAGE_TYPE {
// ZH表示界面语言为中文
ZH = 0,
// EH表示界面语言为英文
EN = 1,
}
@Injectable({
providedIn: 'root'
})
export class I18nService {
cons... |
#!/usr/bin/python3
"""
Exercise 9.6. Write a function called is_abecedarian that returns True if the letters in a word
appear in alphabetical order (double letters are ok). How many abecedarian words are there?
"""
def is_abecedarian(word):
i = 0
while i < len(word)-1:
if word[i+1] < word[i]:
... |
The problem, if I am being honest, is me.
I'm to blame. My fault. My bad, as the kids used to say.
Not just me, mind you. There are a lot of us. But if you want to point your digital finger at someone, look right here. It's on me. I only ask that you use proper spelling in the comments.
The issue at hand, of course,... |
// GetFunctions gets the functions property value.
func (m *Workbook) GetFunctions()(*WorkbookFunctions) {
if m == nil {
return nil
} else {
return m.functions
}
} |
<filename>malib/utils/metrics.py
from abc import ABCMeta, abstractmethod
from collections import defaultdict
from typing import Sequence, List, Dict, Any
from operator import mul
from functools import reduce
from malib import settings
from malib.utils.typing import AgentID, MetricType, PolicyID, MetricEntry
from mali... |
/**
* Class to test the {@link NonBlockingRouter}
*/
public class NonBlockingRouterTest {
private static final int MAX_PORTS_PLAIN_TEXT = 3;
private static final int MAX_PORTS_SSL = 3;
private static final int CHECKOUT_TIMEOUT_MS = 1000;
private static final int REQUEST_TIMEOUT_MS = 1000;
private static fin... |
CryptoBlaze: A partially homomorphic processor with multiple instructions and non-deterministic encryption support
Homomorphic computing has been suggested as a method to secure processing in insecure servers. One of the drawbacks of homomorphic processing is the enormous execution time taken to process even the simpl... |
For the city council ward, see The Gabba Ward
The Brisbane Cricket Ground, commonly known as the Gabba,[1][2] is a major sports stadium in Brisbane, the capital of Queensland, Australia. The nickname Gabba derives from the suburb of Woolloongabba, in which it is located.
The land on which the ground sits was set asid... |
Just announced: STG Presents The Glitch Mob “Love Death Immortality” tour on Saturday, May 3rd at the Showbox Market!
The Love Death Immortality album is the first album from the Glitch Mob since Drink the Sea was released in 2010. This is an extremely special opportunity to experience these glitch legends headline a ... |
import React from 'react'
import { GoogleCallback } from '@xrengine/client-core/src/user/components/Oauth/GoogleCallback'
export const GoogleHomePage = () => <GoogleCallback />
export default GoogleHomePage
|
WHAT was first sniffily thought of as little more than a passing fad has been heartily embraced by our city and burgers are here to stay.
We’ve fallen under the spell of charred meat in a bun, served everywhere from fine-dining restaurants to travelling food trucks.
YOUR TOP BURGERS: READERS DISH UP BUNS WE OVERLOOKE... |
Michael and Sunette Adendorff thought something was wrong with their hire car's GPS as they drove around in circles in the Wellington suburb, looking for the £90-a-night Majestic Hotel on Royal Parade.
When they pulled into the local chemist's shop to ask directions, they were shocked to discover that Eastbourne (popu... |
/**
* Class that should be inherited by all base messages.
*/
public abstract class SerializableBase extends Serializable
{
/**
* The ReadBuffer that stores the original data used to deserialize this message
*
* It is only set in base messages on which 'deserialize ( ReadBuffer )' is called
* ... |
/**
* Created by pranavkonduru on 10/28/16.
*/
public class TweetListActivity extends AppCompatActivity implements View.OnClickListener {
@BindView(R.id.viewpager) ViewPager viewPager;
@BindView(R.id.tabs) PagerSlidingTabStrip tabsStrip;
@BindView(R.id.toolbar) Toolbar toolbar;
@BindView(R.id.tv_tool... |
package com.laytonsmith.abstraction.enums.bukkit;
import com.laytonsmith.abstraction.Implementation;
import com.laytonsmith.abstraction.enums.EnumConvertor;
import com.laytonsmith.abstraction.enums.MCDragType;
import com.laytonsmith.annotations.abstractionenum;
import org.bukkit.event.inventory.DragType;
/**
*
* @... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=tf-8
#
"""
"""
from operator import itemgetter
t = int(input())
def solve(a,b,c,r):
left = c-r
right = c+r
if b<= left or a >= right:
print(b-a)
elif left <= a and b <= right:
print(0)
elif a <= left and right <= b:
... |
h,w=(int(x) for x in input().split())
s=[]
for i in range(h):
s.append(input())
for i in range(h):
res=[]
for j in range(w):
if s[i][j]==".":
ini_i=i if i==0 else i-1
fin_i=i if i==h-1 else i+1
ini_j=j if j==0 else j-1
fin_j=j if j==w-1 else j+1
count=0
for x in range(ini_i... |
import { Component, OnInit, Input } from '@angular/core';
import { Country } from 'src/app/models/country';
@Component({
selector: 'app-country-info',
templateUrl: './country-info.component.html',
styleUrls: ['./country-info.component.scss']
})
export class CountryInfoComponent implements OnInit {
@Input() se... |
/**
* Created by katzelda on 5/14/18.
*/
public class SSSG1Validator extends AbstractValidatorPlugin<Substance> {
@Override
public void validate(Substance objnew, Substance objold, ValidatorCallback callback) {
SpecifiedSubstanceGroup1Substance cs = (SpecifiedSubstanceGroup1Substance) objnew;
... |
#pragma once
#include <torch/csrc/WindowsTorchApiMacro.h>
#include <torch/csrc/jit/codegen/cuda/ir_interface_nodes.h>
#include <torch/csrc/jit/codegen/cuda/type.h>
//
// The operations defined in this header is intended as user facing functions.
// The user will provide the necessary input TensorViews and the functi... |
<reponame>ZhaoXinlong/accumulate
package cmd
import (
"context"
"encoding/json"
"fmt"
url2 "github.com/AccumulateNetwork/accumulate/internal/url"
"github.com/AccumulateNetwork/accumulate/protocol"
acmeapi "github.com/AccumulateNetwork/accumulate/types/api"
"github.com/spf13/cobra"
)
var pageCmd = &cobra.Comma... |
/*
* Interface to system's page allocator. No need to hold the
* kmem_cache_node ->list_lock.
*
* If we requested dmaable memory, we will get it. Even if we
* did not request dmaable memory, we might get it, but that
* would be relatively rare and ignorable.
*/
static struct slab *kmem_getpages(struct kmem_cache... |
package org.eclipse.epsilon.common.dt.launching.tabs;
import org.eclipse.epsilon.common.util.StringProperties;
import org.eclipse.epsilon.eol.types.EolAnyType;
import org.eclipse.epsilon.eol.types.EolPrimitiveType;
import org.eclipse.epsilon.eol.types.EolType;
public class ParameterConfiguration {
protected String... |
/// Returns the ascent ceiling of the model.
pub(crate) fn find_ascent_ceiling(&self, gf_override: Option<f64>) -> f64 {
let mut ceilings: [f64; TISSUE_COUNT] = [0.0; TISSUE_COUNT];
let gf = match gf_override {
Some(t) => t,
None => {
if self.first_deco_depth != u... |
The Art of Governance and the Political Grammar of Legitimacy: Tales of the State for a Unified Korea
This inquiry demonstrates that the political legitimacy of a certain society is historically determined, reflects specific institutional and contextual features, and employs a variety of meanings. These meanings can d... |
<reponame>luanrivello/go_crash_course
package main
import "fmt"
func main() {
x := 9
y := 10
for i := 0; i < 3; i++ {
if x < y {
fmt.Printf("%d is less than %d\n", x, y)
}else if x > y {
fmt.Printf("%d is greater than %d\n", x, y)
}else{
fmt.Printf("%d is equal to %d\n", x, y)
}
x = x + 1
... |
/* Huffman encoding for each region based on category and power_index */
static int16_t vector_huffman(int16_t category,
int16_t power_index,
int16_t *raw_mlt_ptr,
uint32_t *word_ptr)
{
int16_t inv_of_step_size_times_std_dev;
... |
Envelope extraction for composite shapes for shape retrieval
Analysis of composite shapes recently receives increasing amount of research attention. Different from a silhouette, a composite shape rarely contains a complete envelope. In the paper, we propose a novel envelope extraction algorithm based on the Delaunay t... |
<reponame>HPNetworking/HP-Intelligent-Management-Center
#!/usr/bin/env python3
# author: @netmanchris
""" Copyright 2015 Hewlett Packard Enterprise Development LP
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 ... |
package org.jm.demo.rxjava.condition;
import io.reactivex.Observable;
import io.reactivex.functions.Consumer;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
/**
* @author jiangming
* <p>
* Amb: 给定两个或多个Observables,它只发射首先发射数据或通知的那个Observable的所有数据。
*/
public class Amb {
public static void ma... |
#ifndef DISTANCES_TRIANGULARQUADRATURE_H
#define DISTANCES_TRIANGULARQUADRATURE_H
#include <type_traits>
#include <Eigen/Core>
namespace sdot{
namespace distances{
/**
@class TriangularQuadrature
@ingroup Quadrature
Contains functions that return quadrature rules for the unit triangle [(0,0), (1,0), (1,1)]
... |
// Test of SharedSemiFuture specific details.
TEST(SharedFuture, ModificationsArePrivate) {
FUTURE_SUCCESS_TEST([] { return 1; },
[]( auto&& fut) {
const auto exec = InlineRecursiveCountingExecutor::make();
const auto shared = std::move... |
#!/usr/bin/env python
from choose_receipts import choose_receipts, print_selection_result
def main():
s = '''61.19
70.81
59.92
107.97
540.21
43.04
99.79
126.06
147.52
77.56
92.29
47.64
118.46
47.32
72.71
70.84
59.87
118.71
25.33
25.46
3431.21
25.42
7.74
204.34
48.94
0.03
309.71
375.58
1016.14
870.48
16.48
2749.1... |
<reponame>wangtianlun/icestark<filename>src/AppRouter.tsx<gh_stars>1-10
import * as React from 'react';
import * as urlParse from 'url-parse';
import AppRoute from './AppRoute';
import matchPath from './matchPath';
import { recordAssets } from './handleAssets';
import { ICESTSRK_NOT_FOUND } from './constant';
import { ... |
The Assad regime has massed approximately 170 tanks near the Turkish border, according to an unconfirmed report on Friday by a general in the Free Syrian Army.
General Mustafa al-Sheikh told Reuters that the tanks are now located 30 kilometers (19 miles) from the border, northeast of Aleppo.
“They either want to move... |
Please share this page:
Since I’ve started adding woodworking power tools to my bookbinding workshop, I wanted to try one thing. Okay, there were many things that became possible since that moment, but that one was special.
What instruments do you use to trim your books? Initially I have used just a simple utility kn... |
/**
* Wireless response that requires multiple receive transmissions before
* completion
*
* @param <T>
* the data type
*/
public abstract class MultiRxData<T> extends RxRawData<T> {
/**
* Constructor
*
* @param remoteNode
* the {@linkplain RemoteNode}
* @param sta... |
// Listen bind port. Receive messages and send to out channel
func (rcv *UDP) Listen(addr *net.UDPAddr) error {
var err error
rcv.conn, err = net.ListenUDP("udp", addr)
if err != nil {
return err
}
go func() {
ticker := time.NewTicker(time.Minute)
defer ticker.Stop()
for {
select {
case <-ticker.C:
... |
<filename>android/lib/src/main/java/org/vosk/LibVosk.java
package org.vosk;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
public class LibVosk {
static {
Native.register(LibVosk.class, "vosk");
}
public static native void vosk_set_log_level(int level);
public static native Pointer ... |
// Code generated by MockGen. DO NOT EDIT.
// Source: x/params/proposal_handler_test.go
// Package testutil is a generated GoMock package.
package testutil
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockStakingKeeper is a mock of StakingKeeper interface.
type MockSta... |
/**
* add running task event to corresponding buffer and wait till there exist available Runners
*
* @param taskEventInfo task event info
*/
public static synchronized void waitForAvailableRunner(TaskEventInfo taskEventInfo) {
TaskMode taskMode = taskEventInfo.getTaskEvent().getContext().get... |
True love is alive in the Amazon! Before the 90 Days couple Paul Staehle and Karine Martins had a very public falling out this weekend over alleged racy texts between Karine and someone named Alex, and it appeared that Paul might be packing his trunk collection and heading to the “bodock” to catch a ride to the airport... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.