content stringlengths 10 4.9M |
|---|
/**
* Calculate Variance sample given feature.
*
* http://www.wikihow.com/Calculate-Variance
* variance(s^2) = (for all X ( X - mean) ^2) / (n - 1) n = count of Xs
*
* @param featuresIndex the feature key
* @param labelIndex the class name index
* @param mean the mean
* @return the Variance
*/
priv... |
<filename>python/test_golden_master.py
import unittest
from gilded_rose import Item, GildedRose
class GoldenMasterTest(unittest.TestCase):
def test_golden_master(self):
output_file = None
try:
output_file = open("output.txt", 'r')
golden_master_lines = [output_file.readline... |
/**
* @file TestCurveball.cpp
* @date 28. September 2017
*
* @author Hung Tran
*/
#include <gtest/gtest.h>
#include <Utils/MonotonicPowerlawRandomStream.h>
#include <HavelHakimi/HavelHakimiIMGenerator.h>
#include <Utils/StreamPusher.h>
#include "EdgeStream.h"
#include <Curveball/EMCurveball.h>
#include <Distribu... |
// NextArg retrieves the next argument from the commandline.
func NextArg(i *int, args []string) string {
(*i)++
if (*i) >= len(args) {
fmt.Fprintln(os.Stderr, "Expected another commandline argument.")
os.Exit(1)
}
return args[*i]
} |
If you live in the United States, you live in a high tech surveillance grid that is becoming more oppressive with each passing day. In America today, the control freaks that run things are completely obsessed with watching, tracking, monitoring and recording virtually everything that we do. If we continue on the path t... |
/**
* To update existing project
* @param authenticatedUserId
* the authenticated user id.
* @param projectId
* the project id to be updated
* @param project
* the project details to be updated : name, version and description is only allowed.
* @return ResponseEntity<Project>
* returns Projec... |
<gh_stars>1-10
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
module Expr where
import Data.Int
class CustomAddition a where
(.+) :: a -> a -> a
instance CustomAddition Int8 where
(.+) = (+)
instance CustomAddition Int16 where
(.+) = (+)
instance CustomAddition Int32 where
(... |
#include <stdio.h>
#include <string>
#include <vector>
typedef std::vector< std::string > CSol;
CSol best;
std::string w[6];
bool mask[6];
int p[6];
bool print( CSol & sol, int i, int j, std::string const & w, bool vert )
{
for( int k = 0; k < (int)w.size(); ++ k )
{
if( sol[i][j] != '.' && sol[i]... |
def load(self, dicom_file, force=True):
self.seen = []
if isinstance(dicom_file, Dataset):
self.dicom = dicom_file
else:
if not os.path.exists(dicom_file):
bot.exit("%s does not exist." % dicom_file)
self.dicom = read_file(dicom_file, force=for... |
import { Component, Input, EventEmitter, Output } from '@angular/core';
import { CategoryModel } from '../../../models/category/category.model';
@Component({
templateUrl: './category.component.html',
selector: 'admin-category'
})
export class AdminCategoryComponent {
@Input('adminCategoryProp') category: C... |
import argparse
import time
import numpy as np
from scipy.stats import rankdata
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import torchvision.transforms as transforms
# from alexnet import alexnet
from resnet.resnetcifar ... |
LOCALE_DIR = "locale.json"
|
import React from "react";
import { ConversationProvider } from "./hooks/use-conversation";
import { SubApp } from "./subapp";
import "c3/c3.css";
import "./styles/c3-overrides.css";
import "./styles/c3-extensions.css";
function App() {
return (
<ConversationProvider>
<SubApp />
</ConversationProvider>
);
}
... |
<reponame>jodhanijanki/django-dashboard-light
from django.apps import AppConfig
class AnalyseStatementConfig(AppConfig):
name = 'analyse_statement'
|
/**
* class which handles {@link Float} arithmetic
*
* @since 1.0.0
*/
public class FloatArithmetic extends AbstractArithmetic<Float> {
// region singleton
private static FloatArithmetic instance;
/**
* @return default instance
* @since 1.0.0
*/
@NotNull
public static FloatArith... |
<filename>yosys/addFi.cc
#include "kernel/yosys.h"
#include "kernel/sigtools.h"
#include <cstddef>
#include <sys/types.h>
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
struct AddFi : public Pass {
AddFi() : Pass("addFi", "add fault injection signals") { }
void help() override
{
// |---v---|---v---|---v---|---... |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkOrientedImageProfileTest3.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCop... |
# This example demonstrates the usage of spearmint within the context
# of sklearn.
# Here we train a random forest classifier on the MNIST dataset.
import whetlab
import numpy as np
# Define parameters to optimize
parameters = { 'n_estimators':{'type':'integer', 'min':2, 'max':100, 'size':1},
'max_dept... |
package br.com.dafiti.zoom;
import br.com.dafiti.mitt.Mitt;
import br.com.dafiti.mitt.cli.CommandLineInterface;
import br.com.dafiti.mitt.exception.DuplicateEntityException;
import br.com.dafiti.mitt.transformation.embedded.Concat;
import br.com.dafiti.mitt.transformation.embedded.Now;
import java.io.File;
import java... |
package org.springframework.debug.bean;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
public class Teacher implements BeanNameAware, EnvironmentAware {
public String getName() {
return name;
}
public ... |
/* reverse the operation above for one entry.
* b points to the offset into the weave array of the power we are
* calculating */
mp_err weave_to_mpi(mp_int *a, const unsigned char *b,
mp_size b_size, mp_size count)
{
mp_digit *pb = MP_DIGITS(a);
mp_digit *end = &pb[b_size];
MP_SIGN(a) = MP_ZPOS;
MP_USED... |
<reponame>jvanderaa/nautobot-plugin-version-control<gh_stars>0
"""Filters.py defines a set of Filters needed for each model defined in models.py."""
import django_filters
from django.db.models import Q
from nautobot.utilities.filters import BaseFilterSet
from dolt.models import Branch, Commit, PullRequest, PullReques... |
#include <bits/stdc++.h>
using namespace std;
long long a[100005],p[100005];
pair <long long,long long> b[100005];
pair <pair<long long,long long>,int > par[100005];
int main()
{
int n;
long long l,r;
cin>>n>>l>>r;
for (int i=0;i<n;i++)
cin>>a[i];
for (int i=0;i<n;i++)
c... |
// extern crate audrey;
extern crate deepspeech;
extern crate serde;
extern crate serde_json;
use std::env::args;
use std::fs;
use std::path::Path;
use std::{thread, time};
use byteorder::{ByteOrder, LittleEndian};
use deepspeech::Model;
use std::sync::mpsc;
use std::sync::mpsc::SyncSender;
use std::env;
use std::... |
<filename>src/components/Signal.tsx
import React from 'react'
import styles from './Button.module.scss'
import * as Icons from './Icons'
import {components} from './ButtonIconSet';
interface Props {
signal: RemoAPI.Signal,
onClick?: (event: any) => void,
}
const Signal: React.FC<Props> = React.memo((props) => {
... |
/**
* Copyright 2019-2021 Huawei Technologies Co., Ltd
*
* 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 applicabl... |
// WithValidityExpiringInHours requests certificates with validity expiring in the order of hours.
// This option is suitable for issuing init bundles which cannot be revoked.
func WithValidityExpiringInHours() IssueCertOption {
return func(o *issueOptions) {
o.signerProfile = ephemeralProfileWithExpirationInHours
... |
//provides constants for the climber
public static class Climber
{
//PID Constants
public static final double kElevatorP = 1;
public static final double kElevatorI = 0.04;
public static final double kElevatorD = 0.4;
public static final double kElevatorClimbOutput = 0.257;
... |
/**
* Relocation info for binary addresses in a RPM's code image.
*/
public class RPMRelocation {
public RPMRelTargetType targetType;
public RPMRelSourceType sourceType;
public RPMRelocationTarget target;
public RPMRelocationSource source;
public RPMRelocation() {
}
public RPMRelocation(RPM rpm, RPMReloc... |
/**
* @author Yves Boyadjian
*
*/
public class SoNodeSensor extends SoDataSensor implements Destroyable {
private SoNode node;
////////////////////////////////////////////////////////////////////////
//
// Description:
// Constructor
//
// Use: public
public SoNodeSensor() { super();
//
/////////////////... |
/**
* This class performs all necessary processing steps to ongoing responses.
*
* @author Danilo Reinert
*/
public class ResponseProcessor {
private final SerializationEngine serializationEngine;
private ResponseDeserializer responseDeserializer;
private final FilterManagerImpl filterManager;
priv... |
/**
* ClassName: ConsumerUtils
* Description:
* date: 2020/5/24 23:01
*
* @author ThierrySquirrel
* @since JDK 1.8
*/
public class ConsumerUtils {
private ConsumerUtils() {
}
public static boolean isCache(Message message) {
byte[] cacheIdentity = RedisConsumerConstant.REDIS_EXPIRED_CACHE_IDE... |
def _scope(self):
with self._original_graph_item.as_default():
if ENV.AUTODIST_PATCH_TF.val:
PatchTensorFlow.patch_var_reading()
PatchTensorFlow.patch_keras()
yield
PatchTensorFlow.unpatch_keras()
PatchTensorFlow.unpatch_var_reading() |
Rare earth spin ensemble magnetically coupled to a superconducting resonator
Interfacing superconducting quantum processors, working in the GHz frequency range, with optical quantum networks and atomic qubits is a challenging task for the implementation of distributed quantum information processing as well as for quan... |
<reponame>uk0/arrow<filename>cpp/src/arrow/python/filesystem.h
// 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 file
// to you un... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copywight (c) <NAME>. Aww wights wesewved.
* Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation.
*----------------------------------------------------------------... |
def fetchWorkflow(self, offline: bool = False):
parsedRepoURL = parse.urlparse(self.id)
i_workflow : Optional[IdentifiedWorkflow] = None
engineDesc : Optional[WorkflowType] = None
guessedRepo : Optional[RemoteRepo] = None
if parsedRepoURL.scheme == '':
if (self.trs_en... |
def _operation_speak_as_digits(self, content, index, children):
data_property_value = 'digits'
if index != 0:
children.append(self._create_content_element(
content[0:index],
data_property_value
))
children.append(self._create_aural_content_... |
/**
* Render method that draws the mesh then restores the
* state when finished.
*/
public void render() {
initRenderer();
glDrawElements(GL_TRIANGLES, getVertexCount(), GL_UNSIGNED_INT, 0);
endRenderer();
} |
<gh_stars>0
import { AnyAction } from "typescript-fsa";
import { Payment, setPaymentDetails, setShippingDetails, Shipping } from "../actions";
export interface CheckoutState {
shipping: Shipping;
payment: Payment;
}
const initState: CheckoutState = {
shipping: {
fullname: "",
email: "",
address: ""... |
/*
* Cloud9: A MapReduce Library for Hadoop Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
* or agreed to in w... |
<gh_stars>100-1000
package org.opencb.opencga.core.models.study.configuration;
import java.util.List;
public class ClinicalConsentAnnotation {
private List<ClinicalConsentParam> consents;
private String date;
public ClinicalConsentAnnotation() {
}
public ClinicalConsentAnnotation(List<ClinicalC... |
Android 4.0 (aka Ice Cream Sandwich) has been available for a little while now, but many carriers and manufacturers are still working hard to roll out official updates. Today, Samsung began rolling out an Android 4.0 update to its unlocked Galaxy S II devices in America. While users of carrier-branded Galaxy S II devic... |
A, B = int(input()), int(input())
print([n for n in [1, 2, 3] if n not in [A, B]][0]) |
// WriteTo writes bytes in b as pretty hex output to writer wr.
func WriteTo(wr io.Writer, b []byte) (n int, err error) {
w := bufio.NewWriter(wr)
if IncludeHeader {
nn, err := w.Write([]byte(head))
n += nn
if err != nil {
return n, err
}
}
var line []byte
for i := 0; i < len(b); i += 16 {
p := b[i:]
... |
<reponame>kduretec/TestDataGenerator<gh_stars>0
package benchmarkdp.datagenerator.generator;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.BasicEList;
... |
import { useCallback, useLayoutEffect, useRef } from 'react'
import { NoValue } from '..'
import { Facet, NO_VALUE, Option } from '../types'
export function useFacetCallback<M, V, K extends unknown[]>(
callback: (v: V) => (...args: K) => M,
dependencies: unknown[],
facet: [Facet<V>],
): (...args: K) => M | NoVal... |
/**
* Tests the basic use cases for PR persistence.
*/
@RunWith(GeodeParamsRunner.class)
@SuppressWarnings("serial,unused")
public class PersistentPartitionedRegionWithRedundancyDUnitTest implements Serializable {
private static final int NUM_BUCKETS = 113;
private String partitionedRegionName;
private String... |
/**
* Go through and parse all materials for a part. Add materials to the material list
* @param materials The array of materials from the server
* @param part_id The server's ID for the part being parsed
*/
private void parseMaterials(JSONArray materials, int part_id){
JSONObject material;
int id;
String... |
<filename>src/app/core/footer/footer.component.ts
import { Component, ViewEncapsulation } from '@angular/core';
import { NavigationService } from '../services';
@Component({
selector: 'footer',
templateUrl: './footer.component.html',
styleUrls: [ './footer.component.scss' ],
encapsulation: ViewEncapsulation.N... |
package ru.nik66;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class SortUserTest {
private User user1;
private User us... |
// listenOnEvent implements RekeyFSM interface for rekeyFSM.
func (m *rekeyFSM) listenOnEvent(
event rekeyEventType, callback func(RekeyEvent), repeatedly bool) {
m.muListeners.Lock()
defer m.muListeners.Unlock()
m.listeners[event] = append(m.listeners[event], rekeyFSMListener{
onEvent: callback,
repeatedly:... |
# -*- coding: utf-8 -*-
"""Wrapper to run synergia from the command line.
:copyright: Copyright (c) 2018 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
from pykern import pkio
from pykern.pkdebug import... |
<reponame>devianllert/ts-react-boilerplate
import api from './api';
export interface Tokens {
accessToken: string;
refreshToken: string;
expiresIn: string;
}
export interface UserLoginDTO {
emailOrUsername: string;
password: string;
}
export interface UserSignUpDTO {
email: string;
username: string;
... |
def clear_folders(self):
self.folders.clear() |
<gh_stars>1-10
package atomeps62
import (
"context"
"fmt"
"math"
)
//Volumes .
func (vs *AtlonaVideoSwitcher6x2) Volumes(ctx context.Context, blocks []string) (map[string]int, error) {
body := `{ "getConfig": { "audio": { "audOut": {}}}}`
config, err := vs.getConfig(ctx, body)
if err != nil {
return nil, fmt... |
Acute kidney injury in primary care: where are we now and where are we going?
Acute kidney injury (AKI) is defined as ‘a clinical and biochemical diagnosis reflecting abrupt kidney dysfunction’ .1 AKI is graded on a scale of 1–3 based on the size of the creatinine increase from baseline. Higher AKI scores are associat... |
import torch
import torch.nn as nn
import numpy as np
import matplotlib.pyplot as plt
import fastmri
from fastmri.data import transforms
class HammingWindowNetwork(nn.Module):
def __init__(self, shape):
super().__init__()
self.hamming_window_layer = HammingWindowLayer(shape)
def forward(... |
// NewClient creates a new postmark client
func NewClient(token string, fromaddr string) *Client {
bu, _ := url.Parse("https://api.postmarkapp.com")
return &Client{
Token: token,
FromAddress: fromaddr,
client: http.DefaultClient,
BaseURL: bu,
}
} |
/**
* Transforms a string into an array of single string characters.
*
* @param s
* The string to turn into a string array
*
* @return The input string transformed into an array of string characters
*/
private static String[] StringToArray(String s)
{
String[] as =... |
/**
* A Quartz implementation of {@link IScheduler}
*
* @author aphillips
*/
public class QuartzScheduler implements IScheduler {
public static final String RESERVEDMAPKEY_ACTIONCLASS = "ActionAdapterQuartzJob-ActionClass"; //$NON-NLS-1$
public static final String RESERVEDMAPKEY_ACTIONUSER = "ActionAdapte... |
declare var ResizeSensor;
module LionSoftAngular {
/**
* Автоматически расширяет все непосредственные дочерние элементы, помеченные атрибутом nv-fill-height до заполнения высоты контейнера.
*
* Чтобы это работало необходимо выполнение следующих условий:
* 1. Контейнер должен иметь фиксиров... |
// decode attempts to decode the bytes in buf using one of the Codec instances
// in codex. The buf must start with the single-object encoding prefix,
// followed by the unsigned 64-bit Rabin fingerprint of the canonical schema
// used to encode the datum, finally followed by the encoded bytes. This is a
// simplifie... |
package Chapter07.exercise34;
import java.util.Scanner;
public class SortCharactersInAString {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("enter a string to order");
String str = scan.next();
scan.close();
System.out.println(sort(str));
}
publi... |
<reponame>XIAO-LI-UPF/Natural-Language-ParagraphGeneration
import sys
from data import *
from mosestokenizer import MosesDetokenizer
def main(test_file, output_file, lang):
lang = lang.split('_')[0]
# detokenizer = MosesDetokenizer(lang)
detokenize = MosesDetokenizer(lang)
sent_id = 1
with open(ou... |
Effects of Self-Monitoring Training Logs on Behaviors and Beliefs of Swimmers
Investigators examined whether use of personal self-monitoring tools representing traditional “athletic training logs” improved training-related measures. Competitive Canadian intercollegiate swimmers (N = 26; M age = 20.4 years; 10 men, 21 ... |
/**
* Handle JSON requests for "dimension" functions
*
* @author Adam Andrews
*
*/
public class JLJsonDimensionHandler extends JLJsonCommandHandler implements JLDimensionRequestParams, JLDimensionResponseParams {
private IJLDimension dimHandler = null;
/**
* @param dimHandler
*/
public JLJsonDimensionHan... |
/**
* Create {@link Intent} that will be consumed by ShortcutManager, which later generates a
* launcher widget using this intent.
*/
@VisibleForTesting
Intent createResultIntent(Intent shortcutIntent, ResolveInfo resolveInfo,
CharSequence label) {
ShortcutInfo info = createShortc... |
The politician husband of deputy Labour leader Harriet Harman was accused of being racist after he referred to a postman as a "pikey".
Jack Dromey, 65, a shadow cabinet minister, drew criticism after he tweeted a picture of himself and a Royal Mail employee captioned with the apparent slur.
Hundreds of social network... |
Dielectric relaxation studies in water mixtures of dipropylene glycol using a time domain reflectometry technique
P A Chalikwar, A W Pathan, A R Deshmukh, M P Lokhande & A C Kumbharkhane* Department of Physics, K K M College Manwath, Parbhani 431 505, India Department of Physics, A S C college Badnapur, Jalna 431 202 ... |
def homogenize_input_dtypes(prog):
for f_name, f in prog.functions.items():
_homogenize_input_dtypes_block(f)
for op in f.operations:
op.type_value_inference(overwrite_output=True) |
// StoreMegolmOutSession stores an olm.OutboundGroupSession at
// /crypto_me/<userID>/<deviceID>/megolm_out/<megolmOutSession.ID>
func (cdb *CryptoDB) StoreMegolmOutSession(userID mat.UserID, deviceID mat.DeviceID,
megolmOutSession *olm.OutboundGroupSession) error {
err := cdb.db.Update(func(tx *bolt.Tx) error {
me... |
// generate a random hexadecimal string of length 16
pub fn generate_uid() -> Vec<u8> {
let mut rng = rand::thread_rng();
let mut uid: Vec<u8> = Vec::with_capacity(16);
for _ in 0..16 {
uid.push(CHARSET[rng.gen_range(0..16)]);
}
return uid;
} |
// The multiboot specification defines the module str as valid utf-8 (zero terminated string),
// therefore this function produces defined behavior
/// Get the cmdline of the module. If the GRUB configuration contains
/// `module2 /foobar/some_boot_module --test cmdline-option`, then this method
/// will return `--test... |
<filename>iam-dashboard/src/app/utils/custom-block-ui/custom-block-ui.component.ts
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-custom-block-ui',
template: `
<div class="block-ui-template">
<mat-spinner style="margin: 0 auto;"></mat-spinner>
<p>{{message}}</p>
<... |
/**
* This class represents a key pair for the Paillier crypto system. It can contain either a complete key pair consisting
* of a private key and the corresponding public key or only the public key. This class can generate key pairs, perform
* encryption and decryption, and apply homomorphic operations to the ciphe... |
package remotestore
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"strings"
"time"
"google.golang.org/grpc"
"github.com/inklabs/rangedb"
"github.com/inklabs/rangedb/pkg/broadcast"
"github.com/inklabs/rangedb/pkg/grpc/rangedbpb"
"github.com/inklabs/rangedb/pkg/rangedberror"
"github.com/inklabs/rang... |
def de_Boor(extended_knots_partition, control_net, tabs):
if type(tabs) is not np.ndarray: tabs = np.array(tabs)
control_net = control_net.transpose()
d, n = np.shape(control_net)
order = len(extended_knots_partition) - n
C = np.zeros((d, len(tabs)))
def foreach_dimension(f):
for i in r... |
def reward(self, state):
if self.color_grid[state[0], state[1]] == 'R':
return self.reward_weights[0]
if self.color_grid[state[0], state[1]] == 'V':
return self.reward_weights[1]
if self.color_grid[state[0], state[1]] == 'N':
return self.reward_weights[2]
... |
<gh_stars>0
package cs451;
import java.util.ArrayList;
import java.util.List;
public class FIFOBroadcast extends URBBroadcast {
private long[] vc;
private List<Broadcaster.Message> pending;
// semantic is to keep an arry of long to keep track of the NEXT message we
// expect (a la TCP)
public FI... |
Vanessa Sahinovic, 15, was flown home to Austria on a private jet belonging to Azerbaijan president Ilham Aliyev
European Games 2015 Location: Baku, Azerbaijan Dates: 12-28 June Coverage: Reports & video highlights of the main GB action on the BBC Sport website
A 15-year-old Austrian synchronised swimmer suffered "se... |
/**
* The tag with the value was found.
*
* @param tagValue the value
*/
private void foundTag(final String tagValue) {
if (!tagValue.isEmpty() && tagValue.charAt(0) == '/') {
current = current.getParent();
} else {
current = current.addTag(tagValue);
... |
/**
* @author Stanislav Muhametsin
*/
public class TableReferenceByExpressionImpl extends TableReferencePrimaryImpl<TableReferenceByExpression>
implements TableReferenceByExpression {
private final QueryExpression _expression;
public TableReferenceByExpressionImpl(final SQLProcessorAggregator proces... |
package org.sunger.net.presenter.impl;
import com.squareup.okhttp.Request;
import org.sunger.net.entity.MediaEntity;
import org.sunger.net.model.UserMediasModel;
import org.sunger.net.presenter.UserMediasPresenter;
import org.sunger.net.support.okhttp.callback.ResultCallback;
import org.sunger.net.view.MediasView;
i... |
Bovine salmonellosis: experimental production and characterization of the disease in calves, using oral challenge with Salmonella typhimurium.
A highly virulent strain of Salmonella tyhimurium was given orally to produce disease experimentally in 21 normal colostrum-fed calves 3 to 9 weeks old. The challenge inoculum ... |
PAMA Courseware: Learning the Psychological Analysis of Human Task Performance
The PAMA courseware provides an introduction to the theory and practice of work and organizational psychology. The courseware will be made available in a digital learning environment that can be approached via the Internet and Intranet. Fir... |
<filename>backend/src/test/java/com/sri/save/backend/ActionModelGeneratorTest.java
/*
* Copyright 2016 SRI International
*
* 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.... |
/**
* JDBC 2.0 Same as prepareStatement() above, but allows the default result
* set type and result set concurrency type to be overridden.
*
* @param sql the SQL query containing place holders
* @param resultSetType a result set type, see ResultSet.TYPE_XXX
* @param resultSetConcurrency a... |
/**
* Created by Rene Argento on 09/04/17.
*/
public class Exercise8 {
private class StringFrequency implements Comparable<StringFrequency>{
String string;
int frequency;
StringFrequency(String string, int frequency) {
this.string = string;
this.frequency = freque... |
<reponame>sirius2k/springboot-gentelella<gh_stars>1-10
package kr.co.redbrush.webapp.enums;
public enum CalendarType {
SOLAR,
LUNAR
}
|
package data
import (
"context"
"fmt"
"github.com/hashicorp/go-hclog"
protos "github.com/shizhongwang/myswagger/currency/protos/currency"
)
// ErrProductNotFound is an error raised when a product can not be found in the database
var ErrProductNotFound = fmt.Errorf("Product not found")
// Product defines the str... |
How To Solder
Home > Electronics > How To Solder - Soldering Tutorial Search:
Soldering is defined as "the joining of metals by a fusion of alloys which have relatively low melting points". In other words, you use a metal that has a low melting point to adhere the surfaces to be soldered together. Consider that solde... |
<filename>chap2_the_field/chap2cheat.py<gh_stars>1-10
# -*- coding: utf-8 -*-
from myutil import consolePrintWithLineNumber as c
'''
Created on 2015. 8. 12.
@author: Administrator
'''
'''
ch02 필드
'''
# 46p
from math import e
from math import pi
from GF2 import one
from image import color2gray
from image import ... |
/*!
******************************************************************************
*
* \file
*
* \brief RAJA header file containing constructs used to run kernel
* traversals on GPU with SYCL.
*
******************************************************************************
*/
//~~~~~~~~~~~~~~~~~~~~... |
/*
* Send a message to init to change the runlevel. This function is
* asynchronous-signal-safe (thus safe to use after fork of a
* multithreaded parent) - which is good, because it should only be
* used after forking and entering correct namespace.
*
* Returns 1 on success, 0 if initctl does not exist, -1 on err... |
package com.powerblock.timesheets.fragments;
import com.powerblock.timesheets.ExcelHandler;
import com.powerblock.timesheets.MainActivity;
import com.powerblock.timesheets.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
impor... |
from cement.utils.version import get_version as cement_get_version
import re
__version__ = "0.0.1-alpha.0"
def parse_version(version):
parsed_version = re.compile(r"\.|\-").split(version)
if len(parsed_version) == 3:
parsed_version.append("final")
return tuple(parsed_version)
VERSION = parse_... |
// GoPath returns the current GOPATH env var
// or if it's missing, the default.
func GoPath() string {
go_path := strings.Split(os.Getenv("GOPATH"), string(os.PathListSeparator))
if len(go_path) == 0 || go_path[0] == "" {
return build.Default.GOPATH
}
return go_path[0]
} |
Evidence of Androgen Receptor Expression in Lichen Sclerosus: An Immunohistochemical Study
Objective: While topical androgen administration is widely used in the treatment of lichen sclerosus of the vulva, localization and level of expression of androgen receptor (AR) have not been described previously. Methods: Thirt... |
/**
* Represents a moduleInfo's department
* Guarantees: immutable; is valid as declared in {@link #isValidModuleInfoDepartment(String)}
*/
public class ModuleInfoDepartment {
public static final String MESSAGE_CONSTRAINTS =
"Must consist of only characters and white spaces and cannot begin with whit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.