content stringlengths 10 4.9M |
|---|
/**
* @author <a href="mailto:gytis@redhat.com">Gytis Trikleris</a>
*/
public class JmsHelper {
public static final String FACTORY_NAME = "connection-factory";
public static final String QUEUE_NAME = "test-queue";
private static final Logger LOGGER = Logger.getLogger(JmsHelper.class.getName());
pu... |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{... |
/**
* Do reference counting of transform feedback buffers.
*/
static void
reference_transform_feedback_object(struct gl_transform_feedback_object **ptr,
struct gl_transform_feedback_object *obj)
{
if (*ptr == obj)
return;
if (*ptr) {
struct gl_transform_feedback_o... |
/**
* Valiate the password for this user, required for mail support
*
* @param password
* @return
*/
@Override
public boolean authenticate(String password) {
Object o = authenticate(this.name, password);
return o != null;
} |
Herbert Full name John Herbert Primary Employment Retired U.S. Army Veteran
Elder Member of Skull and Bones Society Voiced by Mike Henry
John Herbert is an elderly pedohebephile[1] who lives at 35 Spooner Street with his old, crippled dog, Jesse. He has a high-pitched, very soft, effeminate voice and with a slight wh... |
/**
* Geo decode (transform a latitude/longitude pair to an address)
*
* @param request
* @return
*/
public GeoDecodingResponse geoDecoding(GeoDecodingRequest request) {
isNullCheck(request, REQUEST);
isNullCheck(request.getLatitude(), "latitude");
isNullCheck(request.ge... |
import torch
import numpy as np
from torch.utils.data import DataLoader, Dataset
from collections import Counter
from pathlib import Path
from tqdm import tqdm
from utils import draw
def preprocess_batch(batch):
strokes, sentences = zip(*batch)
stroke_len = [len(x) for x in strokes]
senten... |
My Body, My Closet: Invisible Disability and the Limits of Coming-Out Discourse
A story: On a breezy afternoon one April I met with “Samantha,” a student in an undergraduate course on literature and disability, to talk about her paper on cultural images of burn survivors. After showing me her draft, she remained, eage... |
<reponame>zosman1/mason<gh_stars>100-1000
package sim.app.beadwire;
import sim.engine.SimState;
import sim.portrayal.*;
import sim.physics2D.*;
import sim.engine.*;
import sim.physics2D.physicalObject.*;
import sim.util.Double2D;
import java.awt.*;
public class Wire extends SimplePortrayal2D implements Steppable
... |
<filename>utils/configUtils.go
package utils
import (
"errors"
"github.com/joho/godotenv"
"os"
"path/filepath"
)
var envLoaded bool = false
func LoadEnv() error {
if envLoaded == true {
return nil
}
envFile := os.Getenv("ENV_FILE")
if envFile == "" {
pathFile, err := filepath.Abs(os.Getenv("GOPATH") + "... |
def calculateCyclicSymmetryNumber(molecule):
symmetryNumber = 1
rings = molecule.getSmallestSetOfSmallestRings()
for ring in rings:
structure = molecule.copy()
for i, atom1 in enumerate(ring):
for atom2 in ring[i+1:]:
if structure.hasBond(atom1, atom2):
... |
/**
* Interface for navigating around a JavaBean object model.
*
* <p>
* This class is not intended for direct usage, but is
* used by the Jaxen engine during evaluation.
* </p>
*
* @see XPath
*
* @author <a href="mailto:bob@werken.com">bob mcwhirter</a>
*/
public class DocumentNavigator
extends Default... |
/**
* @brief Starts an I2C read stream.
*
* @return A status code indicating the success of the I2C stream start.
*
* This function reads the I2C stream start request in from the control
* endpoint. It parses out the stream parameters from the buffer and
* configures the Stream DMA channel for I2C -> USB,... |
/*
* Tests: Separate/Combine RGB with all constant inputs.
*/
TEST_F(RenderGraph, constant_fold_separate_combine_rgb)
{
EXPECT_ANY_MESSAGE(log);
CORRECT_INFO_MESSAGE(log, "Folding SeparateRGB::R to constant (0.3).");
CORRECT_INFO_MESSAGE(log, "Folding SeparateRGB::G to constant (0.5).");
CORRECT_INFO_MESSAGE(... |
<reponame>aie-felix/StpOcSDK<filename>Example/StpOCSDK/STPViewController.h
@import UIKit;
@interface STPViewController : UIViewController
@end
|
/**
* Rimuove il blocco dall posizione indicata
* @param posX PosizioneX del blocco
* @param posY PosizioneY del blocco
*/
public void rimuoviBlocco(int posX, int posY){
ArrayList<int[]> blocchi = this.parseListaBlocchi();
StringBuilder sb = new StringBuilder();
for(int[] blo... |
from django.core.management.base import BaseCommand
from portfolio.lib.degiro_api import DegiroAPI
class Command(BaseCommand):
def handle(self, *args, **kwargs):
degiro = DegiroAPI()
degiro.login()
degiro.get_config()
x = 1 |
"""
gui/dialogs.py
==============
Dialog GUI objects.
--------------------------------------------------------------------------------
Major GUI objects (tabs, table views) are in the tab_... files. This module has
primarily pop-up dialogs used to set network adjustment settings, show gravity
change over tim... |
<reponame>element-fi/elf-tokenlist<gh_stars>0
import hre from "hardhat";
import uniq from "lodash.uniq";
import zip from "lodash.zip";
import { YVaultAssetProxy__factory } from "elf-contracts-typechain/dist/types/factories/YVaultAssetProxy__factory";
import { Tranche__factory } from "elf-contracts-typechain/dist/type... |
<filename>src/app/routes/dashboard/schema.value.ts
// Generated by https://jsonschema.net/
export const schema = {
$id: 'http://example.com/example.json',
type: 'object',
definitions: {},
$schema: 'http://json-schema.org/draft-06/schema#',
properties: {
products: {
$id: '/properties/products',
... |
def readGroupInfo(self):
return self.cmpH5.readGroupInfo(self.ReadGroupID) |
<reponame>tpiva/ts-api-me<filename>server/modules/Author/controller.ts
import { Request, Response} from 'express';
import handlers from '../../api/responses/handlers';
import * as _ from 'lodash';
import Author from './service';
class AuthorController {
getAll(req: Request, res: Response) {
Author
... |
<filename>src/main/java/cn/edu/cuit/tsmgr/controller/RegisteController.java
package cn.edu.cuit.tsmgr.controller;
import cn.edu.cuit.tsmgr.model.Users;
import cn.edu.cuit.tsmgr.service.SystemServiceInter;
import cn.edu.cuit.tsmgr.service.impl.SystemService;
import cn.edu.cuit.tsmgr.util.EncryptionUtil;
import org.spri... |
Automated transepithelial electrical resistance measurements of the EpiDerm reconstructed human epidermis model
Understanding the effect of exogenous substances on human skin is critical for toxicology assessment. To address this, numerous artificial models of the topmost layer of human skin, so-called reconstructed h... |
/**
* Publishes an event under the given topic.
* @param topic The topic that should be used for publishing the event
* @param flags Additional publish flags if any. This can be null.
* @param arguments The positional arguments for the published event
* @param argumentsKw The keyword arguments ... |
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule,IonicPageModule , IonicErrorHandler } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import ... |
package com.alibaba.alink.params.evaluation;
import org.apache.flink.ml.api.misc.param.ParamInfo;
import org.apache.flink.ml.api.misc.param.ParamInfoFactory;
import com.alibaba.alink.params.shared.HasTimeIntervalDv3;
/**
* Params for binary classification evaluation.
*/
public interface EvalBinaryClassStreamParams... |
<filename>application.py
import os, sys, json
from io import BytesIO
import pandas as pd
import datetime
from flask import Flask, render_template, request, abort
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import Inval... |
<reponame>gtk-rs/release
# Very simple Toml parser.
def create_section(content_line):
if content_line.endswith(']'):
return Section(content_line[1:-1])
return Section(content_line[1:])
class Section:
def __init__(self, name):
self.name = name
self.entries = []
def add_entry(s... |
/**
* Tests {@link MetricUtils#isEmpty(Metric)} that should return {@code false} when a Metric
* with non empty name is used.
*/
@Test
public void isEmpty_shouldBeNotEmpty() {
final Metric actualValue = MetricTestProvider.getSampleMetric();
assertThat(MetricUtils.isEmpty(actualValue), is(false));
} |
Chinese Netizens' Collective Deliberation on Bystander Controversies and the Role of Micro-blogging
The fundamental goal of this research is to explore the role played by micro-blogging in governance in China. Employing data from major micro-blogging platforms, traditional News Streams and Government Information resou... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gevent.monkey
gevent.monkey.patch_all()
import flask
import gevent.wsgi
import gevent.lock
import hashlib
import json
import struct
import zlib
from lib.core import log, get_redis_cli, put_message, message_number
from lib.models import deliver_model
redis_cli = ... |
import sys
input = sys.stdin.readline
n = int(input())
def divisors(n):
div = []
i = 1
while(i * i <= n):
if n % i == 0:
div.append(i)
if i * i != n:
div.append(n // i)
i += 1
return div
def f(a, b):
al = len(str(a))
bl = len(str(b))
... |
def plot_best_model_by_hyperparam(
self,
metric_select: str,
param_hue='lr',
partition_select: str = "val",
partition_show: str = "test",
subset: dict = {},
param_x: Union[tuple, list] = ('lr', 'depth', 'width', 'dropout', 'l1', 'l2'),
... |
Science Of Beer Brewing
Looking into the time it takes for beer to process.
Karin Heineman, ISTV Executive Producer
(Inside Science TV) -- Beer! Most Americans choose it over all other alcoholic beverages.
It's also one of the world's oldest beverages. In fact the first evidence of beer production dates back to Anc... |
<reponame>itsnikhil/atlan-challenge
from django.db import models
from django.contrib.auth import get_user_model
from django.core.validators import MaxValueValidator, MinValueValidator
User = get_user_model()
class DataStore(models.Model):
"""
Entity for storing file uploaded and owner
"""
owner ... |
package com.packtp.tddjava.ch03ttt;
/**
* @author Johnson
* @date 2020/2/26 22:05
*/
public class TicTacToe {
private Character[][] board = {{'\0', '\0', '\0'}, {'\0', '\0', '\0'}, {'\0', '\0', '\0'}};
private char lastPlayer = '\0';
public String play(int x, int y) {
checkAxis(x);
che... |
<gh_stars>0
{-# LANGUAGE DeriveGeneric #-}
module Gimlight.Dungeon.Identifier
( Identifier(..)
, isTown
) where
import Data.Binary (Binary)
import GHC.Generics (Generic)
data Identifier
= Beaeve
| BatsCave
| GlobalMap
deriving (Show, Ord, Eq, Generic)
instance Binary... |
'''
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docu... |
/**
* Class for extracting a SAML Response from a POST parameter.
*
* @author Joakim Recht <jre@trifork.com>
*
*/
public class PostResponseExtractor {
private static final Logger log = LoggerFactory.getLogger(PostResponseExtractor.class);
public OIOResponse extract(HttpServletRequest request) {
String samlR... |
<filename>roc-commons-spring-boot-starter/roc-http-spring-boot-starter/src/main/java/icu/d4peng/cloud/common/http/config/RocLogHandler.java
package icu.d4peng.cloud.common.http.config;
import com.dtflys.forest.logging.ForestLogHandler;
import com.dtflys.forest.logging.ForestLogger;
import com.dtflys.forest.logging.Req... |
/**
* Gets source from the request, parses it and return call target that, if
* called, executes given script in I4GL language.
*
* @param request parsing request
* @throws I4GLParseException the source cannot be parsed
*/
@Override
protected CallTarget parse(ParsingRequest request) t... |
<filename>pydlr/test/test_convolution.py
"""Tests for the imaginary time convolution routines.
Copyright 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/... |
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from "mongoose";
import { SectionDtoIntf } from '../../DTO/SectionDto/section-dto-intf.interface';
import { SectionDto } from '../../DTO/SectionDto/section.dto';
@Injectable()
export class SectionDaoService {
... |
<filename>dbswdbe/WdbeMUnit_vecs.cpp
/**
* \file WdbeMUnit_vecs.cpp
* database access for table TblWdbeMUnit (implementation of vectors)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace... |
<gh_stars>10-100
// LoopHint: 0, LaunchCode: fooAn
extern "C" void
foo(float * A, int n)
{
for (int i = 0; i < n; ++i) {
A[i] = 42.0;
}
}
|
import {
defineComponent,
ref,
computed,
onMounted,
watch,
nextTick,
provide,
Teleport,
unref,
readonly,
Transition
} from 'vue';
import {
useReactive,
colorPickerResize,
isExhibitionColorPicker,
changeColorValue
} from './utils/composeable';
import { colorPickerProps, ColorPickerProps } f... |
elem = int(input())
temp='W'
curr='W'
for x in range(elem):
temp=curr
for y in range(elem):
print(temp, end='')
if temp=='W':
temp = 'B'
else:
temp = 'W'
if curr == 'W':
curr = 'B'
else:
curr = 'W'
print() |
Overwatch is about team composition and hero switching as well as twitch skill: it’s a game of rock-paper-scissors with twenty-one options, and you need to understand how they all interact with one another if you want to make the right in-game choices. In this guide, I’m going to suggest two solid counters for every he... |
/*
The Player ID is set by Lobby::connect as Client ID. Name is derived
from Game Key input (see Lobby::process_buf(), 0x19a branch for
explanation). Ver1 and ver2 strings also are sent by the client on
login. State 0x01 means "in lobby". Use default properties string.
*/
Player( int id, std::string name,... |
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... |
<reponame>dyzmapl/BumpTop<filename>trunk/win/Source/Includes/QtIncludes/include/QtDesigner/private/morphmenu_p.h
#include "../../../tools/designer/src/lib/shared/morphmenu_p.h"
|
/**
* @brief Set the callbacks that will be invoked.
*/
void NimBLEClient::setClientCallbacks(NimBLEClientCallbacks* pClientCallbacks, bool deleteCallbacks) {
if (pClientCallbacks != nullptr){
m_pClientCallbacks = pClientCallbacks;
} else {
m_pClientCallbacks = &defaultCallbacks;
}
m_d... |
def uniform_prevalence_sampling(n_classes, size=1):
if n_classes == 2:
u = np.random.rand(size)
u = np.vstack([1-u, u]).T
else:
u = np.random.rand(size, n_classes-1)
u.sort(axis=-1)
_0s = np.zeros(shape=(size, 1))
_1s = np.ones(shape=(size, 1))
a = np.hsta... |
n=int(input())
import math
c=0
for i in range(1,n//2+1):
k=n//i
c+=i*k*(k+1)/2
for i in range(n//2+1,n+1):
c+=i
print(int(c)) |
/**
* Fill the selectbox of with assets supplied by the Breachlock Platform.
*
* @param apikey Jenkins integration API key
* @param email Email used for app.breachlock.com
*
* @return ListBoxModel Selectbox with assets
*/
@SuppressWarnings("unused")
... |
/**
*
* @param groupName
* @return if group exists as direct member
*/
private boolean groupExistsAsMemberInOverallGroup(String groupName) {
if (!groupName.endsWith(systemOfRecordExtensionSuffix())) {
return false;
}
String overallGroupName = groupName.substring(0, groupName.length() ... |
<filename>book/chap07/07-04e-VarietyPack.hs
-- 07-04e-VarietyPack.hs
--
-- 7.4 Pattern matching, page 226
-- Exercises: Variety Pack, page 235
--
module VarietyPack where
-- 1. Given the following declarations
k (x, y) = x
k1 = k ((4 - 1), 10)
k2 = k ("three", (1 + 2))
k3 = k (3, True)
-- a) What is the type of k?... |
<gh_stars>0
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, Http404
from django.contrib.auth import authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from .models import Deposit, Placebet
from .forms import Dep... |
<gh_stars>0
import findspark
import os
from dotenv import load_dotenv
import sys
load_dotenv()
arguments = sys.argv
if len(arguments) > 2 or len(arguments) < 2:
print("Please provide a Kafka topic in this format: \npython wordcount.py <topic>")
else:
topic_name = str(sys.argv[1])
if __name__ == '__main__':
... |
<reponame>kaizoku-oh/rtcOS
/*
**************************************************************************************************
*
* @file : rtcos.c
* @author : <NAME>
* @version : 1.3.1
* @date : April 2021
* @brief : RTCOS source file
*
*************************************************************... |
def merge_chunks(chunks: List[Chunk], min_duration: int, merge_silence: bool) -> List[Chunk]:
if len(chunks) <= 1:
return chunks
final_chunks: List[Chunk] = list()
current_chunk: Chunk = None
for i in range(1, len(chunks)):
current_chunk = chunks[i]
process_chunk = (not merge_silence and current_chu... |
/**
* <p>
* The XbaseDatasetReader is a {@link RecordReader} that can read .dbf data
* files contained in a single directory. The reader will iterate through the
* .dbf files in alphabetical order returning all features.
* </p>
* <p>
* See the {@link AbstractDirectoryReader} class for examples on how to use
* d... |
/**
* UI around an {@link JIPipeProjectRun} result
*/
public class JIPipeResultUI extends JIPipeProjectWorkbenchPanel {
private JIPipeProjectRun run;
private JSplitPane splitPane;
private JIPipeResultAlgorithmTree algorithmTree;
/**
* @param workbenchUI the workbench
* @param run th... |
use super::Executable;
use crate::{
services::github::GithubService,
utils::{get_language_aliases, print_colored},
};
use async_trait::async_trait;
use clap::Parser;
use std::{fs, path};
use termcolor::Color;
pub const DESCRIPTION: &str = "Create an up to date gitignore for a given language or technology";
#[... |
package backoff
// Config
type Config struct {
// Enabled
Enabled bool `default:"false" flag:"with-backoff" yaml:"enabled" toml:"enabled" xml:"enabled" ini:"enabled" csv:"Enabled"`
// Retry
Retry int `default:"3" flag:"with-backoff-retry" yaml:"retry" toml:"retry" xml:"retry" ini:"retry" csv:"retry"`
//-- End
... |
Screening mammography in women 40 to 49 years of age.
While there is strong agreement among experts and evidence in the literature to recommend that women 50 to 69 years of age undergo screening with mammography for breast cancer, the question of screening women 40 to 49 years of age is controversial. The results of m... |
def _evaluate_loss(self, batch: BatchedGraphDataWithTarget, train: bool):
if self._loss_func is None:
raise OptimizerAndLossNotInitialized(
"Call init_optimizer_and_loss before trying to evaluate loss."
)
self.train(train)
predictions = self.forward(batch.... |
// Get the file name excluding extention.
BOOL ClsFindFile::GetFileTitle( ClsString& strName ) const
{
_ASSERT( m_bFoundFile );
try
{
if ( GetFileName( strName ))
{
int nPos = strName.Find( _T( '.' ));
if ( nPos != -1 )
strName.SetStringLength( nPos );
return TRUE;
}
}
catch( ClsMemoryException&... |
<gh_stars>10-100
export interface ParsedImport {
/** parsed ref */
ref: string;
/** parsed type (will equal to the alias if one was specified) */
type: string;
/** true if an alias was specified */
isAliased: boolean;
}
|
package messageStreamSocket;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Scanner;
public class UdpClient {
public static void main(String[] args) throws Exception {
// build a messageStreamSocket.socket
DatagramSocket datagramSocket... |
#!/usr/bin/env python3
#
# Copyright (c) 2022, Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
'''
Script to generate image information files.
This script creates a image information header which can be included by a
second build system.
This allows a second stage build system to use image informatio... |
export type Address = string;
export type Base64 = string;
export type TxHash = string;
interface Txn {
from: Address;
fee: number;
firstRound: number;
lastRound: number;
genesisID: string;
genesisHash: Base64;
note?: Uint8Array | Base64;
reKeyTo?: Address;
group?: Buffer | Base64;
flatFee: boolean;
}
inter... |
# coding: UTF-8
import sys
# code.hexとdata.hexを分離
def split(file_name):
f = open(file_name, 'r', encoding="UTF-8")
line_list = f.readlines()
line_list_0 = []
line_list_1 = []
for i, line in enumerate(line_list):
byte_list = list(line)
if i < 16384:
line_list_0.append... |
package domain
type Vehicle struct {
Url string `json:"url"`
Title string
Price string
Year int
}
type MakeModelResponse struct {
OEMs []MakeModelResponseOEM `json:"makeModels"`
}
type MakeModelResponseOEM struct {
Title string `json:"make"`
Models []MakeModelResponseModel `json:"childre... |
def _variables(self):
variables = []
for a, b in [['CC', 'C_COMPILER'],
['CXX', 'CXX_COMPILER'],
['CFLAGS', 'CFLAGS'],
['CXXFLAGS', 'CXXFLAGS'],
['LDFLAGS', 'EXE_LINKER_FLAGS']]:
if self.attribute(a).value != '':... |
/**
* Writes a Trajectory object to an XML document. This class simply creates an
* XML document with the appropriate header information. The work of adding
* the Trajectory representation is delegated to the Trajectory class.
*
* @author Craig McChesney
* @version $id:
*
*/
public class TrajectoryXmlWriter... |
// AddCellInfo is part of the vtctlservicepb.VtctldServer interface.
func (s *VtctldServer) AddCellInfo(ctx context.Context, req *vtctldatapb.AddCellInfoRequest) (*vtctldatapb.AddCellInfoResponse, error) {
span, ctx := trace.NewSpan(ctx, "VtctldServer.AddCellInfo")
defer span.Finish()
if req.CellInfo.Root == "" {
... |
def step_call(
self, model: torch.nn.Module, optimizer: Union[torch.optim.Optimizer, OSS]
):
model.step() |
// makeContiguousColumns make columns in specific rows as contiguous.
func makeContiguousColumns(ws *xlsxWorksheet, fromRow, toRow, colCount int) {
ws.Lock()
defer ws.Unlock()
for ; fromRow < toRow; fromRow++ {
rowData := &ws.SheetData.Row[fromRow-1]
fillColumns(rowData, colCount, fromRow)
}
} |
import { def } from 'core/util/lang'
import { normalizeChildren } from 'core/vdom/helpers/normalize-children'
import { emptyObject, isArray } from 'shared/util'
import { isAsyncPlaceholder } from './is-async-placeholder'
import type VNode from '../vnode'
import { Component } from 'types/component'
import { currentInsta... |
import tvm
from tvm.tensor_graph.core2.graph.concrete import Compute, Tensor
from .padding import zero_pad2d
######################################################################
# for functional, all states are inputs, data from inside functionals
# can only be constants
##########################################... |
<reponame>publicdevop2019/mt7-obj-market<gh_stars>1-10
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { IAddress } from '../modules/account/addresses/addresses.component';
import { HttpProxyService } from './http-proxy.service';
@Injectable({
providedIn: 'root'
})
export clas... |
Endocytic pathways: combined scanning ion conductance and surface confocal microscopy study
We introduce a novel high resolution scanning surface confocal microscopy technique that enables imaging of endocytic pits in apical membranes of live cells for the first time. The improved topographical resolution of the micro... |
def end_epoch_millis(self):
return self._end_epoch_millis |
<filename>src/lib.rs
/* automatically generated by rust-bindgen */
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
pub const OPUS_OK: ::std::os::raw::c_int = 0;
pub const OPUS_BAD_ARG: ::std::os::raw::c_int = -1;
pub const OPUS_BUFFER_TOO_SMALL: ::std::os::raw::c_int = -2... |
Submitted by Lance Roberts of STA Wealth Management,
Every three years the Federal Reserve releases a survey of consumer finances that is a stockpile of data on everything from household net worth to incomes. The 2013 survey confirms statements I have made previously regarding the Fed's monetary interventions leaving ... |
use std::io;
use ui::{
backend::{Backend, MoveDirection},
events::{EventIterator, KeyEvent},
style::{Color, Stylize},
widgets::{self, Text},
Prompt, Validation, Widget,
};
use super::{Choice, Transform};
use crate::{Answer, Answers, ExpandItem};
pub use builder::ExpandBuilder;
mod builder;
#[cfg... |
/**
* Used to generate Set-Cookie http headers. Supports all features from RFC 6265, section 4.1: Set-Cookie.
* All features are explained here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie.
*/
public final class SetCookieHeader {
protected static final boolean DEFAULT_SECURE = false;
... |
def ReadOptions(self, args):
(opts, args) = getopt.getopt(args, 'g:qdvxc:i:p:h:', ('psyco',))
for (key, val) in opts:
if key == '-d': self.disconnected = True
elif key == '-c': self.client = val
elif key == '-h': self.hash = val
elif key == '-i': self.input = val
elif key == '-v':
... |
import Control.Monad
import Control.Applicative
import Data.Functor
shiftFirst :: Int -> Int -> [[Int]] -> [[Int]]
shiftFirst l sh = map $ map $ \x -> (x + sh) `mod` l
best :: Int -> [[Int]] -> Int
best l xs = foldl1 min $ do
sh <- [0 .. pred l]
pure $ (sh +) $ sum $ map (foldl1 min) $ shiftFirst l sh xs
possibl... |
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.10.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [markdown]
# # Rotation Sweep on PPO2 w/ Solo8 ... |
/**
* Creates and returns a {@code MasteryCheck} with the details of {@code masteryCheckToEdit}
* edited with {@code editMasteryCheckDescriptor}.
*/
private static MasteryCheck createEditedMasteryCheck(MasteryCheck masteryCheckToEdit,
EditMasteryCheckCommand.EditMasteryCheckDescriptor editMastery... |
123rf
The number of traffic accidents involving foreign drivers increased by four times in the last three years, a report showed Thursday.A total of 1,411 traffic accidents caused by foreigners were reported in 2015, four times more than 2012. Of this number, 487 cases involved those driving without licenses, two time... |
/**
* Table showing opened TopComponents in two columns. One column contains
* editor windows, other column contains non-document windows. It may have additional
* columns to show sub-components of currently selected item.
*
* @since 2.46
* @author S. Aubrecht
*/
class Table extends JTable {
private static... |
main = do
getLine
input <- concat . map (\x -> [x, x]) . lines <$> getContents
putStr $ unlines input
|
/**
* Test of getColumnNames method, of class ImageLogic.
*/
@Test
public void testGetColumnNames() {
List<String> list = logic.getColumnNames();
assertEquals(Arrays.asList("ID","URL","PATH","NAME"), list);
} |
<reponame>congbui2502/ChuyenDeDiDong2_KhachHang
package java.android.quanlybanhang.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TaskStackBuilder;
import android.content.Context;
import android.content.Intent;
import android.grap... |
package parse
import (
"encoding/json"
"fmt"
"os"
"reflect"
"strconv"
"strings"
"github.com/sourcegraph/sourcegraph/schema"
)
// legacyEnvToFieldName maps from the legacy env var name to the
// SiteConfiguration struct field that the env var sets. Only top-level fields
// are traversed, so we needn't worry ab... |
Schwannoma and Neurofibroma, Originating from the Ulnar Nerve in Neurofibromatosis: A Case Report and Review of the Literature
Schwannomas and neurofibromas are rare benign tumors originating from the peripheral nerve sheath. Tumors in neurofibromatosis are mostly neurofibromas and often appear in the soft tissue of p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.