repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
truthiswill/intellij-community | java/java-impl/src/com/intellij/codeInsight/editorActions/moveUpDown/CaseBlockMover.java | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 agre... |
ScalablyTyped/SlinkyTyped | o/office-js-preview/src/main/scala/typingsSlinky/officeJsPreview/Excel/Interfaces/TableColumnData.scala | <gh_stars>10-100
package typingsSlinky.officeJsPreview.Excel.Interfaces
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/** An interface describing the data returned by calling... |
sirinath/Harmony | classlib/modules/security/src/test/impl/java/org/apache/harmony/security/tests/UnresolvedPrincipalTest.java | <reponame>sirinath/Harmony<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 Lice... |
ooooo-youwillsee/leetcode | lcof_021/cpp_021/Solution1.h | <reponame>ooooo-youwillsee/leetcode
//
// Created by ooooo on 2020/3/15.
//
#ifndef CPP_021__SOLUTION1_H_
#define CPP_021__SOLUTION1_H_
#include <iostream>
#include <vector>
using namespace std;
/**
* 双指针
*/
class Solution {
public:
vector<int> exchange(vector<int> &nums) {
int l = 0, r = nums.size() - 1;
... |
Orcthanc/Kestrel | Kestrel/src/Platform/Vulkan/VKTerrainRenderer.hpp | #pragma once
#include <kstpch.hpp>
#include "Renderer/Terrain.hpp"
#include "Renderer/Mesh.hpp"
#include "Renderer/Material.hpp"
#include "Scene/Components.hpp"
namespace Kestrel {
struct KST_VK_CameraRenderer;
struct KST_VK_TerrainRenderer {
public:
static void init();
void drawTerrain( KST_VK_CameraRe... |
Oaticus/Deltatron | src/render/src/render/gpu/util/result_to_string.cc | <gh_stars>0
#include <dt/render/gpu/util/result_to_string.hh>
std::string dt::vk_result_to_string(VkResult const& result) noexcept {
switch (result) {
case VK_ERROR_OUT_OF_DEVICE_MEMORY: return "\"Out of device memory\"";
case VK_ERROR_INITIALIZATION_FAILED: ret... |
silesiacoin/eth2-docker-compose | .docker/Prysm/prysm-spike/beacon-chain/sync/initial-sync/blocks_fetcher_utils.go | package initialsync
import (
"context"
"fmt"
"sort"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/pkg/errors"
eth "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
"github.com/prysmaticlabs/prysm/beacon-chain/core/helpers"
"github.com/prysmaticlabs/prysm/beacon-chain/flags"
p2pTypes "github.com/prys... |
spectral-lab/spectral-extractor | src/constants/midi-export-options.js | export const ALL_TRACKS = 'ALL_TRACKS';
export const SELECTED_TRACKS = 'SELECTED_TRACKS';
export const ALL_CLIPS = 'ALL_CLIPS';
export const SELECTED_CLIPS = 'SELECTED_CLIPS';
|
thinkharderdev/zio-flow | zio-flow/shared/src/main/scala/zio/flow/remote/RemoteExecutingFlowSyntax.scala | /*
* Copyright 2021-2022 <NAME> and the ZIO Contributors
*
* 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... |
eye0fra/credscontroller | vendor/github.com/hashicorp/vault/command/unwrap.go | package command
import (
"flag"
"fmt"
"strings"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/meta"
)
// UnwrapCommand is a Command that behaves like ReadCommand but specifically
// for unwrapping cubbyhole-wrapped secrets
type UnwrapCommand struct {
meta.Meta
}
func (c *UnwrapCommand) Run(args... |
vgauri1797/Eclipse | WebAppBuilderForArcGIS/server/apps/2/widgets/Analysis/nls/ru/strings.js | <reponame>vgauri1797/Eclipse
define({
"_widgetLabel": "Анализ",
"executeAnalysisTip": "Щелкните инструмент анализа для выполнения",
"noToolTip": "Нет настроенного инструмента анализа!",
"jobSubmitted": "отправлено.",
"jobCancelled": "Остановлено.",
"jobFailed": "Сбой",
"jobSuccess": "Успешно.",
... |
ManfredVon/poem | app/src/main/java/com/fmf/poem/fragment/BasePoemFragment.java | <reponame>ManfredVon/poem
package com.fmf.poem.fragment;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.database.Cursor;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ListFragment;
import android.... |
AnimatorPro/Animator-Pro | src/PJ/gfx/glrcircl.c | #ifdef SLUFFED
#include "gfx.h"
Errcode rcircle(SHORT xcen, SHORT ycen, SHORT rad,
dotout_func dotout, void *dotdat,
hline_func hlineout, void *hlinedat,
Boolean filled)
/* radius circle */
{
return(dcircle(xcen,ycen,(rad<<1)+1,dotout,dotdat,
hlineout,hlinedat,filled));
}
#endif /* SLUFFED *... |
JustinACoder/H22-GR3-UnrealAI | Plugins/UnrealEnginePython/Source/UnrealEnginePython/Private/UEPyUStructsImporter.h | #pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyUStructsImporter;
PyObject *py_ue_new_ustructsimporter();
void ue_python_init_ustructsimporter(PyObject *); |
kindlychung/mediasoup-sfu-cpp | deps/boost/include/boost/outcome/experimental/status-code/posix_code.hpp | /* Proposed SG14 status_code
(C) 2018-2020 <NAME> <http://www.nedproductions.biz/> (5 commits)
File Created: Feb 2018
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying document... |
jonespm/rsf | rsf-core/core/src/uk/org/ponder/rsf/renderer/html/decorators/HTMLLabelTargetDecoratorRenderer.java | <reponame>jonespm/rsf
/*
* Created on 24 Oct 2006
*/
package uk.org.ponder.rsf.renderer.html.decorators;
import java.util.Map;
import uk.org.ponder.rsf.components.decorators.UIDecorator;
import uk.org.ponder.rsf.components.decorators.UILabelTargetDecorator;
import uk.org.ponder.rsf.renderer.decorator.Decor... |
checho651/bfx-report-ui | src/state/symbols/utils/index.js | import _includes from 'lodash/includes'
import _castArray from 'lodash/castArray'
import { mapCurrency } from './mapping'
export * from './mapping'
// BTCUSD -> tBTCUSD
// BTCF0:USDF0 -> tBTCF0:USDF0
// USD -> fUSD
const addPrefix = (symbol = '', isFunding = false) => (
(isFunding || symbol.length < 6) ? `f${symbo... |
uktrade-attic/data-hub-zorg | src/db/companyrepository.js | const knex = require('../db/knex')
const generateUUID = require('../lib/uuid').generateUUID
function Companies () {
return knex('company')
}
function CompanyFamily () {
return knex('companyfamily')
}
function CompanyInvestmentSummary () {
return knex('companyinvestmentsummary')
}
function getCompany (companyI... |
lbilic/XML | src/main/java/com/uns/ac/rs/xml/states/State.java | <gh_stars>0
package com.uns.ac.rs.xml.states;
import com.uns.ac.rs.xml.domain.enums.Options;
public abstract class State {
private Options option;
abstract String processRequest(com.uns.ac.rs.xml.util.actions.Action action);
public Options getOptions() {
return option;
}
public void se... |
joshualucas84/jasper-soft-server | jasperserver/buildomatic/src/main/java/com/jaspersoft/buildomatic/sql/ant/ReflectionUtils.java | /*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... |
AngelaRT/tailor_drawer | PHOTOBOOTH/cod_python/pygame/tmp/SDL-1.2.14/src/audio/windib/SDL_dibaudio.c | /*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 <NAME>
This library 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) ... |
DataBiosphere/FHIR-Implementation | anvil-api/src/anvil/controller.test.js | jest.mock('./service', () => ({
getAllResearchStudies: jest.fn().mockImplementation(() => [[{ id: 'workspace' }], 1]),
getResearchStudyById: jest.fn().mockImplementation(() => ({ id: 'workspaceid' })),
getAllSamples: jest.fn().mockImplementation(() => [[{ id: 'sample' }], 2]),
getSampleById: jest.fn().mockImple... |
leschzinerlab/myami-3.2-freeHand | lib/python2.7/site-packages/pyami/tifffile.py | <reponame>leschzinerlab/myami-3.2-freeHand<filename>lib/python2.7/site-packages/pyami/tifffile.py<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2011, The Regents of the University of California
# Produced by the Laboratory for Fluorescence Dynamics
# All rights reserved.
#... |
AVBelyy/concrete-java | services/src/main/java/edu/jhu/hlt/concrete/services/store/StoreServiceWrapper.java | <gh_stars>10-100
/*
*
*/
package edu.jhu.hlt.concrete.services.store;
import org.apache.thrift.TException;
import org.apache.thrift.TProcessorFactory;
import org.apache.thrift.protocol.TCompactProtocol;
import org.apache.thrift.server.TNonblockingServer;
import org.apache.thrift.server.TServer;
import org.apache.thr... |
jonggyup/RequestOrganizer | Code/drivers/gpu/drm/virtio/virtgpu_ioctl.c | /*
* Copyright (C) 2015 Red Hat, Inc.
* All Rights Reserved.
*
* Authors:
* <NAME>
* <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including wi... |
dmontoya1/cajas | cajas/movement/models/movement_don_juan.py |
from django.db import models
from cajas.boxes.models.box_don_juan import BoxDonJuan
from .movement_mixin import MovementMixin
class MovementDonJuan(MovementMixin):
"""Modelo para guardar los movimientos de las cajas de Presidente
"""
box_don_juan = models.ForeignKey(
BoxDonJuan,
verbose... |
folio-org/mod-marccat | src/main/java/org/folio/marccat/business/common/group/RegExpGroup.java | package org.folio.marccat.business.common.group;
import org.apache.regexp.RE;
import org.folio.marccat.business.cataloguing.common.Tag;
public class RegExpGroup extends MarcTagGroup {
private RE regexp;
public RegExpGroup(boolean canSort, boolean singleSort, String pattern) {
super(canSort, singleSort);
... |
moissinac/csvfix | csvfix/src/csved_util.cpp | //---------------------------------------------------------------------------
// csved_util.cpp
//
// utilities for CSVED
//
// Copyright (C) 2009 <NAME>
//---------------------------------------------------------------------------
#include "a_base.h"
#include "a_env.h"
#include "a_str.h"
#include "a_collec... |
kevcadieux/Sprout | sprout/compost/formats/as_imag.hpp | /*=============================================================================
Copyright (c) 2011-2019 <NAME>
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=====... |
lizeidsness/minimalist | app/@esri/calcite-ui-icons/js/caretUp24F.js | <gh_stars>1-10
export const caretUp24F = "M1.5 16l11-11 11 11z";
|
mikatammi/georap | client/js/components/Location/Events/Model.js | <filename>client/js/components/Location/Events/Model.js
// This module is responsible for manipulating raw events array of location.
var emitter = require('component-emitter');
module.exports = function (rawEvents, location) {
// Parameters:
// events array of the raw location.
var self = this;
emitter(sel... |
vnaveen0/nachos | mem-axc-64/apps/macsim.r.d.b.s/macsim-mem-axc-64/gems-lib-ooo/ruby_clean/network/garnet-fixed-pipeline/Router_d.h | <gh_stars>1-10
/*
Copyright (C) 1999-2008 by <NAME> and <NAME> for the
Wisconsin Multifacet Project. Contact: <EMAIL>
http://www.cs.wisc.edu/gems/
--------------------------------------------------------------------
This file is part of Garnet (Princeton's interconnect model),
a component of ... |
vyscond/android-experiments | GridLayoutTest/src/fire/bolt/gridlayouttest/SourceCode.java | <reponame>vyscond/android-experiments<filename>GridLayoutTest/src/fire/bolt/gridlayouttest/SourceCode.java
package fire.bolt.gridlayouttest;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Menu;
import android.widget.Button;
import android.widget.EditText;
impo... |
yffd/easy-parent | easy-uumc/easy-uumc-service/src/main/java/com/yffd/easy/uumc/service/UumcSysApplicationService.java | package com.yffd.easy.uumc.service;
import org.springframework.stereotype.Service;
import com.yffd.easy.uumc.pojo.entity.UumcSysApplicationEntity;
/**
* @Description 简单描述该类的功能(可选).
* @Date 2018年06月11日 15时19分27秒 <br/>
* @author ZhangST <br/>
* @version 1.0
* @since JDK 1.7+
* @see
*/
@Service
publi... |
chenqwwq/_leetcode | src/basis/math/Gcd.java | package top.chenqwwq.basis.math;
import javax.xml.crypto.dsig.spec.XSLTTransformParameterSpec;
/**
* 求最大公约数
*
* @author chen
* @date 2022-02-10
**/
public class Gcd {
/**
* 穷举法
*/
public static int gcd_exhaustively(int a,int b){
for (int i = 2;i < Math.min(a,b);i++){
if(a %... |
hao-wang/Montage | js-test-suite/testsuite/7eba994776dc4e051c7f119db3f89cd8.js | <reponame>hao-wang/Montage
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("faa81dc98fc13338aca921d45eebae79.js");
load("68b329da9893e34099c7d8ad5cb9c940.js");
// Copyright 2013 Mozilla Corporation. All rights reserved.
// This code is governed by the license found in the LICENSE file.
/**
* @description Tests that... |
scscgit/XchangeCrypt-AndroidClient | app/src/main/java/bit/xchangecrypt/client/datamodel/ContentCacheType.java | package bit.xchangecrypt.client.datamodel;
/**
* Created by Peter on 05.05.2018.
*/
public enum ContentCacheType {
INSTRUMENTS,
ACCOUNT_ORDERS,
ACCOUNT_ORDER_HISTORY,
ACCOUNT_TRANSACTION_HISTORY,
COINS_BALANCE,
}
|
Timtendo12/FarCryDiscordBot | src/Commands/sps.js | const Command = require("../Structures/command.js");
const Discord = require("discord.js");
const config = require("../data/config.json");
const {MessageEmbed} = require("discord.js");
module.exports = new Command({
name: "bet",
description: "funny bet command",
async run(message, args, client) {
... |
specs-feup/matisse | MatlabProcessorTests/src/org/specs/MatlabProcessor/cell/CellArrayTest.java | /**
* Copyright 2015 SPeCS.
*
* 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... |
shutterSound/livewire1 | public/app-assets/js/scripts/tables/material-datatable.js | /*=========================================================================================
File Name: material-datatables.js
Description: Material Datatable
----------------------------------------------------------------------------------------
Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTM... |
everyside/aura | aura-impl/src/main/java/org/auraframework/impl/validation/ValidationFileSourceLoader.java | <filename>aura-impl/src/main/java/org/auraframework/impl/validation/ValidationFileSourceLoader.java
/*
* Copyright (C) 2013 salesforce.com, 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 Lice... |
qlcchain/WinQ-Android-code | app/src/main/java/com/stratagile/qlink/ui/activity/vpn/module/RankModule.java | package com.stratagile.qlink.ui.activity.vpn.module;
import com.stratagile.qlink.data.api.HttpAPIWrapper;
import com.stratagile.qlink.ui.activity.base.ActivityScope;
import com.stratagile.qlink.ui.activity.vpn.RankActivity;
import com.stratagile.qlink.ui.activity.vpn.contract.RankContract;
import com.stratagile.qlink.... |
Caspar12/graphql-braid | src/main/java/com/atlassian/braid/source/VariableNamespacingGraphQLQueryVisitor.java | <filename>src/main/java/com/atlassian/braid/source/VariableNamespacingGraphQLQueryVisitor.java<gh_stars>0
package com.atlassian.braid.source;
import graphql.language.Argument;
import graphql.language.ArrayValue;
import graphql.language.Directive;
import graphql.language.Field;
import graphql.language.Node;
import grap... |
panc-test/python-study | test_scripts/test02.py | """
列表 [1, 2, 3, 8, 9],要求你把列表里面的每个值加1
"""
list = [1, 2, 3, 8, 9]
list_new = [i + 1 for i in list] # 列表推导式
print(list_new)
|
xBlazeTECH/xBlazeCore | src/net/xblaze/xBlazeCore/api/nms/FancyMessage.java | <filename>src/net/xblaze/xBlazeCore/api/nms/FancyMessage.java<gh_stars>0
package net.xblaze.xBlazeCore.api.nms;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.server.v1_7_R3.ChatSerializer;
import net.minecraft.server.v1_7_R3.NBTTagCompound;
import net.minecraft.server.v1_7_R3.PacketPlayOutCh... |
microsoft/wifi-ztp | src/utils/event_loop.h |
#ifndef __EVENT_LOOP_H__
#define __EVENT_LOOP_H__
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <userspace/linux/list.h>
struct scheduled_task;
/**
* @brief Event loop read-event handler prototype.
*/
typedef void (*event_handler_fn)(int fd, void *context);
/**
* @brief Generic file-descr... |
VEckardt/IntegrityDocs | src/com/ptc/services/utilities/docgen/type/StateTransitions.java | <reponame>VEckardt/IntegrityDocs
/*
* Copyright: Copyright 2018 (c) Parametric Technology GmbH
* Product: PTC Integrity Lifecycle Manager
* Author: <NAME>, Principal Consultant ALM
* Purpose: Custom Developed Code
* ************** File Version Details **************
* Revision: ... |
AdrianZw/csapex_core_plugins | csapex_vision/src/features/lsd.cpp | /*----------------------------------------------------------------------------
LSD - Line Segment Detector on digital images
Copyright (c) 2007-2011 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published... |
yaozd/com.yzd.hazelcast-lean | com.yzd.hazelcast-lean/02-hazelcast-in-vertx/src/main/java/com/yzd/schedule/ResponseJob.java | <gh_stars>0
package com.yzd.schedule;
import com.yzd.internal.Container;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.http.HttpServerRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Compo... |
nicai20098/sofa-jraft | jraft-core/src/main/java/com/alipay/sofa/jraft/util/concurrent/DefaultSingleThreadExecutor.java | <reponame>nicai20098/sofa-jraft
/*
* 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 ... |
ppdaicorp/atlas | src/main/java/com/ppdai/atlas/dao/UserRepository.java | <filename>src/main/java/com/ppdai/atlas/dao/UserRepository.java
package com.ppdai.atlas.dao;
import com.ppdai.atlas.entity.UserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.... |
truthiswill/intellij-community | java/java-tests/testData/codeInsight/parameterInfo/SelectionWithGenerics.java | class Test {
{
refresh(<caret>false, false, null, "");
}
public final void refresh(boolean async, boolean recursive, Runnable finishRunnable, String... files) {
}
public final void refresh(boolean async, boolean recursive, Runnable finishRunnable, Integer files) {
}
}
|
indigoabstract/appplex | src/mod/pub/tst/mouse-input/mod-mouse-input.hxx | <reponame>indigoabstract/appplex
#pragma once
#include "mws-mod.hxx"
class mod_mouse_input : public mws_mod
{
public:
static mws_sp<mod_mouse_input> nwi();
virtual void build_sws() override;
private:
mod_mouse_input();
};
|
uk-gov-dft/bluebadge-citizen-webapp | acceptance-tests/src/test/java/uk/gov/service/bluebadge/test/acceptance/pages/site/BenifitsPage.java | <gh_stars>0
package uk.gov.service.bluebadge.test.acceptance.pages.site;
public class BenifitsPage {
public static final String PAGE_TITLE_YOURSELF = "Do you receive any of these benefits?";
public static final String PAGE_TITLE_SOMEONE_ELSE = "Do they receive any of these benefits?";
public static final Strin... |
udongo/udongo | spec/lib/udongo/breadcrumb_spec.rb | <reponame>udongo/udongo
require 'rails_helper'
describe Udongo::Breadcrumb do
let(:instance) { Udongo::Breadcrumb.new }
it '#all' do
expect(instance.all).to eq []
end
it '#add' do
instance.add :foo, :bar
expect(instance.all).to eq [{ name: :foo, link: :bar }]
end
describe '#any?' do
it :... |
sxweetlollipop2912/MaCode | .LHP/He10/T.Hung/XINGAU/XINGAU/XINGAU.cpp | #include "pch.h"
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#define maxN 51
#define maxX 2502
#define bground '.'
//#define xn '*'
#define pix 'X'
typedef int maxn;
maxn n, m, xid[maxN][maxN], cntp[maxX];
char map[maxN][maxN];
int sp[4][2] = { {-1,0},{1,0},{0,-1},{0,1} };
std::vecto... |
ukiras123/DataStructure-Algorithm | src/com/datastructure/javacollection/CollectionsUtils.java | package com.datastructure.javacollection;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by Kiran on 9/20/18.
*/
public class CollectionsUtils {
public static void main(String[] args) {
List<String> list = new ArrayList<String>();
list.add("C");
... |
li624120638/EasySa | framework/core/src/easysa_eventbus.cpp | <reponame>li624120638/EasySa
/*************************************************************************
* 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/lic... |
anshulverma/ghost | web/src/main/java/com/mystique/ghost/web/GhostResponseBuilder.java | package com.mystique.ghost.web;
import com.mystique.ghost.core.model.CharacterContext;
/**
* @author mystique
*/
public class GhostResponseBuilder {
private CharacterContext characterContext;
private String prefix;
public GhostResponseBuilder setCharacterContext(CharacterContext characterContext) {
this.... |
alexey-anufriev/intellij-community | platform/platform-api/src/com/intellij/openapi/options/colors/ColorDescriptor.java | <reponame>alexey-anufriev/intellij-community
// 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.openapi.options.colors;
import com.intellij.openapi.editor.colors.ColorKey;
import org.jetbrains.annotations.Nls... |
matthewfaw/kanye_game_308 | src/views/scenes/UltralightBeamScene.java | package views.scenes;
import utils.PictureNames;
import views.elements.background.BackgroundImage;
public class UltralightBeamScene extends GameScene {
private static final String BACKGROUND_IMAGE_NAME = PictureNames.Bound;
/**
* Creates an empty scene with Kanye and Kim
* @param aWidth
* @param aHeight
*/... |
angry-tony/syndesis-integration | app/runtime/model/src/main/java/io/syndesis/integration/model/YamlHelpers.java | <filename>app/runtime/model/src/main/java/io/syndesis/integration/model/YamlHelpers.java
/*
* Copyright (C) 2016 Red Hat, 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
*
* h... |
waikato-datamining/bynning | src/wai/bynning/_BinItem.py | from typing import Generic, Iterator, Iterable, TypeVar
from ._typing import KeyType
from ._Binnable import Binnable
from .extraction import Extractor
# The type of the payload of the bin-item (generally non-binnable)
PayloadType = TypeVar("PayloadType")
class BinItem(Binnable[KeyType], Generic[KeyType, PayloadType... |
vladaspasic/fireant | fireant/__init__.py | <reponame>vladaspasic/fireant
# noinspection PyUnresolvedReferences
from .database import *
# noinspection PyUnresolvedReferences
from .slicer import *
# noinspection PyUnresolvedReferences
from .slicer.widgets import *
__version__ = '2.0.1'
|
AlexanderKosianchuk/luche-front | src/components/supervision/realtime-chart/RealtimeChart.js | import './realtime-chart.sass';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Line, defaults } from 'react-chartjs-2';
import transmit from 'actions/transmit';
const LOCKED_SCALE_TIMEOUT = 200;... |
ericoporto/ags-old | libsrc/allegro/include/allegro.h | <filename>libsrc/allegro/include/allegro.h
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\__... |
cadentic/store_front | email-builder/src/store/mutations.js | // https://vuex.vuejs.org/en/mutations.html
export default {
SET_SECTIONS(state, data) {
state.sections = data;
},
SET_COLORS(state, data) {
state.colors = data;
}
}
|
lecho/conference-app | app/src/main/java/com/github/lecho/mobilization/ui/loader/EventViewDataLoader.java | package com.github.lecho.mobilization.ui.loader;
import android.content.Context;
import android.util.Log;
import com.github.lecho.mobilization.BuildConfig;
import com.github.lecho.mobilization.util.Optional;
import com.github.lecho.mobilization.viewmodel.EventViewModel;
/**
* Created by Leszek on 2015-09-03.
*/
pu... |
joshrose/audacity | src/Journal.cpp | /**********************************************************************
Audacity: A Digital Audio Editor
Journal.cpp
<NAME>
*******************************************************************//*!
\namespace Journal
\brief Facilities for recording and playback of sequences of user interaction
*//************... |
samcom12/anuga_core | anuga/utilities/tests/test_file_utils.py | <gh_stars>100-1000
import unittest
import tempfile
import os
import shutil
import sys
from anuga.utilities.file_utils import copy_code_files, get_all_swwfiles
from anuga.utilities.file_utils import del_dir
from anuga.utilities.sww_merge import sww_merge, _sww_merge
class Test_FileUtils(unittest.TestCase):
def t... |
sheedy/rizzo | app/assets/javascripts/lib/core/user_feed.js | // ------------------------------------------------------------------------------
//
// User Feed
//
// ------------------------------------------------------------------------------
define([ "jquery", "lib/utils/template", "lib/components/tabs", "lib/core/timeago" ], function($, Template, Tabs) {
"use strict";
... |
WalkerOfDarkness/IV-5 | commands/rob.js | const balanceSchema = require('../models/balance-schema')
const boosterSchema = require('../models/boost-schema')
module.exports = {
name: 'rob',
description: 'Rob a user. Be carefull though it could come back to bite you',
category: 'Economy',
globalCooldown: '3m',
slas... |
Minecodecraft/LeetCode-Minecode | Top Interview Questions/334. Increasing Triplet Subsequence/main.cpp | //
// main.cpp
// 334. Increasing Triplet Subsequence
//
// Created by 边俊林 on 2019/10/31.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <... |
rsghotra/AbdulBari | CPPMCQ/60.cpp | #include <iostream>
using namespace std;
/*
Concept: Consutrctor Delegation and Private Constructor
- Not All constructors can be private
- there must atleast be one public constructor
*/
class Base {
int _x;
Base(int x): _x{x} {cout << 1;}
public:
Base():Base(0) {cout << 0;}
};
int m... |
larshesel/mzbench | server/dashboard/js/components/TimelineElement.react.js | import React from 'react';
import moment from 'moment';
import RelativeDate from './RelativeDate.react';
import MZBenchActions from '../actions/MZBenchActions';
import Star from './Star.react';
import MZBenchRouter from '../utils/MZBenchRouter';
import GlobalStore from '../stores/GlobalStore';
import PropTypes from 'p... |
npocmaka/Windows-Server-2003 | drivers/wdm/audio/sysaudio/notify.cpp | //---------------------------------------------------------------------------
//
// Module: notify.cpp
//
// Description:
//
//
//@@BEGIN_MSINTERNAL
// Development Team:
// <NAME>
//
// History: Date Author Comment
//
// To Do: Date Author Comment
//
//@@END_MSINTERNAL
//
... |
Bouke/djangobench | djangobench/benchmarks/query_delete_related/settings.py | from djangobench.base_settings import *
INSTALLED_APPS = ['query_delete_related']
|
bowring/ET_Redux | src/main/java/org/earthtime/Tripoli/massSpecSetups/singleCollector/ThermoFinnigan/LaserchronElementIISetupUPb_C.java | <reponame>bowring/ET_Redux
/*
* LaserchronElementIISetupUPb_C
*
* Copyright 2006-2018 <NAME>, CIRDLES.org, and Earth-Time.org
*
* 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
*
* ... |
gustavopinto/entente | seeds/WebKit/es6/destructuring_chained_iterable_destructuring.js | function test() {
var a,b,c,d;
[a,b] = [c,d] = [1,2];
return a === 1 && b === 2 && c === 1 && d === 2;
}
if (!test())
throw new Error("Test failed");
|
deadok22/intellij-erlang | gen/org/intellij/erlang/parser/_ErlangLexer.java | <filename>gen/org/intellij/erlang/parser/_ErlangLexer.java
/* The following code was generated by JFlex 1.4.3 on 11/26/14 3:42 PM */
package org.intellij.erlang.parser;
import com.intellij.lexer.FlexLexer;
import com.intellij.psi.tree.IElementType;
import static org.intellij.erlang.ErlangTypes.*;
import static org.int... |
LorekSSBM/runelite | runelite-client/src/main/java/net/runelite/client/plugins/achievementdiary/diaries/KaramjaDiaryRequirement.java | <reponame>LorekSSBM/runelite<filename>runelite-client/src/main/java/net/runelite/client/plugins/achievementdiary/diaries/KaramjaDiaryRequirement.java<gh_stars>10-100
/*
* Copyright (c) 2018, Marshall <https://github.com/marshdevs>
* Copyright (c) 2018, Adam <<EMAIL>>
* All rights reserved.
*
* Redistribution and u... |
zoopaper/netty-study | src/main/java/org/netty/study/channelhandler/ChannelCloseOutbound.java | <reponame>zoopaper/netty-study
package org.netty.study.channelhandler;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
/**
* @author krisjin
*/
public class ChannelCloseOutbound extends ChannelHandlerAdapter {
public void close... |
freebird-airlines/WhirlyGlobe | ios/library/WhirlyGlobe-MaplyComponent/include/MaplyLAZShader.h | //
// LAZShader.h
// LidarViewer
//
// Created by <NAME> on 10/27/15.
// Copyright © 2015-2017 mousebird consulting. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MaplyShader.h"
#import "MaplyBaseViewController.h"
// Name of the point size uniform attribute.
extern NSString* const kMaplyLAZShaderPointS... |
chusopr/cloudbreak | template-manager-blueprint/src/main/java/com/sequenceiq/cloudbreak/blueprint/SmartsenseConfigurationLocator.java | <filename>template-manager-blueprint/src/main/java/com/sequenceiq/cloudbreak/blueprint/SmartsenseConfigurationLocator.java<gh_stars>0
package com.sequenceiq.cloudbreak.blueprint;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
imp... |
mhotchen/programming-in-scala | src/simulation/Test.scala | package simulation
object Test extends App {
val circuit = new Circuit with Adders
val ain = new circuit.Wire("ain", true)
val bin = new circuit.Wire("bin", false)
val cin = new circuit.Wire("cin", true)
val sout = new circuit.Wire("sout")
val cout = new circuit.Wire("cout")
circuit.probe(ain)
circui... |
wonedays/titanium_mobile | common/Resources/ti.internal/extensions/node/events.js | /**
* @param {EventEmitter} emitter the EventEmitter instance to use to register for it's events
* @param {string} eventName the name of the event to register for
* @param {function} listener the listener callback/function to invoke when the event is emitted
* @param {boolean} prepend whether to prepend or append t... |
scelestino/flowly4j | flowly4j-example/src/main/java/com/flowly4j/example/FinishA.java | package com.flowly4j.example;
import com.flowly4j.core.tasks.FinishTask;
class FinishA extends FinishTask {
} |
qianranow/cplusplus | cpp_03standard_template_library/CN_13mapandmultimap.cpp | <gh_stars>0
//
// Created by qianranow on 2022/2/25.
//
#include <iostream>
#include <map>
#include <string>
using namespace std;
//map是关联式容器,容器自身有规则,通过键值排序,map容器中的元素是对组
//map容器和multimap容器的区别是multiset允许有相同的元素
//对组的第一个元素是键值,不能改变,第二个元素是实值,可以改变
//数据结构:红黑树,一种平衡二叉树
//迭代器:双向迭代器
void test()
{
map<int, string>::iterator... |
johnson-ajar/ieds-circuit | com.soa.circuit.backend/src/main/java/com/soa/circuit/backend/sample/HelloWorldEndpoint.java | package com.soa.circuit.backend.sample;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.databind.ObjectMapper;... |
xcorail/OTB | Modules/Wrappers/ApplicationEngine/include/otbWrapperListViewParameter.h | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
heavencross/alexa-auto-sdk | modules/core/platform/include/AACE/Logger/LoggerConfiguration.h | <reponame>heavencross/alexa-auto-sdk<filename>modules/core/platform/include/AACE/Logger/LoggerConfiguration.h
/*
* Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with th... |
raismaulana/blogP | usecase/deleteuser/interactor.go | <gh_stars>1-10
package deleteuser
import (
"context"
"github.com/raismaulana/blogP/application/apperror"
"github.com/raismaulana/blogP/domain/repository"
)
//go:generate mockery --name Outport -output mocks/
type deleteUserInteractor struct {
outport Outport
}
// NewUsecase is constructor for create default im... |
AWelk/bigtable-orm | compiler/src/test/java/com/bettercloud/bigtable/orm/GeneratedFieldTest.java | package com.bettercloud.bigtable.orm;
import com.bettercloud.bigtable.orm.annotations.Column;
import com.bettercloud.bigtable.orm.annotations.Entity;
import com.bettercloud.bigtable.orm.annotations.KeyComponent;
import com.bettercloud.bigtable.orm.annotations.Table;
import org.junit.Test;
import java.util.Objects;
i... |
weikm/sandcarSimulation2 | Source/Dynamics/RigidBody/Transform3d.h | <gh_stars>0
#pragma once
#include "Core/Matrix/matrix_mxn.h"
#include "Core/Vector/vector_nd.h"
#include "Core/Matrix/matrix_3x3.h"
#include "Core/Quaternion/quaternion.h"
#include "Inertia.h"
#include <memory>
namespace PhysIKA {
/**
* @brief Transformation for spatial vector
*
* @note
* A, B are f... |
playbar/TeamTalk | ios/SVWebViewController/UIActivities/SVWebViewControllerActivity.h | <reponame>playbar/TeamTalk
//
// SVWebViewControllerActivity.h
// SVWeb
//
// Created by <NAME> on 11/11/2013.
//
//
#import <UIKit/UIKit.h>
@interface SVWebViewControllerActivity : UIActivity
@property (nonatomic, strong) NSURL *URLToOpen;
@property (nonatomic, strong) NSString *schemePrefix;
@en... |
davelaursen/idealogue | angular1-node-hapi-mongodb/src/server/routes/technologyRoutes.js | var Hapi = require('hapi');
var Joi = require('joi');
var Boom = require('boom');
var TechnologyService = require('../services/technologyService.js');
module.exports = function(config) {
var techSvc = new TechnologyService(config.db);
return [
{
path: '/api/technologies',
metho... |
sumannewton/dropwizard-dynamic-role-filter | src/test/java/com/sumannewton/dropwizard/auth/TestAuthorizer.java | <filename>src/test/java/com/sumannewton/dropwizard/auth/TestAuthorizer.java<gh_stars>1-10
package com.sumannewton.dropwizard.auth;
import io.dropwizard.auth.Authorizer;
public class TestAuthorizer implements Authorizer<TestUser> {
@Override
public boolean authorize(TestUser user, String role) {
retur... |
krishnapl123/xworkz | KrishnaPractice/src/com/java/constructor/ConstructorChainingWithinClass.java | <filename>KrishnaPractice/src/com/java/constructor/ConstructorChainingWithinClass.java
package com.java.constructor;
public class ConstructorChainingWithinClass {
public static void main(String args[]) {
Moon moon=new Moon();
System.out.println("Moon color is " +moon.color);
System.out.println("Moon shape... |
HackWars/hackwars-classic | HWTomcatServer/webapps/ROOT/WEB-INF/classes/org/xamjwg/util/Domains.java | /*
GNU LESSER GENERAL PUBLIC LICENSE
Copyright (C) 2006 The XAMJ Project
This library 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 (a... |
lileishen/eladmin-plus-contract | eladmin-common/src/main/java/com/yntovi/base/CommonEntity.java | package com.yntovi.base;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import jav... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.