content stringlengths 10 4.9M |
|---|
/*
* Free up the memory associated with a singlezone object.
*
* header: singlezone.h
*/
extern void singlezone_free(SINGLEZONE *sz) {
if (sz != NULL) {
singlezone_close_files(sz);
if ((*sz).elements != NULL) {
unsigned int i;
for (i = 0; i < (*sz).n_elements; i++) {
element_free(sz -> elements[i]);
... |
/**
* UI Controller to POST checking a turn
*
* @author Andy Zhu + Chris Abajian
*/
public class PostCheckTurnRoute implements Route {
private Gson gson;
private static final Logger LOG = Logger.getLogger(PostCheckTurnRoute.class.getName());
/**
* Create the Spark Route for the ajax call
... |
def estimate_free_space(path, unit_multiple=2):
unit_size = 1024 ** unit_multiple
if os.name == 'nt':
free_bytes = ctypes.c_ulonglong(0)
ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(path),
None, None,
... |
/*
* Copyright (c) 2020 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <zephyr.h>
#include <ksched.h>
#include "footprint.h"
static const char const_string[] = "String!\n";
static char new_string[32];
void run_libc(void)
{
size_t len;
len = strlen(const_string);
l... |
package ro.jgal;
/**
* Terminates when the population converges.
*
* @author <NAME>
*
*/
public class ConvergenceCriteria implements TerminationCriteria {
/**
* Checks if the termination criteria has been reached.
*
* @param pop - checked population
* @return - true if criteria is reach... |
<reponame>YRDGroup/YRDRouter<filename>YRDRouterDemo/YRDRouterDemo/YRDCategory/classes/NSString+Validate.h
//
// NSString+Validate.h
// kjqApp
//
// Created by yangdeyi1986 on 2018/2/2.
// Copyright © 2018年 yirendai. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Validate)
- (BOOL)... |
This 1956 Chevrolet Corvette (chassis E565001905) is a rough but running and largely complete restoration project currently fitted with a ’57 283ci and 4-speed manual in place of its original, 265 cubic inch V8 and 2-speed Powerglide automatic—both included separately and disassembled as seen in this floor shot. Provid... |
package route
import (
"context"
"fmt"
"net/http"
"strconv"
"github.com/evergreen-ci/evergreen"
"github.com/evergreen-ci/evergreen/model/commitqueue"
"github.com/evergreen-ci/evergreen/model/patch"
"github.com/evergreen-ci/evergreen/rest/data"
"github.com/evergreen-ci/evergreen/rest/model"
"github.com/everg... |
Hybrid Optoelectronic Bistability in Frequency-Domain and Its Potential Application in FBG Sensors
We propose a novel optical bistable device (OBD) in frequency-domain with which we can perform optical bistable operations in a number of fibre Bragg gratings (FBGs) which are included in the same OBD. Such an OBD may br... |
package geography
import "math"
/**
* 向量类
*/
type Vector struct {
From *Coordinate
To *Coordinate
}
/**
* 向量长度
*/
func (v *Vector) Length() float64 {
return math.Sqrt(math.Pow(float64(v.To.Latitude-v.From.Latitude), 2) + math.Pow(float64(v.To.Longitude-v.From.Longitude), 2))
}
|
def do_save(self, model_folder: str, model_name: str):
model_outpath = f"{model_folder}/{model_name}.joblib"
joblib.dump(self, model_outpath)
logger.info(f"Completed. Model saved: {model_outpath}\n") |
import {
Component,
ElementRef,
ViewEncapsulation,
Input,
forwardRef,
Output,
EventEmitter,
Inject,
} from '@angular/core';
import { OnDestroy } from '@angular/core';
import { AfterViewInit } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { ControlValueAccessor } from '... |
def sendImageCRC32(self):
state = self.getState()
if (state == 4):
ret = self.api.UpdateSetCRC(self.file_crc)
if (ret['status'] != 1):
self.log.error("Error sending CRC32")
if (ret['errorCode'] is not None):
self.log.error("FW_U... |
<gh_stars>1-10
import datetime
from django.urls import reverse, resolve
import pytest
from .conftest import get_uid_chunk
from lametro.views import PersonDetailView, LAPersonDetailView
@pytest.mark.django_db
def test_person_page_redirects(client, metro_person, mocker):
person = metro_person.build()
respons... |
#include <iostream>
#include "Gizmos.h"
#include "gl_core_4_4.h"
#include "GLFW\glfw3.h"
#include "ProjectApp.h"
int main()
{
ProjectApp* App = new ProjectApp();
if (App->Startup() == true)
{
while (App->Update() == true)
{
App->Draw();
}
App->Shutdown();
}
delete App;
return 0;
} |
//^=double
// The assignment operator should always return a reference to *this.
VARREF var::operator^=(const double double1) & {
assertString(__PRETTY_FUNCTION__);
var temp(double1);
temp.createString();
var_str += std::move(temp.var_str);
return *this;
} |
Confusion over the meaning of replication is harming social science, argues Michael Clemens. There has been a profound evolution in methods and concepts, particularly with the rise of empirical social science, but our terminology has not yet caught up. The meaning of replication must be standardized so that researchers... |
def is_x(square, diagonals):
t = square[0][0]
if (all(square[i][j] == t for i, j in diagonals)):
t = square[0][1]
for i in range(len(square)):
for j in range(len(square[0])):
if (i, j) in diagonals:
continue
if square[i][j] != t or square[i][j] == square[0][0]:
return 'NO'
return ... |
The meaning of “user-defined type” is so obvious that the Standard doesn’t define it. But it uses the term over a dozen times, so it might be good to know what it means.
Prof. Stroustrup knows what it means and he is very clear that any type that is not built-in is user-defined. (See the second paragraph of section 9.... |
def logic(self):
try:
rain = max(self.net.getRain())
except ValueError:
rain = 0
try:
templist = self.net.getTemp()
maxtemp = max(templist)
mintemp = min(templist)
except ValueError:
maxtemp = 0
hum = self.dh... |
// NgRx
import { createSelector, createSelectorFactory } from '@ngrx/store';
// store
import * as fromModule from '@gcv/gene/store/reducers';
import { geneFeatureKey } from '@gcv/gene/store/reducers/gene.reducer';
// app
import { memoizeArray } from '@gcv/core/utils';
import { Gene } from '@gcv/gene/models';
export c... |
J. V. Stalin
Lenin and the Question of the Alliance with the Middle Peasant 1
Reply to Comrade S.
June 12, 1928
Source: Works, Vol. 11, January, 1928 to March, 1929
Publisher: Foreign Languages Publishing House, Moscow, 1954
Transcription/Markup: Salil Sen for MIA, 2008
Public Domain: Marxists Internet Archive (... |
/*!
* Populates the given write-set entry by masking a new value on top of the value
* already resident in the entry (if it exists).
*
* \param entry will be written with the new, combined value and mask after
* new_value is masked on top of the value contained herein. An entry with
* entry->mask == 0 indicates... |
Rational therapy: If only it were so
Although we are sympathetic to Reynolds and Slocum’s concerns, their editorial errs on several points. The authors cite deference to regulatory (presumably Food and Drug Administration) approval as a constraint. The FDA has long recognized broad physician discretion in using FDAapp... |
package collectors;
import housing.Config;
import housing.Geography;
import housing.Region;
import java.util.Arrays;
/**************************************************************************************************
* Class to aggregate all regional rental market statistics
*
* @author daniel, <NAME>
* @since 1... |
The Role of MicroRNAs in Myeloproliferative Neoplasia.
MiRs are 17-25 nucleotide non-coding RNAs. These RNAs target approximately 80% of protein coding mRNAs. MiRs control gene expression and altered expression of them affects the development of cancer. MiRs can function as tumor suppressor via down-regulation of prot... |
.
The immunomorphological and cytopathological properties of vaccine strains of measles and epidemic mumps viruses inoculated individually and together were studied in experiments in guinea pigs. The optimal doses of measles and mumps monovaccines were found to produce morphological changes of similar intensity in the... |
/**
* INTER-IoT. Interoperability of IoT Platforms.
* INTER-IoT is a R&D project which has received funding from the European
* Union<92>s Horizon 2020 research and innovation programme under grant
* agreement No 687283.
*
* Copyright (C) 2016-2018, by (Author's company of this file):
* - Prodevelop S.L.
*
*
... |
<reponame>RossDeVito/news-tsl-cse291
/* First created by JCasGen Sat Apr 30 11:35:10 CEST 2011 */
package de.unihd.dbs.uima.types.heideltime;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.tcas.Annotation;
/**
* ... |
Diagnostic and prognostic markers in infants with disseminated neuroblastoma: a retrospective analysis from the Italian Cooperative Group for Neuroblastoma.
BACKGROUND
One fourth of infants with disseminated neuroblastoma experience unfavorable outcome. Treatment strategies vary and are based on clinical characteristi... |
<gh_stars>1-10
use super::ProtocolVersion;
use core::convert::TryFrom;
// 4.2. Extensions
// https://tools.ietf.org/html/rfc8446#section-4.2
//
// Transport Layer Security (TLS) Extensions
// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml
#[derive(Clone, Copy, Debug, Partia... |
<reponame>spero002/yoyo<gh_stars>0
#import "UCloudGPUImageFilter.h"
@interface UCloudGPUImageColorInvertFilter : UCloudGPUImageFilter
{
}
@end
|
Unbeaten Miguel Cruz (15-0, 11 KOs) and once-beaten Alex Martin (13-1, 5 KOs) will meet in a 10-round welterweight rematch of their January clash on Tuesday, June 27 in the main event of Premier Boxing Champions TOE-TO-TOE TUESDAYS on FS1 and BOXEO DE CAMPEONES on FOX Deportes from Sands Bethlehem Events Center in Beth... |
/** Returns a tuple matching the template and leaves it in the tuplespace.
* Returns null if none found. */
public Tuple tryRead(Tuple template){
if(template == null){
throw new NullPointerException();
}
Tuple res = null;
monitor.lock();
for(Tuple t : tuples){
if(t.matches(template)){
... |
Editor’s note: Rami Essaid is CEO and co-founder of Distil Networks, a bot detection and mitigation company.
On April 2, the Wall Street Journal reported that Facebook is in hot water with government regulators in six European countries over its practice of tracking users’ movements across the web to sell targeted adv... |
/**
* Creates a new instance that shall consider the configuration for sub domains.
* @param maxAge max age to attribute to the header
* @param includeSubDomains consider sub domains when adding the header
* @return an instance.
*/
static HSTSHandler create(long maxAge, boolean includeSubDomains) {
f... |
My religion almost stole this World from me.
Todd Preston Blocked Unblock Follow Following Aug 1, 2017
I was a religious bigot; a racist, my bible taught me it was a curse from god. The holy word beating a drum of misogyny and slavery and violence. My bible taught me to look down at those who are different. I was tau... |
# coding: utf-8
from os.path import join, relpath
from glob import glob
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/hello')
def hello():
return 'Hello World! こんにちは世界!'
@app.route("/")
def index():
path = "./static"
image_names = [relpath(x, path) for x in glob(join(path, '... |
/// Returns all directives applicable for a given location(Query, Field, etc).
pub fn directives_for_location(&self, location: DirectiveLocation) -> Vec<&Directive> {
match self {
SDLSchema::FlatBuffer(_schema) => todo!(),
SDLSchema::InMemory(schema) => schema.directives_for_location(loc... |
<filename>basic/basic-interpreter-rust/src/parser/types/qualified_name.rs
use super::{HasQualifier, NameTrait, TypeQualifier};
use crate::common::CaseInsensitiveString;
use std::convert::TryFrom;
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
pub struct QualifiedName {
name: CaseInsensitiveString,
qualifier: Typ... |
// MapKey Map all keys of Set by function
func (mapSetSelf *MapSetDef[T, R]) MapKey(fn TransformerFunctor[T, T]) SetDef[T, R] {
result := make(MapSetDef[T, R], len(*mapSetSelf))
for k, v := range *mapSetSelf {
result[fn(k)] = v
}
return &result
} |
/// Attempts to push an item onto the stack.
pub fn push(&mut self, item: U256) -> Result<(), StackError> {
if self.len() == MAX_LEN {
return Err(StackError::Overflow);
}
self.items[self.len()] = item;
self.len += 1;
Ok(())
} |
/*
* Given either the first 2 or 3 bytes of an initial client -> server
* data payload, return true if the protocol is that of an OpenVPN
* client attempting to connect with an OpenVPN server.
*/
bool
is_openvpn_protocol(const struct buffer *buf)
{
const unsigned char *p = (const unsigned char *) BSTR(buf);
... |
<reponame>flolom/okta-oidc-android<gh_stars>10-100
/*
* Copyright (c) 2019, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License,
* Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.... |
Samsung’s next flagship will be going official in Barcelona, and it looks like the company wants everyone in the city to know. Well, everyone who happens to be passing by the Apple Store located in the heart of Barcelona, where Samsung has taken up residence with a huge board of glass with its logo on top. We’re not su... |
PORTSMOUTH, N.H. — Donald Trump suggested that Hillary Clinton might have been on drugs during the second presidential debate and proposed that the candidates take a drug test ahead of their next and final face-off set for Wednesday in Las Vegas.
Speaking at the first of two scheduled Saturday rallies in the Northeast... |
def load_model_and_restore(self, model_path):
self.model = self._build_model()
if os.path.exists(model_path + '/DDQN_model.h5'):
self.model.load_weights(model_path + '/DDQN_model.h5')
self.model.compile(loss='mse', optimizer=Adam(lr=self.learning_rate))
else:
... |
def _ValidateInstallsFilePath(self):
if not hasattr(self, '_plist'):
raise PlistNotParsedError
if 'installs' in self._plist:
if not isinstance(self._plist['installs'], list):
raise InvalidPlistError('installs must be an array.')
for install in self._plist['installs']:
if instal... |
//this method add Finish Point to area randomly
void addFinishPoint() {
finishY = (int) (Math.random() * grid.length);
finishX = (int) (Math.random() * grid[0].length);
grid[finishY][finishX].border.setFill(Color.GREEN);
} |
////////////////////////////////////////
// Misc and old
////////////////////////////////////////
func (n *node) localClient(s string) *Client {
p := n.getTestPeer()
client := NewClient(p)
client.ReceiveTimeout = 60 * time.Second
if _, err := client.JoinRealm(s, nil); err != nil {
out.Error("Error when creating n... |
import uuid from 'uuid/v4';
import db from './db';
const tokens = Object.create(null)
function createToken(user) {
const token = uuid()
tokens[token] = user.id
return token
}
function getUserFromToken(token) {
const uid = tokens[token]
if(uid === undefined)
return null
retur... |
package pipedream
import (
"encoding/json"
"io/ioutil"
"path/filepath"
"strings"
"time"
"github.com/BurntSushi/toml"
)
const (
typeJS = "js"
typeCSS = "css"
typeImg = "img"
typeAudio = "audio"
typeVideos = "videos"
typeFonts = "fonts"
)
// Pipedream is the config for pipedream
type Pipedream... |
<reponame>junior-boop/strapi-starter-gatsby-blog
import { MiniActuItem } from "../components/actueItems";
import Container from "../components/container";
import { Full } from "../components/full";
import Style from '../styles/app.module.css'
import ActuSide from "./actuSide";
import { PredictableSide } from "./pr... |
Today we'll checkout another great library from Alexander Schuch called StatefulViewController.
It can help us add loading, empty, and error states to our view controllers. Let's get started:
Most apps we build must load data before showing it to the user. Those apps will also need to handle the case where there's no... |
Strengthening the delivery of feedback in medical institutions by establishing feedback culture
The training imparted to medical students is quite vast and complex, and a lot is expected from them at the end of the overall training. Considering that each student differs from another, it is important to understand that... |
/**
* Helper class used to convey the KSI signature file extensions and MIME type.
*/
public class KsiSignatureFactoryType implements SignatureFactoryType {
private static final String KSI_SIGNATURE_MIME_TYPE = "application/ksi-signature";
private static final String KSI_SIGNATURE_FILE_EXTENSION = "ksig";
... |
/// Get an imperative handle to the current window
pub fn use_window(cx: &ScopeState) -> &DesktopContext {
cx.use_hook(|_| cx.consume_context::<DesktopContext>())
.as_ref()
.unwrap()
} |
/**
* Tests the OAuth signature behavior.
* <p>
* See <a href= "https://oauth.googlecode.com/svn/code/javascript/example/signature.html" >Signature Tester</a> for an online oauth signature checker.
*/
class OAuthSignatureCalculatorTest {
private static final String TOKEN_KEY = "nnch734d00sl2jdk";
private static... |
//
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
#import "IDSPhoneNumberValidationListener-Protocol.h"
#import "IDSPhoneNumberValidationRequestor-Protocol.h"
@class IDSPushHa... |
def sexual_network_graph(s, layout = "spring", time = None, filename = None):
if not time:
time = s.NUMBER_OF_YEARS*52
G = nx.Graph()
for r in s.relationships:
if time and not (r[2] < time and time < r[3]):
continue
g = (["M","F"][r[0].sex], ["M","F"][r[1].sex])
... |
/**
*
* @author Haifeng Li
*/
@SuppressWarnings("unused")
public class CRFTest {
class Dataset {
Attribute[] attributes;
double[][][] x;
int[][] y;
int p;
int k;
}
class IntDataset {
int[][][] x;
int[][] y;
int p;
int k;
}
... |
/** Returns if the word is in the trie.
* O(l) where l is the mean size of a word
*/
bool search(const struct TrieNode* root, const char* word) {
size_t i, word_len;
const struct TrieNode* tNode = root;
word_len = strlen(word);
for (i = 0 ; i < word_len && tNode->chars[ASCII_SHIFT(word[i])] != NULL ; ... |
/**
* Called when a failure occurs trying to authenticate or refresh.
* @param info The last authentication information available, before the exception.
* @param ex the exception that occurred.
*/
@Override
public void onAuthFailure(BoxAuthentication.BoxAuthenticationInfo info, Exception ex){
... |
import Server from '../server';
import InMemoryDataAdapter from '../data_adapter/in_memory_data_adapter';
describe('Server', () => {
it('Can be created and returns endpoints', () => {
let server = new Server(new InMemoryDataAdapter());
server.generatedEndpoints();
});
});
|
/**
* The implementation of a tree node factory to make primitive nodes.
*
* @author JavaSaBr
*/
public class PrimitiveTreeNodeFactory implements TreeNodeFactory {
public static final int PRIORITY = 1;
@Override
@FxThread
public <T, V extends TreeNode<T>> @Nullable V createFor(@Nullable final T el... |
n, l = map(int, input().rstrip().split())
loc = list(map(int, input().rstrip().split()))
loc = sorted(loc)
dist = max(loc[0], (l - loc[-1]))
for i in range(n - 1):
temp = (loc[i + 1] - loc[i]) / 2
dist = max(dist, temp)
print(dist) |
/*-
* Copyright (c) 2013-2021 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/// Test the center_loc calculation for a variety of ArcIntervals
fn arc_interval_center_loc() {
use pretty_assertions::assert_eq;
let intervals = vec![
// singleton
(ArcInterval::<i32>::new(0, 0), 0),
(ArcInterval::<i32>::new(2, 2), 2),
(ArcInterval::<i32>::new(3, 3), 3),
... |
// Get looks up a connection with the same key and TLS options and returns it if it
// exists. If it does not exist, it calls the dial function to create one. It is safe
// to call on a nil receiver, and if so, always returns a dialed connection.
func (p *Pool) Get(ctx context.Context, key string, tlsOptions *tlsopts.O... |
<reponame>IES-Pare-Vitoria/Taula-de-Mescles
//#define DISABLE_MQTT
//#define MQTT_SERVER "192.168.0.101"
#define MQTT_SERVER "192.168.1.94"
//#define MQTT_SERVER "192.168.200.102"
#define MQTT_PORT 1010 // 1883
#define MQTT_CHANNEL_BLINK_ON_TIME_DEFAULT 1000
#define MQTT_CHANNEL_BLINK_OFF_TIME_DEFAULT 500
#define M... |
// GetTaggedRaindrops finds raindrops with exact tags.
// This function calls Get raindrops API with collectionID=0 and specify given tag as a search parameter.
//
// Reference: https://developer.raindrop.io/v1/raindrops/multiple#search-parameter
func (c *Client) GetTaggedRaindrops(accessToken string, tag string) (*Mul... |
Field Inoculation of Arbuscular Mycorrhizal Fungi Improves Fruit Quality and Root Physiological Activity of Citrus
: Soil arbuscular mycorrhizal (AM) fungi form a mutualistic symbiosis with plant roots and produce many benefits on host plants under potted conditions, while field inoculation of AM fungi on citrus (a wood... |
// Package types contain misc data structures.
package types
|
// encode implements encoder.encode.
func (t *tmkdir) encode(b *buffer) {
b.WriteFID(t.Directory)
b.WriteString(t.Name)
b.WritePermissions(t.Permissions)
b.WriteGID(t.GID)
} |
def open_url(window, url):
def show_error(url, err):
sublime.error_message(
textwrap.dedent(f"""
Error while downloding:
{url}:
{err}
""").lstrip())
settings = sublime.load_settings('URLDownloader.sublime-settings')
try:
window.stat... |
/**
* Top component with dendrogram.
*/
public final class DendrogramTC extends TopComponent implements MultiViewElement, ActionListener {
private final DistanceAnalysis analysis;
private final DendrogramPanel dendrogram;
private final List<LinkageStrategyProvider> linkages;
private MultiViewEle... |
// This routine changes the state of the currently set spice options
// according to the pl_ftopts in the current plot. Called when the
// current plot changes to a different analysis plot.
//
void
IFsimulator::OptUpdate()
{
variable *ovars = OP.curPlot()->options()->tovar();
for (variable *v = ovars; v; v = v... |
extern crate lit;
#[cfg(feature = "io")]
#[cfg(test)]
mod tests {
use std::env;
use std::env::consts;
use std::path::PathBuf;
fn bin_dir() -> PathBuf {
env::current_exe()
.ok()
.map(|mut path| {
path.pop();
path.pop();
pat... |
/**
* Generates the XML reports.
*
* @param report
* generated as result of a {@link ReportListener}
* @throws IOException
* if reportsDirectory does not exists or could not be create
* the folder structure
*/
public void generateReport(Report report) throws IOExceptio... |
"He told me that I had to go. He said I was interfering with their investigation and I told [him] that I was on a public sidewalk and I had the right to film them.." And then this happened...
As MyFOXLA reports,
Beatriz Paez says she was doing nothing wrong taking video of U.S. Marshal executing warrants on San Juan ... |
/**
* Returns whether or not the program has "end" opcode.
* If it does not, you may not want to run it - it
* may run forever!
* @return true if @ symbol exists, false otherwise
*/
public boolean hasEndOpcode() {
boolean hasEnd = false;
for (int j = 0; j < _xSize && hasEnd == false; j++) {
... |
input = raw_input
range = xrange
from collections import defaultdict
def solve():
s = input()
d = dict()
for i in range(len(s)):
if s[i] != '!':
d[i % 4] = s[i]
res = defaultdict(int)
for i in range(len(s)):
if s[i] == '!':
res[d[i % 4]] += 1
print " ".join(map(str, list(res[c] for c in "RBYG")))
solv... |
T-Mobile is reportedly planning on harnessing a pair of technologies created by Alcatel-Lucent to improve performance without spending big in wireless auctions. The first is WiFi Boost, which pushes all "upload" traffic onto cellular data and all "downloads" to WiFi. With this Speedify-style know-how, Alcatel believes ... |
/**
* <p>
* Updates the specified destination of the specified delivery stream.
* </p>
* <p>
* Use this operation to change the destination type (for example, to replace the Amazon S3 destination with Amazon
* Redshift) or change the parameters associated with a destination (for example, t... |
def assertInstanceEqual(self, instance, data):
model_dict = model_to_dict(instance, fields=data.keys())
for key in list(model_dict.keys()):
if key == 'tags':
model_dict[key] = ','.join(sorted([tag.name for tag in model_dict['tags']]))
elif model_dict[key] and type... |
Packers rookie running back Eddie Lacy says he still doesn’t feel complete despite his many accomplishments in football. Credit: Michael Sears
By of the
Green Bay — The moment Eddie Lacy steps into the Republic Chophouse, he beams. He cracks up in a scratchy, southern "heh-heh-heh!" bellow.
Rays from this 70-degree ... |
<reponame>yangxuezhi2021/rsui
package org.rs.core.security.configurers;
import javax.servlet.http.HttpServletRequest;
import org.rs.core.security.filter.RsAuthenticationFilter;
import org.springframework.context.ApplicationContext;
import org.springframework.security.authentication.AuthenticationDetailsSource;
import... |
/**
* A mapping details for a particular range in resource.
*/
private static class RangeMapping {
final Range sourceRange;
final VmResourceId targetResourceId;
final TextSectionMapping mapTable;
RangeMapping(Range sourceRange, VmResourceId targetResourceId, TextSectionMapping mapTable) {
t... |
/*
* DC/OS
*
* DC/OS API
*
* API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package dcos
// Enable health checks. These are by default TCP health checks. For more options see \"customCheck\". These are required for DNS resolution to function properly... |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Applicative
import Data.Attoparsec.Text
import Data.IntMap.Strict (IntMap, (!))
import qualified Data.IntMap.Strict as IntMap
import Data.List (intersect, partition, sort)
import Data.M... |
1. Lewis first met Clark after being court-martialed by the Army.
Lewis (L) and Clark (R). (Credit: Jean-Erick PASQUIER/Getty Images)
While serving as a frontier army officer in 1795, a young Meriwether Lewis was court-martialed for allegedly challenging a lieutenant to a duel during a drunken dispute. The 21-year-ol... |
import * as mongoose from 'mongoose';
export const ExerciseSchema = new mongoose.Schema({
name: String,
muscleGroup: String,
comment: String,
measures: { type: [String], default: ['Reps (count)', 'Weight (kg)'] },
});
|
/**
* Convert a MacRoman-encoded character to unicode.
*
* @param v The MacRoman-encoded character
* @return The equivalent unicode character
*/
default char convertMacRomanToUnicode(byte v) {
int c = v & 0xff;
if (c > 128) {
return (char) macRomanToUnicode[c - 128];... |
<filename>Optimal_Translate.py
#!usr/bin/env python3
def transcribe(sequence,rev): #turns sequence into a list, cycles through letters and produces reverse complement, rejoins list
if sequence.find("U") == -1: #if you have dna
if rev == 1: #if the sequence is reversed we need to generate the reverse complement,... |
//************************************************************************************
//************************************************************************************
//STRESSES, STRAINS AND CONSTITUTIVE MODELL (UNSATURATED CASE)
//*********************************************************************************... |
<filename>services/user/user.go
// Copyright (c) 2016, <NAME> <<EMAIL>>
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package user // import "gopherpit.com/gopherpit/services/user"
import (
"errors"
"time"
)
// User holds user accoun... |
package cabernet1.monopoly.domain.game.board.tile;
import cabernet1.monopoly.domain.game.board.tile.enumerators.TileType;
import cabernet1.monopoly.domain.game.board.tile.enumerators.Track;
public class FreeTile extends Tile {
private static final long serialVersionUID = -6435864561214763690L;
public FreeTil... |
<gh_stars>100-1000
package cgeo.geocaching.maps.mapsforge.v6.caches;
import org.mapsforge.core.graphics.Canvas;
import org.mapsforge.core.model.BoundingBox;
import org.mapsforge.core.model.Point;
import org.mapsforge.map.layer.Layer;
public class SeparatorLayer extends Layer {
@Override
public void draw(fina... |
def EfficientNet(input_shape,
block_args_list: List[BlockArgs],
width_coefficient: float,
depth_coefficient: float,
include_top=False,
weights=None,
input_tensor=None,
pooling=None,
cl... |
// Return true if this timeline has a result that includes a shadowing event.
public boolean result_has_shadowing () {
switch (fc_result) {
case FCRES_SKIPPED_SHADOWED:
case FCRES_SKIPPED_FORESHOCK:
return true;
}
return false;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.