content stringlengths 10 4.9M |
|---|
/**
* Verify that injected ME instances injected by the container can be shutdown
*/
public void shutdownContainerInstance() throws Exception {
throwAway1.shutdown();
assertTrue(throwAway1.awaitTermination(MAX_WAIT_SEC, TimeUnit.SECONDS));
assertTrue(throwAway1.isShutdown());
t... |
// Package schema provides helpers for openapi3 schema
package schema
import (
"encoding/json"
"fmt"
"github.com/getkin/kin-openapi/openapi3"
)
// Validator describes openapi3 schema validator.
type Validator struct {
swagger *openapi3.Swagger
}
// Swagger is alias for openapi3.Swagger.
type Swagger = openapi3... |
<gh_stars>0
package org.i3xx.util.rna.core;
public interface ITimeSliceIterator {
/**
* Liefert den heute g�ltigen TimeSlice zur�ck
* Der Iterator wird auf diesem Element positioniert
* @return TimeSlice der heute g�ltig ist
* wenn keiner gefunden wurde null
*/
IBrick getActualTimeSlice();
... |
Designing public spaces for democratic stories
We argue that civic discourse can also be public storytelling and propose three reasons to consider this relationship: stories' relational nature - their ability to represent uniquely human perspectives and emotions - may ameliorate aspects of citizens' disinterest in civ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.sisgeproinv.modelos;
/**
*
* @author <NAME>
*/
public class Proveedor {
private int IDPROVEEDOR;
private String... |
#include "soundManager.h"
SoundManager::SoundManager() {
// not needed ?
}
SoundManager::~SoundManager() {
for (list<soundListing>::iterator sl = sounds.begin(); sl != sounds.end(); sl++) {
Mix_FreeChunk(sl->sound);
}
}
void SoundManager::loadSound(string name, string file) {
soundListing listing;
listing.nam... |
<filename>logger.go<gh_stars>0
// Package logger provides a single logging facility/interface that can be used with
// Appengine-contained code (e.g. GCP Standard Enviromnment for Go) or inside 'normal' Go runtime
// environments (GCP Flexible and most others).
//
// This package was written specifically to enable same... |
Cutaneous manifestations associated with malignancy of the head and neck.
Most cutaneous malignancies of the head and neck (HN) are non-melanoma skin cancers, predominantly basal cell carcinomas (BCCs) and squamous cell carcinomas (SCCs). Less common entities include Merkel cell carcinoma (MCC), sebaceous carcinoma (S... |
/**
* Represents a Real16 number
*/
private class Real16 extends AbstractNumericOther {
private Real16(PdbByteReader reader) throws PdbException {
super(reader, 2);
}
} |
/**
* Copyright 2019-2022 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... |
/**
* find_first_and_bit - find the first set bit in both memory regions
* @addr1: The first address to base the search on
* @addr2: The second address to base the search on
* @size: The bitmap size in bits
*
* Returns the bit number for the next set bit
* If no bits are set, returns @size.
*/
static inline
uns... |
// substitute any punctuation with special code as necessary
public static String replacePunc(String s, int tType, int oType)
{
int i, n;
String s1, s2, snew;
ArrayList<String> to, from;
switch (oType) {
case ECHO: to = puncReplaceTo_ECHO; from = puncReplaceFrom_ECHO; break;
case HTML: to = puncReplaceTo... |
<gh_stars>0
#include "p2p.h"
#include <stdio.h>
#include <string.h> // memset()
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include "logger.h"
#include "../protobuf/client.pb.h"
namespace DBC {
P2P::P2... |
LEGAL AWARENESS ABOUT WOMEN RIGHTS: TEACHERS PERSPECTIVE
Legal awareness can be a significant tool for attaining equality of women in all spheres of social and political life. Legal Awareness as the name suggests is the knowledge of laws, acts, rights and legal provisions offered to a countrys citizens for their secu... |
<reponame>UptakeOpenSource/airflow-api
class APIParam(object):
def __init__(
self,
name, param_help,
data_type=None, choices=None, action=None, required=False, default=None, location=None, example=None
):
self.name = name
self.data_type = data_type
s... |
Why do These Match? Explaining the Behavior of Image Similarity Models
Explaining a deep learning model can help users understand its behavior and allow researchers to discern its shortcomings. Recent work has primarily focused on explaining models for tasks like image classification or visual question answering. In t... |
Evidence-based dentistry: a clinician's perspective.
Evidence-based dentistry is a discipline that provides best, explicit-based evidence to dentists and their patients in shared decision-making. Currently, dentists are being trained and directed to adopt the role of translational researchers in developing evidence-ba... |
// Return the next non-blank line in the slice of strings, trimmed.
// This line and any preceding blank lines are removed from the slice.
func NextNBLine(lines *[]string) (s string, err error) {
if lines != nil {
for len(*lines) > 0 {
s = strings.TrimSpace((*lines)[0])
*lines = (*lines)[1:]
if s != "" {
... |
/**
* Retrieve the RdSpanningCombinatorialIterator Instance associated with the Underlying Vector Space
*
* @param aR1CV Array of R^1 Combinatorial Vectors
*
* @return The RdSpanningCombinatorialIterator Instance associated with the Underlying Vector Space
*/
public static final RdSpanningCombinatorialIte... |
/**
* This API is used to recover password via selected recovery option.
*
* @param recoveryRequest Recovery request. (required)
* @param tenantDomain Tenant Domain which user belongs. Default `carbon.super` (optional)
* @param headers Any additional headers to be emb... |
// Infer upstream RST_STREAM status code from downstream HTTP/2
// error code.
uint32_t infer_upstream_rst_stream_status_code(uint32_t downstream_error_code) {
if (downstream_error_code == NGHTTP2_REFUSED_STREAM) {
return SPDYLAY_REFUSED_STREAM;
} else {
return SPDYLAY_INTERNAL_ERROR;
}
} |
One of the easiest to use email encryption apps ever built can trace its roots right back to the laboratories of the National Security Agency.
Exactly one year to the day since Edward Snowden leaked tens of thousands of documents that shed light on the vast scope of cybersurveillance that the agency conducts around th... |
<filename>plotly/examples/subplots.rs
use plotly::common::{Font, Side, Title};
use plotly::layout::{Axis, GridPattern, Layout, LayoutGrid, Legend, RowOrder};
use plotly::{Plot, Rgb, Scatter};
// Subplots
fn simple_subplot(show: bool) {
let trace1 = Scatter::new(vec![1, 2, 3], vec![4, 5, 6]).name("trace1");
let... |
/**
* A DependencyKey is used as the value of setLocatorMap {@link #setLocatorMap} such that given a task we can
* quickly find the set of preceding tasks on which it depends. The id {@link DependencyKey#id} is then used to
* search the dependencyMap {@link #dependencyMap} in order to locate the rest of ... |
i=int(input())
d=i%2+8
print(d,i-d)
######################## |
For the first time since September’s Emmy Awards, the cast of “Mr. Robot” reunited for a special SAG panel at the NeueHouse Hollywood on Wednesday evening to discuss season two of the buzzy cyber series. Stars Rami Malek and Christian Slater opened up about the joys and challenges of their roles on USA Network’s acclai... |
/**
* @brief Initializes a new object to represent workload parameters for a
* generic workload.
* @param[in] _n Number of inputs to the operation.
* @param[in] _m Number of outputs for the operation.
* @details
* This constructor will generate workload parameters according to the specific... |
<filename>POO/aulas/aula01/h02.cpp<gh_stars>0
#include <stdio.h>
float proximaParcela(float s, int n, float j, int *corrente, float *p) {
if (*corrente == 0) // Primeira Parcela
*p = s;
else if (*corrente <= n)
*p = *p + (*p * (j / 100));
else
*p = 0; // não há mais parcelas
(*corrente)++;
retur... |
VisualV is a graphic overhaul modification for Grand Theft Auto V, bringing you a completely redone weather effects, edited modificators for areas/interiors, improved color correction and much much more to add some life to Los Santos and Blaine County as well as a fixed rendering code, so your playing experience will b... |
<reponame>TREiop/v6d<gh_stars>0
/*
Copyright 2020 The Kubernetes Authors.
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 ... |
def RankedCompletions(suggestions, invocation):
def _FlagAlreadyUsed(flag):
return flag in [token.value for token in invocation.flags]
def _ShouldPrioritizeUnusedRequiredFlag(token_name):
return (IsFlag(token_name) and
(FlagIsRequired(suggestions[token_name]) or
FlagBelongsToRequire... |
<filename>src/common/constants/index.ts
export * from './coin-icons';
export * from './coin-links';
|
def print_groups(groups):
for tag, grp in groups.items():
print "-", tag, "-" * 70
for task in grp:
print '- [%s]: %s %s' % (task.done, task.text, task.tags) |
def mu_stats(self, aper, band, to_mujy=True, rerun='s18a', sigma=3.5,
kde=False, bw=None, prefix=None):
u_factor = self.CGS_TO_MUJY if to_mujy else 1.0
assert band in self.FILTER_SHORT, "# Wrong filter name: {}".format(band)
flux_col = aper.flux(rerun=rerun, band=band)
t... |
// -*- C++ -*-
/*!
\file composite_compare.h
\brief Implements functions and classes for a comparing composite numbers.
*/
#if !defined(__ads_composite_compare_h__)
#define __ads_composite_compare_h__
#include "../array/FixedArray.h"
#include <functional>
namespace ads {
//--------------------... |
package com.zrkworld.cinema.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.... |
Exclusive: Rodney Croome, Kerryn Phelps and Ivan Hinton-Teoh blame flaws in the process after forms sent to old postboxes
Prominent LGBTI advocates Rodney Croome, Kerryn Phelps and Ivan Hinton-Teoh have all complained that their marriage law survey forms went to the wrong addresses and have raised fears some Australia... |
// EnsureDiscoFinalizerRemoved ensure the finalizer is removed from an existing Object.
func (k8s *K8sFramework) EnsureDiscoFinalizerRemoved(obj runtime.Object) error {
isHasDeletionTimestamp, err := HasDeletionTimestamp(obj)
if err != nil {
return err
}
if hasDiscoFinalizer(obj, k8s.finalizer) && isHasDeletionTi... |
// NewCustCode creates a new CustCode object
func NewCustCode(cs CustCodeStore) *CustCode {
return &CustCode{
store: cs,
}
} |
/**
* restart the server
*
* @return {@link MServer} instance
*/
public static MServer restart() {
if (isRunning())
stop();
return start();
} |
<filename>Palindrome_Check.py
def isPalindrome(s):
rev = ''.join(reversed(s))
if s == rev:
return True
return False
ans = isPalindrome("")
if (ans):
print("Yes")
else:
print("No") |
<reponame>Prokyo/ProkyoNet
package de.prokyo.network.common.packet;
import de.prokyo.network.common.buffer.PacketBuffer;
import de.prokyo.network.common.event.Event;
/**
* Represents a packet containing a bunch of information.
*/
public interface Packet extends Event {
/**
* Encodes the information and writes i... |
Zipf and Type-Token rules for the English and Irish languages
The Zipf curve of log of frequency against log of rank for a large English corpus of 500 million word tokens and 689,000 word types is shown to have the usual slope close to –1 for rank less than 5,000, but then for a higher rank it turns to give a slope cl... |
/*
* Calculate the keybits and highside/lowside of the freemap node the
* caller is creating.
*
* This routine will specify the next higher-level freemap key/radix
* representing the lowest-ordered set. By doing so, eventually all
* low-ordered sets will be moved one level down.
*
* We have to be careful here ... |
Deaths and tumours among rotogravure printers exposed to toluene.
A cohort of 1020 rotogravure printers exposed to toluene and employed for a minimum period of three months in eight plants during 1925-85 was studied. Air levels of toluene were available since 1943 in one plant and since 1969 in most. Based on these me... |
def parse_message(data: typing.AnyStr) -> tuple:
split_by_delimiter = data.split(DELIMITER)
cmd = split_by_delimiter[0]
msg = split_by_delimiter[-1]
if len(split_by_delimiter) != 3:
return None, None
if len(split_by_delimiter[1]) != 4:
return None, None
try:
if int(split_... |
// run executes the migrations found in the repository.
func run(db *sql.DB, repo repository.Source, toVersion int) error {
err := db.Ping()
if err != nil {
return err
}
var currentVersion int
err = db.QueryRow("SELECT version FROM migration ORDER BY version DESC").Scan(¤tVersion)
if err != nil {
curren... |
import * as dom from "@typeup/dom"
import { Source } from "../Source"
import * as block from "./block"
function parse(source: Source): dom.block.Block[] | undefined {
let peeked = ""
let p: string | undefined
while (p = source.peekIs(peeked + "\t"))
peeked = p
let result: dom.block.Block[] | undefined
if (sourc... |
<reponame>mambaru/wrtstat
#pragma once
#include <wrtstat/aggregator/api/reduced_data.hpp>
#include <wrtstat/aggregator/api/aggregated_perc.hpp>
#include <memory>
#include <functional>
namespace wrtstat {
struct aggregated_data
: reduced_data
, aggregated_perc
{
typedef std::unique_ptr<aggregated_data> ptr;
... |
/**
* Restores the heap property by re-arranging the elements in the backing
* array as necessary following any heap modifications.
*/
public void heapify() {
for (int i = data.size() / 2; i >= 0; i--) {
heapify(i);
}
} |
Predictors of the feasibility of primary endoscopic management of biliary strictures after adult living donor liver transplantation
Biliary strictures are a major cause of morbidity and mortality for liver transplant recipients. The endoscopic management of biliary strictures is not well established after living donor... |
<gh_stars>0
// /src/action/arrow_circle_right/materialiconstwotone/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgArrowCircleRightTwotone = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
... |
<filename>web/router.go<gh_stars>0
package web
import (
"fmt"
"log"
"net/http"
"github.com/deeper-x/weblog/messages"
"github.com/deeper-x/weblog/settings"
)
// Run the web server
func Run() {
log.Println(messages.StartServer)
http.HandleFunc("/save", save)
http.HandleFunc("/load", load)
crt := fmt.Sprintf... |
If you've got a Samsung Gear VR, you can soon connect your Facebook account to "Like" and share 360-degree videos from inside it. There are already Facebook 360-degree clips in the Gear VR's video app, but next week, Oculus Video will start letting users sign into Facebook and get a personalized feed based on pages and... |
/**
* @file script-engine.cpp
* @author Sina Karvandi (sina@hyperdbg.org)
* @brief Interpret script engine affairs
* @details
* @version 0.1
* @date 2021-09-23
*
* @copyright This project is released under the GNU Public License v3.
*
*/
#include "pch.h"
//
// Global Variables
//
extern UINT64 g_ResultOfEva... |
/**
* Init props for storage policy.
*
* @param props properties for storage policy
*/
public void init(final Map<String, String> props) throws AnalysisException {
if (props == null) {
throw new AnalysisException("properties config is required");
}
checkRequiredPr... |
<gh_stars>1-10
{-#LANGUAGE QuasiQuotes#-}
module Language.Thesaurus.RogetLite.Vindication where
import Language.Thesaurus
vindication :: ThProg
vindication = [thesaurus|
# Sentiment
## Vindication
noun:
* vindication
justification, warant, exoneration, exculpation, acquittal , whitewashing
*extenuation
palliation, p... |
<filename>test/Chapter4/Chapter4Spec.hs
module Chapter4.Chapter4Spec (spec) where
import Test.Hspec
import Chapter4.Chapter4
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "4.8 練習問題" $ do
it "1" $
halve [1, 2, 3, 4, 5, 6] `shouldBe` ([1, 2, 3], [4, 5, 6])
it "2" $
... |
package libgin
// Common utilities for the GIN services
import (
"fmt"
"net/http"
"os"
)
// ReadConfDefault returns the value of a configuration env variable.
// If the variable is not set, the default is returned.
func ReadConfDefault(key, defval string) string {
value, ok := os.LookupEnv(key)
if !ok {
retur... |
/**
*
*
* @author Yin, Jack
* @since 1.0
*/
public class DateCellValuePopulator implements CellValuePopulator<Date> {
@Override
public void accept(Date input, Cell cell) {
cell.setCellValue(input);
}
} |
use std::io::Read;
fn main() {
let mut buf = String::new();
std::io::stdin().read_to_string(&mut buf).unwrap();
let mut iter = buf.split_whitespace();
let n: usize = iter.next().unwrap().parse().unwrap();
let a: i32 = iter.next().unwrap().parse().unwrap();
let b: i32 = iter.next().unwrap().pars... |
import smartbot.plugin
from smartbot.utils.web import requests_session, sprunge
from smartbot.exceptions import StopCommand, StopCommandWithHelp
from smartbot.formatting import Style
class Plugin(smartbot.plugin.Plugin):
"""A plugin for searching Freebase."""
names = ["define", "freebase"]
def __init__(s... |
/*
* Solution: the idea is put all the gate coordinates in a queue and then perform breadth-first search
* from each of the gates to calculate the distance to all empty rooms.
*
* Time complexity: O((m * n) + (m * n))
* Space complexity: O(n * m)
*/
class Solution
{
public:
bool onGrid(int m, int n, i... |
Childhood neglect: The role of the paediatrician.
Neglect is a pervasive form of child maltreatment. Health care practitioners often struggle with deciding when an action (or lack of action) by a caregiver constitutes inadequate care and is neglectful. The present article discusses the epidemiology, risk factors and o... |
<filename>joplin/pages/service_page/fixtures/test_cases/step_with_1_location.py
import os
from pages.service_page.fixtures.helpers.create_fixture import create_fixture
import pages.service_page.fixtures.helpers.components as components
# A Service Page that has a step with a location
def step_with_1_location():
s... |
def runner():
def done():
raise StopIteration()
dag.nodes[name]['run'] = done
return dag.nodes[name]['session'].run() |
/// Send a fire-and-forget direct-send message to remote peer `recipient`.
///
/// The returned Future simply resolves when the message has been enqueued on
/// the network actor's event queue. It therefore makes no reliable delivery
/// guarantees.
///
/// The Future will resolve to an `Err` if the event queue is unex... |
def file_decrypt(self, local_input_file, local_output_file):
original_md5, decrypted_md5 = crypto.decrypt_file(local_input_file, local_output_file, self.crypto_key)
self.logger.info(f'Derypted local file "{local_input_file}" with md5 "{original_md5}" '
f'to output file "{local_o... |
It is a bitter indictment of an army in trouble. It was written by the American soldier Bowe Bergdahl in his last email to his parents sent just before he walked off his base in eastern Afghanistan on 30 June 2009.
Within hours, he was picked by the Taliban who held him for five years until his exchange for five senio... |
<filename>test/modules/comment.spec.ts<gh_stars>10-100
import { suite, test, slow, timeout } from 'mocha-typescript';
import { mockFetch } from '../mock/fetch';
import store from '@/store';
import 'chai';
@suite('Comment Test')
class CommentTest {
@test 'comment getList'() {
let newsId = 123; // 随便写不影响
let... |
<gh_stars>10-100
// Copyright 2021 D2iQ, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package archive
import (
"fmt"
"os"
"path/filepath"
"github.com/mholt/archiver/v3"
)
func ArchiveDirectory(dir, outputFile string) error {
fi, err := os.ReadDir(dir)
if err != nil {
return fmt.Errorf("f... |
/**
* class to indicate the sub tokens which are
* the value inside the braces, called by the BlockParser
*/
public class Indicator {
/**
* Just for a representation that this
* is an indicator class for the tokens
*/
@Override
public String toString() {
return "<block>";
}
} |
<filename>src/main/java/com/sudoplay/mc/kormetals/module/metal/item/ItemDust.java
package com.sudoplay.mc.kormetals.module.metal.item;
import com.sudoplay.mc.kor.core.config.text.TextConfigData;
import com.sudoplay.mc.kor.core.generation.annotation.*;
import com.sudoplay.mc.kor.spi.Kor;
import com.sudoplay.mc.kor.spi.... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package interviews.intelligrape;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.... |
/// Generates a set of writes necessary to "fix" the bids, ie.:
/// - set the bids of the new validators to their desired stakes,
/// - remove the bids of the old validators that are no longer validators,
/// - remove all the bids that are larger than the smallest bid among the new validators
/// (necessary, because su... |
def rstrip(self, chars=None):
new_text = self.text.rstrip() if chars is None else self.text.rstrip(chars)
pattern = TextPattern(new_text)
return pattern |
/**
* JUnit test extension that provides configurable PostgreSQL instance.
* Additional layer of abstraction that allow to easily switch between
* embedded PostgreSQL implementations (otj-opentable, zonkyio, testcontainers).
*
* @author Nikolay Kondratyev
*/
public class PostgresDbExtension implements BeforeAllCa... |
<reponame>bxxasn/Pureon-Android-App<filename>app/src/main/java/com/pureon/pur_wallet/view/webview/OnSignMessageListener.java
package com.pureon.pur_wallet.view.webview;
import com.pureon.pur_wallet.view.webview.item.Message;
import com.pureon.pur_wallet.view.webview.item.Transaction;
public interface OnSignMessageLi... |
package backends
import (
"strings"
"time"
"github.com/jmoiron/sqlx"
)
type Backend interface {
// Setup does the initial configuration of the backend.
Setup(db *sqlx.DB, table string, tableSchema string)
// InsertRecord migration record into the DB.
InsertRecord(tx *sqlx.Tx, name string, hash string, comment... |
/**
* An implementation of {@link INeighborhood} interface which provides <i>Gaussian</i>
* neighborhood.
*/
public class DoubleArrayNormNeighborhood implements INeighborhood<DoubleArraySolution> {
private static final Random rand = new Random();
private double[] deltas;
/**
* Constructor.
*
... |
<filename>src/rx-drag/models/RxNode.ts
import { after, before, first, insertAfter, insertBefore, last, remove } from "rx-drag/utils/ArrayHelper";
import { IRect } from "rx-drag/models/IRect";
import { cloneObject } from "rx-drag/utils/cloneObject";
import { ID } from "rx-drag/models/baseTypes";
import { makeAutoObserva... |
<filename>model-generator/src/test/java/com/cyc/model/generator/WebGeneratorTest.java
package com.cyc.model.generator;
import com.cyc.model.generator.TemplateGenerator;
import com.cyc.model.generator.WebGenerator;
import com.cyc.model.templates.BaseTemplateTest;
import com.cyc.model.xml.XmlProjectLoader;
import com.cy... |
import * as core from '@actions/core';
import * as path from 'path';
import * as util from 'util';
import * as fs from 'fs';
import * as toolCache from '@actions/tool-cache';
import * as os from 'os';
const clusterctlToolName = 'clusterctl';
function getkubectlDownloadURL(version: string): string {
switch (os.typ... |
// Appends the |debugDatabase| to the end of |baseFile| and writes the footer
// so the runtime can find it.
static LogicalResult appendDebugDatabase(std::vector<int8_t> &baseFile,
Artifact &debugFileArtifact) {
auto debugFileOr = debugFileArtifact.read();
if (!debugFileOr.h... |
<reponame>kusa-mochi/account-book-simulator-2
/// <reference path="enums.ts"/>
interface JQuery {
datepicker(param): JQuery
}
interface HTMLElement {
value: string
}
interface FrequencyData {
mode: App.Enums.FrequencyMode,
count?: number,
month?: number,
date?: Date,
amount: number
}
interface TermData {
fr... |
<gh_stars>1-10
/**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unles... |
Lightroom for mobile Android 1.2 now available
Tonight we’re announcing the immediate availability of Lightroom version 1.2 for Android phones and tablets.
Edit images faster by copying image adjustments and pasting them onto another photo
Crop the perfect photo with a re-designed experience on your Android device t... |
/**
* This class adds a way for nodes inside a group to be piped to the group node itself.
*/
public class NodeGroupBridge extends JOIComponentNode {
public NodeGroupBridge(int width, int height, int componentId, JOIComponent component, EditorWindow editorWindow) {
super(150, 0, componentId, component, e... |
<reponame>usds/anet
package mil.dds.anet.beans.search;
import io.leangen.graphql.annotations.GraphQLInputField;
import io.leangen.graphql.annotations.GraphQLQuery;
import java.util.Objects;
import mil.dds.anet.beans.Organization.OrganizationStatus;
import mil.dds.anet.beans.Organization.OrganizationType;
public class... |
/**
* A striped lock that uses hashCode on the key to give back hopefully non-used
* lock.
*/
public class StripedLock {
/**
* We use a number here based on our typical concurrency profile. So 10
* indexing threads and 2048 locks seems OK.
*/
public static final int DEFAULT_NUMBER_OF_MUTEXES =... |
<filename>pkg/controller/servicebindingrequest/bindinginfo.go
package servicebindingrequest
import (
"fmt"
"strings"
)
// BindingInfo represents the pieces of a binding as parsed from an annotation.
type BindingInfo struct {
// FieldPath is the field in the Backing Service CR referring to a bindable property, eith... |
import {SchemaRepositoryState, SchemaRepositoryStateInit, reduce as schemaRepository} from "./schema-repository/schema-repository.state";
import {combineReducers} from "@ngrx/store";
export interface ConfigurationState {
schemaRepository:SchemaRepositoryState
}
export const ConfigurationStateInit:ConfigurationSta... |
<filename>parse.go
// Package mergeips provides a way to convert list of IP randes definitions,
// like individual IPs, CIDR subners and begin-end ranges to the minimal list of net IPNet
package mergeips
import (
"bytes"
"errors"
"fmt"
"net"
"strings"
"github.com/Djarvur/go-mergeips/ipnet"
"github.com/Djarvur... |
def create_CSV_files(f_analysis,
f_csv_stats,
f_csv_histdep_data,
f_csv_auto_MI_data,
analysis_num,
**kwargs):
stats = get_analysis_stats(f_analysis,
analysis_num,
... |
Microvascularization of the pineal gland in the freshwater turtle, Pseudemys scripta elegans (Reptilia): A scanning electron microscopic study of vascular corrosion casts
Abstract: Gross supply, microvascular patterns, and drainage routes of the pineal gland and its vascular relations with associated structures (dorsa... |
import sys
index = 0;
for line in sys.stdin:
if(index == 0):
index += 1;
continue;
all_nums_str = line.split(" ");
all_nums = [];
for word in all_nums_str:
all_nums.append(int(word));
all_nums.sort();
for num in all_nums[0:len(all_nums)-1]:
s... |
package main
import (
"fmt"
"github.com/koesie10/smartmeter/serialinput"
"os"
"text/tabwriter"
"time"
"github.com/koesie10/smartmeter/smartmeter"
"github.com/spf13/cobra"
)
var readCmd = &cobra.Command{
Use: "read",
Short: "read a single P1 packet to stdout",
RunE: func(cmd *cobra.Command, args []string)... |
Immunosuppression in human peripheral blood T lymphocytes by fluvastatin.
To investigate the immunosuppressive effect of fluvastatin on the PHA-activated T lymphocytes. T lymphocytes were isolated from the blood of healthy volunteers, cell proliferation and the activation markers expression were examined by flow cytom... |
By Hunter Wallace
In the aftermath of the Dylann Roof shooting in Charleston, I calmed everyone and made a prediction: within the next two months, I predicted that there would be another mass shooter in the US with a different set of motives, and that it would have nothing to do with the Confederate Battle Flag. A mon... |
def register_label(server_url, phone_label):
post_msg = {
"user": phone_label,
}
print("About to retrieve messages using %s" % post_msg)
response = requests.post(server_url+"/profile/create", json=post_msg)
print("response = %s" % response)
response.raise_for_status()
local_uuid = re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.