repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
nasa/giant | giant/__init__.py | <reponame>nasa/giant
# Copyright 2021 United States Government as represented by the Administrator of the National Aeronautics and Space
# Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rights Reserved.
"""
Welcome to GIANT
This is a test
"""
from importlib.machin... |
jdbrice/PicoToFemtoDst_SL16cMTD | modules/PicoDstSL16cMtd/StPicoBTofHit.h | <filename>modules/PicoDstSL16cMtd/StPicoBTofHit.h
#ifndef StPicoBTofHit_hh
#define StPicoBTofHit_hh
#include "TObject.h"
#include "stdio.h"
class StPicoBTofHit : public TObject {
public:
StPicoBTofHit() {}
~StPicoBTofHit() {}
StPicoBTofHit(int) {}
void Clear(const Option_t *opt="") { mId = 0; }
virtua... |
jhkuang11/UniTrade | code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/utils/driver/abstract.py | <gh_stars>0
##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
"""Im... |
RajeshKumarC6/Learn-Scala-Programming | Chapter02/src/main/scala/ch02/GeneralisedPhantomTypes.scala | <filename>Chapter02/src/main/scala/ch02/GeneralisedPhantomTypes.scala
package ch02
object GeneralisedPhantomTypes {
sealed trait LockState
sealed trait Open extends LockState
sealed trait Closed extends LockState
sealed trait Broken extends LockState
case class Lock[State <: LockState]() {
def break: L... |
gamekit-developers/gamekit | Dependencies/Source/FreeImage/LibOpenJPEG/j2k.c | <reponame>gamekit-developers/gamekit
/*
* Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2007, Professor <NAME>
* Copyright (c) 2001-2003, <NAME>
* Copyright (c) 2002-2003, <NAME>
* Copyright (c) 2003-2007, <NAME> and... |
jalberti/cf-abacus | lib/aggregation/aggregator/src/index.js | 'use strict';
const { each, extend, filter, find, map, rest, object } = require('underscore');
const cluster = require('abacus-cluster');
const dataflow = require('abacus-dataflow');
const dbclient = require('abacus-dbclient');
const router = require('abacus-router');
const seqid = require('abacus-seqid');
const lruc... |
oliveirajonathas/python_estudos | pacote-download/pythonProject/exercicios_python_guanabara/ex047.py | <gh_stars>0
"""
Faça um programa que mostre na tela todos os números pares entre 1 e 50
"""
for i in range(1, 51):
if i % 2 == 0:
print(i, end=' ')
print('FIM')
|
Archive-42/a-whole-bunch-o-gatsby-templates | gatsby-theme-simple-docs/src/tokens/colors.js | export default {
black: '#211111',
gray100: '#faeaea',
gray200: '#dacaca',
gray700: '#645454',
primary: '#452323',
white: '#fffefe'
};
|
Peefy/CLRS_dugu_code-master | src/chapter32/__init__.py |
# python src/chapter32/chapter32note.py
# python3 src/chapter32/chapter32note.py
|
Katala-Jonni/react-admin | src/modules/Shop/totalDay.js | import moment from "moment/min/moment-with-locales";
export default {
[moment()
.set("date", 6)
.format("DD.MM.YY")]: {},
[moment()
.set("date", 13)
.format("DD.MM.YY")]: {
open: []
}
};
|
MichaelWolloch/aiida-vasp | aiida_vasp/parsers/file_parsers/vasprun.py | <filename>aiida_vasp/parsers/file_parsers/vasprun.py
"""
vasprun parser.
---------------
The file parser that handles the parsing of vasprun.xml files.
"""
# pylint: disable=too-many-public-methods, protected-access
import sys
import numpy as np
from parsevasp.vasprun import Xml
from parsevasp.kpoints import Kpoint
f... |
ODCleanStore/ODCleanStore | odcleanstore/engine/src/main/java/cz/cuni/mff/odcleanstore/engine/pipeline/PipelineGraphTransformerExecutorException.java | <reponame>ODCleanStore/ODCleanStore
package cz.cuni.mff.odcleanstore.engine.pipeline;
import cz.cuni.mff.odcleanstore.core.ODCleanStoreException;
import cz.cuni.mff.odcleanstore.engine.db.model.PipelineCommand;
/**
* A exception arising from PipelineGraphTransformerExecutor class.
*
* @author <NAME>
*/
public cl... |
liuzyw/study-hello | study-lucene/src/main/java/com/study/luence/day1/CreateIndex.java | package com.study.luence.day1;
import java.io.IOException;
import java.io.Serializable;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene... |
flon-chou/file-system-service | qc-service/src/main/java/com/cj/qc/mqreceiver/RabbitReceiver.java | <reponame>flon-chou/file-system-service<filename>qc-service/src/main/java/com/cj/qc/mqreceiver/RabbitReceiver.java
package com.cj.qc.mqreceiver;
import cn.hutool.core.thread.ThreadUtil;
import com.cj.qc.fastmybatismapper.TaskQueueAutoMapper;
import com.cj.qc.service.TaskEngineService;
import com.rabbitmq.client.Channe... |
hovmikayelyan/Data_Structures_and_Algorithms | Data Structures/week4_hash_tables/2_hash_chains/submited.cpp | <reponame>hovmikayelyan/Data_Structures_and_Algorithms
/**
* @file submited.cpp
* @author <NAME> (<EMAIL>)
* @brief
* @version 0.1
* @date 2021-12-17
*
* @copyright Copyright (c) 2021
*
*/
#include <bits/stdc++.h>
using namespace std;
struct Query
{
string type, name;
size_t number;
};
class QueryPr... |
OLR-xray/OLR-3.0 | src/xray/xr_3da/xrGame/console_registrator_script.cpp | #include "pch_script.h"
#include "console_registrator.h"
#include "../xr_ioconsole.h"
#include "../xr_ioc_cmd.h"
using namespace luabind;
CConsole* console()
{
return Console;
}
int get_console_integer(CConsole* c, LPCSTR cmd)
{
int val=0,min=0,max=0;
c->GetInteger ( cmd, val, min, max);
return val;
}
float get... |
emouse2010/duband | wrist-rom-open/Source/src/bd_factory_test.c | /* Copyright (c) [2014 Baidu]. 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... |
longwind09/sampling | src/main/java/org/felix/ml/sampling/IConfig.java | package org.felix.ml.sampling;
import org.felix.ml.sampling.exception.ConfigException;
import java.io.File;
import java.io.InputStream;
import static org.felix.ml.sampling.util.Constant.LABEL_VAR;
import static org.felix.ml.sampling.util.Constant.SAMPLE_VAR;
import static org.apache.commons.lang.StringUtils.trim;
/... |
battlecatsultimate/PackPack | src/main/java/mandarin/packpack/supporter/bc/CustomMaskUnit.java | <reponame>battlecatsultimate/PackPack<gh_stars>1-10
package mandarin.packpack.supporter.bc;
import common.CommonStatic;
import common.battle.data.DataUnit;
import common.util.anim.MaAnim;
import common.util.unit.UnitLevel;
import mandarin.packpack.supporter.StaticStore;
public class CustomMaskUnit extends DataUnit {
... |
lanpinguo/apple-sauce | ofagent/indigo/submodules/bigcode/modules/PPE/module/src/ppe_utm.c | /****************************************************************
*
* Copyright 2013, Big Switch Networks, Inc.
*
* Licensed under the Eclipse Public License, Version 1.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* ... |
naga-project/webfx | webfx-kit/webfx-kit-javafxgraphics-emul/src/main/java/com/sun/javafx/cursor/CursorFrame.java | /*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
VirtueDev/synced_repo | src/java/com/threerings/msoy/mail/gwt/PresentPayload.java | //
// $Id$
package com.threerings.msoy.mail.gwt;
import com.threerings.orth.data.MediaDesc;
import com.threerings.msoy.data.all.HashMediaDesc;
import com.threerings.msoy.item.data.all.Item;
import com.threerings.msoy.item.data.all.ItemIdent;
/**
* Contains information on an item gifted from one player to another.
... |
hetjagani/Indeed-Clone | chat/model.js | <filename>chat/model.js
const { DataTypes } = require('sequelize');
const Chat = global.DB.define('chat', {
_id: {
type: DataTypes.STRING,
primaryKey: true,
unique: true,
},
employerId: {
type: DataTypes.STRING,
allowNull: false,
},
userId: {
type: DataTypes.STRING,
allowNull: fal... |
huangchengmin97/fili | fili-core/src/main/java/com/yahoo/bard/webservice/async/jobs/stores/NoOpApiJobStore.java | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.async.jobs.stores;
import com.yahoo.bard.webservice.async.jobs.jobrows.JobRow;
import rx.Observable;
import java.util.Set;
import javax.i... |
aguestuser/drivetrain | app/enums/account_status.rb | <reponame>aguestuser/drivetrain
class AccountStatus < ClassyEnum::Base
end
class AccountStatus::NewAccount < AccountStatus
end
class AccountStatus::Stable < AccountStatus
end
class AccountStatus::AtRisk < AccountStatus
end
class AccountStatus::AtHighRisk < AccountStatus
end
class AccountStatus::EmergencyOnly < Acc... |
tusharchoudhary0003/Custom-Football-Game | sources/com/mopub/mobileads/C11418k.java | <reponame>tusharchoudhary0003/Custom-Football-Game<gh_stars>1-10
package com.mopub.mobileads;
import com.mopub.common.logging.MoPubLog;
/* renamed from: com.mopub.mobileads.k */
/* compiled from: AppLovinBanner */
class C11418k implements Runnable {
/* renamed from: a */
final /* synthetic */ int f35306a;
... |
vasukas/rodent | utils/time_utils.hpp | #ifndef TIME_UTILS_HPP
#define TIME_UTILS_HPP
#include "vaslib/vas_cpp_utils.hpp"
#include "vaslib/vas_time.hpp"
float time_sine(TimeSpan full_period, float min = 0, float max = 1, TimeSpan time = TimeSpan::since_start());
struct SmoothSwitch
{
/*
Smooths switching of some option (usually in UI).
Value gradua... |
jshier/Pixen | Pixel Art Core/Canvas/PXCanvas_Layers.h | //
// PXCanvas_Layers.h
// Pixen
//
// Created by <NAME> on 2005.07.31.
// Copyright 2005 Open Sword Group. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PXCanvas.h"
@interface PXCanvas(Layers)
- (PXLayer *) activeLayer;
- (void)activateLayer:(PXLayer *) aLayer;
- (NSArray *) layers;
- (NSUInteger)inde... |
MAAP-Project/mmt | spec/features/collections/delete_collection_spec.rb | describe 'Delete Collection', js: true do
before :all do
collection_with_granule_title = SecureRandom.uuid
@collection_with_granule_ingest_response, _collection_concept_response = publish_collection_draft(entry_title: collection_with_granule_title)
_granule_ingest_response, _granule_concept_response = ing... |
shashup/https-github.com-apache-httpcomponents-client | httpclient/src/test/java/org/apache/http/impl/cookie/TestBasicClientCookie2.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
... |
ekhalilbsq/iaso | hat/assets/js/apps/Iaso/domains/projects/messages.js | <filename>hat/assets/js/apps/Iaso/domains/projects/messages.js
import { defineMessages } from 'react-intl';
const MESSAGES = defineMessages({
projects: {
defaultMessage: 'Projects',
id: 'iaso.label.projects',
},
create: {
defaultMessage: 'Create project',
id: 'iaso.projects.... |
rightscale/right_link | spec/instance/system_configuration_spec.rb | <gh_stars>1-10
#--
# Copyright (c) 2012 RightScale, Inc, All Rights Reserved Worldwide.
#
# THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE
# AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use,
# reproduction, modification, or disclosure of this program is
# strictly prohibited. Any use of this ... |
hbeatty/incubator-trafficcontrol | traffic_ops/traffic_ops_golang/deliveryservice/consistenthash/consistenthash.go | package consistenthash
/*
* 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 ... |
lonnibesancon/utymap | core/src/builders/misc/BarrierBuilder.hpp | #ifndef BUILDERS_MISC_BARRIER_BUILDER_HPP_DEFINED
#define BUILDERS_MISC_BARRIER_BUILDER_HPP_DEFINED
#include "builders/ElementBuilder.hpp"
namespace utymap { namespace builders {
/// Provides the way to build barrier.
class BarrierBuilder final : public ElementBuilder
{
public:
explicit BarrierBuilder(const uty... |
mpayne2/FHIR | fhir-persistence-jdbc/src/main/java/com/ibm/fhir/persistence/jdbc/util/type/NewLocationParmBehaviorUtil.java | /*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.persistence.jdbc.util.type;
import static com.ibm.fhir.database.utils.query.expression.ExpressionSupport.bind;
import static com.ibm.fhir.database.utils.query.expression.ExpressionSupport.col;
import static com.ibm.f... |
djdrisco/cfn_nag | spec/cfn_nag_integration/cfn_nag_rds_instance_spec.rb | require 'spec_helper'
require 'cfn-nag/cfn_nag_config'
require 'cfn-nag/cfn_nag'
describe CfnNag do
before(:all) do
CfnNagLogging.configure_logging(debug: false)
@cfn_nag = CfnNag.new(config: CfnNagConfig.new)
end
context 'one RDS instance with public access' do
it 'flags a violation' do
templ... |
xdeltax/xdx-rippms | client/src/ui/components/effects/TextfieldMultiSelect.js | <gh_stars>1-10
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import ListItemText from '@material-ui/core/ListItemText';
import Select from '@material-ui/core/Select';
import MenuItem... |
landeddeveloper/idpt | frontend/src/modules/video/importer/videoImporterActions.js | <filename>frontend/src/modules/video/importer/videoImporterActions.js
import importerActions from 'modules/shared/importer/importerActions'
import selectors from 'modules/video/importer/videoImporterSelectors'
import VideoService from 'modules/video/videoService'
import fields from 'modules/video/importer/videoImporter... |
xbwcgnt1997/kylin | datasource-sdk/src/main/java/org/apache/kylin/sdk/datasource/framework/SourceConnectorFactory.java | <reponame>xbwcgnt1997/kylin
/*
* 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 ... |
guohaoqiang/leetcode | Str/539.cc | <gh_stars>0
class Solution {
public:
int findMinDifference(vector<string>& timePoints) {
vector<int> temp;
for (auto s:timePoints){
temp.push_back(stoi(s.substr(0,2))*60 + stoi(s.substr(3)));
}
sort(temp.begin(),temp.end());
int ans = 24*60;
temp.push_back... |
trydent-io/quercus | io.artoo.parry/src/main/java/io/artoo/parry/stream/impl/InboundBuffer.java | <filename>io.artoo.parry/src/main/java/io/artoo/parry/stream/impl/InboundBuffer.java
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* 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.... |
qinfangj/UniWebProject | components/userData/batchSubmission/formModels/sampleModel.js | <gh_stars>0
'use strict';
import inputTypes from '../../../constants/inputTypes';
import optionsStoreKeys from '../../../constants/optionsStoreKeys';
import fields from '../../../constants/fields';
export const sampleFields = [
fields.samples.NAME, fields.samples.SHORT_NAME, fields.samples.CONCENTRATION,
fiel... |
tiwer/letv | src/main/java/com/google/protobuf/jpush/b.java | <filename>src/main/java/com/google/protobuf/jpush/b.java<gh_stars>10-100
package com.google.protobuf.jpush;
import java.util.Collection;
public abstract class b<BuilderType extends b> implements l {
private static final String z;
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, plea... |
peterdemaeyer/JavaHamcrest | hamcrest-pure/src/test/java/org/hamcrest/pure/internal/SelfDescribingValueIteratorTest.java | package org.hamcrest.pure.internal;
import org.hamcrest.pure.Description;
import org.junit.jupiter.api.Test;
import org.mockito.InOrder;
import java.util.ArrayList;
import java.util.Iterator;
import static java.util.Arrays.asList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito... |
qudini/qudini-reactive | qudini-reactive-graphql/src/main/java/com/qudini/reactive/graphql/scalar/IntScalar.java | package com.qudini.reactive.graphql.scalar;
import graphql.language.IntValue;
import graphql.schema.CoercingParseLiteralException;
import graphql.schema.CoercingParseValueException;
import graphql.schema.CoercingSerializeException;
/**
* <p>Base class for int-based custom scalars.</p>
* <p>Example:</p>
* <pre><cod... |
danielsunzhongyuan/java_advanced | algorithms/src/main/java/com/zsun/java/algorithms/arithmetic/FastPower.java | <filename>algorithms/src/main/java/com/zsun/java/algorithms/arithmetic/FastPower.java
package com.zsun.java.algorithms.arithmetic;
/**
* @author : zsun
* @date : 2020/08/21 11:18
*/
public class FastPower {
/**
* @param base 底数
* @param power 幂次
* @return 后两位数
*/
public static long calc... |
Miguel-David/1KSegundaEvaluacion | src/ExamenAnyoPasadoSegunda/Audible.java | <filename>src/ExamenAnyoPasadoSegunda/Audible.java
package ExamenAnyoPasadoSegunda;
public interface Audible {
String sonido();
}
|
maxime4000/react-laag | docs/src/pages/builder.js | import React from "react";
import Builder from "../builder";
export default Builder;
|
lzp979822781/standard-react-project | src/pages/med-market/data-analysis/models/displayAnalyse.js | <reponame>lzp979822781/standard-react-project
/* eslint-disable import/extensions */
// eslint-disable-next-line no-unused-vars
import cloneDeep from "lodash/cloneDeep";
import omit from "lodash/omit";
import {
// eslint-disable-next-line no-unused-vars
get,
post,
doExport,
queryDetail,
} from "../s... |
seksek13/tp | src/main/java/seedu/address/logic/commands/SortRecordCommand.java | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import java.util.Comparator;
import seedu.address.commons.core.Messages;
import seedu.address.model.Model;
import seedu.address.model.record.Record;
/**
* Sorts all record in record book ascending/descending order in terms of sta... |
EdMcBane/emaze-dysfunctional | src/test/java/net/emaze/dysfunctional/ZipsTest.java | package net.emaze.dysfunctional;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import net.emaze.dysfunctional.order.ComparableComparator;
import net.emaze.dysfunctional.order.NextIntegerSequencingPolicy;
import net.emaze.dysfunctional.... |
sebobr/dontpaytheferryman | opentsdb/test/search/TestTimeSeriesLookup.java | // This file is part of OpenTSDB.
// Copyright (C) 2014 The OpenTSDB Authors.
//
// This program 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
// opti... |
kanwarmuhammad/Laravel-Vuex-Ecomerence | resources/js/store/modules/midnight/getters.js | export default {
//get the categories array
allMidNightDeals: state => state.all_midNightDeals
}
|
folio-org/stripes-acq-components | lib/Tags/TagsBadge/index.js | <reponame>folio-org/stripes-acq-components<filename>lib/Tags/TagsBadge/index.js
export { default } from './TagsBadgeContainer';
|
ckamtsikis/cmssw | DataFormats/BTauReco/interface/TrackIPTagInfo.h | <filename>DataFormats/BTauReco/interface/TrackIPTagInfo.h
#ifndef BTauReco_TrackIpTagInfo_h
#define BTauReco_TrackIpTagInfo_h
#include "DataFormats/BTauReco/interface/RefMacros.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/BTauReco/interface/JTATagInfo.h"
#include "DataFormats/BTauReco... |
Inviz/lsd-outdated- | Source/ART/Widget/Trait/Dimensions.js | ART.Widget.Trait.Dimensions = new Class({
size: {},
setSize: function(width, height) {
var size = {width: width, height: height};
$extend(this.options, size);
this.refresh(size);
},
setHeight: function(value, light) {
value = Math.max(this.style.current.minHeight || 0, value);
if (!light && (this.siz... |
tourdownunder/opennem | opennem/spiders/nem/__init__.py | <reponame>tourdownunder/opennem<gh_stars>0
import io
import logging
from datetime import datetime
import scrapy
from opennem.pipelines.files import LinkExtract
from opennem.pipelines.nem import (
ExtractCSV,
ReadStringHandle,
TableRecordSplitter,
UnzipSingleFilePipeline,
)
from opennem.pipelines.wem.b... |
bertilxi/Pegaso | GUI/test/listar_participante.h | #ifndef LISTAR_PARTICIPANTE_H
#define LISTAR_PARTICIPANTE_H
#include <QDialog>
#include "Participante.h"
#include "gui.h"
#include <QValidator>
#include <QFileDialog>
#include "ver_competencia.h"
class ver_competencia;
namespace Ui {
class listar_participante;
}
class listar_participante : public QDialog
{
Q_OB... |
vibhorsingh11/LeetCode | LearnCards/src/test/java/org/phoenix/leetcode/learn/binarytree/Problem01_PreorderTraversalTest.java | <gh_stars>0
package org.phoenix.leetcode.learn.binarytree;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import org.phoenix.leetcode.learn.binarytree.Problem01_PreorderTraversal.TreeNode;
import java.util.Arrays;
import java.util.List;
class Problem01_PreorderTraversalTest {
... |
therealaldo/brassroots | app/actions/conversations/UpdateConversations/reducers.test.js | 'use strict';
/**
* @format
* @flow
*/
import reducer, {
initialState,
type State,
} from '../../../reducers/conversations';
import * as actions from '../UpdateConversations';
describe('update conversations reducer', () => {
it('returns initial state', () => {
expect(reducer(undefined, {})).toStrictEqua... |
kevinlq/Qt-Creator-Opensource-Study | qt-creator-opensource-src-4.6.1/src/plugins/cppeditor/cppuseselectionsupdater.cpp | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
ltg001/word_game | final-project/word_game/player.h | #ifndef PLAYER_H
#define PLAYER_H
#include "include.h"
#include "person.cpp"
namespace Ui {
class Player;
}
/**
* @brief
*
*/
class Player : public QDialog, public Person {
Q_OBJECT
public:
/**
* @brief
*
* @param parent
*/
explicit Player( QWidget *parent = 0 );
/**
* ... |
scgg/maplefetion | src/net/solosky/maplefetion/net/mina/MinaTransferFactory.java | <filename>src/net/solosky/maplefetion/net/mina/MinaTransferFactory.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 f... |
sudhan499/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/metastorage/persistence/InMemoryCachedDistributedMetaStorageBridge.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 ... |
laigukf/LaigukfSDK-iOS | Laigu-SDK-files/LGChatViewController/MessageModels/LGRichTextMessage.h | <reponame>laigukf/LaigukfSDK-iOS<gh_stars>0
//
// LGRichTextMessage.h
// Laigu-SDK-Demo
//
// Created by zhangshunxing on 16/6/14.
// Copyright © 2016年 Laigu. All rights reserved.
//
#import "LGBaseMessage.h"
@interface LGRichTextMessage : LGBaseMessage
@property (nonatomic, copy)NSString *thumbnail;
@property (... |
muddessir/framework | machine/qemu/sources/u-boot/drivers/watchdog/xilinx_tb_wdt.c | // SPDX-License-Identifier: GPL-2.0+
/*
* Xilinx AXI platforms watchdog timer driver.
*
* Author(s): <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright (c) 2011-2018 Xilinx Inc.
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <wdt.h>
#include <linux/err.h>
#include <linux/io.h>
#define XWT_CSR... |
zettadb/zettalib | src/vendor/mariadb-10.6.7/storage/mroonga/vendor/groonga/lib/request_canceler.c | <gh_stars>0
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2014-2016 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that... |
410757864530-dead-salmonids/aaravosbot-geode | db/migrations/20190413221901_add_muted_users_table_to_database.rb | <filename>db/migrations/20190413221901_add_muted_users_table_to_database.rb
# Migration: AddMutedUsersTableToDatabase
Sequel.migration do
change do
create_table(:muted_users) do
primary_key :id
Time :end_time
end
end
end |
youngbloood/leetcode | june/slice.go | package june
/*
# Random Pick with Weight
# https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3351/
Given an array w of positive integers, where w[i] describes the weight of index i(0-indexed), write a function pickIndex which randomly picks an index in proportion to i... |
skavt/CRM | vuejs/src/store/modules/invitation/mutation-types.js | <gh_stars>0
export const SHOW_INVITE_MODAL = 'invitation/SHOW_INVITE_MODAL';
export const HIDE_INVITE_MODAL = 'invitation/HIDE_INVITE_MODAL';
export const SET_INVITATION_DATA = 'invitation/SET_INVITATION_DATA';
export const ADD_NEW_INVITED_USER = 'invitation/ADD_NEW_INVITED_USER';
export const DELETE_INVITED_USER = 'i... |
Seitenbau/BauPlan-Client | src/containers/Search/tests/reducer.test.js | import { fromJS } from 'immutable';
import searchFieldReducer from '../reducer';
describe('searchFieldReducer', () => {
it('returns the initial state', () => {
expect(searchFieldReducer(undefined, {})).toEqual(
fromJS({ focused: false, value: '' })
);
});
});
|
bitwizeshift/Alloy | lib/alloy-core/include/alloy/core/api.hpp | <filename>lib/alloy-core/include/alloy/core/api.hpp<gh_stars>1-10
/*****************************************************************************
* \file api.hpp
*
* \brief This header contains the import/export API macro guards for the
* Alloy::Core library
**************************************************... |
akkelyn/One | Best/Best/Classes/FriendTrends/Controller/OneRecommendViewController.h | <reponame>akkelyn/One<gh_stars>1-10
//
// OneRecommendViewController.h
// One
//
// Created by akkelyn on 16-4-22.
// Copyright (c) 2016年 akkelyn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OneRecommendViewController : UIViewController
@end
|
rodavoce/weshareashare | server/tests/lifecycle.test.js | var sails = require('sails');
// Before running any tests...
before(function(done) {
// Increase the Mocha timeout so that Sails has enough time to lift, even if you have a bunch of assets.
this.timeout(20000);
process.env.PORT = 9999;
sails.lift({
// We might want to skip the Grunt hook,
// and dis... |
dodgelafnitz/ASCII | ASCII/projects/DcUtility/include/Math/Shapes2D/ForwardDeclarations.h | <filename>ASCII/projects/DcUtility/include/Math/Shapes2D/ForwardDeclarations.h<gh_stars>0
/*
* Copywrite 2021 <NAME>
*/
#ifndef DCUTILITY_MATH_SHAPES2D_FORWARDDECLARATIONS_H
#define DCUTILITY_MATH_SHAPES2D_FORWARDDECLARATIONS_H
class LineSegment;
class Line;
class Ray;
class Circle;
class Rect;
class Polygon;
#end... |
cpp-pm/boost | boost/intrusive/treap_algorithms.hpp | /////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2006-2014.
//
// 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)
//
// See http://www.boost.org/l... |
hiyingnn/main | src/test/java/systemtests/AddMemberCommandSystemTest.java | package systemtests;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.MEMBER_LOYALTY_POINTS_DESC_AMY;
import static seedu.address.logic.commands.CommandTestUtil.MEMBER_LOYALTY_POINTS_DESC_BOB;
import static seedu.address.logic.... |
tipabu/ProxyFS | retryrpc/stress_test.go | <gh_stars>0
package retryrpc
import (
"fmt"
"math/rand"
"sync"
"testing"
"time"
/* DEBUG for pprof
_ "net/http/pprof"
*/
"github.com/stretchr/testify/assert"
"github.com/swiftstack/ProxyFS/retryrpc/rpctest"
)
func TestStress(t *testing.T) {
/*
* DEBUG - used to debug memory leaks
* Run " go tool p... |
mohdab98/cmps252_hw4.2 | src/cmps252/HW4_2/UnitTesting/record_3514.java | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... |
GeniusVentures/SuperGenius | src/crdt/globaldb/pubsub_broadcaster_ext.hpp | #ifndef SUPERGENIUS_CRDT_PUBSUB_BROADCASTER_EXT_HPP
#define SUPERGENIUS_CRDT_PUBSUB_BROADCASTER_EXT_HPP
#include <crdt/broadcaster.hpp>
#include <crdt/graphsync_dagsyncer.hpp>
#include <base/logger.hpp>
#include <ipfs_pubsub/gossip_pubsub_topic.hpp>
#include <queue>
namespace sgns::crdt
{
class CrdtDatastore;
class P... |
Pioneer-Robotics/FTCPioneer2020-2021 | TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Troubleshooting/TestingOps/TestingOpMode4.java | <filename>TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Troubleshooting/TestingOps/TestingOpMode4.java
package org.firstinspires.ftc.teamcode.Troubleshooting.TestingOps;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.... |
yacoota/whale | src/main/java/com/meiyouframework/bigwhale/util/SpringContextUtils.java | package com.meiyouframework.bigwhale.util;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
/**
* @author Suxy
* @date 2019/8/29
* @description file de... |
SayanGhoshBDA/code-backup | java_backup/my java/Nigga Stole My Bike/sort2.java | <filename>java_backup/my java/Nigga Stole My Bike/sort2.java
import java.util.*;
public class sort2
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("enter length");
int n=sc.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i+... |
jmhrpr/tor-prop-327 | src/ext/equix/hashx/src/virtual_memory.c | /* Copyright (c) 2020 tevador <<EMAIL>> */
/* See LICENSE for licensing information */
#include "virtual_memory.h"
#ifdef HASHX_WIN
#include <windows.h>
#else
#ifdef __APPLE__
#include <mach/vm_statistics.h>
#endif
#include <sys/types.h>
#include <sys/mman.h>
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endi... |
ucarGroup/EserKnife | src/main/java/com/ucar/eser/core/bean/po/DataSourceMapping.java | <gh_stars>10-100
package com.ucar.eser.core.bean.po;
import java.util.Date;
/**
*
* Description: 数据源映射实体类
* All Rights Reserved.
* Created on 2017-3-10 下午4:29:12
*/
public class DataSourceMapping {
/**
* 主键
*/
private Long id;
/**
* 数据源在本系统的名称
*/
private String localName;
/**
* 数据源在数据交换平台的名称
... |
koenw/fullstack-hello | frontend/node_modules/.pnpm/@rsuite+icons@1.0.2_react-dom@17.0.2+react@17.0.2/node_modules/@rsuite/icons/lib/icons/legacy/Recycle.js | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _createSvgIcon = _interopRequireDefault(require("../../createSvgIcon"));
var _Recycle = _interopRequireDefault(require("@rsuite/icon-font/lib/legacy/Recycle... |
netarch/batfish | projects/question/src/main/java/org/batfish/question/edges/EdgesAnswerer.java | <gh_stars>1-10
package org.batfish.question.edges;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Multiset;
import com.google.common.graph.EndpointPair;
import com.google.common.grap... |
wyz7155/SymDrive | s2e/qemu/target-s390x/helper.h | #include "def-helper.h"
DEF_HELPER_1(exception, void, i32)
DEF_HELPER_3(nc, i32, i32, i64, i64)
DEF_HELPER_3(oc, i32, i32, i64, i64)
DEF_HELPER_3(xc, i32, i32, i64, i64)
DEF_HELPER_3(mvc, void, i32, i64, i64)
DEF_HELPER_3(clc, i32, i32, i64, i64)
DEF_HELPER_2(mvcl, i32, i32, i32)
DEF_HELPER_FLAGS_1(set_cc_comp_s32, TC... |
superxuzj/outteamManage | src/main/java/com/boliangshenghe/outteam/service/ResponseService.java | package com.boliangshenghe.outteam.service;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.boliangshenghe.outteam.common.PageBean;
import com.boliangshenghe.outteam.entity.Company;
import com.bolia... |
nyla-solutions/nyla-formInjection | nyla.solutions.formInjection/src/main/java/nyla/solutions/formInjection/bre/OperationBluePrint.java | <filename>nyla.solutions.formInjection/src/main/java/nyla/solutions/formInjection/bre/OperationBluePrint.java
package nyla.solutions.formInjection.bre;
import java.io.Serializable;
import java.util.Collection;
import nyla.solutions.global.data.AbstractAudit;
import nyla.solutions.global.data.Criteria;
import nyl... |
Half-Shot/sync-v3 | state/event_table_test.go | <gh_stars>0
package state
import (
"bytes"
"testing"
"github.com/jmoiron/sqlx"
"github.com/matrix-org/sync-v3/sqlutil"
)
func TestEventTable(t *testing.T) {
db, err := sqlx.Open("postgres", postgresConnectionString)
if err != nil {
t.Fatalf("failed to open SQL db: %s", err)
}
txn, err := db.Beginx()
if er... |
bugduino/alpha-wallet-android | app/src/main/java/com/alphawallet/app/viewmodel/AdvancedSettingsViewModelFactory.java | <gh_stars>1-10
package com.alphawallet.app.viewmodel;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import androidx.annotation.NonNull;
import com.alphawallet.app.repository.CurrencyRepositoryType;
import com.alphawallet.app.repository.LocaleRepositoryType;
import com.alphawallet.a... |
majunbao/xue | react-flux/demo11/src/views/appLayout/Top.js | import {h, cloneElement} from 'preact';
import HeaderPage from '../HeaderPage';
const style = {
top: 0,
right: 0,
bottom: 0,
left: 0,
background: '#242424'
}
function Top(props) {
return (
<div className="uk-view" style={{...style, height: props.layout.top}}>
<HeaderPage {...props} />
</div>... |
trngaje/mame-2003-plus-kaze | src/drivers/beathead.c | <gh_stars>100-1000
/***************************************************************************
Atari "Stella on Steroids" hardware
driver by <NAME>
Games supported:
* BeatHead
Known bugs:
* none known
****************************************************************************
Memory map
=============... |
jasonfeihe/BitFunnel | src/Common/Utilities/src/ReadLines.cpp | // The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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 without limitation the rights
// to use, copy, mo... |
ghsecuritylab/AliOS-Things_rel_1.3.1 | framework/protocol/linkkit/iotkit/hal-impl/rhino/HAL_TCP_rhino.c | <reponame>ghsecuritylab/AliOS-Things_rel_1.3.1
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <aos/network.h>
#include <aos/errno.h>
extern uint64_t aliot_platform_time_left(uint64_t t_end, uint64_t t_now);
#define PLATFORM_RHINOSOCK_LOG(...) PLATF... |
kk9923/StudyView | app/src/main/java/com/kx/studyview/views/drag/DragLayout.java | <filename>app/src/main/java/com/kx/studyview/views/drag/DragLayout.java
package com.kx.studyview.views.drag;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;
import an... |
ModeenF/UltraDV | UltraDV/Headers/TAudioSourceView.h | //---------------------------------------------------------------------
//
// File: TAudioSourceView.h
//
// Author: <NAME>
//
// Date: 05.27.98
//
//
// Copyright ©1998 mediapede Software
//
//---------------------------------------------------------------------
#ifndef __TAUDIOSOURCEVIEW_H__
#define __TAUDIOSOURCEVI... |
michel19/soajs.dashboard | test/unit/lib/daemons/index.test.js | "use strict";
var assert = require("assert");
var helper = require("../../../helper.js");
var utils = helper.requireModule('./lib/daemons/index.js');
describe("testing daemons.js", function () {
var daemon;
var req = {
soajs: {
inputmaskData: {}
}
};
var res = {};
it("Init model", function (done) {
... |
decilio4g/delicias-do-tchelo | node_modules/@styled-icons/heroicons-solid/ClipboardCheck/ClipboardCheck.esm.js | <filename>node_modules/@styled-icons/heroicons-solid/ClipboardCheck/ClipboardCheck.esm.js
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var ClipboardCheck = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.