repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Testiduk/gitlabhq | spec/views/admin/application_settings/_repository_storage.html.haml_spec.rb | <reponame>Testiduk/gitlabhq
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'admin/application_settings/_repository_storage.html.haml' do
let(:app_settings) { build(:application_setting, repository_storages_weighted: repository_storages_weighted) }
before do
stub_storage_settings({ 'defaul... |
dumpmemory/zenml | src/zenml/integrations/kubeflow/metadata_stores/kubeflow_metadata_store.py | # Copyright (c) ZenML GmbH 2021. All Rights Reserved.
#
# 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:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... |
bitigchi/MuditaOS | module-bluetooth/Bluetooth/interface/profiles/A2DP/AVRCP.hpp | // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "A2DPImpl.hpp"
extern "C"
{
#include "classic/avrcp.h"
#include "classic/avrcp_browsing_controller.h"
#include "classic/avrcp_browsing_target.h"
#include "classic/avrc... |
cyberstormdotmu/dream-study-java | dream-study-java-common/src/main/java/com/wy/redis/DelayTimer.java | package com.wy.redis;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.V... |
diegolovison/Hyperfoil | core/src/main/java/io/hyperfoil/core/parser/PhaseParser.java | <gh_stars>0
package io.hyperfoil.core.parser;
import io.hyperfoil.api.config.PhaseBuilder;
abstract class PhaseParser extends AbstractParser<PhaseBuilder.Catalog, PhaseBuilder> {
PhaseParser() {
register("startTime", new PropertyParser.String<>(PhaseBuilder::startTime));
register("startAfter", new Star... |
J-VOL/mage | Mage/src/main/java/mage/game/permanent/token/VrondissRageOfAncientsToken.java | package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.common.SacrificeSourceEffect;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
public fi... |
fugazi/CypressPataconf | node_modules/@applitools/eyes-sdk-core/lib/fluent/FloatingRegionByRectangle.js | <reponame>fugazi/CypressPataconf<gh_stars>0
'use strict'
const {FloatingMatchSettings} = require('../..')
const {GetFloatingRegion} = require('./GetFloatingRegion')
/**
* @ignore
*/
class FloatingRegionByRectangle extends GetFloatingRegion {
/**
* @param {Region} rect
* @param {number} maxUpOffset
* @par... |
ScalablyTyped/SlinkyTyped | d/devtools-protocol/src/main/scala/typingsSlinky/devtoolsProtocol/mod/Protocol/CSS/FontFace.scala | package typingsSlinky.devtoolsProtocol.mod.Protocol.CSS
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait FontFace extends StObject {
/**
* The font-fam... |
akritisneh/OnAndOn | 02 Arrays and Vectors/Basics/KadanesSubarraysum.cpp | #include<iostream>
using namespace std;
int KadanesSubArraysum(int arr[], int n){
int sum = 0 ;
int largest = 0;
for(int i=0;i<n;i++){
sum = sum + arr[i];
if(sum<0)
sum = 0;
largest = max(largest,sum);
}
return largest;
}
int main(){
int arr[] = {-2,3,4,-1,5,-12,6,1,3};
int n = size... |
xiaohaogong/spring-data-redis | src/main/java/org/springframework/data/redis/connection/lettuce/LettuceServerCommands.java | /*
* Copyright 2017-2018 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/LICENSE-2.0
*
* Unless required by ap... |
theonlylawislove/omaha | core/google_update_core.cc | <filename>core/google_update_core.cc
// Copyright 2008-2009 Google 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 ... |
Jaystified/scala-js-nodejs | app/nodejs-v10/src/test/scala/io/scalajs/nodejs/fs/FsClassesTest.scala | <reponame>Jaystified/scala-js-nodejs
package io.scalajs.nodejs
package fs
import io.scalajs.nodejs.buffer.Buffer
import io.scalajs.nodejs.url.URL
import org.scalatest.funspec.AnyFunSpec
class FsClassesTest extends AnyFunSpec {
val dirname = process.Process.cwd()
describe("ReadStream") {
it("supports construc... |
menglu21/cmssw | L1Trigger/Phase2L1ParticleFlow/plugins/L1TPFCandMultiMerger.cc | <filename>L1Trigger/Phase2L1ParticleFlow/plugins/L1TPFCandMultiMerger.cc
#include "DataFormats/L1TParticleFlow/interface/PFCandidate.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilit... |
armindojr/pure-gen | src/locale/en/dessert/index.js | <filename>src/locale/en/dessert/index.js
const dessert = {
flavor: require('./flavor'),
topping: require('./topping'),
variety: require('./variety'),
};
module.exports = dessert;
|
artyomkorzun/f1x | src/main/java/org/efix/message/field/RoundingDirection.java | <gh_stars>10-100
package org.efix.message.field;
public class RoundingDirection {
public static final byte ROUND_TO_NEAREST = '0';
public static final byte ROUND_DOWN = '1';
public static final byte ROUND_UP = '2';
} |
amannougrahiya/imop-compiler | src/imop/ast/info/cfgNodeInfo/OmpForInitExpressionInfo.java | <reponame>amannougrahiya/imop-compiler
/*
* Copyright (c) 2019 <NAME>, <NAME>, IIT Madras.
* This file is a part of the project IMOP, licensed under the MIT license.
* See LICENSE.md for the full text of the license.
*
* The above notice shall be included in all copies or substantial
* portions of this file.
*/... |
7274-dev/AdventnaVyzva-React | src/hooks/getFileType.js | const extensions = {
'image': ['jpg', 'png', 'webp', 'gif', 'tiff', 'psd', 'raw', 'bmp', 'jpeg', 'heif', 'indd', 'svg'],
'video': ['mp4', 'webm', 'mpg', 'mp2', 'mpeg', 'mpe', 'mpv', 'ogg', 'm4p', 'm4v', 'avi', 'wmv', 'mov', 'qt', 'flv', 'swf']
}
const getFileType = (extension) => {
extension = extension.re... |
RitualYang/JavaUp | reflect/src/main/java/com/base/reflect/ReflectTest.java | <reponame>RitualYang/JavaUp
package com.base.reflect;
import com.base.entity.Student;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* @author wty
* @create 2020-03-04 18:16
*/
public class ReflectTest {
public static void main(String[] args) throws ... |
ranton256/cortex | vendor/github.com/alicebob/miniredis/direct.go | package miniredis
// Commands to modify and query our databases directly.
import (
"errors"
"time"
)
var (
// ErrKeyNotFound is returned when a key doesn't exist.
ErrKeyNotFound = errors.New(msgKeyNotFound)
// ErrWrongType when a key is not the right type.
ErrWrongType = errors.New(msgWrongType)
// ErrIntValu... |
josueeduardo/snappy | snappy/src/main/java/io/joshworks/snappy/http/Interceptor.java | package io.joshworks.snappy.http;
import io.joshworks.snappy.handler.HandlerUtil;
public abstract class Interceptor {
private final String url;
private final boolean wildcard;
protected Interceptor(String url) {
url = HandlerUtil.parseUrl(url);
this.wildcard = url.endsWith(HandlerUtil.WI... |
bigpkd/glo-2003-airbnb | src/test/java/ca/ulaval/glo2003/reports/domain/helpers/ReportPeriodBuilder.java | <gh_stars>0
package ca.ulaval.glo2003.reports.domain.helpers;
import static ca.ulaval.glo2003.reports.domain.helpers.ReportPeriodObjectMother.createPeriodName;
import static ca.ulaval.glo2003.time.domain.helpers.TimePeriodBuilder.aTimePeriod;
import ca.ulaval.glo2003.reports.domain.ReportPeriod;
import ca.ulaval.glo2... |
LacertosusRepo/headers | UIKit/_UIBackdropViewSettingsUltraDark.h | #import "_UIBackdropViewSettings.h"
@interface _UIBackdropViewSettingsUltraDark : _UIBackdropViewSettings
@end
|
mcsma01/DayTrader | modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatWebAppContext.java | /**
*
* Copyright 2003-2004 The Apache Software Foundation
*
* 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... |
Jarunik/sm-team-finder | src/main/java/org/slos/splinterlands/history/Battle.java | <gh_stars>1-10
package org.slos.splinterlands.history;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.slos.util.ToJson;
@JsonIgnoreProperties(ignoreUnknown = true)
public c... |
wxhemiao/MyBlaire | MB/ViewController/MBAboutViewController.h | <reponame>wxhemiao/MyBlaire
//
// MBAboutViewController.h
// MB
//
// Created by <NAME> on 14/11/13.
// Copyright (c) 2014年 xxx Innovation Co. Ltd. All rights reserved.
//
#import "TTXBaseViewController.h"
@interface MBAboutViewController : TTXBaseViewController
@end
|
harishbsrinivas/flapjack | spec/service_consumers/pact_helper.rb | <gh_stars>100-1000
require 'pact/provider/rspec'
require 'flapjack'
require 'flapjack/configuration'
require 'flapjack/redis_proxy'
require 'flapjack/gateways/jsonapi'
require './spec/support/mock_logger.rb'
require './spec/service_consumers/fixture_data.rb'
require './spec/service_consumers/provider_support.rb'
r... |
acourreges/reshade | src/Hooks/d3d9.cpp | #include "Log.hpp"
#include "HookManager.hpp"
#include "Runtimes\RuntimeD3D9.hpp"
#undef IDirect3D9_CreateDevice
#undef IDirect3D9Ex_CreateDeviceEx
// -----------------------------------------------------------------------------------------------------
namespace
{
struct Direct3DDevice9 : public IDirect3DDevice9Ex,... |
zqannnnn/Project-staging | 08-start-redux/src/app.js | <reponame>zqannnnn/Project-staging
import { createStore } from 'redux';
function counter(state = 0, action) {
switch (action.type) {
case 'INCREMENT':
return state + 1;
case 'DECREMENT':
return state - 1;
default:
return state;
}
}
/**
* 使用这个reducer纯函数代替上面的函数,会发现:
* 当state为对象时,如果在re... |
amckay7777/hedera-services | hedera-node/src/main/java/com/hedera/services/state/expiry/MonotonicFullQueueExpiries.java | package com.hedera.services.state.expiry;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* 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
*
*... |
masud-technope/ACER-Replication-Package-ASE2017 | corpus/class/eclipse.jdt.ui/7290.java | package p;
class A {
static void k() {
}
}
class B extends A {
static void m() {
}
;
}
class Test {
void f() {
new A().k();
A.k();
new B().m();
B.m();
}
}
|
BohdanMosiyuk/samples | snippets/cpp/VS_Snippets_CLR/AssemblyName_Constructor_2/CPP/source.cpp | // REDMOND\glennha
// Simplified snippet per SuzCook tech review.
// <Snippet1>
using namespace System;
using namespace System::Reflection;
int main()
{
// Create an AssemblyName, specifying the display name, and then
// print the properties.
AssemblyName^ myAssemblyName =
gcnew AssemblyName("Example, ... |
alpavlenko/EvoGuess | executor/module/shaping/impl/chunks.py | <gh_stars>1-10
from ..shaping import *
from util.array import slice_by_size
from numpy.random.mtrand import RandomState
class Chunks(Shaping):
slug = 'shaping:chunks'
name = 'Shaping: Chunks'
def __init__(self, chunk_rate, *args, **kwargs):
self.chunk_rate = chunk_rate
super().__init__()... |
Joanguitar/docker-nextepc | virtual-UE-eNB/srsLTE-5d82f19988bc148d7f4cec7a0f29184375a64b40/lib/examples/usrp_capture.c | <gh_stars>0
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by t... |
TJKoury/is_chrome_broken | Source/Shaders/Builtin/Constants/oneOverTwoPi.js | //This file is automatically rebuilt by the Cesium build process.
export default "const float czm_oneOverTwoPi = 0.15915494309189535;\n\
";
|
robinandeer/grommet | src/js/components/Markdown/doc.js | import { describe, PropTypes } from 'react-desc';
import { getAvailableAtBadge } from '../../utils';
export const doc = Markdown => {
const DocumentedMarkdown = describe(Markdown)
.availableAt(getAvailableAtBadge('Markdown'))
.description('Markdown formatting using Grommet components.')
.usage(
`i... |
vrk-kpa/opendata-ckan | modules/ckanext-ytp_main/ckanext/ytp/harvesters/syke_harvester.py |
import datetime
import six
from ckan.lib.helpers import json, date_str_to_datetime
from ckan.plugins import toolkit
from ckan.lib.munge import munge_tag
from ckanext.harvest.model import HarvestObject
from ckanext.harvest.harvesters.ckanharvester import CKANHarvester
import logging
log = logging.getLogger(__name__)
... |
MochalovaAn/llvm | llvm/tools/sycl-post-link/SpecConstants.h | //===----- SpecConstants.h - SYCL Specialization Constants Pass -----------===//
//
// 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
//
//===---------------------------... |
M155K4R4/Tensorflow | tensorflow/contrib/periodic_resample/kernels/periodic_resample_op.h | // =============================================================================
// Copyright 2016 The TensorFlow Authors. All Rights Reserved.
//
// 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 Licens... |
cbograt-company/test | proxies/com/microsoft/bingads/v11/campaignmanagement/CampaignCriterionType.java | <reponame>cbograt-company/test
package com.microsoft.bingads.v11.campaignmanagement;
/**
* Enum class for CampaignCriterionType.
*/
public enum CampaignCriterionType {
PRODUCT_SCOPE("ProductScope"),
WEBPAGE("Webpage"),
TARGETS("Targets"),
AGE("Age"),
DAY_TIME("DayTime"),
GENDER("... |
kc980602/IVE-FYP-AI-Trvel-Planner | Triple/app/src/main/java/com/triple/triple/Helper/CheckLogin.java | package com.triple.triple.Helper;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.triple.triple.Presenter.Account.LoginActivity;
/**
* Created by Kevin on 2018/2/6.
*/
public class CheckLogin {
public static Boolean directLogin(Context context) {
if ... |
robertb-r/fiji | src-plugins/pal-optimization/src/main/java/pal/math/MultivariateFunction.java | // MultivariateFunction.java
//
// (c) 1999-2001 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General Public License (LGPL)
package pal.math;
/**
* interface for a function of several variables
*
* @author <NAME>
*/
public interface MultivariateFunction
{... |
XiuYuLi/deepcore_source_code | deepcore_device/deepcore_device/fft/sfft/sfft16x16_r2c_perm2d.h | __global__ void dk_sfft16x16_r2c_perm2d( float2* d_c,
const float* __restrict__ d_r, const float* __restrict__ d_RF,
unsigned int nx, unsigned int ny, unsigned int ldc, unsigned int ldr, int n_cells )
{
const int brev[]={0,4,2,6,1,5,3,7};
__shared__ float smem[16*145];
__shared__ float2 s_RF[8];
... |
siu91/myboot | myboot-demo-ganxu/ganxu-core/src/main/java/org/siu/myboot/server/entity/po/QProduct.java | package org.siu.myboot.server.entity.po;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import org.siu.myboot.core.data.jpa.querydsljpa.QBuiler;
impo... |
jalizadeh/ToDocial-Social-Todo-Manager | src/main/java/com/jalizadeh/springboot/web/controller/admin/model/SettingsGeneralConfig.java | package com.jalizadeh.springboot.web.controller.admin.model;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframewo... |
lzbgithubcode/ZBCategories | ZBCategories/Classes/UIKit/UIView/UIView+Extension.h | <reponame>lzbgithubcode/ZBCategories
//
// UIView+Extension.h
// ZBCategories
//
// Created by lzb on 2018/8/14.
// Copyright © 2018年 lzb. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Extension)
/**
清楚子视图
*/
-(void)removeAllSubViews;
/**
判断View是否在屏幕上
*/
- (BOOL)isDisplayedInScreen;
/**... |
Graalex/personal-cabinet-azovgaz | src/components/Popup/index.js | <gh_stars>0
import Popup from './Popup';
export {Popup}; |
testim407/nexl-js | tests/storage-backup-tests/storage-backup-tests.js | const os = require('os');
const fs = require('fs');
const fsx = require('fs-extra');
const path = require('path');
const unzipper = require('unzipper');
const recursive = require("recursive-readdir");
const testAPI = require('../test-api');
const confConsts = require('../../backend/common/conf-constants');
const confM... |
ShoutToMe/stm-sdk-android | shout-to-me-sdk/src/main/java/me/shoutto/sdk/internal/usecases/DeleteTopicPreference.java | package me.shoutto.sdk.internal.usecases;
import android.util.Log;
import me.shoutto.sdk.StmBaseEntity;
import me.shoutto.sdk.StmCallback;
import me.shoutto.sdk.StmError;
import me.shoutto.sdk.TopicPreference;
import me.shoutto.sdk.internal.http.HttpMethod;
import me.shoutto.sdk.internal.http.StmRequestProcessor;
/*... |
venovako/VecKog | src/mem.h | <filename>src/mem.h
#ifndef MEM_H
#define MEM_H
#include "common.h"
typedef struct {
double *A11, *A21, *A12, *A22;
double *U11, *U21, *U12, *U22;
double *V11, *V21, *V12, *V22;
} matrices;
typedef struct {
double *S1, *S2;
double *s;
} vectors;
typedef struct {
matrices r;
vectors v;
} Dmem;
typedef... |
prospero78/goTk | atk/lib/tk/basewidget_test.go | <reponame>prospero78/goTk<gh_stars>0
// Copyright 2018 visualfc. All rights reserved.
package tk
import (
"strings"
"testing"
)
func init() {
registerTest("TestWidgetId", testWidgetId)
registerTest("TestWidgetParent", testWidgetParent)
}
type TestWidget struct {
BaseWidget
}
func (w *TestWidget) Type() Widget... |
cmgl/product-model-toolkit | pkg/http/rest/handler_importer.go | <gh_stars>0
// SPDX-FileCopyrightText: 2020 <NAME>-Nürnberg (FAU)
//
// SPDX-License-Identifier: Apache-2.0
package rest
import (
"fmt"
"net/http"
"strconv"
"strings"
"github.com/labstack/echo/v4"
"github.com/osrgroup/product-model-toolkit/model"
"github.com/osrgroup/product-model-toolkit/pkg/importing"
"git... |
changelime/canvas | canvas2d/excercise/rotate/js/index.js | import $ from "jquery";
import Node from "canvas2d/lib/node";
import { drawAnimation, angToRad, getDistance } from "canvas2d/lib/util";
import { randomHash } from "canvas2d/lib/color";
let $canvas = $("#canvas");
let context = $canvas[0].getContext("2d");
let width = $canvas.width();
let height = $canvas.height();
var ... |
typical000/jss-landing | src/components/Menu/styles.js | <reponame>typical000/jss-landing
export default {
menu: {
padding: [20, 30]
}
}
|
lzekrini/CONNECT | Product/Production/Services/CORE_X12DocumentSubmissionCore/src/test/java/gov/hhs/fha/nhinc/corex12/ds/audit/transform/X12BatchAuditTransformsTest.java | /*
* Copyright (c) 2009-2018, United States Government, as represented by the Secretary of Health and Human Services.
* 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... |
tubone24/tech_blog_spider | src/util/harperdb.py | from interface.util.harperdb import HarperDB
from harperdb import HarperDB as Hdb
class HarperDBImpl(HarperDB):
def __init__(self, url: str, username: str, password: str):
self.db = Hdb(url=url, username=username, password=password)
def get_instance(self):
return self.db
|
goutomroy/uva.onlinejudge | solved/568 Just The Facts.cpp | #include<stdio.h>
int last[10001],c, fact[35670];
void factorial()
{
unsigned int i, j, k, c=0;
unsigned long sum;
last[c++] = 1; fact[35669] = 1; fact[35668]= -1;
for(i=1;i<=10000;i++)
{
sum = 0;
for(j=35669; ;j--)
{
if(fact[j]!=-1)
{
sum = sum + i*fact[j];
fact[j] = sum%10;
... |
gianricardo/OpcUaStack | src/OpcUaServer/Server/ServerMain.cpp | /*
Copyright 2015-2016 <NAME> (<EMAIL>)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschrieben od... |
ElementAI/bytesteady | bytesteady/infer_test.cpp | /*
* Copyright 2021 ServiceNow
* 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, s... |
danchia/ddb | vendor/go.opencensus.io/exporter/jaeger/internal/gen-go/dependency/dependency.go | // Autogenerated by Thrift Compiler (0.11.0)
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
package dependency
import (
"bytes"
"context"
"fmt"
"reflect"
"git.apache.org/thrift.git/lib/go/thrift"
)
// (needed to ensure safety because of naive import list construction.)
var _ = thrift.ZERO
... |
WhatAKitty/ssm | biz/src/main/java/com/sccbv/system/rolespermissions/RolesPermissionsValidate.java | package com.sccbv.system.rolespermissions;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import java... |
josivantarcio/Udemy | Geek-Java/src/exercicios/secao03/Exercicio06.java | <filename>Geek-Java/src/exercicios/secao03/Exercicio06.java
package exercicios.secao03;
import java.util.Scanner;
public class Exercicio06 {
public static void main(String[] args) {
Scanner keyb = new Scanner(System.in);
float f, c;
System.out.print("Temperatura Cº ");
c = keyb.nextFloat();
f = c * (9/5... |
kubrafelek/AssesmentProject | project/src/main/java/tapu/com/project/model/enums/Exceptions.java | <reponame>kubrafelek/AssesmentProject
package tapu.com.project.model.enums;
public enum Exceptions {
UserAlreadyExistException,
BadRequestException
}
|
johnvoon/launch_school | exercise_sets_for_101_109/easy5/after_midnight.rb | <filename>exercise_sets_for_101_109/easy5/after_midnight.rb
MINUTES_PER_HOUR = 60
HOURS_PER_DAY = 24
MINUTES_PER_DAY = HOURS_PER_DAY * MINUTES_PER_HOUR
def time_of_day(delta_minutes) # delta_minutes is the number of minutes to wind the clock backwards or forwards
delta_minutes = delta_minutes % MINUTES_PER_DAY # i.e... |
wuranjia/CMPPGate | src/main/java/com/zx/sms/codec/cmpp7F/Cmpp7FSubmitRequestMessageCodec.java | <reponame>wuranjia/CMPPGate
/**
*
*/
package com.zx.sms.codec.cmpp7F;
import static com.zx.sms.common.util.NettyByteBufUtil.toArray;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;
import io.netty.uti... |
cyllene-project/Rubric | src/draw/css/CSSValueList.h | <reponame>cyllene-project/Rubric<filename>src/draw/css/CSSValueList.h
/*
* (C) 1999-2003 <NAME> (<EMAIL>)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General... |
huydinhquang/BIS2019_MasterThesis | ECG_Evaluation/Views/RecordSetView.py | <reponame>huydinhquang/BIS2019_MasterThesis
import streamlit as st
def load_form():
# list_channel = st.sidebar.multiselect(
# 'Channel(s)',
# ['I', 'II', 'III',
# 'aVR', 'aVL', 'aVF',
# 'V1', 'V2', 'V3',
# 'V4', 'V5', 'V6',
# 'Vx', 'Vy', ... |
likianta/declare-qtquick | archived_projects_(dead)/declare_pyside/widgets/mouse_area.py | <reponame>likianta/declare-qtquick<filename>archived_projects_(dead)/declare_pyside/widgets/mouse_area.py<gh_stars>1-10
from .base_item import BaseItem
from .core.authorized_props import MouseAreaProps
from ..path_model import widgets_dir
class MouseArea(BaseItem, MouseAreaProps):
qmlfile = f'{widgets_dir}/qml_a... |
techAi007/spring-boot | spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/ReactiveMultipartProperties.java | /*
* Copyright 2012-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
annstella/Myportfolio | images/Sketch.app/Contents/Frameworks/SketchCloudKit.framework/Versions/A/Headers/SCKCollectionDiff.h | <gh_stars>0
// Created by <NAME> on 06-02-17.
// Copyright © 2017 Bohemian Coding.
#import "SCKDiff.h"
@class SCKObject;
@class SCKArtboard;
@interface SCKCollectionDiff : NSObject <SCKDiff>
- (nonnull instancetype)initWithObject:(nonnull NSArray<SCKObject<SCKDiffable> *> *)object comparedTo:(nonnull NSArray<SCKO... |
GrieferAtWork/deemon | src/deemon/execute/code-exec-targets.c.inl | <filename>src/deemon/execute/code-exec-targets.c.inl
/* Copyright (c) 2018-2021 <EMAIL> *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will th... |
Levi-Armstrong/ign-rendering | src/MeshDescriptor.cc | /*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* 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... |
plagoa/big-data-plugin | impl/shim/mapreduce/src/test/java/org/pentaho/big/data/impl/shim/mapreduce/RunningJobMapReduceJobAdvancedImplTest.java | <filename>impl/shim/mapreduce/src/test/java/org/pentaho/big/data/impl/shim/mapreduce/RunningJobMapReduceJobAdvancedImplTest.java
/*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com
*
******************... |
krattai/AEBL | blades/floreantpos-code/src/com/floreantpos/model/base/BaseCurrency.java | <gh_stars>1-10
package com.floreantpos.model.base;
import java.lang.Comparable;
import java.io.Serializable;
/**
* This is an object that contains data related to the CURRENCY table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
... |
wardat/apache-ant-1.6.2 | src/main/org/apache/tools/ant/launch/Locator.java | /*
* Copyright 2003-2004 The Apache Software Foundation
*
* 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 b... |
RTSandberg/BaryTree | src/interaction_compute/interaction_compute_downpass.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "../utilities/array.h"
#include "../tree/struct_tree.h"
#include "../particles/struct_particles.h"
#include "../run_params/struct_run_params.h"
#include "interaction_compute.h"
static void cp_comp_pot(struct Tre... |
hitong/ChartRoom | src/utils/IsNull.java | package utils;
public class IsNull {
public static boolean isNull(String str) {
if (str == null || str.trim().equals("")) {
return true;
} else {
return false;
}
}
public static boolean isNull(Object obj) {
if (obj == null) {
return true;
} else {
return false;
}
}
}
|
tlunter/oboe-ruby | test/instrumentation/em_http_request_test.rb | <reponame>tlunter/oboe-ruby<gh_stars>0
# Copyright (c) 2015 AppNeta, Inc.
# All rights reserved.
require 'minitest_helper'
# Disable this test on JRuby until we can investigate
# "SOCKET: SET COMM INACTIVITY UNIMPLEMENTED 10"
# https://travis-ci.org/appneta/traceview-ruby/jobs/33745752
if RUBY_VERSION >= '1.9' and Tr... |
armroyce/Unreal | UnrealEngine-4.11.2-release/Engine/Source/Developer/Mac/MacTargetPlatform/Private/MacTargetPlatformClasses.cpp | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
MacTargetPlatformClasses.cpp: Implements the module's UClasses.
=============================================================================*/
#include "MacTargetPlatformPriva... |
whkendny/Learning-Vuejs-2 | chapter7/shopping-list/test/unit/specs/vuex/getters.spec.js | <reponame>whkendny/Learning-Vuejs-2
import * as getters from 'src/vuex/getters'
describe('getters.js', () => {
var state, lists
beforeEach(() => {
lists = [{id: '1', title: 'groceries'}, {id: '2', title: 'clothes'}]
state = {
shoppinglists: lists
}
})
describe('getLists', () => {
it('sh... |
sofwerx/OSUS-R | mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/push/TestPushContextUtil.java | //==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to t... |
benety/mongo | src/mongo/db/operation_context.h | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
andymonis/my-test-blockstack01 | node_modules/blockstack/lib/auth/authVerification.js | <filename>node_modules/blockstack/lib/auth/authVerification.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.doSignaturesMatchPublicKeys = doSignaturesMatchPublicKeys;
exports.doPublicKeysMatchIssuer = doPublicKeysMatchIssuer;
exports.doPublicKeysMatchUsername = doPublicKeysMat... |
kpagacz/software-engineering | programowanie-obiektowe/lab-8/lab-8.cpp | <filename>programowanie-obiektowe/lab-8/lab-8.cpp
#include "Object.h"
#include "Board.h"
#include<iostream>
int main() {
Board b(10, 10);
std::cout << b << "\n\n";
b.insert(0, 0, 'A');
b.insert(3, 2, 'B');
b.insert(9, 8, 'C');
b.insert(2, 7, 'D');
std::cout << b << "\n\n";
b.exchange(0, 0, 3, 2);
b.exchan... |
microvibe/vibe | microvibe-booster/booster-core/src/main/java/io/microvibe/booster/commons/redis/util/RedisMap.java | package io.microvibe.booster.commons.redis.util;
import java.util.Map;
public interface RedisMap<K, V> extends Map<K, V> {
}
|
guoxiangran/main | WebRoot/app/js/view/vue/vue.components.js | Vue.component('my-baseform', function (resolve, reject) {
$.get('ajax/form/base.html')
.done(function (d) {
resolve({
props: {
fdata: {
type: Object
}
},
template: d,
m... |
devinrsmith/deephaven-core | Base/src/test/java/io/deephaven/base/TestStringUtils.java | package io.deephaven.base;
import io.deephaven.base.testing.BaseArrayTestCase;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.TreeSet;
/**
* Unit tests for StringUtils.
*/
public class TestStringUtils extends BaseArrayTestCase {
public void testJoinS... |
anubhavparas/ARIAC_Group_1 | rwa5_group_1/docs/html/search/all_3.js | <filename>rwa5_group_1/docs/html/search/all_3.js
var searchData=
[
['deactivategripper',['deactivateGripper',['../classGantryControl.html#a1485577d4e29baf708a4c5c028a47798',1,'GantryControl']]],
['detected_5fconveyor_5f',['detected_conveyor_',['../classSensorControl.html#afa8478ce26058f853686d6f43c9ddae4',1,'Sensor... |
psygate/Ivory | gen/java/com/psygate/minecraft/spigot/sovereignty/ivory/db/model/Tables.java | /**
* This class is generated by jOOQ
*/
package com.psygate.minecraft.spigot.sovereignty.ivory.db.model;
import com.psygate.minecraft.spigot.sovereignty.ivory.db.model.tables.IvoryGroupInvites;
import com.psygate.minecraft.spigot.sovereignty.ivory.db.model.tables.IvoryGroupMembers;
import com.psygate.minecraft.spi... |
aberke/city-science-bike-swarm | Archive/nrf5_gcc_mesh/mesh/bootloader/include/dfu_types_mesh.h | /* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* 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 retain the above copyright notice, this
* l... |
vpnvishv/hive | ql/src/test/org/apache/hadoop/hive/ql/hooks/TestHiveProtoLoggingHook.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 information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
jingcao80/Elastos | Build/Prebuilt/Linux/usr/include/alljoyn/AboutObj.h | /**
* @file
* This contains the About class
*/
/******************************************************************************
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, pro... |
niallthomson/microservices-demo | src/ui/src/main/java/com/watchn/ui/util/ecs/MissingAwsECSEnvironmentCondition.java | <gh_stars>1-10
package com.watchn.ui.util.ecs;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
public class MissingAwsECSEnvironmentCondition extends AwsECSEnvironmentCondition {
@Override
public boolean matches(ConditionContext conte... |
cosmos33/MMVideoSDK--iOS | VideoSDK/Framwork/MLMediaEditingModel/MLMediaEditingModel.framework/Headers/MLTransitionEffect.h | //
// MLTransitionEffect.h
// Pods
//
// Created by YuAo on 16/05/2017.
//
//
@import Mantle;
NS_ASSUME_NONNULL_BEGIN
typedef NSString *MLTransitionEffectType NS_EXTENSIBLE_STRING_ENUM;
FOUNDATION_EXPORT MLTransitionEffectType const MLTransitionEffectTypeNone;
@interface MLTransitionEffect : MTLModel <MTLJSONSe... |
xtutran/grad-projects | monitoring/src/main/java/com/github/xtutran/ui/ReportPanel.java | package com.github.xtutran.ui;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* @author Orrmaster
*/
public class ReportPanel extends javax.swing.JFrame {
// Variables declaration - do not modify
private javax.swing.JLabel jLabel1;
... |
harverywxu/erda | modules/dop/services/sonar_metric_rule/paging.go | // Copyright (c) 2021 Terminus, 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 or agree... |
pokulo/trickytripper | app/src/main/java/de/koelle/christian/trickytripper/export/impl/StyleClass.java | <gh_stars>10-100
package de.koelle.christian.trickytripper.export.impl;
public enum StyleClass {
NUMERIC_VALUE("valueNumeric"),
HEADING("heading"),
BACKGROUND_PAYER("bgPayer"),
BACKGROUND_SPENDER("bgSpender"),
/**/;
private final String className;
StyleClass(String className) {
t... |
Keneral/ae1 | jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/RuntimeDataTest.java | /*******************************************************************************
* Copyright (c) 2009, 2015 Mountainminds GmbH & Co. KG and Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... |
macro-kernel/shield-hids | shield_library/src/main/java/org/heimdall/shield_library/utility/RSAUtil.java | package org.heimdall.shield_library.utility;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.Cipher;
import java.io.UnsupportedEncodingException;
import java.security.*;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.... |
hasys/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-client/src/main/java/org/kie/workbench/common/stunner/bpmn/client/forms/fields/assignmentsEditor/AssignmentListItemWidgetView.java | <reponame>hasys/kie-wb-common
/*
* Copyright 2016 Red Hat, Inc. and/or 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/LICENSE-2.0
... |
LucianoRomero1/Sigtea | web/bundles/js/feedLoots/formularioFL6.js | function agregarFila(){
$("#filas").append(`
<tr>
<th scope="row">1</th>
<td><input type="text" class="form-control" name="Recurso[tipo][]" value=""></td>
<td><input type="text" class="form-control" name="" value=""></td>
<td class="media">
<input type="text" class=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.