repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lfaoro/goa
codegen/funcs_test.go
package codegen import ( "testing" ) func TestWrapText(t *testing.T) { cases := map[string]struct { maxChars int str string expected string }{ "long_text": { maxChars: 50, str: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mag...
pin062788/spring-cloud
example-gateway/src/main/java/com/cloud/example/gateway/utils/NacosConfigUtil.java
/* * Copyright 2019 https://github.com/romeoblog/spring-cloud.git Group. * * 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 * * ...
h-2/SeqAnHTS
include/seqan/basic/alphabet_storage.h
<reponame>h-2/SeqAnHTS // ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2015, <NAME>, FU Berlin // All rights reserved. // // Redi...
originalix/HTML-CSS-Prictice
react/extremely-simple-flux-demo/dispatcher/AppDispatcher.js
var Dispatcher = require('flux').Dispatcher; var AppDispatcher = new Dispatcher(); var ListStore = require('../stores/ListStore'); AppDispatcher.register(function (action) { switch(action.actionType) { case 'ADD_NEW_ITEM': ListStore.addNewItemHandler(action.text); ListStore.emitChan...
wallisyan/alibabacloud-python-sdk-v2
alibabacloud/clients/batchcompute_20150630.py
<reponame>wallisyan/alibabacloud-python-sdk-v2 # Copyright 2019 Alibaba Cloud Inc. 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 # # http://www.apache.org/licenses/L...
huahuajjh/requisition_land
src/com/tq/requisition/domain/model/account/IAccountRepository.java
<filename>src/com/tq/requisition/domain/model/account/IAccountRepository.java package com.tq.requisition.domain.model.account; import java.util.UUID; import com.tq.requisition.domain.IRepository.IRepository; import com.tq.requisition.domain.model.share.AccountState; import com.tq.requisition.exception.AccountOperatio...
dkaip/jvulkan
src/main/java/com/CIMthetics/jvulkan/VulkanCore/Structures/CreateInfos/VkPipelineColorBlendStateCreateInfo.java
<gh_stars>0 /* * Copyright 2019-2020 <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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
stackfoundation/cli
core/pkg/hypervisor/detect_virtualbox_other.go
// +build !windows package hypervisor import "os/exec" func DetectVBoxManageCmd() (string, bool) { cmd := "VBoxManage" if path, err := exec.LookPath(cmd); err == nil { return path, true } return cmd, false }
warmchang/turms
turms-server-common/src/main/java/im/turms/server/common/access/client/dto/constant/GroupMemberRole.java
<reponame>warmchang/turms /* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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/...
lectureStudio/avdev
avdev-jni/src/main/cpp/dependencies/macos/coreaudio/src/CoreAudioOutputStream.cpp
/* * Copyright 2016 <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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
xiayingfeng/android-atleap
atleap-core-test/src/androidTest/java/com/blandware/android/atleap/test/stub/RequestListenerStub.java
/* * Copyright (C) 2013 Blandware (http://www.blandware.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 * * Unless required b...
frizz/frizz
flux/dispatcher.go
package flux import "sync" type Dispatcher struct { m sync.Mutex notifier NotifierInterface stores []StoreInterface } // NewDispatcher creates a new dispatcher and registers the provided stores func NewDispatcher(notifier NotifierInterface, stores ...StoreInterface) *Dispatcher { d := &Dispatcher{notifi...
mikesprague/tad
src/components/ColumnList.js
/* @flow */ import * as React from 'react' import ColumnRow from './ColumnRow' /* * A simple ordered list of columns. Supports re-ordering */ export default class ColumnList extends React.Component { renderColumnRow (row: any) { let key = row if (typeof row !== 'string') { key = row[0] } ret...
PDarkTemplar/NeedMoreBeer
Front/src/stores/viewModels/Common.js
<gh_stars>0 // @flow import { observable } from 'mobx'; class Common { @observable initialized: boolean = false; @observable loading: boolean = false; } export default Common;
dr1verrr/dr1ver.shop
pages/api/login.js
import axios from 'axios' import { setCookie } from 'nookies' export default async function login(req, res) { const { password, identifier } = req.body try { const postRes = await axios.post(`${process.env.NEXT_PUBLIC_API_URL}/auth/local`, { identifier, password, }) setCookie({ res }, 'jw...
shelang/aghab
src/main/java/io/shelang/aghab/service/dto/LinkMetaDTO.java
<reponame>shelang/aghab package io.shelang.aghab.service.dto; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.time.Instant; @Data @Accessors(chain = true) @NoArgsConstructor public class LinkMetaDTO { private Long id; private String title; private String d...
vbea/VbeaUtil
app/src/main/java/com/vbes/util/matisse/ui/adapter/PreviewPagerAdapter.java
<reponame>vbea/VbeaUtil package com.vbes.util.matisse.ui.adapter; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.view.ViewGroup; import com.vbes.util.matisse.entity.Item; import com.vbes.util.matisse.ui.PreviewI...
Sub2n/React-Exercise
React/repos/styling-react/src/App.js
import React from 'react'; import StyledComponent from './StyledComponent'; const App = () => { return <StyledComponent />; }; export default App;
r8d8/lastlock
QCA4020_SDK/target/quartz/serializer/genedit_files/qz/include/qapi_ble_aios_func.h
<gh_stars>0 /* * Copyright (c) 2018 Qualcomm Technologies, Inc. * All Rights Reserved. */ // Copyright (c) 2018 Qualcomm Technologies, Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) /...
mctouch/dlrm_for_pytorch
dlrm/nn/interactions.py
# Copyright (c) 2020 NVIDIA CORPORATION. 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
HastingsGreer/itk-js
examples/Webpack/test/config/itkConfigTest.js
const itkConfig = { itkModulesPath: __BASE_PATH__ + '/dist/itk' } export default itkConfig
skylark-integration/skylark-dijit-mvc
.history/history-qface1-201304/src/qface/ui/drawing/_createjs/soundjs/HTMLAudioPlugin.js
<gh_stars>0 /* * HTMLAudioPlugin for SoundJS * Visit http://createjs.com/ for documentation, updates and examples. * * * Copyright (c) 2012 <EMAIL>, inc. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to...
DEIPworld/deip-chain
libraries/protocol/include/deip/protocol/operations/approve_award_withdrawal_request_operation.hpp
<filename>libraries/protocol/include/deip/protocol/operations/approve_award_withdrawal_request_operation.hpp #pragma once #include <deip/protocol/base.hpp> #include <fc/optional.hpp> namespace deip { namespace protocol { struct approve_award_withdrawal_request_operation : public base_operation { external_id_type ...
justlive1/earth-snow
snow-common-base/src/test/java/vip/justlive/common/base/util/ExpiringMapTest.java
<reponame>justlive1/earth-snow package vip.justlive.common.base.util; import java.util.concurrent.TimeUnit; import org.junit.Assert; import org.junit.Test; import vip.justlive.common.base.util.ExpiringMap.CleanPolicy; import vip.justlive.common.base.util.ExpiringMap.ExpiringPolicy; /** * @author wubo */ ...
NAzT/bluetoe
tests/test_characteristics.hpp
#ifndef BLUETOE_TESTS_CHARACTERISTICS_HPP #define BLUETOE_TESTS_CHARACTERISTICS_HPP #include <bluetoe/characteristic_value.hpp> namespace { std::uint32_t simple_value = 0xaabbccdd; const std::uint32_t simple_const_value = 0xaabbccdd; typedef bluetoe::characteristic< bluetoe::character...
somehowadev/libmsftband
libband/apps/phone.py
import struct from datetime import datetime from .app import App from libband.tiles import CALLS from libband.helpers import bytes_to_text from libband.parser import MsftBandParser from libband.filetimes import datetime_to_filetime from libband.notifications import Notification, NotificationTypes class CallNotificati...
frk/gosql
internal/analysis/error.go
package analysis import ( "fmt" "strconv" "strings" "text/template" "github.com/frk/tagutil" ) // analysis error type anError struct { Code errorCode PkgPath string TargetName string BlockName string RelField string RelType RelType FieldType string FieldTypeKind stri...
MarioHenze/cgv
cgv/data/data_format.cxx
#include "data_format.h" #include <iostream> #include <cgv/utils/tokenizer.h> #include <cgv/utils/scan.h> using namespace cgv::utils; namespace cgv { namespace data { /// construct an undefined data format data_format::data_format() { } /// construct from description string data_format::data_format...
rajkishan0/Java_Lab
Odd even prog/CheckEvenOdd.java
import java.util.Scanner; class CheckEvenOdd { public static void main(String args[]) { int num; System.out.println("Enter an integer number"); //The input provided by the user is stored in num Scanner input=new Scanner (System.in); num=input.nextInt(); ...
oxelson/gempak
gempak/source/textlib/wbc/wbcdcon.c
#include "geminc.h" #include "gemprm.h" void wbc_dcon ( char *wtype, int len1, int len2, char *constr, char *perstr, int *iret ) /************************************************************************ * wbc_dcon * * * * T...
maritime-web/Enav-Services
map-tiles/src/test/java/dk/dma/embryo/tiles/image/Image2TilesUsingMaptilerTest.java
<reponame>maritime-web/Enav-Services /* Copyright (c) 2011 Danish Maritime Authority. * * 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 ...
lpapp/leetcode
binary-tree/solve-problems-recursively/symmetric-tree.cpp
#include <iostream> #include <queue> #include <vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *left, TreeNode *rig...
ArnisLielturks/Urho3D-Project-Template
app/src/main/cpp/UI/PopupMessage/PopupMessageWindow.h
#pragma once #include <Urho3D/UI/Button.h> #include <Urho3D/UI/Window.h> #include <Urho3D/UI/Text.h> #include "../BaseWindow.h" class PopupMessageWindow : public BaseWindow { URHO3D_OBJECT(PopupMessageWindow, BaseWindow); public: PopupMessageWindow(Context* context); virtual ~PopupMessageWindow(); ...
JoeBuzh/DeepWater
dao/test.py
# -*- encoding: utf-8 -*- ''' @Filename : run.py @Datetime : 2020/09/22 16:59:29 @Author : Joe-Bu @version : 1.0 ''' """ ORM Test """ import sys sys.path.append('../') import traceback import pandas as pd from dao.orm.SQLite_dynamic import orm from dao.orm.SQLite_dynamic import AutoStation, MonSecti...
FelipePM01/ProjetoMediumWar
src/src/peca/Archer.java
<reponame>FelipePM01/ProjetoMediumWar package peca; import java.awt.Image; import card.ICardBanco; import card.ICardJogadorPeca; import tabuleiro.Tile; public class Archer extends Ranged{ /** * */ private static final long serialVersionUID = -6369254339259024631L; private static String[] refImagens= {"assets...
Hendrikto/jena
jena-arq/src/test/java/org/apache/jena/sparql/function/library/TestFnFunctionsString.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 ...
a-shah8/LeetCode
Easy/746_minCostClimbingStairs.py
<filename>Easy/746_minCostClimbingStairs.py class Solution: def minCostClimbingStairs(self, cost: List[int]) -> int: for i in range(len(cost)-3, -1, -1): cost[i] += min(cost[i+1], cost[i+2]) return min(cost[0], cost[1])
tbnorth/flexx
flexxamples/demos/d3_collision.py
# doc-export: CollisionWidget """ Example using 3D. Adapted from a demo by <NAME>. """ from flexx import flx from pscript import RawJS from pscript.stubs import Math, d3, window flx.assets.associate_asset(__name__, 'https://d3js.org/d3.v3.min.js') class CollisionWidget(flx.Widget): """ A widget showing a collis...
PyDee/Spiders
jsparse/meijiexia/url_file.py
<reponame>PyDee/Spiders mjx_weibo = [ 'https://www.meijiexia.com/medias-76-0-0-0_0.html?time=&fans=&price=&pro=&per_page=1', 'https://www.meijiexia.com/medias-76-0-0-0_0.html?time=&fans=&price=&pro=&per_page=2', 'https://www.meijiexia.com/medias-76-0-0-0_0.html?time=&fans=&price=&pro=&per_page=3', 'http...
Benbentwo/jx
pkg/jx/cmd/step/create/step_create_jenkins_config.go
<gh_stars>1-10 package create import ( "fmt" "github.com/jenkins-x/jx/pkg/jx/cmd/helper" "io/ioutil" "strings" "github.com/jenkins-x/jx/pkg/jx/cmd/opts" "github.com/jenkins-x/jx/pkg/jx/cmd/templates" "github.com/jenkins-x/jx/pkg/kube" "github.com/jenkins-x/jx/pkg/log" "github.com/jenkins-x/jx/pkg/util" "git...
Cajivah/streamacho
server/meeting/src/main/java/com/streamacho/meeting/config/web/SpringWebMvcConfig.java
<filename>server/meeting/src/main/java/com/streamacho/meeting/config/web/SpringWebMvcConfig.java package com.streamacho.meeting.config.web; import com.streamacho.meeting.config.converter.StringToRoomStatusConverter; import org.springframework.context.annotation.Configuration; import org.springframework.format.Formatte...
ziocleto/trends.bar
projects/trends.bar/src/components/dashboardProject/subcomponents/DataSources/DataSourcesCreatorLogic.js
<reponame>ziocleto/trends.bar<filename>projects/trends.bar/src/components/dashboardProject/subcomponents/DataSources/DataSourcesCreatorLogic.js import {api, useApi} from "../../../../futuremodules/api/apiEntryPoint"; import {addNewScript} from "../../../../futuremodules/fetch/fetchApiCalls"; import {useEffect} from "re...
CiscoISE/terraform-provider-ciscoise
ciscoise/logger.go
<reponame>CiscoISE/terraform-provider-ciscoise package ciscoise import ( "log" "os" ) func createLogger() *logger { l := &logger{l: log.New(os.Stderr, "", log.LstdFlags)} return l } type logger struct { l *log.Logger } func (l *logger) Errorf(format string, v ...interface{}) { log.Printf("[ERROR] [RESTY] "+fo...
Kuangcp/kcp-tool-java
kcp-aop/src/main/java/com/github/kuangcp/aop/proxy/JdkProxyFactory.java
<filename>kcp-aop/src/main/java/com/github/kuangcp/aop/proxy/JdkProxyFactory.java package com.github.kuangcp.aop.proxy; import com.github.kuangcp.aop.ProxyUtil; import com.github.kuangcp.aop.aspect.Aspect; import com.github.kuangcp.aop.interceptor.JDKInterceptor; /** * @author https://github.com/kuangcp on 2019-10-0...
bitcrystal/edk
Sample/Universal/Network/PxeBc/Dxe/hton.h
<gh_stars>10-100 /*++ Copyright (c) 2004, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies th...
uk-gov-mirror/hmcts.div-petitioner-frontend
app/core/middleware/loadContent.test.js
const { expect } = require('test/util/chai'); const loadContent = require('app/core/middleware/loadContent'); const commonContent = require('app/middleware/commonContent'); const test = (step, block) => { const req = { session: { language: 'en' } }; const res = { locals: {} }; const next = () => { block(req,...
netx-ulx/varanus
utils/src/main/java/net/varanus/util/functional/functions/ExceptionalFunction.java
package net.varanus.util.functional.functions; import java.util.Objects; /** * @param <T> * @param <R> * @param <X> */ @FunctionalInterface public interface ExceptionalFunction<T, R, X extends Throwable> { public R apply( T t ) throws X; public default <V> ExceptionalFunction<V, R, ...
SferaDev/XDADevCon
android/src/main/java/com/google/samples/apps/iosched/nearby/MetadataResolver.java
<reponame>SferaDev/XDADevCon /* * Copyright 2014 Google Inc. 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 * * http://www.apache.org/licenses/LICENSE-2.0 *...
HongZhaoHua/jstarcraft-dataset
src/main/java/com/jstarcraft/crawler/trade/security/bond/essence/EssenceIssueBond.java
<gh_stars>1-10 package com.jstarcraft.crawler.trade.security.bond.essence; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.noear.snack.ONode; import ...
safehousetech/gocloud
dns/designate/designate.go
<filename>dns/designate/designate.go<gh_stars>0 package designate //Designate .. type Designate struct { }
michel-pi/xenforo-documentation
docs/2-1-0/d8/d05/class_x_f_1_1_cli_1_1_command_1_1_development_1_1_export_options.js
var class_x_f_1_1_cli_1_1_command_1_1_development_1_1_export_options = [ [ "execute", "d8/d05/class_x_f_1_1_cli_1_1_command_1_1_development_1_1_export_options.html#ab31c72b72ddaf7116db5d84c055d3c0b", null ], [ "getContentTypeDetails", "d8/d05/class_x_f_1_1_cli_1_1_command_1_1_development_1_1_export_options.html...
MRixen/rbc_Diagnose
afreechart/src/main/java/org/afree/data/xy/XYIntervalSeries.java
/* =========================================================== * AFreeChart : a free chart library for Android(tm) platform. * (based on JFreeChart and JCommon) * =========================================================== * * (C) Copyright 2010, by ICOMSYSTECH Co.,Ltd. * (C) Copyright 2000-2008, by ...
fengjixuchui/blazefox
src/js/wasm/WasmTable.cpp
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * * Copyright 2016 Mozilla 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...
rccoder/HIT-Survey
scripts/admin/emailtemplates.js
<gh_stars>10-100 // $Id: saved.js 9330 2010-10-24 22:23:56Z c_schmitz $ $(document).ready(function(){ handle=$('.tabsinner').tabs( { show: loadHTMLEditor }); // Binds the Default value buttons for each email template subject and body text $('.fillin').bind('click', function(e) { ...
NightKev/Renol-IRC
commands/show_Version.py
ID = "version" permission = 0 def execute(self, name, params, channel, userdata, rank): self.sendChatMessage(self.send, channel, "Yoshi2's IRC Bot v0.3")
19920625lsg/liuyubobobo-algorithms
Part2BasicGraph/src/main/java/Chapter15Matching/Section5to7Hungarian/HungarianBFS.java
/*********************************************************** * @Description : 基于图的BFS遍历实现的匈牙利算法(Hungarian算法) * @author : 梁山广(<NAME>) * @date : 2019/12/28 0:29 * @email : <EMAIL> ***********************************************************/ package Chapter15Matching.Section5to7Hungarian; import Ch...
2802harsh/Teamder-1
client/src/components/Profile/Menu.js
import React, { useContext } from 'react'; // import Edit from './Edit'; import Edit from './Edit1'; import {Link} from 'react-router-dom'; import {userDataContext} from './profilePage'; import NewChat from './NewChat'; import SERVER_URL from '../../utils/constants'; import axios from 'axios'; axios.defaults.withCrede...
Fusion-Rom/android_external_chromium_org_third_party_WebKit
Source/platform/graphics/test/MockImageDecoder.h
<gh_stars>1-10 /* * Copyright (C) 2012 Google Inc. 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...
sniceio/hektor
hektor-fsm/src/main/java/io/hektor/fsm/builder/exceptions/FinalStateTransitionsException.java
<gh_stars>1-10 package io.hektor.fsm.builder.exceptions; /** * Indicates that you tried to define transitions on a final state. A final state cannot have * transitions since that state is, well, final. As in, once the FSM reaching this state, it's * dead, no way back. * * @author <EMAIL> */ public class FinalSta...
google-cloud-sdk-unofficial/google-cloud-sdk
lib/googlecloudsdk/command_lib/util/declarative/clients/client_base.py
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
syaifuddinh/electric-repair
public/core/marketing/vendor_prices/core.js
var vendorPrices = angular.module('vendorPrices', ['ui.router'], () => {}) vendorPrices.config(($stateProvider, $urlRouterProvider) => { }) vendorPrices.service('vendorPricesService', function($http, $rootScope) { var api = {} var url = {} url.store = () => baseUrl + '/marketing/vendor_price' url.sho...
LeedsCC/QEWD-Courier
helm/openehr_service/lib/shared/validation.js
/* ---------------------------------------------------------------------------- | | | Copyright (c) 2019 Ripple Foundation Community Interest Company | | All rights reserved. | | ...
atultherajput/evpoco
evnet/include/Poco/evnet/EVServerResponse.h
<filename>evnet/include/Poco/evnet/EVServerResponse.h<gh_stars>1-10 // // EVServerResponse.h // // Library: evnet // Package: HTTPServer // Module: EVServerResponse // // Definition of the EVServerResponse class. // // #ifndef EVNet_EVServerResponse_INCLUDED #define EVNet_EVServerResponse_INCLUDED #include "Poco/Net...
eswdd/cougar
disco-framework/disco-zipkin-common/src/test/java/uk/co/exemel/disco/modules/zipkin/impl/ZipkinAnnotationsStoreTest.java
<reponame>eswdd/cougar<gh_stars>0 /* * Copyright 2015, The Sporting Exchange 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 ...
anuragpathak0/C-Plus-Plus
Tut 7/checking.cpp
<reponame>anuragpathak0/C-Plus-Plus #include <iostream> using namespace std; int main() { float d=3.14; long double e=3.14; cout<<"The value of d is "<<d<<endl<<"The value of e is "<<e<<endl; cout<<"The size of d is "<<sizeof(d)<<endl; cout<<"The size of e is "<<sizeof(e)<<endl; cout<<"The...
DavidLlorens/algoritmia
src/tests/datastructures/test_mergefindsets.py
<reponame>DavidLlorens/algoritmia #coding: latin1 import unittest from algoritmia.datastructures.mergefindsets import (NaiveMergeFindSet, RankUnionMFset, PathCompressionMFset, MergeFindSet) from algoritmia.datastructures.maps import IntKeyMap class TestNaiv...
GaneshSPatil/Transpiler
src/lib/arithmeticOperations.js
const util = require('./util.js'); const getNumber = util.getNumber; const operators = { '*': function(num1, num2, variables) { return getNumber(num1, variables).value * getNumber(num2, variables).value; }, '+': function(num1, num2, variables) { return getNumber(num1, variables).value + getNumber(num2, v...
nleiva/telemetry-proto
proto_go/cisco_ios_xr_ipv6_new_dhcpv6d_oper/dhcpv6/nodes/node/proxy/profiles/profile/throttle_infos/throttle_info/ipv6_dhcpv6d_mac_throttle.pb.go
<filename>proto_go/cisco_ios_xr_ipv6_new_dhcpv6d_oper/dhcpv6/nodes/node/proxy/profiles/profile/throttle_infos/throttle_info/ipv6_dhcpv6d_mac_throttle.pb.go // Code generated by protoc-gen-go. DO NOT EDIT. // source: ipv6_dhcpv6d_mac_throttle.proto package cisco_ios_xr_ipv6_new_dhcpv6d_oper_dhcpv6_nodes_node_proxy_prof...
zhz44/mindspore
mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/environ/aicpu_environ_manager.cc
<filename>mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/environ/aicpu_environ_manager.cc<gh_stars>1-10 /** * Copyright 2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
kgavrailov/multiapps-controller
com.sap.cloud.lm.sl.cf.core/src/main/java/com/sap/cloud/lm/sl/cf/core/helpers/v2_0/UserProvidedResourceResolver.java
package com.sap.cloud.lm.sl.cf.core.helpers.v2_0; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.sap.cloud.lm.sl.cf.core.helpers.v1_0.ResourceTypeFinder; import com.sap.cloud.lm.sl.mta.builders.v2_0.ParametersChainBuilder; import com.sap.cloud.lm.sl.mta.model.v1_0.Module; import c...
isabella232/griffin-1
griffin-core/src/main/java/com/ebay/oss/griffin/vo/OverViewStatistics.java
/* Copyright (c) 2016 eBay 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 by applicable law or agreed to i...
franz1981/infinispan
core/src/main/java/org/infinispan/commands/write/InvalidateVersionsCommand.java
<filename>core/src/main/java/org/infinispan/commands/write/InvalidateVersionsCommand.java<gh_stars>1-10 package org.infinispan.commands.write; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.concurrent.CompletionStage; import org.infinispan.commands.VisitableComma...
njj-gov/oauth-2.0-sdk-with-openid-connect-extensions
src/main/java/com/nimbusds/oauth2/sdk/auth/verifier/JWTAuthenticationClaimsSetVerifier.java
<filename>src/main/java/com/nimbusds/oauth2/sdk/auth/verifier/JWTAuthenticationClaimsSetVerifier.java<gh_stars>0 /* * oauth2-oidc-sdk * * Copyright 2012-2016, Connect2id Ltd and contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with ...
zhangguozhangyue/bigdatapig
src/main/java/cn/bluedot/core/domain/FetalStructure.java
<filename>src/main/java/cn/bluedot/core/domain/FetalStructure.java package cn.bluedot.core.domain; /** * * @author hxp * 2018��8��7�� ����4:31:12 */ public class FetalStructure { /** * ̥�νṹID */ private long fetalStructureID; /** * ����� */ private String pigNo; /** * ĸ���ܲ����� */ private i...
Alx06/WinObjC
include/Platform/Universal Windows/UWP/WindowsSecurityAuthenticationOnlineId.h
<gh_stars>1-10 //****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLU...
mlange05/atlas
src/atlas/trans/ifs/VorDivToUVIFS.h
<filename>src/atlas/trans/ifs/VorDivToUVIFS.h /* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * grant...
utexas-rl-texplore/rl_suite
rl_agent/src/Models/MultipleClassifiers.cc
/** \file MultipleClassifiers.cc Implements the Multiple Classifiers class. \author <NAME> */ #include "MultipleClassifiers.hh" MultipleClassifiers::MultipleClassifiers(int id, int modelType, int predType, int nModels, int trainMode, ...
David-Jackson/SensESP
docs/generated/docs/search/enumvalues_1.js
<filename>docs/generated/docs/search/enumvalues_1.js var searchData= [ ['bus_5fvoltage_1562',['bus_voltage',['../class_i_n_a219_value.html#a3e9bd0837f3e8b5cbe6f0cb1d2ed9110a6a7c7ba59fd86975b97fc7a8b7efce23',1,'INA219Value']]], ['buttonpress_1563',['ButtonPress',['../click__type_8h.html#a4a760072c8c7ae604f801ff82824...
KitwareMedical/itk-tube-web
src/ui/TubeTreeView.js
import React from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { Spin, Button, Table } from 'antd'; import style from '../Tube.mcss'; import PopupColorPicker from './PopupColorPicker'; @observer class Container extends React.Component { static propTypes = { stores:...
QM-Quality-Manager/legacy-rest-api
libraries/node/examples/localization/get_display_tag_names.js
<filename>libraries/node/examples/localization/get_display_tag_names.js const { LocalizationService } = require('../../lib/services'); const fs = require('fs'); const endPoint = "http://localhost:8080/qmplus/rest"; // const endPoint = null; (async () => { // Create user service let service = new LocalizationServi...
rhysd/rill
rill/ast/detail/base_type.hpp
<filename>rill/ast/detail/base_type.hpp<gh_stars>0 #pragma once #include <type_traits> namespace rill { namespace ast { namespace detail { template<typename=void> struct ast_base_type_specifier {}; template<typename T> using ast_base_type = typ...
bpodell/whiteboard
05/__test__/link.test.js
<gh_stars>0 'use strict'; const link = require('../lib/link.js'); require('jest'); describe('#link', function () { let proper = { value: 1, next: {value: 2, next: {value: 3, next: {value: 4, next: null }}}, }; let nullLink = { value: 1, next: {value: null, next: {value: 3, next: {value: 4, next: null }}...
ENDERZOMBI102/LoaderComplex
loadercomplex-bukkit/src/main/java/com/enderzombi102/loadercomplex/bukkit/impl/BukkitLoader.java
<filename>loadercomplex-bukkit/src/main/java/com/enderzombi102/loadercomplex/bukkit/impl/BukkitLoader.java package com.enderzombi102.loadercomplex.bukkit.impl; import com.enderzombi102.loadercomplex.api.Loader; import com.enderzombi102.loadercomplex.api.Registry; import com.enderzombi102.loadercomplex.api.utils.Loader...
gavineadie/Pachyderm
Applications/Pachyderm3/Sources/org/pachyderm/woc/AdminSettings.java
package org.pachyderm.woc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.webobjects.appserver.WOComponent; import com.webobjects.appserver.WOContext; public class AdminSettings extends AdminHelper { private static Logger LOG = LoggerFactory.getLogger(AdminMonitor.class); private st...
jinxiyang/Yunfan
app/src/main/java/com/yang/yunfan/ui/main/VideoFragment.java
<filename>app/src/main/java/com/yang/yunfan/ui/main/VideoFragment.java package com.yang.yunfan.ui.main; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.View; ...
gridgentoo/gridgain
modules/core/src/test/java/org/gridgain/grid/GridExceptionHelpLinksSelfTest.java
package org.gridgain.grid; import junit.framework.*; import org.jetbrains.annotations.*; import java.util.*; import static org.gridgain.grid.util.GridUtils.*; /** * Tests for proper link output in stack traces. */ public class GridExceptionHelpLinksSelfTest extends TestCase { /** * @throws Exception If f...
athenagroup/brxm
site-toolkit/components/core/src/main/java/org/hippoecm/hst/core/sitemenu/HstSiteMenuUtils.java
/* * Copyright 2013 <NAME>. (http://www.onehippo.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 * * Unless required by...
tillprochaska/honeypot
app/views/sensor_readings/index.json.jbuilder
# frozen_string_literal: true json.array!(@sensor_readings) do |sensor_reading| json.extract! sensor_reading, :id, :created_at, :calibrated_value, :uncalibrated_value, :annotation, :release end
mrcybenz/test
codes/01-02-01-01-es2015-spec/12-arrow-func-this.js
// 箭头函数与 this // 箭头函数不会改变 this 指向 const person = { name: 'tom', // sayHi: function () { // console.log(`hi, my name is ${this.name}`) // } sayHi: () => { console.log(`hi, my name is ${this.name}`) }, sayHiAsync: function () { // const _this = this // setTimeout(function () { ...
zhangxdnw/pc_remote_android
app/com_ss_android_ugc_aweme/180101/live_gift.py
<filename>app/com_ss_android_ugc_aweme/180101/live_gift.py #!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : live_gift.py @Contact : <EMAIL> @License : MIT @Modify Time @Author @Version @Description ------------ ------- -------- ----------- 2021/10/25 17:43 zxd 1.0 ...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_58.java
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
brainvisa/aims-free
ecat/src/lib/lib_compress/c_uvlc.c
<filename>ecat/src/lib/lib_compress/c_uvlc.c /* * Copyright (C) 1993 University of Louvain, Louvain-la-Neuve, Belgium * Telecommunication Laboratory. * * This program may be used free of charge by the members * of all academic and/or scientific institutions. * ANY OTHER USE IS PROHIBITED. * It may als...
pozdnyakov/chromium-crosswalk
webkit/browser/dom_storage/dom_storage_namespace.h
<filename>webkit/browser/dom_storage/dom_storage_namespace.h // Copyright (c) 2012 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 WEBKIT_BROWSER_DOM_STORAGE_DOM_STORAGE_NAMESPACE_H_ #define WEBKIT_BROWSER_DOM_ST...
6543-forks/fuxi
pkg/api/workload/handler/secret.go
package handler import ( "encoding/json" "github.com/gin-gonic/gin" v1 "k8s.io/api/core/v1" "net/http" ) // Get Secret func (w *WorkloadsAPI) GetSecret(g *gin.Context) { namespace := g.Param("namespace") name := g.Param("name") item, err := w.secret.Get(namespace, name) if err != nil { toInternalServerError...
ScalablyTyped/SlinkyTyped
e/exceljs/src/main/scala/typingsSlinky/exceljs/anon/PartialCsvReadOptions.scala
package typingsSlinky.exceljs.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /* Inlined std.Partial<exceljs.exceljs.CsvReadOptions> */ @js.native trait PartialCsvReadOpti...
chgogos/oop
cpp_playground/ex035/profile1.cpp
#include <iostream> #include <cmath> void test1() { double sum = 0.0; for (int i = 0; i < 1000000; i++) { for (int j = 0; j < 100; j++) { double x = i + 0.1; sum += sqrt(x); } } std::cout << sum << std::endl; } int main() { test1(); return 0;...
christian-posta/gloo-mesh
pkg/meshctl/commands/install/enterprise/enterprise.go
package enterprise import ( "context" "github.com/rotisserie/eris" "github.com/solo-io/gloo-mesh/pkg/meshctl/commands/install/internal/flags" "github.com/solo-io/gloo-mesh/pkg/meshctl/install/gloomesh" "github.com/solo-io/gloo-mesh/pkg/meshctl/install/helm" "github.com/solo-io/gloo-mesh/pkg/meshctl/registration...
kode54/it2play
it2drivers/sb16_m.c
/* ** ---- SB16 IT2 driver (mixing code) ---- */ #include <stdint.h> #include <stdbool.h> #include "../it_structs.h" #include "../it_music.h" #include "sb16_m.h" #define Get32BitI8Waveform /* 8bb: "12 Bit Interpolated" */ \ sample = smp[0]; \ sample2 = smp[1]; \ sample2 -= sample; \ sample2 *= (int3...
kifj/ioc-unit
modules/ioc-unit-ejb/src/main/java/com/oneandone/iocunit/ejb/trainterceptors/TransactionalInterceptorMandatory.java
package com.oneandone.iocunit.ejb.trainterceptors; import static javax.transaction.Transactional.TxType.MANDATORY; import javax.annotation.Priority; import javax.interceptor.Interceptor; import javax.transaction.Transactional; /** * @author aschoerk */ @Interceptor @Priority(Interceptor.Priority.PLATFORM_BEFORE + ...
pmark/jivepages
spec/views/boxes/new.html.erb_spec.rb
<reponame>pmark/jivepages require File.dirname(__FILE__) + '/../../spec_helper' describe "/boxes/new.html.erb" do include BoxesHelper before(:each) do @box = mock_model(Box) @box.stub!(:new_record?).and_return(true) @box.stub!(:jivepage_id).and_return("1") @box.stub!(:cell_id).and_return("1") ...