content stringlengths 10 4.9M |
|---|
def str_erase_pointers(x):
return re.sub(" at 0x[a-f0-9]+", "", str(x)) |
The wait is almost over. For most, there's still a couple of excruciating hours to go until XCOM 2 is launched (if you're in Australia, it's available now!), but according to our review it'll be worth the wait. In the lead up to the game's global release, a spokesperson for 2K has confirmed the Steam Controller is nati... |
def make_mean_df(df, win, col):
assert len(win) == 4, 'Must give 4 numbers for window.'
base = df[(df.time > win[0]) & (df.time < win[1])].groupby(['cell', col, 'trial']).mean().reset_index()
resp = df[(df.time > win[2]) & (df.time < win[3])].groupby(['cell', col, 'trial']).mean().reset_index()
resp['df... |
<filename>proxy-settings/src/main/java/com/lechucksoftware/proxy/proxysettings/ui/activities/TransparentAppGuideActivity.java
package com.lechucksoftware.proxy.proxysettings.ui.activities;
import android.app.Activity;
import android.os.Bundle;
import com.lechucksoftware.proxy.proxysettings.R;
/**
* Created by Marco... |
<filename>src/main/java/com/jeta/locker/type/key/SSHKeyAccountsController.java
package com.jeta.locker.type.key;
import static com.jeta.locker.common.LockerConstants.DESCRIPTION;
import static com.jeta.locker.common.LockerConstants.PRIVATE_KEY;
import static com.jeta.locker.common.LockerConstants.PUBLIC_KEY;
import st... |
// Keys returns all the keys currently in map
func (s *JSONStore) Keys() []string {
s.RLock()
defer s.RUnlock()
keys := make([]string, len(s.Data))
i := 0
for k := range s.Data {
keys[i] = k
i++
}
return keys
} |
// HW IP writer task function -- 8-bit UART interface
Void UART_stress_hwip_reader(UArg a0, UArg a1)
{
uint8_t pairId;
uint8_t sideId;
uint8_t wrSideId;
uint8_t uartIdx;
UART_Handle hHwIpUartRd;
SemaphoreP_Handle hRdCallbackSem; ... |
def put(self, job_id, tool_id):
if not self.track_jobs_in_database:
self.queue.put((job_id, tool_id))
self.sleeper.wake()
else:
job = self.sa_session.query(model.Job).get(job_id)
if job.handler is None and self.app.application_stack.has_pool(self.app.appli... |
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Controller Service Dmaap Drsub Service Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.openecomp.dcae.controller.service.dmaap.drsub.service.impl.ControllerServiceDm... |
import tensorflow as tf
class FocalLoss(tf.keras.losses.Loss):
def __init__(self, gamma=2., alpha=4., name='focal_loss', reduction='auto'):
"""Focal loss for multi-classification
FL(p_t)=-alpha(1-p_t)^{gamma}ln(p_t)
Notice: y_pred is probability after softmax
gradient is d(Fl)/d(p_t... |
/**
* Method that runs in the background to download, process, and
* store an image at @a urlToDownload. It returns the ImageEntity
* representing the image.
*/
protected ImageEntity processInput(URL urlToDownload,
Filter filter) {
final ImageEntity downl... |
<filename>src/test/ui/ui-testing-optout.rs
// compile-flags: -Z ui-testing=no
// Line number < 10
type A = B; //~ ERROR
// http://rust-lang.org/COPYRIGHT.
//
// Line number >=10, <100
type C = D; //~ ERROR
// Line num >=100
type E = F... |
Anyone hoping for a rookie who offers interest on and off the field need look no further than Jeremy Ebobisse, a pre-signed underclassman who went to the Portland Timbers as the No. 4 pick in Friday's SuperDraft. Fresh off a US U-20 training camp in Florida last week, the Duke product arrived late at this year’s MLS Co... |
/**
* Copyright (C) 2010-2012 <NAME> <<EMAIL>>
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package com.carrotgarden.nexus.aws.s3.publish.config;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.... |
/**
* Add the action links for the available diff modes.
*/
private void addModeLinks() {
for (final Mode mode : Mode.values()) {
if (diffView.getDocument().getLength() > 0)
diffView.normal(" ");
diffView.link(mode.toString(), new ActionListener() {
@Override
public void actionPerformed(ActionEv... |
def ovld_dispatch(dispatch, **kwargs):
ov = _find_overload(dispatch, **kwargs)
return ov.dispatch(dispatch) |
<filename>mygfx/src/mygfx/CommandBuffer.h
#pragma once
#include "Base.h"
namespace mygfx
{
class CommandBuffer
{
BX_CLASS(CommandBuffer
, NO_COPY
, NO_ASSIGNMENT
);
public:
CommandBuffer()
: m_pos(0)
, m_size(MYGFX_CONFIG_MAX_COMMAND_BUFFER_SIZE)
{
finish();
}
enum Enum
{
Renderer... |
When Axl Rose broke his foot during warm-ups for this year's Guns N' Roses tour, it was a case of history repeating itself — painfully.
As longtime fans may recall, Rose suffered a similar injury during the last of the three warm-up shows GNR booked at the Ritz in New York prior to embarking on their Use Your Illusion... |
<reponame>guodastanson/dynamic-datasource-samples<filename>nest-sample/src/main/java/com/baomidou/samples/nest/controller/TestController.java
package com.baomidou.samples.nest.controller;
import com.baomidou.samples.nest.service.SchoolService;
import com.baomidou.samples.nest.service.StudentService;
import com.baomido... |
Multinational corporations’ oil exploration, poverty and environmental degradation in the Niger Delta region of Nigeria
In recent years, there has been much discussion and attention on the amount of poverty and environmental damage in Nigeria’s Niger Delta area as a result of oil drilling by international oil firms. T... |
/**
* Parses the response from Amazon S3 GET Bucket Location
* <p/>
* Region is the document we expect to parse.
*
* @see <a href= "http://docs.amazonwebservices.com/AmazonS3/latest/RESTBucketLocationGET.html" />
* @author Adrian Cole
*/
public class LocationConstraintHandler extends ParseSax.HandlerWithResult<... |
The official Shadow of the Colossus guidebook includes an explanation of the game’s ending, concept art, an interview with the developers, and unused Colossi. The synopsis below sheds light on the untold aspects of SotC’s story, but be sure to check out the other features as well! Click the images to enlarge.
A heavy ... |
On advertising durability and product durability
This paper uses a simple two-period model to examine the behaviour of a monopolist who produces a durable good and engages in advertising that is also somewhat durable. It is found that changes in product durability and advertising durability have opposite effects on pr... |
It is remarkable, is it not, how much “wisdom” about UK politics has been received and then jettisoned in four months. Before the election it was taken for granted that we would have a hung parliament. The rise of Ukip and the SNP apparently made a majority government arithmetically impossible, even though our first-pa... |
//
// khmer_hashbits_dealloc -- clean up a hashbits object.
//
static void khmer_hashbits_dealloc(PyObject* obj)
{
khmer_KHashbitsObject * self = (khmer_KHashbitsObject *) obj;
delete self->hashbits;
self->hashbits = NULL;
self->ob_type->tp_free((PyObject*)obj);
} |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package qldbiface provides an interface to enable mocking the Amazon QLDB service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API o... |
<filename>service_runner/service_runner/asset/routing.py
from django.conf.urls import url
from . import consumers
websocket_urlpatterns = [
url(r'^ws/webssh/(?P<host_id>\d+)/$', consumers.WebsshConsumer),
# url(r'^ws/webssh/$', consumers.WebsshConsumer),
]
|
// SplitImageSpec splits the given image specification into the various components
// of an ImageSpec
func SplitImageSpec(image string) (registry, repo, tag, label, ctx string) {
registry, repotag := SplitRegistryRepo(image)
repo, taglabelctx := SplitRepoTag(repotag)
taglabel, ctx := SplitLabelContext(taglabelctx)
... |
<reponame>EndermanXqw/password-generator
def Error(message):
print("[Error] %(msg)s" % { "msg": message }) |
Occurrence of C1 inactivator and other proteinase inhibitors in euglobulin fractions and their influence on fibrinolytic activity.
Considerable amounts of C1 inactivator and inter-alpha-trypsin inhibitor pecipitate during euglobulin fractionation of human plasma. The amount precipitated depends on the ionic strength a... |
export * from "./WorkLinkClient";
export * from "./WorkLink";
export * from "./commands/AssociateDomainCommand";
export * from "./commands/AssociateWebsiteAuthorizationProviderCommand";
export * from "./commands/AssociateWebsiteCertificateAuthorityCommand";
export * from "./commands/CreateFleetCommand";
export * from "... |
Story highlights Jabari Dean, 21, is accused of threatening to kill students and staff at the University of Chicago
He purportedly posted online that he planned to kill 16 white male students or staff
Students, staff told to stay away; dorm residents asked to stay inside
(CNN) A 21-year-old man was arrested Monday, ... |
<filename>Drivers/platform/keyboard/iwdg/iwdg.c
#include "iwdg.h"
#define MODULE_NAME "iwdg"
IWDG_HandleTypeDef hiwdg;
int iwdg_open(FIL_HAND *fd)
{
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_256;
hiwdg.Init.Window = 4095;
hiwdg.Init.Reload = 4095;
if (HAL_IWDG_Init(&hiwdg) != H... |
use super::super::source::*;
use super::super::target::*;
use super::super::super::traits::*;
impl BrushPoint {
///
/// Generates a serialized version of this brush point on the specified data target
///
pub fn serialize<Tgt: AnimationDataTarget>(&self, data: &mut Tgt) {
data.write_f32(self.pos... |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* Project Info: http://plantuml.com
*
* If you like this project or if you find it useful, you can support us at:
* ... |
/**
* Set a retained publication for a subscription engine.
* @param se pointer to a subscription engine structure
* @param topicName the topic string on which to set the retained publication
* @param qos the quality of service
* @param payload the contents of the message
* @param payloadlen the length of payload... |
The Structure and Function of the Limbal Stem Cell and the Disease States Associated With Limbal Stem Cell Deficiency
Limbal stem cell deficiency (LSCD) is known to cause ocular surface mortality and can lead to persistent photophobia, repeated ocular surface breakdown, as well as poor healing and ultimate conjunctiva... |
import { createActionCreator } from '@utils/redux/action-creator';
import { ChangeLocale } from '@core/types/locale';
export const changeLocaleAction = createActionCreator<ChangeLocale>()('core/CHANGE_LOCALE');
|
/**
* Remembers Externalized State for a DataSource.
*
* <p>
* This is the GOF Momento pattern: a SimpleFeatureSource is able to externalize its internal State
* required for Transaction support and have this class manage it. It may retrieve this State
* with getState( key ).
* </p>
... |
import {
AppInterface,
ServicesInterface,
BaseService,
NavigationAdapterInterface,
NavigationAdapterContext,
NavigationGroupInterface,
NavigationItemInterface,
NavigationPlaceInterface,
} from "../../..";
export class NavigationService extends BaseService {
private app: AppInterface;
private servic... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package logging
import "fmt"
// logger is a temporary logger that will be replaced with a suitable implementation
type logger struct {
module string
}
func (l *logger) Debugf(msg string, args ...interface{}) {
if... |
<filename>graphstar/tests/graph.py
import pytest
from graphstar import graph
@pytest.fixture(scope="function")
def g():
return graph.Graph()
@pytest.fixture
def n():
return graph.Node()
@pytest.fixture(scope="function")
def two_nodes(g):
n1 = g.make_node(1, 1)
n2 = g.make_node(2, 2)
return n1, n2
def test_... |
/**
* @return a null return value means the cache was created by someone else before we got the lock
*/
private <K, V> Cache<K, V> wireAndStartCache(String cacheName, String configurationName) {
boolean sameCache = cacheName.equals(configurationName);
Configuration c = configurationManager.getConfig... |
.
The risk groups for AIDS have been defined and include homosexuals, bisexuals, polytransfused patients, drug addicts, sexual partners of any of the above groups and sons of infected fathers. We have previously proposed that paid donors should be considered also as high risk individuals. We report here a family in wh... |
<gh_stars>1-10
#pragma once
#include "../basic/basic.h"
enum class token {
__builtin_input,
__builtin_output,
toktypedef, // typedef
tokvoid, // void
tokconst, // const
tokvolatile,// volatile
tokchar, // char
tokint, // int
tokunsigned, // unsigned
toksigned, // signed
tokshort, // short
toklong, // long
... |
<reponame>pulumi/pulumi-azure-nextgen
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package latest
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// The workflow trigger callback URL.
// Latest API V... |
#include <string.h>
#include "dfa_minimization.h"
#include "regex.h"
#include "nfa.h"
#include "dfa.h"
static vector_t*
init_groups(lexical_spec_t* spec) {
vector_t* groups = new_vector();
bitset_t* non_final_group = new_bitset();
//First select non final state
for (size_t i = 1; i < SIZE_VECTOR(spe... |
/**
* Record core implementing transactional updates.
* The root of all definitions.
*/
import { CollectionConstructor } from '../collection';
import { IOEndpoint } from '../io-tools';
import { define, definitions, isProduction, Logger, logger, LogLevel, mixinRules, TheType, tools } from '../object-plus';
import {... |
import os
import json
import django
import pandas as pd
import re
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "levechad.settings")
django.setup()
# your imports, e.g. Django models
from client.models import Volunteer, Area, VolunteerSchedule, City, Language
Volunteer.objects.all().delete()
VolunteerSchedule.obje... |
Energy Accounting Support in TinyOS
ABSTRACT Energy is the most limiting resource in sensor networks. This is particularly true for dynamic sensor networks in which the sensor-net application is not statically planned. We describe three components of our energy management system for nodes in such dynamic sensor networ... |
<reponame>joehni/NanoContainer-nanowar
/*****************************************************************************
* Copyright (C) NanoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published... |
#C消費税
h,j = map(int,input().split())
s=int(h*(25/2))
while True:
hh=int(s*(2/25))
jj=int(s/10)
if(hh==h and jj==j):
print(s)
exit()
if(hh>h and jj>j):
print(-1)
exit()
s+=1
|
/**
* Created by Aman Gupta on 29/12/17. @Webkul Software Private limited
*/
public class AppSharedPref {
/* Shared Preferences keys */
@SuppressWarnings("WeakerAccess")
public static final String USER_PREF = "USER_PREF";
public static final String APP_PREF = "APP_PREF";
@SuppressWarnings("Weaker... |
def recursive_dict_keys(d):
keys = set(d.keys())
for (key, value) in d.items():
if isinstance(value, dict):
subkeys = {f'{key}\\{subkey}' for subkey in recursive_dict_keys(value)}
keys.update(subkeys)
return keys |
<reponame>flou/ecs
package aws
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go-v2/service/ecs"
)
func shortTaskDefinitionName(taskDefinition string) string {
splitTaskDefinition := strings.Split(taskDefinition, "/")
return strings.Split(taskDefinition, "/")[len(splitTaskDefinition)-1]
}
func clusterNameFro... |
Channel Allocation for Third-generation Mobile Radio Systems
A range of Dynamic Channel Allocation (DCA) techniques are studied comparatively in the context of the GSM-like system, with the aim of increasing the system's carried traffic performance. The locally optimised least interference algorithms (LOLIA) emerges, ... |
<reponame>kaistshadow/blockchain-sim<filename>testlibs/test_modules.py
#
# 2021-03-15
# created by <NAME>
#
import os
from subprocess import check_output
import argparse
import sys
import os
import lxml.etree as ET
import subprocess
import math
sys.path.append("")
from testlibs import utils, test_result
def exec_shell... |
/**
* @file test_mess.cpp
* @author <NAME>.
* @brief
* @version 0.1
* @date 2020-04-06
*
* @copyright Copyright (c) 2020
*
*/
#include <mess/mess.h>
#include <doctest/doctest.h>
/**
* @brief Test constant and static storage variable.
*/
const int kTheAnswer = 42;
struct FromConstant:
mess::IsTheConst... |
<reponame>filmnoirprod/oslab
/*
* Demo on how to use /dev/crypto device for ciphering.
*
* Placed under public domain.
*
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <crypto/cryptodev.h>
#include "threshold.h"
int main()
{
int ret;
ret = get_sh... |
// Copy constructor to send through the wire
partition_data(partition_data const& other)
: data_(other.data_)
, size_(other.size_)
{
} |
/**
* Import default stations from assets
*
* @throws Exception
*/
public void importTransportsDefaults() throws Exception {
TransportManager tm = new TransportManager(this);
if (tm.empty()) {
List<String[]> rows = Utils.readCsv(getAssets().open("transports.csv"), "ISO-8859-1");
for (String[] row... |
def predict(self, predictors=None, return_variables='V', **kwargs):
self._check_parameter_completeness()
if isinstance(predictors, dict):
validation.validate_predictors(predictors, self._required_predictors)
elif predictors is None:
if self.obs_fitting is not None and sel... |
export const IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
export function querySelector(selector: string): Element | null {
if (typeof document !== 'undefined') {
return document.querySelector(selector);
}
return null;
}
/**
* Drop everything inside <...> (i.e., tags/elements), an... |
import { Meteor } from "meteor/meteor";
export function userDataLoader(p: any){
return {
isLoggingIn: Meteor.loggingIn(),
user: Meteor.user()
};
};
|
/// Verify the file as an archive
fn verify_as_archive(path: &str) -> Result<MimeType, String> {
let err_msg = format!("{} does not appear to be a valid archive.", path);
match mime_guess::from_path(path).first_raw() {
None => Err(err_msg),
Some(g) => match g {
"application/x-bzip2" ... |
// ALTER_TABLE, for added, altered or removed columns.
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL(DROP_TABLE + RecipeEntry.TABLE_RECIPE);
db.execSQL(DROP_TABLE + IngredientsEntry.TABLE_INGREDIENTS);
db.execSQL(DROP_TABLE + StepsEntry.TABLE... |
def cases_deaths_charts():
pd.plotting.register_matplotlib_converters()
groupedmonths = df.groupby(df['dateRep'].dt.to_period('M')).sum()
groupedmonths = groupedmonths.resample('M').asfreq().fillna(0)
groupedmonths['dateRep']=groupedmonths.index
fig, ax1 = plt.subplots(figsize=(10, 8))
global_ca... |
<filename>src/test/java/com/allibaba/compileflow/test/om/branch_graph/calculate/RandomOp.java
package com.allibaba.compileflow.test.om.branch_graph.calculate;
public class RandomOp {
public RandomOp() {
}
public void process(Integer result) {
System.out.println("Random process is finished " + resu... |
<filename>tests/test_types.py
import logging
import pytest
from django.core.exceptions import ValidationError
from mock import patch
from suds import WebFault
from tests import VALID_VIES_COUNTRY_CODE, VALID_VIES_IE, VALID_VIES_NUMBER
from vies.types import VATIN
class TestVATIN(object):
def test_creation(self)... |
/**
* Module that implements all the RPC calls in
* {@link org.apache.hadoop.hdfs.protocol.ClientProtocol} related to
* Erasure Coding in the {@link RouterRpcServer}.
*/
public class ErasureCoding {
/** RPC server to receive client calls. */
private final RouterRpcServer rpcServer;
/** RPC clients to connect... |
/** A request to the Distance Matrix API. */
public class DistanceMatrixApiRequest
extends PendingResultBase<DistanceMatrix, DistanceMatrixApiRequest, Response> {
public DistanceMatrixApiRequest(GeoApiContext context) {
super(context, DistanceMatrixApi.API_CONFIG, Response.class);
}
@Override
protecte... |
/**
* JSON converter for {@link LocalDate}
*/
public final class LocalDateConverter {
public static class Serializer<LocalDate> extends FunctionalSerializer<LocalDate> {
public Serializer() {
super(value -> value == null ? null : value.toString());
}
}
public static class Des... |
Donald Cerrone and Khabib Nurmagomedov haven’t officially signed on the dotted line, but Cerrone knows Nurmagomedov is the only man left if he wants to earn a title shot.
In fact, Nurmagomedov (22-0 MMA, 6-0 UFC) and Gilbert Melendez are the only Top 10 fighters in the latest USA TODAY Sports/MMAjunkie MMA lightweight... |
def write_wav(path, signal, sr):
sf.write(path, signal, sr, subtype="PCM_24") |
<reponame>xpenatan/gdx-backend-dragome
package com.github.xpenatan.gdx.backends.web.dom.typedarray;
/**
* @author xpenatan
*/
public interface Int32ArrayWrapper extends ArrayBufferViewWrapper {
// Int32Array
public static final int BYTES_PER_ELEMENT = 4;
public int getLength();
public int get(int index);
pub... |
<gh_stars>0
from flask import render_template, flash, redirect, url_for
from flask_login import login_user, logout_user
from app import app, db, lm
from app.models.tables import User
from app.models.forms import LoginForm
@lm.user_loader
def load_user(session_token):
return User.query.filter_by(session_token=ses... |
Parity Games, Imperfect Information and Structural Complexity
We address the problem of solving parity games with imperfect information on finite graphs of bounded structural complexity. It is a major open problem whether parity games with perfect information can be solved in PTIME. Restricting the structural complexi... |
def _check_process(self, restart=False):
process = self._process
if process and process.poll():
lgr.warning("Process %s was terminated with returncode %s" % (process, process.returncode))
self.close()
if self._process is None and restart:
lgr.warning("Restarti... |
Reconstruction, Revival, and the Triumph of Experience, 1914–30
The final chapter begins with post-war reconstruction and how new professorial appointments signalled a move from dogma and theological proficiency to experience and practical Christianity. The second section examines a powerful outbreak of religious revi... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { shallow } from 'enzyme';
import { RuleAc... |
def generate_filename_suffix(file_type, file_datetime=None, random_bytes=False):
if file_datetime is None:
file_datetime = datetime.datetime.now()
date_string = datetime_to_string(file_datetime)
filename_suffix = '_' + date_string
if random_bytes:
random_string = base64.urlsafe_b64encod... |
TODO: Mention early what their main purpose is, what they are good for.
Symbols are a new primitive type in ECMAScript 6 . This blog post explains how they work.
A new primitive type #
ECMAScript 6 introduces a new primitive type: symbols. They are tokens that serve as unique IDs. You create symbols via the factory ... |
// Compare the magnitudes (absolute values) of the provided decimal values.
fn compare_magnitudes(d1: &Decimal, d2: &Decimal) -> Ordering {
// If the exponents match, we can compare the two coefficients directly.
if d1.exponent == d2.exponent {
return d1.coefficient.magnitude().cmp(&d2.coeff... |
/**
* Add a friend to the friend adapter
* @param newFriend the new friend to be added
*/
public void addFriendToAdapter(Friend newFriend) {
GridView gridView = (GridView) findViewById(R.id.friends);
if (gridView != null) {
((FriendAdapter) gridView.getAdapter()).add(newFriend);
}
((FriendAdapter) grid... |
// Print a program counter and its symbol name.
static void DumpPCAndSymbol(DebugWriter *writerfn, void *arg, void *pc,
const char * const prefix) {
char tmp[1024];
const char *symbol = "(unknown)";
if (Symbolize(reinterpret_cast<char *>(pc) - 1, tmp, sizeof(tmp))) {
symbol = tmp... |
/*
* InputManager.h
*
* Created on: 21 Dec 2013
* Author: bert
*/
#ifndef INPUTMANAGER_H_
#define INPUTMANAGER_H_
#include <GL/glew.h> // include GLEW and new version of GL on Windows
#include <GLFW/glfw3.h> // GLFW helper library
#include "Logger.h"
#include "./OpenGL/OpenGLManager.h"
namespace Tetris3D... |
<filename>video/src/main/java/menu/GestionMenu.java<gh_stars>0
package menu;
import java.util.Scanner;
public class GestionMenu {
static Scanner scanner;
public static int AffichMenu() {
int choix=0;
String saisie;
boolean bSaisie = false;
scanner = new Scanner(System.in);
do {
System.out.println(... |
# https://codeforces.com/contest/1051/problem/B
l,r = map(int, input().split())
print("YES")
for i in range((r-l+1)//2):
print(l,l+1)
l += 2
|
/**
* A set of digits, having a radix and an exponent. Objects of this type are
* used to implement rounding.
*
* <p />The value of a <code>DigitSet</code> number is the sum of:
*
* <blockquote>
* <em>digits</em>[0] * <em>radix</em><sup><em>exponent</em></sup><br>
* <em>digits</em>[1] * <em>radix</em><sup... |
/*
Copyright (c) 2014 Glen Joseph Fernandes
glenfe at live dot com
Distributed under the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt
or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_HPP
#define BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_HPP
#include <... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
float modulo(float x);
void apresenta(int N,float M[N][N],float vetorB[N]);
void main(){
int i,j,k,N,linha;
float pivo,max,aux,multiplicador;
printf("METODO DE ELIMINACAO DE GAUSS.\n\n");
printf("Digite a ordem da matriz:");
scanf("%d",&N);
floa... |
<filename>harvester-admin/src/main/java/com/indexdata/masterkey/localindices/web/admin/controller/lookups/ResponseDataObject.java
package com.indexdata.masterkey.localindices.web.admin.controller.lookups;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
... |
Ancient Rome's gladiators lived and trained in fortress prisons, according to an international team of archaeologists who mapped a school for the famed fighters.
Discovered at the site of Carnuntum outside Vienna, Austria, the gladiatorial school, or ludus gladiatorius, is the first one discovered outside the city of ... |
/**
* Uses the appropriate controller to create the snapshots.
*
* @param reqVolume The volume from the snapshot request.
* @param snapshotURIs The URIs of the prepared snapshots
* @param snapshotType The snapshot technology type.
* @param createInactive true if the snapshots should be cre... |
NTNU-1@ScienceIE at SemEval-2017 Task 10: Identifying and Labelling Keyphrases with Conditional Random Fields
We present NTNU’s systems for Task A (prediction of keyphrases) and Task B (labelling as Material, Process or Task) at SemEval 2017 Task 10: Extracting Keyphrases and Relations from Scientific Publications (Au... |
<filename>src/main/java/choice/Choice.java
package choice;
import input.UserInput;
import inventory.Inventory;
import inventory.Item;
import mission.Mission;
import mission.Status;
import printer.Printer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import static choice.State.REGULAR;... |
<gh_stars>0
"""
Authors: <NAME>, <NAME>
Licensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/)
"""
import os
class MyPath(object):
@staticmethod
def db_root_dir(database=''):
db_names = {'CelebA'}
assert(database in db_names)
if database == 'CelebA':... |
Hexashaft penta linked screw cone gear wheel processing machine tool
The utility model relates to a six-shaft five-linkage machine tool for processing a spiral bevel gear, which comprises a machine tool body, wherein an X-direction straight guide rail is arranged above the machine tool body, and an X-axis sliding tabl... |
<reponame>xuanyuyt/lanenet-lane-detection<filename>config/global_config.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 18-1-31 上午11:21
# @Author : MaybeShewill-CV
# @Site : https://github.com/MaybeShewill-CV/lanenet-lane-detection
# @File : global_config.py
# @IDE: PyCharm Community Edition
"""
S... |
/**
* @author Mathias Broekelmann
*
*/
public class ListModelConverter extends AbstractConverter {
private static final Class[] TARGET_CLASSES = new Class[] { ListModel.class };
private static final Class[] SOURCE_CLASSES = new Class[] { Collection.class, List.class, Object[].class,
ListModel.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.