content stringlengths 10 4.9M |
|---|
Electromagnetic clutch for safety protection device of press machine
An electromagnetic clutch for a safety protection device of a press machine comprises an upper case body (5) and a lower case body (6). An upper iron core (1) is disposed in the upper case body (5). The upper end of the upper iron core (1) passes out... |
import { RequestPromise } from 'request-promise'
declare class list {
get(opts?: {}): RequestPromise
getOne(id: number): RequestPromise
getByIdBatch(ids: number[]): RequestPromise
create(data: {}): RequestPromise
delete(id: number): RequestPromise
getContacts(id: number): RequestPromise
getRecentCo... |
Some thoughts on the canard that “the Church has done little to educate its legal practitioners about their responsibilities as Catholic lawyers…”
Civil lawyer C. T. Rossi, in his essay Permission for Divorce and the Catholic Lawyer’s Dilemma, complains that “the Church has done little to educate its legal practitione... |
#![feature(box_patterns, try_trait, proc_macro_hygiene)]
use std::ops::{Add, Mul};
#[macro_use] extern crate entish;
use entish::prelude::*;
entish! {
#[derive(Map, MapOwned, From, IntoResult)]
#[entish(variants_as_structs)]
enum Arithmetic {
Plus {
left: Self,
right: Self... |
<filename>graphics/canvas2d/main.py
# --- processing api example ---
from canvas2d import canvas
from canvas2d.api import processing
|
<reponame>JonathanM2ndoza/Google-Cloud-AppEngine-PostgreSQL
package com.jmendoza.wallet.infrastructure.databases.postgresql.account;
import com.jmendoza.wallet.common.constants.global.DBSchema;
import com.jmendoza.wallet.common.datetime.UtilDateTime;
import com.jmendoza.wallet.common.exception.GlobalException;
import ... |
package api_learner.soot;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import... |
def _codeml(exe, msa, tree, model, gamma, alpha, freq, outfile):
cwd = os.getcwd()
wd, tf = tempfile.mkdtemp(dir=os.path.dirname(msa)), 'codeml.tree.newick'
tf = tree.file(os.path.join(wd, tf), brlen=False)
if model.type == 'custom':
mf = model.name
info('Use custom model file {} for anc... |
package transform
import (
"strings"
mf "github.com/jcrossley3/manifestival"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
)
// InjectDefaultSA adds default service account into config-defaults configMap
func InjectDefaultSA(defaultSA string) m... |
When a voter here asked whether Sen. Charles E. Grassley supports a probe of President Trump’s tax returns, the Republican gave a qualified “yes.” In Virginia, asked about Russian interference in the presidential election, Rep. David Brat said an investigator should “follow the rule of law wherever it leads.” And in Ar... |
// NewBinaryDecoder returns a new binary STL decoder.
func NewBinaryDecoder(r io.Reader) (*BinaryDecoder, error) {
dec := BinaryDecoder{r: bufio.NewReader(r)}
var buf [80]byte
_, err := io.ReadFull(dec.r, buf[:])
if err != nil {
return nil, err
}
dec.Header = string(buf[:])
_, err = io.ReadFull(dec.r, buf[:4])... |
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import base64 from "base-64";
import * as compose from "docker-compose";
import getPort from "get-port";
import sleep from "sleep-promise";
import fetch, { Response } from "node-fetch";
import generateTestDataService from "../scripts/gene... |
// Copyright © 2020 <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/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
import sys
import pandas as pd
import json
import PyPDF2
import os
import math
from openpyxl import Workbook
wb = Workbook()
ws = wb.active
arg = sys.argv[1]
#pname = os.path.join(os.getcwd(),arg+'.pdf')
#pdfobj = PyPDF2.PdfFileReader(pname)
# arg = sys.argv[1]
#fname = "D:\\Python\\untitled1\\"
# fname = os.getcwd()... |
import copy
n = int(input())
X = list(map(int,input().split()))
XX = copy.deepcopy(X)
XX.sort()
high = XX[n//2]
low = XX[n//2-1]
for i in range(n):
if high == low:
print(high)
continue
if X[i] < high:
print(high)
else:
print(low) |
def reduce_on_intensities(reflection_table):
selection = ~reflection_table.get_flags(
reflection_table.flags.bad_for_scaling, all=False
)
reflection_table = reflection_table.select(selection)
logger.info("Selected %d scaled reflections", reflection_table.size())
asser... |
Management of the patient with an acute coronary syndrome using oral anticoagulation
A significant number of patients with atrial fibrillation, treated with oral anticoagulants, present with an acute coronary syndrome. Many of these patients have an indication for coronary angiography. The introduction of non-vitamin ... |
/**
* Change the state of discovery data in subnet
*/
public void changeState() {
if (subnet() != null) {
subnet().changeState();
}
} |
<gh_stars>0
use super::tag::TagIndex;
#[derive(Clone, Debug, Default)]
pub struct ListOfUnitDefinitions {
pub unit_definitions: Vec<TagIndex>, // UnitDefinitions
pub parent: Option<TagIndex>,
}
#[derive(Clone, Debug, Default)]
pub struct UnitDefinition {
pub id: Option<String>,
pub list_of_units: Opti... |
/**
* Filter list and get total amount
*
* <p>Filtered list of given category.</p>
* <p>Calculates amount summary of given category's transaction entries.</p>
*
* @param category transactions of this category
* @return total amount
*/
public double listTotalAmount(Category catego... |
#include <bits/stdc++.h>
using namespace std;
int main(){
int q,a,b,c;
scanf("%d",&q);
while(q--){
int vec[3];
scanf("%d %d %d",&vec[0],&vec[1],&vec[2]);
sort(vec,vec+3);
if(vec[0]==vec[1] && vec[1]!=vec[2]){
vec[0]++;vec[1]++;
if(vec[2]!=... |
/**
*
*
* @author dylan.chen Jan 15, 2015
*
*/
public class ConfigDemoController extends JSONController {
@Autowired
private ConfigService configService;
@Override
public Object resolveAndVerifyArgument(HttpServletRequest request) throws InvalidRequestArgumentException {
return null;
}
@Override
pub... |
<gh_stars>10-100
/*
Copyright [2017-2019] [IBM Corporation]
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 applica... |
extern crate shapefile;
mod testfiles;
use shapefile::writer::ShapeWriter;
use shapefile::{Point, Polygon, PolygonRing, Polyline};
use std::io::Cursor;
fn read_a_file(path: &str) -> std::io::Result<Vec<u8>> {
use std::io::Read;
let mut file = std::fs::File::open(path)?;
let mut data: Vec<u8> = vec![];
... |
<reponame>BurntCaramel/GLAArrayEditing
//
// GLAArrayEditor.h
// Blik
//
// Created by <NAME> on 4/08/2014.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
@import Foundation;
#import "GLAArrayEditing.h"
@protocol GLAArrayEditorObserving, GLAArrayEditorIndexing, GLAArrayEditorConstraining, GLAArrayStoring;
... |
<filename>bin/frameworks/string/roundColorValue.ts
import { ErrorRoundColorValue } from '../errors/errors';
/**
* @description Round color values so they are whole integers
*/
export function roundColorValue(quantity = 0.0, scale = 255): number {
if (scale < 0 || scale > 255) throw new Error(ErrorRoundColorValue);... |
// Collect gets meters for memory.
func (collector *MemoryCollector) Collect() ([]*meter.Meter, error) {
lines, err := collector.getProcMemInfoLines()
if err != nil {
memoryLogger.Error("Failed to read /proc/meminfo file.")
return nil, err
}
values, err := collector.parseProcMeminfo(lines)
if err != nil {
me... |
// URI returns the path as a URI. A directory path will have "/" appended.
func (p Path) URI() (URI, error) {
path := p.RawPath
if path == "" {
return zero, nil
}
if p.IsDir {
if !isDir(path) {
path = path + "/"
}
}
sc := fmt.Sprintf("file://%s", path)
uri, err := New(sc)
if ee, ok := err.(Error); ok {... |
<reponame>sanglin307/vsr_dev<filename>vsr/private/vsr_memory.cpp<gh_stars>0
#include "vsr_common.h"
#include "vsr_memory.h"
#include "vsr_image.h"
#include "vsr_buffer.h"
#include "vsr_device.h"
VkAllocationCallbacks *MemoryAlloc<VkDeviceMemory_T, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT>::_pAllocator = nullptr;
VkDeviceMem... |
import BN from "bignumber.js";
// No.2804 外交員等に支払う報酬・料金
// https://www.nta.go.jp/taxanswer/gensen/2804.htm
const GAIKOUIN_KYUYO_KOUJO_KINGAKU = 120000;
export default function(originZeikomi: number, originKyuyo: number = 0): Kingaku {
const zeikomi = new BN(originZeikomi);
let koujo = new BN(GAIKOUIN_KYUYO_KOUJO... |
def write_rdfx(self):
with open(self.name+".rdf", "w", encoding="utf-8") as f:
rapper = subprocess.Popen([
"rapper",
"-iturtle",
"-ordfxml-abbrev",
self.name+".ttl"],
stdout=f,
stderr=subprocess.PIPE)
... |
The Chechen Republic is run by a military dictator named Ramzan Kadyrov, who also happens to run a mixed martial arts program. As he’s begun pushing the promotion outside of Chechnya, one of the things that has come under scrutiny is the treatment of gay men in his republic. Many reports of targeted torture and murder ... |
Intracranial paramedian hourglass-shaped dermoid associated with hereditary steatocystoma multiplex.
This is the first report to describe the coexistence of two rare diseases, intracranial paramedian hourglass-shaped dermoid and steatocystoma multiplex. A 46-year-old female with a history of steatocystoma multiplex, b... |
// key extracts the unique identifier of the next element in the path from the
// given Node for use in the node tree.
func key(n parser.Node) string {
switch t := n.(type) {
case *parser.Object:
return t.Reference
case *parser.List:
return t.KeyField
default:
panic(fmt.Sprintf("unknown node type %T", n))
}
... |
import {
Button,
Checkbox,
FormControl,
FormErrorMessage,
FormLabel,
Input,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
Stack,
useDisclosure,
useToast
} from '@chakra-ui/react';
import React, { useCallback, useContext, useEffect, useRef } from 'react';
import useAppS... |
AN OBJECT ORIENTED FRAMEWORK FOR THE DEVELOPMENT OF DISTRIBUTED CONTROL APPLICATIONS
Software industry increasingly faces today the challenge of creating complex custom-made Industrial Process Measurement and Control System (IPMCS) applications within time and budget, while high competition forces prices down. A lot o... |
def min_distance_subsets(self, subsets, jobs, matrix):
for destinations in subsets:
time_distance, order_of_destinations = self.minimum_distance(
destinations, jobs, matrix)
self.time_distance.append(time_distance)
self.order_of_destination.append(order_of_des... |
/**
* Created by wanglikun on 2019/4/15
*/
public class MyWebViewClient extends WebViewClient {
private List<InvokeListener> mListeners = new ArrayList<>();
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.startsWith("doraemon://invokeNative")) {
h... |
// find the best match on the market
// NOTE: sometimes I refer to the older order as seller & the newer order as buyer, in this trade
// INPUT: property, desprop, desprice = of the new order being inserted; the new object being processed
// RETURN:
MatchReturnType x_Trade(CMPMetaDEx* const pnew)
{
const uint32_t p... |
<reponame>anaissachian/PyCom-LoPy4-MQ8-LoRa
from machine import Pin
from machine import I2C
import time
import pycom
__version__ = '0.0.2'
""" PIC MCU wakeup reason types """
WAKE_REASON_ACCELEROMETER = 1
WAKE_REASON_PUSH_BUTTON = 2
WAKE_REASON_TIMER = 4
WAKE_REASON_INT_PIN = 8
class Pycoproc:
""" ... |
/**
Generate a `TokenStream` the constructs a runtime representation of this template.
The `Visitor` has a chance to modify fragments of the template during code generation.
*/
pub fn to_rt_tokens_with_visitor(
&self,
base: TokenStream,
mut visitor: impl Visitor,
) -> TokenStrea... |
package com.bq.corbel.rem.internal;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType... |
/**
* All available options.
*/
public static final class Option extends XDGUtils.Option {
private Option(){}
/**
* List all properties xdg-settings knows about.
*/
public static final String LIST = "--list";
} |
// GetAverageFarePickUpByLocation: Uses the geo s2 library to transform data to the S2idFare result.
// Uses s2 library and region coverer to get s2id at level 16 for each location
// Aggregates the location and returns the average fare
func (s Service) GetAverageFarePickUpByLocation(date string, year int, level int) (... |
def make_n_queues(self, n):
for i in range(n):
gq = GridQueue.GridQueue(self.next_top, self.next_bottom, self.grid_queue_index)
gq.max_age = self.MAX_AGE
gq.sex = i
gq.PREFERRED_AGE_DIFFERENCE= self.PREFERRED_AGE_DIFFERENCE
gq.AGE_PROBABILITY_MULTIPL... |
Breaking News Emails Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.
Feb. 9, 2015, 10:46 AM GMT / Updated Feb. 9, 2015, 10:53 AM GMT
MUWAFFAQ AL-SALTI AIR BASE, Jordan — ISIS leader Abu Bakr al-Baghdadi is running scared as a result of an intensified bombing... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:38:53 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored
* classdump-dyld is licensed under GPLv3, Copyright © 2013-... |
<gh_stars>1000+
/**
* RegExp to test if a resource points to the local host.
* Identifies both localhost and 127.0.0.1 URLs.
*/
export const rxLocalhost = /^https?:\/\/(localhost|127\.0\.0\.1)[:/]/;
|
A tea party-affiliated group is urging Senate Minority Leader Mitch McConnell (R-Ky.) to bow out of his reelection bid next year against Democratic rival Kentucky Secretary of State Alison Lundergan Grimes, citing concerns with the longtime senator's electability.
Matt Hoskins, the Senate Conservatives Fund's executiv... |
// RegisterQueue makes a background queue available by the provided name.
// If queue is already registerd or if queue nil, it panics.
func (e *Event) RegisterQueue(name string, queue Queue) error {
if queue == nil {
return fmt.Errorf("kocha: event: Register queue is nil")
}
if _, exist := e.queues[name]; exist {
... |
Chief strategist Steve Bannon's days in the White House are over.
Bannon, 63, had been a key adviser to U.S. President Donald Trump's general election campaign and a forceful but contentious presence in a divided White House.
"White House Chief of Staff John Kelly and Steve Bannon have mutually agreed today would be ... |
Photo: Peter Tuffy/The University of Edinburgh Light Fantastic: A CMOS digital-to-analog converter developed at the University of Edinburgh helps LEDs act as communications devices.
As LEDs become a more common source for room lighting, they’re opening a new pathway for linking mobile devices to the Internet, with the... |
Remarkable reversal of 13C-NMR assignment in d1, d2 compared to d8, d9 acetylacetonate complexes: analysis and explanation based on solid-state MAS NMR and computations.
13C solid-state MAS NMR spectra of a series of paramagnetic metal acetylacetonate complexes; (d1, S = ½), (d2, S = 1), (d8, S = 1), and (d9, ... |
<reponame>351ELEC/lzdoom<filename>src/gl/stereo3d/gl_anaglyph.h<gh_stars>1-10
//
//---------------------------------------------------------------------------
//
// Copyright(C) 2015 <NAME>
// All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the G... |
<reponame>ashok/dmz
#include <dmzArchiveModule.h>
#include "dmzArchivePluginQuickSave.h"
#include <dmzInputEventKey.h>
#include <dmzInputEventMasks.h>
#include <dmzRuntimeConfig.h>
#include <dmzRuntimeConfigToTypesBase.h>
#include <dmzRuntimeDefinitions.h>
#include <dmzRuntimePluginFactoryLinkSymbol.h>
#include <dmzRun... |
"""
placeholder for all streamlit style hacks
"""
import streamlit as st
def init_style():
return st.write(
"""
<style>
/* Side Bar */
.css-1outpf7 {
background-color:rgb(254 244 219);
width:30rem;
padding:10px 10px 10px 10px;
}
/* Main Panel*/
.css-18e3th9... |
<filename>gen_net_data.py
import sys
import os
import numpy as np
import numpy.random as npr
import cv2
from collections import defaultdict
import config
from dataset_loader import iterate_wider, iterate_lfw
from utils import IoU
def usage():
print('%s [pnet|rnet|onet] [train|val|test]' % sys.argv[0])
def wider... |
next Image 1 of 2
prev Image 2 of 2
Controversial climate scientist Michael Mann, who helped raise global warming’s profile by representing temperatures as a rapidly escalating “hockey stick,” has filed a defamation lawsuit against skeptics at the National Review and the Competitive Enterprise Institute.
Mann said s... |
package strategies;
import automail.MailItem;
import java.util.ArrayList;
import java.util.List;
/**
* Team Number: WS12-3
* Group member: <NAME>(904904), <NAME>(908525), <NAME>(877396)
*
* @create 2019 -05-01 19:38
* description: interface of the strategy
*/
public interface ISelectMailItemToDeliverPlan {
... |
Virtual Sorting: Improving Organization of Moving and Processing of Empty Car Flows
The growth in railway cargo carriage, followed by the search for its more efficient implementation results in the need to improve the regulatory framework for interaction of all participants in the transportation process on railways an... |
package com.scd.graph.matrix;
import java.util.ArrayDeque;
import java.util.Queue;
/**
* @author James
*/
public class Traverse {
public static void bfsTraverse(BaseGraph baseGraph) {
// 记录访问过的节点
boolean[] visited = new boolean[baseGraph.getVexNum()];
for (int i = 0; i < baseGraph.getVe... |
def site_list():
return _resource_list('SITE') |
def compare_works(features1, features2, threshold=60,
weights=np.array([1, 0.4, 0.4, 0.4],
dtype=np.float32)):
metrics = run_compare(features1, features2)
total_similarity = np.sum(metrics * weights) / weights.sum()
if (total_similarity * 100) < t... |
/**
* Solve a REXI time step for the given initial conditions
*/
void SWE_Sphere_TS_PFASST_lg_cn::run_timestep_nonpert(
SphereData_Spectral &io_phi,
SphereData_Spectral &io_vort,
SphereData_Spectral &io_div,
double i_fixed_dt,
double i_simulation_timestamp
)
{
if (i_fixed_dt <= 0)
SWEETError("Only c... |
In a letter to a friend in 1961, Samuel Beckett spoke, with a characteristic blend of sadness and nostalgia, of seeing the great prewar England cricket all-rounder Frank Woolley in the bar at Lord's cricket ground. Woolley was escorting the legendary 84-year-old Wilfred Rhodes, perhaps the greatest England cricketer ev... |
The First Amendment has been good, really good to the online classified ads portal Backpage.com. In 2015, the US Constitution helped Backpage dodge a lawsuit from victims of sex trafficking. What's more, a federal judge invoked the First Amendment and crucified an Illinois sheriff—who labeled Backpage a "sex traffickin... |
Google won the dismissal of a lawsuit by Android users who said the company violated its own privacy policy by disclosing their names, email addresses and account locations to third parties, without permission, to boost advertising revenue.
In a Wednesday night decision, U.S. Magistrate Judge Paul Grewal in San Jose, ... |
<reponame>bergey/gudni
{-# LANGUAGE TemplateHaskell #-}
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Gudni.OpenCL.InterfaceSDL
-- Copyright : (c) <NAME> 2019
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : <NAME>... |
class PDFObject:
"""A class that represents a PDF object.
This object has a :class:`pdfme.parser.PDFRef` ``id`` attribute representing
the id of this object inside the PDF document, and acts as a dict, so the
user can update any property of this PDF object like you would do with a
dict.
Args:
... |
<gh_stars>1-10
package com.nathan.arch.storage.dvb.impl;
import com.nathan.arch.storage.dvb.ICallbackPVRMethod;
import timber.log.Timber;
/**
* Created by Nathan on 2019/7/10
*/
public class PVRMethodFromDVB implements ICallbackPVRMethod {
private ICallbackPVRMethod.Callback callback;
private static fin... |
<gh_stars>10-100
/***************************************************************************
* Copyright (C) by <NAME> *
* *
* You can redistribute and/or modify this program under the *
... |
/*
* Function : libaroma_canvas_setcolor
* Return Value: void
* Descriptions: set canvas color
*/
void libaroma_canvas_setcolor(
LIBAROMA_CANVASP c,
word color,
byte alpha) {
if (!c) {
ALOGW("libaroma_canvas_setcolor canvas is not valid");
return;
}
if (c->l == c->w) {
libaroma_color_set(c->data, co... |
Corrector results for space-time homogenization of nonlinear diffusion
The present paper concerns a space-time homogenization problem for nonlinear diffusion equations with periodically oscillating (in space and time) coefficients. Main results consist of corrector results (i.e., strong convergences of solutions with ... |
/**
* Wrapper for a suggested resource record, which is in ADN item-level format
* and represented as a {@link org.dom4j.Document}.
*
*@author Jonathan Ostwald
*/
public class ResourceRecord extends SuggestionRecord {
private static boolean debug = true;
// xpaths to access ResourceRecord elements
/* priv... |
<gh_stars>10-100
/**
* Copyright 2011-2015 Quickstep Technologies LLC.
* Copyright 2015 Pivotal Software, Inc.
* Copyright 2016, Quickstep Research Group, Computer Sciences Department,
* University of Wisconsin—Madison.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... |
def main(project_dir):
logger = logging.getLogger(__name__)
logger.info('Beginning of Script')
raw_data_path = os.path.join(project_dir, 'data', 'raw')
devices_data_path = os.path.join(raw_data_path, 'devices.pkl')
api_devices(devices_data_path) |
Alama Ieremia says he is excited about nurturing the talent and youth at his disposal in Auckland rugby.
Some might say he's gone out of the frying pan and into the fire, but former All Black Alama Ieremia has been tasked with turning round the fortunes of the problem Auckland provincial side.
Ieremia's appointment a... |
def multiple_optimal_solution_internal(self, lp, variables, obj, originalsolution, op):
E = self.set_weight(len(originalsolution))
for rxn in originalsolution:
index = self.variables_strings.index(self.allrxnsrev_dict_rev[rxn])
obj[index] = (1+E)
solution_orig, solution_i... |
<filename>src/java/com/theOldMen/contactListView/ManageDialog.java
package com.theOldMen.contactListView;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import com.theOldMen.Activity.R;
/**
* Created by cheng on 2015/4/21.
*/
public class ManageDialog extends A... |
<reponame>mizkichan/anondbot<filename>anondbot/__init__.py
'''Twitter bot daemon which notifies recent articles of Hatena Anonymous Diary.
Usage:
anondbot [-hvndq] [-c FILE] [-t DIR]
Options:
-h --help Show this help.
-v --version Show version.
-c --config FILE Specify configuration file [defaul... |
def merge_axis(objs):
def get_parent(o):
return getattr(o, 'parent')
independent_objs = set()
maybe_coupled = set()
complex_objs = set()
for o in objs:
parent = o.parent
if hasattr(o, 'RealPosition'):
complex_objs.add(o)
elif (parent is not None and hasatt... |
/**
* Takes the values from the model and applies them to the view.
*/
private void modelToView()
{
kmlTitleToView();
recordTextToView();
isMetadataFieldToView();
metadataFieldToView();
iconDotToView();
iconFileFieldToView();
} |
<reponame>florianbader/AIT.VotingExtension<filename>Source/Extension.Voting/src/services/baseDataService.ts
import { Voting } from "../entities/voting";
import { LogExtension } from "../shared/logExtension";
import { getClient as getWitClient } from "TFS/WorkItemTracking/RestClient";
import { getClient as getCoreClien... |
from functools import wraps
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core.handlers.wsgi import WSGIRequest
from fandjango.utils import get_post_authorization_redirect_url
from fandjango.views import authorize_application
from fandjango.settings import FACEBOOK_APPL... |
<reponame>EnoX1/dirigible-spreadsheet
# Copyright (c) 2010 Resolver Systems Ltd.
# All Rights Reserved
#
from functionaltest import FunctionalTest
class Test_2597_CapRecalcTime(FunctionalTest):
def test_recalcs_get_stopped(self):
# * Harold doesn't want to waste money on recalculations where he created... |
/**
* DES test case.
*
* @author moshew
*/
public class DESTest extends SFTestCase {
private static final long NEWTON_DEFAULT_KEY = DESNewton.NEWTON_DEFAULT_KEY;
/**
* Creates a new test case.
*/
public DESTest() {
super();
}
@Test
public void testNewtonCipher() throws E... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
/////////////////////////////////////////////////////////... |
package yookassa
const (
EventWaitingForCapture = "payment.waiting_for_capture"
EventPaymentSucceeded = "payment.succeeded"
EventPaymentCancelled = "payment.canceled"
EventRefundSucceeded = "refund.succeeded"
)
type Event struct {
Type string `json:"type"`
Name string `json:"event"`
... |
<reponame>dineshpinto/subgraphs
import { Created } from "../../../generated/DSProxyFactory/DSProxyFactory";
import { updateUsageMetrics } from "../../common/metrics";
import { _Proxy } from "../../../generated/schema";
import { LogNote } from "../../../generated/CdpManager/CdpManager";
import { getProxy } from "../../c... |
GLOBAL ENVIRONMENTAL PRIORITIES OF SOCIETY DEVELOPMENT
The main object of the article is to identify the global environmental priorities of the development of society on the partnership basis, also taking into account certain international directions of leveling of environmental threats as well as global warming. The ... |
<gh_stars>0
# coding: utf-8
# 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 under the Apache License, Version 2... |
import styled from 'styled-components';
export const FormCard = styled.div`
max-width: 750px;
width: 90vw;
margin: 10px auto;
position: relative;
background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
padding: 20px;
border-radius: 5px;
color: #222;
.buttonform {
width: 100%;
:hover ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from logging import info
from buffy.media.base import MediaBase, mkdir_p
from buffy.util.global_def import DIR_DELIM
class Disk(MediaBase):
def __init__(self, dst_root, setting, dry):
super(Disk, self).__init__("disk", dst_root, setting, dry)
... |
import { Component, Input, OnInit } from '@angular/core';
import { DateService } from '../../services/date.service';
@Component({
selector: 'date-changer',
templateUrl: 'dateChanger.component.html',
styleUrls: ['dateChanger.component.css']
})
export class DateChangerComponent implements OnInit{
@Input() type... |
<gh_stars>0
// Copyright 2020 <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/LICENSE-2.0
//
// Unless required by applicable law or ... |
require('dotenv').config();
import { ApolloServer } from 'apollo-server';
import AM from '@graphex/core';
import typeDefs from './model';
import SequelizeExecutor from '@graphex/sequelize-executor';
import SQ from './db';
const schema = new AM().makeExecutableSchema({
typeDefs,
});
const Executor = SequelizeExecut... |
/**
* \file merge_matrices.h
* \brief merge two matrices into one
* \author <NAME>
* \date 13.01.2009
* */
#ifndef BS_MERGE_MATRICES_H_
#define BS_MERGE_MATRICES_H_
#include "matrix_sum_spec.h"
#define CFL_NUM 1
namespace blue_sky {
template <typename matrix_t>
struct merge_matrices_impl
{
typedef ty... |
/**
* Created by bob.sun on 15/8/27.
*/
public class MonthFragment extends Fragment {
private MonthData monthData;
private int cellView = -1;
private int markView = -1;
private boolean hasTitle = true;
public void setData(MonthData monthData, int cellView, int markView) {
this.monthData =... |
/**
* Created with IntelliJ IDEA.
* User: ?
* Date: 10/11/12
* Time: 8:11 PM
* To change this template use File | Settings | File Templates.
*/
public class OlePaymentStatus extends PersistableBusinessObjectBase {
private String paymentStatusId;
private String paymentStatusCode;
private String paymen... |
def plan(root_dir, modules, force, region):
module_functions = {}
aws_functions = {}
lambda_client = boto3.client("lambda", region_name=region)
for module_name in modules:
module_functions.update(
{(module_name, fn.__name__): fn for fn in get_all_lambda_functions_in_module(module_nam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.