content
stringlengths
10
4.9M
<reponame>clobber/MAME-OS-X /* HNZVC ? = undefined * = affected - = unaffected 0 = cleared 1 = set # = CCr directly affected by instruction @ = special - carry set if bit 7 is set */ #ifdef NEW static void illegal( konami_state *cpustate ) #else INLINE void illegal( konami_state *cpustate ) #endif...
<gh_stars>0 // Package logger // 3 January, 2018 // Code is licensed under the MIT License package logger import ( "io" "log" ) var logLevel int // Logger struct type Logger struct { Debug Level Info Level Notice Level Error Level } // Level contains the logger level type Level struct { *log.Logger } //...
<filename>openrr-planner/src/collision/urdf.rs use std::path::Path; use k::{nalgebra as na, RealField, Vector3}; use ncollide3d::{ procedural::IndexBuffer::{Split, Unified}, shape::{Ball, Cuboid, Cylinder, ShapeHandle, TriMesh}, transformation::ToTriMesh, }; use tracing::*; use super::mesh::load_mesh; pu...
One Nation: Likely WA senator Rod Culleton struggles to defend and explain party policies Updated One Nation's West Australian Senate hopeful Rod Culleton has struggled to defend or explain some of the party's key policies in his first sit-down interview since the election. West Australians are set to find out the f...
def two_factor(**kwargs): if request.method != 'POST': return {} two_factor_code = request.form['twoFactorCode'] try: response = verify_two_factor(session.data['two_factor_auth']['auth_user_id'], two_factor_code) return response except excep...
/** * Class to parse table xml and store it into SAP table. * XML structure is like: * <TABLES> * <INSOBJECTPARTNER> <!-- tabel --> * <item> <!-- rij --> * <BANK_ID_OUT>123</BANK_ID_OUT> <!-- kolom --> * </item> * </INSOBJECTPARTNER> * </TABLES> * * * @author Gerrit van Brakel * @since 4.11 ...
/// Reads up to `len` bytes and appends them to a vector. /// Returns the number of bytes read. The number of bytes read may be /// less than the number requested, even 0. Returns Err on EOF. /// /// # Error /// /// If an error occurs during this I/O operation, then it is returned /// as `Err(IoError)`. See `read()` fo...
class DatabaseHandler: """ This class will handle the database transaction in order to obtain the caller ext. and the busy number ext. 1) SQLITE3 connection 2) Retrieve caller and callee extn. 3) Creating unique tracking data for each callback (call book) 4) Then binding to SIP header an...
package commands import ( "fmt" "github.com/jfrog/jfrog-cli-core/utils/config" clientutils "github.com/jfrog/jfrog-client-go/utils" "github.com/jfrog/jfrog-client-go/utils/log" "github.com/jfrog/jfrog-support-bundle-flunky/commands/actions" "time" ) type flagValueProvider interface { GetStringFlagValue(flagNam...
def return_obs_RA_DEC(): return SkyCoord('03h 32m 30s', '10d 00m 24s')
/** * @author Uira Dias. * Created 04/04/2014. */ public class Filter { private String attribute; private Object value; private Condition condition; private MatchMode matchMode; public static enum Condition { EQUALS, NOT_EQUALS, GREATER, GREATER_OR_EQUALS, LESS, LESS_OR_EQUALS, NULL, N...
/** * Service Implementation for managing {@link Plante}. */ @Service @Transactional public class PlanteServiceImpl implements PlanteService { private final Logger log = LoggerFactory.getLogger(PlanteServiceImpl.class); private final PlanteRepository planteRepository; public PlanteServiceImpl(PlanteRep...
def sync(self): if self.nodes.getall() == []: self.logger.debug( "NOTHING TO DO, THERE ARE NO NODES DEFINED PLEASE USE j.tools.develop.run()") return did = False for node in self.nodes.getall(): if node.selected: node.sync() ...
To prevent data-loss, it is crucial to use a backup system. Backups ensure that after a loss of data, this data can be recovered. Depending on the method, data can be recovered to either a late version or a predefined time. In Linux/BSD operating systems, backups can be implemented by using several methods and program...
import sys sys.setrecursionlimit(10**6) def dfs(i, j): # i行j列の島を探索する seen[i][j] = 1 for k in range(i-1, i+2): for l in range(j-1, j+2): if k < 0 or k >= h or l < 0 or l >= w: continue if seen[k][l]: continue if c[k][l] == 0: continue dfs(k, l) while T...
import React, { ReactElement, useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { RootState } from '../store/reducers'; import { getScrollFrameBounds } from '../store/selectors/layer'; import { updateScrollFrame } from '../store/actions/layer'; import { disableScrollFrameTool } fr...
Interactive comment on “Potential yield simulated by Global Gridded Crop Models: a process-based emulator to explain their differences”by Bruno Ringeval et al. Review of “Potential yield simulated by Global Gridded Crop Models: a process-based emulator to explain their differences” by Bruno Ringeval et al. Bruno Ringe...
def detokenize(self, tokens): tokens = np.array(tokens) tokens = tokens - 1 tokens[tokens < 0] = 48 tokens = np.array(tokens, dtype=np.uint8) byte_string = b''.join(tokens) string = byte_string.decode('utf-8', errors='replace') return string
Production of Monacolin K in Monascus pilosus: Comparison between Industrial Strains and Analysis of Its Gene Clusters Monascus pilosus strains are widely applied to yield a cholesterol synthesis inhibitor monacolin K (MK), also called lovastatin (LOV). However, the mechanism of MK production by M. pilosus strains is ...
NewsFreedom, Homosexuality LONDON, October 19, 2012 (LifeSiteNews.com) - A judge has ruled that the Christian owner of a bed and breakfast broke equality laws in refusing a bed to a homosexual couple and ordered her to pay £3,600 in damages. Susanne Wilkinson, who owns the Swiss B&B in Cookham, Berkshire, has been or...
“Heaven or Las Vegas”: Competing Institutional Logics and Individual Experience Significant research has been dedicated to the study of the dual constitutive core at the field and organizational levels but less attention has been paid to the micro&#8208;dimensions of the collision of competing logics, namely in terms ...
// main31.cc is a part of the PYTHIA event generator. // Copyright (C) 2011 Mikhail Kirsanov, Torbjorn Sjostrand. // PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. // Please respect the MCnet Guidelines, see GUIDELINES for details. // This is a simple test program. // It illustrates how HepMC...
/* * i2c_port2.h * @brief * Created on: Apr 25, 2020 * Author: Yanye */ #ifndef _I2C_PORT2_H_ #define _I2C_PORT2_H_ #include "hw_types.h" #include "soc_AM335x.h" #include "hw_cm_per.h" #include "pin_mux.h" #include "interrupt.h" #include "hsi2c.h" #include "gpio_v2.h" #include "antminer.h" #include "consoleUtil...
/* This is called to catch an exception raised by vm_error. This builds a new value to store the error message and newly-made traceback. */ static void make_proper_exception_val(lily_vm_state *vm, lily_class *raised_cls, lily_value *result) { const char *raw_message = lily_mb_raw(vm->vm_buffer); lily...
/** * Generate the number of words requested. */ @Override public String generateText(int numWords) { if(numWords <= 0 || wordList.isEmpty()) { return ""; } String currWord = starter; String nextWord = ""; StringBuilder output = new StringBuilder(starter); for(int i = 1; i < numWords; i++) { Lis...
Attenuation of Doxorubicin-induced Cardiotoxicity by Tadalafil: A Long Acting Phosphodiesterase-5 Inhibitor. Doxorubicin (DOX) is a broad spectrum antineoplastic drug widely used in the treatment of several hematogenous and solid human malignancies. Despite its excellent clinical efficacy as a chemotherapeutic agent, ...
A Rodent Paw Tracker Using Support Vector Machine The observation of both human and animal kinematics has proven to be of tremendous scientific value for both understanding biological phenomena and development of medical treatments. Rodents, in particular, are widely used as a model for human disease. Unfortunately, t...
In the netbook edition for 10.10, we’re going to have a single menu bar for all applications, in the panel. Our focus on netbooks has driven much of the desktop design work at Canonical. There are a number of constraints and challenges that are particular to netbooks, and often constraints can be a source of insight a...
//SecurityCodeFront should be null if security code is in back public void flipCardToFrontFromBack(Window window, FrameLayout cardBackground, String cardNumber, String cardholderName, String expiryMonth, String expiryYear, String securityCo...
def create_process_chain_entry(input_object: DataObject, output_object: DataObject): pc = [] return pc
Some of the plushies she’s received show signs of…use. Japan’s idol singer industry is built on cultivating the feeling of a personal connection between performers and their fans. While there are some idols with genuine musical talent, it’s usually not their singing voices that get fans to shell out tens of thousands ...
<reponame>Naoto-Ida/PyGcs<gh_stars>0 # -*- coding: utf-8 -*- from SearchResult import SearchResult import urllib2 import json import re import sys class PyGcs: api_key = "" cx_id = "" query = "" data = [] def __init__(self): self.set_api_key("") self.set_cx_id("") self.s...
<filename>third_party/terraform/tests/resource_bigquery_dataset_iam_member_test.go<gh_stars>1-10 package google import ( "fmt" "testing" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" ) func TestAccBigqueryDatasetIamMember_basic(t *testing.T) { t.Parallel() datasetID := fmt.Sprintf("tf_test_%s", r...
import re if __name__ == '__main__': m = re.search(r'([a-zA-Z0-9])\1+', input()) print(m.group(1) if m else -1)
import logging from pathlib import Path from typing import Sequence from typing import Union import warnings import torch from typeguard import check_argument_types from typing import Collection from espnet2.train.reporter import Reporter @torch.no_grad() def average_nbest_models( output_dir: Path, reporter...
/** * Randomly assign n items into a number of bins * @param n Number of items * @param ratios Count ratios of the bins * @return Assignment: each element being the bin the element is assigned to, 0-based indices */ public static int[] randomlyAssignToBins(int n, List<Float> ratio...
<reponame>otan-cockroach/prisma-engines mod column; mod differ_database; mod enums; mod index; mod sql_schema_differ_flavour; mod table; pub(crate) use column::{ColumnChange, ColumnChanges}; pub(crate) use sql_schema_differ_flavour::SqlSchemaDifferFlavour; use self::differ_database::DifferDatabase; use crate::{ p...
// $Id$ #ifndef TR_INFO_WIND #define TR_INFO_WIND #include <Box.h> #include <Window.h> #include <StringView.h> #include "transmission.h" class TRInfoWindow : public BWindow { public: TRInfoWindow(tr_stat_t status); ~TRInfoWindow(); virtual void FrameResized(float width, float height); private: void StringForF...
Posted on May 29, 2009 in Uncategorized See Also: Afghan was taken to Guantanamo aged 12-rights group, Obama, Taguba, and the new Abu Ghraib photos, Darth Crashcart Unplugged, Torture Memo, Do The Photos Show Rape?, Photos Obama won’t release include images of rape…(warning, graphic), It’s Torture!, Torture’s Harvest,...
/** * Called when background task is finished */ @Override protected void onPostExecute(Void nothing) { if (dialog.isShowing()) { dialog.dismiss(); } if (exception != null) { Toast.makeText(parent.getApplicationContext(), "Could not save image. Please try ag...
/** * Method that handles /connect request and responds with the TwiML after validating * the authenticity of the request * * @param request incoming servlet request object * @param response servlet response object * @throws ServletException * @throws IOException */ protected vo...
package fr.sii.ogham.testing.sms.simulator.jsmpp; import java.io.IOException; import org.jsmpp.DefaultPDUReader; import org.jsmpp.DefaultPDUSender; import org.jsmpp.PDUReader; import org.jsmpp.PDUSender; import org.jsmpp.SynchronizedPDUSender; import org.jsmpp.session.SMPPServerSession; import org.jsmpp.session.SMPPS...
The drugs include traditional non-steroidal anti-inflammatory drugs (NSAIDS) as well as new generation anti-inflammatory drugs, known as COX-2 inhibitors. The researchers say that doctors and patients need to be aware that prescription of any anti-inflammatory drug needs to take cardiovascular risk into account. NSAI...
/** * the activity which started when app was locked * you need input password to unlock */ public class LockedActivity extends BaseActivityUpEnable { // view private EditText etPassword; private TextView tvName; private ImageView ivIcon; //data private String packageName; private HomeK...
from django.db import models # Create your models here. class Question(models.Model): question_text= models.CharField(max_length=100) pub_date = models.DateTimeField() class Choice (models.Model): question= models.ForeignKey (Question, on_delete= models.CASCADE) choice_text= models.CharField(max_lengt...
/** * Test that non-unique field names are handled according to the rules in the class javadoc. */ @Test public void nonuniqueNames() { List<JRField> fields = new XmlDataSourceCompatibleJRFieldListBuilder().field("same").field("different").field("same").build(); Assert.assertEquals("Unexpe...
import { ClientEngineType } from '../../runtime/utils/getClientEngineType' import lzString from 'lz-string' /** * Creates the necessary declarations to embed the generated DMMF into the * generated client. It compresses the DMMF for the data proxy engine. * @param engineType * @param dmmf * @returns */ export fu...
/** * Definition of singly-linked-list: * class ListNode { * public: * int val; * ListNode *next; * ListNode(int val) { * this->val = val; * this->next = NULL; * } * } */ class Solution { public: ListNode * partition(ListNode * head, int x) { ListNode* small = new Li...
/** * Pipeline sequence: * * <pre> * 1) Creates an Elasticsearch index * 2) Reads: * {@link org.gbif.pipelines.io.avro.MetadataRecord}, * {@link org.gbif.pipelines.io.avro.BasicRecord}, * {@link org.gbif.pipelines.io.avro.TemporalRecord}, * {@link org.gbif.pipelines.io.avro.Multimedia...
/* count.c */ #include <stdio.h> void count(void) { /*extern*/ int cnt; cnt++; printf("cnt=%d\n",cnt); }
/** * Load bitmap from drawable folder. * If can't get view width, then use the width passed from client. * @param index * @return */ private Bitmap loadBitmap(String filename) { if (this.getWidth() == 0) { return DecodeBitmapHelper.decodeSampledBitmapFromResource(getResources(), getResources().getI...
/** * Provides the classes which saves a snapshot of both * entities at stake and the race. * * @author <NAME> * @author <NAME> * @see hippodrome.actions * @since 0.1 * @version 2.0 */ package hippodrome.rollfilm;
// Times apply custom match times for current stub func (mitm *MitmTransport) Times(i int) *MitmTransport { mitm.mux.Lock() defer mitm.mux.Unlock() mitm.ensureChained() if i < 0 && i != MockUnlimitedTimes { panic(ErrTimes.Error()) } lastKey, _ := mitm.calcRequestKey(mitm.lastMockedMethod, mitm.lastMockedURL) r...
/** * Function implementation. * * @author BaseX Team 2005-21, BSD License * @author Christian Gruen */ public final class ArchiveEntries extends StandardFunc { @Override public Value value(final QueryContext qc) throws QueryException { final B64 archive = toB64(exprs[0], qc, false); final ValueBuilder...
<reponame>turbo-play/ue4-backend package com.tokenplay.ue4.steam.client.util; import java.util.Collection; import java.util.StringJoiner; public class ObjectJoiner { private ObjectJoiner() { } public static String join(CharSequence separator, Object... arguments) { StringJoiner st = new StringJ...
#include<iostream> using namespace std; int main() { int a1,a2,a3,a4,b1,b2,b3,b4,total,n; b1=0; b2=0; b3=0; b4=0; cin>>a1>>a2>>a3>>a4; string s; cin>>s; for(int i=0;i<=s.length();i++) { if(s[i]=='1')b1+=1; if(s[i]=='2')b2+=1; if(s[i]=='3')b3+=1; if(s[i]=='4')b4+=1; } total=a1*b1+a2*b2+a3*b3+a4*b4; ...
/** * TXEntryUserAttrState is the entity that tracks transactional changes to an entry user attribute. * * * @since GemFire 4.0 * */ public class TXEntryUserAttrState { private final Object originalValue; private Object pendingValue; public TXEntryUserAttrState(Object originalValue) { this.originalVa...
class AbstractCityAlert: """ Tracks cities from turn-to-turn and checks each at the end of every game turn to see if the alert should be displayed. """ def __init__(self, eventManager): "Performs static initialization that doesn't require game data." pass def checkCity(self, cityId, city, iPlayer, player): ...
package main import "strconv" type item struct { ID string Title string Topics string Difficulty string } type itemSlice []item func (p itemSlice) Len() int { return len(p) } func (p itemSlice) Less(i, j int) bool { x, _ := strconv.Atoi(p[i].ID) y, _ := strconv.Atoi(p[j].ID) return x < y } f...
def create_schema(name: str) -> str: statement = f"CREATE SCHEMA {name}" return statement
def plugin_setup(plugin, **kwargs): if isinstance(plugin, str): if plugin in sys.modules: plugin = sys.modules[plugin] else: setup_path = sys.modules['__main__'].__file__ sys.path.insert(0, os.path.join(os.path.dirname(setup_path), '..')) ...
/// Find values that are marked as llvm.used. static void findUsedValues(GlobalVariable *LLVMUsed, SmallPtrSet<const GlobalValue*, 8> &UsedValues) { if (LLVMUsed == 0) return; UsedValues.insert(LLVMUsed); ConstantArray *Inits = dyn_cast<ConstantArray>(LLVMUsed->getInitializer()); if (...
class AssetMetadata: """ Stores the metadata associated with a particular course asset. The asset metadata gets stored in the modulestore. """ TOP_LEVEL_ATTRS = ['pathname', 'internal_name', 'locked', 'contenttype', 'thumbnail', 'fields'] EDIT_INFO_ATTRS = ['curr_version', 'prev_version', 'edit...
package basic.storage_model; public class TBUN <T>extends BUN implements Comparable <TBUN>{ public long timestamp; public static final String tbat_format = "%s,%10d,%10d"; public TBUN(long timestamp, int oid, T value) { super(oid, value); this.timestamp=timestamp; } public String toString(){ String times...
package fixtures type SomeNum uint64 type SomeString string type SomeFunc func(SomeNum) bool
// Render returns the markup that describes the help menu. func (m *HelpMenu) Render() string { return ` <menu label="Help"> <menuitem label="Built with github.com/murlokswarm/app" onclick="OnBuiltWith"></menuitem> </menu> ` }
<gh_stars>1-10 package localstore import ( "errors" "sync" "time" log "github.com/Sirupsen/logrus" "github.com/pingcap/tidb/kv" ) // ErrOverflow is the error returned by CurrentVersion, it describes if // there're too many versions allocations in a very short period of time, ID // may conflict. var ErrOverflow ...
def text_triple_maker(arr, end_index): x, y = 0, end_index triples_list = [] while y <= len(arr): triple = (arr[x:y]) triple_string = " ".join(triple) triples_list.append(triple_string) x += 1 y += 1 return triples_list
<reponame>traversaro/osqp /* OSQP TESTER MODULE */ /* THE CODE FOR MINIMAL UNIT TESTING HAS BEEN TAKEN FROM http://www.jera.com/techinfo/jtns/jtn002.html */ #include <stdio.h> #include "minunit.h" #include "osqp.h" // Include tests #include "lin_alg/test_lin_alg.h" #include "solve_linsys/test_solve_linsys.h" #includ...
[youtube https://youtu.be/jOUALurj5P4] One of the biggest pieces of news from this year’s Maker Faire Bay Area was the announcement that the Arduino Zero will be shipping soon. We talk to Atmel‘s “Wizard of Make”, Bob Martin, about the board. On the surface the board may look very similar to the Arduino Leonardo, but...
<gh_stars>0 from typing import List from app.lexer import Lexer, token from .types import AST, ParseError, token_to_atom def parse(program: str) -> AST: return Parser(Lexer(program)).parse_command() class Parser: def __init__(self, lexer: Lexer): self.lexer = lexer self.current = lexer.nex...
Origin of Non-Fermi Liquid Behavior in Heavy Fermion Systems: a Conceptual View We critically examine the non-Fermi liquid (NFL) behavior observed in heavy fermion systems located close to a magnetic instability and suggest a conceptual advance in physics in order to explain its origin. We argue that the treatment of ...
package internal import ( "go/ast" "log" "os" "path/filepath" "runtime" ) type Context struct { TranslatedassertImport *ast.Ident AssertImport *ast.Ident } var ( CacheDir = filepath.Join(os.Getenv(homeEnv), ".gopwtcache", runtime.Version()) Testdata = "testdata" TermWidth = 0 WorkingDir = "...
<reponame>CodeJosh723/thesis-review-system<filename>website/thesis/apps.py from django.apps import AppConfig class ThesisConfig(AppConfig): name = 'thesis'
import type { Hooks, Plugin } from "@yarnpkg/core"; import { afterAllInstalled } from "./hooks/after-all-installed"; const plugin: Plugin<Hooks> = { hooks: { afterAllInstalled, }, }; // eslint-disable-next-line import/no-default-export -- `@yarnpkg/builder` expects a default export export default plugin;
class SecureChild: """Class representing the secure child formula. It is used at the end of MCTS algorithm to select the returned action. Selects the child which maximises a lower confidence bound: argmax_k {v(k) + A / n(k)}, where k is in a set of nodes and A is a constant. It is a functi...
The poster has been distributed around the local area A wanted poster featuring Robbie Coltrane is being used by police in New Zealand to try to catch a teenage burglar who resembles the actor. Detectives stressed the Cracker and Harry Potter star is not suspected of any crimes, but said the thief looks like a 16-yea...
<gh_stars>1000+ type DateAlias = Date /** * @param date1 First date */ export function playdate(date1: Date, date2: DateAlias): Date { return new Date(date2.getTime() - date1.getTime()) }
<reponame>FarzanKhan009/startup-code-nestjs import { Body, Controller, Delete, Get, Param, Post, Put, Query, UseGuards, } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { forgotPasswordDto, IdDto, resetPasswordDto, updateUserData, } from './dto'; import { UsersServ...
<reponame>handspy/linguini package pt.up.hs.linguini.analysis.ideadensity.rulesets.atomic; /** * A ruleset that processes the 'mark' relation. * * @author <NAME> <code><EMAIL></code> */ public class MarkRuleset extends AtomicRuleset { public MarkRuleset() { super("mark"); } }
export * from './booking.component';
package net.theawesomegem.fishingmadebetter.common.recipe; import net.minecraft.init.Items; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.IRecipe; import net.minecraft.util.NonNullList; import net.minecraft.world.World; import net.theawesomege...
The brazen attack in downtown Dallas that killed five police officers and injured nine other people was the act of a lone gunman, an Afghanistan veteran drawn to Black Power symbology and a determination to kill white people, authorities concluded Friday. “This was a mobile shooter that has written manifestos on how t...
<filename>content_scripts/faceit.ts 'use strict'; export const ECL_ORGA_ID = 'edc12227-3b07-4c5e-9325-f223025628f3'; interface Player { name: string; guid: string; isUser: boolean; avatarUrl: string; } interface AngualarPlayerElementInfo { currentUserGuid: string; teamMember: { id: string; nickna...
def __packet_to_message(self, packet): if packet == None: return None device = self.roster.get_device(packet.id, 'rfxcom') if device == None: device = Device(protocol='rfxcom', protocol_id=packet.id) device.set_private({'type': packet.type, 'unit_code': packet...
<gh_stars>10-100 import * as React from 'react'; import DialogComponent from '@material-ui/core/Dialog'; import DialogActionsComponent from '@material-ui/core/DialogActions'; import DialogContentComponent from '@material-ui/core/DialogContent'; import DialogContentTextComponent from '@material-ui/core/DialogContentText...
package mergers // GetAllNames get names of all formats func GetAllNames() []string { names := make([]string, 0) for _, f := range mergersByName { names = append(names, f.Name) } return names }
<gh_stars>0 // // Created by holgus103 on 19/05/18. // #include <opencv2/highgui/highgui.hpp> #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <vector> #include <algorithm> #include "globals.h" #include <fstream> #include "DigitRecognizer.h" #ifndef VISUALS...
<reponame>husky-koglhof/node-zwave-js /// <reference types="node" /> import { EventEmitter } from "events"; import { CommandClasses } from "../commandclass/CommandClass"; import { ZWaveController } from "../controller/Controller"; import { SendDataRequest } from "../controller/SendDataMessages"; import { FunctionType, ...
There were a number of things that struck me while reading Naomi Klein’s most recent book, This Changes Everything, which were somewhat tangential to my main line of critique, and so I left them out of the response piece I wrote a couple of weeks ago. Nevertheless, some are worth mentioning, particularly those that con...
Addictive substances: textbook approaches from 16 countries Schools have been identified as one of the appropriate settings for addiction prevention since this is the place where pupils may come into contact with drugs for the first time and experiment with them, with the possibility of becoming addicted. To be effect...
/* Version 2 P. J. Plauger version The function strncpy is similar to memcpy, except that it stops on a terminating null. strncpy also has the unfortunate requirement that it must supply null padding characters for a string whose length is less than n. */ char *my_strncpy(char *s1, const char *s2, size_t n) { char...
//LA GESTION DEL CRONO, CUANDO TIENE QUE PARARSE public void chrono(final int black, final TextView txtChrono, final int rojo, final Button respuesta1Questions, final Button respuesta2Questions, final Button respuesta3Questions, final Button respuesta4Questions, final Drawa...
package com.team4.ysms.dto; public class Dto_Reservation_rentalDetail { // 누가 예약했는지도 중요하니까 가져온다 // 필요한것 : 예약넘버, 예약자이름, 예약날자, 시작, 이용시간(종료시간 - 시작시간 : 이건 dao가 계산), int no; String resName; String resEmail; String resPhone; int resCapacity; int resPrice; int month; int date; int startTime; int usingT...
/** * <p>Java class for tSequence complex type. * <p/> * <p>The following schema fragment specifies the expected content contained within this class. * <p/> * <pre> * &lt;complexType name="tSequence"> * &lt;complexContent> * &lt;extension base="{http://docs.oasis-open.org/ns/bpel4people/ws-humantask/20080...
<filename>proptest/src/arbitrary/_core/num.rs //- // Copyright 2017, 2018 The proptest developers // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file...
<reponame>wangsenyuan/learn-go<filename>src/codechef/easy/section00/section0/chsign/solution_test.go package main import ( "testing" ) func runSample(t *testing.T, n int, A []int, expect []int) { res := solve(n, A) var sum1, sum2 int64 var cnt1, cnt2 int for i := 0; i < n; i++ { sum1 += int64(expect[i]) su...
/** * Used to indicate that the controller has finished executing */ public Result controllerReturned() { if (asyncStrategy != null) { return asyncStrategy.controllerReturned(); } return null; }
def __get_bl_info_file_from_directory(self): if not self.addon_path.is_dir(): raise AttributeError(f'{self.addon_path} is not a directory.') files = [file for file in self.addon_path.iterdir() if file.is_file()] if len(files) == 0: raise InvalidBlenderAddon(f'Directory {s...
/** Verifies that a new KIE session is created when there is no existing session entity. */ @Test public void testActivatePolicySession_New() throws Exception { setUpKie("noName", 999L, true); mockDbConn(5); KieSession session = feat.activatePolicySession(polcont, MY_SESS_NAME, MY_KIE_BASE);...