repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
jhostyk/atav | src/main/java/function/external/primateai/PrimateAICommand.java | package function.external.primateai;
import global.Data;
/**
*
* @author nick
*/
public class PrimateAICommand {
public static boolean isListPrimateAI = false;
public static boolean isIncludePrimateAI = false;
// filter option
public static float minPrimateAI = Data.NO_FILTER;
public sta... |
maxgram/react-saga-universal | config/server/server.dev.js | import express from 'express'
import path from 'path'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import { renderDom } from '../../src/html'
// const DEV_HOST = process.env.HOST
// const DEV_PORT = process.env.PORT
co... |
wied03/ansible-ruby | lib/ansible/ruby/modules/generated/network/nxos/nxos_udld.rb | # frozen_string_literal: true
# See LICENSE.txt at root of repository
# GENERATED FILE - DO NOT EDIT!!
require 'ansible/ruby/modules/base'
module Ansible
module Ruby
module Modules
# Manages UDLD global configuration params.
class Nxos_udld < Base
# @return [:enabled, :disabled, nil] Toggles ... |
malston/spring-credhub | spring-credhub-core/src/main/java/org/springframework/credhub/core/certificate/ReactiveCredHubCertificateTemplate.java | <reponame>malston/spring-credhub<gh_stars>0
/*
* Copyright 2016-2017 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/lice... |
fstabin/fsGuns | src/fsGuns/Permissions.java | package fsGuns;
public class Permissions {
static public final String command_browse = "fsguns.command.browse";
static public final String command_workbench = "fsguns.command.workbench";
static public final String command_set_firemode = "fsguns.command.set_firemode";
static public final String command_reload = "f... |
filfreire/questions-three | tests/reporters/junit_reporter/test_report_building.py | from copy import copy
from datetime import datetime
from unittest import TestCase, main
from expects import expect, contain, equal, end_with, have_length
import junit_xml
from twin_sister import open_dependency_context
from questions_three.constants import TestEvent, TestStatus
from questions_three.event_broker impor... |
mschmidt271/Tines | src/core/sacado/Sacado_SFINAE_Macros.hpp | // @HEADER
// ***********************************************************************
//
// Sacado Package
// Copyright (2006) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this s... |
V-yg/BgMan | src/main/java/com/yiie/exceptions/RestExceptionHandler.java | package com.yiie.exceptions;
import com.yiie.enums.BaseResponseCode;
import com.yiie.utils.DataResult;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.AuthorizationException;
import org.springframework.validation.ObjectError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import o... |
PythonCoderAS/Hondana | tests/test_client.py | from __future__ import annotations
import pathlib
from hondana.client import Client
TOKEN_PATH: pathlib.Path = pathlib.Path(__file__).parent / ".client_refresh_token"
def clone_client(auth: bool = False) -> Client:
if auth is True:
return Client(username="Test", password="<PASSWORD>")
return Clien... |
isabella232/stdcxx | tests/regress/23.vector.cons.stdcxx-294.cpp | /************************************************************************
*
* 23.vector.cons.stdcxx-294.cpp - regression test for STDCXX-294
*
* http://issues.apache.org/jira/browse/STDCXX-294
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Sof... |
windows-development/Windows-classic-samples | Samples/Win7Samples/winui/RegisterHotKey/RegisterHotKey.cpp | <reponame>windows-development/Windows-classic-samples
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (C) 2008 M... |
mthli/Type | app/src/main/java/io/github/mthli/type/event/BlockEvent.java | /*
* 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 writi... |
leo0228/U8Project | u8sdk_baidu/src/main/java/com/u8/sdk/BaiduApplication.java | <gh_stars>1-10
package com.u8.sdk;
import com.baidu.gamesdk.BDGameSDK;
import com.baidu.sapi2.base.debug.Log;
import com.tendcloud.tenddata.TalkingDataGA;
import android.content.Context;
import android.content.res.Configuration;
/***
* Baidu SDK 需要自定义的Application,同时需要配置到SDK_Manifest.xml中
*
*/
public class BaiduAp... |
graphiteSWE/TestFolder | DeSpeect/Model/SpeectWrapper/src/configuration.cpp | #include "configuration.h"
//initialize the configuration as empty string and say that all configuration where never asked
Configuration::Configuration()
:config(std::vector<std::string>())
,changed(std::vector<bool>())
{
for(int i=0;i<MAXSIZE;++i)
{
config.push_back(std::string(""));
ch... |
Falcort/CPOA | src/metier/Photo.java | package metier;
public class Photo
{
private int IDPhoto;
private String placePhoto;
private int yearPhoto;
private String wayPhoto;
public Photo(int IDPhoto, String placePhoto, int yearPhoto, String wayPhoto)
{
this.IDPhoto = IDPhoto;
this.placePhoto = placePhoto;
... |
XuanYuan1122/momole | app/src/main/java/com/moemoe/lalala/view/widget/map/utils/GeoUtils.java | /*************************************************************************
* Copyright (c) 2015 Lemberg Solutions
*
* 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/... |
cashmerepipeline/CashmereRez | Packages/arch/AMD64/package.py | # -*- coding: utf-8 -*-
name = 'arch'
version = 'AMD64'
|
faraz891/gitlabhq | spec/services/packages/nuget/search_service_spec.rb | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Packages::Nuget::SearchService do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:subgroup) { create(:group, parent: group) }
let_it_be(:project) { create(:project, namespace: subgroup) }
let_it_be(:package... |
Umiiii/electrum | ios/CustomCode/Modules/Tab_Mine/View/OKUnitTableViewCell.h | <gh_stars>1-10
//
// OKUnitTableViewCell.h
// OneKey
//
// Created by xiaoliang on 2020/10/30.
// Copyright © 2020 OneKey. All rights reserved..
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class OKUnitTableViewCellModel;
@interface OKUnitTableViewCell : UITableViewCell
@property (nonatomic,strong)OKUnitT... |
openharmony-gitee-mirror/distributeddatamgr_datamgr | services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/hiview.h | <reponame>openharmony-gitee-mirror/distributeddatamgr_datamgr
/*
* Copyright (c) 2021 Huawei Device 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 obtain a copy of the License at
*
* http://www.apache.org... |
andrus/bootique | bootique/src/main/java/com/nhl/bootique/jackson/SubtypeResolverFactory.java | package com.nhl.bootique.jackson;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import com.fasterxml.jackson.databind.jsontype.SubtypeResolver;
import com.fasterxm... |
theapache64/musicdog | client/app/src/main/java/com/theah64/soundclouddownloader/utils/PrefUtils.java | <filename>client/app/src/main/java/com/theah64/soundclouddownloader/utils/PrefUtils.java
package com.theah64.soundclouddownloader.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by shifar on 15/9/16.
*/
public class PrefUti... |
dk-extdev/FPR-Angular-Admin | src/main/java/com/fpr360/service/MerchantAccountService.java | package com.fpr360.service;
import com.fpr360.domain.MerchantAccount;
import com.fpr360.repository.MerchantAccountRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Ser... |
patil215/v8 | fuzzer_output/interesting/sample_1554109134982.js | function main() {
let v2 = 0;
const v3 = v2 + 1;
v2 = v3;
let v10 = 0;
do {
const v11 = Function.name;
const v12 = v10 + 1;
v10 = v12;
} while (v10 < 3);
}
%NeverOptimizeFunction(main);
main();
|
brunosabot/conference-hall | src/screens/speaker/event/submitWizard/submitWizard.container.js | <reponame>brunosabot/conference-hall<gh_stars>0
import { compose } from 'redux'
import { inject } from '@k-ramel/react'
import { forRoute } from '@k-redux-router/react-k-ramel'
import loader from 'components/loader'
import { isCfpOpened } from 'store/reducers/data/events.selector'
import SubmitWizard from './submitWiz... |
Linindoo/vboot | vTohru-orm-common/src/main/java/cn/vtohru/orm/transaction/AbstractTrans.java | package cn.vtohru.orm.transaction;
import cn.vtohru.orm.dataaccess.IDataAccessObject;
import java.util.ArrayList;
import java.util.List;
public abstract class AbstractTrans implements Trans {
protected List<IDataAccessObject<?>> dataAccessObjects = new ArrayList<>();
@Override
public <T> Trans add(IData... |
steven004/specs | src/systems/filecoin_markets/deal/deal.go | package deal
import actor "github.com/filecoin-project/specs/systems/filecoin_vm/actor"
import block "github.com/filecoin-project/specs/systems/filecoin_blockchain/struct/block"
const MIN_PROVIDER_DEAL_COLLATERAL_PER_EPOCH = actor.TokenAmount(1) // TODO: Placeholder
const MIN_CLIENT_DEAL_COLLATERAL_PER_EPOCH = actor.... |
roj234/rojlib | lac/injector/mapper/Mover.java | <gh_stars>1-10
/*
* This file is a part of MoreItems
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Roj234
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restri... |
szkkteam/agrosys | frontend/app/farmApp/cropProduction_old/backup_old/season/components/index.js | <filename>frontend/app/farmApp/cropProduction_old/backup_old/season/components/index.js<gh_stars>0
export { default as SeasonLayout } from './SeasonLayout'
export { default as SeasonList } from './SeasonList'
export { default as SeasonCreateButton } from './SeasonCreateButton'
export { default as SeasonAppBar } from '.... |
artas360/pythran | pythran/pythonic/numpy/diagflat.hpp | <filename>pythran/pythonic/numpy/diagflat.hpp
#ifndef PYTHONIC_NUMPY_DIAGFLAT_HPP
#define PYTHONIC_NUMPY_DIAGFLAT_HPP
#include "pythonic/include/numpy/diagflat.hpp"
#include "pythonic/numpy/diag.hpp"
namespace pythonic
{
namespace numpy
{
FPROXY_IMPL(pythonic::numpy, diagflat, diag);
}
}
#endif
|
apollofy-music-project/SongShare | packages/web/src/pages/CreatePlaylist/CreatePlaylist.js | <filename>packages/web/src/pages/CreatePlaylist/CreatePlaylist.js
import React, { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { createPlaylistRequest } from '../../redux/Playlists/playlists-actions';
import '../PlaylistView/styles.scss';
import PlaylistViewHeader from '../../components... |
gemacoin/gpl-wallet | node_modules/mdi-material-ui/LeafCircleOutline.js | <filename>node_modules/mdi-material-ui/LeafCircleOutline.js<gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModul... |
zero88/msa-sql | service/src/main/java/io/github/zero88/qwe/sql/workflow/step/SQLBatchStep.java | package io.github.zero88.qwe.sql.workflow.step;
/**
* Represents a direct execution step in batch into/onto database
*
* @since 1.0.0
*/
public interface SQLBatchStep extends SQLStep {
}
|
ethanabrooks/teacher-RL | epoch_counter.py | from collections import defaultdict
import numpy as np
class EpochCounter:
last_return_name = "last_return"
def __init__(self, num_processes):
self.episode_rewards = []
self.episode_time_steps = []
self.rewards = np.zeros(num_processes)
self.time_steps = np.zeros(num_processe... |
wied03/ansible-ruby | lib/ansible/ruby/modules/helpers/aws.rb | # frozen_string_literal: true
# see LICENSE.txt in project root
module Ansible
module Ruby
module Modules
module Helpers
# For some of the AWS modules, we don't detect the region attribute
module Aws
def self.included(base)
base.attribute :region
base.valid... |
0xcaffebabe/blb | blb-backend/business-service-api/pay-service-api/src/main/java/wang/ismy/blb/api/pay/enums/PayTypeEnum.java | package wang.ismy.blb.api.pay.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author MY
* @date 2020/4/9 11:13
*/
@Getter
@AllArgsConstructor
public enum PayTypeEnum {
/** 支付宝支付 */
ALI_PAY(0,"支付宝");
private Integer code;
private String type;
public static PayTypeEnum val... |
dgoemans/merchant-center-application-kit | packages/mc-dev-authentication/routes/logout.js | <gh_stars>10-100
module.exports = (response, additionalCookieParameters = []) => {
// NOTE: removing the cookie only works if your are running the MC API
// locally, otherwise the cookie won't get removed as it's set to a
// proper domain (e.g. commercetools.com), which we can't unset from localhost.
response.s... |
hd5970/ONOS | core/api/src/main/java/org/onosproject/net/device/DeviceClockProviderService.java | <reponame>hd5970/ONOS
/*
* Copyright 2014 Open Networking Laboratory
*
* 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 req... |
nikitavlaev/embox | src/compat/libc/string/memcmp.c | /**
* @file
* @brief Implementation of #memcmp() function.
*
* @date 23.11.09
* @author <NAME>
*/
#include <string.h>
int memcmp(const void *_dst, const void *_src, size_t n) {
const unsigned char *dst = (const unsigned char *) _dst;
const unsigned char *src = (const unsigned char *) _src;
if (!n) {
retur... |
linz/snap | src/snaplib/util/errdef.c | <gh_stars>1-10
#include "snapconfig.h"
/*
errdef.c : part of the gina_pci translator
Copyright: Department of Survey and Land Information
New Zealand
Author: <NAME>, Research and Development Group
Revision: October 1990
*/
/*
$Log: errdef.c,v $
Revision 1.2 2004/04/22 02:35:24 ccro... |
Uintra/Uintra | src/Uintra/App_Plugins/UintraGroupMember/member.service.js | <gh_stars>10-100
(function (angular) {
'use strict';
var service = function ($http) {
var self = this;
var baseUrl = "/umbraco/backoffice/api/MemberApi/";
self.memberChanged = function(memberId) {
return $http.post(baseUrl + "MemberChanged?memberId=" + memberId);
}... |
ankosoftware/gatsby-prismic-template | src/components/slices.component.js | import React from "react"
import { DefaultSlice } from "./slices/default.slice"
import { Features } from "./slices/features.slice"
import { BlockWithImage } from "./slices/block-with-image.slice"
import { Form } from "./slices/form.slice"
import { ScriptSlice } from "./slices/script.slice"
import { TextSlice } from "./... |
hzm2016/assistive-gym-robosuite | code/pytorch/utils/GPREPS_real_solver.py | <reponame>hzm2016/assistive-gym-robosuite
import numpy as np
from envs.abb.models import utils
from code.pytorch.methods import TD3
from ECPL_pytorch.argmin import argmin_g as argmin
from envs.abb.env_abb_assembly import env_assembly_search
from algorithms.calculations import calculation
from sklearn.gaussian_process i... |
kelu124/pyS3 | org/apache/poi/ss/formula/FormulaParser$SimpleRangePart.java | package org.apache.poi.ss.formula;
import org.apache.poi.ss.util.CellReference;
final class FormulaParser$SimpleRangePart {
private final String _rep;
private final Type _type;
private enum Type {
CELL,
ROW,
COLUMN;
public static Type get(boolean hasLetters, boolean hasDi... |
pbaris/jmix | jmix-security/security-ui/src/main/java/io/jmix/securityui/role/annotation/MenuPolicy.java | <reponame>pbaris/jmix<gh_stars>10-100
/*
* Copyright 2020 Haulmont.
*
* 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 requ... |
netyjq/data-center | data-center-service/src/main/java/com/yjq/data/service/alarm/MailSendHandler.java | package com.yjq.data.service.alarm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSenderIm... |
laukvik/csv-view | src/main/java/no/laukvik/csvview/utils/FileChooserExtensions.java | package no.laukvik.csvview.utils;
import javafx.stage.FileChooser;
/**
* JavaFX helper methods.
*
*/
public final class FileChooserExtensions {
/**
* All supported FileChooser Extensions.
*/
public static final FileChooser.ExtensionFilter[] SUPPORTED_EXTENSIONS = {
buildCSV(), buildT... |
sidorovpavel/writing-javascript-actions | .github/actions/joke-action/node_modules/lodash/fp/all.js | module.exports = require('lodash/fp/every');
|
gnicol/GitSwarm | perforce_swarm/validation_tests/lib/config.rb | <filename>perforce_swarm/validation_tests/lib/config.rb
class CONFIG
P4_PORT = 'p4_port'.freeze
P4_USER = 'p4_user'.freeze
P4_PASSWORD = '<PASSWORD>'.freeze
P4_DEPOT_ROOT = 'p4_gitswarm_depot_root'.freeze
GS_URL = 'gitswarm_url'.freeze
GS_USE... |
Prospector/RebornCore | src/main/java/reborncore/common/recipes/ExtendedRecipeRemainder.java | <reponame>Prospector/RebornCore<gh_stars>0
package reborncore.common.recipes;
import net.minecraft.item.ItemStack;
public interface ExtendedRecipeRemainder {
default ItemStack getRemainderStack(ItemStack stack){
return ItemStack.EMPTY;
}
} |
stephenfin/pypowervm | pypowervm/tasks/master_mode.py | # Copyright 2015 IBM Corp.
#
# 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 a... |
prolog/shadow-of-the-wyrm | engine/maps/tiles/features/source/IFeatureManipulatorFactory.cpp | <filename>engine/maps/tiles/features/source/IFeatureManipulatorFactory.cpp
#include "IFeatureManipulatorFactory.hpp"
#include "DefaultFeatureManipulator.hpp"
#include "FenceManipulator.hpp"
#include "ForgeManipulator.hpp"
#include "PewManipulator.hpp"
#include "GoodAltarManipulator.hpp"
#include "NeutralAltarManipulato... |
R-Layer/Bears-Team-22 | server/components/search/search-routes.js | const express = require("express");
const {getQuestion, prepopulate} = require("./search-controller");
const router = express.Router(); // eslint-disable-line new-cap
router.get("/search", getQuestion);
router.get("/pre-populate", prepopulate);
module.exports = router;
|
sensera/objectagon-core | object/src/bdd/java/feature/util/TaskWait.java | <reponame>sensera/objectagon-core
package feature.util;
import org.objectagon.core.exception.ErrorClass;
import org.objectagon.core.exception.ErrorKind;
import org.objectagon.core.exception.SevereError;
import org.objectagon.core.exception.UserException;
import org.objectagon.core.msg.Message;
import org.objectagon.co... |
Abdirahman0022/cawo | external/go-server-server/go/model_offer_passenger.go | /*
* AirGateway NDC JSON API
*
* This API allows shopping and booking with IATA's New Distribution Capabilities (NDC) standard. It provides aggregated shopping capabilities (AirShopping), detailed offer description (OfferPrice), flight seat selection (SeatAvailability) and booking flight reservations (OrderCreate). ... |
PW486/leetcode | solutions/cpp/42-trapping-rain-water.cc | <reponame>PW486/leetcode
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int trap(vector<int> &height) {
int trap = 0, minHeight = 0;
int front = 0, back = height.size() - 1;
while (front < back) {
if (height[front] > minHeight && height[back] > minHeight) {
... |
vkola-lab/multi-task | lookupcsv/derived_tables/NACC/match_csf.py | import csv
from collections import defaultdict
import datetime
mriTable = 'zip_id_data_6months.csv'
csfTable = '../../raw_tables/NACC/kolachalama06022020csf.csv'
mriMap = defaultdict(dict)
with open(mriTable, 'r') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
id = row['ID']
... |
dmgerman/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/docker/TestDockerVolumeCommand.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
Sally7/demo | src/api/MilitiaService.js | <gh_stars>0
/**
* Created by mac on 18/1/9.
*/
import http from '@/utils/Request'
const MilitiaService = {
async doSearch(pformId){
var res = await http({
url: 'dyform_doSearchDynamicForms.do',
data: {pformId:pformId}
});
return res;
},
async ageStatistics(type,archivesAreaId,townId,vil... |
StepSim/Quabla | src/quabla/simulator/dynamics/DynamicsTrajectory.java | package quabla.simulator.dynamics;
import quabla.simulator.Coordinate;
import quabla.simulator.numerical_analysis.vectorOperation.MathematicalMatrix;
import quabla.simulator.numerical_analysis.vectorOperation.MathematicalVector;
import quabla.simulator.rocket.Rocket;
import quabla.simulator.variable.AbstractVari... |
kamranrad1993/ngfx | includes/ngfx/porting/vulkan/VKBlit.h | /*
* Copyright 2020 GoPro Inc.
*
* 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 Licens... |
bound1ess/codeforces-problemset-2 | 244/a.cpp | #include <cstdio>
const int N = 1234;
int a[N], b[N];
int main() {
freopen("input", "rt", stdin);
freopen("output", "wt", stdout);
int n, k;
scanf("%d%d", &n, &k);
for (int i = 0; i < k; ++i) {
scanf("%d", a + i);
--a[i];
}
for (int i = 0; i < n * k; ++i) {
b[i] = -1;
}
for (int i = 0; i... |
dmzgroup/dmz | frameworks/object/plugins/timeout/dmzObjectPluginTimeout.cpp | <gh_stars>1-10
#include <dmzEventModuleCommon.h>
#include <dmzObjectAttributeMasks.h>
#include <dmzObjectModule.h>
#include <dmzRuntimeConfig.h>
#include <dmzRuntimeConfigToTypesBase.h>
#include <dmzRuntimeObjectType.h>
#include <dmzRuntimePluginFactoryLinkSymbol.h>
#include <dmzRuntimePluginInfo.h>
#include "dmzObject... |
66254264/BasePopup | app/src/main/java/razerdp/demo/ui/transition/SubsamplingScaleImageViewSharedTransition.java | <filename>app/src/main/java/razerdp/demo/ui/transition/SubsamplingScaleImageViewSharedTransition.java
package razerdp.demo.ui.transition;
import android.animation.Animator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.... |
czs108/LeetCode-Solutions | Easy/35. Search Insert Position/solution (1).py | <filename>Easy/35. Search Insert Position/solution (1).py
# 35. Search Insert Position
# Runtime: 44 ms, faster than 91.82% of Python3 online submissions for Search Insert Position.
# Memory Usage: 14.5 MB, less than 5.97% of Python3 online submissions for Search Insert Position.
class Solution:
def searchInser... |
oneofsunshine/program_learning | C_C++/oop_assignment/courseTest/copyConstructor.cpp | #include<iostream>
using namespace std;
class A
{
public:
int v;
A(int n) {
v = n;
cout<<"Constructor called"<<endl;
}
A(const A & a) {
v = a.v;
cout<<"Copy constructor called"<<endl;
}
};
A Func() {
A b(4);
return b;
}
int main()
{
cout<<Func().v<<e... |
jonatas-rezende/estatistica_web | codigos/Estatistica/src/br/com/estatisticaweb/modelo/dto/Projeto.java | package br.com.estatisticaweb.modelo.dto;
/**
* Classe para representação de um artigo
* @author Aluno
*/
public class Projeto {
private Integer id;
private String nome;
private Integer quantidadeRepeticoes;
private Double significancia;
private Integer teste;... |
bytebin/deepworld-gameserver | server/messages/dialog_message.rb | class DialogMessage < BaseMessage
configure compression: true
data_fields :dialog_id, :config
end
|
Jay-Y/yServer | system/system-jpa-core/src/main/java/modules/system/svc/impl/DictServiceImpl.java | <filename>system/system-jpa-core/src/main/java/modules/system/svc/impl/DictServiceImpl.java
package modules.system.svc.impl;
import modules.system.dao.DictDao;
import modules.system.model.Dict;
import modules.system.svc.DictService;
import modules.system.svc.base.SysBaseServiceImpl;
import org.springframework.beans.fa... |
wakeyefei/blog2019 | java11httpclient/server/src/main/java/ch/rasc/httpclient/User.java | <filename>java11httpclient/server/src/main/java/ch/rasc/httpclient/User.java
package ch.rasc.httpclient;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class User {
private final long id;
private final String username;
@JsonCreator
pu... |
IsaaColomer/Vroom | Vroom/src/Modules/Editor.cpp | #include "Globals.h"
#include "Application.h"
#include "Editor.h"
#include "ModuleInput.h"
#include <stdlib.h>
#include <fstream>
#include <string>
#include "imgui.h"
#include "imgui/backends/imgui_impl_sdl.h"
#include "imgui/backends/imgui_impl_opengl3.h"
#include "SDL_opengl.h"
#include "MeshComponent.h"
extern std:... |
halaei/2048 | js/have_fun.js | <filename>js/have_fun.js<gh_stars>1-10
function haveFun(size)
{
var configurations = {
3: {
initNumberOfTiles: 2,
numberOfRandomTiles: function(){return 1;},
getNewTileValue: function(){return 2;}
},
4: {
initNumberOfTiles: 3,
... |
iltempe/osmosi | sumo/tools/simpla/_platoonmode.py | <reponame>iltempe/osmosi
"""
@author <NAME>
@date 2017-04-09
-----------------------------------
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2008-2017 DLR (http://www.dlr.de/) and contributors
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it un... |
buck54321/gi | giv/textbuf/opts.go | <filename>giv/textbuf/opts.go
// Copyright (c) 2020, The GoKi Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package textbuf
import (
"github.com/goki/gi/gi"
"github.com/goki/ki/indent"
"github.com/goki/pi/filecat"
"github.com/... |
kristiankime/calc-tutor | test/com/artclod/xml/NodesSpec.scala | <reponame>kristiankime/calc-tutor<gh_stars>1-10
package com.artclod.xml
import org.junit.runner.RunWith
import org.scalatestplus.play._
import play.api.test.Helpers._
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
class NodesSpec extends PlaySpec {
"nodeCount" should {
"be 1 for a single ... |
vdkkia/seek | lib/tasks/app.rake | require 'rubygems'
require 'rake'
namespace :app do
desc 'Displays the current version.'
task(version: :environment) do
puts Seek::Version.read
end
end
|
zzgchina888/msdn-code-gallery-microsoft | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Audio effects discovery sample/C++/RenderEffects.xaml.cpp | <reponame>zzgchina888/msdn-code-gallery-microsoft
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
... |
zabrewer/batfish | projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/answers/AnswerStatus.java | package org.batfish.datamodel.answers;
public enum AnswerStatus {
FAILURE,
NOTFOUND,
STALE,
SUCCESS
}
|
mmontes11/iot | packages/back/src/controllers/rest/observationsController.js | <gh_stars>10-100
import _ from "underscore";
import httpStatus from "http-status";
import Promise from "bluebird";
import constants from "../../utils/responseKeys";
import modelFactory from "../../helpers/modelFactory";
import thingController from "./thingController";
import mqttController from "../mqtt/mqttController"... |
aMurryFly/Old_Courses | Basic_Python/2_Martes/6_while.py | numero= int(input('Teclee un numero positivo'))
while numero<0:
print('Escribió un número negativo')
print(numero)
numero = int(input('Vuelva a escribir un número'))
print('Programa terminado')
|
matthewboman/myhike | public/build/es5/components/Navbar/NavAdmin.js | <gh_stars>0
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, i... |
ForrestPi/ObjectDetection | SSD/SSD_FPN_GIoU/model/neck/__init__.py | from .build_neck import Neck
from .ssd_neck import SSDNeck
|
MalteSchledjewski/edacc_gui | src/edacc/experiment/ExperimentController.java | <reponame>MalteSchledjewski/edacc_gui<gh_stars>1-10
package edacc.experiment;
import com.mysql.jdbc.exceptions.MySQLStatementCancelledException;
import edacc.model.SolverConfigCache;
import edacc.EDACCExperimentMode;
import edacc.api.costfunctions.*;
import edacc.experiment.tabs.solver.SolverConfigurationEntry;
import... |
MeowMC/Vivecraft_116 | src/org/vivecraft/gui/settings/GuiVRControls.java | <filename>src/org/vivecraft/gui/settings/GuiVRControls.java
/**
* Copyright 2013 <NAME>, StellaArtois
* Licensed under the LGPL 3.0 or later (See LICENSE.md for details)
*/
package org.vivecraft.gui.settings;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.gui.AbstractGui;
import net.minec... |
plotor/vertx-zero | vertx-zeus/up-metis/src/main/java/com/htl/domain/tables/records/LctDistinctRecord.java | /*
* This file is generated by jOOQ.
*/
package com.htl.domain.tables.records;
import com.htl.domain.tables.LctDistinct;
import com.htl.domain.tables.interfaces.ILctDistinct;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record13... |
embeddery/stackrox | pkg/k8sutil/nsobj_ref.go | package k8sutil
// NamespacedObject is the minimal interface for Kubernetes objects with a name and a namespace.
type NamespacedObject interface {
GetNamespace() string
GetName() string
}
// NSObjRef can be used to maintain a reference to a namespaced object in Kubernetes, identified through its namespace
// and na... |
EasySimple/fishd-mobile | site/mobile/lib/iframe.js | <filename>site/mobile/lib/iframe.js
import eventbus from './eventbus'
import { hashHistory } from 'react-router';
let init = false
export default function initIframe () {
if (init) {
return
}
init = true
// 监听路由改变,同步父页面路由
window.addEventListener('hashchange', () => {
window.parent.postMessage(
... |
Heng-Z/mwr | models/unet/builder.py | <gh_stars>10-100
from IsoNet.models.unet.blocks import conv_blocks
from tensorflow.keras.layers import MaxPooling2D, UpSampling2D, MaxPooling3D, UpSampling3D, AveragePooling3D
from tensorflow.keras.layers import Concatenate
def build_unet(filter_base=32,depth=2,convs_per_depth=2,
kernel=(3,3),
... |
andraantariksa/PlasmaEngine | Source/Lightning/LightningCore/Traits.hpp | // MIT Licensed (see LICENSE.md).
#pragma once
#ifndef LIGHTNING_TRAITS_HPP
# define LIGHTNING_TRAITS_HPP
namespace Lightning
{
template <typename T>
class PlasmaSharedTemplate StaticDereference
{
public:
typedef T Type;
};
template <typename T>
class PlasmaSharedTemplate StaticDereference<T*>
{
public:
typedef... |
kchanlee/tencentcloud-sdk-nodejs | tencentcloud/bmlb/v20180625/models.js | /*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
JeanMarc-Moly/mugimugi_client_api | mugimugi_client_api/get_item_by_id/circle.py | from typing import ClassVar
from mugimugi_client_api_entity import Circle
from mugimugi_client_api_entity import GetCircleById as Root
from mugimugi_client_api_entity.enum import ElementPrefix
from .abstract import GetItemById
class GetCircleById(GetItemById):
ROOT: ClassVar[type] = Root
PREFIX: ClassVar[El... |
voxmedia/convert-rich-text | lib/formats/link.js | <reponame>voxmedia/convert-rich-text
module.exports = {
add: function(node, value, dom) {
var link = node.ownerDocument.createElement('a');
dom(node).wrap(link);
node = link;
node.href = value;
var previous = node.previousSibling;
if (previous && previous.tagName === 'A' && previous.href === n... |
TiankunZhou/dials | command_line/export_bitmaps.py | from __future__ import absolute_import, division, print_function
import os
import sys
from PIL import Image
import iotbx.phil
from dials.algorithms.image.threshold import DispersionThresholdDebug
from dials.array_family import flex
from dials.util import Sorry, show_mail_handle_errors
from dials.util.image_viewer.s... |
mattantonelli/ffxiv-collect | db/migrate/20210527190101_create_character_records.rb | class CreateCharacterRecords < ActiveRecord::Migration[5.2]
def change
create_table :character_records do |t|
t.integer :character_id
t.integer :record_id
t.timestamps
end
add_index :character_records, :character_id
add_index :character_records, :record_id
add_index :character_r... |
rickypid/node-redirect-rules | libs/middleware.js | module.exports = createMiddlewareForRules;
var _ = require('lodash');
var requireDir = require('require-directory');
var matchers = require('./matchers');
var placeholders = require('./placeholders');
var outputters = requireDir(module, './outputters');
var outputTypes = [ 'status', 'headers', 'body' ]; // Place in se... |
JayWenStar/sonic-server-simple | src/main/java/com/sonic/simple/controller/FilesController.java | <reponame>JayWenStar/sonic-server-simple
package com.sonic.simple.controller;
import com.sonic.simple.config.WebAspect;
import com.sonic.simple.models.http.RespModel;
import com.sonic.simple.tools.FileTool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Aut... |
giorgos-nikolopoulos/adc-nitro-go | resource/config/authentication/authenticationemailaction.go | /*
* Copyright (c) 2021 Citrix Systems, 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 ... |
KhodyAzmoon/atdl4j | src/main/java/org/atdl4j/fixatdl/layout/ClockT.java | <reponame>KhodyAzmoon/atdl4j
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source sch... |
tonysparks/jslt2 | src/main/java/jslt2/Jslt2Exception.java | <filename>src/main/java/jslt2/Jslt2Exception.java
/*
* see license.txt
*/
package jslt2;
/**
* @author Tony
*
*/
public class Jslt2Exception extends RuntimeException {
/**
* SUID
*/
private static final long serialVersionUID = 4445110898818625900L;
public Jslt2Exception() {
}
/**
... |
aphex3k/specter-desktop | tests/test_managers_otp.py | <reponame>aphex3k/specter-desktop
import os
from cryptoadvance.specter.managers.otp_manager import OtpManager
import time
def test_OtpManager(empty_data_folder):
# A OtpManager manages Otp, one-time-passwords
# via json-files in an empty data folder
otpm = OtpManager(data_folder=empty_data_folder)
ass... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.