repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
BryanRiel/pyre | tests/pyre/calc/expression_resolution.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# <NAME>. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
"""
Verify that node resolution works
"""
def test():
import pyre.calc
# set up the model
model = pyre.calc.model()
# set up an expression with an unresolved node
model["price"... |
sifbuilder/rxmods | src/mods/rxTodos/package.js | <gh_stars>1-10
const mod = {
"name": "rxtodos",
"description": "redux todos component built as composable module. Based on Todos example included in https://github.com/tj/frontend-boilerplate ",
"authos": "sibuilder based on work by <NAME>, <NAME>",
"license": "MIT",
"version": "0.1.0"
}
export default mod |
Gorac11/OOPProject | h2/src/main/org/h2/expression/ConditionIn.java | <reponame>Gorac11/OOPProject<filename>h2/src/main/org/h2/expression/ConditionIn.java<gh_stars>0
/*
* Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License,
* Version 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
p... |
abu-bakar-nu/nautilus | include/dev/virtqueue.h | <filename>include/dev/virtqueue.h
#ifndef VIRTQUEUE_H
#define VIRTQUEUE_H
/* An interface for efficient virtio implementation.
*
* This header is BSD licensed so anyone can use the definitions
* to implement compatible drivers/servers.
*
* Copyright 2007, 2009, IBM Corporation
* Copyright 2011, Red Hat, I... |
yoshiekiura/algopeatio | vendor/bundle/ruby/2.2.0/gems/rails-i18n-4.0.1/rails/pluralization/sl.rb | <filename>vendor/bundle/ruby/2.2.0/gems/rails-i18n-4.0.1/rails/pluralization/sl.rb
module RailsI18n
module Pluralization
module Slovenian
def self.rule
lambda do |n|
mod100 = n % 100
if mod100 == 1
:one
elsif mod100 == 2
:two
elsif mod... |
49View/event_horizon | native/core/math/quad_vertices.cpp | #include "quad_vertices.h"
QuadVertices3::QuadVertices3( const Rect2f& r, const AABB& projection ) {
int lda = projection.leastDominantAxis();
switch ( lda ) {
case 0:
mVertices[0] = { 0.0f, r.bottomRight() };
mVertices[1] = { projection.calcWidth(), r.topRight() };
mVertices[2] = { 0.0f, r.bottomLeft() };
m... |
740326093/- | YBL365/Class/Profile/Section1/b_Order/b_OrderDetail/View/YBLOrderDetailTotalMoenyCell.h | //
// YBLOrderDetailTotalMoenyCell.h
// YC168
//
// Created by 乔同新 on 2017/3/16.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YBLOrderDetailTotalMoenyCell : UITableViewCell
@property (nonatomic, strong) UILabel *totalMoneyLabel;
@property (nonatomic, strong) UILabel *yunf... |
justice-code/star-map | extension/src/main/java/org/eddy/extension/ExtensionConfig.java | package org.eddy.extension;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* 扩展点获取
*/
@Component
@ConfigurationProperties("star")
public class ExtensionConfig ... |
pulumi/pulumi-akamai | sdk/python/pulumi_akamai/app_sec_waf_mode.py | <gh_stars>1-10
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload... |
lurch/python-gpiozero | docs/examples/robot_keyboard_1.py | <filename>docs/examples/robot_keyboard_1.py
import curses
from gpiozero import Robot
robot = Robot(left=(4, 14), right=(17, 18))
actions = {
curses.KEY_UP: robot.forward,
curses.KEY_DOWN: robot.backward,
curses.KEY_LEFT: robot.left,
curses.KEY_RIGHT: robot.right,
}
def main(window):
next... |
uk-gov-mirror/guidance-guarantee-programme.telephone_appointment_planner | app/helpers/application_helper.rb | module ApplicationHelper
def paginate(objects, options = {})
options.reverse_merge!(theme: 'twitter-bootstrap-3')
super(objects, options)
end
def high_priority_activity_count
Activity
.high_priority_for(current_user)
.unresolved
.count
end
end
|
Watch-Later/recipes | tpc/bin/roundtrip_tcp.cc | <reponame>Watch-Later/recipes
#include "InetAddress.h"
#include "TcpStream.h"
#include <limits>
#include <memory>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <vector>
int64_t kNanos = 1e9;
int64_t clock_diff(struct timespec x, struct timespec y)
{
return (x.tv_sec - y.tv_s... |
MDK-Packs/Nuvoton_M480BSP | SampleCode/StdDriver/HSUSBH_USBH_HID/main.c | /**************************************************************************//**
* @file main.c
* @version V1.00
* @brief Use USB Host core driver and HID driver. This sample demonstrates how
* to submit HID class request and how to read data from interrupt pipe.
* This sample supports d... |
abhijain-sq/square-java-sdk | src/main/java/com/squareup/square/models/V1Refund.java |
package com.squareup.square.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.squareup.square.http.client.HttpContext;
import jav... |
linroid/my_practice | cpp/chapter6/separate_compilation/Chapter6.h | <reponame>linroid/my_practice
int fact(int val);
|
piejanssens/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/testsuites/testsuite.supportability.qunit.js | sap.ui.define([], function() {
"use strict";
return {
name: "TestSuite for Topic: Supportability",
defaults: {
module: "test-resources/sap/ui/core/qunit/{name}.qunit"
},
tests: {
"util/jQuery.sap.measure": {
title: "jQuery.sap.measure"
},
"util/jquery.sap.trace": {
title: "jQuery.sap.trac... |
pbirkle/petrolator-backend | src/main/java/de/itbirkle/petrolator/PetrolatorBackendApplication.java | package de.itbirkle.petrolator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PetrolatorBackendApplication {
public static void main(String[] args) {
SpringApplication.run(PetrolatorBackendApplic... |
ldruschk/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go | <reponame>ldruschk/matterbridge
// Code generated by msgraph-generate.go DO NOT EDIT.
package msgraph
// UpdateRecordingStatusOperation undocumented
type UpdateRecordingStatusOperation struct {
// CommsOperation is the base model of UpdateRecordingStatusOperation
CommsOperation
}
// UpdateWindow undocumented
type ... |
yadavanuj1996/freecodecamp-solutions | Javascript Algorithms And Data Structures Certification/Basic Javascript/45-shopping-list.js | var myList = [];
myList=[["item-1",1],["item-2",2],["item-3",3],["item-4",4],["item-5",5]];
|
thewires2/Leetcode | HashTable/1894. Find the Student that Will Replace the Chalk.py | class Solution:
def chalkReplacer(self, chalk: List[int], k: int) -> int:
s=sum(chalk)
rounds=k//s
k=k-s*rounds
for i in range(len(chalk)):
if chalk[i]>k:
return i
k-=chalk[i]
|
ndevenish/dxtbx | ext.py | from __future__ import absolute_import, division, print_function
import boost.python
ext = boost.python.import_ext("dxtbx_ext")
from dxtbx_ext import * # isort:skip # noqa: F401,F403,E402
|
IamMayankThakur/test-bigdata | adminmgr/media/code/A2/python/task/BD_026_109_110_sdrKORi.py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNeighbors(urls):
parts = re.split(r'\,+', urls)
return parts[0], parts[1]
def d... |
valitydev/fraudbusters | src/test/java/dev/vality/fraudbusters/converter/TrustConditionToConditionConverterTest.java | <filename>src/test/java/dev/vality/fraudbusters/converter/TrustConditionToConditionConverterTest.java<gh_stars>0
package dev.vality.fraudbusters.converter;
import dev.vality.fraudo.model.TrustCondition;
import dev.vality.trusted.tokens.Condition;
import dev.vality.trusted.tokens.YearsOffset;
import org.junit.jupiter.a... |
DEBANMC/dragonfly | server/cmd/doc.go | <filename>server/cmd/doc.go
// Package cmd implements a Minecraft specific command system, which may be used simply by 'plugging' it in
// and sending commands registered in an AvailableCommandsPacket.
//
// The cmd package handles commands in a specific way: It requires a struct to be passed to the cmd.New()
// functi... |
frroliveira/sqlipa | src/test/sqlipa/parser/TestASTParser.java | <gh_stars>0
package test.sqlipa.parser;
import static org.junit.Assert.*;
import java.io.StringReader;
import java.util.List;
import main.sqlipa.ast.ColumnDef;
import main.sqlipa.ast.IndexedColumn;
import main.sqlipa.ast.Node;
import main.sqlipa.ast.TypeName;
import main.sqlipa.ast.stmt.AnalyzeStmt;
import main.sqli... |
SWayfarer/swl2 | SWayfarer's Lib II/src/ru/swayfarer/swl2/asm/transfomer/fieldaccessors/FieldAccessorClassVisitor.java | <reponame>SWayfarer/swl2
package ru.swayfarer.swl2.asm.transfomer.fieldaccessors;
import ru.swayfarer.swl2.asm.AsmUtils;
import ru.swayfarer.swl2.asm.informated.ClassInfo;
import ru.swayfarer.swl2.asm.informated.FieldInfo;
import ru.swayfarer.swl2.asm.informated.MethodInfo;
import ru.swayfarer.swl2.asm.informated.visi... |
AsyncVoid/Industrial-Foregoing | src/main/java/com/buuz135/industrial/proxy/client/render/ContributorsCatEarsRender.java | <gh_stars>0
package com.buuz135.industrial.proxy.client.render;
import com.buuz135.industrial.proxy.client.ClientProxy;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;... |
isuthermography/spatialnde | demos/testregistration_projectionmismatch.py | <reponame>isuthermography/spatialnde
import sys
import copy
import json
from threading import Thread
try:
from cStringIO import StringIO # python 2.x
pass
except ImportError:
from io import StringIO # python 3.x
pass
import numpy as np
import dg_file as dgf
import dg_metadata as dgm
import dataguzzler... |
jessesleeping/my_peloton | src/postgres/backend/access/gist/gistxlog.cpp | <reponame>jessesleeping/my_peloton<gh_stars>1-10
/*-------------------------------------------------------------------------
*
* gistxlog.c
* WAL replay logic for GiST.
*
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of Califo... |
bardurdam/EventStore.JVM | src/main/scala/eventstore/util/DefaultFormats.scala | package eventstore
package util
import akka.util.{ ByteIterator, ByteStringBuilder }
import java.nio.ByteOrder.{ BIG_ENDIAN, LITTLE_ENDIAN }
object DefaultFormats extends DefaultFormats
trait DefaultFormats {
implicit object UuidFormat extends BytesFormat[Uuid] {
private val length = 16
// This is necess... |
JET31ZHANG/CppInOneHourADay | lesson4/exp_4_1.cpp | /*
Declare an array of integers and accessing its elements
*/
#include <iostream>
using namespace std;
int main()
{
int myNumbers [5] = {34, 56, -21, 5002, 365};
cout << "First element at index 0: " << myNumbers [0] << endl;
cout << "Second element at index 1: " << myNumbers [1] << endl;
cout ... |
dyna-dot/WebGL | sdk/demos/intel/fluid/demo.js | <filename>sdk/demos/intel/fluid/demo.js
/*
** Copyright (c) 2019 Intel Corporation
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitat... |
paolomococci/business-automation-workshop | Quarkus/sample-planning/src/main/java/local/mocaccino/planning/SamplePlanning.java | <gh_stars>1-10
package local.mocaccino.planning;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/sample")
public class SamplePlanning {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String sample() {
return "Hello from SampleP... |
Keneral/aframeworksbase1 | tools/aapt2/util/BigBuffer.cpp | <filename>tools/aapt2/util/BigBuffer.cpp<gh_stars>0
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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.o... |
atlassubbed/atlas-relax | test/effects/Tracker.js | // Tracker is used to log mutation events in order.
// * many edit permuations may lead to a correct outcome
// use this effect when the order matters
// * when testing final trees, use Renderer instead
module.exports = class Tracker {
constructor(events){
this.events = events;
}
log(type, f, t=f.tem... |
igor-sfdc/aura | aura-components/src/main/components/ui/outputSelect/outputSelectTest.js | /*
* Copyright (C) 2013 salesforce.com, inc.
*
* 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 ... |
chibaye/epass | src/ui/icons/caret.js | import React from 'react'
const style = {
fill: 'none',
stroke: '#000',
strokeWidth: 32,
strokeMiterlimit: 10
}
const data = {
down: {
viewBox: '0 0 512 512',
paths: [
{d: 'M342.43,238.23,268.3,327.32a16,16,0,0,1-24.6,0l-74.13-89.09A16,16,0,0,1,181.86,212H330.14A16,16,0... |
testingisdocumenting/webtau | webtau-cli/src/main/java/org/testingisdocumenting/webtau/cli/CliForegroundCommand.java | <reponame>testingisdocumenting/webtau
/*
* Copyright 2020 webtau maintainers
*
* 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... |
McLeodMoores/starling | examples/examples-simulated/src/main/java/com/mcleodmoores/examples/simulated/loader/legalentity/ExamplesLegalEntityLoader.java | <reponame>McLeodMoores/starling<gh_stars>1-10
/**
* Copyright (C) 2017 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.examples.simulated.loader.legalentity;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.opengamma.component.... |
34Audiovisual/Progetti_JUCE | TLDisplay/Source/PluginProcessor.cpp | <reponame>34Audiovisual/Progetti_JUCE
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.... |
yongliu-mdsol/openapi3-generator | gems/gems/ttfunk-1.5.1/lib/ttfunk/table/cmap/format00.rb | <reponame>yongliu-mdsol/openapi3-generator
require_relative '../../encoding/mac_roman'
require_relative '../../encoding/windows_1252'
module TTFunk
class Table
class Cmap
module Format00
attr_reader :language
attr_reader :code_map
# Expects a hash mapping character codes to glyph i... |
DougBurke/xspeclmodels | xspec/XSUtil/Utils/ProcessManager.h | //C++
#ifndef PROCESSMANAGER_H
#define PROCESSMANAGER_H 1
#include <xsTypes.h>
#include <map>
#include <vector>
#include <stdio.h>
#include <unistd.h>
#include <string>
struct TransferStruct
{
TransferStruct():
iValues(), dValues(), sValues(), status(0)
{}
std::vector<std::vector<int> > iValues;
... |
Tom-Pritchard/importer | src/main/java/com/norconex/importer/handler/ExternalHandler.java | /* Copyright 2018-2020 Norconex Inc.
*
* 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 o... |
DataDog/istio | galley/pkg/resource/accessor.go | <filename>galley/pkg/resource/accessor.go<gh_stars>1-10
// Copyright 2018 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICEN... |
iostream04/sunbird-utils | common-util/src/test/java/org/sunbird/common/request/CommonRequestValidatorTest.java | <filename>common-util/src/test/java/org/sunbird/common/request/CommonRequestValidatorTest.java
/** */
package org.sunbird.common.request;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.... |
gbf0722/gmall | gmall-search/src/test/java/com/atguigu/gmall/search/GmallSearchApplicationTests.java | package com.atguigu.gmall.search;
import com.atguigu.core.bean.QueryCondition;
import com.atguigu.core.bean.Resp;
import com.atguigu.gmall.pms.entity.*;
import com.atguigu.gmall.search.feign.GmallPmsFeign;
import com.atguigu.gmall.search.feign.GmallWmsFeign;
import com.atguigu.gmall.search.pojo.Goods;
import com.atgui... |
jcserracampos/catarse.js | legacy/src/vms/projects-subscription-report-vm.js | import m from 'mithril';
import { commonPayment } from '../api';
import models from '../models';
const { replaceDiacritics } = window;
const vm = commonPayment.filtersVM({
status: 'in',
search_index: 'fts(portuguese)',
reward_external_id: 'eq',
payment_method: 'eq',
project_id:... |
SEED0228/kGenProg | src/main/java/jp/kusumotolab/kgenprog/ga/validation/LimitedNumberCodeValidation.java | <reponame>SEED0228/kGenProg
package jp.kusumotolab.kgenprog.ga.validation;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jp.kusumotolab.kgenprog.ga.variant.Base;
import jp.kusumotolab.kgenprog.ga.variant.Gene;
import jp.kusumotolab.kgenprog.project.test.TestR... |
mathewhodson/watchman | watchman/tests/integration/test_find.py | <reponame>mathewhodson/watchman
# vim:ts=4:sw=4:et:
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... |
drmatthews/slidecrop_pyqt | slidecrop/gui/segmentation_ui.py | <filename>slidecrop/gui/segmentation_ui.py
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'slidecrop\resources\segmentation.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Ma... |
openMF/egalite-web-service | src/main/java/com/bfsi/mfi/dao/CustomerInfoDao.java | package com.bfsi.mfi.dao;
import java.util.List;
import com.bfsi.mfi.entity.CustomerDocumentInfo;
import com.bfsi.mfi.entity.CustomerEnrolmentInfo;
import com.bfsi.mfi.entity.CustomerInfo;
public interface CustomerInfoDao extends MaintenanceDao<CustomerInfo> {
void insertCustomerInfo(CustomerInfo customerInfo);
... |
Amity-Network/amity | contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSController.h | <filename>contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSController.h
/*
NSController.h
Application Kit
Copyright (c) 2002-2015, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSKeyValueBinding.h>
#import <CoreFoundation/CoreFoundation.h>
NS_ASSUME_NONNU... |
melan/go-force | sobjects/relationshipinfo.go | // This file was generated for SObject RelationshipInfo, API Version v43.0 at 2018-07-30 03:48:04.421676602 -0400 EDT m=+50.766187920
package sobjects
import (
"fmt"
"strings"
)
type RelationshipInfo struct {
BaseSObject
ChildSobjectId string `force:",omitempty"`
DurableId string `force:",omi... |
lapd87/SoftUniJavaOOPBasics | 01DefiningClasses/src/_06RawData/Main.java | package _06RawData;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 14.6.2018 г.
* Time: 20:29 ч.
*/
public class Main {
public static ... |
Irio/homebrew-cask | Casks/macvim.rb | class Macvim < Cask
if MacOS.version == :mavericks
url 'https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz'
sha1 'dc983ae1e3ffae1c80f06eea9eacee49019a0c8a'
else
url 'https://github.com/eee19/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mountain... |
atbashEE/atbash-octopus | impl/non-web/oauth2-oidc-sdk/src/main/java/be/atbash/ee/oauth2/sdk/device/DeviceCodeGrant.java | /*
* Copyright 2014-2019 <NAME> (https://www.atbash.be)
*
* 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 appl... |
aut0/vcml | include/vcml/debugging/vncserver.h | /******************************************************************************
* *
* Copyright 2018 <NAME> *
* *
* Licensed un... |
re995/fuchsia | src/ui/a11y/lib/view/view_wrapper.cc | <reponame>re995/fuchsia
// Copyright 2020 The Fuchsia 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 "view_wrapper.h"
#include <fuchsia/accessibility/semantics/cpp/fidl.h>
#include <lib/async/default.h>
#include <lib/syslog... |
imsatyam/techlearn | content/programming-realm/code_problems/src/main/java/com/satyam/problem/leetcode/medium/LC43MultiplyStrings.java | package com.satyam.problem.leetcode.medium;
/**
LC #43
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string.
Example 1:
Input: num1 = "2", num2 = "3"
Output: "6"
Example 2:
Input: num1 = "123", num2 = "456"
Output: "56088"
... |
clinlfoundation/EMBOX | build/base/gen/include/config/embox/kernel/timer/itimer.h | /* Generated by GNU Make 4.2.1. Do not edit. */
#ifndef __CONFIG__embox__kernel__timer__itimer__H_
#define __CONFIG__embox__kernel__timer__itimer__H_
// This is the most specific implementation type
#ifndef OPTION_NUMBER_embox__kernel__timer__itimer__itimer_quantity
#define OPTION_NUMBER_embox__kernel__timer__itimer_... |
factset/enterprise-sdk | code/java/ProcuretoPayAPISCIM/v1/src/main/java/com/factset/sdk/ProcuretoPayAPISCIM/models/GroupResource.java | /*
* FactSet SCIM API
* FactSet's SCIM API implementation.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.factset.sdk.ProcuretoPa... |
mfayk/KINC | src/core/ccmatrix.h | #ifndef CCMATRIX_H
#define CCMATRIX_H
#include "pairwise_matrix.h"
/*!
* This class implements the cluster matrix data object. A cluster matrix is a
* pairwise matrix where each pair-cluster element is a sample mask denoting
* whether a sample belongs in the cluster. The matrix data can be accessed
* using the p... |
RobotLocomotion/drake-python3.7 | systems/framework/system_output.cc | #include "drake/systems/framework/system_output.h"
DRAKE_DEFINE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_SCALARS(
class ::drake::systems::SystemOutput)
|
DorsaIO/jaydata | lib/Types/StorageProviders/SqLite/SqlExpressionMonitor.js | 'use strict';
var _core = require('../../../../core.js');
var _core2 = _interopRequireDefault(_core);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _core.$C)('$data.sqLite.SqlExpressionMonitor', _core2.default.Expressions.ExpressionMonitor, null, {
construct... |
djangojeng-e/djangoproejcts | bookmark_app/bookmark/views.py | <filename>bookmark_app/bookmark/views.py<gh_stars>0
from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import ListView, CreateView, DetailView, UpdateView, DeleteView
from .models import Bookmark
# Create your views here.
class BookmarkListView(ListView):
model =... |
npocmaka/Windows-Server-2003 | ds/adsi/router/oledbutl.hxx | //-----------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: oledbutl.hxx
//
// Contents: Utility object versions for ADSI row providers
//
// Functions:
//
// Notes:
//
//
// Histor... |
Killua010/random-things-API-E-Commerce | src/main/java/br/com/randomthings/domain/Stock.java | <reponame>Killua010/random-things-API-E-Commerce
package br.com.randomthings.domain;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import ... |
ontio/libcxx-mirror | test/std/strings/string.view/string.view.ops/compare.sv.pass.cpp | <reponame>ontio/libcxx-mirror
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//... |
ArcticReal/eCommerce | plugins/eCommerce/src/main/java/com/skytala/eCommerce/domain/workeffort/relations/workEffort/control/note/WorkEffortNoteController.java | package com.skytala.eCommerce.domain.workeffort.relations.workEffort.control.note;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.h... |
zhusongm/AdaptiveCards | source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRIBaseActionElementRenderer.h | //
// ACRIBaseActionElementRenderer
// ACRIBaseActionElementRenderer.h
//
// Copyright © 2017 Microsoft. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "HostConfig.h"
#import "BaseActionElement.h"
#import "ACRIContentHoldingView.h"
using namespace AdaptiveCards;
@protoco... |
johanrydstrom/FluentLenium | fluentlenium-core/src/main/java/org/fluentlenium/core/wait/FluentWait.java | /**
* 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 writing, software
* dist... |
openconnectio/openmanage | pkg/containersvc/mockinfo.go | package containersvc
type MockContainerSvcInfo struct {
}
func NewMockContainerSvcInfo() *MockContainerSvcInfo {
return &MockContainerSvcInfo{}
}
func (m *MockContainerSvcInfo) GetLocalContainerInstanceID() string {
return "local-containerInstanceID"
}
func (m *MockContainerSvcInfo) GetContainerClusterID() string... |
ShipChain/baseline | examples/radish34/ui/src/components/AddSKUField.js | <filename>examples/radish34/ui/src/components/AddSKUField.js
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { Field, ErrorMessage } from 'formik';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import TextField from '@material-u... |
christophersiem/MoodBoos | frontend/src/components/dialogs/FriendDeleteDialog.js | <reponame>christophersiem/MoodBoos
import React, { useState } from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '... |
hamusuke0323/TwitterForMinecraftFabric | src/main/java/com/hamusuke/twitter4mc/gui/widget/ScalableImageButton.java | <reponame>hamusuke0323/TwitterForMinecraftFabric
package com.hamusuke.twitter4mc.gui.widget;
import com.mojang.blaze3d.systems.RenderSystem;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.util.NarratorManager;
impor... |
WalterHu/DemonCat | app/src/main/java/com/demoncat/dcapp/mvp/impl/MvpActivity.java | <reponame>WalterHu/DemonCat
/**
* Copyright 2018 hubohua
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless require... |
45258E9F/IntPTI | src/org/sosy_lab/cpachecker/cpa/range/summary/RangeSummaryTransferRelation.java | <reponame>45258E9F/IntPTI
/*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 <NAME>
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.cpa.range... |
guywmartin/genetic-constructor-ce | storage-ext/test/http/routes/version.js | "use strict";
var assert = require("assert");
var async = require("async");
var request = require("supertest");
var describeAppTest = require("../../api-app");
var versionRegEx = /^\d+\.\d+\.\d+$/;
describeAppTest("http", function (app) {
describe("version routes", function () {
it("should return a version",... |
MrStronger/TimeNote | src/routes/Hall/modules/hall.js | <filename>src/routes/Hall/modules/hall.js
import { combineReducers } from 'redux'
import CardReducer from './cardCase'
export default combineReducers({
CardData: CardReducer
})
|
junmin-zhu/chromium-rivertrail | ui/views/examples/scroll_view_example.h | <filename>ui/views/examples/scroll_view_example.h
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_
#define UI_VIEWS_EXAMPLES_SCROLL_VIEW_EXAMPLE_H_
#... |
Ayusummer/JuniorLessons_beta | BigDataMicroMajor/Python/DailyHomework/Lesson10_numpy/4_numpyNormalfunction.py | <gh_stars>1-10
# -*- coding: utf-8 -*-
# @Time : 2020/11/10 18:39
# @Author : 咸鱼型233
# @File : 4_numpyNormalFunction.py
# @Software: PyCharm
# @Function: numpy求平均值,方差,标准差
import numpy as np
height_arr = np.random.normal(169, 4, 10) # 10个身高
weight_arr = np.random.normal(105, 10, 10) # 10个体重
values_arr... |
erezrokah/appsmith | app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Condition.java | package com.appsmith.external.models;
import com.appsmith.external.constants.ConditionalOperator;
import com.appsmith.external.constants.DataType;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginError;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginException;
import com.f... |
prasadrao82/angular-pioc | dist/out-tsc/app/@theme/components/switcher/switcher.component.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("@angular/core");
var SwitcherComponent = /** @class */ (function () {
function SwitcherComponent() {
this.valueChange = new core_1.EventEmitter();
}
SwitcherComponent.pr... |
pasmuss/cmssw | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalGammaJetOutput_cff.py | import FWCore.ParameterSet.Config as cms
# output block for alcastream HCAL Dijets
# output module
# module alcastreamHcalGammaJetOutput = PoolOutputModule
alcastreamHcalGammaJetOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep *_GammaJetProd_*_*')
)
|
TheSilverEcho/ZeroPointAPI | src/main/java/me/thesilverecho/zeropoint/api/ui/widgets/NotificationComponent.java | package me.thesilverecho.zeropoint.api.ui.widgets;
public class NotificationComponent
{
private float x, y, w, h;
public NotificationComponent(float x, float y, float w, float h)
{
this.x = x;
this.y = y;
this.w = w;
this.h = h;
}
}
|
io7m/r2 | com.io7m.r2.transforms/src/main/java/com/io7m/r2/transforms/R2TransformST.java | <filename>com.io7m.r2.transforms/src/main/java/com/io7m/r2/transforms/R2TransformST.java
/*
* Copyright © 2016 <<EMAIL>> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this ... |
zhangjun0x01/streamx | streamx-flink/streamx-flink-core/src/main/scala/com/streamxhub/streamx/flink/core/scala/failover/FailoverChecker.scala | /*
* Copyright (c) 2019 The StreamX Project
* <p>
* 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 Apach... |
CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/tools/pyelf/weaver/machine.py | ##############################################################################
# Copyright (c) 2007 Open Kernel Labs, Inc. (Copyright Holder).
# All rights reserved.
#
# 1. Redistribution and use of OKL4 (Software) in source and binary
# forms, with or without modification, are permitted provided that the
# following ... |
sRNAworkbenchuea/UEA_sRNA_Workbench | src/main/java/uk/ac/uea/cmp/srnaworkbench/io/SRNAFastaReader.java | <gh_stars>1-10
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package uk.ac.uea.cmp.srnaworkbench.io;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
import java.util.logging.Level;
import uk.ac.uea.cmp.srnaworkbench.utils.StringUtils;
import stat... |
sunadm/ClickHouse | dbms/src/Storages/System/StorageSystemQuotaUsage.cpp | #include <Storages/System/StorageSystemQuotaUsage.h>
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypesNumber.h>
#include <DataTypes/DataTypeUUID.h>
#include <DataTypes/DataTypeDateTime.h>
#include <DataTypes/DataTypeNullable.h>
#include <Interpreters/Context.h>
#include <Access/AccessControlManager.h>... |
tongji4m3/boying | documents/课程文档/10.软工/第11组——博影--娱乐票务平台/项目源码/后端/boying/boying-user/src/main/java/com/tongji/boying/service/UserService.java | <gh_stars>10-100
package com.tongji.boying.service;
import com.tongji.boying.dto.userParam.*;
import com.tongji.boying.model.BoyingUser;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.transaction.annotation.Transactional;
/**
* 用户管理Service
*
* @author tongji4m3
*/
pub... |
dalisoft/dev-env | backend/fastify/src/fastify-plugins/fastify-apollo-server.js | <reponame>dalisoft/dev-env
import { ApolloServer } from 'apollo-server-fastify';
import schema from '../graphql/schema/index.js';
import { dev, graphiql, corsWhitelist } from '../config.js';
export default async (fastify) => {
// Create instance
const apollo = new ApolloServer({
schema,
playground: graphiq... |
dshorthouse/occurrence | occurrence-search/src/main/java/org/gbif/occurrence/search/clb/NameUsageMatchingServiceClient.java | <filename>occurrence-search/src/main/java/org/gbif/occurrence/search/clb/NameUsageMatchingServiceClient.java
package org.gbif.occurrence.search.clb;
import org.gbif.api.model.checklistbank.NameUsageMatch;
import org.gbif.api.model.common.LinneanClassification;
import org.gbif.api.service.checklistbank.NameUsageMatchin... |
kmelodi/EasyBimehLanding_JAVA | src/main/java/ir/notifaano/server/models/BaseModelUploadBuilder.java | /*
* EasyBimehLandingLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
package ir.notifaano.server.models;
import java.util.*;
public class BaseModelUploadBuilder {
//the instance to build
private BaseModelUpload baseModelUpload;
/**
* Defau... |
BryanNoller/OrionUO | OrionUO/GLEngine/GLTexture.cpp | <reponame>BryanNoller/OrionUO
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** GLTexture.cpp
**
** Copyright (C) Augu... |
johannes-darms/OLS | ols-apps/ols-config-importer/src/main/java/uk/ac/ebi/spot/ols/YamlConfigParsingException.java | <reponame>johannes-darms/OLS<gh_stars>10-100
package uk.ac.ebi.spot.ols;
/**
* @author <NAME>
* @date 20/08/2015
* Samples, Phenotypes and Ontologies Team, EMBL-EBI
*/
public class YamlConfigParsingException extends RuntimeException {
public YamlConfigParsingException(String message) {
super(message);
... |
xmf-xmodeler/MosaicFX | src/tool/clients/undo/UndoPlugin.java | <reponame>xmf-xmodeler/MosaicFX
package tool.clients.undo;
// TODO: Auto-generated Javadoc
/**
* The Class UndoPlugin.
*/
public class UndoPlugin {
/** The plugin. */
private static UndoPlugin plugin;
/**
* Instantiates a new undo plugin.
*/
public UndoPlugin() {
plugin = this;
}
/**
* Gets the defa... |
AmrDeveloper/Astro | src/astro/executor/StreamConsumer.java | <gh_stars>10-100
package astro.executor;
import java.io.IOException;
import java.io.InputStream;
public class StreamConsumer extends Thread {
private InputStream mInputStream;
private IOException mExceptionIO;
private StringBuilder mOutputBuilder;
public StreamConsumer(InputStream stream) {
... |
dogma-io/skeema | src/validators/utils.js | <reponame>dogma-io/skeema
/** @flow */
import type {State} from '../types'
export function initState(): State {
return {
errors: [],
warnings: [],
}
}
export function mergeState(...states: Array<State>): State {
return states.reduce(
(accumulator: State, currentValue: State): State => ({
erro... |
ShaiRoitman/clu | clu/Utils/BlockingTaskQueue.cpp | <gh_stars>0
#include "BlockingTaskQueue.h"
#include <string>
#include <chrono>
#include <thread>
#include <iostream>
#include <deque>
#include <mutex>
#include <atomic>
using namespace std;
static int Created = 0;
static int Running = 1;
static int Stopping = 2;
static int Stopped = 3;
BlockingTaskQueue::BlockingTa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.