repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
weiyang13/main | src/test/java/seedu/ichifund/testutil/FundBookBuilder.java | package seedu.ichifund.testutil;
import seedu.ichifund.model.FundBook;
import seedu.ichifund.model.transaction.Transaction;
/**
* A utility class to help with building FundBook objects.
* Example usage: <br>
* {@code FundBook ab = new FundBookBuilder().withTransaction("John", "Doe").build();}
*/
public class ... |
xiaomailong/prestudy | demo/electron-demo/demo1/Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
'build-atom-shell': {
tag: 'v0.19.5',
nodeVersion: '0.18.0',
buildDir: (process.env.TMPDIR || process.env.TEMP || '/tmp') + '/atom-shell',
projectName: 'electrondemo',
productName: 'ElectronDemo'
}
});
grunt.loadNpmTasks(... |
DFalque/mombo_landing_master | src/components/Header/MobileNav.js | <filename>src/components/Header/MobileNav.js<gh_stars>0
import React, { Component } from "react"
import Nav from "./Nav"
export class MobileNav extends Component {
render() {
return (
<div className="header__mobile">
<Nav />
</div>
)
}
}
export default MobileNav
|
redecheck/redecheck | src/main/java/shef/reporting/inconsistencies/ViewportProtrusionFailure.java | <reponame>redecheck/redecheck<gh_stars>10-100
package shef.reporting.inconsistencies;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.WebDriver;
import shef.layout.Element;
import shef.layout.LayoutFactory;
import shef.main.RLGExtractor;
import shef.main.Utils;
import shef.rlg.Node;
import javax.im... |
farkasmate/pdk | lib/pdk/cli.rb | require 'cri'
require 'pdk/cli/errors'
require 'pdk/cli/util'
require 'pdk/cli/util/command_redirector'
require 'pdk/cli/util/option_normalizer'
require 'pdk/cli/util/option_validator'
require 'pdk/cli/exec_group'
require 'pdk/generators/module'
require 'pdk/i18n'
require 'pdk/logger'
require 'pdk/report'
require 'pdk... |
cuongquay/led-matrix-display | AdsLedMatrixCMS/v3.0.1/Tools/NewProperty.cpp | <filename>AdsLedMatrixCMS/v3.0.1/Tools/NewProperty.cpp
// NewProperty.cpp : implementation file
//
#include "stdafx.h"
// CNewPropertyPage dialog
IMPLEMENT_DYNAMIC(CNewPropertyPage, CPropertyPage)
CNewPropertyPage::CNewPropertyPage()
{
}
CNewPropertyPage::~CNewPropertyPage()
{
}
CNewPropertyPage::... |
christophersiem/MoodBoos | frontend/src/components/dialogs/UserDeleteDialog.js | <reponame>christophersiem/MoodBoos
import React, { useContext, useState } from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogCon... |
Qualicen/Specmate | ui-tests/src/test/java/com/specmate/uitests/TestBase.java | <filename>ui-tests/src/test/java/com/specmate/uitests/TestBase.java
package com.specmate.uitests;
import java.net.URL;
import java.util.LinkedList;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Rule;
impor... |
icemanblues/advent-of-code | 2015/day11/day11.go | package main
import (
"fmt"
)
const (
dayNum = "11"
dayTitle = "Corporate Policy"
)
const input = "hepxcrrq"
var badRunes map[rune]struct{} = map[rune]struct{}{
'i': {}, 'o': {}, 'l': {},
}
var base26 []rune = []rune{
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r',... |
JohnnyTh/pytorch_multiproject | pytorch_multiproject/projects/CycleGAN/test.py | <gh_stars>1-10
import sys
import os
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname('__file__'))))
sys.path.insert(0, ROOT_DIR)
import logging
import torch
import torch.nn as nn
import torchvision.transforms as transforms
from torch import optim
from torch.utils.data import DataLoader
from mo... |
amiranmanesh/go-smart-api-maker | utils/validation/validation.go | package validation
import (
"encoding/json"
"github.com/go-playground/validator/v10"
"regexp"
)
func EmailValidate(email string) bool {
//regular expression for email
re := regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-... |
garroshh/gloo-mesh | pkg/api/networking.enterprise.mesh.gloo.solo.io/v1beta1/controller/event_handlers.go | <filename>pkg/api/networking.enterprise.mesh.gloo.solo.io/v1beta1/controller/event_handlers.go
// Code generated by skv2. DO NOT EDIT.
//go:generate mockgen -source ./event_handlers.go -destination mocks/event_handlers.go
// Definitions for the Kubernetes Controllers
package controller
import (
"context"
networki... |
gaponenko/art | art/Framework/Core/detail/Analyzer.h | #ifndef art_Framework_Core_detail_Analyzer_h
#define art_Framework_Core_detail_Analyzer_h
// vim: set sw=2 expandtab :
//
// The base class for all analyzer modules.
//
#include "art/Framework/Core/Observer.h"
#include "art/Framework/Core/ProcessingFrame.h"
#include "art/Framework/Core/detail/ImplicitConfigs.h"
#inc... |
huanjka/AutoCADPlugin-HeatSource | ObjectARX 2016/samples/database/ARXDBG/Prompt/ArxDbgUiPrBase.cpp | <gh_stars>1-10
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise... |
tcarnoldussen/Menge | src/Menge/MengeCore/data_set_selector.h | <gh_stars>100-1000
#pragma once
#include <cassert>
#include <vector>
#include "MengeCore/BFSM/fsmCommon.h"
#include "MengeCore/Math/RandGenerator.h"
#include "MengeCore/Runtime/ReadersWriterLock.h"
namespace Menge {
/*!
@brief The underlying definition of a set-based selector.
The set-based selector contains a... |
Anirban166/tstl | deprecated/obsolete/src/ldominion2.py | <reponame>Anirban166/tstl
import random
DEBUG = True
MAX_PLAYERS = 4
MAX_DECK = 10
MAX_HAND = 10
MAX_CARDS = 27
Curse = 0
Estate = 1
Duchy = 2
Province = 3
Copper = 4
Silver = 5
Gold = 6
Adventurer = 7
Ambassador = 8
Baron = 9
Council_Room = 10
Cutpurse = 11
Embargo = 12
Feast = 13
Gardens = 14
Great_Hall = 15
Mine =... |
vkaltyrin/exchanger | Exchanger/Services/ExchangeMoneyService/ExchangeMoneyService.h | <filename>Exchanger/Services/ExchangeMoneyService/ExchangeMoneyService.h
#import <Foundation/Foundation.h>
#import "Wallet.h"
#import "Currency.h"
#import "User.h"
#import "ExchangeMoneyData.h"
@protocol ExchangeMoneyService <NSObject>
- (void)exchangeWithUser:(User *)user
moneyAmount:(NSNumber *)moneyAm... |
peter-empen/tessella | jvm/src/vision/id/tessella/OptionUtils.scala | package vision.id.tessella
trait OptionUtils {
final implicit class Opt[T](o: Option[T]) {
def safeGet(msg: String = "cannot get, none"): T = o match {
case Some(t) => t
case None => throw new IllegalArgumentException(msg)
}
}
}
|
Houkime/echo | engine/core/render/vulkan/vk_mapping.cpp | <gh_stars>0
#include "vk_mapping.h"
namespace Echo
{
VkPrimitiveTopology VKMapping::MapPrimitiveTopology(Mesh::TopologyType type)
{
switch (type)
{
case Mesh::TT_POINTLIST: return VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
case Mesh::TT_LINELIST: return VK_PRIMITIVE_TOPOLO... |
mikeludemann/helperFunctions_Python | src/DateTime/dayOfMonth.py | <filename>src/DateTime/dayOfMonth.py
import time
import datetime
def dayOfMonth():
return datetime.date.today().strftime("%d") |
1byte2bytes/cpython | Mac/Lib/test/aete.py | <gh_stars>1-10
# Look for scriptable applications -- that is, applications with an 'aete' resource
# Also contains (partially) reverse engineered 'aete' resource decoding
import MacOS
import os
import string
import sys
import types
import StringIO
from Res import *
def main():
filename = ""
redirect(filename, real... |
PopCap/GameIdea | Engine/Source/Runtime/Engine/Private/Components/PointLightComponent.cpp | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
PointLightComponent.cpp: PointLightComponent implementation.
=============================================================================*/
#include "EnginePrivate.h"
#include... |
teozfrank/DuelMe | Plugin/src/main/java/com/github/teozfrank/duelme/util/Util.java | package com.github.teozfrank.duelme.util;
/**
The MIT License (MIT)
Copyright (c) 2014 teozfrank
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 r... |
im-ando/javafx-breakout | src/jp/imagemagic/breakout/View.java | package jp.imagemagic.breakout;
import java.util.List;
final record View(List<Drawable> objects) {
}
|
thlws/payment-thl | src/main/java/org/thlws/payment/wechat/entity/response/mp/MpSendDataResponse.java | <filename>src/main/java/org/thlws/payment/wechat/entity/response/mp/MpSendDataResponse.java<gh_stars>10-100
package org.thlws.payment.wechat.entity.response.mp;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.thlws.utils.JsonUtil;
/**
*
* @aut... |
RikusW/avdecc-lib | controller/lib/include/stream_input_descriptor_response.h | /*
* Licensed under the MIT License (MIT)
*
* Copyright (c) 2014 AudioScience Inc.
*
* 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 t... |
SoftwareVerde/java-db | src/main/java/com/softwareverde/database/properties/MutableDatabaseProperties.java | <reponame>SoftwareVerde/java-db
package com.softwareverde.database.properties;
public class MutableDatabaseProperties implements DatabaseProperties {
protected String _rootPassword;
protected String _hostname;
protected String _username;
protected String _password;
protected String _schema;
pro... |
SjoerdJakobs/OOFramework-java | lib/fxgraphics2d-1.5/src/com/orsoncharts/demo/StackedBarChart3D3.java | <reponame>SjoerdJakobs/OOFramework-java<gh_stars>0
/* ===================
* Orson Charts - Demo
* ===================
*
* Copyright (c) 2013-2016, Object Refinery Limited.
* All rights reserved.
*
* http://www.object-refinery.com/orsoncharts/index.html
*
* Redistribution and use in source and binary forms, wi... |
psamatt/OrderFulfilmentCQRSDemo | src/main/java/co/uk/acme/fulfillment/DeliveryDateNotChosenForDispatch.java | package co.uk.acme.fulfillment;
/**
* @author psamatt
*/
final public class DeliveryDateNotChosenForDispatch extends RuntimeException {
public DeliveryDateNotChosenForDispatch() {
super("Delivery Date not chosen for order to be dispatched");
}
}
|
gift-surg/GiftCloudServerBuilder | plugin-resources/webapp/xnat/scripts/prearchive/PrearchiveDetails_delete.js | <reponame>gift-surg/GiftCloudServerBuilder<filename>plugin-resources/webapp/xnat/scripts/prearchive/PrearchiveDetails_delete.js
/*
* D:/Development/XNAT/1.6/xnat_builder_1_6dev/plugin-resources/webapp/xnat/scripts/prearchive/PrearchiveDetails_delete.js
* XNAT http://www.xnat.org
* Copyright (c) 2014, Washington U... |
guimeixen/Engine | Editor/imgui/imconfig.cpp | <gh_stars>0
#include "imconfig.h"
#include "imgui_internal.h"
bool ImGui::Combo(const char *label, int *currIndex, std::vector<std::string> &values)
{
if (values.empty())
return false;
return Combo(label, currIndex, vector_getter, static_cast<void*>(&values), values.size());
}
bool ImGui::ListBox(const char *la... |
Jiaming-Yang-20/-CSC207-Book-Exchange-System | src/client/guiandpresenter/userscreen/usertrade/usertrademenuscreen/UserTradeMenuPresenter.java | <gh_stars>0
package client.guiandpresenter.userscreen.usertrade.usertrademenuscreen;
import client.guiandpresenter.SystemPresenter;
import java.util.List;
/**
* Presenter for the User Trade Menu.
*/
class UserTradeMenuPresenter extends SystemPresenter {
/**
* @param items a list of items
* @return th... |
OrBin/redalert-android | app/src/main/java/com/red/alert/services/sound/StopSoundService.java | package com.red.alert.services.sound;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
public class StopSoundService extends Service {
public static void stopSoundSe... |
petrandreev/nosql-unit | nosqlunit-couchbase/src/main/java/com/lordofthejars/nosqlunit/couchbase/RemoteCouchbaseConfigurationBuilder.java | <filename>nosqlunit-couchbase/src/main/java/com/lordofthejars/nosqlunit/couchbase/RemoteCouchbaseConfigurationBuilder.java<gh_stars>100-1000
package com.lordofthejars.nosqlunit.couchbase;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
public class RemoteCouchbaseConfigurationBuilder {
pu... |
18600130137/leetcode | LeetCodeCPP/50. Pow(x, n)/main.cpp | //
// main.cpp
// 50. Pow(x, n)
//
// Created by admin on 2019/3/20.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
using namespace std;
class Solution {
public:
double myPow(double x, int n) {
if(n==0){
return 1;
}
double tmp=myPow(x,n/2);
if... |
nielshulstaert/pride-asa-pipeline | pride-asa-pipeline-core/src/main/java/com/compomics/pride_asa_pipeline/core/gui/view/ModificationConfigDialog.java | <reponame>nielshulstaert/pride-asa-pipeline
package com.compomics.pride_asa_pipeline.core.gui.view;
import java.awt.Color;
import javax.swing.*;
/**
* The modification configuration dialog.
*
* @author <NAME>
*/
public class ModificationConfigDialog extends javax.swing.JDialog {
private JFileC... |
addthis/basis | basis-core/src/main/java/com/addthis/basis/util/Dict.java | /*
* 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 writing, software
* distributed u... |
z-yin/Leetcode-learning | Leetcode/0001_to_0050/0028_implement_strStr()/cc/implement_strStr().cc | <gh_stars>1-10
#include <string>
using namespace std;
// 4 ms, 9.1 MB. Two pointers.
class Solution {
public:
int strStr(string haystack, string needle) {
int len_hay = haystack.size();
int len_nee = needle.size();
if (len_nee == 0) {
return 0;
}
int i = 0;
int end = len_hay - len_nee... |
1432961067/LFKit | LFKit/LFKit/Component/LFBubbleView/LFBubbleView.h | //
// LFBubbleView.h
// LFBubbleViewDemo
//
// Created by 张林峰 on 16/6/29.
// Copyright © 2016年 张林峰. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, LFTriangleDirection) {
LFTriangleDirection_Down,
LFTriangleDirection_Left,
LFTriangleDirection_Right,
LFTriangleDirection_U... |
neilrjones/DevOps-Python-tools | impala_schemas_csv.py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: <NAME>
# Date: 2019-11-07 14:52:38 +0000 (Thu, 07 Nov 2019)
#
# https://github.com/harisekhon/devops-python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optio... |
knmcguire/gap_sdk | tools/pulp_tools/pulp-debug-bridge/include/bridge-commands.hpp | /*
* Copyright (C) 2018 ETH Zurich, University of Bologna and GreenWaves Technologies SA
*
* 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-... |
doveylovey/alipay-sdk-java | src/main/java/com/alipay/api/domain/AlipayTradePaygrowthPayabilityQueryModel.java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询用户支付宝账户支付能力
*
* @author auto create
* @since 1.0, 2018-10-22 14:09:50
*/
public class AlipayTradePaygrowthPayabilityQueryModel extends AlipayObject {
private static final long serialVe... |
PhilAndrew/choco3gwt | choco-solver/src/main/java/org/chocosolver/solver/variables/events/SetEventType.java | /**
* Copyright (c) 2014,
* <NAME> (TASC, INRIA Rennes, LINA CNRS UMR 6241),
* <NAME> (COSLING S.A.S.).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions ... |
D0ggy/wk-os | arch/arm/include/asm_config.h | <filename>arch/arm/include/asm_config.h
/*
* Copyright (C) 2018 胡启航<<NAME>>
*
* Author: wkcs
*
* Email: <EMAIL>, <EMAIL>
*/
#ifndef __ARM_ASM_CONFIG_H__
#define __ARM_ASM_CONFIG_H__
#include <board_config.h>
#define MM_ALIGN 4u
#define MM_BLOCK_SIZE (MM_ALIGN * 32)
#endif |
Ttanasart-pt/Create | src/main/java/com/simibubi/create/content/contraptions/relays/belt/transport/BeltTunnelInteractionHandler.java | <gh_stars>1-10
package com.simibubi.create.content.contraptions.relays.belt.transport;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.content.contraptions.relays.belt.BeltBlock;
import com.simibubi.create.content.contraptions.relays.belt.BeltHelper;
import com.simibubi.create.content.contraptions.rel... |
IC-hub/redbase | src/ql.h | //
// ql.h
// Query Language Component Interface
//
// This file only gives the stub for the QL component
#ifndef QL_H
#define QL_H
#include <stdlib.h>
#include <string.h>
#include "redbase.h"
#include "parser.h"
#include "ql_error.h"
#include "rm.h"
#include "ix.h"
#include "sm.h"
#include "iterator.h"
//
// QL_... |
yyh12345685/libnbf | src/event/event_data.cpp | <filename>src/event/event_data.cpp
#include <string.h>
#include "event/event_data.h"
namespace bdf {
static int incr_fd2data = 4096;
static int init_fd2data = 40960;
LOGGER_CLASS_IMPL(logger_, EventData);
bool EventData::InitEventData(){
fd2data_ = (FdEvent **)malloc((init_fd2data + 1) * sizeof(*fd2data_));
i... |
prodypanda/mail-check | src/react/ukncsc-mail-check-app/src/page/routes/PageRoutes.js | <reponame>prodypanda/mail-check
import React from 'react';
import AdminRoutes from 'admin/routes';
import AntiSpoofingRoutes from 'anti-spoofing/routes';
import CommonRoutes from 'common/routes';
import DomainSecurityRoutes from 'domain-security/routes';
import MetricsRoutes from 'metrics/routes';
import MyDomainsRoute... |
kjthegod/chromium | extensions/shell/browser/api/shell_gcd/shell_gcd_api.cc | <filename>extensions/shell/browser/api/shell_gcd/shell_gcd_api.cc<gh_stars>1-10
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/shell/browser/api/shell_gcd/shell_gcd_api.h"
#includ... |
prsdcse/react-bootstrap-table2 | packages/react-bootstrap-table2-toolkit/src/csv/button.js | import React from 'react';
import PropTypes from 'prop-types';
const ExportCSVButton = (props) => {
const {
onExport,
children,
className,
...rest
} = props;
return (
<button
type="button"
className={ `react-bs-table-csv-btn btn btn-default ${className}` }
onClick={ () => o... |
starpeak/cloudmodel | spec/workers/cloud_model/base_worker_spec.rb | require 'spec_helper'
describe CloudModel::BaseWorker do
let(:host) { Factory :host }
subject { CloudModel::BaseWorker.new host }
context 'render' do
it 'should call render on a new instance of ActionView::Base and pass return value' do
action_view = double(ActionView::Base)
ActionView::Base.s... |
kukuhBaiquni/eltrion | src/Library/Redux/actions/_f_EditNonMemberInformation.js | <reponame>kukuhBaiquni/eltrion
import { put, call, takeEvery } from 'redux-saga/effects';
import request from 'superagent';
import { SERVER_URL } from '../../../Configuration';
export const _editNonMemberInformation = (data) => {
return {
type: 'EDIT_NON_MEMBER_INFORMATION',
data
}
};
const _e... |
hyller/GladiatorLibrary | D4D/eGUI/D4D/graphic_objects/d4d_menu.h | <reponame>hyller/GladiatorLibrary
/**************************************************************************
*
* Copyright 2014 by <NAME>. eGUI Community.
* Copyright 2009-2013 by <NAME>. Freescale Semiconductor, Inc.
*
***************************************************************************
* This program is free ... |
programmer-666/Codes | Python/FromUniversity/modules/np3.py | import numpy as np
numss = np.array([[1,2,3],[4,5,6]])
print(numss[1,2], numss[:,1])
a2 = numss.copy()
print(a2) |
ylksty/gulimall | mall-member/src/main/java/com/ylkget/gmall/member/exception/PhoneExsitException.java | <filename>mall-member/src/main/java/com/ylkget/gmall/member/exception/PhoneExsitException.java
package com.ylkget.gmall.member.exception;
/**
* <p>
*
* </p>
*
* @author joe 2021/2/23 17:02
*/
public class PhoneExsitException extends Exception {
public PhoneExsitException() {
super("手机号存在");
}
}
|
oremj/zamboni | mkt/reviewers/helpers.py | import jinja2
import waffle
from django.utils.encoding import smart_str
from jingo import register
from tower import ugettext as _, ugettext_lazy as _lazy
from access import acl
from amo.helpers import impala_breadcrumbs
from amo.urlresolvers import reverse
from mkt.developers.helpers import mkt_page_title
from mkt.... |
seakers/daphne-brain | EDL/migrations/0004_edlcontextscorecards_current_corr_mat_status.py | # Generated by Django 2.1.12 on 2019-10-21 19:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EDL', '0003_edlcontextscorecards_current_corr_mat_df'),
]
operations = [
migrations.AddField(
model_name='edlcontextscorecards'... |
oyarzun/incubator-netbeans | java/java.disco/src/org/netbeans/modules/java/disco/AdvancedPanel.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 ... |
alexmadeira/mark-ix | src/store/modules/rootSaga.js | import { all } from 'redux-saga/effects';
import banner from './banner/sagas';
import project from './project/sagas';
import projects from './projects/sagas';
export default function* rootSaga() {
yield all([banner, projects, project]);
}
|
scala-steward/ReactiveMongo | driver/src/main/scala/core/protocol/RequestMaker.scala | package reactivemongo.core.protocol
import reactivemongo.io.netty.channel.ChannelId
import reactivemongo.core.netty.BufferSequence
import reactivemongo.api.ReadPreference
import reactivemongo.api.commands.CommandKind
/**
* A helper to build requests.
*
* @param kind the kind of command to be requested
* @param ... |
AskRajeshRaccha/tessera | tessera-partyinfo/src/test/java/com/quorum/tessera/discovery/internal/NetworkStoreProviderTest.java | package com.quorum.tessera.discovery.internal;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class NetworkStoreProviderTest {
@Test
public void defaultConstructorForCoverage() {
assertThat(new NetworkStoreProvider()).isNotNull();
}
@Test
public void provider(... |
jefftc/changlab | Betsy/Betsy/modules/backfill_vcf_folder.py | <reponame>jefftc/changlab
from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
out_path):
import os
from genomicode import filelib
... |
425868130/Spring-Cloud-Demo | auth-center/src/main/java/com/example/authcenter/dao/SysAuthProfileDao.java | <gh_stars>0
package com.example.authcenter.dao;
import com.example.authcenter.entity.SysAuthProfile;
public interface SysAuthProfileDao {
int deleteByPrimaryKey(String uid);
int insert(SysAuthProfile record);
int insertSelective(SysAuthProfile record);
SysAuthProfile selectByPrimaryKey(String uid);... |
huifer/Happy-Java | happy-common/happy-common-entity/src/main/java/com/huifer/happy/common/entity/bo/FileMetaBO.java | <reponame>huifer/Happy-Java
package com.huifer.happy.common.entity.bo;
import lombok.Data;
import java.util.List;
@Data
public class FileMetaBO {
private String groupName;
private String remoteFilename;
private String storageServersCount;
private List<String> ipPorts;
private String url;
}
|
huchao-github/CCKit | CCKit/CCTextActionLabel.h | <gh_stars>0
//
// CCTextActionLabel.h
// CCKit
//
// Created by 胡超 on 2018/6/28.
// Copyright © 2018年 胡超., ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CCTextActionLabel : UIView
@property(nonatomic,strong) UIFont * font;
@property(nonatomic,assign) NSTextAlignment textAlignment;
/** 添... |
jpisaac/phoenix | phoenix-core/src/main/java/org/apache/phoenix/expression/function/RegexpReplaceFunction.java | <filename>phoenix-core/src/main/java/org/apache/phoenix/expression/function/RegexpReplaceFunction.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 ownershi... |
282951387/KFrame | KFPlugin/KFIpAddress/KFIpAddressInterface.h | #ifndef __KF_IP_ADDRESS_INTERFACE_H__
#define __KF_IP_ADDRESS_INTERFACE_H__
#include "KFrame.h"
namespace KFrame
{
/////////////////////////////////////////////////////////////////////////////////////////////
class KFIpAddressInterface : public KFModule
{
public:
/////////////////////////////... |
ScalablyTyped/SlinkyTyped | r/react-bootstrap-table/src/main/scala/typingsSlinky/reactBootstrapTable/mod/SizePerPageDropDownProps.scala | package typingsSlinky.reactBootstrapTable.mod
import typingsSlinky.reactBootstrapTable.anon.Text
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait SizePerPageDro... |
JonasAraujoP/Python | desafios/desafio20.py | <filename>desafios/desafio20.py
#CÓDIGO SORTEIA UM ALUNO APENAS
from random import shuffle
a = str(input('1° aluno: ')).upper().strip()
b = str(input('2° alino: ')).upper().strip()
c = str(input('3° aluno: ')).upper().strip()
d = str(input('4° aluno: ')).upper().strip()
lista = [a,b,c,d]
shuffle(lista)
print(lista) |
turesnake/leetPractice | src/_leetcode/leet_980.cpp | <reponame>turesnake/leetPractice
/*
* ====================== leet_980.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.09
* MODIFY --
* ----------------------------------------------------------
*... |
BBN-E/LearnIt | neolearnit/src/main/java/com/bbn/akbc/neolearnit/observations/feature/AbstractRelationFeature.java | <filename>neolearnit/src/main/java/com/bbn/akbc/neolearnit/observations/feature/AbstractRelationFeature.java
package com.bbn.akbc.neolearnit.observations.feature;
import com.bbn.akbc.neolearnit.observations.LearnItObservation;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by bmin on 6/... |
pearpai/TensorFlow-action | action/demo1/get_captcha.py | <filename>action/demo1/get_captcha.py<gh_stars>1-10
import urllib2
url = 'http://localhost:8080/getVerifyImage'
request = urllib2.Request(url)
html = urllib2.urlopen(request).read()
count = 0
while count < 10000:
print 'The count is:', count
request = urllib2.Request(url)
_html = urllib2.urlopen(request).... |
TwoFistedJustice/square-pie | tests/utility_shazam_type_checkers.test.js | <gh_stars>0
"use strict";
const {
shazam_is_integer,
shazam_is_boolean,
shazam_is_array,
} = require("../src/lib/utilities");
/* --------------------------------------------------------*
* *
* shazam_is_integer
* ... |
karensmolermiller/incubator-geode | gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DumpB2NRegion.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 ... |
dongyang1993/springboot-learning-example | springboot-security/springboot-security-learn05/src/main/java/org.springboot/security/repository/UserRepository.java | package org.springboot.security.repository;
import org.springboot.security.entity.MineUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<MineUser, Long> {
MineUser findByUsername(S... |
ColaMachine/MyBlock | src/main/java/cola/machine/game/myblocks/skill/SkillEntity.java | package cola.machine.game.myblocks.skill;
/**
* Created by luying on 16/9/25.
*/
public class SkillEntity {
}
|
r-barnes/sw_comparison | implementations/ugene/src/plugins/GUITestBase/src/tests/regression_scenarios/GTTestsRegressionScenarios_3001_4000.cpp | <filename>implementations/ugene/src/plugins/GUITestBase/src/tests/regression_scenarios/GTTestsRegressionScenarios_3001_4000.cpp
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <<EMAIL>>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it... |
clemble/object-generator | src/test/java/com/stresstest/random/permutations/external/ExternalPublicEnum.java | <reponame>clemble/object-generator
package com.stresstest.random.permutations.external;
public enum ExternalPublicEnum {
PUBLIC_ONE, PUBLIC_TWO, PUBLIC_THREE, PUBLIC_FOUR, PUBLIC_FIVE, PUBLIC_SIX, PUBLIC_SEVEN, PUBLIC_EIGHT, PUBLIC_NINE;
}
|
Chromico/bk-base | src/dataflow/unified-computing/python/bkbase/dataflow/batch/topo/batch_topology.py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... |
shrutimantri/airflow | tests/models/test_timestamp.py | <filename>tests/models/test_timestamp.py
# 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, Ver... |
npocmaka/Windows-Server-2003 | printscan/faxsrv/print/faxprint/prnwzrd/coverpg.h | /*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
coverpg.h
Abstract:
Functions for working with cover pages
Environment:
Windows XP fax driver user interface
Revision History:
02/05/96 -davidx-
Created it.
dd-mm-yy -author-
... |
06needhamt/intellij-community | plugins/lombok/src/main/java/de/plushnikov/intellij/plugin/lombokconfig/ConfigDiscovery.java | package de.plushnikov.intellij.plugin.lombokconfig;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.... |
clairechingching/ScaffCC | clang/test/SemaTemplate/instantiate-sizeof.cpp | <filename>clang/test/SemaTemplate/instantiate-sizeof.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// Make sure we handle contexts correctly with sizeof
template<typename T> void f(T n) {
int buffer[n];
[] { int x = sizeof(sizeof(buffer)); }();
}
int main() {
f<int>(1);
}
|
amahussein/hadoop | hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/delegation/MiniKerberizedHadoopCluster.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 ... |
0lru/p3ui | cpp/p3/source/p3/widgets/InputText.h | #pragma once
#include <string>
#include <functional>
#include <p3/Node.h>
struct ImGuiInputTextCallbackData;
namespace p3
{
class InputText : public Node
{
public:
using OnChange = std::function<void()>;
InputText(std::size_t size=1024, std::optional<std::string> label=std::optional<st... |
h1psterx/core | packages/crypto/__tests__/crypto/crypto.test.js | <reponame>h1psterx/core
const crypto = require('../../lib/crypto/crypto')
const configManager = require('../../lib/managers/config')
const { TRANSACTION_TYPES, CONFIGURATIONS } = require('../../lib/constants')
beforeEach(() => configManager.setConfig(CONFIGURATIONS.ARK.DEVNET))
describe('crypto.js', () => {
describ... |
goodow/realtime-channel | src/main/java/com/google/gwt/core/client/js/JsType.java | <reponame>goodow/realtime-channel
/*
* Copyright 2013 Google 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 b... |
kbens/rundeck | core/src/main/java/com/dtolabs/rundeck/plugins/scm/JobRenamed.java | package com.dtolabs.rundeck.plugins.scm;
/**
* Get source and UUID form a renamed Job
*/
public interface JobRenamed {
/**
* get the job the UUID
*
* @return uuid
*/
String getUuid();
/**
* get the job the SourceID
*
* @return sourceID
*/
String getSourceId();... |
BerkeleyLibrary/geodata_pre_ingest | pre_ingestion/v_tool_2_1_get_ISO191390.py | <gh_stars>0
#!/usr/bin/python
import os
import sys
from csv_iso_collection import CsvIsoCollection
from csv_tranform import CsvTransform
from validate_csv import ValidateCSV
from geo_helper import GeoHelper
# 1. Source: updated csv files - modified metadata
# 2. output to two places: a) ISO19139 directory, b) sour... |
c0debrain/flat | app/src/views/containers/SignIn/StartScreen/index.js | <filename>app/src/views/containers/SignIn/StartScreen/index.js
import React, { Component } from "react";
import Dimensions from 'Dimensions';
import Platform from 'Platform';
import { connect } from 'react-redux';
import { ImageBackground, View, StatusBar } from "react-native";
import { Container, Button, H3, Text } fr... |
feesa/easyrec-parent | easyrec-web/src/main/java/org/easyrec/store/dao/web/impl/BackTrackingDAOMysqlImpl.java | <filename>easyrec-web/src/main/java/org/easyrec/store/dao/web/impl/BackTrackingDAOMysqlImpl.java
package org.easyrec.store.dao.web.impl;
import org.easyrec.store.dao.web.BackTrackingDAO;
import org.springframework.jdbc.core.PreparedStatementCreatorFactory;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
... |
diCagri/content | Packs/PaloAltoNetworks_IoT/Scripts/iot_get_raci/iot_get_raci.py | <gh_stars>100-1000
import json
import re
import demistomock as demisto
from CommonServerPython import * # noqa: E402 lgtm [py/polluting-import]
from CommonServerUserPython import * # noqa: E402 lgtm [py/polluting-import]
def get_iot_config(iot_config_list_name="IOT_CONFIG"):
iot_config = demisto.executeCommand... |
Fogolan/MongoDB-Stitch | containers/Notes.js | /**
* Copyright 2015-present, Lights in the Sky (3273741 NS Ltd.)
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule Notes
*/
import React, { Component } from 'react';
import { connect } from 're... |
stardot/ncc | mip/inline.c | /*
* inline.c: inline function expansion
* Copyright (C) Advanced Risc Machines Ltd., 1993
* SPDX-Licence-Identifier: Apache-2.0
*/
/*
* RCS $Revision$
* Checkin $Date$
* Revising $Author$
*/
/* Nasties to tidy up:
** (1) the use of h0_(Binder)
** (2) lab_xname_()/lab_name_(). Use small ints everywhere for la... |
kirill-strizhak-zz/online-chess | src/main/java/ks3/oc/conn/handlers/HandshakeHandler.java | <filename>src/main/java/ks3/oc/conn/handlers/HandshakeHandler.java
package ks3.oc.conn.handlers;
import ks3.oc.Protocol;
import ks3.oc.chat.ChatDisplay;
import ks3.oc.main.MainWindow;
import java.io.BufferedReader;
import java.io.IOException;
abstract class HandshakeHandler implements MessageHandler {
protected ... |
safetydank/resinlib | src/resin/materials/ShaderMaterial.cpp | <reponame>safetydank/resinlib
#include "resin/materials/ShaderMaterial.h"
namespace RESIN {
ShaderMaterialRef ShaderMaterial::create()
{
return ShaderMaterialRef(new ShaderMaterial);
}
ShaderMaterial::ShaderMaterial() : Material(kShaderMaterial)
{
fragmentShader("void main() {}");
vertexShader("void main... |
avigad/boole | boole/core/expr.py | # -*- coding: utf-8 -*-
#############################################################################
#
# expr.py
#
# description: types and expressions in Boole, all constructors inherit from
# the Expr class, except Tele, which inherits from BaseExpr
#
#
# Authors:
# <NAME>
# <NAME>
#
#
#############################... |
MadBomber/synvert-snippets | spec/rails/add_application_job_spec.rb | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Add ApplicationMailer' do
let(:rewriter_name) { 'rails/add_application_mailer' }
context 'add application_mailer' do
let(:fake_file_path) { 'app/mailers/application_mailer.rb' }
let(:test_content) { nil }
let(:test_rewritten_content)... |
ernestojimenezruiz/logmap-conservativity | src/main/java/scc/gui/OntoLoaderTask.java | <reponame>ernestojimenezruiz/logmap-conservativity<gh_stars>0
/*******************************************************************************
* Copyright 2016 by the Department of Computer Science (University of Genova and University of Oxford)
*
* This file is part of LogMapC an extension of LogMap matcher for... |
torchOnVideo/torchOnVideo | torchOnVideo/frame_interpolation/cain/cain.py | from ..frame_interpolation import FrameInterpolation
class CAIN(FrameInterpolation):
def __init__(self):
super(CAIN, self).__init__()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.