content stringlengths 10 4.9M |
|---|
MANAGEMENT DEVELOPMENT PROGRAM
Program Description Emory Medicine’s Management Development Program seeks to attract, position, develop, and advance talent for management and leadership positions. Within three to five years, participants will progress through the three phases, resulting in the opportunity to fill a per... |
// SignGenericJWT takes a set of JWT keys and values to add to a JWT
func (s *JSONWebKeySigner) SignGenericJWT(kvs map[string]interface{}) ([]byte, error) {
t := jwt.New()
for k, v := range kvs {
if err := t.Set(k, v); err != nil {
err := errors.Wrapf(err, "could not set %s to value: %v", k, v)
logrus.WithErr... |
def return_creds(self, cred_type='test'):
if cred_type == 'test':
return self.test_secret, self.test_auth, self.phone_number
else:
return self.secret, self.auth, self.phone_number |
<filename>src/structures/EventTokens.ts
/* eslint-disable no-restricted-syntax */
import User from './User';
import Client from '../client/Client';
import Base from '../client/Base';
import { ArenaDivisionData } from '../../resources/structs';
/**
* Represents a user's event tokens
*/
class EventTokens extends Base ... |
<reponame>noe/pycedict<filename>tests.py
# -*- coding: utf-8 -*-
import unittest
from io import StringIO
from cedict.cedict_parser import iter_cedict
from cedict.pinyin import depinyinize, pinyinize, syllabize
try:
unicode('hi')
except NameError:
def unicode(s, encoding):
return s
SAMPLE_CEDICT = un... |
<filename>WinApi++/env_vars.h<gh_stars>0
#pragma once
#include <type_traits>
#include <windows.h>
#include <string>
#include "macros.hpp"
namespace winpp {
namespace env {
namespace detail {
CharFunction(getEnviromentVariable, GetEnvironmentVariableA, GetEnvironmentVariableW);
CharFunction(setEnviromentVariable, SetE... |
Mobile communications technologies for young adult learning and skills development (m-learning)
The m-Learning project will develop prototype products to provide information and modules of learning via inexpensive portable technologies which are already owned by, or readily accessible for, the majority of EU young adu... |
<filename>demo38/src/main/java/com/wasu/demo38/service/CalculateService.java<gh_stars>1-10
package com.wasu.demo38.service;
public interface CalculateService {
Integer sum(Integer... value);
}
|
She just couldn't see a kid go hungry.
Della Curry, a cafeteria worker in an elementary school in a Denver suburb, has been fired for giving free food to students who didn't qualify for the federal free lunch program.
The mother of two admitted to KCNC-TV, which first reported the story, that she violated school poli... |
import * as _ from 'lodash'
import httpClient from '../../src/http'
import config from '../config'
import { symbol } from '../constants'
const client = httpClient(config)
describe('orderbook', () => {
test('orderbook', async () => {
const res = await client.orderBook({
symbol,
})
expect(_.isArray(... |
<gh_stars>0
package unsplash
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
)
var (
apiPrefix = "https://api.unsplash.com/"
randomPhotoPath = "photos/random"
)
type idGetter interface {
GetToken() (string, error)
}
// API implementation
type API struct {
idGetter idGette... |
def ixia_export_buffer_to_file(self, frames_filename):
command = 'captureBuffer export %s' % frames_filename
self.send_expect(command, '%', 30) |
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int calc()
{
ll a,b,c,n;
ll a1,a2,a3;
ll i,j;ll m=0;
cin>>n>>a>>b>>c;
a1=min(a,min(b,c));
a3=max(a,max(b,c));
a2=(a+b+c)-(a1+a3);
for(i=0;i<=n;i++)
{
for(j=0;j<=n;j++)
{
if(n-i*a1-j*a2>=0)
{
... |
/**
* Allows to update register with new events
*/
public class UpdatableEventsRegister extends EventsRegister {
private transient final EventTypeRegister<String> onSendTextRegister = new EventTypeRegister<>();
private transient final EventTypeRegister<ReceiveTextContainer> onReceiveTextRegister = new EventTypeR... |
def energy_programs():
energy_progs = _programs_with_attribute('ENERGY_READERS')
return energy_progs |
'Tis shortly after midnight in Washington, DC, and at least one person is stirring over at the Federal Communications Commission—the FCC's Jen Howard. She's just sent out the tentative agenda for the agency's December 21 Open Commission meeting, which includes this notable item:
Open Internet Order: An Order adopting ... |
/**
* Make sure to have the following:
*
* 1. Hardware config
* 2. Setup direction of motors
* 3. Action method to do something (hookUpDown, drive, etc.,)
* 4. Helper methods (stop, brake, leftTurn, rightTurn, etc.,)
*
* Purpose: Drive the 4 wheels
*/
public class LinearSlideActions {
public DcMotor slide... |
<filename>src/stackoverflow/57970016/loadmythings_1.ts
import * as api from './api';
export class loadmythings_1 {
loadmythings = async () => {
const list = await api.getmythings('arg1', 'arg2');
const finalvalues: any[] = [];
list.map((item) => finalvalues.push({ value: item.name }));
return finalva... |
package httpclient
import (
"bytes"
"encoding/json"
"io"
"io/ioutil"
"net/http"
neturl "net/url"
"strings"
)
// compile time check
var _ BaseURLAwareClient = Client{}
// BaseURLAwareClient is a http client that can build requests not from a full URL, but from a path relative to a configured base url
// this i... |
// Use this to set the type of encoding that you want - e.g. JSON, protobuf, etc
void InputStreamInterface::SetInputDecoding(const jude_decode_transport_t* transport)
{
jude_istream_create(
&m_istream,
transport,
ReadCallback,
this,
(char*)m_istream.buffer.m_data,
... |
/**
* Market data manager class to allow save or update and load operations on MarketDataSets.
*/
public class MarketDataManager {
/** The logger. */
/* package */ static final Logger LOGGER = LoggerFactory.getLogger(MarketDataManager.class);
/** The default observation time */
private static final String DEF... |
Electrostatically Doped DSL Schottky Barrier MOSFET on SOI for Low Power Applications
In this paper, we propose and simulate a novel Schottky barrier MOSFET (SB-MOSFET) with improved performance in comparison to the conventional SB-MOSFET. The proposed device employs charge plasma/electrostatic doping-based dopant seg... |
// requested can only transition to responded state
func TestRequestedState(t *testing.T) {
requested := &requested{}
require.Equal(t, "requested", requested.Name())
require.False(t, requested.CanTransitionTo(&null{}))
require.False(t, requested.CanTransitionTo(&invited{}))
require.False(t, requested.CanTransition... |
/**
* Handles Binary XML parsing callback and generate XML. You can use your
* own XML generator and register with Android_BX2 (Android Binary XML) parser.
*
* @author prasanta
*
*/
public class GenXML implements BXCallback {
StringBuffer xml = new StringBuffer();
// Current line number
int cl = 1... |
/**
* Transform template html and css into executable code.
* Intended to be used in a build step.
*/
import * as ts from 'typescript';
import * as path from 'path';
import {AngularCompilerOptions} from '@angular/tsc-wrapped';
import * as compiler from '@angular/compiler';
import {ViewEncapsulation} from '@angular/... |
def first(self, connection: ldap3.Connection=None, convert=True) -> Any:
entry = next(self._query(connection), None)
if convert is True and self.model is not None:
return self.model.from_entry(entry)
return entry |
// ReadEvent returns one event. This call blocks until an event is received.
func (o *Observer) ReadEvent() (Event, error) {
select {
case <-o.close:
return nil, nil
case event := <-o.events:
return event, nil
}
} |
Should Medical Assistance in Dying Be Extended to Incompetent Patients With Dementia? Research Protocol of a Survey Among Four Groups of Stakeholders From Quebec, Canada
Background: Alzheimer’s disease and related disorders affect a growing number of people worldwide. Quality of life is generally good in the early sta... |
<gh_stars>0
package link.thingscloud.freeswitch.esl.helper;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.RemovalListener;
import com.google.common.cache.RemovalNotification;
import io.netty.channel.Channel;
import java.util.List;
import java.util.co... |
Possible Unintended Consequence of an Evidence-Based Clinical Policy Change
he Annals of Family Medicine encourages read- ers to develop a learning community of those seeking to improve health care and health through enhanced primary care. You can participate by conducting a RADICAL journal club and sharing the result... |
import { saveTokens, getTokenFromStorage, getRefreshTokenFromStorage, saveAccessToken, cleanTokens } from './storage';
test('storage tokens', () => {
expect(getTokenFromStorage()).toBeNull();
expect(getRefreshTokenFromStorage()).toBeNull();
let accessToken = '_access_token_';
let refreshToken = '_refr... |
I have a Glock 19. The gun itself was purchased last year, im the only owner. It is an factory FDE frame. The factory barrel has roughly 150 rounds through it. It has a ghost trigger bar installed. It also has brand new Trijicon HD night sights professionally installed. Has all the factory stuff that came with it. Gun ... |
/**
* Deserializes the aliased discovery config nested under the {@code tag} in the provided JSON.
*
* @param json the JSON object containing the serialized config
* @param tag the tag under which the config is nested
* @return the deserialized config or {@code null} if the serialized config
... |
<reponame>krichard410/moloch-dao-substrate<filename>target/release/build/libp2p-kad-abf4fae90ee4ac8d/out/dht.pb.rs
/// Record represents a dht record that contains a value
/// for a key value pair
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Record {
/// The key that references this record
#[prost(b... |
Hugh McNeal, chief executive of the British wind industry’s trade body, has acknowledged that with subsidies at an end, there won’t be any more wind turbine projects in England. Why? The wind doesn’t blow hard enough:
We are almost certainly not talking about the possibility of new plants in England. The project econo... |
# coding: utf-8
# Your code here!
num = int(input())
dish = [int(item)-1 for item in input().split()]
satis = [int(item) for item in input().split()]
additional = [int(item) for item in input().split()]
sum = 0
prev = num + 10
for item in dish:
sum += satis[item]
if item == prev +1:
sum += additional... |
//
// UtilsMacro.h
// DirectoryStructure
//
// Created by aaron.wu on 16/7/22.
// Copyright © 2016年 xuewei.zhang. All rights reserved.
// 放的是一些方便使用的宏定义
#ifndef UtilsMacro_h
#define UtilsMacro_h
#define WeakObj(o) autoreleasepool{} __weak typeof(o) o##Weak = o
#define StrongObj(o) autoreleasepool{} __strong typeo... |
Multiple job-holding and artistic careers: some empirical evidence
This article focuses attention on a somewhat overlooked component of the career portfolios of practising professional artists, namely their non-arts work. Although it is widely known that artists hold multiple jobs for a variety of reasons, there is li... |
<gh_stars>1-10
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the Licens... |
<reponame>NatsubiSogan/comp_library<gh_stars>1-10
# SCC
def strongly_connected_component(G: list) -> list:
n = len(G)
G_rev = [[] for i in range(n)]
for i in range(n):
for v in G[i]:
G_rev[v].append(i)
vs = []
visited = [False] * n
def dfs(v):
visited[v] = True
for u in G[v]:
if not visited[u]:
df... |
/**
* RequeryEntityInformationSupportTest
*
* @author debop
* @since 18. 6. 12
*/
@RunWith(MockitoJUnitRunner.class)
public class RequeryEntityInformationSupportTest {
@Mock RequeryOperations operations;
@Mock EntityModel entityModel;
@Test
public void usesSimpleClassNameIfNoEntityNameGiven() thr... |
/**
* Test of previous method, of class RandomAccessShapefile.
*/
@Test
public void testPrevious() {
System.out.println("previous");
ShapefileRecord rec = instance.nextRecord();
int curRecNo = rec.getRecordNumber();
assertEquals(FIRST_REC_NO, curRecNo);
boolean resu... |
from insights.parsers.teamdctl_config_dump import TeamdctlConfigDump
from insights.parsers import teamdctl_config_dump
from insights.tests import context_wrap
import doctest
TEAMDCTL_CONFIG_DUMP_INFO = """
{
"device": "team0",
"hwaddr": "DE:5D:21:A8:98:4A",
"link_watch": [
{
"delay_up":... |
package storetest
import (
"bytes"
"context"
"encoding/json"
"fmt"
"sort"
"testing"
stdtime "time"
"github.com/google/uuid"
"github.com/modernice/goes/aggregate"
"github.com/modernice/goes/aggregate/snapshot"
"github.com/modernice/goes/aggregate/snapshot/query"
"github.com/modernice/goes/event/query/time"... |
Apparently the author of The Hundred and One Dalmatians wrote a sequel some 12 years later, which has been largely forgotten by the public, but I recently learned of its existence when I was picking up Dodie Smith's first Dalmatian book at the library, and thought it might be fun to have a double feature. That seems to... |
import "../src/globalUtils"
import assert = require("assert");
import {List} from "../src/Interface";
import {ArrayList} from "../src/ArrayList";
// equals
assert.strictEqual("abc".equals("abc"), true);
assert.strictEqual("abc".equals("bc"), false);
assert.strictEqual("abc".equals(null), false);
// Number
assert.stri... |
// /Main application frame that hosts the main window.
public class Application extends JFrame implements GameFinishListener
{
/**
*
*/
private static final long serialVersionUID = 754390673491159252L;
JTextField width_input = new JTextField("16", 3);
JTextField height_input = new JTextField("30", 3);
... |
<filename>experimental/portappb/src/main/java/com/com619/group6/startup/views/EditPortService.java
package com.com619.group6.startup.views;
import com.com619.group6.jpadao.DaoFactoryJpa;
import com.com619.group6.model.PortService;
import com.com619.group6.model.ServiceType;
import com.com619.group6.model.dao.PortServi... |
Double-field orientation of unity power factor synchronous motor drive
There is proposed a vector control structure for wound-excited synchronous motor drives fed by voltage-source inverter with feed-forward voltage pulse-width modulation, working at unity power factor, which combines the advantages of two types of fi... |
<reponame>timyinshi/openyurt<filename>pkg/yurtctl/cmd/convert/convert.go
/*
Copyright 2020 The OpenYurt 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/L... |
“No promo homo” states are those that prohibit educators from discussing homosexuality in a positive way or, in some cases, at all. States that prohibit enumeration are those that don’t allow local school districts from enacting policies aimed specifically at preventing bullying over sexual orientation or gender identi... |
// Fix if info and loop info for the given sc.
void
CFG::Fix_info(SC_NODE * sc)
{
SC_NODE * sc_tmp;
BB_NODE * bb_tmp;
BB_LIST_ITER bb_list_iter;
SC_TYPE type = sc->Type();
if (type == SC_IF) {
BB_NODE * bb_head = sc->Head();
BB_IFINFO * ifinfo = bb_head->Ifinfo();
sc_tmp = sc->Find_kid_of_type(SC_... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.memory.ui;
import com.intellij.debugger.DebuggerManager;
import com.intellij.debugger.engine.*;
import com.intellij.debugger.engine.events.Debugger... |
def main_integrate(expr, facets, hp_params, max_degree=None):
dims = (x, y)
dim_length = len(dims)
result = {}
integral_value = S.Zero
if max_degree:
grad_terms = [[0, 0, 0, 0]] + gradient_terms(max_degree)
for facet_count, hp in enumerate(hp_params):
a, b = hp[0], hp[1]
... |
<filename>src/main/java/com/dasun/employeedemo/service/FamilyMemberService.java<gh_stars>0
package com.dasun.employeedemo.service;
import com.dasun.employeedemo.entity.FamilyMember;
import java.util.List;
public interface FamilyMemberService {
FamilyMember create(FamilyMember familyMember);
FamilyMember up... |
You know how it goes: you're at a party having a couple of brews, then you utter a few careless whispers, things get a little too funky, and -- boom -- next thing you know, you're slumped across the leather seat of a Range Rover, being roughed up by policemen. (Not in the good way.)
We've all been there. The only diff... |
// WithRistretto will set the cache client for both Read & Write clients
func WithRistretto(config *ristretto.Config) ClientOps {
return func(c *clientOptions) {
if config != nil {
c.cacheStore.options = append(c.cacheStore.options, cachestore.WithRistretto(config))
}
}
} |
/**
* Created by Alon Eirew on 7/12/2017.
*/
public class RestHeartClientResponse {
private static final String ETAG_LABEL = "ETag";
private static final String LOCATION_LABEL = "Location";
private final StatusLine statusLine;
private final JsonObject responseObject;
private final Header[] heade... |
1 SHARES Facebook Twitter Google Whatsapp Pinterest Print Mail Flipboard
Glenn Beck went completely off the deep end today by claiming that if John F. Kennedy were alive today he would be a radical tea partier.
Audio via Media Matters:
Beck said, “So, who was John F. Kennedy? He’s been coopted by the left, but would... |
//-----------------------------------------------------------------------------
// Name: D3DTextr_SetTexturePath()
// Desc: Enumeration callback routine to find a best-matching texture format.
//-----------------------------------------------------------------------------
VOID D3DTextr_SetTexturePath( TCHAR* strTexture... |
/**
* Demonstrates usage the <i>andThen</i>
*
* @author Yuriy Stul
*/
public class AndThenEx01 {
private static final Logger logger = LoggerFactory.getLogger(AndThenEx01.class);
private void test1() {
logger.info("==>test1");
subscribe()
.subscribe(
i... |
.
OBJECTIVE
To assess the association of TLR4 gene polymorphisms with large artery atherosclerosis (LAA) stroke and liability to atherosclerosis in an ethnic Han population from northern China.
METHODS
The study has involved 286 LAA stroke patients and 300 healthy controls. The LAA group has been divided 4 subsets a... |
import java.util.*;
public class DreamoonAndWiFi {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s1 = scanner.next();
String s2 = scanner.next();
scanner.close();
int plus = 0, minus = 0, question = 0;
for (int... |
#include "stdafx.h"
#include "MeshComponent.h"
#include "Script.h"
#include "Resource.h"
CMeshComponent::CMeshComponent(const std::string& file_path)
{
}
void CMeshComponent::InitLuaAPI(lua_State *L)
{
luabridge::getGlobalNamespace(L)
.deriveClass<CMeshComponent,CComponent>("MeshComponent")
.addConstructor<voi... |
def tvLogs(
cmppicks: list([np.ndarray]),
tvpicks: list([[np.ndarray], [np.ndarray]]),
H: dict
)->np.ndarray:
cmppicks=np.array(cmppicks)
time = np.arange(0, H['ns'])*H['dt']*1e-06
tvLog = np.zeros((cmppicks.shape[0], time.shape[0], 2))
tvLog[:,:,0] = time
for i in range(len(tvpicks[... |
/**
* Handles the left and right buttons.
*
* @param screen The current screen.
* @param right True if the right button is pressed, else false.
*/
private boolean handleLeftRight(@NotNull Screen screen, boolean right)
{
Element focused = screen.getFocused();
if (focused != ... |
/**
* Remove all the emitters from the system
*/
public void removeAllEmitters() {
for (int i=0;i<emitters.size();i++) {
removeEmitter((ParticleEmitter) emitters.get(i));
i--;
}
} |
/**
* Created by ibrahimabdulkadir on 06/07/2017.
*/
public class RecipeDetailFragment extends BaseFragment implements
RecipeDetailMvpView, RecipeDetailAdapter.Callback {
@Inject
RecipeDetailMvpPresenter<RecipeDetailMvpView> mPresenter;
@Inject
RecipeDetailAdapter mRecipeDetailAdapter;
... |
Fighting sedentary lifestyle and obesity in the 21st century: what the fitness business services can learn from the tobacco industry
This essay sought to analyze the strategies adopted by the tobacco industry to promote itself and reach its target audience and identified that, in essence, communication-related to smok... |
So W Bush's approval rating has dipped to 42%. To give you an idea of how low that is, scabies gets a 36% approval rating and banging your elbow bone on a marble table edge gets a 32%. Heck, even the Devil gets a 4%. I think Cheney just scored a 9% (note: poll results reflect a margin of error of plus or minus fifty pe... |
<reponame>xzrunner/terr<filename>source/device/BasicNoise.cpp<gh_stars>0
#include "terraingraph/device/BasicNoise.h"
#include <heightfield/HeightField.h>
#include <heightfield/Utility.h>
namespace terraingraph
{
namespace device
{
void BasicNoise::Execute(const std::shared_ptr<dag::Context>& ctx)
{
m_hf = std::m... |
<filename>c/photogrammetry/EOQuality.cpp<gh_stars>1-10
/**************************************************************************
EOQuality.cpp
**************************************************************************/
/*Copyright 2002-2021 e-foto team (UERJ)
This file is part of e-foto.
e-foto is free soft... |
// DropBoundingCapability attempts to drop capability cp from t's capability
// bounding set.
func (t *Task) DropBoundingCapability(cp linux.Capability) error {
t.mu.Lock()
defer t.mu.Unlock()
if !t.creds.HasCapability(linux.CAP_SETPCAP) {
return syserror.EPERM
}
t.creds = t.creds.Fork()
t.creds.BoundingCaps &... |
__all__ = ['AsyncDocument']
from .async_document import AsyncDocument
|
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package model
import (
"strings"
"testing"
)
func TestAuthJson(t *testing.T) {
a1 := AuthData{}
a1.ClientId = NewId()
a1.UserId = NewId()
a1.Code = NewId()
json := a1.ToJson()
ra1 := AuthDataFromJson(stri... |
Minerals response to transportation stress at different flocking densities in hot humid and winter seasons and the assessment of ameliorative effect of pretreatment with vitamin C, electrolyte and jaggery in goats
ABSTRACT The present study evaluated the seasonal effects of transportation of goats (Alpine × Beetle) at... |
/**
* Track in-progress downloads here and, if on an Android version >= O, make
* this a foreground service.
* @param id The {@link ContentId} of the download that has been started and should be tracked.
*/
private void startTrackingInProgressDownload(ContentId id) {
Log.w(TAG, "startTrackin... |
<reponame>LenardLee/k8s-container-image-promoter
/*
Copyright 2019 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
https://www.apache.org/licenses/LICENSE-2.0
Unless re... |
<filename>src/main/java/com/technews/model/Vote.java
package com.technews.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;//figure out what these imports are about & when they're invoked
@Entity
@JsonIgnoreProperties... |
// New returns a new Payment struct with default values for version 2
func New() *Payment {
return &Payment{
ServiceTag: "BCD",
Version: 2,
CharacterSet: 2,
IdentificationCode: "SCT",
RemittanceIsStructured: false,
}
} |
<filename>cots-match/src/test/java/nz/org/vincenzo/cots/match/service/ArbitrationServiceTest.java
package nz.org.vincenzo.cots.match.service;
import nz.org.vincenzo.cots.domain.Ship;
import nz.org.vincenzo.cots.match.service.impl.ArbitrationServiceImpl;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.e... |
package models
import (
"gorm.io/gorm"
"time"
)
type Comment struct {
gorm.Model
ArticleID int16
Article Article `gorm:"foreignKey:ArticleID;references:Id"`
Content string `gorm:"varchar(200)"`
Posted time.Time
Author string `gorm:"varchar(10)"`
}
func (Comment) TableName() string {
return "comme... |
// interesting bit here is proof that DB is ok
@Override
public void checkpoint(boolean sync) throws IOException {
Connection connection = null;
try {
connection = getDataSource().getConnection();
if (!connection.isValid(10)) {
throw new IOException("isValid(1... |
Demonstrators stand in front of a rainbow flag of the Supreme Court in Washington, Tuesday, April 28, 2015. The Supreme Court is set to hear historic arguments in cases that could make same-sex marriage the law of the land. The justices are meeting Tuesday to offer the first public indication of where they stand in the... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:42:38 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/Message.framework/Message
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*... |
<gh_stars>1-10
package com.ksy.designer.entity.model;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.ObjectUtils;
public class ModelGroupNode extends ModelNode {
private List<ModelNode> nodeList;
public ModelGroupNode(String id, String name) {
super(id, name);
... |
use rocket_sync_db_pools::{database, diesel};
#[database("rps")]
pub struct RpsDatabaseConnection(diesel::PgConnection);
|
New global minima of 6-vertex dicarboranes: classical but unexpected.
Dicarboranes generally adopt global minimum predicted by the well-known Wade-Mingos rules, although one classical non-closo structure in the benzvalene form has long been pursued and later synthesized. Here we predicted two new non-closo global mini... |
<gh_stars>10-100
from tasks.socrata import LoadSocrataCSV
from luigi import Task, Parameter
class Deeds(Task):
def requires(self):
yield LoadSocrataCSV(domain='data.cityofnewyork.us', dataset='636b-3b5g') # real parties
yield LoadSocrataCSV(domain='data.cityofnewyork.us', dataset='8h5j-fqxa') # ... |
<filename>src/test/test_mtmodule.py
import pytest
import os
from pathlib import Path
from lib.common.exceptions import ImproperLoggedPhaseError
from lib.common.mtmodule import MTModule
from lib.common.storage import LocalStorage
from test.utils import scaffold_empty
class EmptyMTModule(MTModule):
pass
@pytest.fixt... |
/**
* Retrieves a ArtesaniaEntity with the fields of this ArtesaniaDTO
*/
public ArtesaniaEntity toEntity( )
{
ArtesaniaEntity entity = super.toEntity( );
entity.setArtesano( artesano.toEntity( ) );
return entity;
} |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
#ifndef ONLINE_JUDGE
// for getting input from input.txt
freopen("input1.txt", "r", stdin);
// for writing output to output.txt
freopen("output1.txt", "w", stdout);
#endif
int n;
cin >> n;
int t(0);
for(int a = 1; a <=n; a++){
for(i... |
// JSTypedArray returns a javascript TypedArray
// for the corresponding Go type.
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
func JSTypedArray(sliceOrArray interface{}) (js.Value, error) {
TypedArray, _ := typedArrayNameSize(sliceOrArray)
v := reflect.ValueOf(sl... |
def error_correction():
if not path.exists("Databases"):
mkdir("Databases")
def check_db(db_name):
conn = sqlite3.connect(f"Databases/{db_name}")
cursor = conn.cursor()
try:
cursor.execute("SELECT * FROM user_music WHERE name=?", (encode_text("test_name"),)).fetchone(... |
import { JupyterFrontEndPlugin } from '@jupyterlab/application';
import { CommandEntryPoint } from '../../command_manager';
export declare const FileEditorContextMenuEntryPoint: CommandEntryPoint;
export declare const FILE_EDITOR_ADAPTER: JupyterFrontEndPlugin<void>;
|
/**
* Directory in Giraffa is a row, which associates file and sub-directory names
* contained in the directory with their row keys.
*/
public class DirectoryTable implements Serializable {
private static final long serialVersionUID = 987654321098765432L;
private Map<String,RowKey> childrenKeys;
public Direc... |
def make_new_store(
product_config_path
):
engine = create_engine('sqlite://')
m.Base.metadata.create_all(engine)
store = sessionmaker(bind=engine)()
with open(product_config_path) as f:
product_dict = yaml.safe_load(f)
populate(
product_dict,
store
)
return s... |
EllaOne: More Effective Morning-After Contraceptive Pill Now Available in UK Without Prescription
staff@latinoshealth.com By Staff Writer May 03, 2015 06:15 PM EDT
An emergency after-morning pill that works up to five days after unprotected sexual intercourse is now for sale in UK pharmacies.
The pill called ellaOne... |
import os
import sys
import logging
from sys import path
from root_logging import create_logger, exception
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, dir_path)
LOGS = False
# Create Logger for debug mode in local
if LOGS:
logs_filename = os.path.join(dir_path, 'exc_logs.log')
log... |
package docker
import (
"bytes"
"context"
"errors"
"io/ioutil"
"net/http"
"testing"
dtypes "github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/stretchr/testify/assert"
"github.com/guumaster/hostctl/pkg/types"
)
func TestNew(t *testing.T) {
opts := &Options{
Domain: "test"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.