repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
julza03/sirius-solver | src/POINT_INTERIEUR/pi_sos1s2.c | <filename>src/POINT_INTERIEUR/pi_sos1s2.c
/*
** Copyright 2007-2018 RTE
** Author: <NAME>
**
** This file is part of Sirius_Solver.
** This program and the accompanying materials are made available under the
** terms of the Eclipse Public License 2.0 which is available at
** http://www.eclipse.org/legal/epl-2.0.
**
** ... |
paulusrobin/leaf-utilities | appRunner/worker/base.go | <filename>appRunner/worker/base.go
package leafWorker
import (
"context"
leafLogger "github.com/paulusrobin/leaf-utilities/logger/logger"
"os"
"time"
)
type (
IRunner interface {
OperationName() string
Serve(sig chan os.Signal, logger leafLogger.Logger)
}
MiddlewareHandlerFunc func(ctx context.Context) err... |
npocmaka/Windows-Server-2003 | admin/snapin/rolemgr/adminmanageraz.cpp | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2000 - 2001.
//
// File: AdminManagerAz.cpp
//
// Contents: Implements CAdminManagerAz. CAdminManagerAz is thin wrapper
// for IAzAuthorizationStore int... |
hchenc/go-harbor | model_tag.go | /*
* Harbor API
*
* These APIs provide services for manipulating Harbor project.
*
* API version: 2.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package swagger
import (
"time"
)
type Tag struct {
// The ID of the tag
Id int64 `json:"id,omitempty"`
// The ID of... |
turp1twin/cql-query-engine | src/lib/fhir/questionnaireAnswers.js | // Copyright (c) 2014 The MITRE Corporation
// 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
// lis... |
Sajaki/intellij-community | platform/lang-impl/testSources/com/intellij/execution/actions/ConfigurationContextTest.java | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.actions;
import com.intellij.execution.Location;
import com.intellij.execution.PsiLocation;
import com.intellij.execution.RunManager;
import com.in... |
bumswerner/new-fsi | test/system/notificationtypes_test.rb | require "application_system_test_case"
class NotificationtypesTest < ApplicationSystemTestCase
# test "visiting the index" do
# visit notificationtypes_url
#
# assert_selector "h1", text: "Notificationtype"
# end
end
|
dropbox/DropboxBusinessScripts | Groups/ListGroupFolderPermissions.py | import urllib2
import json
import argparse
import sys
import csv
reload(sys)
sys.setdefaultencoding('UTF8')
parser = argparse.ArgumentParser(description='Lists all folders and folder permissions for groups in a DB or DE team.')
parser.add_argument('-g', '--group', dest='groups', action='append', help='Target group na... |
LinkinW92/htd | skeqi-common/src/main/java/com/skeqi/common/core/domain/entity/SysMenu.java | package com.skeqi.common.core.domain.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Si... |
LaudateCorpus1/weblogic-image-tool | tests/src/test/java/com/oracle/weblogic/imagetool/tests/ITImagetool.java | // Copyright (c) 2020, 2021, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package com.oracle.weblogic.imagetool.tests;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOExcept... |
symcomp/org.symcomp.openmath | src/main/java/org/symcomp/openmath/popcorn/symbols/Transc1.java | <reponame>symcomp/org.symcomp.openmath<filename>src/main/java/org/symcomp/openmath/popcorn/symbols/Transc1.java<gh_stars>1-10
//---------------------------------------------------------------------------
// Copyright 2006-2009
// <NAME>, <EMAIL>, (TU Eindhoven, Netherlands)
// <NAME>, <EMAIL> (University Kassel... |
Groundswell/swell_ecom | app/views/swell_ecom/subscription_plans/show.json.jbuilder |
json.title @plan.title
json.avatar @plan.avatar
json.description @plan.description
json.content @plan.content
json.price number_to_currency( @plan.price / 100.to_f )
json.price_in_cents @plan.price
json.billing_interval @plan.billing_interval_value.to_s + " " + @plan.billing_interval_unit
json.trial... |
unification-com/mainchain-cosmos | x/enterprise/client/cli/query.go | package cli
import (
"context"
"fmt"
"strconv"
"strings"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"
entutils "github.com/unification-com/mainchain/x/enterprise/cl... |
itc7/alipay-sdk-java-all | src/main/java/com/alipay/api/response/AlipayMerchantPayforprivilegeMemberremainingQueryResponse.java | <gh_stars>0
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.merchant.payforprivilege.memberremaining.query response.
*
* @author <NAME>
* @since 1.0, 2020-04-08 11:35:33
*/
public class AlipayMerchantPa... |
TheThirdPillar/Identity | identity-web-app/components/WellBeingCard.js | <filename>identity-web-app/components/WellBeingCard.js<gh_stars>0
import Cookies from 'js-cookie'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import Card from 'react-bootstrap/Card'
import CardDeck from 'react-bootstrap/CardDeck'
import Button from 'react-bootstrap/Button'
import Progre... |
lhiuming/REI | tests/test_d3d11.cpp | // D3D11 tutorial from www.braynzarsoft.net, with modification and additional comments
// Include and link appropriate libraries and headers //
#include <DirectXMath.h> // new math lib from d3d11
#include <d3d11.h>
#include <d3dcompiler.h> // new shader compiler from d3d11; D3DX is deprecated since windows 8
#include... |
vaibhav-s/self-driving-car | steering-models/community-models/autumn/autumn/__init__.py | <reponame>vaibhav-s/self-driving-car
from .cnn_model import ConvModel
from .data_reader import DataReader
|
JosephCrandall44/CSCI_3212_Algorithms | jwcrandall_a1/BinarySearchTree.java | /*
Binary Search Tree
Programed by <NAME>
Last modifed September 28, 2015
*/
import edu.gwu.algtest.*;
import edu.gwu.debug.*;
import edu.gwu.util.*;
import java.util.*;
import java.lang.*;
//NOTE keys are unique in this BST, no duplicates
//Tree node class has the following fields has the following parameters
//publi... |
ralfonso/spree | cmd/spreed/command.go | package main
import "github.com/codegangsta/cli"
var (
caCertFileFlag = cli.StringFlag{
Name: "ca.cert.file",
Value: "/etc/spree/certs/spree.ca.crt",
Usage: "CA cert file for TLS server",
EnvVar: "SPREE_CACERT_FILE",
}
certFileFlag = cli.StringFlag{
Name: "cert.file",
Value: "/etc/spree/certs/sp... |
hillst/MetaStone | src/net/demilich/metastone/game/cards/concrete/warlock/TwistingNether.java | <filename>src/net/demilich/metastone/game/cards/concrete/warlock/TwistingNether.java
package net.demilich.metastone.game.cards.concrete.warlock;
import net.demilich.metastone.game.cards.Rarity;
import net.demilich.metastone.game.cards.SpellCard;
import net.demilich.metastone.game.entities.heroes.HeroClass;
import net.... |
rjw57/tiw-computer | emulator/src/devices/bus/a2bus/a2corvus.cpp | // license:BSD-3-Clause
// copyright-holders:<NAME>
/*********************************************************************
a2corvus.c
Implementation of the Corvus flat-cable hard disk interface
for the Apple II.
This same card was used in the Corvus Concept.
C0n0 = drive read/write
C0n1 = re... |
Spidey01/sxe | tests/cmds/CommandTest.cpp | <reponame>Spidey01/sxe
/*-
* Copyright (c) 2019-current, <NAME> <<EMAIL>>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
*
* Permission is granted to anyone to use this software... |
Ssunhx/ginServer | middleware/jwt.go | package middleware
import (
"ginserver/utils"
"github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
"net/http"
"time"
)
// 用户签名,不能泄漏
var Jwtkey = []byte("<KEY>")
type MyClaims struct {
Username string `json:"username"`
Password string `json:"password"`
jwt.StandardClaims
}
// 生成 JWT Token
func GenJwtToke... |
test-mile/setu | testmile-setu/setu/dispatcher/testsession.py | <reponame>test-mile/setu
from .guiautomator_dispatcher import GuiAutomatorDispatcher
class TestSessionDispatcher:
def create_gui_automator_dispatcher(self, config, setu_id):
return GuiAutomatorDispatcher(config, setu_id)
def create_gui_element_dispatcher(self, atuomator_dispatcher, element_setu_id):... |
democat3457/BetterWithAddons | src/main/java/betterwithaddons/interaction/InteractionBTWTweak.java | <filename>src/main/java/betterwithaddons/interaction/InteractionBTWTweak.java
package betterwithaddons.interaction;
import betterwithaddons.BetterWithAddons;
import betterwithaddons.block.ModBlocks;
import betterwithaddons.crafting.conditions.ConditionModule;
import betterwithaddons.crafting.recipes.DoorSawRecipe;
imp... |
Xenuzever/sit-wt-all | sit-wt-util/src/main/java/io/sitoolkit/wt/util/infra/util/OverwriteChecker.java |
package io.sitoolkit.wt.util.infra.util;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import javafx.application.Platform;
import javafx.scene.control.ChoiceDialog;
/**
* このクラスは、ファイルを上書き可否をユーザーに確認するためのクラスです。
... |
prathamesh-sonpatki/jruby | bench/yarv/bm_loop_times.rb | <filename>bench/yarv/bm_loop_times.rb
30000000.times{|e|}
|
Twinparadox/AlgorithmProblem | Baekjoon/2056.cpp | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
int main(void)
{
cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(false);
int N, ans = 0;
vector<vector<int> > adj;
vector<int> ind, arr, dp;
queue<int> q;
cin >> N;
adj.resize(N + 1);
ind.resize(N + 1, 0);
ar... |
qafedev/qafe-platform | qafe-web-gwt/src/main/java/com/qualogy/qafe/gwt/client/component/QMultiWordSuggestion.java | /**
* Copyright 2008-2017 Qualogy Solutions B.V.
*
* 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... |
nexus-devs/cubic | test/requests.js | const assert = require('assert')
const Client = require(`${process.cwd()}/packages/client`)
const Endpoint = require('cubic-api/endpoint')
/**
* Tests for properly responding to usual requests.
*/
describe('Requests', function () {
let client, uiClient, options
before(async function () {
client = new Client... |
avelez93/tfx | tfx/orchestration/portable/importer_node_handler_test.py | # 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 required by applicable law or a... |
snusnu/merb_resource_controller | spec/mrc_test_app/spec/spec_helper.rb | $:.push File.join(File.dirname(__FILE__), '..', 'lib')
require "rubygems"
# Add the local gems dir if found within the app root; any dependencies loaded
# hereafter will try to load from the local gems before loading system gems.
if (local_gem_dir = File.join(File.dirname(__FILE__), '..', 'gems')) && $BUNDLE.nil?
$... |
bckrm/gianna-biscontini | web/src/components/internalLink.js | import React from 'react';
import PropTypes from 'prop-types';
// import styled from 'styled-components';
// import tw from 'twin.macro';
import { Link } from 'gatsby';
export default function InternalLink({ data }) {
const {
link: { pageTitle },
linkText,
} = data;
const link = pageTitle.... |
kle97/enrollment-system | src/main/java/io/spring/enrollmentsystem/feature/authentication/InvalidAccessTokenException.java | package io.spring.enrollmentsystem.feature.authentication;
public class InvalidAccessTokenException extends RuntimeException{
public InvalidAccessTokenException() {
super("Invalid or missing access token, please log in again!");
}
public InvalidAccessTokenException(Throwable cause) {
supe... |
joluxer/NpfsCpp | src/Npfs/Resources/AsciiDecimalInt16VarSerDes.cpp | <gh_stars>0
/*
* AsciiDecimalInt16VarSerDes.cpp
*
* Created on: 29.09.2012
* Author: lode
*/
#include "AsciiDecimalInt16VarSerDes.h"
#include "Util/PrintfToStream.h"
#include "Util/StringBufferStream.h"
#include <assert.h>
#include <stdlib.h>
namespace Npfs
{
AsciiDecimalInt16VarSerDes::AsciiDecimalInt1... |
2bitsin/Subor | Sources/core/RicohCpuImpl.hpp | <reponame>2bitsin/Subor
#include "RicohCpu.hpp"
template <auto ... _Test, typename _Value>
constexpr bool is_in (_Value&& value)
{
return (... || (value == _Test));
}
template <BusOperation _Operation, typename _Host, typename _Value>
inline auto RicohCPU::tick (_Host&& m, word addr, _Value&& data)
{
byte discard ... |
metaphore/gdx-liftoff | src/main/java/com/github/czyzby/lml/parser/impl/attribute/scroll/ScrollPercentLmlAttribute.java | <reponame>metaphore/gdx-liftoff
package com.github.czyzby.lml.parser.impl.attribute.scroll;
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.action.ActorConsumer;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.git... |
CiscoDevNet/ydk-cpp | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.hpp | <filename>cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv4_acl_cfg.hpp
#ifndef _CISCO_IOS_XR_IPV4_ACL_CFG_
#define _CISCO_IOS_XR_IPV4_ACL_CFG_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xr {
namespace Cisco_IOS_XR_ipv4_acl_cfg {
... |
eaglesakura/eglibrary | deprecated/eglibrary-android-api8/src/com/eaglesakura/lib/android/game/loop/GameLoopManagerBase.java | package com.eaglesakura.lib.android.game.loop;
import com.eaglesakura.lib.android.game.display.VirtualDisplay;
import com.eaglesakura.lib.android.game.graphics.gl11.BitmapTextureImage;
import com.eaglesakura.lib.android.game.graphics.gl11.GPU;
import com.eaglesakura.lib.android.game.graphics.gl11.TextureImageBase;
imp... |
joseph-whiting/scala | test/scalacheck/range.scala | import org.scalacheck._
import Prop._
import Gen._
import Arbitrary._
class Counter(r: Range) {
var cnt = 0L
var last: Option[Int] = None
val str = "Range["+r.start+", "+r.end+", "+r.step+(if (r.isInclusive) "]" else ")")
def apply(x: Int) = {
cnt += 1L
if (cnt % 500000000L == 0L) {
println("Work... |
roman-sd/java-a-to-z | chapter_011/springMVC/src/main/java/ru/sdroman/carstore/models/OrderDTO.java | package ru.sdroman.carstore.models;
/**
* @author sdroman
* @since 08.2018
*/
public class OrderDTO {
/**
* Id.
*/
private int id;
/**
* Description.
*/
private String description;
/**
* Price.
*/
private int price;
/**
* Year.
*/
private S... |
gvlproject/moto | tests/test_ec2/test_customer_gateways.py | from __future__ import unicode_literals
import boto
import sure # noqa
from nose.tools import assert_raises
from nose.tools import assert_false
from boto.exception import EC2ResponseError
from moto import mock_ec2_deprecated
@mock_ec2_deprecated
def test_create_customer_gateways():
conn = boto.connect_vpc('the_... |
mimeyy/dylansbang | app/src/main/java/com/threerings/jme/tile/TileFringer.java | <reponame>mimeyy/dylansbang
//
// $Id$
//
// Nenya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://code.google.com/p/nenya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser... |
dbrower/bendo | server/db_mysql.go | <reponame>dbrower/bendo
package server
import (
"bytes"
"database/sql"
"encoding/json"
"log"
"strings"
"time"
// no _ in import mysql since we need mysql.NullTime
"github.com/BurntSushi/migration"
raven "github.com/getsentry/raven-go"
"github.com/go-sql-driver/mysql"
"github.com/ndlib/bendo/items"
)
// T... |
work-mohit/Placement-Practice | Love Babber OnGoing Placement/BinarySearch/PeakOfTheMountain.cpp | <reponame>work-mohit/Placement-Practice<gh_stars>0
class Solution {
public:
int peakIndexInMountainArray(vector<int>& arr) {
int n = arr.size();
int s =0;
int e = n-1;
int mid= s + (e-s)/2;
while(s < e){
if(arr[mid] < arr[mid+1]){
s = mid + 1;... |
intranetmouse/RayTracerChallenge | graphics.raytrace/src/test/java/org/intranet/graphics/raytrace/steps/CucumberTests.java | package org.intranet.graphics.raytrace.steps;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import io.cucumber.junit.CucumberOptions.SnippetType;
@RunWith(value = Cucumber.class)
@CucumberOptions(monochrome = true, plugin = {"pretty", "summar... |
aspireias-ins/CodebaseAppIOS | node_modules/appium/node_modules/appium-espresso-driver/espresso-server/app/src/androidTest/java/io/appium/espressoserver/lib/viewaction/RootViewFinder.java | package io.appium.espressoserver.lib.viewaction;
import android.support.test.espresso.UiController;
import android.support.test.espresso.ViewAction;
import android.view.View;
import org.hamcrest.Matcher;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.matcher.... |
weikano/TAKotlin | login/src/main/java/com/kingsunsoft/sdk/login/net/request/LoginReq.java | <gh_stars>0
package com.kingsunsoft.sdk.login.net.request;
import android.util.Log;
import com.qq.tars.protocol.tars.TarsOutputStream;
import com.kingsunsoft.sdk.login.exception.ResponseValidateError;
import com.kingsunsoft.sdk.mod.Header;
import com.kingsunsoft.sdk.mod.Response;
import com.kingsunsoft.sdk.modsdk.Log... |
ArriolaHarold2001/addedlamps | build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/commands/arguments/item/ItemArgument.java | package net.minecraft.commands.arguments.item;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.suggestion.Suggestions;
import com.... |
onap/appc | appc-directed-graph/appc-dgraph/provider/src/test/java/org/onap/appc/dg/TestGetConfigParams.java | /*-
* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ======================================================... |
OpenSextant/opensextant | OpenSextantToolbox/src/org/mitre/opensextant/processing/ResultsUtility.java | /**
* Copyright 2009-2013 The MITRE 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 applic... |
LaudateCorpus1/math | stan/math/opencl/kernels/ordered_logistic_lpmf.hpp | <reponame>LaudateCorpus1/math
#ifndef STAN_MATH_OPENCL_KERNELS_ORDERED_LOGISTIC_LPMF_HPP
#define STAN_MATH_OPENCL_KERNELS_ORDERED_LOGISTIC_LPMF_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/kernel_cl.hpp>
#include <stan/math/opencl/kernels/device_functions/log1m_exp.hpp>
#include <stan/math/opencl/kernels/device_f... |
OGJG-ZAMONG/ZAMONG-Backend-V1 | src/main/java/app/jg/og/zamong/entity/dream/selldream/chatting/chat/SellDreamChatting.java | <reponame>OGJG-ZAMONG/ZAMONG-Backend-V1
package app.jg.og.zamong.entity.dream.selldream.chatting.chat;
import app.jg.og.zamong.entity.dream.selldream.chatting.room.SellDreamChattingRoom;
import app.jg.og.zamong.entity.user.User;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.springframe... |
ahmedtaiye/tfeatslekan | cosineeuclidean.py | from __future__ import print_function
import sklearn
import mpl_toolkits
import os # for os.path.basename
from sklearn.metrics.pairwise import euclidean_distances
from sklearn.metrics.pairwise import cosine_similarity
import matplotlib.pyplot as plt
from sklearn.manifold import MDS
from scipy.cluster.hierarchy... |
highfestiva/life | tbc/include/geometryreference.h |
// Author: <NAME>
// Copyright (c) Pixel Doctrine
#pragma once
#include "geometrybase.h"
#include "../../lepra/include/transformation.h"
namespace tbc {
class GeometryReference: public GeometryBase {
typedef GeometryBase Parent;
public:
GeometryReference(GeometryBase* geometry);
virtual ~GeometryReferenc... |
nyctophiliacme/edtech-backend | questions/migrations/0001_initial.py | # Generated by Django 3.0.6 on 2020-05-27 14:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('chapters', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... |
lhf974941160211/Latin | library/src/android/support/v7/internal/view/ActionModeWrapper.java | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
GarryLance/GSKit | GSKit/UIKit/CollectionView/GSCollectionViewItemModel.h | //
// GSCollectionViewItemModel.h
// GSKitDemo
//
// Created by OSU on 16/7/28.
// Copyright © 2016年 GarryLance. All rights reserved.
//
#import "GSModelBase.h"
@interface GSCollectionViewItemModel : GSModelBase
@property (copy, nonatomic) NSString * placeholderImageName;
@property (copy, nonatomic) NSString * i... |
cwiki-us/Java-Tutorial | core-java-modules/core-java-8/src/main/java/com/ossez/strategy/Discounter.java | <filename>core-java-modules/core-java-8/src/main/java/com/ossez/strategy/Discounter.java
package com.ossez.strategy;
import java.math.BigDecimal;
import java.util.function.UnaryOperator;
public interface Discounter extends UnaryOperator<BigDecimal> {
default Discounter combine(Discounter after) {
return ... |
benety/mongo | src/mongo/util/net/openssl_init.cpp | <reponame>benety/mongo<gh_stars>0
/**
* Copyright (C) 2019-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 t... |
profxj/ginga | ginga/canvas/CompoundMixin.py | #
# CompoundMixin.py -- enable compound capabilities.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import sys
import traceback
from functools import reduce
import numpy as np
from ginga.canvas import coordmap
__all__ = ['CompoundMixin']
class Compo... |
consulo/consulo-csharp | csharp-psi-impl/src/main/java/consulo/csharp/lang/lexer/CSharpLexer.java | /*
* Copyright 2013-2017 consulo.io
*
* 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 ... |
JVVJV/FreeRTOS | FreeRTOS/Demo/CORTEX_STM32L152_IAR/system_and_ST_code/STM32L1xx_StdPeriph_Driver/src/stm32l1xx_rcc.c | /**
******************************************************************************
* @file stm32l1xx_rcc.c
* @author MCD Application Team
* @version V1.0.0RC1
* @date 07/02/2010
* @brief This file provides all the RCC firmware functions.
****************************************************... |
ankurshukla1993/IOT-test | coeey/com/google/android/gms/internal/zzx.java | package com.google.android.gms.internal;
public interface zzx {
int zza();
void zza(zzaa com_google_android_gms_internal_zzaa) throws zzaa;
int zzb();
}
|
jiadaizhao/LeetCode | 0201-0300/0271-Encode and Decode Strings/0271-Encode and Decode Strings.py | class Codec:
def encode(self, strs: [str]) -> str:
"""Encodes a list of strings to a single string.
"""
return ''.join(str(len(s)) + '@' + s for s in strs)
def decode(self, s: str) -> [str]:
"""Decodes a single string to a list of strings.
"""
result = [... |
shirohoo/spring-boot-examples | spring-webflux/src/main/java/io/github/shirohoo/reactive/app/MongoDBLoader.java | <reponame>shirohoo/spring-boot-examples
package io.github.shirohoo.reactive.app;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Component;
@Component
class MongoD... |
m-nakagawa/sample | jena-3.0.1/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleInfGraph.java | <reponame>m-nakagawa/sample
/*
* 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 ... |
chenqwwq/_leetcode | src/top.chenqwwq/leetcode/topic/greedy/_1578/SolutionTest.java | package top.chenqwwq.leetcode.topic.greedy._1578;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* @author chen
* @date 2020-10-26
**/
class SolutionTest {
Solution solution = new Solution();
@Test
void minCost() {
Assertions.assertEquals(3, solution.minCost("... |
hamongkhang/landingpage | resources/js/components/Pricing.js | const Pricing=()=>{
return(
<section id="pricing" className="pricing">
<div className="container">
<div className="section-title" >
<h2>Pricing</h2>
<p>Check our Pricing</p>
</div>
<div className="row" >
<div className="col-lg-3 col-md-6">
<div className=... |
fillumina/lcs | lcs/src/test/java/com/fillumina/lcs/AlgorithmsPerformanceTest.java | package com.fillumina.lcs;
import com.fillumina.lcs.helper.LcsList;
import com.fillumina.lcs.testutil.RandomSequenceGenerator;
import com.fillumina.performance.consumer.assertion.PerformanceAssertion;
import com.fillumina.performance.producer.TestContainer;
import com.fillumina.performance.template.AutoProgressionPerf... |
woodshop/complex-chainer | chainer/functions/concat.py | <filename>chainer/functions/concat.py<gh_stars>1-10
import numpy
from chainer import cuda
from chainer import function
from chainer.utils import type_check
_args = 'const float* x, float* y, int cdimx, int cdimy, int rdim, int coffset'
_preamble = '''
#define COPY(statement) \
int l = i / (rdim * cdimx); \
... |
wangdefeng/flink-boot | flink-dynamic-load-class/src/main/java/com/intsmaze/flink/dynamic/base/other/JarLoadService.java | <reponame>wangdefeng/flink-boot<filename>flink-dynamic-load-class/src/main/java/com/intsmaze/flink/dynamic/base/other/JarLoadService.java
package com.intsmaze.flink.dynamic.base.other;
import com.intsmaze.flink.dynamic.DynamicService;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLCl... |
OTCdLink/Chiron | modules/chiron/toolbox/src/main/java/com/otcdlink/chiron/toolbox/converter/ConverterException.java | package com.otcdlink.chiron.toolbox.converter;
import com.google.common.base.Converter;
/**
* Use this class to wrap an exception occuring in a {@link Converter#doForward(Object)}
* into an unchecked exception, telling it can be unwrapped with no loss of information.
*/
public final class ConverterException extend... |
ghentlivinglab/Personalized-mobility-information-service-solution-3 | frontend/app/tests/karma-jasmine-tests/conf.js | module.exports = function(config){
config.set({
basePath : '../../',
files : [ //Requires all used js files from the app itself aswell as angular modules (angular-resource.js etc.)
'https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js',
'../assets/javascript/modules/angular.min.js',
... |
hasnain1230/Intro-to-Computer-Science-Programs-cpp- | Fibonacci Sequence/src/Fibonacci Sequence.cpp | <gh_stars>0
//============================================================================
// Name : Fibonacci.cpp
// Author : <NAME>
// Version : 1.0.0
// Copyright : Freshman Class of 2020
// Description : This program will output a certain amount of Fibonacci Numbers. The user may chose the ho... |
NotDiscordOfficial/Fortnite_SDK | FrontendCamera_Main_classes.h | // BlueprintGeneratedClass FrontendCamera_Main.FrontendCamera_Main_C
// Size: 0x7f0 (Inherited: 0x7e0)
struct AFrontendCamera_Main_C : AFortCameraBase {
struct FPointerToUberGraphFrame UberGraphFrame; // 0x7e0(0x08)
struct UCameraComponent* LoginCamera_1; // 0x7e8(0x08)
void OnActivated(struct AFortPlayerController... |
avesus/OpenFPGA | openfpga/src/fpga_verilog/fabric_verilog_options.h | <gh_stars>100-1000
#ifndef FABRIC_VERILOG_OPTIONS_H
#define FABRIC_VERILOG_OPTIONS_H
/********************************************************************
* Include header files required by the data structure definition
*******************************************************************/
#include <string>
#include "... |
vcellmike/Biosimulators_VCell | vcell-math/src/main/java/jscl/math/MatrixVariable.java | package jscl.math;
public class MatrixVariable extends GenericVariable {
public MatrixVariable(Generic generic) {
super(generic);
}
protected Variable newinstance() {
return new MatrixVariable(null);
}
}
|
jzq84229/RxTools | RxDemo/src/main/java/com/tamsiree/rxdemo/activity/ActivityLoading.java | package com.tamsiree.rxdemo.activity;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout;
import com.tamsiree.rxdemo.R;
import com.tamsiree.rxdemo.fragment.Fr... |
old-bin/wot-design | test/unit/Input.spec.js | <filename>test/unit/Input.spec.js
import Input from 'wot-design/packages/input/index'
import { mount } from '@vue/test-utils'
import { testInstall, later } from './utils'
testInstall(Input)
test('placeholder', () => {
let wrapper = mount(Input, {
propsData: {
placeholder: '请输入'
}
})
expect(wrappe... |
zhenchai/pigeon | pigeon-remoting/src/main/java/com/dianping/pigeon/remoting/invoker/concurrent/FutureFactory.java | package com.dianping.pigeon.remoting.invoker.concurrent;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import com.dianping.pigeon.log.Logger;
import com.dianping.pigeon.log.LoggerLoader;
public class FutureFactory {
private static Logger log = LoggerLoader.getLogger(FutureFact... |
JLLeitschuh/nb-nodejs | node-projects/src/main/java/org/netbeans/modules/nodejs/NbInfo.java | package org.netbeans.modules.nodejs;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.LinkedHashMap;
import java.util.Map;
import org.netbeans.modules.nodejs.json.ObjectMapperProvider;
import static org.netbeans.modules.nodejs.json.ObjectMapperProvider.STRING_OBJECT... |
rkrzewski/bnd | aQute.libg/src/aQute/libg/filerepo/FileRepo.java | <filename>aQute.libg/src/aQute/libg/filerepo/FileRepo.java<gh_stars>0
package aQute.libg.filerepo;
import java.io.*;
import java.util.*;
import java.util.regex.*;
import aQute.libg.version.*;
public class FileRepo {
File root;
Pattern REPO_FILE = Pattern.compile("([-a-zA-z0-9_\\.]+)-([0-9\\.]+|latest)\\.(jar|lib)"... |
Dennisbonke/toaruos | base/usr/include/wchar.h | #pragma once
#include <_cheader.h>
#include <stddef.h>
_Begin_C_Header
extern int wcwidth(wchar_t c);
extern wchar_t * wcsncpy(wchar_t * dest, const wchar_t * src, size_t n);
extern size_t wcslen(const wchar_t * s);
extern int wcscmp(const wchar_t *s1, const wchar_t *s2);
extern wchar_t * wcscat(wchar_t *dest, const ... |
Denisss025/wsfcpp | wsf_c/axis2c/neethi/src/engine.c | <gh_stars>1-10
/*
* 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 "Lice... |
Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/markup/formatter_test_case.rb | # frozen_string_literal: true
require 'minitest/unit'
##
# Test case for creating new RDoc::Markup formatters. See
# test/test_rdoc_markup_to_*.rb for examples.
#
# This test case adds a variety of tests to your subclass when
# #add_visitor_tests is called. Most tests set up a scenario then call a
# method you will ... |
db199310/kubeform | apis/azurerm/v1alpha1/storage_account_types.go | <filename>apis/azurerm/v1alpha1/storage_account_types.go
/*
Copyright The Kubeform 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 re... |
grahams58/athens | cmd/olympus/actions/app.go | <gh_stars>1-10
package actions
import (
"fmt"
stdlog "log"
"time"
"github.com/gobuffalo/buffalo"
"github.com/gobuffalo/buffalo/middleware"
"github.com/gobuffalo/buffalo/middleware/csrf"
"github.com/gobuffalo/buffalo/middleware/i18n"
"github.com/gobuffalo/buffalo/middleware/ssl"
"github.com/gobuffalo/buffalo/... |
xKuZz/trabajosugr | 2/ED/practica5 _ Arbol AVL/avl.hxx | <reponame>xKuZz/trabajosugr<filename>2/ED/practica5 _ Arbol AVL/avl.hxx
#include "avl.h" // AUTOCOMPLETAR
#define AVL_TEMPLATE template <typename T, class comparar>
/** @file avl.hxx
* @brief Implementación del Árbol AVL a partir de bintree.
* @author <NAME>.
*/
/*----------------------- CONSIDERACIONES INICIA... |
mobius-software-ltd/iotbroker.cloud-cpp-client | iot-protocols/amqp/classes/tlv/variable/amqptlvvariable.cpp | /**
* Mobius Software LTD
* Copyright 2015-2018, Mobius Software LTD
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later ve... |
Galland/kivy | examples/demo/multistroke/helpers.py | <reponame>Galland/kivy<gh_stars>1000+
__all__ = ('InformationPopup', )
from kivy.uix.popup import Popup
from kivy.properties import StringProperty
from kivy.factory import Factory
from kivy.lang import Builder
from kivy.clock import Clock
Builder.load_string('''
<InformationPopup>:
auto_dismiss: True
size_hin... |
YiqunPeng/leetcode_pro | solutions/750_number_of_corner_rectangles.py | <gh_stars>0
class Solution:
def countCornerRectangles(self, grid: List[List[int]]) -> int:
m, n = len(grid), len(grid[0])
res = 0
rows = []
for row in grid:
curr = set()
for i in range(n):
if row[i] == 1:
curr.add(i)
... |
kiereleaseuser/optaplanner | optaplanner-core/src/main/java/org/optaplanner/core/impl/heuristic/selector/move/decorator/CachingMoveSelector.java | /*
* Copyright 2012 JBoss 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 agreed to i... |
gdgib/gearbox | gb-command/src/main/java/com/g2forge/gearbox/command/converter/IMethodArgument.java | <filename>gb-command/src/main/java/com/g2forge/gearbox/command/converter/IMethodArgument.java
package com.g2forge.gearbox.command.converter;
import java.lang.reflect.Type;
import com.g2forge.habitat.metadata.value.subject.ISubject;
public interface IMethodArgument<T> {
public T get();
public Type getGenericType()... |
apache/sis | application/sis-javafx/src/main/java/org/apache/sis/gui/SystemMonitor.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 may ... |
damianCrow/React-dashboard | src/components/atoms/ClockHand/index.stories.js | import React from 'react'
import { storiesOf } from '@storybook/react'
import ClockHand from '.'
storiesOf('ClockHand', module)
.add('default', () => (
<ClockHand />
))
.add('reverse', () => (
<ClockHand reverse />
))
.add('height', () => (
<ClockHand height={100} />
))
.add('invalid', () => ... |
Gravitational-Field/Dive-In-Java | 03_JavaWeb/code/16_json_ajax_i18n/src/com/lzj/json/PersonListType.java | package com.lzj.json;
import com.google.gson.reflect.TypeToken;
import com.lzj.pojo.Person;
import java.util.ArrayList;
/**
* @ClassName PersonListType
* @Description: TODO
* @Author Keen
* @DATE 2021/1/5 15:00
* @Version 1.0
**/
public class PersonListType extends TypeToken<ArrayList<Person>> {
}
|
MasterOogwayis/spring | thinking-in-spring/annotation/src/main/java/com/demo/spring/annotation/EvenProfileConditional.java | package com.demo.spring.annotation;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.env.Environment;
import org.springframework.core.env.Profiles;
import org.springframework.core.type.AnnotatedTypeMetadata;
/**
*... |
msmygit/nosqlbench | driver-web/src/main/java/io/nosqlbench/driver/webdriver/WebDriverCmdState.java | <filename>driver-web/src/main/java/io/nosqlbench/driver/webdriver/WebDriverCmdState.java<gh_stars>100-1000
package io.nosqlbench.driver.webdriver;
public class WebDriverCmdState {
private final WebDriverAction action;
private final long cycle;
public WebDriverCmdState(WebDriverAction action, long cycle) ... |
profmikegreene/HAXcms | build/es5-amd/node_modules/@vaadin/vaadin-text-field/vaadin-number-field.js | define(["./theme/lumo/vaadin-number-field.js"], function (_vaadinNumberField) {
"use strict";
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.