repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
BinmingWen/base-code | Exception And Thread/src/Exception/AuctionException.java | package Exception;
public class AuctionException extends Exception{
public AuctionException(){}
public AuctionException(String s){
super(s);
}
}
|
DirectXceriD/gridgain | modules/ml/src/main/java/org/apache/ignite/ml/composition/boosting/convergence/median/MedianOfMedianConvergenceChecker.java | <reponame>DirectXceriD/gridgain
/*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with th... |
Reclusive-Trader/upbit-client | swg_generated/cpp/cpprest/model/MarketInfo.h | <reponame>Reclusive-Trader/upbit-client<gh_stars>10-100
/**
* Upbit Open API
* ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [<EMAIL>]
*
* OpenAPI spec version: 1.0.0
* Contact: <EMAIL>
*
* NOTE: This class i... |
liov/tiga | utils/net/http/api/graphql/scalar.go | package gql
import (
"errors"
"strconv"
)
type Uint64 uint64
func (Uint64) ImplementsGraphQLType(name string) bool {
return name == "Uint64"
}
func (i *Uint64) UnmarshalGraphQL(input interface{}) error {
var err error
switch input := input.(type) {
case uint64:
*i = Uint64(input)
case int64:
*i = Uint64(... |
forsakenyang/xLua | build/ai/weiqi/move_reasons.h | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* This is GNU Go, a Go program. Contact <EMAIL>, or see *
* http://www.gnu.org/software/gnugo/ for more information. *
* *
* Copyright 1999, 2000, 2001, 2002, 2003... |
davidlukerice/genSynth | app/app/routes/application.js | import Ember from 'ember';
import config from '../config/environment';
import analytics from 'gen-synth/mixins/analytics-handler';
export default Ember.Route.extend(analytics, {
beforeModel: function() {
this._super();
var self = this;
Ember.A([
'sessionAuthenticationSucceeded',
'sessionAuth... |
tjhart/swivel | swivel-server/src/test/webapp/js/EditStubControllerTest.js | <filename>swivel-server/src/test/webapp/js/EditStubControllerTest.js
"use strict";
define(['test/lib/Squire', 'jQuery', 'jsHamcrest', 'jsMockito'], function (Squire, $, jsHamcrest, jsMockito) {
var injector = new Squire(), mockUtils = {};
jsHamcrest.Integration.QUnit();
jsMockito.Integration.QUnit();
... |
eewiki/CY8CKIT-062-BLE | CY8CKIT-062-BLE/BLE Weather Station.cydsn/Generated_Source/PSoC6/pdl/middleware/ble/cy_ble_lns.h | /***************************************************************************//**
* \file cy_ble_lns.h
* \version 1.0
*
* \brief
* This file contains the function prototypes and constants used in
* the Location And Navigation Service of the BLE Component.
*
*************************************************************... |
NiklasRosenstein/slap | src/slap/ext/application/test.py | import logging
import os
import typing as t
from pathlib import Path
from nr.util.singleton import NotSet
from slap.application import IO, Application, argument, option
from slap.ext.application.venv import VenvAwareCommand
from slap.plugins import ApplicationPlugin
from slap.project import Project
logger = logging.... |
longxiaobaiWJ/zce-cli | test/mock/templates/filters/index.js | <reponame>longxiaobaiWJ/zce-cli<gh_stars>1-10
module.exports = {
prompts: {
sass: { type: 'confirm', message: 'Use sass preprocessor?', default: true }
},
filters: {
'*/*.scss': a => a.sass,
'*/*.css': a => !a.sass
}
}
|
pimbongaerts/mesophotic | config/initializers/application.rb | <filename>config/initializers/application.rb<gh_stars>1-10
# Autoload paths
Rails.application.config.autoload_paths += %W(#{Rails.application.config.root}/lib)
Rails.application.config.autoload_paths += Dir["#{Rails.application.config.root}/lib/**/"]
# Do not swallow errors in after_commit/after_rollback callbacks.
Ra... |
yunstanford/transmute-core | transmute_core/function/__init__.py | from ..attributes import TransmuteAttributes
from .signature import FunctionSignature
from .response import Response
from .transmute_function import TransmuteFunction
__all__ = ["FunctionSignature", "Response", "TransmuteAttributes", "TransmuteFunction"]
|
zivchang/web-simulator | lib/ripple/config.js | /*
* Copyright 2011 Research In Motion Limited.
*
* 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 ... |
gkno/seqan | core/tests/align/test_alignment_dp_matrix_navigator.h | // ==========================================================================
// test_alignment_dp_matrix_navigator.h
// ==========================================================================
// Copyright (c) 2006-2013, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in sou... |
ScalablyTyped/SlinkyTyped | a/activex-libreoffice/src/main/scala/typingsSlinky/activexLibreoffice/com_/sun/star/sdbc/SQLException.scala | package typingsSlinky.activexLibreoffice.com_.sun.star.sdbc
import typingsSlinky.activexLibreoffice.com_.sun.star.uno.Exception
import typingsSlinky.activexLibreoffice.com_.sun.star.uno.XInterface
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.anno... |
dehuszar/resume-builder-fe | app/adapters/application.js | <filename>app/adapters/application.js
export default DS.SailsRESTAdapter.extend({
// You will want to change this api-host url
// It is presently set up to accommodate a local install
host: 'http://0.0.0.0:1337',
log: true
}); |
florianl/u-root | pkg/pci/class.go | <reponame>florianl/u-root<filename>pkg/pci/class.go
// Copyright 2021 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package pci
// Class definitions for PCI.
const (
ClassNotDefined = 0x0000
ClassNotDefinedVGA = 0x0... |
borisboychev/SoftUni | Python_Advanced_Softuni/Modules_Lab/venv/05.fib_sequence.py | <reponame>borisboychev/SoftUni<filename>Python_Advanced_Softuni/Modules_Lab/venv/05.fib_sequence.py
from fibonacci_sequence.sequence import create_sequence , locate
create_sequence(9)
locate(1) |
rdtr/lamvery | lamvery/env.py | <reponame>rdtr/lamvery
# -*- coding: utf-8 -*-
import json
import os
ENV_FILE_NAME = '.lamvery_env.json'
def load():
try:
env = json.load(open(ENV_FILE_NAME, 'r'))
for k, v in env.items():
os.environ.setdefault(k, v)
except:
pass
|
byu-oit/cas-mfa | cas-mfa-java/src/main/java/net/unicon/cas/mfa/MultiFactorAwareCentralAuthenticationService.java | <reponame>byu-oit/cas-mfa<gh_stars>0
package net.unicon.cas.mfa;
import com.codahale.metrics.annotation.Counted;
import com.codahale.metrics.annotation.Metered;
import com.codahale.metrics.annotation.Timed;
import org.jasig.cas.authentication.Credential;
import org.jasig.cas.authentication.handler.Authentication... |
fkrasnowski/portfolio-page | src/components/svg/shapes.js | <reponame>fkrasnowski/portfolio-page
import React from "react"
import {
HeatGradient,
MilkibloodGradient,
WaterGradient,
Gradient,
} from "./gardients"
import { css } from "@emotion/core"
import { useTheme } from "emotion-theming"
export function Triangle({ id }) {
return (
<svg
xmlns="http://www.w... |
Nikoula86/organoidSegment | morgana/ImageTools/fluorescence/computefluorescence.py | import numpy as np
import pandas as pd
import os, tqdm
from scipy.ndimage import map_coordinates
from skimage.io import imread
from scipy.ndimage import label
from skimage import measure, img_as_bool
if __name__ == '__main__':
import sys
sys.path.append(os.path.join('..','..'))
from morgana.ImageTools.morphol... |
WDeepali/blockchaindemo | vendor/github.com/manudrijvers/amcl/go/GCM.go | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
RocMarshal/fevernova | src/main/java/com/github/fevernova/io/data/type/impl/UAbstDate.java | package com.github.fevernova.io.data.type.impl;
import com.github.fevernova.io.data.type.MethodType;
import com.github.fevernova.io.data.type.UData;
import com.github.fevernova.io.data.type.fromto.UAbstFrom;
import com.github.fevernova.io.data.type.fromto.UAbstTo;
import java.text.ParseException;
import java.text.Si... |
cavidano/natura11y-documentation | src/prismjs/plugins/unescaped-markup/prism-unescaped-markup.min.js | "undefined" != typeof Prism &&
"undefined" != typeof document &&
(Element.prototype.matches ||
(Element.prototype.matches =
Element.prototype.msMatchesSelector ||
Element.prototype.webkitMatchesSelector),
(Prism.plugins.UnescapedMarkup = !0),
Prism.hooks.add("before-highlightall", function (e) {
e.selecto... |
cartola-erp/domain-java | cartola-domain/src/main/java/net/cartola/domain/PerfilTipo.java | package net.cartola.domain;
/**
* 12/04/2016 17:12:05
* @author murilo
*/
public enum PerfilTipo {
CLIENTE,
MAGICO,
VENDAS
}
|
vusion/vusion-api | out/test/cases/VueFile/transformDecomposed.spec.js | <reponame>vusion/vusion-api
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) ... |
glatteis/tacas21-artifact | artifact/storm/src/storm-parsers/parser/SparseItemLabelingParser.h | #pragma once
#include <string>
#include <cstdint>
#include <boost/optional.hpp>
#include "storm-parsers/parser/MappedFile.h"
#include "storm/models/sparse/StateLabeling.h"
#include "storm/models/sparse/ChoiceLabeling.h"
namespace storm {
namespace parser {
/*!
* This class can be used to parse a labeling fil... |
541660139/qjtv | app/src/main/java/com/lwd/qjtv/mvp/ui/callback/WatchRecordeCallback.java | package com.lwd.qjtv.mvp.ui.callback;
/**
* Email:<EMAIL>
* Created by ZhengQian on 2017/5/17.
*/
public interface WatchRecordeCallback {
void clickCallback();
}
|
stephaniestroka/digitalid-core | cache/src/main/java/net/digitalid/core/cache/CacheModule.java | <filename>cache/src/main/java/net/digitalid/core/cache/CacheModule.java
/*
* Copyright (C) 2017 Synacts GmbH, Switzerland (<EMAIL>)
*
* 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
*
* ... |
toadkicker/railsstrap | lib/railsstrap/helpers/alert_box_helper.rb | <filename>lib/railsstrap/helpers/alert_box_helper.rb
require 'railsstrap/classes/alert_box'
module Railsstrap
module Helpers
# Displays a Bootstrap-styled alert message.
# @see http://getbootstrap.com/components/docs/4.0/alerts
# @return [String] the HTML to display a Bootstrap-styled alert message.
... |
apache/forrest | whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/AbstractStructurer.java | <filename>whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/testing/org/apache/forrest/dispatcher/AbstractStructurer.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional infor... |
parthagar/TTN-Exercises | Java Exercises/Day 2/12.java | <filename>Java Exercises/Day 2/12.java<gh_stars>0
class Parent extends Grandparent {
{
System.out.println("instance - parent");
}
public Parent() {
System.out.println("constructor - parent");
}
static {
System.out.println("static - parent");
}
}
class Grandparent {
... |
tqrg-bot/orientdb | core/src/test/java/com/orientechnologies/orient/core/sql/OOQueryOperatorTest.java | <reponame>tqrg-bot/orientdb
package com.orientechnologies.orient.core.sql;
import com.orientechnologies.orient.core.sql.operator.OQueryOperator;
import com.orientechnologies.orient.core.sql.operator.OQueryOperatorAnd;
import com.orientechnologies.orient.core.sql.operator.OQueryOperatorBetween;
import com.orient... |
marcinz/legate.pandas | tests/pandas/df_merge_index.py | # Copyright 2021 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... |
leandrochomp/react-skeleton | node_modules/watchify/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/example/header.js | <gh_stars>1000+
var splicer = require('../');
var through = require('through2');
var JSONStream = require('JSONStream');
var split = require('split');
var headerData = {};
var headers = through.obj(function (buf, enc, next) {
var line = buf.toString('utf8');
if (line === '') {
this.push(headerData);
... |
himanshiLt/prepack | test/serializer/optimized-functions/DefineOptFuncInsideFuncInsideOptFunc.js | <reponame>himanshiLt/prepack
// arrayNestedOptimizedFunctionsEnabled
// skip lint
// The original issue here was that nested is defined inside of fn2 which is a non-optimized function
// called by fn (an optimized function). That caused Prepack to not detect that nested was nested
// in optimize.
function fn2(props) {... |
pledac/trust-code | src/ThHyd/Quasi_Compressible/VDF/EDO_Pression_th_VDF.cpp | /****************************************************************************
* Copyright (c) 2020, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retai... |
anirudhrb/lisa | lisa/tools/hibernation_setup.py | <filename>lisa/tools/hibernation_setup.py
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from __future__ import annotations
import re
from typing import List, Pattern, Type
from lisa.executable import Tool
from lisa.util import find_patterns_in_lines
from .dmesg import Dmesg
from .git impor... |
maxzhenzhera/my_vocab_backend | app/core/settings/app/mixins/logging_.py | from pydantic import (
BaseSettings,
Field,
SecretStr
)
from ...dataclasses_.logging_ import (
LoggingSettings,
TGLoggingSettings
)
__all__ = ['AppSettingsLoggingMixin']
class AppSettingsLoggingMixin(BaseSettings):
logging_level: str = Field('INFO', env='LOGGING_LEVEL')
logging_tg_token... |
graphcore/poprithms | poprithms/poprithms/include/poprithms/memory/nest/sett.hpp | // Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#ifndef POPRITHMS_MEMORY_NEST_SETT_HPP
#define POPRITHMS_MEMORY_NEST_SETT_HPP
#include <vector>
#include <poprithms/memory/nest/optionalset.hpp>
#include <poprithms/memory/nest/stripe.hpp>
namespace poprithms {
namespace memory {
namespace nest {
// Online d... |
icco/fog | lib/fog/go_grid/requests/compute/grid_server_power.rb | module Fog
module Compute
class GoGrid
class Real
# Start, Stop or Restart a server
#
# ==== Parameters
# * 'server'<~String> - id or name of server to power
# * 'power'<~String> - power operation, in ['restart', 'start', 'stop']
#
# ==== Returns
... |
lizzie2008/rapid4you | rapid-api/rapid-api-web/src/main/java/tech/lancelot/controller/storage/AliOssController.java | <filename>rapid-api/rapid-api-web/src/main/java/tech/lancelot/controller/storage/AliOssController.java
package tech.lancelot.controller.storage;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.ListObjectsRequest;
import com.aliyun.oss.model.OSSObjectSummary;
import com.al... |
scottwedge/OpenStack-Stein | freezer-7.1.0/freezer/scheduler/win_daemon.py | # Copyright 2015 Hewlett-Packard
#
# 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 writin... |
sigurasg/ghidra | Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramSelection.java | <filename>Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramSelection.java
/* ###
* IP: GHIDRA
*
* 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... |
mdvx/TimeBase | java/timebase/server/src/main/java/deltix/qsrv/hf/tickdb/lang/runtime/RawMessageSet.java | package deltix.qsrv.hf.tickdb.lang.runtime;
import deltix.qsrv.hf.pub.RawMessage;
import java.util.HashSet;
/**
*
*/
public final class RawMessageSet {
private final HashSet <RawMessage> ms = new HashSet <RawMessage> ();
public boolean alreadyContains (RawMessage msg) {
if (ms.contains (... |
roboterclubaachen/xpcc | src/xpcc/math/filter/fir_impl.hpp | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2009, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
mohnoor94/LearningScala | src/main/scala/_060_lazy_vals/_08_lazy_stream/EmptyStream.scala | <reponame>mohnoor94/LearningScala
package _060_lazy_vals._08_lazy_stream
object EmptyStream extends MyStream[Nothing] {
override def isEmpty: Boolean = true
override def head: Nothing = throw new NoSuchElementException("No head on empty stream!")
override def tail: MyStream[Nothing] = throw new NoSuchElementEx... |
AngelEngineer314/Huru_Front_Mobile_App | src/screen/category/Category.js | import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
import {
SafeAreaView, View, Text, Dimensions, TouchableOpacity, StyleSheet
} from 'react-native';
import BottomSheet from '../../components/modules/react-native-gesture-bottom-sheet/src/BottomSheet';
import Dashboard from '../dashboard... |
SatYu26/DS-Algo | Happy Number/solution.py | class Solution:
def isHappy(self, n: int) -> bool:
if n==1:
return True
while True:
res=0
while(n>0):
r=n%10
res+=(r**2)
n=n//10
print(res)
if res==1:
return True
i... |
JasonLeeSJTU/Algorithms_Python | jianzhi_offer_36.py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: <NAME>
@license: (C) Copyright @ <NAME>
@contact: <EMAIL>
@file: jianzhi_offer_36.py
@time: 2019/3/24 21:39
@desc:
题目描述:
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
输入一个数组,求出这个数组中的逆序对的总数P。并将P对1000000007取模的结果输出。
即输出P%1000000007
'''
def inverse_pairs(data):
... |
kmisiunas/GeoScala | src/main/scala/com/misiunas/geoscala/grid/Grid.scala | <filename>src/main/scala/com/misiunas/geoscala/grid/Grid.scala<gh_stars>1-10
package com.misiunas.geoscala.grid
import com.misiunas.geoscala.Point
/**
* == Grid on the landscape ==
* User: <EMAIL>
* Date: 21/08/2013
* Time: 14:37
*/
trait Grid[A] {
def apply(p: Point): A
protected def findBin(d: Double* )
... |
hosomi/LeetCode | #0135.candy.cpp | <gh_stars>0
class Solution {
public:
int candy(vector<int>& ratings) {
int size = ratings.size();
vector<int> result(size, 1);
for (int i = 1; i < size; ++i) {
if (ratings[i] > ratings[i - 1]) {
result[i] = result[i - 1] + 1;
}
}
int ... |
luizfilipe/shopping-cart | server.js | <filename>server.js
import express from 'express'
const app = express()
app.disable('etag')
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*')
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
next()
})
app.get('/products', (req, res, next) =>... |
benety/mongo | jstests/noPassthrough/do_not_drop_coll_after_succesful_out.js | <reponame>benety/mongo
// Confirms that there's no attempt to drop a temp collection after $out is performed.
(function() {
"use strict";
// Prevent the mongo shell from gossiping its cluster time, since this will increase the amount
// of data logged for each op.
TestData.skipGossipingClusterTime = true;
const conn ... |
Jia-shuaitao/esa-restlight | restlight-server/src/test/java/esa/restlight/server/schedule/TimeoutSchedulerTest.java | <filename>restlight-server/src/test/java/esa/restlight/server/schedule/TimeoutSchedulerTest.java
/*
* Copyright 2021 OPPO ESA Stack 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 a... |
dieterpl/JAGE | src/main/java/JAGE/GUI/MainView/MainView.java | <gh_stars>0
/*
* Copyright 2020 <NAME>
* All rights reserved.
*/
package JAGE.GUI.MainView;
import JAGE.display.FrameBuffer;
import JAGE.display.GPU;
import javafx.animation.AnimationTimer;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import... |
juanpernu/BilogWeb | pages/faqs.js | <reponame>juanpernu/BilogWeb
import Layout from '../components/Layout';
import Cover from '../components/Cover/Cover';
import Accordion from '../components/Faq';
import { faqs } from "../mocks/faqs";
export default () => (
<Layout>
<Cover
text="Preguntas frecuentes"
paragraph="Te dejamos a mano las ... |
roivaz/marin3r | pkg/reconcilers/operator/discoveryservice/generators/service_account_test.go | package generators
import (
"testing"
"time"
operatorv1alpha1 "github.com/3scale-ops/marin3r/apis/operator.marin3r/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
func TestGeneratorOptions_... |
fossabot/arctic | engine/rgb.h | <filename>engine/rgb.h
// The MIT License(MIT)
//
// Copyright 2017 Huldra
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
//... |
kevin70/houge | houge-server-logic/src/main/java/cool/houge/logic/handler/GroupMessageHandler.java | <reponame>kevin70/houge<gh_stars>1-10
/*
* Copyright 2019-2021 the original author or 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/LIC... |
M10beretta/java | src/com/mber/javarush/task/task03/task0303/Solution.java | <gh_stars>0
package com.mber.javarush.task.task03.task0303;
/*
Обмен валют
*/
public class Solution {
public static void main(String[] args) {
double usd1 = convertEurToUsd(100, 0.8);
double usd2 = convertEurToUsd(200, 0.8);
System.out.println(usd1);
System.out.println(usd2);
... |
Nalhin/Leetcode | src/main/java/com/leetcode/tree/easy/MaximumDepthOfNaryTree_559.java | package com.leetcode.tree.easy;
// Given a n-ary tree, find its maximum depth.
//
// The maximum depth is the number of nodes along the longest path from the root
// node down to the farthest leaf node.
//
// Nary-Tree input serialization is represented in their level order traversal,
// each group of children is sepa... |
paulish/express-jsdoc-swagger | test/e2e/errors/jsdoc-parameter-error.js | /**
* GET /api/v1/album
* @summary This is the summary of the endpoint
* @param name.query.required - name param description
* @param phone.param - phone number
* @return {string} 200 - success response
*/
|
Omrigan/tgbot-cpp | docs/class_tg_bot_1_1_update.js | var class_tg_bot_1_1_update =
[
[ "Ptr", "class_tg_bot_1_1_update.html#abace63cf3605fe7a480a3bb839a672a8", null ],
[ "callbackQuery", "class_tg_bot_1_1_update.html#a2c6890adcab16d6a306b3b89fd954f6f", null ],
[ "channelPost", "class_tg_bot_1_1_update.html#aabddc6947fe255f1763802532d34ef2b", null ],
[ "ch... |
daveherron/plug-and-trust | optee_lib/include/PlugAndTrust_Pkg_Ver.h | /* Copyright 2019-2021 NXP
*
* SPDX-License-Identifier: Apache-2.0
*
*
*/
#ifndef PLUGANDTRUST_VERSION_INFO_H_INCLUDED
#define PLUGANDTRUST_VERSION_INFO_H_INCLUDED
/* clang-format off */
#define PLUGANDTRUST_PROD_NAME "PlugAndTrust"
#define PLUGANDTRUST_VER_STRING_NUM "v03.03.00_20210528"
#define P... |
tsmsogn/to_quickform | spec/to_quickform/element_factory_spec.rb | require "spec_helper"
require "to_quickform/element_factory"
RSpec.describe ToQuickform::ElementFactory do
subject(:factory) { described_class }
describe ".new" do
it "throws error if klass type is ommitted" do
expect { factory.new nil }.to raise_error(ArgumentError)
end
end
it "instantiates a ... |
cau-se/oceandsl-tools | tools/maa/src/test/java/org/oceandsl/tools/maa/stages/TestModelInvocationUtils.java | <reponame>cau-se/oceandsl-tools<gh_stars>1-10
/***************************************************************************
* Copyright (C) 2021 OceanDSL (https://oceandsl.uni-kiel.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
RobotLocomotion/drake-python3.7 | solvers/constraint.h | #pragma once
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <Eigen/Core>
#include <Eigen/SparseCore>
#include "drake/common/drake_assert.h"
#include "drake/common/drake_copyable.h"
#inclu... |
moriyoshi/aws-sdk-go-v2 | service/ses/api_op_SendBulkTemplatedEmail.go | // Code generated by smithy-go-codegen DO NOT EDIT.
package ses
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/ses/types"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/sm... |
n-dusan/wroom | renting-service/src/main/java/com/wroom/rentingservice/domain/Debt.java | package com.wroom.rentingservice.domain;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Ma... |
nistefan/cmssw | RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByCharge_cfi.py | <gh_stars>1-10
import FWCore.ParameterSet.Config as cms
from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
pfRecoTauDiscriminationByCharge = cms.EDProducer("PFRecoTauDiscriminationByCharge",
# tau collection to discriminate
PFTauProducer = cms.InputTag('pfRecoT... |
L8RMedia/exponent | ios/versioned-react-native/ABI8_0_0/Exponent/Modules/Api/Components/ABI8_0_0EXBlurViewManager.h | #import "ABI8_0_0RCTViewManager.h"
@interface ABI8_0_0EXBlurViewManager : ABI8_0_0RCTViewManager
@end
|
616c/java-com.sphenon.components.basics.application | src/main/java/com/sphenon/basics/application/ApplicationSessionRegistry.java | package com.sphenon.basics.application;
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
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 L... |
mrninhvn/matter | src/platform/Darwin/DiagnosticDataProviderImpl.cpp | /*
*
* Copyright (c) 2021 Project CHIP 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/LICENSE-2.0
*
* Unless requir... |
straceX/Ectoplasm | linux-1.2.0/linux/fs/isofs/namei.c | /*
* linux/fs/isofs/namei.c
*
* (C) 1992 <NAME> Modified for ISO9660 filesystem.
*
* (C) 1991 <NAME> - minix filesystem
*/
#ifdef MODULE
#include <linux/module.h>
#endif
#include <linux/sched.h>
#include <linux/iso_fs.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <... |
conclave/pcduino | core/tone.go | <filename>core/tone.go
package core
import (
"fmt"
"os"
"syscall"
"unsafe"
)
// only pin 5 and 6 support tone function
const MAX_TONE_FREQ = 100000 //100kHz
type toneConfig struct {
pin byte
clksrc_div uint
active_cycle uint
}
type toneFreq struct {
freq, div, cycle uint
}
func findPWMSetting(f... |
jsc-masshtab/vdi-server | backend/web_app/tests/test_statistics_report.py | <filename>backend/web_app/tests/test_statistics_report.py
# -*- coding: utf-8 -*-
import asyncio
from datetime import datetime, timedelta
import json
import pytest
from common.database import db
from tornado.testing import gen_test
from web_app.tests.utils import execute_scheme
from web_app.statistics.schema import... |
Jaraffe-github/Old_Engines | JaraffeEngine_Vulkan/Engine/Core/RHI/Vulkan/VulkanConverter.h | <filename>JaraffeEngine_Vulkan/Engine/Core/RHI/Vulkan/VulkanConverter.h
#pragma once
static inline VkFormat JFToVkFormat(VertexElementType Type)
{
switch (Type)
{
case VET_Float1:
return VK_FORMAT_R32_SFLOAT;
case VET_Float2:
return VK_FORMAT_R32G32_SFLOAT;
case VET_Float3:
... |
benpao123/terraform-provider-jdcloud | vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/SetImportFileShared.go | <reponame>benpao123/terraform-provider-jdcloud
// Copyright 2018 JDCLOUD.COM
//
// 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
//
// Unl... |
zerowzl/leetcode | java/src/tree/flattenBinaryTreeToLinkedList/FlattenBinaryTreeToLinkedList.java | package tree.flattenBinaryTreeToLinkedList;
/* *****************************************************************************
114.二叉树展开为链表
给你二叉树的根结点 root ,请你将它展开为一个单链表:
展开后的单链表应该同样使用 TreeNode ,其中 right 子指针指向链表中下一个结点,而左子指针始终为 null 。
展开后的单链表应该与二叉树 先序遍历 顺序相同。
示例 1:
输入:root = [1,2,5,3,4,null,6]
输出:[1,null,2,null,3,nul... |
jsirex/jsirex-workstation-cookbook | recipes/vagrant.rb | <filename>recipes/vagrant.rb<gh_stars>0
# frozen_string_literal: true
vagrant_url = node['jsirex']['workstation']['vagrant']['download_url']
vagrant_checksum = node['jsirex']['workstation']['vagrant']['checksum']
vagrant_version = node['jsirex']['workstation']['vagrant']['version']
vagrant_deb = File.join(Chef::Confi... |
atish3/mig-website | mig_main/migrations/0007_memberprofile_location.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mig_main.location_field
class Migration(migrations.Migration):
dependencies = [
('mig_main', '0006_userprofile_maiden_name'),
]
operations = [
migrations.AddField(
... |
DesZou/Eros | test/20171018/source/std/test20171018/source/pl/sky/shopping.cpp | #include <cstdio>
#include <set>
#include <cstring>
#include <algorithm>
using std::pair;
using std::find;
using std::multiset;
#define Pair pair<LL,LL>
template <typename Tp>Tp Max(const Tp &a, const Tp &b) {return a > b ? a : b;}
template <typename Tp>Tp Min(const Tp &a, const Tp &b) {return a < b ? a : b;}
templ... |
tcak76/j2objc | Headers/javax/annotation/meta/TypeQualifierValidator.h | //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Users/tball/tmp/j2objc/jsr305/build_result/java/javax/annotation/meta/TypeQualifierValidator.java
//
#include "../../../J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_JavaxAnnotationMetaTypeQualifierValidator")
#ifdef RESTRICT_JavaxAnnotationMeta... |
thiagozanetti/barracao-digital | lib/errors/api/index.js | import BadRequestError from './bad-request'
import ForbiddenError from './forbidden'
import InternalServerError from './internal-server-error'
import MethodNotAllowedError from './method-not-allowed'
import ConflictError from './conflict'
import NotFoundError from './not-found'
import NotImplementedError from './not-im... |
mtlynch/pyrestic | restic/restic_test.py | import unittest
from unittest import mock
import restic
from restic.internal import generate
# Ignore suggestions to turn methods into functions.
# pylint: disable=R0201
class ResticTest(unittest.TestCase):
def setUp(self):
self.original_binary = restic.binary_path
self.original_repository = re... |
MarginC/kame | netbsd/sys/arch/pc532/dev/scnvar.h | /* $NetBSD: scnvar.h,v 1.3 1997/03/13 10:24:16 matthias Exp $ */
/*
* Copyright (c) 1996, 1997 <NAME>.
* Copyright (c) 1993 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. ... |
budabum/screen-object | src/main/java/al/qa/so/utils/recorder/StepDecorator.java | package al.qa.so.utils.recorder;
/**
* @author <NAME>.
*/
public interface StepDecorator {
default String onScreen(Object...args){
return String.format("On screen %s", args);
}
default String actionCall(Object...args){
return String.format("Do action %s(%s)", args);
}
default S... |
rydockman/YouPick | node_modules/@iconify-icons/clarity/src/refresh-line.js | <filename>node_modules/@iconify-icons/clarity/src/refresh-line.js
let data = {
"body": "<path class=\"clr-i-outline clr-i-outline-path-1\" d=\"M22.4 11.65a1.09 1.09 0 0 0 1.09 1.09h10.94V1.81a1.09 1.09 0 1 0-2.19 0v7.14a16.41 16.41 0 1 0 1.47 15.86a1.12 1.12 0 0 0-2.05-.9a14.18 14.18 0 1 1-1.05-13.36H23.5a1.09 1.09 0 ... |
maying0505/erp_pc | src/page/reimburse/assets/index.js | export const ApplyListAsset = {
img: {
titleIcon: require('./img/titleIcon.png'),
},
};
|
yan0908/client | shared/ios/Pods/Headers/Public/rn-fetch-blob/RNFetchBlobNetwork.h | ../../../../../node_modules/rn-fetch-blob/ios/RNFetchBlobNetwork.h |
Freakey17/teiid | client/src/main/java/org/teiid/client/BatchSerializer.java | /*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
amelspahic/web-engineering | backend/helpers/response.js | exports.successResponse = (res, data) => {
return res.status(200).json(data);
};
exports.notFoundResponse = (res, msg) => {
const data = {
message: msg,
};
return res.status(404).json(data);
};
exports.noContentResponse = (res, msg) => {
const data = {
message: msg,
};
return res.status(204).jso... |
DmitryGerasimenko/jinterval | jinterval-rational-java/src/main/java/net/java/jinterval/rational/BinaryDoubleImpl.java | /*
* Copyright (c) 2012, JInterval Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list o... |
Aghajari/AXAnimation | AXAnimation/src/main/java/com/aghajari/axanimation/livevar/LiveSizePoint.java | <filename>AXAnimation/src/main/java/com/aghajari/axanimation/livevar/LiveSizePoint.java
/*
* Copyright (C) 2021 - <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... |
CarysT/medusa | ThirdParty/bullet-2.75/Extras/COLLADA_DOM/include/dae/daeDocument.h | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_license.html
*
* Unless r... |
Smashulica/nebula8 | core/commands/public/staff.py | <reponame>Smashulica/nebula8
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright SquirrelNetwork
from core import decorators
from telegram.utils.helpers import mention_markdown
@decorators.public.init
@decorators.delete.init
def init(update,context):
bot = context.bot
administrators = update.effectiv... |
cisco-ie/cisco-proto | codegen/go/xr/62x/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/afs/af/dampenings/dampening/bgp_path_bag.pb.go | /*
Copyright 2019 Cisco Systems
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
d... |
avantgarde-labs/dswarm | persistence/src/main/java/org/dswarm/persistence/model/job/Connection.java | <reponame>avantgarde-labs/dswarm
/**
* Copyright (C) 2013, 2014 <NAME> & Avantgarde Labs GmbH (<<EMAIL>>)
*
* 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.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.