content stringlengths 10 4.9M |
|---|
#include<stdio.h>
#define MAX 2000
int main(){
int n,q;
int a[MAX],mi[MAX],s[MAX],b,c;
int i,j;
for(i=0;i<MAX;i++)s[i]=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
b=a[i];
for(j=2000-b;j>0;j--){
if(s[j]==1)s[j+b]=1;
/* if(a[i]==j)s[j]=1;
sovle(a[i],a[j]);*/
}
... |
Scientific Study of Hybrid Testing Framework and Procedure
In this paper it is discussed in details the meaning of hybrid framework, hybrid model, testing life cycle and its different procedures. The word hybrid it self explains mixing of two together. This paper will explain using hybrid model techniques to test the ... |
<reponame>mickmister/mattermost-plugin-stonks
import {ActionType} from './action_types';
export const openOptionsModal = () => {
return {
type: ActionType.OPEN_OPTIONS_MODAL,
};
};
export const closeOptionsModal = () => {
return {
type: ActionType.CLOSE_OPTIONS_MODAL,
};
};
export con... |
<filename>drama/run_tools.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .signal_synthesis import *
import numpy as np
def synt_event(i_sig, n_ftrs,x=None,n_inlier=2000,n_outlier=100,
sigma = 0.2,n1 = 0.02,n2 = 0.01,n3 = 0.02,n4 = 0.01,
... |
/**
* The default {@link ContentViewClient} implementation for the chrome layer embedders.
*/
public class ChromeContentViewClient extends ContentViewClient {
@Override
public boolean isJavascriptEnabled() {
return PrefServiceBridge.getInstance().javaScriptEnabled();
}
} |
def validate_card(DEBIT_CARD=True):
return "1234-5678-9999-000" if DEBIT_CARD else False |
package node
import (
"context"
"github.com/filecoin-project/go-filecoin/core"
"github.com/filecoin-project/go-filecoin/net/pubsub"
"github.com/filecoin-project/go-filecoin/types"
"github.com/pkg/errors"
)
// defaultMessagePublisher publishes messages to a pubsub topic and adds them to a message pool.
// This i... |
package soot.util;
/*-
* #%L
* Soot - a J*va Optimization Framework
* %%
* Copyright (C) 2002 Ondrej Lhotak
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.... |
Systematic review of innovative ablative therapies for the treatment of locally advanced pancreatic cancer
Locally advanced pancreatic cancer (LAPC) is associated with a very poor prognosis. Current palliative (radio)chemotherapy provides only a marginal survival benefit of 2–3 months. Several innovative local ablativ... |
/**
* Write to multiple OutputStreams
*
* @version $Revision$
*/
public class MultiplexOutputStream extends OutputStream {
List streams = new CopyOnWriteArrayList();
/**
* Add an Output Stream
* @param os
*/
public void add(OutputStream os) {
streams.add(os);
}
... |
package com.tuyo.namoroapp.repositories;
import com.tuyo.namoroapp.entities.ContaUsuario;
import com.tuyo.namoroapp.entities.Interesse;
import org.springframework.data.jpa.repository.JpaRepository;
public interface InteresseRepo extends JpaRepository<Interesse, Integer> {
}
|
import sys
def mmul(a,b,m):
return ((a%m)*(b%m))%m
[n,k]=[int(i) for i in sys.stdin.readline().split()]
p=[int(j) for j in sys.stdin.readline().split()]
a=[]
val=n
ans=0
for i in range(k):
ans+=val
val-=1
m=998244353
check=n-(k-1)
ways=1
ctr=-2
for g in range(n):
if(p[g]>=check)... |
Orlando City SC's three teams finished this week with two losses, as Orlando City B had a bye week.
(Photo by Victor Tan / New Day Review)
ORLANDO, Fla. – Regarding results, Orlando City SC had itself a poor week. Both its Major League Soccer and National Women’s Soccer League sides fell in disappointing fashion whil... |
package com.esri.terraformer.core;
import java.util.Arrays;
import java.util.Collection;
public final class MultiPolygon extends Geometry<Polygon> {
public static final String ERROR_PREFIX = "Error while parsing MultiPolygon: ";
/**
* A valid MultiPolygon contains 0 or more non-null {@link Polygon}'s.
... |
/**
*
* @author Jon Hoppesch
*/
public class HL7AckTransforms {
private static final Logger LOG = Logger.getLogger(HL7AckTransforms.class);
public static final String ACK_DETAIL_TYPE_CODE_ERROR = "E";
public static final String ACK_DETAIL_TYPE_CODE_INFO = "I";
public static final String ACK_TYPE_C... |
/// Receive message head from buffer. Returns following message kind and length.
pub fn recv_message_head(
&mut self,
rdsrc: &mut impl std::io::Read,
) -> Result<(message::BgpMessageType, usize), BgpError> {
let mut buf = [0 as u8; 19];
rdsrc.read_exact(&mut buf)?;
self.decod... |
<reponame>zainkai/LeetCodeChallenges<gh_stars>1-10
import "fmt"
type MaxStack struct {
data []int
maxData []int
}
/** initialize your data structure here. */
func Constructor() MaxStack {
return MaxStack{}
}
func (this *MaxStack) Push(x int) {
this.data = append(this.data, x)
if len(this.maxData) == 0 {
th... |
def add_noise(
self,
simulation_df: pd.DataFrame,
noise_scaling_factor: float = 1,
**kwargs
) -> pd.DataFrame:
simulation_df_with_noise = simulation_df.copy()
simulation_df_with_noise[petab.C.MEASUREMENT] = [
sample_noise(
s... |
When singer-songwriter Mac DeMarco found out that his new album "This Old Dog" had leaked three weeks before its official release, he did something unusual. Instead of complaining, he actively encouraged fans to download a free copy from The Pirate Bay, Soulseek, or even long defunct pirate classics such as Napster, Li... |
<reponame>xsjames/vsf
/*****************************************************************************
* Copyright(C)2009-2019 by VSF Team *
* *
* Licensed under the Apache License, Version 2.0 (the "L... |
def StartVim(self,args=[]):
if not self.vim.IsRunning():
self.vim.Start(args)
else:
raise VimgdbError("Vim server already started.") |
Saosin - Along The Shadow Vinyl LP Hot Topic Exclusive is rated 5.0 out of 5 by 3 .
Rated 5 out of 5 by Ohitsjustjohnny_ from Love this album. I’m hella bummed Hot Topic doesn’t advertise their vinyl exclusives because I love this variant so much. I’ve bought this record three times now, just collecting all the differ... |
<reponame>manbuyun/starrocks<gh_stars>1-10
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#pragma once
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <vector>
#include "storage/olap_common.h"
#include "storage/rowset/rowset.h"
#include "s... |
// GetAddr returns ethernet address of the tap device whose name is 'name'
func GetAddr(name string) ([]byte, error) {
addr, err := SIOCGIFHWADDR(name)
if err != nil {
return nil, err
}
return addr, nil
} |
Israeli Jewish settlers from the illegal settlements of Salit and Miskiot in the Jordan Valley occupied wide swathes of Palestinian lands, Arab48.com reported yesterday.
Mutaz Bsharat, responsible for assessing settler activity in the West Bank city of Tubas, said that the settlers from Salit and Miskiot “seized more ... |
ST. LOUIS, MI -- One day in 1974, Jane-Ann Nyerges got home from school and found her mother sitting at the kitchen table, crying. The family lived on a farm near Remus where they raised livestock and Nyerges had thought it odd the chicken coop was empty as she walked up the driveway.
Inside, she learned why.
"Some m... |
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/vpn/vpn_connection.h"
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <base/callback.h>... |
import math
import numpy as np
A, B, H, M = (int(i) for i in input().split())
angleA = math.pi * 2 * (1 - (H/12 + 1/12 * M/60) + 1/4)
angleB = math.pi * 2 * (1 - M/60 + 1/4)
a = np.array([A * math.cos(angleA), A * math.sin(angleA)])
b = np.array([B * math.cos(angleB), B * math.sin(angleB)])
print(np.linalg.norm(a ... |
/**
* Setup wm hardware state. See page 225 of Volume 2
*/
static enum pipe_error
wm_unit_create_from_key(struct brw_context *brw, struct brw_wm_unit_key *key,
struct brw_winsys_reloc *reloc,
unsigned nr_reloc,
struct brw_winsys_buffer **bo_out)
{
struct brw_wm_u... |
/**
* Test compile.
*
* @throws IOException Signals that an I/O exception has occurred.
* @throws InstantiationException the instantiation exception
* @throws IllegalAccessException the illegal access exception
*/
@Test
public void testCompile() throws IOException, InstantiationException, IllegalAccessExce... |
def is_full_integration():
return |
/**
* Description not yet available.
* \param
*/
dvector laplace_approximation_calculator::
banded_calculations_trust_region_approach(const dvector& _uhat,
function_minimizer * pfmin)
{
dvector& uhat=(dvector&) _uhat;
dvector uhat_old(uhat.indexmin(),uhat.indexmax());
dvector uhat_new(uhat.indexmin(),uhat.... |
/**
* @zm-api-response-description the response contains activities
* as described in GetActivityStreamResponse
*/
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name=OctopusXmlConstants.E_GET_NOTIFICATIONS_RESPONSE)
@XmlType(propOrder = {"operations", "users", "activities"})
public class GetNotificationsRespo... |
/**
* This class discovers information about
* the computer where it is running.
*
* @author scott
*
*/
public class ComputerInfoDiscovery {
private static final String UNUX = "Unux";
public static final String LINUX = "Linux";
public static final String WINDOWS = "Windows";
public static final String MA... |
import formencode
class ConnForm(formencode.Schema):
allow_extra_fields = True
filter_extra_fields = True
server = formencode.validators.String(not_empty=True)
nickname = formencode.validators.String(not_empty=True)
channel = formencode.validators.String(not_empty=True)
|
/**
* Helper for recursing on a block.
* @param node The BlockNode to recurse on.
*/
private void visitBlockHelper(BlockNode node) {
if (node.needsEnvFrameDuringInterp() != Boolean.FALSE /*true or unknown*/) {
env.push(Maps.<String, SoyValue>newHashMap());
visitChildren(node);
env.pop();
... |
def GetImageFromResource(t,imageName,large):
pass |
// Fulfilled sets the value of the 'fulfilled' attribute to the given value.
//
//
func (b *AddOnRequirementStatusBuilder) Fulfilled(value bool) *AddOnRequirementStatusBuilder {
b.fulfilled = value
b.bitmap_ |= 2
return b
} |
// resizeCells for AddColumn and AddColumns
func (dt *DataTable) resizeCells() {
for i, r := range dt.Rows {
r.Cells = append(r.Cells, Cell{
ColumnIndex: len(dt.Columns) - 1,
RowIndex: i,
Value: nil})
}
} |
Improvement of the air-sea flux parameterization scheme in the ocean circulation model
COARE (Coupled Ocean-Atmosphere Response Experiment) algorithm is the more advanced algorithm, calculating the air-sea flux. COARE 3.0 is the latest version. In this paper, the COARE 3.0 bulk sea-air flux parameterization scheme is ... |
''' Batched Room-to-Room navigation environment '''
import sys
sys.path.append('buildpy36')
import MatterSim
import csv
import numpy as np
import math
import base64
import utils
import json
import os
import random
import networkx as nx
from param import args
from speaker import Speaker
import pdb
from utils import lo... |
/**
* Datart
*
* Copyright 2021
*
* 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 t... |
<reponame>Tsonewa/to-do-bulgaria
package com.example.todobulgaria.models.entities;
import com.example.todobulgaria.models.BaseEntity;
import com.example.todobulgaria.models.enums.CategoryEnum;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persist... |
// deletableBy is the underlying operation used by DeletableBy controller
func (c *Domain) deletableBy(addr sdk.AccAddress) error {
if err := c.requireDomain(); err != nil {
panic("validation check not allowed on a non existing domain")
}
switch c.domain.Type {
case types.ClosedDomain:
if err := c.gracePeriodFi... |
def fetchone(self):
d = psycopg2.extensions.cursor.fetchone(self)
if d is None:
raise NoDataError("no more data")
return d |
/**
* Attempts to resolve a name or ID into a thing from multiple potential
* matches. Either a name or ID must be provided, but not both.
*
* @param name name for a thing
* @param id ID for a thing
* @param type expected type of thing to resolve
* @param ids IDs of candidate... |
/**
* Convert the specified value given in base unit to this unit.
*
* @param baseValue Base value to convert.
* @return Value converted to this unit.
*/
public double fromBase(double baseValue)
{
double value = (b_ - d_ * baseValue) / (c_ * baseValue - a_);
return value;
} |
"It often does more harm than good to force definitions on things we don't understand. Besides, only in logic and mathematics do definitions ever capture concepts perfectly. The things we deal with in practical life are usually too complicated to be represented by neat, compact expressions. Especially when it comes to ... |
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
using namespace std;
const int maxn=800000+10;
int n,m;
int c[maxn];
int a[maxn],b[maxn];
namespace TwoSat{
struct Edge{
int next,v;
Edge(){}
Edge(int next,int v): next(next),v(v){}
}e[maxn<<1];
in... |
Combined effects of exercise training and high doses of anabolic steroids on cardiac autonomic modulation and ventricular repolarization properties in rats.
Several studies have reported that high doses of synthetic anabolic androgenic steroids (AAS) can have serious negative effects on health, including the cardiovas... |
<reponame>positive-js/mosaic-builds
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
import { CanDisable, CanDisableCtor } from '@ptsecurity/mosaic/core';
import * as i0 from "@angular/core";
/** @docs-private */
export declare class McTabLabelWrapperBase {
}
export declare const McTabLabelWrapperM... |
/**
* Realtime bolt that can subscribe to any ChatAlytics {@link Serializable} object and publish it
* out to the socket clients.
*
* @author giannis
*/
@ClientEndpoint(encoders = { ChatAlyticsEventEncoder.class, ConnectionTypeEncoderDecoder.class })
public class RealtimeBolt extends ChatAlyticsBaseBolt {
pri... |
/**
* <p>Used in testing; should be enhanced.</p>
*
* @author Abe White
*/
@Entity
@DiscriminatorValue("query2")
public class QueryTest2 extends QueryTest1 {
@OneToOne(cascade = { CascadeType.ALL })
private QueryTest2 oneToOne = null;
@PersistentCollection
private List<String> stringCollection = n... |
/**
* Responsible for validate confidential client specific authorization.
* Methods which authenticates based only on client are implemented here.
*/
@Component
public class ClientAuthInterceptorImpl extends MultiTenantAuthInterceptor {
private static final Logger LOGGER = LoggerFactory.getLogger(ClientAuthInte... |
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';
import Ta... |
def line2dict(inline):
result = {}
if inline[0:2] == 'x ':
result['done'] = True
possible_date = inline.split()[1]
else:
result['done'] = False
return result |
<reponame>fgrid/iso20022<filename>ClosingDate1Choice.go
package iso20022
// Choice between a date or a code.
type ClosingDate1Choice struct {
// Closing date is defined as a choice between a date or a date and time format.
Date *DateAndDateTimeChoice `xml:"Dt"`
// Closing date is defined using a code or data sour... |
/**
* Set the customerVirtualNetwork property: The name of virtual network to which Azure-SSIS integration runtime will
* join.
*
* @param customerVirtualNetwork the customerVirtualNetwork value to set.
* @return the ManagedIntegrationRuntimeTypeProperties object itself.
*/
public ManagedI... |
def prepare_update_properties(self, json_snippet):
p = Properties(self.properties_schema,
json_snippet.get('Properties', {}),
self._resolve_runtime_data,
self.name,
self.context)
props = dict((k, v) for k, v in p... |
/**
* Displays TCP details of a packet, assuming the packet is an TCP
*
* TCPPacket pkt - received packet
*/
void printTCPDetails(TCPPacket pkt) {
System.out.println("Protocol Info");
System.out.print(" Proto=TCP ");
System.out.print(" SrcIPAddr=" + pkt.src_ip.getHostAddress() + " ");
System.out.print(" ... |
package errors
import "github.com/gofrs/uuid"
// Is return true if err is an error value created by one of the constructor
// of this package and c has the same string representation (value returned by
// the String method) and the same message (value returned by the Message
// method) to the error code, otherwise i... |
class NetworkRecovery:
"""Generate a disaster and recovery object for storing simulation-related information and settings."""
def __init__(self, network, sim_step):
self.base_network = network
self.network = copy.deepcopy(self.base_network)
self.sim_step = sim_step
def schedule_rec... |
Rayleigh–Taylor instability in strongly coupled plasma
Rayleigh–Taylor instability (RTI) is the prominent energy mixing mechanism when heavy fluid lies on top of light fluid under the gravity. In this work, the RTI is studied in strongly coupled plasmas using two-dimensional molecular dynamics simulations. The motivat... |
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"strconv"
)
// addCmd represents the add command
var addCmd = &cobra.Command{
Use: "add",
Short: "Add two numbers and display the results",
Long: `Add two numbers and display the results.
It will take two parameters only numerical value else it will throw er... |
U.S. evicting Point Reyes oyster farmer U.S. closing decades-old operation to restore Drakes Bay wilderness
Drakes Bay Oyster Co. employees Francisco Manzo (left) and Alonzo Olea process the shellfish on federal property. Drakes Bay Oyster Co. employees Francisco Manzo (left) and Alonzo Olea process the shellfish on f... |
/**
* Constructs and signs outgoing URLs using the JWT protocol.
* See {@link JwtService} and {@link JwtAuthorizationGenerator} for more details.
*/
public class JwtSigningRemotablePluginAccessor extends DefaultRemotablePluginAccessorBase {
private final ConsumerService consumerService;
private final Connect... |
/**
* @author liujinkun
* @Title: MyFactoryBean
* @Description: TODO
* @date 2019/7/1 5:40 PM
*/
@Component
public class MyFactoryBean implements FactoryBean<IndexBean> {
@Override
public IndexBean getObject() throws Exception {
return new IndexBean();
}
@Override
public Class<?> getObjectType() {
return... |
def p_photoInit(p):
p[0] = photoClip(image=p[3], duration=p[5]) |
<reponame>zhangjie201412/Smart<filename>libs/mosquitto-1.4.14/src/db_dump/db_dump.c
/*
Copyright (c) 2010-2012 <NAME> <<EMAIL>>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany th... |
/**
* Created with IntelliJ IDEA.
* User: sergiuchuckmisha
* Date: 9/16/15
* Time: 3:03 PM
* purpose of the class is to describe html elements on page
* https://exonum.com/demo/voting/#/elections/decrypted
* pageObject pattern is implemented
*/
public class DecryptedBallotPage implements IPage, INavigateToUrl, ... |
/**
* Unit tests for {@link Position}.
*
* @author lare96 <http://github.com/lare96>
*/
final class PositionTest {
@Test
void invalidX() {
assertThrows(IllegalArgumentException.class, () -> new Position(-1, 1, 1));
}
@Test
void invalidY() {
assertThrows(IllegalArgumentException... |
import { Color, LocalSvelteComponent } from './shared';
export interface FormTextProps {
inline?: boolean;
color?: Color;
}
declare class FormText extends LocalSvelteComponent<FormTextProps> {}
export default FormText;
|
mod helpers;
mod structures;
use std::{
time::{Duration, SystemTime, UNIX_EPOCH},
env,
sync::Arc
};
use egg_mode::{
tweet::{retweet, mentions_timeline, like},
user::{relation_lookup, Connection}
};
use tokio::time::delay_for;
use dashmap::DashMap;
use once_cell::sync::Lazy;
use crate::structures::C... |
.
PURPOSE
To judge the influence of consequent non-weight-bearing on the postoperative results, we reviewed 28 patients in whom we performed intertrochanteric osteotomies for idiopathic osteonecrosis of the femoral head during the years 1996 and 1997. Postoperatively 12 patients were supplied with a walking device for... |
/**
* An utils class that provides common used look-ups and other logic for querying the domain model and the rules model,
* that is used along the application.
* <p>
* // TODO: Some kind of cache to avoid frequently used lookups? Consider performance and memory, this class
* is shared on both server and client si... |
def super_smoother(data, length):
ssf = []
for i, _ in enumerate(data):
if i < 2:
ssf.append(0)
else:
arg = 1.414 * 3.14159 / length
a_1 = math.exp(-arg)
b_1 = 2 * a_1 * math.cos(4.44/float(length))
c_2 = b_1
c_3 = -a_1 * a_... |
Maimonides and Spinoza as sources for Maimon's solution of the “problem quid juris” in Kant's theory of knowledge
Abstract Maimon once described the philosophical project underlying his Essay on Transcendental Philosophy as an attempt “to unify Kantian philosophy with Spinozism”. But in the only reference to Spinoza i... |
import {
BadRequestException,
Controller,
Get,
Param,
ParseIntPipe,
} from '@nestjs/common';
import { CustomNotFoundExceptionFixture } from './exceptions/custom-not-found.exception.fixture';
/**
* Controller.
*/
@Controller('test')
export class AppControllerFixture {
@Get('unknown')
getError(): void {
... |
///< Returns the length of the quaternion squared (prevents a sqrt)
kmScalar kmQuaternionLengthSq(const kmQuaternion* pIn)
{
return pIn->x * pIn->x + pIn->y * pIn->y +
pIn->z * pIn->z + pIn->w * pIn->w;
} |
def _get_text_plain(self, msg):
tp = None
if not msg.is_multipart():
if msg.get_content_type() == 'text/plain':
tp = msg
else:
return u"No text/plain found"
else:
for p in msg.walk():
if p.get_content_type() == '... |
def has_unique_names(self):
atom_ids = []
for i in range(self.natoms):
atom_ids.append(str(self.mol_data['resnum'][i]) +
self.mol_data['atomname'][i])
counter = collections.Counter(atom_ids)
if any(t > 1 for t in list(counter.values())):
return... |
class DB_Functions:
"""Functions to be called from the Menu."""
def __init__(self, db_name):
self.conn = sqlite3.connect(db_name)
self.c = self.conn.cursor() |
CRT-BIoV: A Cognitive Radio Technique for Blockchain-Enabled Internet of Vehicles
Cognitive Radio Network (CRN) is considered as a viable solution on Internet of Vehicle (IoV) where objects equipped with cognition make decisions intelligently through the understanding of both social and physical worlds. However, the s... |
def conv_net(self, input_shape, output_channels, convolutional_layers,
connected_layers):
tf.reset_default_graph()
x = neural_net_image_input(input_shape)
self.x = x
keep_prob_variable = neural_net_keep_prob_input()
self.keep_prob_variable = keep_prob_variable
... |
261 RIGHT VENTRICULAR VOLUME AND SYSTOLIC FUNCTION CORRELATE WITH BRAIN NATRIURETIC PEPTIDE LEVELS IN ADULT PATIENTS WITH CONGENITAL HEART DISEASE.
Objectives To evaluate the correlation between right ventricular systolic function, volume, and plasma brain natriuretic peptide (BNP) levels in adults with congenital hea... |
/**
@author <NAME>
*/
#include "SceneBody.h"
#include "SceneDevice.h"
#include <cnoid/SceneShape>
#include <cnoid/SceneUtil>
#include <boost/bind.hpp>
#include "gettext.h"
using namespace std;
using namespace boost;
using namespace cnoid;
SceneLink::SceneLink(Link* link)
: link_(link)
{
setName(link->nam... |
/**
* Maze class, handling the reading of a file and the creation of a map
* @author Samy Narrainen
*
*/
public class Maze implements Serializable {
private static final long serialVersionUID = 334664502184146667L;
BufferedReader reader;
//Represents the map in an integer format
public ArrayList<List<Integer... |
To those who don't already know. Yes I like My Little Pony: Friendship is Magic.GOOD NOW THAT THAT'S OUTTA THE WAY!This is something I made to a video on my account.While editing the video I wanted to match it to a scene from the original source. Some of the main characters were sleeping together on one bed.And in MLP ... |
/**
* Environment post processor capable of loading choices list from a custom file.<br/>
*
* @author Polyudov
* @implNote <ul>
* <li>There are no logs (by slf4j loggers) because the logging subsystem is not initialized yet</li>
* <li>Works only with <code>.yaml/.yml</code> files</li>
* </ul>
* @since v0.14
*/... |
def register_extension(cls, extension_class):
assert issubclass(extension_class, BaseWaveformExtractorExtension)
assert extension_class.extension_name is not None, 'extension_name must not be None'
assert all(extension_class.extension_name != ext.extension_name for ext in cls.extensions), \
... |
/// A description of the error resources variant value.
fn description(&self) -> &'static str {
match self {
ErrorResources::Orphaned => "An error left resources that cannot be destroyed",
ErrorResources::Remaining => "An error left resources that can be destroyed",
ErrorReso... |
<reponame>bstrie/falcon<filename>lib/loader/mod.rs
//! Loading executable binaries into Falcon.
//!
//! ```
//! # use falcon::error::*;
//! use falcon::loader::Elf;
//! use falcon::loader::Loader;
//! use std::path::Path;
//!
//! # fn example () -> Result<()> {
//! // Load an elf for analysis
//! let elf = Elf::from_fi... |
import java.util.Scanner;
public class Main {
static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
String str = scn.nextLine(); //codingblocks
char ch = scn.next().charAt(0);
occuren(str, ch);
}
public static void occuren(String str, char ch) {
String s1 = "";
... |
/** The component that masks the content panel when the left panel of the {@link Layout} is open */
public class Overlay extends BaseDominoElement<HTMLDivElement, Overlay>
implements IsElement<HTMLDivElement> {
private HTMLDivElement element;
/** */
public Overlay() {
element = div().css(LayoutStyles.OV... |
class EvgService:
"""A service for working with evergreen data."""
@inject.autoparams()
def __init__(self, evg_api: EvergreenApi, evg_cli_service: EvgCliService) -> None:
"""
Initialize the service.
:param evg_api: Evergreen API Client.
:param evg_cli_service: Service for w... |
<reponame>hazelcast-incubator/cascading-prototype<gh_stars>1-10
package com.hazelcast.yarn.wordcount.offheap;
import java.nio.ByteBuffer;
import java.util.Map;
import com.hazelcast.yarn.impl.YarnUtil;
import com.hazelcast.yarn.api.dag.Vertex;
import com.hazelcast.yarn.api.tuple.Tuple;
import com.hazelcast.yarn.api.tu... |
Language Learning Strategies Employed by Yemeni EFL Learners in Developing Their Spoken English: A Case Study of Aden University EFL Learners
Language learning is not a spoon-fed process in which learners get everything from their teachers. It is a student-centered process in which learners should play active roles an... |
/**
* Signs off the client from the database (deletes the client's row
* in the Client table)
*/
void sign_off() {
defer_signals();
delete_client(client_id);
reset_signal_handler();
log_message(LOG_IMPORTANT, "Signed off");
} |
def rotate(self, arg=None, **opt):
units = {k:v for k,v in opt.items() if k in ['degrees', 'radians', 'percent']}
if len(units) > 1:
badunits = 'rotate: specify one rotation at a time (got %s)' % " & ".join(units.keys())
raise DeviceError(badunits)
if not units:
... |
package eth
import (
"context"
"fmt"
"math/big"
"time"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/golang/glog"
)
// type LibraryType uint8
// const (
// Node LibraryType = i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.